<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Xavier Defrang</title>
    <link>http://www.defrang.com/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Xavier Defrang</description>
    <item>
      <title>The Simple Joy of Programming</title>
      <description>
&lt;p&gt;I'm usually all for readable instead of "clever" code but I can't help to find this Ruby* one-liner pretty sexy:&lt;/p&gt;

&lt;code&gt;
Hash[*&lt;i&gt;text&lt;/i&gt;.scan(/^([^:]+):(.*)$/).flatten.map(&amp;:strip)]
&lt;/code&gt;

&lt;p&gt;This cute piece parses the given &lt;i&gt;text&lt;/i&gt; and extract all "Key: Value" pairs into an associative array.&lt;/p&gt;

&lt;p&gt;This is the kind of simple joy that Ruby brings.  Right in the middle of the implementation of some larger feature, you figure out you need to parse some text, you just write a single line of code and it just works.&lt;br /&gt;This is worth mentioning because It does not happen that often, to say the least. :)&lt;/p&gt;

&lt;p&gt;* this code requires Rails for the &lt;code&gt;&amp;:symbol&lt;/code&gt; shorthand to work.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Jul 2008 00:18:00 CEST</pubDate>
      <guid>http://www.defrang.com/articles/2008/07/29/the-simple-joy-of-programming</guid>
      <link>http://www.defrang.com/articles/2008/07/29/the-simple-joy-of-programming</link>
      <category>Programming</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/950</trackback:ping>
    </item>
    <item>
      <title>What The Hell Is Wrong With These People?</title>
      <description>
&lt;p&gt;&lt;a href="http://www.theserverside.com/tt/articles/article.tss?l=ARESTfulCorePart1"&gt;Because directly invoking methods on objects is so 2000...&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 23 Jul 2008 21:59:00 CEST</pubDate>
      <guid>http://www.defrang.com/articles/2008/07/23/what-the-hell-is-wrong-with-these-people</guid>
      <link>http://www.defrang.com/articles/2008/07/23/what-the-hell-is-wrong-with-these-people</link>
      <category>Programming</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/949</trackback:ping>
    </item>
    <item>
      <title>When They Were Still Bricks...</title>
      <description>&lt;p style="text-align: center"&gt;“La La La” by &lt;a href="http://www.thebirdandthebee.com"&gt;The Bird and the Bee&lt;/p&gt;

&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/drhFLc3Jm48&amp;hl=en"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/drhFLc3Jm48&amp;hl=en" type="application/x-shockwave-flash" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;</description>
      <pubDate>Sun, 22 Jun 2008 10:02:00 CEST</pubDate>
      <guid>http://www.defrang.com/articles/2008/06/22/when-they-were-still-bricks</guid>
      <link>http://www.defrang.com/articles/2008/06/22/when-they-were-still-bricks</link>
      <category>Music</category>
      <category>Nostalgia</category>
      <category>Games &amp;amp; Toys</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/948</trackback:ping>
    </item>
    <item>
      <title>Note To Self</title>
      <description>&lt;p&gt;Tomorrow: block all incoming traffic on the firewall, lock access to versioning system and go to Brussels crying like a baby to beg this "government" of ours to let me pollute at a reasonable price.&lt;/p&gt;

&lt;p&gt;Enough with the sarcasms.  The thing that sickens me the most is that nobody dares to teach those moaners a basic lesson in world economy.&lt;br /&gt;If they want to get a grip over oil prices, they should either start drilling for rotten dinosaurs in their backyard, or enlist in the USMC to wage war on more oil producing countries...&lt;/p&gt;</description>
      <pubDate>Wed, 18 Jun 2008 18:21:00 CEST</pubDate>
      <guid>http://www.defrang.com/articles/2008/06/18/note-to-self</guid>
      <link>http://www.defrang.com/articles/2008/06/18/note-to-self</link>
      <category>Belgium</category>
      <category>Politics</category>
      <category>Environment</category>
      <category>World</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/947</trackback:ping>
    </item>
    <item>
      <title>Something For Your Mind...</title>
      <description>
