<?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/"
	>

<channel>
	<title>Lee Packham's Corner</title>
	<atom:link href="http://leenux.org.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://leenux.org.uk</link>
	<description>The rants of a software busy body</description>
	<pubDate>Sat, 03 Jan 2009 17:16:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Is it any wonder the world is infested with spam?</title>
		<link>http://leenux.org.uk/2009/01/03/is-it-any-wonder-the-world-is-infested-with-spam/</link>
		<comments>http://leenux.org.uk/2009/01/03/is-it-any-wonder-the-world-is-infested-with-spam/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 17:16:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Random Rants]]></category>

		<guid isPermaLink="false">http://leenux.org.uk/?p=139</guid>
		<description><![CDATA[If you Google for &#8216;iTunes&#8217;, you get a nice sponsored link at the top that looks like it goes to the official Apple iTunes page. In fact, it does not. It takes you to http://www.itunesgu.info/uk.html (probably best not to go there!). It forces you to sign up to download iTunes. At the very least, it [...]]]></description>
			<content:encoded><![CDATA[<p>If you Google for &#8216;iTunes&#8217;, you get a nice sponsored link at the top that looks like it goes to the official Apple iTunes page. In fact, it does not. It takes you to http://www.itunesgu.info/uk.html (probably best not to go there!). It forces you to sign up to download iTunes. At the very least, it means they captcher your e-mail address/name details. You can even PAY! Yes really. You can pay $11.67 per year for a 3 year membership!?</p>
<p>I dread to think what&#8217;s actually in the download.</p>
<p>Google and Apple should really stop this sort of thing - don&#8217;t you think? Way to spread the badness around the Internet.</p>
<div id="attachment_140" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-140" title="Google classic iTunes link" src="http://leenux.org.uk/wp-content/uploads/2009/01/picture-2-300x130.png" alt="Google offering spam/adware above official downloads" width="300" height="130" /><p class="wp-caption-text">Google offering spam/adware above official downloads</p></div>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2009/01/03/is-it-any-wonder-the-world-is-infested-with-spam/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Wowhead Christmas Wallpaper</title>
		<link>http://leenux.org.uk/2008/12/24/the-wowhead-christmas-wallpaper/</link>
		<comments>http://leenux.org.uk/2008/12/24/the-wowhead-christmas-wallpaper/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 08:42:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MMORPG]]></category>

		<guid isPermaLink="false">http://leenux.org.uk/?p=136</guid>
		<description><![CDATA[The guys at wowhead.com have posted their Christmas wallpaper with a load of Alliance eye candy. The only issue is&#8230; where&#8217;s the Horde eye candy?
A Christmas Present for You - The Wowhead Blog.
]]></description>
			<content:encoded><![CDATA[<p>The guys at <a href="http://www.wowhead.com/">wowhead.com</a> have posted their Christmas wallpaper with a load of Alliance eye candy. The only issue is&#8230; where&#8217;s the Horde eye candy?</p>
<p><a href="http://www.wowhead.com/?blog=62104">A Christmas Present for You - The Wowhead Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/12/24/the-wowhead-christmas-wallpaper/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Unibody Macbook Pro constantly waking up</title>
		<link>http://leenux.org.uk/2008/12/21/unibody-macbook-pro-constantly-waking-up/</link>
		<comments>http://leenux.org.uk/2008/12/21/unibody-macbook-pro-constantly-waking-up/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 12:43:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mac / OSX]]></category>

		<guid isPermaLink="false">http://leenux.org.uk/?p=134</guid>
		<description><![CDATA[If you have any bluetooth device that constantly wants to talk to your new Macbook Pro (like a headset/keyboard) - it will wake it from sleep constantly and thus drain your battery. Fun eh?
]]></description>
			<content:encoded><![CDATA[<p>If you have any bluetooth device that constantly wants to talk to your new Macbook Pro (like a headset/keyboard) - it will wake it from sleep constantly and thus drain your battery. Fun eh?</p>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/12/21/unibody-macbook-pro-constantly-waking-up/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How Warcraft reigned supreme in 2008</title>
		<link>http://leenux.org.uk/2008/12/18/how-warcraft-reigned-supreme-in-2008/</link>
		<comments>http://leenux.org.uk/2008/12/18/how-warcraft-reigned-supreme-in-2008/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 22:30:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MMORPG]]></category>

		<guid isPermaLink="false">http://leenux.org.uk/?p=132</guid>
		<description><![CDATA[I&#8217;m an avid World of Warcraft player myself. I tried Conan and Warhammer this year&#8230; why did they fail? The Register gives some insight&#8230; not a very good insight&#8230; but an insight none the less!
How Warcraft reigned supreme in 2008 • The Register
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m an avid World of Warcraft player myself. I tried Conan and Warhammer this year&#8230; why did they fail? The Register gives some insight&#8230; not a very good insight&#8230; but an insight none the less!</p>
<p><a href="http://www.theregister.co.uk/2008/12/17/mmo_games_in_2008/">How Warcraft reigned supreme in 2008 • The Register</a></p>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/12/18/how-warcraft-reigned-supreme-in-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CRY vs. DRY</title>
		<link>http://leenux.org.uk/2008/12/17/cry-vs-dry/</link>
		<comments>http://leenux.org.uk/2008/12/17/cry-vs-dry/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 16:15:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Random Rants]]></category>

		<guid isPermaLink="false">http://leenux.org.uk/?p=127</guid>
		<description><![CDATA[A work colleague coined a fantastic term for code that just isn&#8217;t DRY:
Constantly Repeating Yourself - CRY
Not only does it describe one&#8217;s reaction to amazingly shoddy code, that just oozes of a developer spending all day using Copy and Paste, but seems an appropriate opposite.
Back to refactoring CRY code with me!
]]></description>
			<content:encoded><![CDATA[<p>A work colleague coined a fantastic term for code that just isn&#8217;t DRY:</p>
<blockquote><p><strong>C</strong>onstantly <strong>R</strong>epeating <strong>Y</strong>ourself - CRY</p></blockquote>
<p>Not only does it describe one&#8217;s reaction to amazingly shoddy code, that just oozes of a developer spending all day using Copy and Paste, but seems an appropriate opposite.</p>
<p>Back to refactoring CRY code with me!</p>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/12/17/cry-vs-dry/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Apple Bluetooth Keyboard under Vista</title>
		<link>http://leenux.org.uk/2008/11/29/apple-bluetooth-keyboard-under-vista/</link>
		<comments>http://leenux.org.uk/2008/11/29/apple-bluetooth-keyboard-under-vista/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 18:36:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mac / OSX]]></category>

		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://leenux.org.uk/?p=115</guid>
		<description><![CDATA[I enjoy gaming. I don&#8217;t enjoy having to use a full PC rig to play them. I prefer playing on my Macbook Pro. I recently got myself the new Unibody one and wanted to play Left 4 Dead and Fallout 3 under Vista x64 (it has 4GB of RAM, x86 makes little sense).
After a painful [...]]]></description>
			<content:encoded><![CDATA[<p>I enjoy gaming. I don&#8217;t enjoy having to use a full PC rig to play them. I prefer playing on my Macbook Pro. I recently got myself the new Unibody one and wanted to play Left 4 Dead and Fallout 3 under Vista x64 (it has 4GB of RAM, x86 makes little sense).</p>
<p>After a painful install, I wanted to get my Apple Bluetooth keyboard to work. When I am at home, my MBP sits up on a Griffin stand and I use the Bluetooth keyboard. However, for love nor money, I could not make the thing work under Vista. It would just keep flashing it&#8217;s little green light for no apparent reason - until I finally figured it out!</p>
<p>At the step where you have to &#8216;enter&#8217; the passkey. Enter it, then press ENTER repeatedly. Silly? Yes! The only thing that got it working for me? Yes! It seems that you have to keep persuading the keyboard to actually stop being discoverable and be useful. This appears, to me at least, the only way to achieve it.</p>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/11/29/apple-bluetooth-keyboard-under-vista/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The blog - It&#8217;s moved! Again!</title>
		<link>http://leenux.org.uk/2008/10/19/the-blog-its-moved-again/</link>
		<comments>http://leenux.org.uk/2008/10/19/the-blog-its-moved-again/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 08:17:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Random Rants]]></category>

		<guid isPermaLink="false">http://leenux.org.uk/?p=111</guid>
		<description><![CDATA[I decided to come back to a Wordpress based blog - hosted at Joyent. The reasons were pretty simple. I wasn&#8217;t overly happy with the way that Typepad&#8217;s pricing model worked. It&#8217;s ok for people wanting a pretty basic blog, but if you actually used it and want to customise it, I think Wordpress is [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to come back to a <a href="http://www.wordpress.org/" target="_blank">Wordpress</a> based blog - hosted at <a href="http://www.joyent.com/" target="_blank">Joyent</a>. The reasons were pretty simple. I wasn&#8217;t overly happy with the way that <a href="http://www.typepad.com/" target="_blank">Typepad</a>&#8217;s pricing model worked. It&#8217;s ok for people wanting a pretty basic blog, but if you actually used it and want to customise it, I think Wordpress is better.</p>
<p>I could have done the whole free hosting on <a href="http://www.wordpress.com/">Wordpress.com</a> thing - but I prefer hosting myself.</p>
<p>Hope the few readers I do have like the theme!</p>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/10/19/the-blog-its-moved-again/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mus domesticus (Rodent Mice)</title>
		<link>http://leenux.org.uk/2008/10/08/mus-domesticus-rodent-mice/</link>
		<comments>http://leenux.org.uk/2008/10/08/mus-domesticus-rodent-mice/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 06:14:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Random Rants]]></category>

		<guid isPermaLink="false">http://blog.leenux.org.uk/2008/10/08/mus-domesticus-rodent-mice/</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>We get mice up in our flat a&#0160;reasonable&#0160;amount. A block of 50 or so flats tends to mean there&#39;ll always be some. Plus, this is London - so you&#39;re never too far from them I guess. Being on the 5th floor helps a bit, as they have quite a way to come to get here.</p>
<div>So we put down traps and poison. Recently however, we&#39;ve noticed an increase in the number that brave beyond underneath the kitchen. Annoying? Yes. Obvious as to why? No.&#0160;</div>
<p>
<div>They&#39;re eating the poison. We have a number of open bait trays with a nice &#39;bleed them to death&#39; type affair. The trays under the kitchen were empty! I mean, completely. Couple of droppings and that&#39;s it! We&#39;ve caught a couple in traps too.&#0160;</div>
<p>
<div>So now I have relocated the bait under the kitchen. I guess we&#39;ll also have to get more poison! Blocking their entrance and exit is hard. Basically they&#39;re coming in from around the waste pipes and there isn&#39;t really any way to properly block it (without removing the entire kitchen). More elaborate methods of blocking required.</div>
<p>
<div>I&#39;m also a little concerned that the poison isn&#39;t actually killing them!&#0160;</div>
<p>
<div>However, those few that do read the blog&#8230; any clever tricks on dealing with these pesky buggers? Do these &quot;Ultra Sonic Repellents&quot; work?</div>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/10/08/mus-domesticus-rodent-mice/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Big table and changing indexes</title>
		<link>http://leenux.org.uk/2008/09/29/big-table-and-changing-indexes/</link>
		<comments>http://leenux.org.uk/2008/09/29/big-table-and-changing-indexes/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 13:37:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.leenux.org.uk/2008/09/29/big-table-and-changing-indexes/</guid>
		<description><![CDATA[MySQL sucks at large tables. Sorry if you&#8217;ve come here thinking that I, in any way, like MySQL. That said, I have to look after some sizeable databases which are on MySQL for various reasons - so needs must.
I recently needed to sort out an issue with indexes on a table. I needed to drop [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL sucks at large tables. Sorry if you&#8217;ve come here thinking that I, in any way, like MySQL. That said, I have to look after some sizeable databases which are on MySQL for various reasons - so needs must.</p>
<p>I recently needed to sort out an issue with indexes on a table. I needed to drop one, and add a couple more. Snag? The table has 3.6 million rows and as such I would call it a large table.</p>
<p>Normally, I guess, you would do something like:</p>
<pre>ALTER TABLE foo ADD INDEX (my_column);</pre>
<pre>ALTER TABLE foo DROP INDEX old_index;</pre>
<p>This doesn&#8217;t work when you have a lot of rows. Well, it does&#8230; if you have a few hours to spare. Let&#8217;s look at why.</p>
<p>When you add an index to a pre-existing table, MySQL has to go look through the entire table to populate the new index. When you drop an index on a pre-existing table, it loops through every row depopulating the index before finally dropping it.</p>
<p>So, here&#8217;s what I did to speed things up:</p>
<ol>
<li>
<pre>SELECT * FROM foo INTO OUTFILE 'foo_outfile.dmp';</pre>
</li>
<li>
<pre>CREATE TABLE foo_a LIKE foo;</pre>
</li>
<li>
<pre>ALTER TABLE foo_a ADD INDEX (my_column);</pre>
</li>
<li>
<pre>ALTER TABLE foo_a DROP INDEX old_index;</pre>
</li>
<li>
<pre>LOAD DATA INFILE 'foo_outfile.dmp' INTO TABLE foo_a;</pre>
</li>
<li>
<pre>TRUNCATE TABLE foo; DROP TABLE foo;</pre>
</li>
<li>
<pre>ALTER TABLE foo_a RENAME foo;</pre>
</li>
</ol>
<p>Why TRUNCATE before DROP? That&#8217;s easy, DROP tries to delete each row. To delete each row the index has to be updated&#8230; 3.6M times! TRUNCATE trashes everything, then you&#8217;re dropping an empty table!</p>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/09/29/big-table-and-changing-indexes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The importance of tabs</title>
		<link>http://leenux.org.uk/2008/09/27/the-importance-of-tabs/</link>
		<comments>http://leenux.org.uk/2008/09/27/the-importance-of-tabs/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 22:16:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.leenux.org.uk/2008/09/27/the-importance-of-tabs/</guid>
		<description><![CDATA[
This sort of thing drives me barmy - why can&#8217;t people set a standard on tabs?
The above snippet is taken from eJabberd (a Jabber Server written in Erlang). Notice how some lines are soft tabs, others are hard. The causes havoc when dealing with merging in source control (I don&#8217;t care if you use a [...]]]></description>
			<content:encoded><![CDATA[<p><a onclick="window.open(this.href, '_blank', 'width=532,height=372,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false" href="http://leenux.typepad.com/.shared/image.html?/photos/uncategorized/2008/09/27/picture_4.png"></a><a href="http://blog.leenux.org.uk/wp-content/uploads/2008/10/importanceoftabs.png"><img class="alignnone size-full wp-image-80" title="Erlang Tabs" src="http://blog.leenux.org.uk/wp-content/uploads/2008/10/importanceoftabs.png" alt="" width="500" height="349" /></a></p>
<p><a href="http://blog.leenux.org.uk/wp-content/uploads/2008/10/importanceoftabs.png"></a>This sort of thing drives me barmy - why can&#8217;t people set a standard on tabs?</p>
<p>The above snippet is taken from eJabberd (a Jabber Server written in Erlang). Notice how some lines are soft tabs, others are hard. The causes havoc when dealing with merging in source control (I don&#8217;t care if you use a new fangled Git approach). Whitespace (both tabs and line endings) must be consistent on programming projects. Much pain ensues if they are not!</p>
<p>Personally I set rules in SVN commit hooks. This means that if a developer has anything &#8216;bad&#8217; like Windows Line Endings on a Python project, then it is dealt with accordingly.</p>
<p>Saves a lot of merge pain!</p>
]]></content:encoded>
			<wfw:commentRss>http://leenux.org.uk/2008/09/27/the-importance-of-tabs/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
