<?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>Ronald! &#187; General</title>
	<atom:link href="http://www.rchu.nl/cat/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rchu.nl</link>
	<description>My own little corner of the world wide web</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:00:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The Best of October 2011</title>
		<link>http://www.rchu.nl/2011/10/the-best-of-october-2011/</link>
		<comments>http://www.rchu.nl/2011/10/the-best-of-october-2011/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 11:27:05 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[deejay]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[best of]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=933</guid>
		<description><![CDATA[The idea of sharing my best music purchases has been in my head for a while, and now I&#8217;m finally putting it into practice. This is the first monthly blog post where I share some of the best new tracks (just the names, obviously, no illegal downloads!) of the past month. Delta Heavy &#8211; OverkillOverkill/Hold <a href='http://www.rchu.nl/2011/10/the-best-of-october-2011/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>The idea of sharing my best music purchases has been in my head for a while, and now I&#8217;m finally putting it into practice. This is the first monthly blog post where I share some of the best new tracks (just the names, obviously, no illegal downloads!) of the past month.</p>
<p><img src="/images/covers/overkill.png" style="float:left;margin: 0 4px 4px 0;" /><strong>Delta Heavy &#8211; Overkill</strong><br /><span style="color: #777">Overkill/Hold Me &#8211; Single</span><br style="clear: both" /><img src="/images/covers/rollstar.png" style="float:left;margin: 0 4px 4px 0;" /><strong>Dom &#038; Roland &#8211; Rollstar</strong><br /><span style="color: #777">Last Chance Saloon/Rollstar &#8211; Single</span><br style="clear: both" /><img src="/images/covers/cemetery.png" style="float:left;margin: 0 4px 4px 0;" /><strong>Foreign Concept &#038; Bringa &#8211; Cemetery</strong><br /><span style="color: #777">Shogun Audio Presents &#8211; Way of the Warrior</span><br style="clear: both" /><img src="/images/covers/thefirstnote.png" style="float:left;margin: 0 4px 4px 0;" /><strong>High Contrast feat Tiësto and Underworld &#8211; The First Note Is Silent</strong><br /><span style="color: #777">The First Note is Silent &#8211; EP</span><br style="clear: both" /><img src="/images/covers/newlife.png" style="float:left;margin: 0 4px 4px 0;" /><strong>Nero &#8211; New Life</strong><br /><span style="color: #777">Promises EP</span><br style="clear: both" /><img src="/images/covers/bloodshed.png" style="float:left;margin: 0 4px 4px 0;" /><strong>S.P.Y &#8211; Bloodshed</strong><br /><span style="color: #777">Fierce Presents Oblivion &#8211; Single</span><br style="clear: both" /><img src="/images/covers/sacrifice.png" style="float:left;margin: 0 4px 4px 0;" /><strong>Telekinesis &#8211; Sacrifice</strong><br /><span style="color: #777">Sacrifice/Polaris &#8211; Single</span><br style="clear: both" /><img src="/images/covers/thelight.png" style="float:left;margin: 0 4px 4px 0;" /><strong>Trei &#038; L.A.O.S. &#8211; The Light</strong><br /><span style="color: #777">The Light / Mumbo Jumbo &#8211; Single</span><br style="clear: both" /></p>
<p>And for your convienience I&#8217;ve put them all in a <a href="http://www.youtube.com/watch?v=5-vdOtNmMGU&#038;list=PL84D769C2EC55EE54&#038;feature=plpp_play_all">youtube playlist</a>.</p>
<p>Finally I like to point your attention to this album compiled for the 15th birthday of Drum &#038; Bass Arena. It contains 50 gems ranging from oldskool classics to this year&#8217;s hits. Even if you, like me, already have most of the tracks there are probably enough left that make it worth buying (€6.99 on iTunes).</p>
<p><img src="/images/covers/dnbarena15.png" style="float:left;margin: 0 4px 4px 0;" /><strong>Drum &#038; Bass Arena: 15 Years</strong><br /><a style="color: #777" href="http://dnba15.breakbeat.co.uk/">dnba15.breakbeat.co.uk</a><br style="clear: both" /></p>
<p>Mix of the Month<br />
2012 <a href="http://www.rchu.nl/2012/02/mix-of-the-month-january-2012/" title="Mix of the Month – January 2012">Jan</a><br />
2011 Oct <a href="http://www.rchu.nl/2011/12/mix-of-the-month-november-video/" title="Mix of the Month – November (video)">Nov</a> <a href="http://www.rchu.nl/2012/01/mix-of-the-month-december-2011/" title="Mix of the Month – December 2011">Dec</a></p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2011/10/the-best-of-october-2011/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2011/10/the-best-of-october-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new toy website</title>
		<link>http://www.rchu.nl/2011/10/a-new-toy-website-2/</link>
		<comments>http://www.rchu.nl/2011/10/a-new-toy-website-2/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 21:22:05 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=920</guid>
		<description><![CDATA[As some of you might have noticed I&#8217;ve just launched a single-purpose toy website called Mag de verwarming aan (a dutch site that tells you if you can turn the heating on) together with a friend who made the design. It was a fun project overall, and interesting in three ways: Lots of Javascript The <a href='http://www.rchu.nl/2011/10/a-new-toy-website-2/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.rchu.nl/wordpress/wp-content/uploads/p1a-300x180.png" alt="" title="Mag de vewarming aan? Jazeker!" width="300" height="180" class="alignright size-medium wp-image-924" />As some of you might have noticed I&#8217;ve just launched a single-purpose toy website called <a href="http://magdeverwarmingaan.nl"><em>Mag de verwarming aan</em></a> (a dutch site that tells you if you can turn the heating on) together with <a href="http://prezi.com/edsga45604pw/cv-renske-jongbloed/">a friend</a> who made the design. It was a fun project overall, and interesting in three ways:<br />
<span id="more-920"></span></p>
<h2>Lots of Javascript</h2>
<p>The entire functionality (API calls to retrieve the location and weather, user input and the animations) is in the javascript front-end. Not my most elegant because all animations are (slightly) different and the whole application flow is basically displaying the current step and then waiting for user input or the response of an API-call. </p>
<h2>Location and weather APIs</h2>
<p>Stan Wiechers has created <a href="http://code.google.com/p/geo-location-javascript/">geo-location-javascript</a> which I gladly use to determine the location of the user. I&#8217;ve used the <a href="http://code.google.com/apis/maps/documentation/javascript/reference.html">Google maps API</a> for three reasons:</p>
<ol>
<li>Visualisation of the location</li>
<li>A convenient way to let the user input his location if it cannot be determined automatically</li>
<li><a href="http://code.google.com/apis/maps/documentation/javascript/services.html#ReverseGeocoding">Reverse Geocoding (Address Lookup)</a> which, according to the TOS, you can only use if you actually display a map.
</ol>
<p>For the weather I use the Google weather API. The downside is that is it an unofficial API so there is no official documentation and chances are the functionality will change without notice. Unfortunately there is no good alternative if you want the weather based on a longitude/latitude location (there are some US-based weather API&#8217;s that support long/lat locations and <a href="http://developer.yahoo.com/weather/">Yahoo!</a> uses its own <a href="http://developer.yahoo.com/geo/geoplanet/guide/concepts.html">WOEID</a> which means adding extra steps (reverse geocoding, obtaining an WOEID, retrieve the weather).</p>
<h2>SVG images</h2>
<p>Almost all images on the site are SVG images, because they were created as vector images anyway and vector graphics are the shit! SVG images, even though they are uncompressed XML, are way smaller than bitmap files and resize beautifully. Because MSIE support is poor (not supported below version 9) I&#8217;ve added some javascript that replaces all SVG references to PNG images.</p>
<h3>Inline</h3>
<p>I exported the image to SVG using Adobe Illustrator, loaded the XML in my favorite editor and went back to Illustrator. Naming the layer I needed to animate and exporting it again was faster than guessing which path I needed based on the <code>d</code> attribute. The inline SVG code worked immediately in Firefox, but not in Safari and Chrome (both use webkit). This is where the lack of documentation really got anoying. After lots of experimentation the solution was to place all gradient definitions in a <code>&lt;defs&gt;</code> group.</p>
<h3>Aminations</h3>
<p>One animation (the thermometer) was a perfect case to dig into SVG animations, which much more elegant and probably more efficient than a javascript <code>setTimeout()</code> based animation. Because the animation had to be triggered by Javascript after the local temperature had been determined an inline SVG image seems the best way to go. At this point it was apparent that SVG isn&#8217;t widely used on the web as there were few good sources of documentation. Using <a href="http://www.w3.org/TR/SVG/animate.html">the W3C specification</a> because no one has written more friendly documentation and tutorials was a good cue.</p>
<pre class="brush: xml;">
&lt;path id=&quot;kwik&quot; fill=&quot;url(#kwik_1_)&quot; transform=&quot;translate(0,161) scale(1,0)&quot; d=&quot;…&quot;&gt;
    &lt;animateTransform id=&quot;kwik_tr&quot; attributeName=&quot;transform&quot; attributeType=&quot;XML&quot; type=&quot;translate&quot; from=&quot;0,161&quot; to=&quot;0,0&quot; dur=&quot;2s&quot; additive=&quot;sum&quot; fill=&quot;freeze&quot; begin=&quot;indefinite&quot;/&gt;
    &lt;animateTransform id=&quot;kwik_sc&quot; attributeName=&quot;transform&quot; attributeType=&quot;XML&quot; type=&quot;scale&quot; from=&quot;1,0&quot; to=&quot;1,1&quot; dur=&quot;2s&quot; additive=&quot;sum&quot; fill=&quot;freeze&quot; begin=&quot;indefinite&quot;/&gt;
&lt;/path&gt;</pre>
<p>The animations are done with <code>animateTransform</code>, the <code>to</code> attribute is changed with javascript so the thermometers output is based on the actual temperature, and because <code>begin</code> is set to <code>indefinite</code> the animation can be started with some simple javascript:</p>
<pre class="brush: jscript;">
var _sc = Math.min(1, Math.max(0.1, (temp+10)/40));
var _tr = 161 - Math.round(_sc*161);
$('#kwik').attr(&quot;transform&quot;,&quot;translate(0,0) scale(1,1)&quot;);
$('#kwik_tr').attr('to','0,'+_tr);
$('#kwik_sc').attr('to','1,'+_sc);
document.getElementById('kwik_tr').beginElement();
document.getElementById('kwik_sc').beginElement();
</pre>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2011/10/a-new-toy-website-2/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2011/10/a-new-toy-website-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VDJRadio no. 12, sorry for the delay</title>
		<link>http://www.rchu.nl/2011/04/vdjradio-no-12-sorry-for-the-delay/</link>
		<comments>http://www.rchu.nl/2011/04/vdjradio-no-12-sorry-for-the-delay/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 20:06:41 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=764</guid>
		<description><![CDATA[I&#8217;ve recorded this set three weeks ago, so I do apologize for the delay. Last few weeks I&#8217;ve had little time for anything besides studying, plus my controller broke and send it back for warranty so DJing wasn&#8217;t really on my mind at all. Fortunately I think of it now, and since I&#8217;ve just ordered <a href='http://www.rchu.nl/2011/04/vdjradio-no-12-sorry-for-the-delay/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rchu.nl/files/dj/VDJRadio012.mp3"><img class="alignright size-full wp-image-693" title="VDJRadio" src="http://www.rchu.nl/wordpress/wp-content/uploads/VDJRadio.png" alt="" width="150" height="150" /></a>I&#8217;ve recorded this set three weeks ago, so I do apologize for the delay. Last few weeks I&#8217;ve had little time for anything besides studying, plus my controller broke and send it back for warranty so DJing wasn&#8217;t really on my mind at all. Fortunately I think of it now, and since I&#8217;ve just ordered a new controller I should be up an running again within a week, meaning I&#8217;ll probably do my next set when the paper deadline on April 22th has passed.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2011/04/vdjradio-no-12-sorry-for-the-delay/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2011/04/vdjradio-no-12-sorry-for-the-delay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.rchu.nl/files/dj/VDJRadio012.mp3" length="147475503" type="audio/mpeg" />
		</item>
		<item>
		<title>Quick test</title>
		<link>http://www.rchu.nl/2011/03/quick-test/</link>
		<comments>http://www.rchu.nl/2011/03/quick-test/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 11:51:54 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=758</guid>
		<description><![CDATA[Posts should now automatically be posted to my facebook wall. This is a post to test it.]]></description>
			<content:encoded><![CDATA[<p>Posts should now automatically be posted to my facebook wall. This is a post to test it.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2011/03/quick-test/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2011/03/quick-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KockFest 2010</title>
		<link>http://www.rchu.nl/2010/04/kockfest-2010/</link>
		<comments>http://www.rchu.nl/2010/04/kockfest-2010/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 11:55:15 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=468</guid>
		<description><![CDATA[Afgelopen weekeinde was het KockFest 2010. Eigenlijk gewoon het vrijgezellenfeest voor Jeroen, maar KockFest klinkt stoerder. Ik heb het idee dat we ons totaal niet aan de stereotypen van een vrijgezellenfeest (verkleden, gênante opdrachten, strippers en dergelijke) hebben gehouden, maar een aantal zoekopdrachten in Google naar &#8220;vrijgezellenfeest &#60;activiteit&#62;&#8221; toont aan dat die ook helemaal niet <a href='http://www.rchu.nl/2010/04/kockfest-2010/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a title="Resultaten van Google zoekopdrachten naar &quot;vrijgezellenfeest [woord]&quot;" href="http://www.rchu.nl/wordpress/wp-content/uploads/kockfest1.png"><img class="alignright size-medium wp-image-471" title="kockfest" src="http://www.rchu.nl/wordpress/wp-content/uploads/kockfest1-300x92.png" alt="kockfest" width="300" height="92" /></a>Afgelopen weekeinde was het KockFest 2010. Eigenlijk gewoon het vrijgezellenfeest voor Jeroen, maar KockFest klinkt stoerder. Ik heb het idee dat we ons totaal niet aan de stereotypen van een <a href="http://nl.wikipedia.org/wiki/Vrijgezellenfeest">vrijgezellenfeest</a> (verkleden, gênante opdrachten, strippers en dergelijke) hebben gehouden, maar een aantal zoekopdrachten in Google naar <em>&#8220;vrijgezellenfeest &lt;activiteit&gt;&#8221; </em>toont aan dat die ook helemaal niet zo hoog scoren in vergelijking met wat wij hebben gedaan. Ik heb bij de zoekwoorden plaatsnamen achterwege gelaten omdat die extreem veel hoger scoren. De conclusie van dit uitermate wetenschappelijke onderzoek verbaast me eigenlijk niet. Het is gewoon veel leuker om  met z&#8217;n allen leuke dingen te doen, en we zijn uiteraard niet de eersten zijn die dat hebben bedacht.</p>
<p><span id="more-468"></span><br />
<a href="http://www.rchu.nl/wordpress/wp-content/uploads/Piratenboot.jpg"><img class="alignnone size-medium wp-image-487" style="border: 1px solid black; margin: 2px;" title="Piratenboot" src="http://www.rchu.nl/wordpress/wp-content/uploads/Piratenboot-300x225.jpg" alt="Piratenboot" width="300" height="225" /></a><a href="http://www.rchu.nl/wordpress/wp-content/uploads/Immer-Gerade-Aus.ogv"><img class="alignnone size-full wp-image-495" style="border: 1px solid black; margin: 2px;" title="Immer Gerade Aus!" src="http://www.rchu.nl/wordpress/wp-content/uploads/Immer-Gerade-Aus.png" alt="Immer Gerade Aus!" width="300" height="225" /></a><a href="http://www.rchu.nl/wordpress/wp-content/uploads/Schipper-Frenken.JPG"><img class="alignnone size-medium wp-image-490" style="border: 1px solid black; margin: 2px;" title="Schipper Frenken" src="http://www.rchu.nl/wordpress/wp-content/uploads/Schipper-Frenken-300x225.jpg" alt="Schipper Frenken" width="300" height="225" /></a><a href="http://www.rchu.nl/wordpress/wp-content/uploads/Schipper-Schipper.JPG"><img class="alignnone size-medium wp-image-491" style="border: 1px solid black; margin: 2px;" title="Schipper Schipper" src="http://www.rchu.nl/wordpress/wp-content/uploads/Schipper-Schipper-300x225.jpg" alt="Schipper Schipper" width="300" height="225" /></a><a href="http://www.rchu.nl/wordpress/wp-content/uploads/Weduwe-Joustra.jpg"><img class="alignnone size-medium wp-image-492" style="border: 1px solid black; margin: 2px;" title="Weduwe Joustra" src="http://www.rchu.nl/wordpress/wp-content/uploads/Weduwe-Joustra-300x225.jpg" alt="Weduwe Joustra" width="300" height="225" /></a><a href="http://www.rchu.nl/wordpress/wp-content/uploads/Zwaard-in-de-kroeg.jpg"><img class="alignnone size-medium wp-image-493" style="border: 1px solid black; margin: 2px;" title="Zwaard in de kroeg" src="http://www.rchu.nl/wordpress/wp-content/uploads/Zwaard-in-de-kroeg-300x225.jpg" alt="Zwaard in de kroeg" width="300" height="225" /></a></p>
<p><em>Foto&#8217;s gemaakt door <a href="http://www.flickr.com/photos/breun/sets/72157623832170092/">Nils</a>, <a href="http://www.flickr.com/photos/petrikje/sets/72157623837281226/">Patrick</a> en <a href="http://www.dropbox.com/gallery/5950491/1/KockFest?h=e6495c">Ronald</a></em></p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2010/04/kockfest-2010/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2010/04/kockfest-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.rchu.nl/wordpress/wp-content/uploads/Immer-Gerade-Aus.ogv" length="4333900" type="video/ogg" />
		</item>
		<item>
		<title>My Ubuntu AFP server and the 1.5TB of Doom</title>
		<link>http://www.rchu.nl/2009/12/my-ubuntu-afp-server-and-the-1-5tb-of-doom/</link>
		<comments>http://www.rchu.nl/2009/12/my-ubuntu-afp-server-and-the-1-5tb-of-doom/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 08:04:13 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[AFP]]></category>
		<category><![CDATA[Time Machine]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=407</guid>
		<description><![CDATA[The bad part about my girlfriend moving in with me is that my friend who was living with me left and took our local sever with him. We had combined our spare hardware to build us a server and used his old computer because he had 4 ATA controllers and I had only 2. So <a href='http://www.rchu.nl/2009/12/my-ubuntu-afp-server-and-the-1-5tb-of-doom/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rchu.nl/wordpress/wp-content/uploads/hdd3.JPG"><img class="size-medium wp-image-436 alignright" title="Hard Disk" src="http://www.rchu.nl/wordpress/wp-content/uploads/hdd3-300x225.jpg" alt="Hard Disk" width="300" height="225" /></a></p>
<p>The bad part about my girlfriend moving in with me is that my friend who was living with me left and took our local sever with him. We had combined our spare hardware to build us a server and used his old computer because he had 4 ATA controllers and I had only 2. So now I had to configure my old PC to create a new server (&#8217;cause you just can&#8217;t live without one of those :) and bought an extra 1.5TB hard disk. That caused quite some trouble. Since the first wasn&#8217;t properly detected by my onboard SATA controller I returned it and the replacement seemed to work, only to be mounted as read-only after formatting it. After a while the disk wasn&#8217;t properly detected at all. I was surprised with two new disks having the exact same problem, fortunately so was the owner of the web shop where I bought it. He actually called me personally to discuss the situation and concluded that my SATA controller was probably to old to work properly with this big modern disk. So I bought an PCI eSATA controller which solved my problems.</p>
<p>Last weekend I took this card to my friend who also bought a new hard disk and was experiencing similar problems. After I put the card back my big disk wouldn&#8217;t mount anymore, though it worked fine when I booted the Ubuntu Live CD. Long story short (live cd: works, reinstall ubuntu: works, dist-upgrade: broken, reinstall: works, reboot: broken) there we suddenly some errors in the FS which fsck managed to fix.</p>
<p>Anyway, most of you aren&#8217;t at all interested in the above snipped of my life and want some technical information. Which you are going to get in the remaining part of this post. Hey, the benefit of people blogging technical stuff on their personal blog is that you have to read through the irrelevant stuff. Nothing is perfect, right?</p>
<p><span id="more-407"></span></p>
<h2>Setting up ubuntu as an file server</h2>
<p>I followed a<a href="http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/"> great tutorial</a> to set up AFP on my server which was very easy and everything works like a charm. Well, almost everything.</p>
<h3>Permissions</h3>
<p>Since there are two users connecting to the machine there are files created by both that also need to be accessed by both users. Setting the setgid bit on the shares directories and adding both users to a common group is a start, unfortunately there doesn&#8217;t seem to be a way to set the umask for newly created files using netatalk, so in order for other users to be able to write/delete these files I just add the group write permission with a hourly cron job. It&#8217;s ugly, but it does the job.</p>
<h3>Time Machine</h3>
<p>After a short time of backing up with Time Machine I got the infamous <a href="http://discussions.apple.com/thread.jspa?threadID=2142747">error 109</a>.  Since this issue seems to have no solution and chances are slim Apple will do something about it since it they do not support it I decided to make only manual backups at night so they can run uninterrupted, and make backups of my time machine sparsebundle in case the backup gets broken. Yes, that does sound kind of redundant. It&#8217;s far from ideal, but a workable situation. I don&#8217;t need hourly backups anyway, I just want to have something in case of a hard disk crash or something like that.</p>
<p>Yesterday I read that <a href="http://netatalk.sourceforge.net/2.0/ReleaseNotes.html">netatalk 2.0.5 adds time machine support</a>! Since the current version of netatalk in the ubuntu repo is still 2.0.4 I removed it and downloaded the <a href="http://packages.debian.org/sid/netatalk">netatalk-2.0.5-2</a> (and <a href="http://packages.debian.org/sid/libdb4.8">libdb4.8</a> which it depends on and is also not yet in the ubuntu repo) packages from the debian site and installed them with <code>dpkg</code>. This was all much easier than I expected since people on the web were warning others that this is not the proper way to go and everything might get broken and so on. After some initial errors (removing the <code>.AppleDB</code> directories after error -5014 and removing the old sparsebundle as root after error 109 on an partially removed sparsebundle) it now seems to work just fine.</p>
<p>Interesting to note is that with this new time machine support I indeed do not have to create the sparsebundle by hand and that it is now named <code>Granny.sparsebundle</code> (Granny is my laptops name) without the MAC adres. Also interesting is that TM started to continue backing up in a copy of an old backup I made by hand named <code>Granny_macadres.copy.sparsebundle</code>. Apparently the name of the backup is much more flexible nowadays.</p>
<p>Now I&#8217;m just going to make backups wireless hourly without paying attention to it (and thus interrupting it when putting my laptop to sleep) as I used to with my old Time Capsule and see if the new version of netatalk solves the problems I had. For now I&#8217;ve interrupted the initial backup several times now and it is still running (and continuing every time where it was interrupted). So far so good, I can at least say that it works more reliable than with the previous version of netatalk.</p>
<p><strong>Update:</strong> after some initial success backing up to this AFP share is as unreliable as is was before, still getting a lot of 109 errors. Too bad. I decided to just buy an external USB/eSATA case and put the disk in that. It not expensive and works for sure, though I am deeply unhappy with the situation.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2009/12/my-ubuntu-afp-server-and-the-1-5tb-of-doom/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/12/my-ubuntu-afp-server-and-the-1-5tb-of-doom/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PDO: Configuring Apache, MySQL and PHP on OSX 10.5.7</title>
		<link>http://www.rchu.nl/2009/09/pdo-configuring-apache-mysql-and-php-on-osx-10-5-7/</link>
		<comments>http://www.rchu.nl/2009/09/pdo-configuring-apache-mysql-and-php-on-osx-10-5-7/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 11:00:51 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=376</guid>
		<description><![CDATA[I&#8217;d like to use PDO in conjunction with MySQL, but in the PHP installation shipped with OS X by default only pdo_sqlite is enabled. I do not want to compile my own Apache or PHP so the way to go is to simply add the pdo_mysql module. I followed these instructions but after running phpize <a href='http://www.rchu.nl/2009/09/pdo-configuring-apache-mysql-and-php-on-osx-10-5-7/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d like to use PDO in conjunction with MySQL, but in the PHP installation shipped with OS X by default only pdo_sqlite is enabled. I do not want to compile my own Apache or PHP so the way to go is to simply add the pdo_mysql module. I followed <a href="http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/">these</a> instructions but after running phpize there were some warings on my screen and no makefile to be found. My current PHP version is 5.2.8 and I used the source of 5.3.0, so I tried again with 5.2.10 (since no other version was available at the <a href="http://www.php.net/downloads.php">PHP download page</a>). Both yield the same result, namely that it compiles, installs and won&#8217;t start.</p>
<p><code> PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - (null) in Unknown on line 0</code></p>
<p>Following instructions in the comment to remove all architectures but the x86_64 have no effect. I think I have to compile my own PHP installation and have apache use that. Which sucks so much I decided to just wait for Snow Leopard and pray that either pdo_mysql is installed or dynamicly loading libraries is allowed there. I am happy to inform you all that the first is the case. Hurray!</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2009/09/pdo-configuring-apache-mysql-and-php-on-osx-10-5-7/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/09/pdo-configuring-apache-mysql-and-php-on-osx-10-5-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snow Leopard</title>
		<link>http://www.rchu.nl/2009/09/snow-leopard/</link>
		<comments>http://www.rchu.nl/2009/09/snow-leopard/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 07:14:32 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=385</guid>
		<description><![CDATA[Once again I&#8217;ve installed some new OS and write a small post about it. This time it&#8217;s all about Snow Leopard and as usual this is probably more interesting for myself as a checklist sort of thing than for the world to read. It gives more order and satisfaction in the long proces of installing <a href='http://www.rchu.nl/2009/09/snow-leopard/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rchu.nl/wordpress/wp-content/uploads/snow-leopard.jpg"><img class="alignright size-medium wp-image-531" title="Snow Leopard" src="http://www.rchu.nl/wordpress/wp-content/uploads/snow-leopard-300x187.jpg" alt="Snow Leopard" width="300" height="187" /></a>Once again I&#8217;ve installed some new OS and write a small post about it. This time it&#8217;s all about Snow Leopard and as usual this is probably more interesting for myself as a checklist sort of thing than for the world to read. It gives more order and satisfaction in the long proces of installing and customisation and it functions as a central storage for all cool applications, tweaks and scripts that I install and create to make OS X function just the way I like it.</p>
<p><span id="more-385"></span></p>
<h2>Installation</h2>
<p>I&#8217;ve decided not to upgrade my existing installation of Leopard but to go for a fresh clean installation. Leopard was my first OS X installation and I&#8217;ve done quite some installating, customization and so forth and it sounded like a good idea to just start fresh. I remember reading something about a clean install option, but the installer just asks me for the location, gives me some options what to install and starts right away. I had to abort, reboot, and then used the disk utility on the installer DVD to first format my hard drive. Installation went smooth from that point on.</p>
<p>First impressions are as expected, it works smooth. I am surprised about the time it takes to wake from sleep, almost instantly, but that can also be because this installation is fresh and I was used to my old cluttered Leopard.</p>
<h2>Afterwards</h2>
<p>Time to install some.</p>
<ul>
<li>Firefox 3.5</li>
<li>Growl 1.2b4, the latest beta of 1.2 because 1.1 is uncompatible with snow leopard. It seems to work fine, as does the HardwareGrowler.</li>
<li>Perian 1.1.4</li>
<li>Spark 3.0b9 for global hotkeys</li>
<li>iWork &#8217;09 en iLife &#8217;09</li>
<li>Software updates (10.6.1)</li>
<li>Textmate</li>
<li>Latest flash version since <a href="http://www.macrumors.com/2009/09/03/snow-leopard-installation-downgrades-flash-player-to-vulnerable-version/">Snow Leopard ships with an unsafe one.</a></li>
<li>MacTex</li>
</ul>
<p>And to tweak some.</p>
<ul>
<li>Copied my old <code>~/Music</code> directory, iTunes starts with my good old library. Hurray</li>
<li>Copied my old <code>~/Photos</code> directory, iPhoto cannot open (made with a newer version). Running another software update was the key to success.</li>
<li>The first sync with my iPhone authorizes my computer with the iTunes store and gives me all my contacts back. Nice!</li>
<li>Uncomment the line <code>LoadModule php5_module        libexec/apache2/libphp5.so</code> in <code>/etc/apache2/httpd.conf</code> to enable php5. Fortunately for me, snow leopard provides me with <code>pdo_mysql</code> which Leopard did not (and it wasn&#8217;t possible to just add that module).</li>
</ul>
<p>And to get stuck at some.</p>
<ul>
<li>System clock, going to <em>System preferences &gt; International &gt; Formats &gt; Times (customize button)</em> and changing the medium format doesn&#8217;t work anymore :(</li>
</ul>
<p>My ToDo list also has some.</p>
<ul>
<li>mail multicolumn</li>
<li>mail imap subfolder check</li>
<li>spark firewall status scripts</li>
<li>adium</li>
</ul>
<h2>More Tweaks</h2>
<h3>Firewall scripts</h3>
<p>I take my laptop everywhere so I want to keep the built-in firewall fully closed at all times. I do, however, sometimes take it down if some sharing/program/game doesn&#8217;t work, and I almost always forget to enable it again afterewards. Thats what the following script is for. I use the cron daemon to run it every 5 minutes and it checks the firewall status and gives me a growl notification if it&#8217;s disabled.</p>
<pre class="brush: bash;">
#!/bin/sh
if [ `defaults read /Library/Preferences/com.apple.alf globalstate` -eq &amp;quot;0&amp;quot; ]; then
  echo Firewall is currently disabled | /usr/local/bin/growlnotify -a /Applications/System\ Preferences.app -t Warning;
fi
</pre>
<p>I also added an applescript to a global hotkey in Spark to change the firewall status. It checks the status, displays it with the options to change it with a timeout of 5 seconds.</p>
<pre class="brush: applescript;">
# brings the dialog window to front
delay 1
tell me to activate

set fw_status to (do shell script &amp;quot;defaults read /Library/Preferences/com.apple.alf globalstate&amp;quot;)

if fw_status is equal to &amp;quot;2&amp;quot; then
  set dlg_result to display dialog &amp;quot;Allow only essential services&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;All&amp;quot;, &amp;quot;Specific&amp;quot;, &amp;quot;Essential&amp;quot;} default button 3 cancel button 3 with icon note giving up after 10
  set res to button returned of dlg_result
else if fw_status is equal to &amp;quot;1&amp;quot; then
  set dlg_result to display dialog &amp;quot;Set access for specific services&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;All&amp;quot;, &amp;quot;Specific&amp;quot;, &amp;quot;Essential&amp;quot;} default button 2 cancel button 2 with icon caution giving up after 10
  set res to button returned of dlg_result
else if fw_status is equal to &amp;quot;0&amp;quot; then
  set dlg_result to display dialog &amp;quot;Allow all incomming connections&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;All&amp;quot;, &amp;quot;Specific&amp;quot;, &amp;quot;Essential&amp;quot;} default button 1 cancel button 1 with icon stop giving up after 10
  set res to button returned of dlg_result
end if

if res is equal to &amp;quot;All&amp;quot; then
  do shell script &amp;quot;defaults write /Library/Preferences/com.apple.alf globalstate 0&amp;quot;
  display dialog &amp;quot;Set to 'Allow all incomming connections'&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;OK&amp;quot;} default button 1
else if res is equal to &amp;quot;Specific&amp;quot; then
  do shell script &amp;quot;defaults write /Library/Preferences/com.apple.alf globalstate 1&amp;quot;
  display dialog &amp;quot;Set to 'Set access for specific services'&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;OK&amp;quot;} default button 1
else if res is equal to &amp;quot;Essential&amp;quot; then
  do shell script &amp;quot;defaults write /Library/Preferences/com.apple.alf globalstate 2&amp;quot;
  display dialog &amp;quot;Set to 'Allow only essential services'&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;OK&amp;quot;} default button 1
end if
</pre>
<p>And now I can easily change the status of my firewall</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2009/09/snow-leopard/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/09/snow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is up with Bing?</title>
		<link>http://www.rchu.nl/2009/09/what-is-up-with-bing/</link>
		<comments>http://www.rchu.nl/2009/09/what-is-up-with-bing/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:58:43 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Bing]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=380</guid>
		<description><![CDATA[I only just learned about Bing, watched a screencast and played around with it. I was hoping to be impressed by the nifty features demonstrated in the screencast, but everything I enter in Bing just gives me a plain old search result. I even read the help documents and entered the examples they gave, but <a href='http://www.rchu.nl/2009/09/what-is-up-with-bing/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>I only just learned about <a href="http://www.bing.com/">Bing</a>, watched a <a href="http://d7.allthingsd.com/20090528/d7-video-steve-ballmer-introduces-bing/">screencast</a> and played around with it. I was hoping to be impressed by the nifty features demonstrated in the screencast, but everything I enter in Bing just gives me a plain old search result. I even read the <a href="http://help.live.com/help.aspx?project=wl_searchv1&amp;market=nl-NL&amp;querytype=keyword&amp;query=hcraesbew&amp;domain=www.bing.com:80#toc">help documents</a> and entered the examples they gave, but none of those examples gave any special result.</p>
<p>So I am puzzled. Why would Microsoft launch a new product, show off its great features and then put a website live that doesn&#8217;t do any of the promised features? Looks to me like they have just doomed Bing.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2009/09/what-is-up-with-bing/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/09/what-is-up-with-bing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lekker plat</title>
		<link>http://www.rchu.nl/2009/06/lekker-plat/</link>
		<comments>http://www.rchu.nl/2009/06/lekker-plat/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 08:31:52 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=348</guid>
		<description><![CDATA[Sommige dingen zijn dusdanig banaal dat een genie ze echt niet meer aan kan.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="iTunes Genius - Dikke lul drie bier" href="http://www.rchu.nl/wordpress/wp-content/uploads/photo.jpg"><img class="size-medium wp-image-349 aligncenter" title="iTunes Genius - Dikke lul drie bier" src="http://www.rchu.nl/wordpress/wp-content/uploads/photo-200x300.jpg" alt="iTunes Genius - Dikke lul drie bier" width="200" height="300" /></a></p>
<p style="text-align: center;">Sommige dingen zijn dusdanig banaal dat een genie ze echt niet meer aan kan.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2009/06/lekker-plat/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/06/lekker-plat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

