<?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>info.michael-simons.eu &#187; Rants</title>
	<atom:link href="http://info.michael-simons.eu/tag/rants/feed/" rel="self" type="application/rss+xml" />
	<link>http://info.michael-simons.eu</link>
	<description>Just another nerd blog</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:26:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Preparing for Rails 2.3.9</title>
		<link>http://info.michael-simons.eu/2010/09/06/preparing-for-rails-2-3-9/</link>
		<comments>http://info.michael-simons.eu/2010/09/06/preparing-for-rails-2-3-9/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 12:12:29 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/?p=432</guid>
		<description><![CDATA[As much as i wish to upgrade my Rails 2.3.x application Daily Fratze to the newest tag of the Rails 2.3.x branch, i cannot. First there was the epic fail of release 2.3.6, that broke all HTML Helpers and forced the Rails XSS protection upon us. This release was immediately followed by 2.3.7 and 2.3.8. [...]]]></description>
			<content:encoded><![CDATA[<p>As much as i wish to upgrade my Rails 2.3.x application <a href="http://dailyfratze.de">Daily Fratze</a> to the newest tag of the Rails 2.3.x branch, i cannot.</p>
<p>First there was the epic fail of release 2.3.6, that broke all HTML Helpers and forced the Rails XSS protection upon us. This release was immediately followed by 2.3.7 and 2.3.8. With my tests, this version was still enforcing Rails XSS and breaking helpers like &#8220;h&#8221;.</p>
<p>Rails 2.3.9, released last week, puts en end to this.</p>
<p>I just was about to upgrade, when i read this error: <a href="https://rails.lighthouseapp.com/projects/8994/tickets/4808-textarea-input-silently-truncated-in-238">Textarea input silently truncated in 2.3.8!</a>. The input of a textarea is truncated if the text entered consists of two lines or more with one of them quoted as the Rack middleware messes with the input. </p>
<p>I can confirm that this behavior still applies to 2.3.9.</p>
<p>It&#8217;s a shame, that all the talk is about Rails 3 with bugs like this in an older branch. I understand that this is a Rack problem but as it is already fixed in newer Rack versions, i cannot understand that the Rails team doesn&#8217;t bump the required Rack version respectively has no tests for problems like these.</p>
<p>So i&#8217;m hoping that Rails 2.3.10 sees the light of day anytime soon.</p>
<p>Anyway, as Rails 2.3.9 suddenly uses a new interpolation syntax for the translation files (&#8220;Hello {{name}}&#8221; becomes &#8221; Hello %{name}&#8221;), here is a one-liner to update i18n files to the new syntax:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-iname</span> <span style="color: #ff0000;">&quot;*.yml&quot;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/{{\([^\{\}]*\)}}/%{\1}/g'</span> <span style="color: #660033;">-i</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>If you like some less escapism use xargs</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-iname</span> <span style="color: #ff0000;">&quot;*.yml&quot;</span>  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/{{\([^{}]*\)}}/%{\1}/g'</span> <span style="color: #660033;">-i</span>;</pre></div></div>

<p>Commands need to be executed inside your locale directory.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=432&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_432" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2010/09/06/preparing-for-rails-2-3-9/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wütend</title>
		<link>http://info.michael-simons.eu/2009/02/25/wutend/</link>
		<comments>http://info.michael-simons.eu/2009/02/25/wutend/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 17:39:30 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[German posts]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/?p=302</guid>
		<description><![CDATA[Oh man, ich bin so verdammt wütend, ein Tweet reicht nicht aus. Es ist so zum kotzen, dass es Programmiersprachen wie PHP den Leuten so leicht machen, hübsche Sachen zu programmieren, die auseinander fallen, wenn man sie mal schief anschaut. &#8220;Hübsche Gui&#8221; und &#8220;Ich weiß, was ich da gerade in die Datenbank schreibe&#8221; sind zwei [...]]]></description>
			<content:encoded><![CDATA[<p>Oh man, ich bin so verdammt wütend, ein Tweet reicht nicht aus.</p>
<p>Es ist so zum kotzen, dass es Programmiersprachen wie PHP den Leuten so leicht machen, hübsche Sachen zu programmieren, die auseinander fallen, wenn man sie mal schief anschaut.</p>
<p>&#8220;Hübsche Gui&#8221; und &#8220;Ich weiß, was ich da gerade in die Datenbank schreibe&#8221; sind zwei Paar Schuhe. </p>
<p>Wie kann man eigentlich eine Checksum Routine so implementieren, dass sie auf unterschiedlichen Architekturen unterschiedliche Ergebnisse liefert? Braucht es da mehr als einen mittelmässig begabten Affen, zu erkennen, dass das eine scheiß Idee ist? Und noch spannender ist es natürlich dann, diese Funktion auch zu nutzen.</p>
<p>Boah echt ey.</p>
<p>Leute, lasst die Finger von <a href="http://bugs.php.net/bug.php?id=39062">PHPs crc32()</a> Implementierung oder benutzt sie <a href="http://guxx.de/2007/05/25/crc32-in-php-richtig-benutzt/">richtig</a>.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=302&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_302" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2009/02/25/wutend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frustration</title>
		<link>http://info.michael-simons.eu/2009/02/25/frustration/</link>
		<comments>http://info.michael-simons.eu/2009/02/25/frustration/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 14:06:18 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Mint]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/?p=296</guid>
		<description><![CDATA[if you want something done right, do it yourself If you happen to use the mint tracking tool like me, be careful when migrating from a 32bit to a 64bit server or vice versa. Mint saves ip addresses and a buttload of checksums as signed long values. That bites you right in the ass when [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>if you want something done right, do it yourself</p>
</blockquote>
<p>If you happen to use the <a href="http://haveamint.com/">mint</a> tracking tool like me, be careful when migrating from a 32bit to a 64bit server or vice versa. Mint saves ip addresses and a buttload of checksums as signed long values. That bites you right in the ass when the first visitors starts arriving at your site. All from 127.255.255.255, or at last visitors with an ip starting with > 127. </p>
<p>If you read this post before migrating, just add the following to your migration:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> mint_visit 
  <span style="color: #993333; font-weight: bold;">MODIFY</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`ip_long`</span> <span style="color: #993333; font-weight: bold;">BIGINT</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span>
  <span style="color: #993333; font-weight: bold;">MODIFY</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`referer_checksum`</span> <span style="color: #993333; font-weight: bold;">BIGINT</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span>
  <span style="color: #993333; font-weight: bold;">MODIFY</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`domain_checksum`</span> <span style="color: #993333; font-weight: bold;">BIGINT</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span>
  <span style="color: #993333; font-weight: bold;">MODIFY</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`resource_checksum`</span> <span style="color: #993333; font-weight: bold;">BIGINT</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span>
  <span style="color: #993333; font-weight: bold;">MODIFY</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`session_checksum`</span> <span style="color: #993333; font-weight: bold;">BIGINT</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>;
&nbsp;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> mint_debugger   
  <span style="color: #993333; font-weight: bold;">MODIFY</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`ip_long`</span> <span style="color: #993333; font-weight: bold;">BIGINT</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>;
&nbsp;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> mint_geo  
  <span style="color: #993333; font-weight: bold;">MODIFY</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`ip`</span> <span style="color: #993333; font-weight: bold;">BIGINT</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>;
&nbsp;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> mint_hostnames  
  <span style="color: #993333; font-weight: bold;">MODIFY</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`ip_long`</span> <span style="color: #993333; font-weight: bold;">BIGINT</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>;</pre></div></div>

<p>and you&#8217;re done. </p>
<p>If it&#8217;s too late, change your tables as well. You then also have to delete your entire mint_visit data, as the records are already corrupted. Great fail.</p>
<p>However, why on earth store an ip address as a long value?!? It&#8217;s an ip address and if i want to look at it, the program needs to go the other way round. To me: It&#8217;s just stupid fucking with datatypes and problems as that is what you get if you do so. It maybe makes sense for computation of networks, but not for a statistic tool. At least, i don&#8217;t see any sense in this.</p>
<p>Actually, the problem is <a href="http://www.haveamint.com/forum/troubleshooting/878/heavy_presence_of_127_255_255_255">known</a>.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=296&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_296" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2009/02/25/frustration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Comments are evil?</title>
		<link>http://info.michael-simons.eu/2009/02/23/comments-are-evil/</link>
		<comments>http://info.michael-simons.eu/2009/02/23/comments-are-evil/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 15:19:00 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/?p=291</guid>
		<description><![CDATA[What can cause this snippet to fail: &#60;% if !@day.user.is_rateable? # Workaround für Darstellungsfehler mit Tabellen ohne Bodies im Safari %&#62; &#60;!-- blah --&#62; &#60;% end %&#62; This little snippet fell apart today. I don&#8217;t know if it is passenger, a newer ruby version, RubyInline. All i know is that i am so totally pissed [...]]]></description>
			<content:encoded><![CDATA[<p>What can cause this snippet to fail:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#006600; font-weight:bold;">&lt;%</span> <span style="color:#9966CC; font-weight:bold;">if</span> !@day.<span style="color:#9900CC;">user</span>.<span style="color:#9900CC;">is_rateable</span>?  <span style="color:#008000; font-style:italic;"># Workaround für Darstellungsfehler mit Tabellen ohne Bodies im Safari  %&gt;</span>
&lt;!-- blah --&gt;
<span style="color:#006600; font-weight:bold;">&lt;%</span> <span style="color:#9966CC; font-weight:bold;">end</span> <span style="color:#006600; font-weight:bold;">%&gt;</span></pre></div></div>

<p>This little snippet fell apart today. I don&#8217;t know if it is passenger, a newer ruby version, RubyInline. All i know is that i am so totally pissed of this incredible amount of incompatible versions of just 3 modules that i literally feel like puking. What a hell of a day.</p>
<p>By the way, the thing that broke was the one-line comment right after the if.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=291&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_291" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2009/02/23/comments-are-evil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tired of all the powerpoint presentations&#8230;</title>
		<link>http://info.michael-simons.eu/2008/04/23/tired-of-all-the-powerpoint-presentations/</link>
		<comments>http://info.michael-simons.eu/2008/04/23/tired-of-all-the-powerpoint-presentations/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 13:20:47 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[JAX]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Powerpoint]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/?p=163</guid>
		<description><![CDATA[Right now i&#8217;m in Wiesbaden, attending the JAX 2008 conference. The mood is somewhat different compared to the DOAG i used to visit the last years. The people are more open minded, partially much younger and generally try to be much cooler. And for the sake of it, some are even more interesting and after [...]]]></description>
			<content:encoded><![CDATA[<p>Right now i&#8217;m in Wiesbaden, attending the <a href="http://www.jax.de">JAX 2008</a> conference.</p>
<p>The mood is somewhat different compared to the <a href="http://www.doag.org">DOAG</a> i used to visit the last years. The people are more open minded, partially much younger and generally try to be much cooler. And for the sake of it, some are even more interesting and after all, there isn&#8217;t that ongoing whining about Oracle not engaging in Forms 6i Client Server any more (although, i must admit, i somewhat like <a href="/tag/oracle-forms/">Oracle Forms</a> 6i, maybe it&#8217;s a love/hate relationship, trust me, i know both worlds, Java and Forms).</p>
<p>The sessions suffer from one big problem: Many of them just seem to play <em>powerpoint karaoke</em>: Throw in a bunch of crappy slides with a handfull code snippets and sing-a-long to that stuff which means basically: Hind behind the slides.</p>
<p>Let me tell you: This is so boring and pointless. In the past i tried to be polite and always stayed to the end of a session but the last 2 or 3 conferences i can&#8217;t stand it any more. I can read myself, thanks. If you haven&#8217;t got anything additionally to say, just pass me the slide and i&#8217;m fine.</p>
<p>The 3 most interesting sessions where the sessions spoken freely with the slides just illustrating the speech. I especially liked <a href="http://liferay.com/web/bchan/home">Brian Chans</a> presentation of <em>Liferay Portal</em>, <a href="http://blog.springsource.com/main/author/rodj/">Rod Johnsons</a> keynote on the future of J2EE and the most witty one, <a href="http://blogs.tedneward.com/">Ted Newards</a> talk about the renaissance of languages. It was funny, included the audience, was well prepared and freely hold, not to forget the topic: It wasn&#8217;t about the nth framework around the corner but about the nearly philosophy topic about the &#8220;perfect programming language&#8221;.</p>
<p>I really wish that i&#8217;d be creative and intelligent enough to design a language that is not predestined to die an early death, but i ain&#8217;t. But i can distinguish a sharp tool from a spoon if i see one and i can adopt to it very easily. And in that sense i share Teds opinion that a discussion about abstracting things and about the tool itself is of much more value than implementing some arbitrary pattern (i.e. one be the GOF) in just another framework. For example, many implementations of some patterns in frameworks have been rendered obsolete by more powerful and more expressive languages and i&#8217;d like to see this trend go on.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=163&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_163" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2008/04/23/tired-of-all-the-powerpoint-presentations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beyond all evil: Javas definition of an object</title>
		<link>http://info.michael-simons.eu/2008/04/09/beyond-all-evil-javas-definition-of-an-object/</link>
		<comments>http://info.michael-simons.eu/2008/04/09/beyond-all-evil-javas-definition-of-an-object/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 07:08:56 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[SCJP]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/?p=162</guid>
		<description><![CDATA[Some days i ago, i decided to revamp my ambitions to get the scjp thingy done. What exactly for, i don&#8217;t know. But working to the self tests, i found the following: class Ring &#123; final static int x2 = 7; final static Integer x4 = 8; public static void main&#40;String&#91;&#93; args&#41; &#123; Integer x1 [...]]]></description>
			<content:encoded><![CDATA[<p>Some days i ago, i decided to revamp my ambitions to get the <a href="http://info.michael-simons.eu/tag/scjp/">scjp</a> thingy done. What exactly for, i don&#8217;t know. But working to the self tests, i found the following:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Ring <span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">int</span> x2 <span style="color: #339933;">=</span> <span style="color: #cc66cc;">7</span><span style="color: #339933;">;</span>
  <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #003399;">Integer</span> x4 <span style="color: #339933;">=</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003399;">Integer</span> x1 <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">;</span>
    <span style="color: #003399;">String</span> s <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;a&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>x1 <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span> s <span style="color: #339933;">+=</span> <span style="color: #0000ff;">&quot;b&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">switch</span><span style="color: #009900;">&#40;</span>x1<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">:</span> s <span style="color: #339933;">+=</span> <span style="color: #0000ff;">&quot;c&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">case</span> x2<span style="color: #339933;">:</span> s <span style="color: #339933;">+=</span> <span style="color: #0000ff;">&quot;d&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #000000; font-weight: bold;">case</span> x4<span style="color: #339933;">:</span> s <span style="color: #339933;">+=</span> <span style="color: #0000ff;">&quot;e&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Questions is: Some arbitrary output or a compilation error and if, on which line.</p>
<p>Answer: Compilation fails due an error on line 11. What the frag? The obviously totally retarded switch statement can only handle constant values in its branches. So what? x4 is declared final static, as constant as it can be in Java. But no&#8230; Because its a big difference between int and Integer and due to the auto boxing and unboxing in Java 5 and up, the object Integer isn&#8217;t constant opposed to the scalar int.</p>
<p>Summary: A big deal with the SCJP is to teach the contestants how to work around some brain dead things in Java. Don&#8217;t get me wrong, i actually like Java, but the more i do in Ruby and the likes, the more some concepts in Java seem and are just wrong, like the for example not being all things equally objects.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=162&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_162" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2008/04/09/beyond-all-evil-javas-definition-of-an-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3 days with Linux</title>
		<link>http://info.michael-simons.eu/2008/02/08/3-days-with-linux/</link>
		<comments>http://info.michael-simons.eu/2008/02/08/3-days-with-linux/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 10:40:04 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/2008/02/08/3-days-with-linux/</guid>
		<description><![CDATA[Since Tuesday i installed Debian Linux 4 times on my new Dell Vostro 200. The choice of hardware was kinda stupid. I thought, well this thing is not a special thingy but plain standard. Well, seems, it isn&#8217;t. The first setback was, that the Debian installer booted from CD-Rom but didn&#8217;t recognize it afterwards. Yippie&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Since Tuesday i installed Debian Linux 4 times on my new Dell Vostro 200.</p>
<p>The choice of hardware was kinda stupid. I thought, well this thing is not a special thingy but plain standard. Well, seems, it isn&#8217;t.</p>
<p>The first setback was, that the Debian installer booted from CD-Rom but didn&#8217;t recognize it afterwards. Yippie&#8230; I had to change the SATA Bios settings from IDE to RAID which means in reality, to <a href="http://de.wikipedia.org/wiki/Advanced_Host_Controller_Interface">AHCI</a>. 2 things changed: Debian can be installed from CD-Rom and the dualboot Windows went nuts, i.e. crashed with a BSOD, even in safe mode. Solution to that was first switching back to IDE mode, installing some Intel driver for RAID thingies (really, there&#8217;s no raid in the machine&#8230; *sigh*), switch back et voila.</p>
<p>Next thing: The ethernet controller was to new. It&#8217;s kinda e1000 but not yet supported in the current testing kernel. The driver can be downloaded <a href="http://downloadcenter.intel.com/detail_desc.aspx?strState=LIVE&#038;DwnldID=9180&#038;agr=Y&#038;lang=eng">at intels</a> site. I&#8217;ve chosen to skip network while installation and downloaded a full image. If you want to install from a netinstall image and have no 2nd nic at hand, <a href="http://www.hardwarefetish.com/blog/index.php?/archives/219-DELL-Vostro-200-mit-Debian-aufsetzen.html">here you&#8217;ll find a precompiled module</a>. The blogs seems well written, but i wouldn&#8217;t call the Vostro a bunch of crap. The thing is very low noise, with Windows XP rock solid (at least at my workplace {i actually have two of them, at work and now at home}) and i appreciate the Dell pickup service. Another great howto is presented at the <a href="http://ubuntuforums.org/showthread.php?p=3370406">Ubuntu forums</a>.</p>
<p>The next closed source thing i installed where the ATI drivers from <a href="https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/catalyst_81_linux.html">here</a> without a problem.</p>
<p>The things that lead to multiple reinstalls where the decision between KDE and GNOME. I just wanted to test them and didn&#8217;t want to purge every single package afterwards. In the end i went for GNOME.</p>
<p>So now i have a Desktop with the preinstalled Vista on a one partition and my new all day Debian system on a fully encrypted LVM partition. The later one was really no big deal to create with the Debian installer. The whole filesystem is encrypted except a boot partition and a relatively big space which i wanna spent on virtual machines.</p>
<p><a href="http://info.michael-simons.eu/2008/01/31/i-care/#comment-6424">prego</a> stated that i should spent some energy into compiz. I already are accustomed to continuous zoom in the whole desktop, some nice effects and semi transparent windows through Mac OS X, for that to say, but i didn&#8217;t want to add non &#8220;official&#8221; repositories. In the end, i give it a try and followed the instructions <a href="http://www.pendrivelinux.com/2007/11/03/how-to-install-compiz-fusion-on-debian-lenny/">here</a> and used the instructions for the xorg.conf from <a href="http://handyfloss.wordpress.com/2007/08/14/compiz-fusion-under-debian-lenny-on-my-laptop/">here</a> without that Xgl thingies. What can i say: It works and looks great. The wobbling windows are hilarious <img src='http://info.michael-simons.eu/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>For my photo collection i already installed digiKam, which is a great tool.</p>
<p>Next steps are migrating my email from Apple Mail.app to a local IMAP server. Anyone suggestions which email client to use?</p>
<p>A friend tried to convince me several times to reinstall my Macbook for good but i don&#8217;t want to. Things used to work and broke with an OS update. And no, i&#8217;m not using *any* of the OS X system hacks. I used to be able to upgrade from release to release (hell, the iMac made it from 10.3.8 to 10.5.1 without a problem) and all of sudden i&#8217;m back in windows times: Upgrade and you&#8217;re doomed. Suck my dick&#8230; I don&#8217;t wanna go this path ever again. And then there the recent developments with Apple. I&#8217;ve been wearing a t with &#8220;Think different&#8221; know for about 5 years, i always like their products, the integration of Unix and eyecandy. But the apps are getting worse with every new release the last months. Apples behaviour to make you pay for a simple software upgrade (sarbane oxley my ass&#8230;, i&#8217;m expecting the first bugfix to be payed because the OS is no abo related model). OS Xs unablity to encrypt the whole volume (it can encrypt your home folder in some silly image file) without external tools (recently, <a href="http://www.truecrypt.org/">Truecrypt</a> can do this.</p>
<p>Stop. Must&#8230; breath&#8230; again. </p>
<p>In the end, i think three days without much <a href="http://dailyfratze.de/michael/2008/2/7">sleep</a> were well spend.</p>
<p>As before, i&#8217;ll keep you updated, if you like <img src='http://info.michael-simons.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=148&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_148" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2008/02/08/3-days-with-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Apple&#8217;s making me sick&#8230;</title>
		<link>http://info.michael-simons.eu/2008/02/04/apples-making-me-sick/</link>
		<comments>http://info.michael-simons.eu/2008/02/04/apples-making-me-sick/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 16:41:35 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/2008/02/04/apples-making-me-sick/</guid>
		<description><![CDATA[iTunes changing music tagged Soundtrack to Filmmusik, another thread and guess what, i experienced the same feature. I really like some of the &#8220;i take care of your problems stuff&#8221; like don&#8217;t thinking in mp3 files anymore but in a collection but this is nuts. I choose soundtrack as a genre intentionally and nothing else. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://discussions.apple.com/thread.jspa?messageID=6496496">iTunes changing music tagged Soundtrack to Filmmusik</a>, <a href="http://www.macuser.de/forum/showthread.php?t=334001">another thread</a> and guess what, i experienced the same feature.</p>
<p>I really like some of the &#8220;i take care of your problems stuff&#8221; like don&#8217;t thinking in mp3 files anymore but in a collection but this is nuts. I choose soundtrack as a genre intentionally and nothing else. </p>
<p>I really do like Apples iTunes but thats way over the top. Why not randomly rename the songs instead? And please nobody tell me i have a problem with id3tags. I tagged every single file with id3tag v2.3 after encoding them with lame, the tags are correct. Bah, i think i&#8217;m gonna puke.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=146&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_146" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2008/02/04/apples-making-me-sick/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Negative Erlebnisse</title>
		<link>http://info.michael-simons.eu/2007/12/11/negative-erlebnisse/</link>
		<comments>http://info.michael-simons.eu/2007/12/11/negative-erlebnisse/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 11:07:10 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[German posts]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Oracle VM]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/2007/12/11/negative-erlebnisse/</guid>
		<description><![CDATA[Ein kurzes Update bzgl. meiner Installation von Oracle VM Server. Der VM Server ist stupide einfach zu installieren. Alles, was danach folgt, ist eine Qual, wenn man einmal den Komfort von apt-get, debian und co. kennen gelernt hat. Ich habe gerade das Gefühl, ich werde wahnsinnig dabei. Es ist unter Oracle Enterprise Linux ohne weiteres [...]]]></description>
			<content:encoded><![CDATA[<p>Ein kurzes Update bzgl. meiner <a href="http://info.michael-simons.eu/2007/11/28/positive-erlebnisse/">Installation von Oracle VM Server</a>.</p>
<p>Der VM Server ist stupide einfach zu installieren. Alles, was danach folgt, ist eine Qual, wenn man einmal den Komfort von apt-get, debian und co. kennen gelernt hat. Ich habe gerade das Gefühl, ich werde wahnsinnig dabei.</p>
<p>Es ist unter Oracle Enterprise Linux ohne weiteres nicht möglich, nachträglich noch weitere Pakete aus den Installations CDs zu installieren. Dazu braucht man einen Account im Oracle Unbreakable Linux Netzwerk. Ich will die Schuld nicht alleine Oracle anlasten, bei RedHat läuft es wohl genauso. </p>
<p>Worauf ich hinaus will: Der Erfahrungsbericht folgt, allerdings später, als geplant.</p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=133&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_133" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2007/12/11/negative-erlebnisse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why Apple users seems odd sometimes</title>
		<link>http://info.michael-simons.eu/2007/10/29/why-apple-users-seems-odd-sometimes/</link>
		<comments>http://info.michael-simons.eu/2007/10/29/why-apple-users-seems-odd-sometimes/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 18:05:58 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://info.michael-simons.eu/2007/10/29/why-apple-users-seems-odd-sometimes/</guid>
		<description><![CDATA[Some Apple users are happy about a &#8220;goto line xy&#8221; function in a shitty text editor: Leopard Love: &#8220;Go To&#8221; in TextEdit Share This]]></description>
			<content:encoded><![CDATA[<p>Some Apple users are happy about a &#8220;goto line xy&#8221; function in a shitty text editor:</p>
<p><a href="http://www.tuaw.com/2007/10/29/leopard-love-go-to-in-textedit/">Leopard Love: &#8220;Go To&#8221; in TextEdit</a></p>
<p class="akst_link"><a href="http://info.michael-simons.eu/?p=129&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_129" class="akst_share_link " rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://info.michael-simons.eu/2007/10/29/why-apple-users-seems-odd-sometimes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.535 seconds -->