&lt;p&gt;Awesome collection of &lt;a href="http://youtube.com/profile_videos?user=88to92"&gt;300+ old school house and rave tracks&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Bonus: a whole bunch of video of &lt;a href="http://youtube.com/profile_videos?user=wwwravehistorycouk"&gt;UK raves from the early 90ies&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Sun,  6 Apr 2008 23:45:00 CEST</pubDate>
      <guid>http://www.defrang.com/articles/2008/04/06/something-for-your-mind</guid>
      <link>http://www.defrang.com/articles/2008/04/06/something-for-your-mind</link>
      <category>Nostalgia</category>
      <category>Music</category>
      <category>Video</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/946</trackback:ping>
    </item>
    <item>
      <title>Ever Meulen Retrospective</title>
      <description>
&lt;p&gt;If you like the &lt;a href="http://en.wikipedia.org/wiki/Ligne_claire"&gt;ligne claire&lt;/a&gt;, you only have one week left to visit the &lt;a href="http://www.beeldbeeld.be/evermeulen/"&gt;Ever Meulen exhibition&lt;/a&gt; in Leuven.

&lt;p&gt;I'm so glad I spotted this a couple of days ago on the door of &lt;a href="http://www.plaizier.be/"&gt;Plaizier&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Sat,  5 Apr 2008 17:51:00 CEST</pubDate>
      <guid>http://www.defrang.com/articles/2008/04/05/ever-meulen-retrospective</guid>
      <link>http://www.defrang.com/articles/2008/04/05/ever-meulen-retrospective</link>
      <category>Art</category>
      <category>Belgium</category>
      <category>Design</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/945</trackback:ping>
    </item>
    <item>
      <title>Last Transmission From Lardossan Cruiser 8-203 X</title>
      <description>&lt;p&gt;Awesome 27 minutes long interview with the late &lt;a href="http://www.discogs.com/artist/James+Stinson"&gt;James Stinson&lt;/a&gt; of &lt;a href="http://www.discogs.com/artist/Drexciya"&gt;Drexciya&lt;/a&gt;, recorded a few months before he passed away.  This was his first and last radio interview and it's like he knew it.&lt;/p&gt;

&lt;object width="425" height="355"&gt;&lt;param name="movie" value="http://www.youtube.com/v/C-LoZho4HC8"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/C-LoZho4HC8" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;</description>
      <pubDate>Sun,  9 Mar 2008 21:44:00 CET</pubDate>
      <guid>http://www.defrang.com/articles/2008/03/09/last-transmission-from-lardossan-cruiser-8-203-x</guid>
      <link>http://www.defrang.com/articles/2008/03/09/last-transmission-from-lardossan-cruiser-8-203-x</link>
      <category>Music</category>
      <category>Nostalgia</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/944</trackback:ping>
    </item>
    <item>
      <title>ActiveResource: A Ride On The Wild Side</title>
      <description>&lt;p&gt;Things have been very quiet down here and hectic everywhere else.  As a proof that this is no lame excuse,  
&lt;a href="http://dev.rubyonrails.org/ticket/10646"&gt;my first Rails patch&lt;/a&gt; was just &lt;a href="http://dev.rubyonrails.org/changeset/8525"&gt;committed&lt;/a&gt; into the trunk.&lt;/p&gt;

&lt;p&gt;For the record, it addresses an issue in ActiveResource which could not locate resources defined
in nested modules.&lt;/p&gt;
&lt;p&gt;I've been using &lt;abbr title="ActiveResource"&gt;ARes&lt;/abbr&gt; a lot in my current project 
in which I've built a rich client-side API packaged into a Rails plugin.  To be honest, I'm into a love-hate relationship with ARes and things were not as smooth as initially &lt;a href="http://www.scribemedia.org/2006/07/09/dhh/"&gt;advertised&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I've experienced some severe hiccups with nested resources, &lt;a href="http://dev.rubyonrails.org/browser/trunk/activeresource/lib/active_resource/base.rb?rev=8528#L223"&gt;inflected collection names&lt;/a&gt;, attributes vs prefix hashes and some nasty XML (un)marshalling oddities.  If I find some time, I will document here the problems I encountered during this wild ride...&lt;/p&gt;

