<?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>clivemurray.com &#187; Code</title>
	<atom:link href="http://www.clivemurray.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clivemurray.com</link>
	<description>I play the guitar, you know</description>
	<lastBuildDate>Thu, 26 Jan 2012 12:37:44 +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>Recursion worry</title>
		<link>http://www.clivemurray.com/2008/03/05/recursion-worry/</link>
		<comments>http://www.clivemurray.com/2008/03/05/recursion-worry/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 12:42:46 +0000</pubDate>
		<dc:creator>clive</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.clivemurray.com/2008/03/05/recursion-worry/</guid>
		<description><![CDATA[My favourite bit of the Twitter Tools FAQ: &#8220;What happens if I have both my tweets posting to my blog as posts and my posts sent to Twitter?But the sundry dishonesty has concocted otiose toques telefonicos punishing launcher. Will it cause the world to end in a spinning fireball of death?&#8221; (ApparentlyVariationen von poker regeln. [...]]]></description>
			<content:encoded><![CDATA[<p>My favourite bit of the <a href="http://alexking.org/projects/wordpress">Twitter Tools</a> FAQ:</p>
<blockquote><p>&#8220;What happens if I have both my tweets posting to my blog as posts and my posts sent to Twitter?<noscript>But the sundry dishonesty has concocted otiose <a href="http://www.toquesnovo.com/melhor-qualidade-toques-telefonicos.html">toques telefonicos</a> punishing launcher.</noscript> Will it cause the world to end in a spinning fireball of death?&#8221;</p></blockquote>
<p>(Apparently<noscript>Variationen von <a href="http://www.einepoker.de/spiel-multispieler-poker-regeln.html">poker regeln</a>.</noscript> it won&#8217;t.)<br />
&#8211;c.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clivemurray.com/2008/03/05/recursion-worry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cat-like programming detected</title>
		<link>http://www.clivemurray.com/2007/05/30/cat-like-programming-detected/</link>
		<comments>http://www.clivemurray.com/2007/05/30/cat-like-programming-detected/#comments</comments>
		<pubDate>Wed, 30 May 2007 09:43:35 +0000</pubDate>
		<dc:creator>clive</dc:creator>
				<category><![CDATA[Cats]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.clivemurray.com/2007/05/30/cat-like-programming-detected/</guid>
		<description><![CDATA[Even teh kittehs are learning to code lolomfgbbq!!1! &#8211;c.]]></description>
			<content:encoded><![CDATA[<p>Even teh kittehs are <a href="http://www.lolcode.com/examples/filezorz">learning to code</a> lolomfgbbq!!1!</p>
<p>&#8211;c.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clivemurray.com/2007/05/30/cat-like-programming-detected/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSON and Jack</title>
		<link>http://www.clivemurray.com/2006/09/26/json-and-jack/</link>
		<comments>http://www.clivemurray.com/2006/09/26/json-and-jack/#comments</comments>
		<pubDate>Tue, 26 Sep 2006 12:44:00 +0000</pubDate>
		<dc:creator>clive</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Movies/TV]]></category>

		<guid isPermaLink="false">http://www.clivemurray.com/wp/?p=310</guid>
		<description><![CDATA[Work: Trying to get my head around JSON, and Object Oriented Javascript. Having never written a single line of OO code in any language, I&#8217;m finding the subject just a bit impenetrable at the moment. Though, on re-reading that article by Dustin just now for the third or fourth time, I started to feel a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Work:</strong> Trying to get my head around <a href="http://www.dustindiaz.com/json-for-the-masses/">JSON</a>, and Object Oriented Javascript. Having never written a single line of OO code in any language, I&#8217;m finding the subject just a bit impenetrable at the moment. Though, on re-reading that article by Dustin just now for the third or fourth time, I started to feel a balance tip in my head towards understanding. Did you ever do those &#8220;Magic Eye&#8221; pictures, that look like a messed up pattern and then suddenly you see the page become a 3D dinosaur or whatever? It was like the first time one of those starts to &#8220;work&#8221; for you. I was reading the words over and over, and suddenly I felt part of my world view begin to change fundamentally. But then, just like when you realise that the page is becoming 3D and you involuntarily focus, losing the picture completely, my mind rebelled and thought of something else. I&#8217;m going to come back to it after lunch. Then I&#8217;m going to read it a few more times. Then I&#8217;m going to damn well try it.</p>
<p><strong>Home:</strong> Oscillating wildly between writing solos in Cubase for the <a href="http://www.littlemonkeysrock.com/">Little Monkeys</a> studio album, and filling every other spare second with series 3 of <a href="http://www.bbc.co.uk/cult/24/">24</a>. No, really. Every spare <strong>second</strong>. Even <a href="http://www.guildwars.com/">Guildwars</a> doesn&#8217;t stand a chance when Bauer Fever descends.</p>
<p>This blog entry took place between 12.41pm and 12.44pm.<br />
&#8211;c.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clivemurray.com/2006/09/26/json-and-jack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Easiest Zebra</title>
		<link>http://www.clivemurray.com/2006/09/18/the-easiest-zebra/</link>
		<comments>http://www.clivemurray.com/2006/09/18/the-easiest-zebra/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 11:38:00 +0000</pubDate>
		<dc:creator>clive</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.clivemurray.com/wp/?p=307</guid>
		<description><![CDATA[Say what? It&#8217;s more JQuery stuff, so if you care not a jot, then hie thee hence. OK, so there are a million ways of generating zebra-striped tables. If you don&#8217;t know what a zebra-striped table is, then you probably don&#8217;t need to. But if you do, then you may be familiar with methods like [...]]]></description>
			<content:encoded><![CDATA[<p>Say what?</p>
<p>It&#8217;s more <a href="http://jquery.com/api/">JQuery</a> stuff, so if you care not a jot, then hie thee hence.</p>
<p>OK, so there are a million ways of generating zebra-striped tables. If you don&#8217;t know what a zebra-striped table is, then you probably don&#8217;t need to. But if you do, then you may be familiar with methods like <a href="http://www.alistapart.com/articles/zebratables">this</a> and <a href="http://www.thewatchmakerproject.com/journal/309/stripe-your-tables-the-oo-way">this</a>. That&#8217;s all good.</p>
<p>(By the way, I realise that an even better way to do this is to generate the stripes by writing the alternate classes out on the server-side, but for the purposes of this post I&#8217;m assuming that can&#8217;t be done. Imagine the table&#8217;s being retrieved by AJAX or something, so client-side code has to be the way.)</p>
<p>With the awesomeness of jQuery, this is how you do it:</p>
<pre>&lt;script type="text/javascript"&gt;
$(document).ready(function(){
$("table.stripeThis tr:even").addClass("striped");
});
&lt;/script&gt;</pre>
<p>See that? One check to see if the DOM&#8217;s loaded, then one line of code. And that would apply to all tables on the page with the CSS class &#8220;stripeThis&#8221;.</p>
<p>Nifty.<br />
&#8211;c.</p>
<p><strong>UPDATE:</strong> <a href="/toys/stripe/stripetable.html">Here&#8217;s a sample page</a>. View the source. See? <img src='http://www.clivemurray.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.clivemurray.com/2006/09/18/the-easiest-zebra/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery, and awesomeness</title>
		<link>http://www.clivemurray.com/2006/09/14/jquery-and-awesomeness/</link>
		<comments>http://www.clivemurray.com/2006/09/14/jquery-and-awesomeness/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 12:34:00 +0000</pubDate>
		<dc:creator>clive</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.clivemurray.com/wp/?p=306</guid>
		<description><![CDATA[I&#8217;ve had reason to look into javascript libraries recently at work, initially in the building of the Profero Tacheback site (which I urge you to visit and perhaps sponsor/donate &#8211; it&#8217;s all for charidee mate), and more recently in a general R&#038;D capacity. And even though it wasn&#8217;t used on that site, and I&#8217;ve actually [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had reason to look into javascript libraries recently at work, initially in the building of the <a href="http://www.profero.com/tacheback/">Profero Tacheback</a> site (which I urge you to visit and perhaps sponsor/donate &#8211; it&#8217;s all for charidee mate), and more recently in a general R&#038;D capacity.</p>
<p>And even though it wasn&#8217;t used on that site, and I&#8217;ve actually not used it on a project yet, <a href="http://jquery.com/">jQuery</a> has leapt out at me as being awesomely powerful without being too much of a sledgehammer for my nuts.</p>
<p>What I loved was that it has built-in syntax for selecting everything in the document that matches a CSS selector (for example) <strong>and</strong> also has built-in AJAX handling methods <strong>and</strong> has some pre-built visual effects that are easy to use, <strong>yet</strong> it&#8217;s not a hulking behemoth like <a href="http://dojotoolkit.org/">Dojo</a> or an inflexible pre-packaged box-of-tricks like <a href="http://script.aculo.us/">Scriptaculous</a>.</p>
<p>These are by no means fully explored opinions &#8211; this is my reaction after toying around with the libraries in question with a particular task at hand &#8211; and I&#8217;m fully with the &#8220;each to his own&#8221; idea, so I&#8217;m definitely <strong>not</strong> saying that jQuery is the one and all others are heathens. I&#8217;m just saying it lit my lights, it spun my wheels, it rang my particular bell.</p>
<p>YMM, as ever, V.<br />
&#8211;c.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clivemurray.com/2006/09/14/jquery-and-awesomeness/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Geek Anthem</title>
		<link>http://www.clivemurray.com/2006/09/07/geek-anthem/</link>
		<comments>http://www.clivemurray.com/2006/09/07/geek-anthem/#comments</comments>
		<pubDate>Thu, 07 Sep 2006 16:22:00 +0000</pubDate>
		<dc:creator>clive</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://www.clivemurray.com/wp/?p=303</guid>
		<description><![CDATA[Geeks, friends, coders, unite. We have ourselves an anthem. I give you the sublime Code Monkey, by Jonathan Coulton. Best geek song ever. No, really. Lyrics here. &#8211;c. (I&#8217;ve done my time as a code monkey &#8211; I can relate. )]]></description>
			<content:encoded><![CDATA[<p>Geeks, friends, coders, unite. We have ourselves <strong>an anthem</strong>.</p>
<p>I give you the sublime <a href="http://www.jonathancoulton.com/2006/04/14/thing-a-week-29-code-monkey/">Code Monkey</a>, by Jonathan Coulton.</p>
<p>Best geek song ever. No, really. Lyrics <a href="http://www.jonathancoulton.com/lyrics/code-monkey">here</a>.</p>
<p>&#8211;c.<br />
(I&#8217;ve done my time as a code monkey &#8211; I can relate. <img src='http://www.clivemurray.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clivemurray.com/2006/09/07/geek-anthem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

