<?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"
	>

<channel>
	<title>ralphunden.net</title>
	<atom:link href="http://ralphunden.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://ralphunden.net</link>
	<description>Fun is what you make of it.</description>
	<pubDate>Mon, 07 Jul 2008 06:57:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Mercedes Benz Museum</title>
		<link>http://ralphunden.net/2008/04/06/mercedes-benz-museum/</link>
		<comments>http://ralphunden.net/2008/04/06/mercedes-benz-museum/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 10:28:42 +0000</pubDate>
		<dc:creator>Ralph via flickr</dc:creator>
		
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2008/04/06/mercedes-benz-museum/</guid>
		<description><![CDATA[
Along with the Lange Nacht der Museen in Stuttgart, we visited the Mercedes Benz Museum. The new building is only a few miles from our home, yet so far we never had time to go there. Having visited museums all over the world, I can only say &#8220;Wow!&#8221;. The museum itself has an astonishing architecture, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/ralphunden/2391406007/" title="Mercedes Benz Museum by ralphunden, on Flickr"><img src="http://farm3.static.flickr.com/2098/2391406007_712f52626d.jpg" width="333" height="500" alt="Mercedes Benz Museum" /></a></p>
<p>Along with the <a href="http://www2.lange-nacht.de/main.php">Lange Nacht der Museen</a> in Stuttgart, we visited the <a href="http://www.museum-mercedes-benz.com/">Mercedes Benz Museum</a>. The new building is only a few miles from our home, yet so far we never had time to go there. Having visited museums all over the world, I can only say &#8220;Wow!&#8221;. The museum itself has an astonishing architecture, which is not an end in itself but harmonises with the museum&#8217;s general concept really well. Everything looks nice and modern, as expected from a brand like Daimler, but the museum does not purely display the company&#8217;s achievements. It displays a time-line from the beginnings of cars to the modern day and puts it into the context of different general events in world history. Altogether it is quite an experience - a definite must see when visiting Stuttgart.</p>
<p><a href="http://www.flickr.com/photos/ralphunden/2391406011/" title="Mercedes Benz Museum by ralphunden, on Flickr"><img src="http://farm3.static.flickr.com/2267/2391406011_bc1a04e063.jpg" width="333" height="500" alt="Mercedes Benz Museum" /></a></p>
<p><a href="http://www.flickr.com/photos/ralphunden/2391406025/" title="Mercedes Benz Museum by ralphunden, on Flickr"><img src="http://farm4.static.flickr.com/3107/2391406025_c0263bd3e1.jpg" width="333" height="500" alt="Mercedes Benz Museum" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2008/04/06/mercedes-benz-museum/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Redesigning is fun</title>
		<link>http://ralphunden.net/2008/03/28/redesigning-is-fun/</link>
		<comments>http://ralphunden.net/2008/03/28/redesigning-is-fun/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 16:07:08 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
		
		<category><![CDATA[this blog]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2008/03/28/redesigning-is-fun/</guid>
		<description><![CDATA[Yep, even the simple, timeless designs I prefer get old. So after quite a bit I decided to change it. This time it is not completely homecooked but the incredible Hemingway theme, adapted to my needs. You can find a link to the original makers of this theme in the footer. :) Hopefully this one [...]]]></description>
			<content:encoded><![CDATA[<p>Yep, even the simple, timeless designs I prefer get old. So after quite a bit I decided to change it. This time it is not completely homecooked but the incredible Hemingway theme, adapted to my needs. You can find a link to the original makers of this theme in the footer. :) Hopefully this one will last me quite some time. Basically everything is up and running as of now, just will have to tweak some of the colors for better readability.</p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2008/03/28/redesigning-is-fun/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Schlossberg, Freiburg</title>
		<link>http://ralphunden.net/2007/11/25/schlossberg-freiburg/</link>
		<comments>http://ralphunden.net/2007/11/25/schlossberg-freiburg/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 15:28:08 +0000</pubDate>
		<dc:creator>Ralph via flickr</dc:creator>
		
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2007/12/22/schlossberg-freiburg/</guid>
		<description><![CDATA[	
Beautiful picture from Freiburg, where we were visiting Linda for her birthday :)
]]></description>
			<content:encoded><![CDATA[<p><a class="flickr-link" href="http://www.flickr.com/photos/ralphunden/2127869580/" title="View this image on flickr!"><img src="http://farm3.static.flickr.com/2019/2127869580_6544bc0d1a.jpg" alt="Freiburg 12/07" class="flickr-photo" /></a>	</p>
<p>Beautiful picture from Freiburg, where we were visiting Linda for her birthday :)</p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2007/11/25/schlossberg-freiburg/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Simplest way to reverse a string in C# (in a RichTextBox)</title>
		<link>http://ralphunden.net/2007/10/17/simplest-way-to-reverse-a-string-in-c-in-a-richtextbox/</link>
		<comments>http://ralphunden.net/2007/10/17/simplest-way-to-reverse-a-string-in-c-in-a-richtextbox/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 09:34:00 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[algorithms]]></category>

		<category><![CDATA[applications]]></category>

		<category><![CDATA[csharp]]></category>

		<category><![CDATA[fun]]></category>

		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2007/10/17/simplest-way-to-reverse-a-string-in-c-in-a-richtextbox/</guid>
		<description><![CDATA[I discovered this way to reverse a string in a RichTextBox in C# accidentally. I am not sure if it is a bug or some kind of behaviour that will not work in other versions of .NET (I did this in 1.1), but here is what you can try:

Create a Windows Forms application.
Drag a RichTextBox [...]]]></description>
			<content:encoded><![CDATA[<p>I discovered this way to reverse a string in a RichTextBox in C# accidentally. I am not sure if it is a bug or some kind of behaviour that will not work in other versions of .NET (I did this in 1.1), but here is what you can try:</p>
<ol>
<li>Create a Windows Forms application.</li>
<li>Drag a RichTextBox onto the form.</li>
<li>Remove all text from the RichTextBox</li>
<li>Register the <code>KeyPress</code> event of the RichTextBox</li>
<li>Put this line in the event function:<br />
<blockquote><pre>richTextBox1.Text = richTextBox1.Text;</pre>
</blockquote>
</li>
<li>Compile and type away in your RichTextBox.</li>
</ol>
<p>I think this is really weirdish yet a little bit fascinating :) I figure presenting a teacher at school with this might cause some confusion. I am sure it would have if my C# class where writing an application that reverses the users input was one of the first simple exercises. Usually one would use a loop or similar.</p>
<p>If you were not able to follow the instructions above, see the full source code below. <span id="more-62"></span></p>
<blockquote><pre>
using System;
using System.Windows.Forms;

namespace ReverseString
{
  public class Form1 : System.Windows.Forms.Form
   {
      private System.Windows.Forms.RichTextBox richTextBox1;
      private System.ComponentModel.Container components = null;

      public Form1()
      {
         InitializeComponent();
      }

      private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
      {
         richTextBox1.Text = richTextBox1.Text;
      }

      protected override void Dispose( bool disposing )
      {
         if( disposing )
         {
            if (components != null)
            {
               components.Dispose();
            }
         }
         base.Dispose( disposing );
      }

      #region Vom Windows Form-Designer generierter Code
      /// <summary>
      /// Erforderliche Methode für die Designerunterstützung.
      /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
      /// </summary>
      private void InitializeComponent()
      {
         this.richTextBox1 = new System.Windows.Forms.RichTextBox();
         this.SuspendLayout();
         //
         // richTextBox1
         //
         this.richTextBox1.Location = new System.Drawing.Point(8, 8);
         this.richTextBox1.Name = &#8220;richTextBox1&#8243;;
         this.richTextBox1.Size = new System.Drawing.Size(280, 264);
         this.richTextBox1.TabIndex = 0;
         this.richTextBox1.Text = &#8220;&#8221;;
         this.richTextBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.richTextBox1_KeyPress);
         //
         // Form1
         //
         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
         this.ClientSize = new System.Drawing.Size(292, 273);
         this.Controls.Add(this.richTextBox1);
         this.Name = &#8220;Form1&#8243;;
         this.Text = &#8220;Form1&#8243;;
         this.ResumeLayout(false);
      }
      #endregion

      [STAThread]
      static void Main()
      {
          Application.Run(new Form1());
      }
   }
}
</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2007/10/17/simplest-way-to-reverse-a-string-in-c-in-a-richtextbox/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What is the next number?</title>
		<link>http://ralphunden.net/2007/10/12/what-is-the-next-number/</link>
		<comments>http://ralphunden.net/2007/10/12/what-is-the-next-number/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 12:22:52 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[algorithms]]></category>

		<category><![CDATA[applications]]></category>

		<category><![CDATA[csharp]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2007/10/12/what-is-the-next-number/</guid>
		<description><![CDATA[New content aboard. In the last couple of days I coded up an algorithm that solves simple &#8220;What is the next number?&#8221; questions, as you can find them on IQ quizzes and similar tests. Currently there&#8217;s not much coding at work, so I felt like doing a little app just to keep practicing. Anyhoo, here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>New content aboard. In the last couple of days I coded up an algorithm that solves simple &#8220;What is the next number?&#8221; questions, as you can find them on IQ quizzes and similar tests. Currently there&#8217;s not much coding at work, so I felt like doing a little app just to keep practicing. Anyhoo, here&#8217;s a small <a href="http://ralphunden.net/content/tutorials/what-is-the-next-number/">article</a> presenting my findings. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2007/10/12/what-is-the-next-number/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Shop window in Siena, Italy</title>
		<link>http://ralphunden.net/2007/09/19/shop-window-in-siena-italy/</link>
		<comments>http://ralphunden.net/2007/09/19/shop-window-in-siena-italy/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 13:37:19 +0000</pubDate>
		<dc:creator>Ralph via flickr</dc:creator>
		
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2007/09/19/shop-window-in-siena-italy/</guid>
		<description><![CDATA[	
The sign says: &#8220;Testicles of the mule and the grandfather&#8221;. That is some weird salame ;-)
]]></description>
			<content:encoded><![CDATA[<p><a class="flickr-link" href="http://www.flickr.com/photos/ralphunden/1407407326/" title="View this image on flickr!"><img src="http://farm2.static.flickr.com/1050/1407407326_e5a78bb5a0.jpg" alt="Siena \\ Shop window" class="flickr-photo" /></a>	</p>
<p>The sign says: &#8220;Testicles of the mule and the grandfather&#8221;. That is some weird salame ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2007/09/19/shop-window-in-siena-italy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flickr and Wordpress integration</title>
		<link>http://ralphunden.net/2007/09/04/flickr-and-wordpress-integration/</link>
		<comments>http://ralphunden.net/2007/09/04/flickr-and-wordpress-integration/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 15:20:27 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
		
		<category><![CDATA[flickr]]></category>

		<category><![CDATA[photos]]></category>

		<category><![CDATA[this blog]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2007/09/04/flickr-and-wordpress-integration/</guid>
		<description><![CDATA[As you can see there have been quite a few changes on this blog. Since my posting activity is going towards zero I decided to make this a blog for both text and photos. Since I am not sure yet whether I want to add all my photos on flickr retrospectively I just added a [...]]]></description>
			<content:encoded><![CDATA[<p>As you can see there have been quite a few changes on this blog. Since my posting activity is going towards zero I decided to make this a blog for both text and photos. Since I am not sure yet whether I want to add all my photos on flickr retrospectively I just added a few to try things out. If you are not interested in photos, just click the &#8220;Text only&#8221; link on the upper right hand side. Enjoy the new setup!</p>
<p>For those who want to know how to do something like this, read on&#8230; <span id="more-56"></span></p>
<p>The photos are put on the blog via the &#8220;Blog this&#8221; functionality that can be found on the single photo pages of flickr. In order to use this you need to be a registered member at flickr and the photo you want to post to your blog needs to be marked public. Now, create a new user in your Wordpress blog. I called mine &#8220;Ralph via flickr&#8221;. Then set up your blog with the newly created user in your flickr account settings. Et voila, everything basically works as planned.</p>
<p>Now the naughty details:</p>
<ul>
<li>If you do not like the default way flickr puts its information into your blog posts and want to tweak with the CSS manually, make sure that the user you created has Administrator rights since regular authors are not allowed to add too much style information to their blog posts in Wordpress.</li>
<li>To offer the visitors the ability to display either, text posts or flickr photo posts, select the displayed posts on your blog by the user who wrote them by setting the ?author_name variable in a link to your front page. In my case the text only link goes here: http://ralphunden.net/?author_name=Ralph</li>
</ul>
<p>Hopefully that is all. ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2007/09/04/flickr-and-wordpress-integration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wine cork</title>
		<link>http://ralphunden.net/2007/09/04/wine-cork/</link>
		<comments>http://ralphunden.net/2007/09/04/wine-cork/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 13:54:44 +0000</pubDate>
		<dc:creator>Ralph via flickr</dc:creator>
		
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2007/09/04/wine-cork/</guid>
		<description><![CDATA[	

	I was shopping in Stuttgart with Julia a couple of days back. We went to Strauss and I picked up a couple of bottles of wine. In order to prepare for our trip to Italy, I went for &#8220;Primitivo della Puglia 2005&#8243; which was really delicious.
]]></description>
			<content:encoded><![CDATA[<p><a class="flickr-link" href="http://www.flickr.com/photos/ralphunden/1321236008/" title="View this image on flickr!"><img class="flickr-photo" src="http://farm2.static.flickr.com/1077/1321236008_9d84f6ecec.jpg" alt="Wine cork" /></a>	</p>
<p>
	I was shopping in Stuttgart with Julia a couple of days back. We went to Strauss and I picked up a couple of bottles of wine. In order to prepare for our trip to Italy, I went for &#8220;Primitivo della Puglia 2005&#8243; which was really delicious.</p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2007/09/04/wine-cork/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Killer tomato cannibalism</title>
		<link>http://ralphunden.net/2007/08/20/killer-tomato-cannibalism/</link>
		<comments>http://ralphunden.net/2007/08/20/killer-tomato-cannibalism/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 15:01:39 +0000</pubDate>
		<dc:creator>Ralph via flickr</dc:creator>
		
		<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2007/09/04/killer-tomato-cannibalism/</guid>
		<description><![CDATA[	
Julia is growing tomato plants in buckets behind our house. They have grown nicely since they have had similar quality sunlight exposure as the vineyards around our house have. They tasted deliciously but the season is coming to an end slowly. With more and more rain, those little guys fall down while being really ripe [...]]]></description>
			<content:encoded><![CDATA[<p><a class="flickr-link" href="http://www.flickr.com/photos/ralphunden/1184923950/" title="View this image on flickr!"><img src="http://farm2.static.flickr.com/1351/1184923950_df1a617f58.jpg" alt="Casualty in the war of the killer tomatoes" class="flickr-photo" /></a>	</p>
<p>Julia is growing tomato plants in buckets behind our house. They have grown nicely since they have had similar quality sunlight exposure as the vineyards around our house have. They tasted deliciously but the season is coming to an end slowly. With more and more rain, those little guys fall down while being really ripe and slash open their skin. To me the look like casualties amongst the killer tomatoes.</p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2007/08/20/killer-tomato-cannibalism/feed/</wfw:commentRss>
		</item>
		<item>
		<title>.NET Reflection Goodness</title>
		<link>http://ralphunden.net/2007/06/29/net-reflection-goodness/</link>
		<comments>http://ralphunden.net/2007/06/29/net-reflection-goodness/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 07:15:53 +0000</pubDate>
		<dc:creator>Ralph</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[GUI]]></category>

		<category><![CDATA[csharp]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[reflection]]></category>

		<guid isPermaLink="false">http://ralphunden.net/2007/06/29/net-reflection-goodness/</guid>
		<description><![CDATA[When extending the System.Windows.Forms GUI elements, the new controls will have properties that distinguish them from their parents. Given the case you want to perform some global action on them after putting them into a UserControl&#8217;s Controls collection, they might be hard to identify. The nicest solution would be to make them both their parent [...]]]></description>
			<content:encoded><![CDATA[<p>When extending the System.Windows.Forms GUI elements, the new controls will have properties that distinguish them from their parents. Given the case you want to perform some global action on them after putting them into a UserControl&#8217;s Controls collection, they might be hard to identify. The nicest solution would be to make them both their parent .NET control and your own interface. Then you can iterate over the controls collection checking for and casting to the interface type you defined. However this might not be feasible to implement i.e. when you didn&#8217;t actually implement the extended version of the .NET control and get them from a framework yourself and don&#8217;t want have the capacity to do another extension in your own project for the sake of accessing a single property. This might be rare, but here is a quick hack:</p>
<blockquote><pre>
Type type;
PropertyInfo propertyInfo;
string propertyToSet = "NameOfProperty";
foreach (object c in Controls)
{
	type = c.GetType();
	propertyInfo = type.GetProperty(propertyToSet);
	if (propertyInfo == null) continue;
	propertyInfo.SetValue(c, "newvalue", null);
}
</pre>
</blockquote>
<p>As far as I can tell, there is no performance issue here. The number of objects in the Controls collection usually should not be huge. I have heard assignment via Reflection takes about 3-4 longer than accessing a property directly, as accessing a property takes next to nothing in time, 4 times next to nothing is still bearable, so long there are not thousands of controls.</p>
]]></content:encoded>
			<wfw:commentRss>http://ralphunden.net/2007/06/29/net-reflection-goodness/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
