<?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>Space Babies</title>
	<atom:link href="http://www.spacebabies.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spacebabies.nl</link>
	<description>extraterrestrialicious web apps</description>
	<lastBuildDate>Tue, 09 Mar 2010 10:10:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RailsWayCon: I am attending</title>
		<link>http://www.spacebabies.nl/2010/03/09/railswaycon-i-am-attending/</link>
		<comments>http://www.spacebabies.nl/2010/03/09/railswaycon-i-am-attending/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 10:03:35 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=603</guid>
		<description><![CDATA[Being part of the Rails community is great. It&#8217;s filled with admirable people like Katz, Koz, en Fuchs. All are active Rails core members. So I decided to go to RailsWayCon 2010 and meet them in Berlin!
It&#8217;s nice being able to take the ICE bullet-train and spend a few days submerged in Rails/Rubyness. And I ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.railswayconference.com/"><img class="alignright size-full wp-image-604" title="RWC2010" src="http://www.spacebabies.nl/wp-content/uploads/2010/03/RWC2010.gif" alt="" width="180" height="60" /></a>Being part of the Rails community is great. It&#8217;s filled with admirable people like Katz, Koz, en Fuchs. All are active Rails core members. So I decided to go to <a href="http://www.railswayconference.com/">RailsWayCon 2010</a> and meet them in Berlin!</p>
<p><span id="more-603"></span>It&#8217;s nice being able to take the ICE bullet-train and spend a few days submerged in Rails/Rubyness. And I get to meet old friends in Berlin and see the city. I might even bring my entire family. Drop me a (private) comment here if you&#8217;re going as well and want to hook up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/03/09/railswaycon-i-am-attending/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fake Multiple Table Inheritance</title>
		<link>http://www.spacebabies.nl/2010/03/02/fake-multiple-table-inheritance/</link>
		<comments>http://www.spacebabies.nl/2010/03/02/fake-multiple-table-inheritance/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 12:58:59 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=599</guid>
		<description><![CDATA[For many years now a pattern has emerged in my Rails websites. Most models will have Title, Description, Online at, Offline at, Is visible, Url and Image_file_name fields. It screams to be solved using an underlying common model using the &#8220;is_a&#8221; pattern. There is no clean way to solve this in Rails. I discovered this ]]></description>
			<content:encoded><![CDATA[<p>For many years now a pattern has emerged in my Rails websites. Most models will have Title, Description, Online at, Offline at, Is visible, Url and Image_file_name fields. It screams to be solved using an underlying common model using the &#8220;is_a&#8221; pattern. There is no clean way to solve this in Rails. I discovered <a href="http://mediumexposure.com/multiple-table-inheritance-active-record/">this post</a> though, which outlines a good method to solve this problem.</p>
<p><span id="more-599"></span>For the sake of Google I am going to spend the rest of this post using various phrases in the hopes of tying this post to various (desperate) searches, as I have done so many times in the past. <a href="http://mediumexposure.com/multiple-table-inheritance-active-record/">Multiple Table Inheritance with Active Record</a> describes the pattern in which you have a has_one relationship between your models and a common subset of attributes. Your model will always have the other &#8220;has_one&#8221; shared model, they are tied together. Its attributes become part of the model itself. It solves the problem of a Content Management System in which you always have a title, description and publication dates for lots of different objects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/03/02/fake-multiple-table-inheritance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unobtrusive mp3 player</title>
		<link>http://www.spacebabies.nl/2010/02/26/unobtrusive-mp3-player/</link>
		<comments>http://www.spacebabies.nl/2010/02/26/unobtrusive-mp3-player/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 09:28:15 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=593</guid>
		<description><![CDATA[Last year, unobtrusive javascript really hit the scene and my sites no exception. I&#8217;ve been perfecting the technique to show an mp3 audio player, which I have debuted at radio6.nl this week. It&#8217;s a tiny bit of Javascript with a big help from jQuery.
Basically what you want is to create an mp3 player on the ]]></description>
			<content:encoded><![CDATA[<p>Last year, <a href="http://en.wikipedia.org/wiki/Unobtrusive_JavaScript">unobtrusive javascript</a> really hit the scene and my sites no exception. I&#8217;ve been perfecting the technique to show an mp3 audio player, which I have debuted at <a href="http://radio6.nl/">radio6.nl</a> this week. It&#8217;s a tiny bit of Javascript with a big help from jQuery.</p>
<p><span id="more-593"></span>Basically what you want is to create an mp3 player on the fly, instead of embedding this with an OBJECT tag. This keeps the page very light to load. It also makes sure that older browsers and mobile devices still see the regular mp3 file, so they can download it and play in some other way. It&#8217;s also great for search engines since it keeps all the markup semantic, and adds behaviour on top of that. Just like Tim Berners-Lee intended!</p>
<p>Last year I would probably have used things like swfobject or the Anarchy player. But there is no reason not to solve this in jQuery directly. All it takes is this little bit of javascript:</p>
<pre lang="js">// replace all links to mp3 files with a flash player
$("a[href$='.mp3']").each(function(){
  var href = $(this).attr('href');
  var player = '&lt;div class="player"&gt;&lt;object type="application/x-shockwave-flash" data="'+Site.Config.theme_url+'/flash/player_mp3_maxi.swf" width="200" height="20"&gt; \
    &lt;param name="movie" value="'+Site.Config.theme_url+'/flash/player_mp3_maxi.swf" /&gt; \
    &lt;param name="FlashVars" value="mp3='+href+'" /&gt; \
  &lt;/object&gt;&lt;p&gt;'+$(this).html()+'&lt;/p&gt;&lt;/div&gt;';
  $(this).replaceWith(player);
});</pre>
<p>Naturally this would be inside the document ready event.</p>
<p>Site.Config is just top-level hash that holds various functions related to the application. And I found the MP3 player <a href="http://flash-mp3-player.net/">here</a>, it&#8217;s tiny and fast and even customizable, perfect for my needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/26/unobtrusive-mp3-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Election special</title>
		<link>http://www.spacebabies.nl/2010/02/23/election-special/</link>
		<comments>http://www.spacebabies.nl/2010/02/23/election-special/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 21:30:14 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[politics]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=587</guid>
		<description><![CDATA[Seems like the crisis in our parliament has become global news. Guess &#8220;our boys&#8221; did some fine things in Uruzgan. Too bad the majority of the country wants to end the war. Anyway. I recently built the election special for www.radio1.nl. I just love how fast I can whip up specials like this in Ruby ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.radio1.nl/verkiezingskaravaan"><img class="alignright size-thumbnail wp-image-588" title="Schermafbeelding 2010-02-23 om 22.26.20" src="http://www.spacebabies.nl/wp-content/uploads/2010/02/Schermafbeelding-2010-02-23-om-22.26.20-150x150.png" alt="" width="150" height="150" /></a>Seems like the crisis in our parliament has become global news. Guess &#8220;our boys&#8221; did some fine things in Uruzgan. Too bad the majority of the country wants to end the war. Anyway. I recently built the <a href="http://www.radio1.nl/verkiezingskaravaan">election special</a> for www.radio1.nl. I just love how fast I can whip up specials like this in Ruby on Rails, and integrate it into the core of the app without making the code any dirtier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/23/election-special/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Humor</title>
		<link>http://www.spacebabies.nl/2010/02/19/humor/</link>
		<comments>http://www.spacebabies.nl/2010/02/19/humor/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 19:13:30 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=585</guid>
		<description><![CDATA[http://smashfaceonkeyboardpostresult.com/
]]></description>
			<content:encoded><![CDATA[<p><a href="http://smashfaceonkeyboardpostresult.com/">http://smashfaceonkeyboardpostresult.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/19/humor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL query logging in Wordpress</title>
		<link>http://www.spacebabies.nl/2010/02/19/sql-query-logging-in-wordpress/</link>
		<comments>http://www.spacebabies.nl/2010/02/19/sql-query-logging-in-wordpress/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:35:13 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=583</guid>
		<description><![CDATA[After doing Rails development for so long, it&#8217;s &#8230;.. interesting to develop for other platforms once in a while. I am talking about WPMU, a pretty fantastic multi-blog platform. The lack of documentation is aggravating though, as is the absence of all my Rails tools like the console and the log. Well turns out you ]]></description>
			<content:encoded><![CDATA[<p>After doing Rails development for so long, it&#8217;s &#8230;.. interesting to develop for other platforms once in a while. I am talking about WPMU, a pretty fantastic multi-blog platform. The lack of documentation is aggravating though, as is the absence of all my Rails tools like the console and the log. Well turns out you can have a sql log for Wordpress as well! <a href="http://www.bsdeluxe.com/2009/08/31/rails-like-sql-query-logging-in-wordpress/">This post</a> tells you how, and it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/19/sql-query-logging-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple pulls sexual content from iTunes</title>
		<link>http://www.spacebabies.nl/2010/02/19/apple-pulls-sexual-content-from-itunes/</link>
		<comments>http://www.spacebabies.nl/2010/02/19/apple-pulls-sexual-content-from-itunes/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 09:44:52 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[rants]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=581</guid>
		<description><![CDATA[Apple, as puritan as any US company, has pulled all sexual apps from the iTunes store after &#8220;complaints&#8221;. Mysteriously, all the violent games remain. A MacRumors reader put it very succinctly:
So boobs are bad, but murdering cops is ok. Got it.
Mind you, these apps are all rated for 18+. So you have to wonder how these ]]></description>
			<content:encoded><![CDATA[<p>Apple, as puritan as any US company, has <a href="http://techcrunch.com/2010/02/18/did-apple-just-ban-sexual-content-from-the-app-store/">pulled all sexual apps from the iTunes store</a> after &#8220;complaints&#8221;. Mysteriously, all the violent games remain. A MacRumors reader put it very succinctly:</p>
<blockquote><p>So boobs are bad, but murdering cops is ok. Got it.</p></blockquote>
<p>Mind you, these apps are all rated for 18+. So you have to wonder how these complaints even are possible. If you are a concerned parent pull the rating-switch on your child&#8217;s iPhone!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/19/apple-pulls-sexual-content-from-itunes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MegaMythen: play with the Greek Gods</title>
		<link>http://www.spacebabies.nl/2010/02/18/megamythen-play-with-the-greek-gods/</link>
		<comments>http://www.spacebabies.nl/2010/02/18/megamythen-play-with-the-greek-gods/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 13:07:57 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=572</guid>
		<description><![CDATA[Late last year I have built the back-end for a very slick online game called MegaMythen. In this game you can play with the ancient Greek Gods and travel up mount Olympus. This game has launched today and it looks even better than I had imagined. The gameplay is very intuitive and smooth. I urge ]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-573" title="Screenshot MegaMythen" src="http://www.spacebabies.nl/wp-content/uploads/2010/02/Game_700p.jpg" alt="" width="88" height="59" />Late last year I have built the back-end for a very slick online game called <a href="http://www.megamythen.nl/">MegaMythen</a>. In this game you can play with the ancient Greek Gods and travel up mount Olympus. This game has launched today and it looks even better than I had imagined. The gameplay is very intuitive and smooth. I urge you to check it out even if you don&#8217;t play games at all: <a href="www.megamythen.nl/">www.megamythen.nl</a>.</p>
<p><span id="more-572"></span>The back-end is completely Rails of course and has a very small footprint. Just 8 controllers including all boilerplate code. The game uses this back-end via JSON and the admins can customize almost every aspect of the game, including in-game dialogs and images. Both myself and <a href="http://www.kamerblauwlicht.nl/">Daniël van Gils</a>, the game developer, worked in Git and this has been a godsend.</p>
<p>For your previewing pleasure, some screenshots:</p>

<a href='http://www.spacebabies.nl/2010/02/18/megamythen-play-with-the-greek-gods/game_700p/' title='Screenshot MegaMythen'><img width="150" height="150" src="http://www.spacebabies.nl/wp-content/uploads/2010/02/Game_700p-150x150.jpg" class="attachment-thumbnail" alt="" title="Screenshot MegaMythen" /></a>
<a href='http://www.spacebabies.nl/2010/02/18/megamythen-play-with-the-greek-gods/schermafbeelding-2010-02-18-om-14-05-03/' title='Schermafbeelding 2010-02-18 om 14.05.03'><img width="150" height="150" src="http://www.spacebabies.nl/wp-content/uploads/2010/02/Schermafbeelding-2010-02-18-om-14.05.03-150x150.png" class="attachment-thumbnail" alt="" title="Schermafbeelding 2010-02-18 om 14.05.03" /></a>
<a href='http://www.spacebabies.nl/2010/02/18/megamythen-play-with-the-greek-gods/schermafbeelding-2010-02-18-om-14-05-46/' title='Schermafbeelding 2010-02-18 om 14.05.46'><img width="150" height="150" src="http://www.spacebabies.nl/wp-content/uploads/2010/02/Schermafbeelding-2010-02-18-om-14.05.46-150x150.png" class="attachment-thumbnail" alt="" title="Schermafbeelding 2010-02-18 om 14.05.46" /></a>
<a href='http://www.spacebabies.nl/2010/02/18/megamythen-play-with-the-greek-gods/schermafbeelding-2010-02-18-om-14-07-06/' title='Schermafbeelding 2010-02-18 om 14.07.06'><img width="150" height="150" src="http://www.spacebabies.nl/wp-content/uploads/2010/02/Schermafbeelding-2010-02-18-om-14.07.06-150x150.png" class="attachment-thumbnail" alt="" title="Schermafbeelding 2010-02-18 om 14.07.06" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/18/megamythen-play-with-the-greek-gods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross-browser testing</title>
		<link>http://www.spacebabies.nl/2010/02/17/cross-browser-testing/</link>
		<comments>http://www.spacebabies.nl/2010/02/17/cross-browser-testing/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 19:03:06 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=570</guid>
		<description><![CDATA[It&#8217;s one of the most tedious aspects of my job: cross-browser testing. Meaning: see if the stuff I have developed looks the same in all browsers (Firefox, Opera, Safari and -ick- IE too). Luckily this can be automated, saving me lots of headaches and lots of different computers. Ta-daa! Litmusapp.
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s one of the most tedious aspects of my job: cross-browser testing. Meaning: see if the stuff I have developed looks the same in all browsers (Firefox, Opera, Safari and -ick- IE too). Luckily this can be automated, saving me lots of headaches and lots of different computers. Ta-daa! <a href="http://litmusapp.com/">Litmusapp</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/17/cross-browser-testing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Start a new git remote branch</title>
		<link>http://www.spacebabies.nl/2010/02/08/start-a-new-git-remote-branch/</link>
		<comments>http://www.spacebabies.nl/2010/02/08/start-a-new-git-remote-branch/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 15:43:07 +0000</pubDate>
		<dc:creator>joost</dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.spacebabies.nl/?p=566</guid>
		<description><![CDATA[Since I am tired of Googling it, I am going to post the commands required to start a new local branch in git, then push that to the origin, then pull it in to continue working on it. If you don&#8217;t know what I am talking about, that&#8217;s fine. I do.  

$ git checkout ]]></description>
			<content:encoded><![CDATA[<p>Since I am <a href="http://djwonk.com/blog/2009/04/18/tracking-remote-git-branches/">tired of Googling</a> it, I am going to post the commands required to start a new local branch in git, then push that to the origin, then pull it in to continue working on it. If you don&#8217;t know what I am talking about, that&#8217;s fine. I do. <img src='http://www.spacebabies.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><span id="more-566"></span></p>
<pre>$ git checkout -b zzz
# Let the hacking commence...
$ git push origin zzz
$ git checkout master # see note 2
$ git branch -f zzz origin/zzz
$ git checkout zzz
# Let the hacking continue...</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.spacebabies.nl/2010/02/08/start-a-new-git-remote-branch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
