<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Becoming a .NET Ninja</title>
	<atom:link href="http://dotnetninja.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetninja.de</link>
	<description>about learning and improving skills</description>
	<lastBuildDate>Sat, 21 Aug 2010 04:56:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Note to me: iPhone and hotspot flat</title>
		<link>http://dotnetninja.de/2010/08/21/note-to-me-iphone-and-hotspot-flat/</link>
		<comments>http://dotnetninja.de/2010/08/21/note-to-me-iphone-and-hotspot-flat/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 04:56:13 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://dotnetninja.de/2010/08/21/note-to-me-iphone-and-hotspot-flat/</guid>
		<description><![CDATA[In the &#8220;note to me&#8221; posts I&#8217;m going to blog things that are not that obvious, which I had to figure out, that I want to remember and that, possibly, can be of some help for you if you have a similar issue. This time I just wanted to access my T-Mobile hotspots flat that]]></description>
			<content:encoded><![CDATA[<p>In the &#8220;note to me&#8221; posts I&#8217;m going to blog things that are not that obvious, which I had to figure out, that I want to remember and that, possibly, can be of some help for you if you have a similar issue.</p>
<p>This time I just wanted to access my T-Mobile hotspots flat that came with my iPhone contract from the train I&#8217;m sitting in. Login failed, though, because I couldn&#8217;t remember the login credentials.</p>
<p>Gladly I remembered that I stored the number I had to send a text message to in order to activate the hotspot flat in the phone. It is the 9526.</p>
<p>Just as I activated the account, I sent the text &#8216;open&#8217; once again to this number. Shortly after that I got a text message with my credentials. By default, your user name is your mobile number. Important: to login to the hotspot, you have to take your username and add a @t-mobile.de to it. So by default a login name oils look like &#8220;491711234567890@t-mobile.de&#8221;</p>
<p>You can change both your username and your password by sending other text messages to the 9526. To change your user name, send &#8216;alias newusername&#8217;, where new username is the username you want to use in the future. In order to change your password send the text &#8216;passwort newpassword&#8217; (yes, the first is the german word passwort). You will get a confirmation via text message shortly after sending. If the desired username is already taken you will be informed of that of course.</p>
<p>After changing my username I could login to the hotspot and use it to post this <img src='http://dotnetninja.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dotnetninja.de/2010/08/21/note-to-me-iphone-and-hotspot-flat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Curly braces in C# String.Format()</title>
		<link>http://dotnetninja.de/2010/07/23/curly-braces-in-c-string-format/</link>
		<comments>http://dotnetninja.de/2010/07/23/curly-braces-in-c-string-format/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 18:53:19 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://dotnetninja.de/?p=54</guid>
		<description><![CDATA[Ever wanted to use String.Format on, say, a javascript function? Those include curly braces ( { or } ), but those curly braces are reserved as placeholder marker in String.Format() (i.e. for {0}). Escaping the braces with a backslash (comes to mind first in C#) does not work, though. The solution is pretty simple: You]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to use String.Format on, say, a javascript function? Those include curly braces ( { or } ), but those curly braces are reserved as placeholder marker in String.Format() (i.e. for {0}).  Escaping the braces with a backslash (comes to mind first in C#) does not work, though.</p>
<p>The solution is pretty simple: You need to double those curly braces to escape them:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Format</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;function test() {{ return calcSomething({0}); }}&quot;</span>, <span style="color: #666666;">&quot;123&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://dotnetninja.de/2010/07/23/curly-braces-in-c-string-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pre-fill password fields in ASP.NET</title>
		<link>http://dotnetninja.de/2010/07/23/pre-fill-password-fields-in-asp-net/</link>
		<comments>http://dotnetninja.de/2010/07/23/pre-fill-password-fields-in-asp-net/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 18:50:19 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://dotnetninja.de/?p=45</guid>
		<description><![CDATA[At some stage I had to pre-fill a password field. Actually that is something you don&#8217;t want to do because the value can be seen in the plain html text. But perhaps you want to show some **** initially on a new user page or something. ASP.NET won&#8217;t render the value of a TextBox with]]></description>
			<content:encoded><![CDATA[<p>At some stage I had to pre-fill a password field. Actually that is something you don&#8217;t want to do because the value can be seen in the plain html text. But perhaps you want to show some **** initially on a new user page or something.</p>
<p>ASP.NET won&#8217;t render the value of a TextBox with textmode set to password into the page, but you can force the required html to pre-fill password fields using the .AddAttribute(&#8220;value&#8221;, password); method on the control:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">TextBox passwd <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> TextBox<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> TextMode <span style="color: #008000;">=</span> TextBoxMode<span style="color: #008000;">.</span><span style="color: #0000FF;">Password</span> <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span>
passwd<span style="color: #008000;">.</span><span style="color: #0000FF;">AddAttribute</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;value&quot;</span>, <span style="color: #666666;">&quot;*****&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></div></div>

<p>I already mentioned you can see the password in plain text in the html, so it is a bad idea to do that with real passwords. You should try to avoid this. But in some cases (i.e. display password strength / weakness during initial password entry on a &#8220;new user&#8221; page, with no real password but a dummy value) this totally makes sense.</p>
]]></content:encoded>
			<wfw:commentRss>http://dotnetninja.de/2010/07/23/pre-fill-password-fields-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello World. Again.</title>
		<link>http://dotnetninja.de/2010/07/22/hello-world-again/</link>
		<comments>http://dotnetninja.de/2010/07/22/hello-world-again/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 21:05:14 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://dotnetninja.de/?p=14</guid>
		<description><![CDATA[Hello World! This is my third approach to a blog, but this time it&#8217;s serious I&#8217;m going to blog about software development and some personal interests. More details will follow. This evening was spent setting up this blog, in the next view days I&#8217;m going to transfer some of my older blog posts to my]]></description>
			<content:encoded><![CDATA[<p>Hello World!</p>
<p>This is my third approach to a blog, but this time it&#8217;s serious <img src='http://dotnetninja.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I&#8217;m going to blog about software development and some personal interests. More details will follow. This evening was spent setting up this blog, in the next view days I&#8217;m going to transfer some of my older blog posts to my new blog (especially some development related)</p>
<p>Have fun <img src='http://dotnetninja.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>   Sebastian</p>
]]></content:encoded>
			<wfw:commentRss>http://dotnetninja.de/2010/07/22/hello-world-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

