<?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>SJ Cuthbertson &#187; hacks</title>
	<atom:link href="http://www.sjcuthbertson.me.uk/wp/tag/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sjcuthbertson.me.uk</link>
	<description>A space for the mind to wander at will</description>
	<lastBuildDate>Sun, 04 Jul 2010 12:49:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Python for Pinocchio</title>
		<link>http://www.sjcuthbertson.me.uk/wp/2009/09/python-for-pinocchio/</link>
		<comments>http://www.sjcuthbertson.me.uk/wp/2009/09/python-for-pinocchio/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 14:32:08 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[happenings]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[lies]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.sjcuthbertson.me.uk/?p=225</guid>
		<description><![CDATA[So I discovered Dave&#8217;s Web Of Lies a while ago, and was at about the same time looking for random things I could code in Python to improve my skills&#8230; Having now finished my job at the ADC, I&#8217;ve had time to put it together. I present my python Lie Generator. It&#8217;s not much, but [...]]]></description>
			<content:encoded><![CDATA[<p>So I discovered <a href="http://www.davesweboflies.com">Dave&#8217;s Web Of Lies</a> a while ago, and was at about the same time looking for random things I could code in <a href="http://www.python.org">Python</a> to improve my skills&#8230;</p>
<p>Having now finished my job at the ADC, I&#8217;ve had time to put it together. I present my python <a href="http://www.sjcuthbertson.me.uk/wp/wp-content/uploads/2009/09/tellalie.py">Lie Generator</a>.  It&#8217;s not much, but it was fun to make.  It honed my regex skills rather a lot (DWOL doesn&#8217;t include any kind of API), and is also able to deal gracefully with internet-connectivity problems.  It works with Python 3 only (due to changes to their urllib library) and must be called from the command line.  I might someday work it into the website in some fashion.</p>
<p>I should probably reiterate what&#8217;s stated in the help text: copyright for all lies remains as stated on DWOL.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjcuthbertson.me.uk/wp/2009/09/python-for-pinocchio/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Compsci Rickroll</title>
		<link>http://www.sjcuthbertson.me.uk/wp/2008/05/compsci-rickroll/</link>
		<comments>http://www.sjcuthbertson.me.uk/wp/2008/05/compsci-rickroll/#comments</comments>
		<pubDate>Wed, 21 May 2008 09:54:04 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[compsci]]></category>
		<category><![CDATA[geeky]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[rickroll]]></category>

		<guid isPermaLink="false">http://www.sjcuthbertson.me.uk/?p=126</guid>
		<description><![CDATA[This will only be of interest to geeky types&#8230; Rickrolling a 1B lecture]]></description>
			<content:encoded><![CDATA[<p>This will only be of interest to geeky types&#8230;<br />
<a href="http://mjj29.matthew.ath.cx/rolled.txt">Rickrolling a 1B lecture</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjcuthbertson.me.uk/wp/2008/05/compsci-rickroll/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Handy bash script</title>
		<link>http://www.sjcuthbertson.me.uk/wp/2008/05/handy-bash-script/</link>
		<comments>http://www.sjcuthbertson.me.uk/wp/2008/05/handy-bash-script/#comments</comments>
		<pubDate>Sun, 18 May 2008 12:55:35 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[happenings]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.sjcuthbertson.me.uk/?p=125</guid>
		<description><![CDATA[You&#8217;ve installed something from package repositories, and, on invoking, it tells you to actually run a certain script first. The script fails because you&#8217;re behind a proxy server, but you don&#8217;t know where Aptitude put the script in order to edit it. You know it&#8217;s in your $PATH, but that&#8217;s a lot of directories&#8230; Solution [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve installed something from package repositories, and, on invoking, it tells you to actually run a certain script first.  The script fails because you&#8217;re behind a proxy server, but you don&#8217;t know where Aptitude put the script in order to edit it.  You know it&#8217;s in your $PATH, but that&#8217;s a lot of directories&#8230;</p>
<p>Solution (assuming you use bash):<br />
<code><br />
for inMyPath in `echo $PATH | sed -e 's/:/\\t/g'`;<br />
do<br />
   find $inMyPath -name MISSING_FILE;<br />
done<br />
</code></p>
<p>MISSING_FILE is the name of the script (or whatever) that you&#8217;re after.  This is fairly trivial, I admit, but it took me a while to work out how to do it right (mainly sedding PATH correctly).  I&#8217;m about to put it into a script of its own for future use. <img src='http://www.sjcuthbertson.me.uk/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjcuthbertson.me.uk/wp/2008/05/handy-bash-script/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Fluxbuntu (cntd)</title>
		<link>http://www.sjcuthbertson.me.uk/wp/2008/02/fluxbuntu-cntd/</link>
		<comments>http://www.sjcuthbertson.me.uk/wp/2008/02/fluxbuntu-cntd/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 17:27:23 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[fluxbox]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.sjcuthbertson.me.uk/wordpress/2008/02/24/fluxbuntu-cntd/</guid>
		<description><![CDATA[So, turns out that the downloadable ISO from fluxbuntu.org is broken (MD5 matches, so the problem&#8217;s on their end), or else I have three broken CD-burning applications, or two broken CD-burning drives. Occam&#8217;s-razorize THAT one. It also turns out that my laptop&#8217;s optical drive (or possibly BIOS) is a little iffy &#8211; I can&#8217;t boot [...]]]></description>
			<content:encoded><![CDATA[<p>So, turns out that the downloadable ISO from fluxbuntu.org is broken (MD5 matches, so the problem&#8217;s on their end), or else I have three broken CD-burning applications, or two broken CD-burning drives.  Occam&#8217;s-razorize THAT one.  It also turns out that my laptop&#8217;s optical drive (or possibly BIOS) is a little iffy &#8211; I can&#8217;t boot off any LiveCDs, even ones that work in my PC.</p>
<p>I have worked out a potential means of fixing the laptop, though.  What&#8217;s broken, I believe, is that I don&#8217;t have either of Gnome or K desktop managers installed, only XDM, which I think Fluxbox doesn&#8217;t really support.  So I have a window manager with nothing behind the scenes to take control when I actually *click* on a menu item.  If I can reinstall GDM or KDM, I might be OK, but without an optical drive or means of internet connectivity (also broken), I can only see one (comical) solution.  Download the DPKG on another machine, and transfer via USB stick or floppy disk (!), then install locally.  Great.  I&#8217;m not even going to bother, I&#8217;ll just spend hours faffing when I could just be doing all my research analysis and report-writing elsewhere.</p>
<p>Result: I&#8217;ve installed MiKTeX on my XP desktop, and intend to ssh to pip.srcf for <a href="http://www.sjcuthbertson.me.uk/wordpress/2007/12/13/more-late-night-linux/">certain necessary operations</a>.  And now I&#8217;m going to get on and try to actually view computers as means again, rather than ends&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjcuthbertson.me.uk/wp/2008/02/fluxbuntu-cntd/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fluxbuntu</title>
		<link>http://www.sjcuthbertson.me.uk/wp/2008/02/fluxbuntu/</link>
		<comments>http://www.sjcuthbertson.me.uk/wp/2008/02/fluxbuntu/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 16:31:35 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[fluxbox]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pda]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.sjcuthbertson.me.uk/wordpress/2008/02/22/fluxbuntu/</guid>
		<description><![CDATA[I&#8217;ve just noticed that Fluxbuntu appears to be at a reasonably stable stage now. Methinks it&#8217;s time for a reinstall on my laptop&#8230; (FYI, I&#8217;ve been running a heavily bastardised *buntu-based linux installation on my oldish Dell C640 for some time. I&#8217;ve messed around with the packaging way too much to call it Ubuntu or [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just noticed that <a href="http://www.fluxbuntu.org">Fluxbuntu</a> appears to be at a reasonably stable stage now.  Methinks it&#8217;s time for a reinstall on my laptop&#8230;</p>
<p>(FYI, I&#8217;ve been running a heavily bastardised *buntu-based linux installation on my oldish Dell C640 for some time.  I&#8217;ve messed around with the packaging way too much to call it Ubuntu or Kubuntu &#8211; indeed, at various times I&#8217;ve tried not just the GNOME and KDE packages, but Xfce as well (Xubuntu), and then settled on Fluxbox with GDM underneath.  This was before the concept of Fluxbuntu existed.  After spending a lot of time yesterday customising the Fluxbox interface, I succeeded (somehow) in removing all display managers.  I then put XDM on, and now Fluxbox comes up, but without functional menus&#8230; so I can&#8217;t even launch a virtual terminal.  Ah well&#8230;)</p>
<p>My longer term aim is to actually build a linux install from the ground up &#8211; I want Fluxbox, but I probably don&#8217;t want a lot of what comes with Fluxbuntu.  This might signal my first change from *buntu for some years&#8230;</p>
<p>Oh yeah, and to conclude my previous post, Airset is <strong>vastly</strong> overengineered for my needs, but does sync well to Palm devices, so I&#8217;m using that.  I plan to set up some complicated iCal sharing at some point between Airset, facebook, Google Calendar/Mail, and other webapps, which could be quite cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjcuthbertson.me.uk/wp/2008/02/fluxbuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>gOS + Puppy Linux = ?</title>
		<link>http://www.sjcuthbertson.me.uk/wp/2007/11/gos-puppy-linux/</link>
		<comments>http://www.sjcuthbertson.me.uk/wp/2007/11/gos-puppy-linux/#comments</comments>
		<pubDate>Sun, 11 Nov 2007 17:59:24 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[portability]]></category>

		<guid isPermaLink="false">http://www.sjcuthbertson.me.uk/wordpress/2007/11/11/gos-puppy-linux/</guid>
		<description><![CDATA[If you&#8217;ve not heard, gOS is an Ubuntu-based linux distro tailored to integrate the Google web applications we all know and love into a desktop experience &#8211; the nearest thing to a Google OS so far (though, despite the similarity of names, gOS is not affliated with Google to the best of my knowledge). They&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve not heard, <a href="http://www.thinkgos.com">gOS</a> is an Ubuntu-based linux distro tailored to integrate the Google web applications we all know and love into a desktop experience &#8211; the nearest thing to a Google OS so far (though, despite the similarity of names, gOS is not affliated with Google to the best of my knowledge).  They&#8217;ve also brought out a <a href="http://blog.wired.com/gadgets/2007/10/200-everex-gree.html">gOS-powered $200 PC</a> to Walmarts all across the US, which is a Good Thing.  Of course, since the OS relies on web-based applications for most day-to-day tasks, it&#8217;s quite lightweight &#8211; though still a full CD&#8217;s worth.</p>
<p><a href="http://www.puppylinux.org/">Puppy Linux</a> is a very lightweight linux distro designed to be run from USB memory sticks.  It still currently uses traditional desktop applications, though.</p>
<p>I have acquired a (free) 512Mb memory stick, of a pretty decent build-quality and a very keychain-able size (more on how and when will be explained in a future post, once I have a bit more to add to it), and want something to do with it.  I already have a similar-sized one which I use for general carrying of files between home, the department, etc, and running a few Portable Apps such as a customised Firefox, when I&#8217;m out and about.  I need to read up on how exactly to make one&#8217;s own USB-bootable flash-stored OS, but I think I see a holiday project here <img src='http://www.sjcuthbertson.me.uk/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjcuthbertson.me.uk/wp/2007/11/gos-puppy-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Addressbar-clicking hack</title>
		<link>http://www.sjcuthbertson.me.uk/wp/2007/10/firefox-addressbar-clicking-hack/</link>
		<comments>http://www.sjcuthbertson.me.uk/wp/2007/10/firefox-addressbar-clicking-hack/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 21:56:49 +0000</pubDate>
		<dc:creator>Stuart</dc:creator>
				<category><![CDATA[happenings]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[tweaks]]></category>

		<guid isPermaLink="false">http://www.sjcuthbertson.me.uk/wordpress/2007/10/23/firefox-addressbar-clicking-hack/</guid>
		<description><![CDATA[This will be of most interest to a certain lanky Linux devotee who will hopefully read this; but if you&#8217;ve also been frustrated by the behaviour of Firefox&#8217;s address bar when you click on it, read on. The behaviour I refer to is that when you click on the addressbar, FF normally immediately highlights the [...]]]></description>
			<content:encoded><![CDATA[<p>This will be of most interest to a certain lanky Linux devotee who will hopefully read this; but if you&#8217;ve also been frustrated by the behaviour of Firefox&#8217;s address bar when you click on it, read on.  The behaviour I refer to is that when you click on the addressbar, FF normally immediately highlights the entire line.  If you&#8217;re used to this, OK, but it does go against a pretty widely adopted convention: click once to place the cursor, twice to select the word, and thrice to select the paragraph.  MS Notepad/Wordpad/Write/Word have been doing this since the Dawn of Time &#8482;.  I suspect that&#8217;s also how Mac OS originally implemented cursor clicks in text fields, and it&#8217;s certainly a convention on *nix machines with X.</p>
<p>The fix? Not really even a hack, actually.  In FF&#8217;s about:config screen, change &#8216;browser.urlbar.clickSelectsAll to false.  Restart FF, and voila.  <img src='http://www.sjcuthbertson.me.uk/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sjcuthbertson.me.uk/wp/2007/10/firefox-addressbar-clicking-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
