<?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>Ed&#039;s Home &#187; Tech</title>
	<atom:link href="http://www.edshome.co.uk/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edshome.co.uk</link>
	<description></description>
	<lastBuildDate>Wed, 08 Sep 2010 19:35:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Script to restore files to old directory</title>
		<link>http://www.edshome.co.uk/2010/09/script-to-restore-files-to-old-directory/</link>
		<comments>http://www.edshome.co.uk/2010/09/script-to-restore-files-to-old-directory/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 19:35:42 +0000</pubDate>
		<dc:creator>edporteous</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=309</guid>
		<description><![CDATA[I thought it would be a great idea to copy all my RAW files into a single directory. Then I changed my mind and thought it would be better if my RAW and JPG files were all together. Instead of trying to work out where the files came from manually, I made a quick script. [...]]]></description>
			<content:encoded><![CDATA[<p>I thought it would be a great idea to copy all my RAW files into a single directory. Then I changed my mind and thought it would be better if my RAW and JPG files were all together. Instead of trying to work out where the files came from manually, I made a quick script.<span id="more-309"></span></p>
<pre class="brush:python">import os
import shutil
import fnmatch

source_dir = r'C:\Users\Ed\RAW Pictures'
destination_dir = r'C:\Users\Ed\Pictures'

def locate(pattern, root=os.getcwd()):
    for path, dirs, files in os.walk(root):
        for filename in [os.path.abspath(os.path.join(path, filename)) for filename in files if fnmatch.fnmatch(filename, pattern)]:
            yield filename

for file in os.listdir(source_dir):
    searchstr = os.path.splitext(file)[0] + '.JPG'
    for filematch in locate(searchstr, root=destination_dir):
        print filematch
        shutil.copyfile(os.path.join(source_dir, file), os.path.join(os.path.dirname(filematch), file))
        break</pre>
<p>Thanks to <a href="http://www.brunningonline.net/simon/blog/archives/002022.html">this blog</a> for the locate function.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2010/09/script-to-restore-files-to-old-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Python Distribution Tutorial</title>
		<link>http://www.edshome.co.uk/2010/08/simple-python-distribution-tutorial/</link>
		<comments>http://www.edshome.co.uk/2010/08/simple-python-distribution-tutorial/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 16:39:23 +0000</pubDate>
		<dc:creator>edporteous</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=277</guid>
		<description><![CDATA[I want to be able to send someone a package containing a Python script and the bare minimum for them to run that script on Windows. In Perl, this is quite easy, I believe you can just send your script with perl.exe. This is how I did it in Python. I&#8217;m assuming you already have [...]]]></description>
			<content:encoded><![CDATA[<p>I want to be able to send someone a package containing a Python script and the bare minimum for them to run that script on Windows. In Perl, this is quite easy, I believe you can just send your script with perl.exe. This is how I did it in Python.<span id="more-277"></span></p>
<p>I&#8217;m assuming you already have Python installed. I did this on Python 2.5. You may need to make some changes for other version of Python. My starting point was <a href="http://www.py2exe.org/index.cgi/Tutorial">the tutorial</a> on the py2exe website.</p>
<p>Install <a href="http://www.py2exe.org/">py2exe</a> and create hello.py:</p>
<pre class="brush:python">print "hello world"</pre>
<p>Create a script to run hello.py, call it exec_hello.py:</p>
<pre class="brush:python">import runpy
import sys
import os

sys.path += [os.path.dirname(sys.argv[0])]
runpy.run_module('hello.py')</pre>
<p>Create a setup.py script:</p>
<pre class="brush:python">from distutils.core import setup
import py2exe
setup(console=['exec_hello.py'])</pre>
<p>Run this at the command prompt to generate the distribution:</p>
<pre class="brush:python">python setup.py py2exe</pre>
<p>Copy hello.py into the dist directory.</p>
<p>You should now be able to run dist/exec_hello.exe at the command prompt and it will call hello.py.</p>
<p>I tided things up by getting the setup script to remove unnecessary files and to copy in the hello.py script. It also renames exec_hello.exe to hello.exe:</p>
<pre class="brush:python">import os
import shutil
from distutils.core import setup
import py2exe

setup(console=['exec_hello.py'])
os.remove('dist/bz2.pyd')
os.remove('dist/unicodedata.pyd')
os.remove('dist/w9xpopen.exe')
shutil.rmtree('build')
shutil.copy('hello.py', 'dist')
shutil.move('dist/exec_hello.exe', 'dist/hello.exe')</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2010/08/simple-python-distribution-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flipboard</title>
		<link>http://www.edshome.co.uk/2010/07/flipboard/</link>
		<comments>http://www.edshome.co.uk/2010/07/flipboard/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 19:47:11 +0000</pubDate>
		<dc:creator>edporteous</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=249</guid>
		<description><![CDATA[I&#8217;m really impressed with Flipboard, an app which really uses the capabilities of the iPad to deliver a novel and compelling reading experience. It manages to make your facebook and twitter feeds look like they were designed by a skilled magazine layout editor. I can see it being controversial as it also strips out all [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really impressed with <a href="http://itunes.apple.com/us/app/flipboard/id358801284?mt=8">Flipboard</a>, an app which really uses the capabilities of the iPad to deliver a novel and compelling reading experience. It manages to make your facebook and twitter feeds look like they were designed by a skilled magazine layout editor. I can see it being controversial as it also strips out all the adds. Makes me glad to be an &#8220;<a href="http://www.guardian.co.uk/technology/2010/jul/30/ipad-owners-personality-facebook">elitist</a>&#8221; iPad owner.</p>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/v2vpvEDS00o&amp;hl=en_GB&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/v2vpvEDS00o&amp;hl=en_GB&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2010/07/flipboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;m not a vampire</title>
		<link>http://www.edshome.co.uk/2010/07/im-not-a-vampire/</link>
		<comments>http://www.edshome.co.uk/2010/07/im-not-a-vampire/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 09:19:24 +0000</pubDate>
		<dc:creator>edporteous</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=242</guid>
		<description><![CDATA[I just scared the heebee-jeebees out of myself by innocently trying to use a shortcut in eclipse to copy a line into the clipboard. Instead, it turned my whole screen upside down! As a commenter on stackoverflow said: Presumably flipping your screen upside down is not something you want to do often (unless you&#8217;re a [...]]]></description>
			<content:encoded><![CDATA[<p>I just scared the heebee-jeebees out of myself by innocently trying to use a shortcut in <a href="http://www.eclipse.org/">eclipse</a> to copy a line into the clipboard. Instead, it turned my whole screen upside down! As a commenter on <a href="http://stackoverflow.com/questions/2321938/eclipse-copy-paste-entire-line-keyboard-shortcut">stackoverflow</a> said:</p>
<blockquote><p>Presumably flipping your screen upside down is not something you want to do often (unless you&#8217;re a vampire/bat).</p></blockquote>
<p>Quite right.<br />
In the end I found exactly what I was looking for in <a href="http://code.google.com/p/copycutcurrentline/">google code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2010/07/im-not-a-vampire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to Windows 7</title>
		<link>http://www.edshome.co.uk/2010/05/upgrading-to-windows-7/</link>
		<comments>http://www.edshome.co.uk/2010/05/upgrading-to-windows-7/#comments</comments>
		<pubDate>Sun, 16 May 2010 20:29:59 +0000</pubDate>
		<dc:creator>edporteous</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=190</guid>
		<description><![CDATA[I don&#8217;t think I&#8217;ve ever had a flawless Operating System upgrade. Windows 7 was no exception. After endless reboots and failures, I gave up in the early hours of Saturday night (yes, I was having that much fun). In the morning with a clear head, I found the right google search, enabled SATA AHCI, disabled [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t think I&#8217;ve ever had a flawless Operating System upgrade. Windows 7 was no exception. After endless reboots and failures, I gave up in the early hours of Saturday night (yes, I was having <em>that</em> much fun). In the morning with a clear head, I found the right google search, enabled SATA AHCI, disabled USB at during one of the reboots, and hey presto &#8211; success.</p>
<p>Why did I install Windows 7? Well, not just to get the shiney window borders, it was mainly to try and help my PC come out of sleep. Fail. Still doesn&#8217;t work. As a last resort, I grit my teeth, pull on the rubber gloves, and upgrade the BIOS. Yup, that was the problem &lt;groan&gt;.</p>
<p>First impressions? Shiney, a bit more usable, and wierdly, everything seems bigger; I think that&#8217;s because of the chunkey borders. Now, on with the install&#8230; &lt;deep breath&gt;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2010/05/upgrading-to-windows-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Chrome OS</title>
		<link>http://www.edshome.co.uk/2009/11/google-chrome-os/</link>
		<comments>http://www.edshome.co.uk/2009/11/google-chrome-os/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 01:00:07 +0000</pubDate>
		<dc:creator>edporteous</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=144</guid>
		<description><![CDATA[I&#8217;m a bit of a Google fan, so I installed their latest operating system in a VM. I downloaded the torrent (Virgin Media seem to be blocking your web access for even a legal bittorrent download), and with a few mouse clicks it was up and running. Here&#8217;s a screenshot&#8230; There&#8217;s not much to say [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a bit of a Google fan, so I installed their latest operating system in a <a href="http://www.virtualbox.org/">VM</a>.  I downloaded the torrent (Virgin Media seem to be blocking your web access for even a legal bittorrent download), and with a few mouse clicks it was up and running. Here&#8217;s a screenshot&#8230;</p>
<p><img src="http://www.edshome.co.uk/wp-content/uploads/2009/11/chromeos.png" alt="chromeos" title="chromeos" width="500" height="418" class="alignnone size-full wp-image-145" /></p>
<p>There&#8217;s not much to say about it really &#8211; it looks like the Chrome browser, and that&#8217;s pretty much the whole OS. It should boot in seven seconds and will only run on special hardware, slightly larger than a netbook.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2009/11/google-chrome-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Never has someone got so excited&#8230;</title>
		<link>http://www.edshome.co.uk/2009/09/never-has-someone-got-so-excited-2/</link>
		<comments>http://www.edshome.co.uk/2009/09/never-has-someone-got-so-excited-2/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 23:14:34 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=97</guid>
		<description><![CDATA[&#8230;by rechargeable batteries. And this guy has lots of use for rechargeable batteries.]]></description>
			<content:encoded><![CDATA[<p>&#8230;by rechargeable batteries. And this guy has lots of use for rechargeable batteries.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/UzSWSVCBwPU&amp;feature=channel_page" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/UzSWSVCBwPU&amp;feature=channel_page" wmode="transparent"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2009/09/never-has-someone-got-so-excited-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the World of Imaging in an Hour</title>
		<link>http://www.edshome.co.uk/2009/08/changing-the-world-of-imaging-in-an-hour/</link>
		<comments>http://www.edshome.co.uk/2009/08/changing-the-world-of-imaging-in-an-hour/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 15:02:30 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=53</guid>
		<description><![CDATA[There was an interesting piece in E&#38;T this month about the invention of the CCD, which we rely on every time we use a digital camera. It turns 40 this week. Apparently Willard Boyle was asked by his manager to &#8220;Come up with something different&#8221;. So he and George Smith had a chat. Within an [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kn.theiet.org/magazine/issues/0914/ccd-turns-40-0914.cfm"></a></p>
<p><img src='http://www.edshome.co.uk/wp-content/uploads/2009/08/latent-imager-0914.jpg' alt='' /></p>
<p>There was an interesting piece in E&amp;T this month about the <a href="http://kn.theiet.org/magazine/issues/0914/ccd-turns-40-0914.cfm">invention of the CCD</a>, which we rely on every time we use a digital camera. It turns 40 this week. Apparently Willard Boyle was asked by his manager to &#8220;Come up with something different&#8221;. So he and George Smith had a chat. Within an hour they had come up with a device which would hold charge within a cell and then&#8230;</p>
<blockquote><p>An hour or so later, they were deciding what to call it. The online  histories make it seem like a film script: “It’s got charge. And we’re  moving the charge around by coupling potential wells,” said Smith;  “Let’s call it a charge coupled device,” said Boyle.</p></blockquote>
<p>They didn&#8217;t mess around once they&#8217;d come up with the idea, either&#8230;</p>
<blockquote><p>“In less than a week, masks were made and devices were fabricated and  tested”</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2009/08/changing-the-world-of-imaging-in-an-hour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>General Update</title>
		<link>http://www.edshome.co.uk/2009/08/general-update/</link>
		<comments>http://www.edshome.co.uk/2009/08/general-update/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 14:44:32 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=46</guid>
		<description><![CDATA[I&#8217;ve not blogged for a while, so here&#8217;s an update on all the random stuff going on in my head and life &#8211; well some of it,  anyway. Thursday night we went to see Little Sister at the Hare and Hounds.  Apparently they now practice is bursts of a week, because one of them lives [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve not blogged for a while, so here&#8217;s an update on all the random stuff going on in my head and life &#8211; well some of it,  anyway.</p>
<p><img class="alignright size-full wp-image-47" title="littlesister" src="http://www.edshome.co.uk/wp-content/uploads/2009/08/littlesister.jpg" alt="littlesister" width="170" height="113" />Thursday night we went to see <a title="little sister" href="http://www.myspace.com/littlesistermusic">Little Sister</a> at the Hare and Hounds.  Apparently they now practice is bursts of a week, because one of them lives in Wales and one in Copenhagen.  This must have had been a good week, because their new stuff was great.  The opener had an Indian feel, after which they continued to work their way around the world&#8217;s folk music via Wales and Southern America.  One of the most striking aspects of the four girl group is not just their harmonising, or the range of instruments that they play, but the great big harp that sits on the stage, looming like a Renaissance sculpture while the support acts play.  Unfortunately, the sound often gets lost on pub stages, but the soundcheck had obviously been successful, so Sammy Fox&#8217;s glissandi were able to beautifully counterpoint the accordion.</p>
<p>This weekend @katieday is down in Bristol doing something related to interactive gaming that I&#8217;ve been struggling to explain to people, so in the meantime I&#8217;ve been getting to grips with Reaktor from <a title="native instruments" href="http://www.native-instruments.com/">Native Instruments</a>. This program lets you create synthesizers and audio effects by stringing together blocks. I&#8217;ve been meaning to get back into effect design since my final year project at University, a DSP board connected to a MFC C++ program which would let you genetically evolve audio effects. Nowadays, these things are much easier to do, though you can still make something look absolutely horrible&#8230;</p>
<p><img class="aligncenter size-medium wp-image-48" title="reaktormess" src="http://www.edshome.co.uk/wp-content/uploads/2009/08/reaktormess-300x199.PNG" alt="reaktormess" width="300" height="199" /></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2009/08/general-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to the new blog</title>
		<link>http://www.edshome.co.uk/2009/07/welcome-to-the-new-blog/</link>
		<comments>http://www.edshome.co.uk/2009/07/welcome-to-the-new-blog/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 21:53:52 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Film]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Theatre]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.edshome.co.uk/?p=20</guid>
		<description><![CDATA[Goodbye old blog theme, hello new blog theme. This new look blog isn&#8217;t just a skin change, things have changed behind the scenes too. The old articles are now available at archive.edshome.co.uk. The old site was made with a CMS called Drupal, which I philosophically agree with, but for blogging (and much else), WordPress is [...]]]></description>
			<content:encoded><![CDATA[<p>Goodbye old blog theme, hello new blog theme. This new look blog isn&#8217;t just a skin change, things have changed behind the scenes too. The old articles are now available at <a href="http://archive.edshome.co.uk">archive.edshome.co.uk</a>. The old site was made with a CMS called Drupal, which I philosophically agree with, but for blogging (and much else), WordPress is quietly taking over the world, so I thought I&#8217;d let the tide sweep me out to sea. Hopefully the warm comfortable fur of WordPress will draw me in to posting more. I&#8217;ve adapted this blog theme myself, based on one called Bluebird, with inspiration from greyscalegorilla.com. As for the content of the posts, don&#8217;t expect much to change, there will still be lots of incoherent rambling on subjects with which I have no authority; don&#8217;t take anything too seriously. I&#8217;ve also stuck a twitter gadget at the side. Please subscribe, though, because it&#8217;s much easier that way. The link is <a title="rss feed" href="http://www.edshome.co.uk/?feed=rss2">here</a>.</p>
<p>The picture at the top is me taking a picture of me in Morocco with an <a href="http://www.olympus-trip.co.uk/">Olympus Trip</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edshome.co.uk/2009/07/welcome-to-the-new-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->