<?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>moonbug.org &#187; Work</title>
	<atom:link href="http://www.moonbug.org/log/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.moonbug.org/log</link>
	<description>the sun’s not yellow it is chicken</description>
	<lastBuildDate>Thu, 15 Dec 2011 20:18:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>$this-&gt;lang /* FAIL */</title>
		<link>http://www.moonbug.org/log/2011/12/05/this-lang-fail/</link>
		<comments>http://www.moonbug.org/log/2011/12/05/this-lang-fail/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 21:01:50 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Today's Aha-Erlebnis]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/?p=452</guid>
		<description><![CDATA[Note to self: when dealing with a multi-language site, in a CodeIgniter extended class constructor, do not attempt this: Instead you will want to do this: protected $language; function __construct() { parent::__construct(); $this->language = $this->uri->segment(1); } See what I did &#8230; <a href="http://www.moonbug.org/log/2011/12/05/this-lang-fail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Note to self: when dealing with a multi-language site, in a <a href="http://codeigniter.com/">CodeIgniter</a> extended class constructor, do <strong>not</strong> attempt this:</p>
<pre><code><br />	protected $lang;<br />	function __construct() {<br />		parent::__construct();<br />		$this->lang = $this->uri->segment(1);<br />	}<br /></code></pre>
<p>Instead you will want to do this:</p>
<pre><code>
	protected $language;
	function __construct() {
		parent::__construct();
		$this->language = $this->uri->segment(1);
	}
</code></pre>
<p>See what I did there? &#8216;lang&#8217; to &#8216;language&#8217;. </p>
<p>As it happens <code>$this->lang</code>, when in a CI constructor, will name-conflict with any native CI system library that needs to tap into something similar to <code>$CI =&#038; get_instance()</code>, with a subsequent <code>$CI->load-><b>lang</b>('some_library')</code> call.</p>
<p>Thank me not.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2011/12/05/this-lang-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter&#8217;s Cart Class With Accented Characters</title>
		<link>http://www.moonbug.org/log/2011/03/23/codeigniters-cart-class-with-accented-characters/</link>
		<comments>http://www.moonbug.org/log/2011/03/23/codeigniters-cart-class-with-accented-characters/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 10:19:43 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Today's Aha-Erlebnis]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/?p=343</guid>
		<description><![CDATA[This has bit me in the ass one too many times, so I thought I&#8217;d do a quick write-up of how I deal with CodeIgniter&#8216;s otherwise wonderful Cart class and its refusal to accept accented &#8220;foreign&#8221; characters. Important: The following &#8230; <a href="http://www.moonbug.org/log/2011/03/23/codeigniters-cart-class-with-accented-characters/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This has bit me in the ass one too many times, so I thought I&#8217;d do a quick write-up of how I deal with <a href="http://codeigniter.com/">CodeIgniter</a>&#8216;s otherwise wonderful <a href="http://codeigniter.com/user_guide/libraries/cart.html">Cart class</a> and its refusal to accept accented &#8220;foreign&#8221; characters.</p>
<p><b>Important:</b> The following assumes you are using PHP5+ and CI 2.0 or newer.</p>
<h3>The problem</h3>
<p>You have your product pages all nicely set up with an &#8220;Add to Basket&#8221; button. When that button gets clicked, via some <a href="http://api.jquery.com/jQuery.get/">jQuery $.get</a> magic in my set-up, the product and its specifications gets added to the Cart object. If however your product&#8217;s name has any accents in it (e.g. &#8220;Verre à Bière&#8221;), CodeIgniter will by default silently <i>refuse to add that product to the cart</i>.</p>
<h3>The solution</h3>
<p>Create a file in <i>application/libraries</i> and call it &#8220;MY_cart.php&#8221;. In that file, paste the following code:</p>
<pre>
< ?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Cart extends CI_Cart {
    function __construct() {
        parent::__construct();
        $this->product_name_rules = '\d\D';
    }
}
</pre>
<p>This will override CodeIgniter&#8217;s default set of allowed characters, and extend it with whatever accent you can think of. If you&#8217;re not using Javascript to add items to the cart, that should do the trick and you can stop reading now.</p>
<p>However, as mentioned, I&#8217;m using jQuery&#8217;s $.get method to add items to the cart, so that the page doesn&#8217;t have to reload each time an item gets added (it&#8217;s what the cool kids refer to as &#8220;Ajax&#8221;). Here&#8217;s an example of the script I&#8217;m using for this:</p>
<pre>
$(function(){
	$('#addButton').click(function(){
		$.get("path/to/add_to_cart",
		{
			id: $('input[name=id]').val(),
			name: $('#name').val(),
	   		qty: $('#qty').val(),
		       	price_option: $('#price_option').val()
		 },
		 function(data) {
			$('#addedMsg').html(data.html).show();
			}, 'json'
		); // end get
		return false;
	});
});
</pre>
<p>Notice that I&#8217;m passing on the value of a hidden formfield with id &#8220;name&#8221; to this function. Now, here&#8217;s the pitfall: Javascript will convert accented characters to their equivalent Unicode string (while, for legacy reasons, I&#8217;m having to use the <i>iso-8859-1</i> charset). As a result, CodeIgniter will gladly add my item to its cart, but since it&#8217;s passed through Javascript, the accented characters come out as &#8220;gibberish&#8221;, once you have to display them in your cart view.</p>
<p>The solution here is to pass the regular product name (accents and all) to the jQuery function, and then do the following in the php script which actually adds the item to the cart. Instead of something like:</p>
<pre>
$data['name'] = $this->input->get('name');
//proceed to insert in cart
</pre>
<p>Do this:</p>
<pre>
//run the name variable through the ascii_to_entities() function
$data['name'] = ascii_to_entities($this->input->get('name'));
//proceed to insert in cart
</pre>
<p>Note that for this you will have to have CodeIgniter&#8217;s <a href="http://codeigniter.com/user_guide/helpers/text_helper.html">Text helper</a> loaded.</p>
<h3>Almost there</h3>
<p>What we&#8217;ve accomplished so far: CodeIgniter&#8217;s Cart class accepts our accented product names, and although we&#8217;ve passed the names through Javascript, the correct characters still show up within the Cart object. But how about displaying items in a cart overview? If you link back each item to its product page, you will have to construct that link such that it re-instates the ascii characters instead of their respective entities:<br />
<code><br />
base_url().'/controller/'.sanitize_title_dashes(entities_to_ascii($items['name']));<br />
</code><br />
Note that I&#8217;m using sanitize_title_dashes() (see the WordPress core) as a method to obtain URL&#8217;s which are restricted to an &#8220;a-z0-9&#8243; realm of characters &#8211; thereby omitting any characters that had previously been turned into entities! Using entities_to_ascii() allows them back into the url. Phew.</p>
<h3>Wrapping up</h3>
<p>While it may look a bit messy, the above solved the problem for me. I love CodeIgniter very much, and it&#8217;s sped up my webdevelopment significantly. It being mildly US-centric though in the way it handles accented characters in URL&#8217;s and Cart processing leaves a bit to be desired. The up side is that through its extensibility, you can make things work &#8211; allbeit with a bit of angry fist shaking. Having these workarounds present out of the box from within CodeIgniter would be nice. But that&#8217;s another can of worms&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2011/03/23/codeigniters-cart-class-with-accented-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chuffed</title>
		<link>http://www.moonbug.org/log/2009/01/29/chuffed/</link>
		<comments>http://www.moonbug.org/log/2009/01/29/chuffed/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 17:48:38 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Drawings]]></category>
		<category><![CDATA[Me Myself And I]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/?p=307</guid>
		<description><![CDATA[Remember that Tom Waits job? The book&#8217;s about to be published, and it will include all 12 illustrations created by Gaby and I. The book&#8217;s already gotten some (Austrian) press buzz (click for big version): By the way, pre-order now &#8230; <a href="http://www.moonbug.org/log/2009/01/29/chuffed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Remember <a href="http://www.moonbug.org/log/?s=tom+waits&#038;x=0&#038;y=0">that Tom Waits job</a>? The book&#8217;s <a href="http://stagecraftentertainment.com/">about to be published</a>, and it will include <a href="http://www.moonbug.org/log/2006/12/30/the-tom-waits-bio-all-12-illustrations/">all 12 illustrations</a> created by Gaby and I. The book&#8217;s already gotten some (Austrian) press buzz (click for big version):</p>
<p><a href="http://www.flickr.com/photos/mudshark/3235751565/sizes/l/in/set-72157594289940624/"><img border="0" src="http://www.moonbug.org/log/wp-content/uploads/2009/01/waits-neue-newspaper-moonbug.jpg" alt="Tom Waits: Musik &#038; Mythos Press Article" /></a></p>
<p>By the way, <a href="http://stagecraftentertainment.com/vorbestellung.html">pre-order now</a> and you&#8217;ll get a free set of postcards with our illustrations printed on them.</p>
<p>Chuffed, I am!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2009/01/29/chuffed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Rage &amp; The Fury</title>
		<link>http://www.moonbug.org/log/2008/06/02/the-rage-the-fury/</link>
		<comments>http://www.moonbug.org/log/2008/06/02/the-rage-the-fury/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 19:46:17 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[edgard varèse]]></category>
		<category><![CDATA[frank zappa]]></category>
		<category><![CDATA[the rage and the fury]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/?p=268</guid>
		<description><![CDATA[While all of us Zappa freaks await the official release of FZ conducting Edgard Varèse&#8216;s &#8220;The Rage &#038; The Fury&#8220;, I had some fun imagining what the cd-cover might look like. How&#8217;s this: Frank Zappa on Varèse: [...] the thing &#8230; <a href="http://www.moonbug.org/log/2008/06/02/the-rage-the-fury/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While all of us <a href="http://www.killuglyradio.com/">Zappa freaks</a> await the official release of <a href="http://www.killuglyradio.com/">FZ</a> conducting <a href="http://wiki.killuglyradio.com/wiki/Edgard_Varèse">Edgard Varèse</a>&#8216;s &#8220;<a href="http://wiki.killuglyradio.com/wiki/Varèse:_The_Rage_%26_The_Fury">The Rage &#038; The Fury</a>&#8220;, I had some fun imagining what the cd-cover might look like. How&#8217;s this:</p>
<p><img src="http://www.moonbug.org/log/wp-content/uploads/2008/06/rage-fury-moonbug.jpg" alt="The Rage &#038; The Fury" /></p>
<p><a href="http://wiki.killuglyradio.com/wiki/Frank_Zappa_on_Edgar_Varèse">Frank Zappa on Varèse</a>:</p>
<blockquote><p>[...] the thing that is fantastic about what he wrote for normal instruments is that he got sounds out of them that nobody had dreamed of before. For instance, &#8220;Deserts&#8221;, which is probably the starkest of the pieces in terms of the way they deal with the raw material, there&#8217;re special overblown chords that produce difference tones, which you wouldn&#8217;t be able to get any other way – you know what I&#8217;m talking about? If you take two intervals and play them very loudly on a woodwind instrument – for instance, this one spot where two piccolos are playing either a Major second or minor second apart, very high octave – when you blow it real hard you hear a third note that&#8217;s not there. To know in advance what&#8217;s going to come out and to plan your composition to achieve effects like that was something that people just hadn&#8217;t thought of doing before.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2008/06/02/the-rage-the-fury/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Feelin&#8217; Groovy!</title>
		<link>http://www.moonbug.org/log/2008/04/23/feelin-groovy/</link>
		<comments>http://www.moonbug.org/log/2008/04/23/feelin-groovy/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 17:18:15 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[Drawings]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/?p=265</guid>
		<description><![CDATA[Don&#8217;t let that title fool you: I&#8217;ve been so busy at work recently, I hardly ever get to update that other site of mine anymore &#8212; let alone this one. Did manage to squeeze in a little design job though, &#8230; <a href="http://www.moonbug.org/log/2008/04/23/feelin-groovy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t let that title fool you: I&#8217;ve been so busy at work recently, I hardly ever get to update <a href="http://www.killuglyradio.com/" title="Kill Ugly Radio">that other site</a> of mine anymore &#8212; let alone this one. Did manage to squeeze in a little design job though, with the executive help of <a href="http://www.moonbug.org/diario/">Gabriela</a>. No money involved, just helping out a good friend. Hope he likes it!</p>
<p>Click to enlarge:</p>
<p><a href="http://www.moonbug.org/log/wp-content/uploads/2008/04/feelin-groovy-large.jpg" rel="lightbox" title="Poster for Teenage Barber-shop singing Camp &mdash; &copy; moonbug.org"><img src="http://www.moonbug.org/log/wp-content/uploads/2008/04/feelin-groovy.jpg" /></a></p>
<p>Poster for a barber-shop singing camp aimed at (American!) teenagers. Gaby was in charge of the hairdo&#8217;s and the typography whilst I spent a Saturday afternoon drawing open mouths of various persuasions. Fun!</p>
<p>My favourite is the blue-scalped Goth, though it must be said the dorky &#8220;Will Someone Release Me From These Dumbass Glasses&#8221; kid has a certain <em>je ne sais quoi</em> as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2008/04/23/feelin-groovy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tortas!</title>
		<link>http://www.moonbug.org/log/2008/01/19/tortas/</link>
		<comments>http://www.moonbug.org/log/2008/01/19/tortas/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 16:15:30 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[Drawings]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/2008/01/19/tortas/</guid>
		<description><![CDATA[My proverbial Significant Other Half just finished designing a small bunch of Valentine themed e-cards for Bag Magazine, an Argentine &#8216;zine (you guessed right!) aimed at and produced by, ya know, those people who are of the Greek Persuasion &#8212; &#8230; <a href="http://www.moonbug.org/log/2008/01/19/tortas/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My proverbial <a href="http://www.moonbug.org/diario/">Significant Other Half</a> just finished designing a small bunch of Valentine themed e-cards for <a href="http://www.bagmagazine.com.ar">Bag Magazine</a>, an Argentine &#8216;zine (you guessed right!) aimed at and produced by, ya know, those people who are of the Greek Persuasion &#8212; not that there&#8217;s anything wrong with that!</p>
<p>I simply love the way she plunders my catalogue of minuscule doodles and dresses them up into something actually worthwhile publishing! Have a look:</p>
<p><img src='http://www.moonbug.org/log/wp-content/uploads/2008/01/adorable.jpg' alt='adorable.jpg' /></p>
<p><img src='http://www.moonbug.org/log/wp-content/uploads/2008/01/lleva-la-vida.jpg' alt='lleva-la-vida.jpg' /></p>
<p><img src='http://www.moonbug.org/log/wp-content/uploads/2008/01/me-gusta-ser.jpg' alt='me-gusta-ser.jpg' /></p>
<p><img src='http://www.moonbug.org/log/wp-content/uploads/2008/01/piropo.jpg' alt='piropo.jpg' /></p>
<p>&#8230; and my personal favourite:</p>
<p><img src='http://www.moonbug.org/log/wp-content/uploads/2008/01/sexualidad.jpg' alt='sexualidad.jpg' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2008/01/19/tortas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading MediaWiki On Dreamhost</title>
		<link>http://www.moonbug.org/log/2007/10/03/upgrading-mediawiki-on-dreamhost/</link>
		<comments>http://www.moonbug.org/log/2007/10/03/upgrading-mediawiki-on-dreamhost/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 10:47:41 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/2007/10/03/upgrading-mediawiki-on-dreamhost/</guid>
		<description><![CDATA[Warning: techie post ahead, mainly for my own future reference&#8230; Back in 2005 I set up Zappa Wiki Jawaka, a wiki (you guessed it) dedicated to (you guessed it) Frank Zappa. Grabbed the latest MediaWiki package and patiently went through &#8230; <a href="http://www.moonbug.org/log/2007/10/03/upgrading-mediawiki-on-dreamhost/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Warning: techie post ahead, mainly for my own future reference&#8230;</p>
<p>Back in 2005 I set up <a href="http://wiki.killuglyradio.com/">Zappa Wiki Jawaka</a>, a wiki (you guessed it) dedicated to (you guessed it) Frank Zappa. Grabbed the latest <a href="http://mediawiki.org/">MediaWiki</a> package and patiently went through all the loops of setting up a database, configuring php files, customizing, etc.</p>
<p>No more than one month later, <a href="http://www.dreamhost.com/">Dreamhost</a> made MediaWiki a one-click install. Instead of having to fiddle around for hours, you now had your own wiki at the push of one button &#8212; and were able to upgrade it at the push of that same button. Alas, there I was, stuck with my own homegrown 1.4.2 install which didn&#8217;t allow for one-click upgrading.</p>
<p>Adding insult to injury, along came the <a href="http://en.wikipedia.org/wiki/Spambot">spam</a>- and <a href="http://meta.wikimedia.org/wiki/Vandalbot">vandalbots</a>. My poor outdated wiki was taking a constant beating, and there was nothing I could do about it, because every single extension I tracked down required a more recent version. There was only one solution: bite the bullet and upgrade.</p>
<p>Here&#8217;s what I did:</p>
<ol>
<li>Make a back-up of all the wiki&#8217;s current files</li>
<li>Make a copy of the database for testing purposes</li>
<li>Set up a new subdomain running PHP5.2 for testing purposes</li>
<li>Did a one-click install of Mediawiki 1.11.0 on the testing domain from within Dreamhost&#8217;s admin panel</li>
<li>Pointed the install to the outdated database, hoping it too would be upgraded in the process.</li>
</ol>
<p>No dice. The installer ran okay for about half a second, then choked, complaining that it couldn&#8217;t find a certain table within the database.</p>
<p>MediaWiki&#8217;s <a href="http://www.mediawiki.org/wiki/Manual:Contents">online manual</a> to the rescue: a huge forest of words and links where you tend to get lost within a minute or so. A couple of hours and liters of cafeine later, I came across a page that looked like it had the answer. It said: go to your <em>maintenance</em> folder, look for two files (<em>upgrade1_5.php</em> and <em>update.php</em>) and run them.</p>
<p>Hurrah! I quickly pointed my browser to <em>upgrade1_5.php</em> and was greeted with the following message: &#8220;this script must be run from the command line&#8221;.</p>
<p>Uh oh. Command line. <a href="http://imdb.com/title/tt0086567/">Wargames</a>, anyone?</p>
<p>We&#8217;re now a couple of hours later, I&#8217;ve got some basic shell commands under my belt from various <a href="http://www.webhostgear.com/35.html">tutorials</a> and I&#8217;m staring at the <a href="http://www.apple.com/macosx/features/unix/">Terminal</a>. Time for the real magic:</p>
<p><code><br />
ssh me@mydomain.com<br />
me@mydomain.com password: mypassword<br />
$[server] ls<br />
$[server] cd wiki.killuglyradio.com/maintenance/<br />
$[server] php upgrade1_5.php<br />
$[server] php update.php<br />
</code></p>
<p>&#8230; upon which I re-ran the installer, and was greeted with a shiny &#8220;<strong>Installation complete!</strong>&#8221; message.</p>
<p>Hello, one-click upgrade!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2007/10/03/upgrading-mediawiki-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freak Out!</title>
		<link>http://www.moonbug.org/log/2007/05/22/freak-out/</link>
		<comments>http://www.moonbug.org/log/2007/05/22/freak-out/#comments</comments>
		<pubDate>Tue, 22 May 2007 13:24:38 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[Drawings]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/2007/05/22/freak-out/</guid>
		<description><![CDATA[Remember the drawings/collages Gabriela and I made for a documentary called Freak Out In Cucamonga? Here&#8217;s the trailer! Click to play: My drawings in a movie that features Paul Buff, Motorhead Sherwood, Don Preston, Frank Zappa and Weird Al Yankovic &#8230; <a href="http://www.moonbug.org/log/2007/05/22/freak-out/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Remember <a href="http://www.moonbug.org/log/?s=Cucamonga">the drawings/collages</a> Gabriela and I made for a documentary called <a href="http://www.freakoutincucamonga.com/">Freak Out In Cucamonga</a>? Here&#8217;s the trailer! Click to play:</p>
<div class="flvPlayer"><object type="application/x-shockwave-flash" width="435" height="399" data="http://www.moonbug.org/log/video/flvplayer.swf?file=/log/video/cucamonga-trailer.flv&amp;autoStart=false;"><param name="movie" value="http://www.moonbug.org/log/video/flvplayer.swf?file=/log/video/cucamonga-trailer.flv&amp;autoStart=false;" /></object></div>
<p>My drawings in a movie that features Paul Buff, Motorhead Sherwood, Don Preston, Frank Zappa and Weird Al Yankovic &#8212; it&#8217;s all downhill from here ;-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2007/05/22/freak-out/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Crunching Numbers</title>
		<link>http://www.moonbug.org/log/2007/02/12/crunching-numbers/</link>
		<comments>http://www.moonbug.org/log/2007/02/12/crunching-numbers/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 11:50:11 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[Me Myself And I]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/2007/02/12/crunching-numbers/</guid>
		<description><![CDATA[At work, I spend a fair amount of time taking phone calls from French customers. This often entails writing down phone numbers. One particular range of numbers tends to drive me nuts: 70 through to 99. Take the number 78 &#8230; <a href="http://www.moonbug.org/log/2007/02/12/crunching-numbers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At work, I spend a fair amount of time taking phone calls from French customers. This often entails writing down phone numbers. One particular range of numbers tends to drive me nuts: 70 through to 99.</p>
<p>Take the number 78 for instance.</p>
<p>Let&#8217;s have a look at how this is written/pronounced in other languages that I&#8217;ve more or less mastered:</p>
<ul>
<li>Dutch: achtenzeventig</li>
<li>English: seventy eight</li>
<li>Spanish: setenta y ocho</li>
<li>German: achtundsiebzig</li>
</ul>
<p>Pretty straightforward, right? A seventy and an eight or an eight and a seventy. Now for our French friends: they thought it would be better to conceive it thusly:</p>
<p><strong>soixante-dix-huit</strong></p>
<p>That&#8217;s a sixty, a ten and an eight. To write the number 78 you have to start at sixty, and then add 18. It&#8217;s the equivalent of saying &#8220;sixty ten eight&#8221;.</p>
<p>But wait! How about the number 97! Here, the number is broken down into <em>quatre-vingt-dix sept</em>. In English that translates to &#8220;four twenty ten seven&#8221;. Yes: the number 80 is composed of <strong>2</strong> numbers itself. Having established the 80, you then add 17 to that, and you&#8217;ve successfully processed 97 in your mind, and are now ready to write it down.</p>
<p>Except of course, at this point the person on the other end of the line has already rattled off the last number. Which was <em>94</em>. Or <em>79</em>.</p>
<p>The funny thing is that in the French language there are other perfectly legal ways of naming a number within the aforementioned range: septante (seventy) and nonante (ninety). Walloons (the french-speaking part of Belgium) use this.</p>
<p>But the French? Noooo. As the English refuse to drive on the right side of the road, so the French refuse to name numbers the way the rest of the world had envisioned it.</p>
<p>Now if you&#8217;ll excuse me: the phone is ringing&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2007/02/12/crunching-numbers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Tom Waits Bio: All 12 Illustrations</title>
		<link>http://www.moonbug.org/log/2006/12/30/the-tom-waits-bio-all-12-illustrations/</link>
		<comments>http://www.moonbug.org/log/2006/12/30/the-tom-waits-bio-all-12-illustrations/#comments</comments>
		<pubDate>Sat, 30 Dec 2006 13:29:07 +0000</pubDate>
		<dc:creator>moonbug</dc:creator>
				<category><![CDATA[Drawings]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.moonbug.org/log/2006/12/30/the-tom-waits-bio-all-12-illustrations/</guid>
		<description><![CDATA[I just sent off all 12 &#8220;final&#8221; illustrations for the Tom Waits biography to the publisher. Gaby and I hadn&#8217;t looked at them for a while, and seeing them again now I must say we&#8217;re both rather pleased with the &#8230; <a href="http://www.moonbug.org/log/2006/12/30/the-tom-waits-bio-all-12-illustrations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just sent off all 12 &#8220;final&#8221; illustrations for the <a href="http://www.moonbug.org/log/2006/09/15/time-waits-for-no-one/">Tom Waits biography</a> to the publisher. Gaby and I hadn&#8217;t looked at them for a while, and seeing them again now I must say we&#8217;re both rather pleased with the results. Below you&#8217;ll find thumbnails which, when clicked, will reveal the full collage. We&#8217;re interested to know what you think about them &#8212; and oh yes: signed and numbered high res prints on luxurious heavy-weight paper are for sale!<br />
Without, as they say, further ado (click pics for full view):</p>
<p><strong class="chapter">Old Shoes and Picture Postcards</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-1.jpg" rel="lightbox" title="Old Shoes And Picture Postcards"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-1-th.jpg" /></a></p>
<p><strong class="chapter">Asylum Years</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-2.jpg" rel="lightbox" title="Asylum Years"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-2-th.jpg" /></a></p>
<p><strong class="chapter">Looking For The Heart Of Saturday Night</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-3.jpg" rel="lightbox" title="Looking For The Heart Of Saturday Night"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-3-th.jpg" /></a></p>
<p><strong class="chapter">Warm Beer And Cold Women</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-4.jpg" rel="lightbox" title="Warm Beer And Cold Women"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-4-th.jpg" /></a></p>
<p><strong class="chapter">Foreign Affairs</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-5.jpg" rel="lightbox" title="Foreign Affairs"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-5-th.jpg" /></a></p>
<p><strong class="chapter">This One&#8217;s From The Heart</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-6.jpg" rel="lightbox" title="This One's From The Heart"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-6-th.jpg" /></a></p>
<p><strong class="chapter">Swordfish Trombones</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-7.jpg" rel="lightbox" title="Swordfish Trombones"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-7-th.jpg" /></a></p>
<p><strong class="chapter">Frank&#8217;s Wild Years</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-8.jpg" rel="lightbox" title="Frank's Wild Years"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-8-th.jpg" /></a></p>
<p><strong class="chapter">The Large Print Giveth And The Small Print Taketh Away</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-9.jpg" rel="lightbox" title="The Large Print Giveth And The Small Print Taketh Away"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-9-th.jpg" /></a></p>
<p><strong class="chapter">Who Are You Now?</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-10.jpg" rel="lightbox" title="Who Are You Now?"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-10-th.jpg" /></a></p>
<p><strong class="chapter">What&#8217;s He Building In There?</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-11.jpg" rel="lightbox" title="What's He Building In There?"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-11-th.jpg" /></a></p>
<p><strong class="chapter">The Long Way Home</strong><br />
<a href="http://www.moonbug.org/log/wp-content/tw-chapter-12.jpg" rel="lightbox" title="The Long Way Home"><img src="http://www.moonbug.org/log/wp-content/tw-chapter-12-th.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.moonbug.org/log/2006/12/30/the-tom-waits-bio-all-12-illustrations/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

