<?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>SickBiscuit &#187; Distractions</title>
	<atom:link href="http://sickbiscuit.com/blog/category/distractions/feed/" rel="self" type="application/rss+xml" />
	<link>http://sickbiscuit.com/blog</link>
	<description>The personal blog of Steven Wilkin</description>
	<lastBuildDate>Tue, 31 Jan 2012 01:12:54 +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>command line history &#8211; me too</title>
		<link>http://sickbiscuit.com/blog/2008/04/16/command-line-history-me-too/</link>
		<comments>http://sickbiscuit.com/blog/2008/04/16/command-line-history-me-too/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 08:49:30 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Distractions]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=228</guid>
		<description><![CDATA[I&#8217;ve seen this on a couple of blogs recently so I thought I&#8217;d give it a go on the VPS this site is hosted on:
steve@decaf:~$ history &#124; awk '{a[$2]++} END {for(i in a)print a[i] &#34; &#34; i}' &#124; sort -rn &#124; head -10
190 ls
80 cd
24 cp
22 sudo
19 rm
14 svn
12 history
11 tar
10 wget
10 vi
And as root:
172 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen this on <a href="http://fredemmott.co.uk/blog_148">a couple</a> <a href="http://diveintomark.org/archives/2008/04/15/history-meme">of blogs</a> recently so I thought I&#8217;d give it a go on the VPS this site is hosted on:</p>
<pre class="bash">steve<span style="color: #000000; font-weight: bold;">@</span>decaf:~$ <span style="color: #7a0874; font-weight: bold;">history</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{a[$2]++} END {for(i in a)print a[i] &quot; &quot; i}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> -rn <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #000000;">-10</span>
<span style="color: #000000;">190</span> <span style="color: #c20cb9; font-weight: bold;">ls</span>
<span style="color: #000000;">80</span> <span style="color: #7a0874; font-weight: bold;">cd</span>
<span style="color: #000000;">24</span> <span style="color: #c20cb9; font-weight: bold;">cp</span>
<span style="color: #000000;">22</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span>
<span style="color: #000000;">19</span> <span style="color: #c20cb9; font-weight: bold;">rm</span>
<span style="color: #000000;">14</span> svn
<span style="color: #000000;">12</span> <span style="color: #7a0874; font-weight: bold;">history</span>
<span style="color: #000000;">11</span> <span style="color: #c20cb9; font-weight: bold;">tar</span>
<span style="color: #000000;">10</span> <span style="color: #c20cb9; font-weight: bold;">wget</span>
<span style="color: #000000;">10</span> vi</pre>
<p>And as root:</p>
<pre class="bash"><span style="color: #000000;">172</span> <span style="color: #c20cb9; font-weight: bold;">ls</span>
<span style="color: #000000;">59</span> vi
<span style="color: #000000;">56</span> <span style="color: #7a0874; font-weight: bold;">cd</span>
<span style="color: #000000;">22</span> apt-get
<span style="color: #000000;">20</span> <span style="color: #c20cb9; font-weight: bold;">less</span>
<span style="color: #000000;">20</span> apache2ctl
<span style="color: #000000;">17</span> apt-cache
<span style="color: #000000;">15</span> <span style="color: #c20cb9; font-weight: bold;">cp</span>
<span style="color: #000000;">10</span> <span style="color: #7a0874; font-weight: bold;">pwd</span>
<span style="color: #000000;">10</span> <span style="color: #c20cb9; font-weight: bold;">ps</span></pre>
<p>I&#8217;m kinda suprised that <code>ls</code> comes out on top each time <img src='http://sickbiscuit.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I wonder which commands <a href="http://cimota.com/blog/">Matt</a>, <a href="http://godswearhats.com/">Aidan</a> and <a href="http://www.homeofserendipity.com/">Philip</a> have been using most?</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/04/16/command-line-history-me-too/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>$BIG_CORP rides the snake &#8211; my first Python script</title>
		<link>http://sickbiscuit.com/blog/2008/04/14/big_corp-rides-the-snake-my-first-python-script/</link>
		<comments>http://sickbiscuit.com/blog/2008/04/14/big_corp-rides-the-snake-my-first-python-script/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 12:18:19 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Clerical]]></category>
		<category><![CDATA[Distractions]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/?p=226</guid>
		<description><![CDATA[In between support tasks at $BIG_CORP I&#8217;ve been slowly reading through O&#8217;Reilly&#8217;s Learning Python and trying a few things out with the command-line interpreter.
The first script I&#8217;ve written that actually does something useful is countdown.py:
#!/usr/bin/env python
# countdown to 5pm
# 2008 SJW
import datetime
now = datetime.datetime.now&#40;&#41;
home = datetime.datetime&#40;now.year, now.month, now.day, 17, 0, 0, 0&#41;
total_secs = &#40;home - [...]]]></description>
			<content:encoded><![CDATA[<p>In between support tasks at $BIG_CORP I&#8217;ve been slowly reading through O&#8217;Reilly&#8217;s <a href="http://www.oreilly.com/catalog/9780596513986/">Learning Python</a> and trying a few things out with the command-line interpreter.</p>
<p>The first script I&#8217;ve written that actually does something useful is <code>countdown.py</code>:</p>
<pre class="python"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
<span style="color: #808080; font-style: italic;"># countdown to 5pm</span>
<span style="color: #808080; font-style: italic;"># 2008 SJW</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">datetime</span>
now = <span style="color: #dc143c;">datetime</span>.<span style="color: #dc143c;">datetime</span>.<span style="color: black;">now</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
home = <span style="color: #dc143c;">datetime</span>.<span style="color: #dc143c;">datetime</span><span style="color: black;">&#40;</span>now.<span style="color: black;">year</span>, now.<span style="color: black;">month</span>, now.<span style="color: black;">day</span>, <span style="color: #ff4500;">17</span>, <span style="color: #ff4500;">0</span>, <span style="color: #ff4500;">0</span>, <span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span>
total_secs = <span style="color: black;">&#40;</span>home - now<span style="color: black;">&#41;</span>.<span style="color: black;">seconds</span>
hours = total_secs / <span style="color: black;">&#40;</span><span style="color: #ff4500;">60</span> <span style="color: #66cc66;">*</span> <span style="color: #ff4500;">60</span><span style="color: black;">&#41;</span>
minutes = <span style="color: black;">&#40;</span>total_secs - <span style="color: black;">&#40;</span>hours <span style="color: #66cc66;">*</span> <span style="color: #ff4500;">60</span> <span style="color: #66cc66;">*</span> <span style="color: #ff4500;">60</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span> / <span style="color: #ff4500;">60</span>
<span style="color: #ff7700;font-weight:bold;">print</span> hours, <span style="color: #483d8b;">&quot; hours and &quot;</span>, minutes, <span style="color: #483d8b;">&quot; minutes until 5pm&quot;</span></pre>
<p>Very simple I know but I just had to share it <img src='http://sickbiscuit.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks to <a hre="http://www.byteclub.net/blog/cwoodward/">Clinton</a> for the <a href="http://www.byteclub.net/wiki/WordPress_csh_GeSHi_Plugin">GeSHi WordPress plugin</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/04/14/big_corp-rides-the-snake-my-first-python-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trigger happy without broadband</title>
		<link>http://sickbiscuit.com/blog/2008/02/15/trigger-happy-without-broadband/</link>
		<comments>http://sickbiscuit.com/blog/2008/02/15/trigger-happy-without-broadband/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 12:32:06 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Distractions]]></category>
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2008/02/15/trigger-happy-without-broadband/</guid>
		<description><![CDATA[For 2 days now the &#8220;ready&#8221; light on my cable modem has failed to light up and hence I&#8217;ve had no internet access at home   I&#8217;ve tried power-cycling the modem, leaving it unplugged overnight and even disconnecting and reconnecting the cable input. No Joy.
I checked the Virgin Media service status page and can [...]]]></description>
			<content:encoded><![CDATA[<p>For 2 days now the &#8220;ready&#8221; light on my cable modem has failed to light up and hence I&#8217;ve had no internet access at home <img src='http://sickbiscuit.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  I&#8217;ve tried power-cycling the modem, leaving it unplugged overnight and even disconnecting and reconnecting the cable input. No Joy.</p>
<p>I checked the <a href="http://status-cable.virginmedia.com/vmstatus/summary.do">Virgin Media service status page</a> and can see that there was maintenance scheduled for Belfast this morning, maybe this will remedy the problem&#8230;</p>
<p>My morning routine has evolved to consist of catching up on RSS while eating breakfast and guzzling coffee, so this ritual has been disrupted and as an alternative to plugging in to my feed reader I had a look through my home folder for one of the many eBooks I&#8217;ve downloaded and not finished reading.</p>
<p>The lucky contestant turned out to be the freely downloadable<br />
<a href="http://stevenpoole.net/blog/trigger-happier/">Trigger Happy by Steven Poole</a> and what a dose of nostalgia it&#8217;s been!</p>
<p>I haven&#8217;t seriously played any computer games in about a decade now but this book lists many of the titles I invested many hours into when I was younger. I was brought back to the days of sitting hunched over machines like the Atari 2600, Commodore 64, Amiga 600 and NES and I&#8217;ve even considered investing in a new console although my need to save for my future is overriding my want for something new and shiny which I might not even make much use of.</p>
<p>Saying that though I&#8217;ll probably end up grabbing an Amiga Emulator or MAME at some point over the weekend, Virgin Media willing, and catch up on a few childhood memories.</p>
<p>Game on!</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2008/02/15/trigger-happy-without-broadband/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I made this</title>
		<link>http://sickbiscuit.com/blog/2007/04/25/i-made-this/</link>
		<comments>http://sickbiscuit.com/blog/2007/04/25/i-made-this/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 08:45:15 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Distractions]]></category>
		<category><![CDATA[Photo]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2007/04/25/i-made-this/</guid>
		<description><![CDATA[I can&#8217;t believe it, but I actually took the time out yesterday to make this. Here&#8217;s what it&#8217;s meant to look like:

..and here&#8217;s my effort:

It is safe to say I drank too much coffee yesterday  
]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t believe it, but I actually took the time out yesterday to <a href="http://www.instructables.com/id/S9331VJF3DES9J73YS/">make this</a>. Here&#8217;s what it&#8217;s meant to look like:</p>
<p><a href="http://sickbiscuit.com/blog/wp-content/uploads/2007/04/wallet_original.jpg" title="Paper Wallet - Original"><img src="http://sickbiscuit.com/blog/wp-content/uploads/2007/04/wallet_original.jpg" alt="Paper Wallet - Original" /></a><br />
..and here&#8217;s my effort:</p>
<p><a href="http://sickbiscuit.com/blog/wp-content/uploads/2007/04/wallet_my_effort.jpg" title="Paper Wallet - My Effort"><img src="http://sickbiscuit.com/blog/wp-content/uploads/2007/04/wallet_my_effort.jpg" alt="Paper Wallet - My Effort" /></a></p>
<p>It is safe to say I drank too much coffee yesterday <img src='http://sickbiscuit.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2007/04/25/i-made-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wikipedia HiJinks</title>
		<link>http://sickbiscuit.com/blog/2007/01/27/wikipedia-hijinks/</link>
		<comments>http://sickbiscuit.com/blog/2007/01/27/wikipedia-hijinks/#comments</comments>
		<pubDate>Sat, 27 Jan 2007 20:35:54 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Distractions]]></category>
		<category><![CDATA[Screenshot]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2007/01/27/wikipedia-hijinks/</guid>
		<description><![CDATA[I was reading this article on Wikipedia this morning and something didn&#8217;t seem quite right. See if you can spot it in this screenshot:

I had been up from early morning and thought my eyes were playing tricks on me. I read it and re-read it and still the words remained, I can&#8217;t say I was [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading <a href="http://en.wikipedia.org/wiki/Plural_of_virus">this article</a> on Wikipedia this morning and something didn&#8217;t seem quite right. See if you can spot it in this screenshot:</p>
<p><img id="image139" alt="Wikipedia Screenshot" src="http://sickbiscuit.com/blog/wp-content/uploads/2007/01/ass_cream.png" /></p>
<p>I had been up from early morning and thought my eyes were playing tricks on me. I read it and re-read it and still the words remained, I can&#8217;t say I was shocked but I certainly was suprised. My next thought was &#8220;hehe, who can I show this to?&#8221; quickly followed up by the more altruistic &#8220;how do I report this?&#8221; I then took a screenshot for posterity.</p>
<p>I didn&#8217;t have a Wikipedia account, so I quickly registered one and when I was returned to the offending article there was no mention of cream of any kind whatsoever. I was left wondering about the source of said text but decided whatever the source, it was beyond my bailiwick and just went back to what I was doing beforehand, which did actually involve the use of the plural of virus&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2007/01/27/wikipedia-hijinks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Barely Legal</title>
		<link>http://sickbiscuit.com/blog/2006/09/14/barely-legal/</link>
		<comments>http://sickbiscuit.com/blog/2006/09/14/barely-legal/#comments</comments>
		<pubDate>Thu, 14 Sep 2006 11:34:48 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Distractions]]></category>
		<category><![CDATA[Obsession]]></category>
		<category><![CDATA[Photo]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2006/09/14/barely-legal/</guid>
		<description><![CDATA[Richard just drew my attention to this news item describing Banksy&#8217;s latest escapade, an exhibition which includes a &#8220;37-year old Indian elephant [...] painted, from head to tail, in a floral pattern reminiscent of an old fashioned living room or a British pub,&#8221; genius!

I hadn&#8217;t heard of Banksy before until I read about him replacing [...]]]></description>
			<content:encoded><![CDATA[<p>Richard just drew my attention to <a href="http://news.bbc.co.uk/1/hi/entertainment/5344676.stm">this news item</a> describing <a href="http://www.banksy.co.uk/">Banksy&#8217;s</a> latest escapade, <a href="http://news.bbc.co.uk/1/hi/in_pictures/5344770.stm">an exhibition</a> which includes a <em>&#8220;37-year old Indian elephant [...] painted, from head to tail, in a floral pattern reminiscent of an old fashioned living room or a British pub</em>,&#8221; genius!</p>
<p><img id="image61" alt="Banksy - Pink Elephant" src="/blog/wp-content/uploads/2006/09/banksy_pinkelephant2.jpg" /></p>
<p>I hadn&#8217;t heard of <a href="http://en.wikipedia.org/wiki/Banksy">Banksy</a> before until I read about him <a href="http://news.bbc.co.uk/1/hi/entertainment/5310416.stm">replacing 500 copies of Paris Hilton&#8217;s album</a> in record shops with CDs containing music by Danger Mouse and featuring <a href="http://www.flickr.com/photos/sharl/sets/72157594266743665/">doctored artwork</a>. I immediately thought &#8220;I like the way this guy thinks!&#8221;</p>
<p>Looks like I&#8217;ve just got myself a new IM avatar!</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2006/09/14/barely-legal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pink Is The Colour</title>
		<link>http://sickbiscuit.com/blog/2006/09/06/pink-is-the-colour/</link>
		<comments>http://sickbiscuit.com/blog/2006/09/06/pink-is-the-colour/#comments</comments>
		<pubDate>Wed, 06 Sep 2006 09:52:55 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Clerical]]></category>
		<category><![CDATA[Distractions]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2006/09/06/pink-is-the-colour/</guid>
		<description><![CDATA[I was reading a discussion on Lifehacker this morning about listening to music while studying, whcih mentioned an earlier post about pink noise. Between the guy on the radio and one of my coworkers I knew I had to take action or suffer the consequences. I felt a MacGyver moment coming on.
One of the comments [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading a discussion on Lifehacker this morning about <a href="http://www.lifehacker.com/software/ask-the-readers/ask-the-readers--best-music-for-studying-198284.php">listening to music while studying</a>, whcih mentioned an earlier post about <a href="http://www.lifehacker.com/software/top/download-of-the-day--noise-157126.php">pink noise</a>. Between the guy on the radio and one of my coworkers I knew I <strong>had</strong> to take action or suffer <a href="http://www.google.co.uk/search?q=your+stress+is+my+stress">the consequences</a>. I felt a <a href="http://en.wikipedia.org/wiki/MacGyver">MacGyver</a> moment coming on.</p>
<p>One of the comments on the pink noise post led me to download <a href="http://www.moshier.net/pink.html">a little app</a> which generates a wave file containing 12 seconds <a href="http://en.wikipedia.org/wiki/Pink_noise">of the stuff</a>. A hop, skip and a jump over to SourceForce enriched me with a copy of <a href="http://audacity.sourceforge.net/">Audacity</a> which enabled me to copy-and-paste to my wee hearts delight and voila, 50 minutes of pink noise in an mp3 sandwich which I swiftly <a href="http://www.ephpod.com/">transfered to my iPod</a>. Powerful.</p>
<p>I&#8217;m listening to it now while I&#8217;m writing this post. It reminds me of Lou Reed&#8217;s <a href="http://en.wikipedia.org/wiki/Metal_Machine_Music">Metal Machine Music</a> and like MMM, I don&#8217;t know if I like it and I may well either be sick or go mad.</p>
<p>Now if I only had some <a href="http://www.imdb.com/title/tt0088559/quotes">duct tape</a>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2006/09/06/pink-is-the-colour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wee Me</title>
		<link>http://sickbiscuit.com/blog/2006/07/05/wee-me/</link>
		<comments>http://sickbiscuit.com/blog/2006/07/05/wee-me/#comments</comments>
		<pubDate>Wed, 05 Jul 2006 10:55:54 +0000</pubDate>
		<dc:creator>steve</dc:creator>
				<category><![CDATA[Distractions]]></category>

		<guid isPermaLink="false">http://sickbiscuit.com/blog/2006/07/05/wee-me/</guid>
		<description><![CDATA[I was sorting through my bookmarks in Firefox and I found a link to this site which allows you to create a minature clone of yourself (in colour!) Here&#8217;s what I (mostly) look like today:
 Pretty much a Regular John, huh?
I should really get back to some &#8220;proper&#8221; work, instead of creating things like this:
Google [...]]]></description>
			<content:encoded><![CDATA[<p>I was sorting through my bookmarks in <a href="http://www.mozilla.com/firefox/">Firefox</a> and I found a link to <a href="http://www.stortroopers.com/">this site</a> which allows you to create a minature clone of yourself (<a href="http://en.wikipedia.org/wiki/Thunderbirds_%28TV_series%29">in colour!</a>) Here&#8217;s what I (mostly) look like today:</p>
<p><img class="alignleft" alt="Mini-Steve" id="image34" title="Mini-Steve" src="http://sickbiscuit.com/blog/wp-content/uploads/2006/07/wee_me.gif" /><img class="alignright" alt="Mini-Steve in Y-Fronts and a Trenchcoat" id="image35" title="Mini-Steve in Y-Fronts and a Trenchcoat" src="http://sickbiscuit.com/blog/wp-content/uploads/2006/07/wee_me_goth.gif" /> Pretty much a <a href="http://qotsa.com/">Regular John</a>, huh?</p>
<p>I should really get back to some &#8220;proper&#8221; work, instead of creating things like this:</p>
<p><a href="http://www.google.com/apis/maps/">Google Maps</a> here I come&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sickbiscuit.com/blog/2006/07/05/wee-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