&lt;p&gt;Even though it has given me some serious headaches, I still think this REST approach is better than dealing with a huge black box supposedly implementing some funky flavor of SOAP.&lt;br /&gt;
ARes is not totally mature in its current state but the size of its code base still allows a mere mortal to dive into it and see what's happening.&lt;/p&gt;

&lt;p&gt;If the popularity of REST services keep on rising, ARes will need some real refactoring and internal plumbing work to bring it to the same level as ActiveRecord in the ORM field.&lt;/p&gt;

&lt;p&gt;The bottom line is: ARes is a neat library you may want to play with but you must be warned that things are not as simple as they seem and it may require some significant tweaking on both sides of the wire...&lt;/p&gt;

</description>
      <pubDate>Thu,  3 Jan 2008 23:06:00 CET</pubDate>
      <guid>http://www.defrang.com/articles/2008/01/03/activeresource-a-ride-on-the-wild-side</guid>
      <link>http://www.defrang.com/articles/2008/01/03/activeresource-a-ride-on-the-wild-side</link>
      <category>Programming</category>
      <category>Ruby &amp; Rails</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/943</trackback:ping>
    </item>
    <item>
      <title>Halcyon Days</title>
      <description>&lt;p&gt;If you ever talked &lt;a href="http://en.wikipedia.org/wiki/Assembly_language"&gt;face to face with a computer&lt;/a&gt; or if you just want to take a stroll down the memory lane with some &lt;a href="http://www.dadgum.com/giantlist/list.html"&gt;anonymous heroes&lt;/a&gt;, I highly recommend you to take a look at &lt;a href="http://dadgum.com/halcyon/BOOK/MISC/CONTENTS.HTM"&gt;Halcyon Days&lt;/a&gt;, a collection of interviews with bytes counting and cycles saving übercoders from the golden age of videogaming.&lt;/p&gt;</description>
      <pubDate>Sun,  9 Dec 2007 12:18:00 CET</pubDate>
      <guid>http://www.defrang.com/articles/2007/12/09/halcyon-days</guid>
      <link>http://www.defrang.com/articles/2007/12/09/halcyon-days</link>
      <category>Nostalgia</category>
      <category>Programming</category>
      <category>Games &amp;amp; Toys</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/942</trackback:ping>
    </item>
    <item>
      <title>Welcome to City 17</title>
      <description>&lt;p&gt;This is a screenshot from a &lt;a href="http://news.bbc.co.uk/2/hi/europe/7083911.stm"&gt;news on the BBC website&lt;/a&gt;&lt;/p&gt;

&lt;img src="http://assets.defrang.com/georgia_riot_police.png" alt="Georgia Riot Police" style="margin: 15px 0; border: 1px solid #666" /&gt;

&lt;br /&gt;

&lt;p&gt;Now don't these riot police officers look &lt;a href="http://en.wikipedia.org/wiki/List_of_humanoid_and_synthetic_Combine_in_Half-Life_2#Civil_Protection"&gt;strangely familiar&lt;/a&gt;?  They surely do...&lt;/p&gt;

&lt;img src="http://assets.defrang.com/hl2a.jpg" style="margin: 15px 0; border: 1px solid #666" /&gt;
&lt;img src="http://assets.defrang.com/hl2b.jpg" style="margin: 15px 0; border: 1px solid #666" /&gt;

&lt;br /&gt;

&lt;p&gt;Welcome. Welcome to &lt;a href="http://en.wikipedia.org/wiki/City_17"&gt;City 17&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I'm not the only one who noticed the &lt;a href="http://www.boingboing.net/2007/11/08/georgian-riot-cops-i.html"&gt;gasmask&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Thu,  8 Nov 2007 00:46:00 CET</pubDate>
      <guid>http://www.defrang.com/articles/2007/11/08/welcome-to-city-17</guid>
      <link>http://www.defrang.com/articles/2007/11/08/welcome-to-city-17</link>
      <category>Cyberpunk</category>
      <category>Games &amp;amp; Toys</category>
      <trackback:ping>http://www.defrang.com/articles/trackback/941</trackback:ping>
    </item>
  </channel>
</rss>
