<?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>Random and Irrelevant &#187; Sam</title>
	<atom:link href="http://sgp.me.uk/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://sgp.me.uk</link>
	<description>Sam Pearson&#039;s weblog - irrelevant content randomly updated</description>
	<lastBuildDate>Fri, 18 Nov 2011 18:06:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The dreams of children</title>
		<link>http://sgp.me.uk/2011/10/21/the-dreams-of-children/</link>
		<comments>http://sgp.me.uk/2011/10/21/the-dreams-of-children/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 07:51:45 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[SF]]></category>
		<category><![CDATA[Family]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=1078</guid>
		<description><![CDATA[My 4-year-old daughter climbed into bed this morning and asked if we&#8217;d like to hear about her dream. This is what she told us: There was a princess in a tall, tall tower. A prince rescued her and she fell &#8230; <a href="http://sgp.me.uk/2011/10/21/the-dreams-of-children/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My 4-year-old daughter climbed into bed this morning and asked if we&#8217;d like to hear about her dream. This is what she told us:</p>
<blockquote><p>
There was a princess in a tall, tall tower. A prince rescued her and she fell flat on her face. The prince thought she was sleeping and kissed her, but she was actually dead.
</p></blockquote>
<p>I hope she ends up becoming a writer, I do like a bit of dark fantasy <img src='http://sgp.me.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2011/10/21/the-dreams-of-children/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cool stuff in October</title>
		<link>http://sgp.me.uk/2011/09/22/cool-stuff-in-october/</link>
		<comments>http://sgp.me.uk/2011/09/22/cool-stuff-in-october/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 07:57:04 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Local Affairs]]></category>
		<category><![CDATA[SF]]></category>
		<category><![CDATA[Bristol]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=1061</guid>
		<description><![CDATA[There&#8217;s lots of cool stuff going on in October in Bristol if you&#8217;re into literature and SF in particular. There&#8217;s the Bristol Festival of Literature running between 14th and 23rd October with heaps going on all over the city. During &#8230; <a href="http://sgp.me.uk/2011/09/22/cool-stuff-in-october/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s lots of cool stuff going on in October in Bristol if you&#8217;re into literature and SF in particular. There&#8217;s the <a href="http://unputdownable.org/">Bristol Festival of Literature</a> running between 14th and 23rd October with heaps going on all over the city. During the festival on the 22nd it&#8217;s <a href="http://www.bristolcon.org/">BristolCon 2011</a>, Bristol&#8217;s Science Fiction and Fantasy convention, and there&#8217;s <a href="http://www.bristolcon.org/?p=1012">a bunch of cross-over events happening</a>. Also my friend and local author <a href="http://www.garethlpowell.com/thunderbolt-date/">Gareth Powell</a> is taking part in a <a href="http://citychameleon.co.uk/wordofmouth/">Word of Mouth</a> event at <a href="http://www.thethunderbolt.net/">The Thunderbolt</a> in Totterdown on the 5th October. A very cultured month in the offing!</p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2011/09/22/cool-stuff-in-october/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New theme and new headers</title>
		<link>http://sgp.me.uk/2011/09/18/new-theme-and-new-headers/</link>
		<comments>http://sgp.me.uk/2011/09/18/new-theme-and-new-headers/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 09:53:59 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=1057</guid>
		<description><![CDATA[I quite like the new WordPress theme, so I&#8217;m going to use it. I was looking for a theme that supports the different post types and allowed for good customisation and of the free ones I found that I liked &#8230; <a href="http://sgp.me.uk/2011/09/18/new-theme-and-new-headers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I quite like the new WordPress theme, so I&#8217;m going to use it. I was looking for a theme that supports the different post types and allowed for good customisation and of the free ones I found that I liked this was by far the best.</p>
<p>The header pictures are all cropped from my own photos taken over the past few years. I&#8217;m not a particularly great photographer, but I like the images and they reflect some of my current obsessions. Feel free to use them under the terms of a <a href="https://creativecommons.org/licenses/by-sa/2.0/uk/">Creative Commons Attribution ShareAlike license</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2011/09/18/new-theme-and-new-headers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://sgp.me.uk/2011/09/16/1027/</link>
		<comments>http://sgp.me.uk/2011/09/16/1027/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 20:21:45 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Meta]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=1027</guid>
		<description><![CDATA[Yep, I like this. Nice to be able to post little snippets.]]></description>
			<content:encoded><![CDATA[<p>Yep, I like this. Nice to be able to post little snippets.</p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2011/09/16/1027/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://sgp.me.uk/2011/09/16/1024/</link>
		<comments>http://sgp.me.uk/2011/09/16/1024/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 20:14:49 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Meta]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=1024</guid>
		<description><![CDATA[I&#8217;m messing with my blog. This is meant to be an &#8220;aside&#8221;, so lets see how this turns out&#8230;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m messing with my blog. This is meant to be an &#8220;aside&#8221;, so lets see how this turns out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2011/09/16/1024/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Books in 2011</title>
		<link>http://sgp.me.uk/2011/01/31/books-in-2011/</link>
		<comments>http://sgp.me.uk/2011/01/31/books-in-2011/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 19:09:47 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Myths and Legends]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[SF]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=978</guid>
		<description><![CDATA[I never did a new year&#8217;s resolutions post this year.  Oh well   One of them was to try and read more, plus try to read/re-read some mythology in translation.  One part of this is that I want to keep &#8230; <a href="http://sgp.me.uk/2011/01/31/books-in-2011/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I never did a new year&#8217;s resolutions post this year.  Oh well <img src='http://sgp.me.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   One of them was to try and read more, plus try to read/re-read some mythology in translation.  One part of this is that I want to keep track of what I&#8217;ve read, hence this post.</p>
<ol>
<li><a href="https://secure.wikimedia.org/wikipedia/en/wiki/Surface_Detail">Surface Detail</a>, Iain M Banks.  01/01 &#8211; 22/01.</li>
<li><span id="btAsinTitle"><a href="http://www.amazon.co.uk/gp/product/0192803735/">The </a></span><a href="http://www.amazon.co.uk/gp/product/0192803735/">Táin</a><span id="btAsinTitle"><a href="http://www.amazon.co.uk/gp/product/0192803735/">: From the Irish epic </a></span><a href="http://www.amazon.co.uk/gp/product/0192803735/">Táin Bó Cuailnge</a><span id="btAsinTitle">, Thomas Kinsella (trans.) and Louis Le Brocquy (illus.)  22/01 &#8211; 30/01.</span></li>
<li><span id="btAsinTitle"><a href="https://secure.wikimedia.org/wikipedia/en/wiki/Kraken_%28novel%29">The Kraken</a>, China </span>Miéville.  31/01 &#8211; 15/03.</li>
<li><a title="Wikipedia entry on The Quantum Thief" href="https://secure.wikimedia.org/wikipedia/en/wiki/The_Quantum_Thief">The Quantum Thief</a>, Hannu Ranjaniemi. 15/03 &#8211; 22/03.</li>
<li><a title="Wikipedia entry on American Gods" href="https://secure.wikimedia.org/wikipedia/en/wiki/American_Gods">American Gods</a>, Neil Gaiman. 23/03 &#8211; 30/03.</li>
<li>Before They Are Hanged, Joe Abercrombie. 31/03 &#8211; 06/04</li>
<li>Last Argument of Kings, Joe Abercrombie. 07/04 &#8211; 16/04.</li>
<li><a href="http://www.selfmadehero.com/title.php?isbn=9781906838287">The Lovecraft Anthology Volume 1</a>, Dan Lockwood (Ed.) 17/04 &#8211; 20/04.</li>
<li>Deep State, Walter Jon Williams. 21/04 &#8211; 05/05.</li>
<li><a title="Review at the Guardian" href="http://www.guardian.co.uk/books/2010/nov/14/mountains-of-madness-lovecraft-culbard-review">At The Mountains of Madness</a>, HP Lovecraft, INJ Culbard (Illus.) 22/04 &#8211; 23/04.</li>
<li>The Night Sessions, Ken MacLeod. 06/05 &#8211; 19/05.</li>
<li><a href="http://www.wizardstowerbooks.com/anthologies/darkspires.html">Dark Spires</a>, Colin Harvey (Ed.) 20/05 -</li>
<li>Zoo City, Lauren Beukes. 20/05 &#8211; 16/06.</li>
<li>Wireless, Charles Stross. 17/06 -</li>
<li><a title="Good Reads" href="http://www.goodreads.com/book/show/100373.The_Quest_for_Arthur_s_Britain">The Quest for Arthur&#8217;s Britain</a>, Geoffrey Ashe (Ed.). 25/06 &#8211; 30/06.</li>
<li><a title="Amazon (UK)" href="http://www.amazon.co.uk/Camelot-Vision-Albion-Geoffrey-Ashe/dp/0586041346">Camelot and the Vision of Albion</a>, Geoffrey Ashe. 30/06 -</li>
<li><a title="Guardian review" href="http://www.guardian.co.uk/books/2011/aug/11/rule-34-charles-stross-damien-walter">Rule 34</a>, Charles Stross. 09/07 &#8211; 15/07.</li>
<li><a title="Author's website" href="http://www.peterfhamilton.co.uk/index.php?page=the-evolutionary-void">The Evolutionary Void</a>, Peter F Hamilton. 16/07 &#8211; 23/07.</li>
<li><a title="Author's website" href="http://www.mythicisland.com/vastpage.php">Vast</a>, Linda Nagata. 23/07 &#8211; 06/08.</li>
<li><a title="Author's website" href="http://www.mythicisland.com/tbmpage.php">The Bohr Maker</a>, Linda Nagata. 07/08 &#8211; 25/08.</li>
<li><a title="Author's website" href="http://www.garethlpowell.com/the-recollection/">The Recollection</a>, Gareth L Powell. 26/08 &#8211; 02/09.</li>
<li><a title="Publisher's website" href="http://angryrobotbooks.com/our-authors/colin-harvey/damage-time-colin-harvey/">Damage Time</a>, Colin Harvey. 02/09 &#8211; 28/10.</li>
<li><a href="http://shevdon.com/sixty-one-nails">Sixty One Nails</a>, Mike Shevdon. 29/10 &#8211; 14/11.</li>
<li>A Game of Thrones, George R. R. Martin. 15/11 -</li>
</ol>
<p>And that&#8217;s all so far. I guess I&#8217;ll be able to see just how widely, or not, I read by the end of the year.  I often have more than one book on the go, but so far it&#8217;s been sequential so far this year.  Link targets vary, some Wikipedia, some author or publisher sites, some reviews &#8211; there might be a tooltip if you hover over the link and I remembered to add one.</p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2011/01/31/books-in-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BristolCon &#8217;10</title>
		<link>http://sgp.me.uk/2010/11/09/bristolcon-10/</link>
		<comments>http://sgp.me.uk/2010/11/09/bristolcon-10/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 21:01:15 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[SF]]></category>
		<category><![CDATA[BristolCon]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=964</guid>
		<description><![CDATA[I went to BristolCon&#8217;10 last weekend, a Science Fiction and Fantasy convention held at the Ramada Hotel in Bristol. It was BristolCon&#8217;s second year, and my first convention since going to Games Day &#8217;87 as a teenager. It was a &#8230; <a href="http://sgp.me.uk/2010/11/09/bristolcon-10/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I went to <a href="http://www.bristolcon.org/">BristolCon&#8217;10</a> last weekend, a Science Fiction and Fantasy convention held at the Ramada Hotel in Bristol.  It was BristolCon&#8217;s second year, and my first convention since going to Games Day &#8217;87 as a teenager.</p>
<p>It was a great day out.  Loads of interesting panel discussions, a range of dealers and artists displaying their work and plenty of interesting and friendly people to talk and drink with.  High points of the day were chatting with <a href="http://voxish.tripod.com/">Alastair Reynolds</a> during the mass book-signing at lunchtime, <a href="http://eugenebyrne.wordpress.com/">Eugene Byrne</a>&#8216;s talk on the fantastic cityscape of Bristol and watching <a href="http://www.johnmeaney.com/">John Meaney</a> and <a href="http://www.julietemckenna.com/">Juliet McKenna </a>terrorise <a href="http://www.joeabercrombie.com/">Joe Abercrombie</a> and <a href="http://www.cheryl-morgan.com/">Cheryl Morgan</a> during the &#8220;Writing Fight Scenes&#8221; panel.  I enjoyed all the panels I attended (all but two I think), came second in the pub quiz with a group of people I&#8217;d never met before (well, except for Mark) and narrowly avoided becoming embarrassingly drunk (at least I think I avoided it&#8230;)</p>
<p>Strangely, I was a little apprehensive before the Con.  I&#8217;ve been a fan of SF and Fantasy for as long as I&#8217;ve been reading, but I&#8217;ve never really been into Cons and fandom although it has intrigued me.  I guess my reluctance to take part in the past has been due to my own insecurities as much as anything else; I feared things might be cliquey or exclusive and I&#8217;m happy to have been proved wrong, at least by the folks at BristolCon.  I&#8217;ve been going along to the Bristol Science Fiction and Fantasy Society monthly meetings on and off for a few months this year and have met a group of friendly and interesting people, many of whom were involved with running BristolCon, so I&#8217;ll be going again next year.  Thanks to everyone involved in organising a fun and interesting day!</p>
<p>For the interested, there are <a href="http://www.flickr.com/photos/sagepe/sets/72157625349756852/">a handful of photos on my Flickr page, </a>and <a href="http://www.bristolcon.org/?p=624">a list of links to other BristolCon&#8217;10 write-ups</a> here on the BristolCon site.  Search Twitter for the <a href="http://twitter.com/#search?q=%23bristolcon">#bristolcon</a> hashtag for a load of associated tweets.</p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2010/11/09/bristolcon-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A new decade</title>
		<link>http://sgp.me.uk/2010/01/01/a-new-decade/</link>
		<comments>http://sgp.me.uk/2010/01/01/a-new-decade/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 12:49:00 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[Boring]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=817</guid>
		<description><![CDATA[Happy New Year! It goes to show just how much I update this site that 2009&#8242;s Happy New Year post is still showing on the front page as I type this I don&#8217;t think I&#8217;ll bother publishing a list of &#8230; <a href="http://sgp.me.uk/2010/01/01/a-new-decade/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Happy New Year!</p>
<p>It goes to show just how much I update this site that <a href="http://sgp.me.uk/2009/01/02/happy-new-year/">2009&#8242;s Happy New Year post</a> is still showing on the front page as I type this <img src='http://sgp.me.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I don&#8217;t think I&#8217;ll bother publishing a list of resolutions this time around, suffice to say that it&#8217;s 30 days since I last smoked a cigarette, I never did start swimming regularly again but I do drink less, so that&#8217;s a qualified failure.  Still, 30 days and no smoking is pretty good so here&#8217;s to that being 395 days this time next year (although I haven&#8217;t smoked full-time for years and I&#8217;ve gone far longer without a cigarette before. Ach, come on &#8211; positive thinking!)</p>
<p>Changing the subject, I&#8217;ve recently got around to going back over the content here categorising and tagging posts and generally tidying up.  This blog has moved hosts, changed URL and been restored from backup more than once and is in a bit of a mess.  There&#8217;s a fair amount of linkrot that needs sorting and plenty of typos and markup errors that need correcting.  My aim is to get it all sorted out so at least what is here looks OK and doesn&#8217;t make me look like too much of an amateur <img src='http://sgp.me.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Looking back now I will admit to wincing a little when reading some of the posts.  I suppose this is natural when you consider that the site&#8217;s been around for 7 years or so and over this period I&#8217;ve done a fair few things, grown older, changed.  Nevertheless I&#8217;m leaving it all here unless it&#8217;s actively misleading.</p>
<p>As for new content&#8230; well life&#8217;s pretty busy these days and doesn&#8217;t leave a lot of time for blogging.  My employer obviously doesn&#8217;t pay me to maintain a personal blog and my family takes up much of the rest of my time.  I&#8217;m not complaining, just observing.  I&#8217;d like to think that writing is something I&#8217;ll take up more seriously in the future, but for the time being I don&#8217;t expect to post much here other than the occasional how-to piece.</p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2010/01/01/a-new-decade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking .deb files</title>
		<link>http://sgp.me.uk/2009/08/11/hacking-deb-files/</link>
		<comments>http://sgp.me.uk/2009/08/11/hacking-deb-files/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 19:22:38 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=709</guid>
		<description><![CDATA[This is a follow-up to my previous post about <a href="http://sgp.me.uk/2008/12/29/installing-the-flash-plug-in-on-ubuntu-from-behind-a-proxy/">downloading the Ubuntu Flash plugin package from behind a proxy</a>.  Rather than having to go through a failed installation, editing the <code>postinst</code> script then re-installing, here is an alternative method where the package is downloaded, unpacked, the script edited then the package rebuilt and installed in the normal way using <code>apt-get</code>. <a href="http://sgp.me.uk/2009/08/11/hacking-deb-files/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a follow-up to my previous post about <a href="http://sgp.me.uk/2008/12/29/installing-the-flash-plug-in-on-ubuntu-from-behind-a-proxy/">downloading the Ubuntu Flash plugin package from behind a proxy</a>.  Rather than having to go through a failed installation, editing the <code>postinst</code> script then re-installing, here is an alternative method where the package is downloaded, unpacked, the script edited then the package rebuilt and installed in the normal way using <code>apt-get</code>.</p>
<p>The procedure below uses <code>flashplugin-nonfree</code> as an example package, but this process could be used to edit any <code>.deb</code> with a little care &#8211; just change the package name.</p>
<p>Having said that, it&#8217;s a quick-and-dirty fix-up and as such only really suitable if you only need to make simple changes to the control scripts such as <code>postinst</code>, <code>prerm</code>, etc, in an existing package.  Major changes to a package&#8217;s structure or contents will need more care and you should take a look at the <a href="http://www.debian.org/doc/maint-guide/">Debian Maintainers Guide</a> or any of the other HOWTOs and FAQs available on the web for detailed information on how to do this.</p>
<p>Needless to say you&#8217;ll need to do much of this as <code>root</code>.  Have a care.</p>
<ol>
<li>Download the updated debian package using <code>apt-get -d install flashplugin-nonfree</code>.  This will place the latest version of the package in <code>/var/cache/apt/archives</code> without actually installing it.  Note that if you have multiple updates to do, you can use <code>apt-get -d upgrade</code> instead; this will also download any other packages that are currently due an upgrade at the same time &#8211; this is fine, they will be installed normally at the end of the process along with the modified package.</li>
<li>Change your working directory to <code>/var/cache/apt/archives</code> then make a backup: <code>cp flashplugin-nonfree_$version_i386.deb /root/</code></li>
<li>Create a tempory directory structure where you can unpack the archive: <code>mkdir -p /tmp/flashplugin-nonfree_$version_i386/debian/DEBIAN</code></li>
<li>Extract the contents of the <code>.deb</code>: <code>ar -x flashplugin-nonfree_$version_i386.deb</code>.  This will result in three files, <code>debian-binary</code>, <code>data.tar.gz</code> and <code>control.tar.gz</code>.  You can delete the <code>debian-binary</code> file.</li>
<li>Move <code>data.tar.gz</code> into <code>/tmp/flashplugin-nonfree_$version_i386/debian/</code> and the <code>control.tar.gz</code> file into <code>/tmp/flashplugin-nonfree_$version_i386/debian/DEBIAN</code>.  Unpack the archives in these locations and delete the tarballs.</li>
<li>You can now edit the <code>postinst</code> script in <code>/tmp/flashplugin-nonfree_$version_i386/debian/DEBIAN</code> to include the proxy settings as outlined in <a href="http://sgp.me.uk/2008/12/29/installing-the-flash-plug-in-on-ubuntu-from-behind-a-proxy/">Installing the Flash plug-in on Ubuntu from behind a proxy</a>.</li>
<li>Now you are ready to rebuild the package.  Change directory to <code>/tmp/flashplugin-nonfree_$version_i386/</code> and run <code>dpkg-deb --build debian</code>.  This should create a file in the <code>debian/</code> subdirectory called <code>debian.deb</code>.  You may see some warnings about the <code>control</code> file containing user-defined fields &#8211; these can be safely ignored.</li>
<li>Now move the <code>debian.deb</code> file into <code>/var/cache/atp/archives</code> using the same filename as the original package: <code>mv debian.deb /var/cache/atp/archives/flashplugin-nonfree_$version_i386.deb</code>.</li>
<li>You should now be able to run <code>apt-get install flashplugin-nonfree</code> or <code>apt-get upgrade</code>and the package will be installed using the new <code>.deb</code> file complete with proxy information in the <code>postinst</code> script to enable downloading the binary.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2009/08/11/hacking-deb-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flickrtweeter: automatically tweet your flickr pics</title>
		<link>http://sgp.me.uk/2009/03/24/flickrtweeter-automatically-tweet-your-flickr-pics/</link>
		<comments>http://sgp.me.uk/2009/03/24/flickrtweeter-automatically-tweet-your-flickr-pics/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 21:39:31 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://sgp.me.uk/?p=579</guid>
		<description><![CDATA[A few weeks ago I decided to roll my own script to automatically twitter an update if I posted a photo onto my flickr pages with a certain tag.  I know that there are third party services out there that can do this for you (e.g. <a href="http://snaptweet.com/">Snaptweet</a>, <a href="http://flickr.twittergram.com/">Twittergram</a>) but I thought it'd be an interesting project to do it myself. <a href="http://sgp.me.uk/2009/03/24/flickrtweeter-automatically-tweet-your-flickr-pics/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I decided to roll my own script to automatically twitter an update if I posted a photo onto my flickr pages with a certain tag.  I know that there are third party services out there that can do this for you (e.g. <a href="http://snaptweet.com/">Snaptweet</a>, <a href="http://flickr.twittergram.com/">Twittergram</a>) but I thought it&#8217;d be an interesting project to do it myself.  As well as (obviously) requiring <a href="http://flickr.com/">flickr</a> and <a href="http://twitter.com/">twitter</a> accounts, it also requires a <a href="http://bit.ly/">bit.ly</a> account and API key as it uses this service to produce a shortened URL for the photo to include in the tweet.</p>
<p>The script is written in Perl and is fairly straitforward.  It pulls <a href="http://api.flickr.com/services/feeds/photos_public.gne?id=86036289@N00&amp;amp;lang=en-us&amp;amp;format=atom">the Atom feed of my flickr account</a> and checks any photos tagged &#8220;twitme&#8221; against a list of photos it has already seen and tweeted.  It then passes the photo&#8217;s URL through bit.ly to get a shortened version and builds a tweet using a standard prefix, the photo&#8217;s title from flickr, and the bit.ly&#8217;ified URL.  It then attempts to post the tweet.</p>
<p>The script uses <code>LWP::Simple</code> for HTTP <code>GET</code>s to flickr and bit.ly, <code>XML::Simple</code> to parse the responses, <code>Storable</code> to maintain a cache file of seen photos, <code>Net::Twitter</code> to talk to twitter itself and <code>URI::Escape</code> to escape the photo&#8217;s URL before passing it to bit.ly.  It also uses the <code>sysopen</code> call from <code>Fcntl</code> to manage a lockfile &#8211; I run it as a cron job so this seemed a sensible precaution.</p>
<p>It can be configured by setting variables at the start of the script.  All are commented (I hope) reasonably clearly.  It can be downloaded and used under the terms of the GNU Public License.  I originally called it flickr2twitter but as this appears to be <a href="https://addons.mozilla.org/en-US/firefox/addon/11212">the name of a Firefox Addon</a> I have renamed it <a href="http://sgp.me.uk/files/flickrtweeter">flickrtweeter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sgp.me.uk/2009/03/24/flickrtweeter-automatically-tweet-your-flickr-pics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

