<?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>Rickard Andersson</title>
	<atom:link href="http://rickardandersson.com/feed" rel="self" type="application/rss+xml" />
	<link>http://rickardandersson.com</link>
	<description>The general consensus among clients is that they are your only client.</description>
	<pubDate>Tue, 13 May 2008 06:36:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6-bleeding</generator>
	<language>en</language>
			<item>
		<title>New theme again</title>
		<link>http://rickardandersson.com/new-theme-again</link>
		<comments>http://rickardandersson.com/new-theme-again#comments</comments>
		<pubDate>Tue, 13 May 2008 06:36:52 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=137</guid>
		<description><![CDATA[I got fed up with the old theme, so I decided to try something else. I&#8217;m pretty pleased with the result. Only thing I&#8217;m not liking so much is the sidebar. The archive list is getting a bit too long and without it, I&#8217;ll have to put something else in the sidebar or move it [...]]]></description>
			<content:encoded><![CDATA[<p>I got fed up with the old theme, so I decided to try something else. I&#8217;m pretty pleased with the result. Only thing I&#8217;m not liking so much is the sidebar. The archive list is getting a bit too long and without it, I&#8217;ll have to put something else in the sidebar or move it below the logo.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/new-theme-again/feed</wfw:commentRss>
		</item>
		<item>
		<title>Mr and Mrs Andersson</title>
		<link>http://rickardandersson.com/mr-and-mrs-andersson</link>
		<comments>http://rickardandersson.com/mr-and-mrs-andersson#comments</comments>
		<pubDate>Fri, 09 May 2008 10:57:09 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=133</guid>
		<description><![CDATA[That&#8217;s right, she said yes! ;-)

]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s right, she said yes! ;-)</p>
<p><a href="http://rickardandersson.com/wp-content/uploads/2008/05/rickard_and_lina.jpg"><img src="http://rickardandersson.com/wp-content/uploads/2008/05/rickard_and_lina_small.jpg" alt="Mr and Mrs Andersson" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/mr-and-mrs-andersson/feed</wfw:commentRss>
		</item>
		<item>
		<title>Office update</title>
		<link>http://rickardandersson.com/office-update</link>
		<comments>http://rickardandersson.com/office-update#comments</comments>
		<pubDate>Mon, 31 Mar 2008 14:03:27 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=128</guid>
		<description><![CDATA[Remember this? Well, I&#8217;ve managed to get rid of one computer and tidy up the rest of them so that it now looks like this:

A huge improvement, if you ask me. Now I can actually see the person sitting in the chair on the opposite side of the table.
]]></description>
			<content:encoded><![CDATA[<p>Remember <a href="http://rickardandersson.com/this-is-getting-ridiculous">this</a>? Well, I&#8217;ve managed to get rid of one computer and tidy up the rest of them so that it now looks like this:</p>
<p><img title="My improved office" src="http://rickardandersson.com/wp-content/uploads/2008/03/office_improved.jpg" alt="My improved office" width="600" height="399" /></p>
<p>A huge improvement, if you ask me. Now I can actually see the person sitting in the chair on the opposite side of the table.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/office-update/feed</wfw:commentRss>
		</item>
		<item>
		<title>Ridley Scott finally returns to science fiction</title>
		<link>http://rickardandersson.com/ridley-scott-finally-returns-to-science-fiction</link>
		<comments>http://rickardandersson.com/ridley-scott-finally-returns-to-science-fiction#comments</comments>
		<pubDate>Mon, 31 Mar 2008 13:18:04 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=124</guid>
		<description><![CDATA[Two of my favorite sci-fi movies of all time are Alien and Blade Runner, both the result of the genius that is Ridley Scott. I could hardly contain my excitement when I read over on io9.com that Ridley is getting back in the sci-fi saddle. This time, he&#8217;s going to tackle the film adaptation of [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin-left: 10px; margin-right: 10px; float: right" title="Ridley Scott" src="http://rickardandersson.com/wp-content/uploads/2008/03/ridley_scott.jpg" alt="" width="200" height="300" />Two of my favorite sci-fi movies of all time are Alien and Blade Runner, both the result of the genius that is Ridley Scott. I could hardly contain my excitement when I read over on <a href="http://io9.com/373688/new-ridley-scott-movie-has-better-drugs-than-blade-runner">io9.com</a> that Ridley is getting back in the sci-fi saddle. This time, he&#8217;s going to tackle the film adaptation of <a href="http://en.wikipedia.org/wiki/Brave_New_World">Brave New World</a> by Aldous Huxley. Leonardo DiCaprio, who owns the rights to the movie, will likely be involved in some fashion.</p>
<p>Plans to make the movie have been around for a long time, but &#8220;the technology was not there to make it look convincing&#8221;. If there&#8217;s anyone suitable for making things look convincing, it&#8217;s Ridley Scott. Alien is almost 30 years old now and it still freaks me out.</p>
<p>For those of you interested in the works of Ridley Scott, I recommend the Alien Quadrilogy box set as well as the Blade Runner collectors edition. Both contain lots of extra material and behind the scenes footage from when the movies were made. I particularly enjoyed &#8220;The Beast Within: The Making of Alien&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/ridley-scott-finally-returns-to-science-fiction/feed</wfw:commentRss>
		</item>
		<item>
		<title>MaintainScrollPositionOnPostBack</title>
		<link>http://rickardandersson.com/maintainscrollpositiononpostback</link>
		<comments>http://rickardandersson.com/maintainscrollpositiononpostback#comments</comments>
		<pubDate>Sat, 23 Feb 2008 10:40:57 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=103</guid>
		<description><![CDATA[At work, I&#8217;m currently in the process of migrating a relatively large (~30,000 lines of code) ASP.NET 1.1 project over to 2.0. While doing this, I have picked up a few cool things in ASP.NET 2.0. One of these is the Page.MaintainScrollPositionOnPostBack property. Instead of trying to describe what it does, I&#8217;ll copy and paste [...]]]></description>
			<content:encoded><![CDATA[<p>At work, I&#8217;m currently in the process of migrating a relatively large (~30,000 lines of code) ASP.NET 1.1 project over to 2.0. While doing this, I have picked up a few cool things in ASP.NET 2.0. One of these is the <a href="http://msdn2.microsoft.com/en-us/library/system.web.ui.page.maintainscrollpositiononpostback.aspx">Page.MaintainScrollPositionOnPostBack</a> property. Instead of trying to describe what it does, I&#8217;ll copy and paste from MSDN:</p>
<blockquote><p>When Web pages are posted back to the server, the user is returned to the top of the page. On long Web pages, this means that the user has to scroll the page back to the last position on the page.</p>
<p>When the MaintainScrollPositionOnPostBack() property is set to true, the user is instead returned to the last position on the page.</p></blockquote>
<p>Now, I&#8217;m sure the behind-the-scenes implementation is this isn&#8217;t as pretty or as elegant as something you could cook up yourself, but dammit, it just works. In my case, the app I&#8217;m working on is for an intranet where we have full control over the browsers being used and accessibility isn&#8217;t a big issue. The app itself has lots of really large forms with tables, drop-down lists and submits. The ability to have users submitted back to the exact spot on the page where they submitted the form is a godsend.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/maintainscrollpositiononpostback/feed</wfw:commentRss>
		</item>
		<item>
		<title>reCAPTCHA and XHTML</title>
		<link>http://rickardandersson.com/recaptcha-and-xhtml</link>
		<comments>http://rickardandersson.com/recaptcha-and-xhtml#comments</comments>
		<pubDate>Tue, 19 Feb 2008 19:22:32 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=121</guid>
		<description><![CDATA[I&#8217;ve been relying on reCAPTCHA using the official WordPress plugin to protect against spam on the blog for some time. All the while, I&#8217;ve just assumed whatever markup it spat out would be XHTML 1.0 Strict. Then yesterday, while tinkering with something unrelated, I decided to run the blog through the validator and noticed the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been relying on reCAPTCHA using the official WordPress plugin to protect against spam on the blog for some time. All the while, I&#8217;ve just assumed whatever markup it spat out would be XHTML 1.0 Strict. Then yesterday, while tinkering with something unrelated, I decided to run the blog through the validator and noticed the reCAPTCHA stuff was far from valid XHTML. I thought this was odd so I searched for a discussion on the subject, but I didn&#8217;t find much. I did run across a discussion on the <a href="http://groups.google.com/group/recaptcha/browse_thread/thread/1383caca5487c5ba/f5b7b43ab691cf71">reCAPTCHA mailing list</a> though. In it, I found this little bit:</p>
<blockquote><p>The reCAPTCHA team is not going to be developing XHTML fixes.</p></blockquote>
<p>And that&#8217;s from someone at recaptcha.net. Why not just release a quick fix and get it over with? Is it just me or is this really odd behavior? Why wouldn&#8217;t they make it valid out of the box? The fact that you have to hack the scripts in order to use it with XHTML is a huge turn-off for a lot of people.</p>
<p>As a result of this, I&#8217;ve decided to remove reCAPTCHA from the blog in protest. Come on Recaptcha! Get with the program.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/recaptcha-and-xhtml/feed</wfw:commentRss>
		</item>
		<item>
		<title>TFOOT in the table header</title>
		<link>http://rickardandersson.com/tfoot-in-the-table-header</link>
		<comments>http://rickardandersson.com/tfoot-in-the-table-header#comments</comments>
		<pubDate>Sat, 16 Feb 2008 21:49:58 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=120</guid>
		<description><![CDATA[Today was my first encounter with the HTML tag &#60;tfoot&#62;. It&#8217;s a tag that represents the footer of a table. There&#8217;s &#60;thead&#62; for the header and &#60;tbody&#62; for the, drum roll, body. I carefully constructed the markup for my PHP script that listed incoming orders in a e-commerce application. My plan was to sum up [...]]]></description>
			<content:encoded><![CDATA[<p>Today was my first encounter with the HTML tag &lt;tfoot&gt;. It&#8217;s a tag that represents the footer of a table. There&#8217;s &lt;thead&gt; for the header and &lt;tbody&gt; for the, drum roll, body. I carefully constructed the markup for my PHP script that listed incoming orders in a e-commerce application. My plan was to sum up the order totals and display them in the footer of the table. I did this by adding each order total to a variable in the tbody loop and then  echo&#8217;ed the sum in the tfoot. Everything was working beautifully until I decided to run my markup through the <a href="http://validator.w3.org/">W3C validator</a>. This turned up:</p>
<blockquote><p>document type does not allow element &#8220;tfoot&#8221; here.</p></blockquote>
<p>I looked through the markup and couldn&#8217;t find anything wrong with it. I then had a look in the <a href="http://www.w3.org/TR/html401/struct/tables.html#h-11.2.3">HTML 4.01 spec</a> regarding tfoot and noticed the following:</p>
<blockquote><p>TFOOT must appear before TBODY within a TABLE definition so that user agents can render the foot before receiving all of the (potentially numerous) rows of data.</p></blockquote>
<p>The footer must appear <em>before</em> the body! Call me stupid, but why would a browser want to display the footer before the rest of the table has been rendered?</p>
<p>In my case, I had two choices. I either jump through hoops and somehow calculate the order sum before I start outputting the body of the table (a rather complex operation, I might add) or I just leave tfoot out of the equation completely and use a regular table row in the body to represent the footer. I chose the latter.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/tfoot-in-the-table-header/feed</wfw:commentRss>
		</item>
		<item>
		<title>A decent torrent client for OS X</title>
		<link>http://rickardandersson.com/a-decent-torrent-client-for-os-x</link>
		<comments>http://rickardandersson.com/a-decent-torrent-client-for-os-x#comments</comments>
		<pubDate>Fri, 15 Feb 2008 11:15:40 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=116</guid>
		<description><![CDATA[I hope the post heading didn&#8217;t deceive you. You see, there is no such thing. Lets see what our options are:
Azureus - the Windows Vista of torrent clients. This is what I use today. Every time I start it up, a piece of me dies. This thing has one thing going for it and a [...]]]></description>
			<content:encoded><![CDATA[<p>I hope the post heading didn&#8217;t deceive you. You see, there is no such thing. Lets see what our options are:</p>
<p><a href="http://azureus.sourceforge.net/">Azureus</a> - the Windows Vista of torrent clients. This is what I use today. Every time I start it up, a piece of me dies. This thing has one thing going for it and a million thing going against it. What&#8217;s good about Azureus is that it actually works rather well. Download and upload speeds are generally very good and the client is friends with most private trackers. It also supports all the bells and whistles of the Torrent world such as DHT and encryption. Now, the issue with Azureus is what I hinted at when I compared it to Windows Vista - it&#8217;s a resource hog. Not only is the application itself immensely complex and bloated, but to make matters worse, it&#8217;s Java. That means you have to live with the overhead of the Java virtual machine whenever Azureus starts up.</p>
<p>The fact that it&#8217;s Java usually means another thing, it&#8217;ll look like hell. I have yet to encounter a Java application that looks good on OS X or Windows. The applications sometime try to mimic the widgets and controls of the operating system it&#8217;s running on, but it never quite looks right. In the case of Azureus, they haven&#8217;t even bothered to make it looks remotely Mac:ish. Don&#8217;t stare directly at the following image, it might cause permanent damage.</p>
<p><img src="http://rickardandersson.com/wp-content/uploads/2008/02/azureus1.png" alt="The hideous user interface of Azureus" height="363" width="600" /></p>
<p>What the hell happened there?</p>
<p>Moving on. The next client on the list of potentials in <a href="http://www.transmissionbt.com/">Transmission</a>. It&#8217;s actually a rather nice client with a solid looking UI and a decent feature set. My issue with Transmission is that I just don&#8217;t get the same speeds as I do with Azureus. Download speeds are pretty much the same, but for some reason, it won&#8217;t upload anywhere near as much as Azureus does. The UI is nice, but I&#8217;m not a big fan of the main listing where each torrent takes up a lot of screen real estate. When you have 30 torrents in the list, it quickly gets difficult to get an overview.</p>
<p>Next on the list is <a href="http://www.xtorrentp2p.com/">XTorrent</a>. This client is arguably the best looking client I&#8217;ve ever seen. Good looks aside, it has a few issues. First of all, it is based on libTransmission (the torrent library used in Transmission) and most likely has the same speed issues as Transmission. Secondly, it costs $26. I have no problem at all paying for good software, but before I do, I like to get an opinion of how well the software works and that&#8217;s just not possible with the unregistered version of XTorrent. It&#8217;s severely limited. Lastly, the person behind XTorrent, David Watanabe, has a reputation for being a real a**hole and that just doesn&#8217;t fly with me.</p>
<p>Finally, we have <a href="http://www.bitrocket.org/">BitRocket</a>. BitRocket appeared on the scene a little over a year ago and personally, I thought it looked extremely promising. That being said, a little over a year has passed and not a lot has happened. The website is, should we say, spartan and the forums have been down for some time. I&#8217;m not sure if the project is abandoned or what is going on, but <a href="http://sourceforge.net/project/stats/detail.php?group_id=185794&amp;ugn=bitrocket&amp;type=svn&amp;mode=12months">this</a> doesn&#8217;t bode well.</p>
<p>Apart from the 4 clients I&#8217;ve mentioned, there are a few more. The only two I can think of right now are <a href="http://www.bitsonwheels.com/">Bits on Wheels</a> and <a href="http://sarwat.net/bittorrent/">Tomato Torrent</a>. Nothing I would recommend though.</p>
<p>What the OS X world needs is <a href="http://www.utorrent.com/">µTorrent</a>. The developers claim that a <a href="http://forum.utorrent.com/viewtopic.php?id=985">port is still in the works</a> (nice forum software btw), but this song and dance has been going on since 2005 and I&#8217;m starting to doubt whether it will ever happen. You can run µTorrent in OS X using Darwine or CrossOver Mac, but that&#8217;s like hooking up a caravan to a Ferrari.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/a-decent-torrent-client-for-os-x/feed</wfw:commentRss>
		</item>
		<item>
		<title>PHP eats my newline</title>
		<link>http://rickardandersson.com/php-eats-my-newline</link>
		<comments>http://rickardandersson.com/php-eats-my-newline#comments</comments>
		<pubDate>Fri, 01 Feb 2008 23:37:25 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/?p=115</guid>
		<description><![CDATA[Have a look at the PHP manual page on Instruction separation. In particular:
The closing tag for the block will include the immediately trailing newline if one is present.
What this means is that a newline character directly after the PHP end tag will be stripped out. Have a look at this code.
Line 1
&#60;?php echo 'Line 2'; [...]]]></description>
			<content:encoded><![CDATA[<p>Have a look at the PHP manual page on <a href="http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php">Instruction separation</a>. In particular:</p>
<blockquote><p>The closing tag for the block will include the immediately trailing newline if one is present.</p></blockquote>
<p>What this means is that a newline character directly after the PHP end tag will be stripped out. Have a look at this code.</p>
<p><code>Line 1<br />
&lt;?php echo 'Line 2'; ?&gt;<br />
Line 3</code></p>
<p>Looking at it, one would expect the output to be three lines. However, due to the aforementioned oddity, the output is:</p>
<p><code>Line 1<br />
Line 2Line 3</code></p>
<p>This might not be the end of the world for most people because it hardly ever has any impact on the actual appearance of your pages. However, for someone like me, it&#8217;s very annoying. You see, I am extremely anal when it comes to the appearance of markup in my scripts. If I see a line of markup that isn&#8217;t properly indented or if I see missing or redundant whitespace, my programmers OCD kicks in and I start adding &#8220;\t&#8221; and &#8220;\n&#8221; all over the code.</p>
<p>The manual doesn&#8217;t mention anything about the reasoning behind the behavior and I haven&#8217;t been able to find anything online on the subject. The only reason I can think of is that the behavior is there to prevent a single newlines at the very end of scripts. This in turn to prevent &#8220;Headers already sent&#8221; errors when sending HTTP headers (for example cookies). Still, I think it hurts more than it helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/php-eats-my-newline/feed</wfw:commentRss>
		</item>
		<item>
		<title>Putting in the hours</title>
		<link>http://rickardandersson.com/putting-in-the-hours</link>
		<comments>http://rickardandersson.com/putting-in-the-hours#comments</comments>
		<pubDate>Wed, 30 Jan 2008 01:03:14 +0000</pubDate>
		<dc:creator>Rickard</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://rickardandersson.com/2008/01/30/putting-in-the-hours/</guid>
		<description><![CDATA[for (i = 0; i &#60; ∞; i++)
{
&#160;&#160;&#160;&#160;Start with a regular 8 hour work day.
&#160;&#160;&#160;&#160;Come home and have dinner.
&#160;&#160;&#160;&#160;Then sit down for another 5 or 6 hours of work on other projects.
&#160;&#160;&#160;&#160;In the meantime, try to get your car repaired and plan a wedding.
}
Not recommended.
Updated: Forgot the infinite loop!
]]></description>
			<content:encoded><![CDATA[<p><code>for (i = 0; i &lt; ∞; i++)<br />
{<br />
&#160;&#160;&#160;&#160;Start with a regular 8 hour work day.<br />
&#160;&#160;&#160;&#160;Come home and have dinner.<br />
&#160;&#160;&#160;&#160;Then sit down for another 5 or 6 hours of work on other projects.<br />
&#160;&#160;&#160;&#160;In the meantime, try to get your car repaired and plan a wedding.<br />
}</code></p>
<p>Not recommended.</p>
<p>Updated: Forgot the infinite loop!</p>
]]></content:encoded>
			<wfw:commentRss>http://rickardandersson.com/putting-in-the-hours/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
