<?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>deadlocked</title>
	<atom:link href="http://www.deadlocked.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deadlocked.org</link>
	<description>brainfreeze. in a jar.</description>
	<lastBuildDate>Thu, 25 Mar 2010 15:59:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>BBC iPlayer or How I Learned to Stop Worrying and Love the SSH Tunnel</title>
		<link>http://www.deadlocked.org/2010/03/25/bbc-iplayer-or-how-i-learned-to-stop-worrying-and-love-the-ssh-tunnel/</link>
		<comments>http://www.deadlocked.org/2010/03/25/bbc-iplayer-or-how-i-learned-to-stop-worrying-and-love-the-ssh-tunnel/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 15:56:08 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[dorky technical shite]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=195</guid>
		<description><![CDATA[Anyone who grew up or lives in Ireland is familiar with BBC television thanks to cable and satellite TV.  Because of our proximity to Wales and especially Northern Ireland, we in the east and north of the country have been able to receive BBC broadcasts for decades despite not paying a license fee in [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone who grew up or lives in Ireland is familiar with BBC television thanks to cable and satellite TV.  Because of our proximity to Wales and especially Northern Ireland, we in the east and north of the country have been able to receive BBC broadcasts for decades despite not paying a license fee in that country. I&#8217;ve long felt that this state of affairs should continue even into the Digitial Era despite BBC&#8217;s best efforts to lock iPlayer down to only those people who live in the United Kingdom (a.k.a., license fee payers). My attempts to circumvent their geo-location recognition mechanisms have always been fruitless until one day lest week when I was reading through the man page for SSH.</p>
<p>As I scanned the various command line flags for whatever it was that I was looking for my eyes settled for a moment on the description of the -D parameter and I had a minor epiphany. When you ssh to a remote host using the -D flag, ssh establishes an encrypted tunnel that listens on a TCP port on your local host. You can then direct traffic across this tunnel by specifying the port as a SOCKS proxy. Traffic pops out the other side and is forwarded to its destination, where it looks as though it originated on the device to which you SSHed. Clear as mud, so let&#8217;s try an example:</p>
<p><code>localhost$ ssh -D 8080 myuser@remotehost</code></p>
<p>This will establish an SSH session on remotehost and will open port 8080 on localhost. What you then do is open your web browser and set localhost:8080 as your SOCKS proxy server. All of your web traffic will be sent across the SSH session and will appear to originate on remotehost.</p>
<p>A few years ago a colleague of mine gave me a shell account on a server he runs in the UK. Up to now I haven&#8217;t had much use for the account other than for testing my routing configurations from an offnet server. Not any more!</p>
<p>Now, I don&#8217;t necessarily want to send all of my traffic across the SSH tunnel. For one thing, the encryption and compression inherent in the SSH connection limits the amount of bandwidth that I can send/receive. For another, if the SSH tunnel goes down for any reason (for example, if I close the lid on my laptop then the SSH session times out) all of my web traffic is being sent to a non-existant web proxy. Carnage, especially when my wife is trying to browse the Asos catalogue or watch &#8216;Home &#038; Away&#8217; in the RTE Player. Nor do I want to have to reconfigure my browser&#8217;s proxy settings every time I feel like looking at an episode of &#8216;Seven Ages of Britain&#8217; or &#8216;QI XL&#8217;.</p>
<p>One of the neat things about the -D flag is that other PCs can use the tunnel that it creates as a SOCKS proxy. The neat thing about my router is that it runs Linux (OpenWRT to be exact). So I got to thinking: is there any way that I can use my router to selectively redirect web traffic into my SSH tunnel? Of course there is!</p>
<p>The first thing to do was to install Screen on my router. Screen is a terminal multiplexer &#8211; a program that acts as a wrapper around Linux/Unix shells, allowing you to attach and de-attach from them without losing your shell sessions. I start my SSH session in a Screen and then de-attach, leaving the session running in the background (and meaning that I don&#8217;t need to remain logged into my router from my laptop).</p>
<p>I then installed Privoxy, a proxy server. Privoxy has lots of great features but I chose it over Squid (which I&#8217;m more familiar with) for one reason: Privoxy supports forwarding into SOCKS proxies whereas Squid doesn&#8217;t. Privoxy seems to be lighter as well, always a concern on a device with limited memory. I&#8217;ve configured Privoxy to listen on port 8118 and to accept intercepted connections.</p>
<p>This last configuration point is the final and key piece in this puzzle. I added the following rule to my iptables ruleset:</p>
<p><code>iptables -t nat -A PREROUTING -i br-lan -p tcp -d 212.58.240.0/20 --dport 80 -j REDIRECT --to-ports 8118</code></p>
<p>This command is straightforward. Any traffic received on br-lan (i.e., any of my LAN interfaces) destined for BBC&#8217;s network (212.58.240/20) and with a destination TCP port of 80 (the port that webservers listen to) should be redirected (i.e., intercepted) to port 8118 on the router (8118 as I mentioned above is the port that Privoxy is listening on).</p>
<p>Now when I want to watch BBC iPlayer I don&#8217;t have to do anything &#8211; my BBC-destined web traffic is redirected to the SSH tunnel via Privoxy and my non-BBC traffic is allowed to exit via the router&#8217;s WAN interface unmolested. Sweeeeeeeet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2010/03/25/bbc-iplayer-or-how-i-learned-to-stop-worrying-and-love-the-ssh-tunnel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finn &#8211; Two Years (!)</title>
		<link>http://www.deadlocked.org/2010/02/18/finn-two-years/</link>
		<comments>http://www.deadlocked.org/2010/02/18/finn-two-years/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:55:04 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=185</guid>
		<description><![CDATA[In honour of Finn&#8217;s second birthday tomorrow, I put together a montage of photos from the very first photo I ever took of him &#8211; when he was a few years old &#8211; to the most recent, taken on Tuesday last. Music is by The Ting Tings, &#8216;Great DJ&#8217; &#8211; Finn&#8217;s favourite song (known to [...]]]></description>
			<content:encoded><![CDATA[<p>In honour of Finn&#8217;s second birthday tomorrow, I put together a montage of photos from the very first photo I ever took of him &#8211; when he was a few years old &#8211; to the most recent, taken on Tuesday last. Music is by The Ting Tings, &#8216;Great DJ&#8217; &#8211; Finn&#8217;s favourite song (known to him as &#8216;ah ah song&#8217;). As always, please don&#8217;t sue me.</p>
[See post to watch QuickTime movie]
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2010/02/18/finn-two-years/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter + Flickr = twitickr</title>
		<link>http://www.deadlocked.org/2010/02/07/twitter-flickr-twitickr/</link>
		<comments>http://www.deadlocked.org/2010/02/07/twitter-flickr-twitickr/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 14:56:03 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=183</guid>
		<description><![CDATA[Just a quick post to point out that I&#8217;ve made an experimental Twitter/Flickr mash-up: twitickr.
]]></description>
			<content:encoded><![CDATA[<p>Just a quick post to point out that I&#8217;ve made an experimental Twitter/Flickr mash-up: <a href="http://twitickr.deadlocked.org/">twitickr</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2010/02/07/twitter-flickr-twitickr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Christmas and Snow Day</title>
		<link>http://www.deadlocked.org/2010/01/06/christmas-and-snow-day/</link>
		<comments>http://www.deadlocked.org/2010/01/06/christmas-and-snow-day/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 23:18:04 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=178</guid>
		<description><![CDATA[First post of the New Year and first proper post in donkey&#8217;s!
The last two or three weeks have seen to &#8216;first proper&#8217; events for Finn. To begin with, this was his first proper Christmas; that is to say, the first Christmas that he&#8217;s really been aware of what&#8217;s going on though he didn&#8217;t really understand [...]]]></description>
			<content:encoded><![CDATA[<p>First post of the New Year and first proper post in donkey&#8217;s!</p>
<p>The last two or three weeks have seen to &#8216;first proper&#8217; events for Finn. To begin with, this was his first proper Christmas; that is to say, the first Christmas that he&#8217;s really been aware of what&#8217;s going on though he didn&#8217;t really understand all of it.</p>
<p><a href="http://www.flickr.com/photos/deadlock/4225061710/" title="xmas09-016 by dead.lock, on Flickr"><img src="http://farm5.static.flickr.com/4029/4225061710_650ffec414_m.jpg" width="160" height="240" alt="xmas09-016" /></a> <a href="http://www.flickr.com/photos/deadlock/4224292875/" title="xmas09-017 by dead.lock, on Flickr"><img src="http://farm3.static.flickr.com/2675/4224292875_66ba4ce9c4_m.jpg" width="160" height="240" alt="xmas09-017" /></a> <a href="http://www.flickr.com/photos/deadlock/4225062204/" title="xmas09-018 by dead.lock, on Flickr"><img src="http://farm3.static.flickr.com/2788/4225062204_0b34a6a967_m.jpg" width="160" height="240" alt="xmas09-018" /></a> <a href="http://www.flickr.com/photos/deadlock/4224293389/" title="xmas09-019 by dead.lock, on Flickr"><img src="http://farm3.static.flickr.com/2596/4224293389_45d22911ec_m.jpg" width="160" height="240" alt="xmas09-019" /></a></p>
<p>He knows who Santa is, for example, and will point him out when he sees a picture of him or someone dressed as him (or if he sees a polar bear, for some inexplicable reason). He&#8217;ll also tell him that Santa says &#8216;ho ho&#8217; if you ask. But I don&#8217;t think he quite grasps the concept of Santa as a bringer of presents. Before we opened the sitting room door on Christmas morning, Áine and I told him that we could hear Santa trying to get back up the chimney. Finn got a bit frightened when we said this so we had to hold his hands while we opened the door for him and lead him into the room.</p>
<p>His reaction to his presents was funny; his main gift from Santa was a bike and he got a few other knick-knacks such as a &#8216;Roary the Racing Car&#8217; racetrack, some books, a Fisher Price Noah&#8217;s Ark and so on. Santa had quite helpfully unpacked everything and set it up before heading off, leaving the bike at the front of the pile. Áine and I felt a bit relieved when we saw Finn race over and grab his bike &#8211; we had, after all, written his letter on his behalf. Imagine our dismay then when he pushed it out of the way so that he could get to Roary! The bike hasn&#8217;t had a look-in but that&#8217;s probably the weather. Right?</p>
<p>The other &#8216;first proper&#8217; for Finn this year was snow. Last time he was too young to go out in it (and couldn&#8217;t walk anyway) so this year we brought him out for a few minutes. It had started to thaw so we couldn&#8217;t build him a snowman but he enjoyed stomping about in it. He wasn&#8217;t too impressed when he tried to pick some up and discovered how cold it can be though!</p>
<p><a href="http://www.flickr.com/photos/deadlock/4249488436/" title="Snow Day by dead.lock, on Flickr"><img src="http://farm3.static.flickr.com/2702/4249488436_8f89069451_m.jpg" width="160" height="240" alt="Snow Day" /></a> <a href="http://www.flickr.com/photos/deadlock/4248716313/" title="Snow Day by dead.lock, on Flickr"><img src="http://farm5.static.flickr.com/4065/4248716313_1147333284_m.jpg" width="160" height="240" alt="Snow Day" /></a> <a href="http://www.flickr.com/photos/deadlock/4249490132/" title="Snow Day by dead.lock, on Flickr"><img src="http://farm3.static.flickr.com/2709/4249490132_3ceab930b9_m.jpg" width="160" height="240" alt="Snow Day" /></a> <a href="http://www.flickr.com/photos/deadlock/4248717883/" title="Stamp by dead.lock, on Flickr"><img src="http://farm3.static.flickr.com/2697/4248717883_bc605644dd_m.jpg" width="160" height="240" alt="Stamp" /></a> <a href="http://www.flickr.com/photos/deadlock/4249491252/" title="Hiding by dead.lock, on Flickr"><img src="http://farm3.static.flickr.com/2643/4249491252_1ea2ea8da9_m.jpg" width="160" height="240" alt="Hiding" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2010/01/06/christmas-and-snow-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s Alive!</title>
		<link>http://www.deadlocked.org/2009/11/26/its-alive/</link>
		<comments>http://www.deadlocked.org/2009/11/26/its-alive/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 09:46:51 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=176</guid>
		<description><![CDATA[Barely.
]]></description>
			<content:encoded><![CDATA[<p>Barely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2009/11/26/its-alive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Haircut 1</title>
		<link>http://www.deadlocked.org/2009/10/01/haircut-1/</link>
		<comments>http://www.deadlocked.org/2009/10/01/haircut-1/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 13:13:53 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=174</guid>
		<description><![CDATA[We (finally) got Finn his first haircut last Friday. Here he is looking like a little angel:

And here he is (pre-haircut) in his current default mode (eating):

That last pic was taken at Powerscourt Waterfall the day of my birthday. Absolutely gorgeous place, I love having stuff like that so close to Dublin &#8211; literally a [...]]]></description>
			<content:encoded><![CDATA[<p>We (finally) got Finn his first haircut last Friday. Here he is looking like a little angel:</p>
<p><a href="http://www.flickr.com/photos/22183081@N00/3568067180" title="View 'IMGP4986' on Flickr.com"><img src="http://farm3.static.flickr.com/2464/3568067180_e38c7ccf12.jpg" alt="IMGP4986" border="0" width="334" height="500" /></a></p>
<p>And here he is (pre-haircut) in his current default mode (eating):</p>
<p><a href="http://www.flickr.com/photos/22183081@N00/3568061186" title="View 'IMGP4963' on Flickr.com"><img src="http://farm4.static.flickr.com/3342/3568061186_7d778585a2.jpg" alt="IMGP4963" border="0" width="500" height="334" /></a></p>
<p>That last pic was taken at <a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=powerscourt+waterfall&#038;sll=53.344104,-6.267494&#038;sspn=0.17996,0.617981&#038;ie=UTF8&#038;ll=53.14538,-6.209078&#038;spn=0.0113,0.038624&#038;t=h&#038;z=15">Powerscourt</a> <a href="http://en.wikipedia.org/wiki/Powerscourt_Waterfall">Waterfall</a> the day of my birthday. Absolutely gorgeous place, I love having stuff like that so close to Dublin &#8211; literally a thirty minute drive.</p>
<p><a href="http://www.flickr.com/photos/22183081@N00/3567227063" title="View 'IMGP4934' on Flickr.com"><img src="http://farm3.static.flickr.com/2449/3567227063_6e6ea2ae0b.jpg" alt="IMGP4934" border="0" width="500" height="334" /></a></p>
<p><a href="http://www.flickr.com/photos/22183081@N00/3568072022" title="View 'IMGP5000' on Flickr.com"><img src="http://farm3.static.flickr.com/2478/3568072022_913bfa8eb0_s.jpg" alt="IMGP5000" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3568070394" title="View 'IMGP4999' on Flickr.com"><img src="http://farm4.static.flickr.com/3408/3568070394_fd200a8feb_s.jpg" alt="IMGP4999" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3567255771" title="View 'IMGP4989' on Flickr.com"><img src="http://farm4.static.flickr.com/3608/3567255771_d4f9eb99a7_s.jpg" alt="IMGP4989" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3568055426" title="View 'IMGP4955' on Flickr.com"><img src="http://farm3.static.flickr.com/2064/3568055426_9e88ea6e2e_s.jpg" alt="IMGP4955" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3567240485" title="View 'IMGP4952' on Flickr.com"><img src="http://farm4.static.flickr.com/3635/3567240485_e5b1c2a01b_s.jpg" alt="IMGP4952" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3567237311" title="View 'IMGP4951' on Flickr.com"><img src="http://farm4.static.flickr.com/3313/3567237311_308bbc2af4_s.jpg" alt="IMGP4951" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3567235999" title="View 'IMGP4946' on Flickr.com"><img src="http://farm4.static.flickr.com/3374/3567235999_91afcc1897_s.jpg" alt="IMGP4946" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3460051501" title="View 'finn_park-018' on Flickr.com"><img src="http://farm4.static.flickr.com/3527/3460051501_3e8b770082_s.jpg" alt="finn_park-018" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3460050787" title="View 'finn_park-017' on Flickr.com"><img src="http://farm4.static.flickr.com/3572/3460050787_7456e2680e_s.jpg" alt="finn_park-017" border="0" width="75" height="75" /></a><a href="http://www.flickr.com/photos/22183081@N00/3460050237" title="View 'finn_park-016' on Flickr.com"><img src="http://farm4.static.flickr.com/3493/3460050237_33630f38f3_s.jpg" alt="finn_park-016" border="0" width="75" height="75" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2009/10/01/haircut-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nearly Walking</title>
		<link>http://www.deadlocked.org/2009/10/01/nearly-walking/</link>
		<comments>http://www.deadlocked.org/2009/10/01/nearly-walking/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 13:13:33 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=172</guid>
		<description><![CDATA[  
So, Finn is just over 14 months old now and is coming along in leaps and bounds. Not literally &#8211; he&#8217;s just starting to find his feet as it were and is pretty close to walking. I&#8217;m guesstimating that this time next month he&#8217;ll have taken his first few tentative, unaided steps. For [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/22183081@N00/3460050237" title="View 'finn_park-016' on Flickr.com"><img src="http://static.flickr.com/3493/3460050237_33630f38f3_m.jpg" alt="finn_park-016" border="0" width="" height="" /></a> <a href="http://www.flickr.com/photos/22183081@N00/3460050787" title="View 'finn_park-017' on Flickr.com"><img src="http://static.flickr.com/3572/3460050787_7456e2680e_m.jpg" alt="finn_park-017" border="0" width="" height="" /></a> <a href="http://www.flickr.com/photos/22183081@N00/3460051501" title="View 'finn_park-018' on Flickr.com"><img src="http://farm4.static.flickr.com/3527/3460051501_3e8b770082_m.jpg" alt="finn_park-018" border="0" width="240" height="160" /></a></p>
<p>So, Finn is just over 14 months old now and is coming along in leaps and bounds. Not literally &#8211; he&#8217;s just starting to find his feet as it were and is pretty close to walking. I&#8217;m guesstimating that this time next month he&#8217;ll have taken his first few tentative, unaided steps. For the moment though, he has us holding his hands while he walks stiltedly everywhere (he may have found his feet but his knees are a different story). He usually insists that you hold both hands but sometimes he&#8217;ll settle for just his right hand; for some reason he puts his left hand over his ear when you walk with him like this. Try to let go of his right-hand in favour of the left and he&#8217;ll just plop himself back down on the ground.</p>
<p>He&#8217;s confident enough at this stage to be able to walk up and down the living room (and the path outside the house) using his walker for balance. Trying to explain to a one-year-old that it&#8217;s time to go in because it&#8217;s just started raining is great craic.</p>
<p>When it comes to cruising though, he&#8217;s flying around and is well able to pull himself up on pretty much everything he can reach and that isn&#8217;t likely to topple over &#8211; sofas, beds, chairs, <a href="http://www.toys.ie/Thomas-Sodor-Adventure-Land-Deluxe-!E05180-prod.aspx">Thomas the Tank Engine thingie</a>, your legs and the TV stand. I used to think that that last one was Finn being pragmatic; instead of moaning that 32 inches just isn&#8217;t a large enough screen size, he figured that if he got closer to the screen it would <strong>seem</strong> bigger. But then he started hitting the screen and I was quickly disavowed of that belief. Little rascal.</p>
<p>Anyway, here are some videos:</p>
[See post to watch QuickTime movie]
[See post to watch QuickTime movie]
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2009/10/01/nearly-walking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easily Stream Video to Your iPhone/iPod Touch</title>
		<link>http://www.deadlocked.org/2009/10/01/easily-stream-video-to-your-iphoneipod-touch/</link>
		<comments>http://www.deadlocked.org/2009/10/01/easily-stream-video-to-your-iphoneipod-touch/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 13:13:20 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=170</guid>
		<description><![CDATA[One of the great things about OS X Leopard is that it comes with Apache installed out of the box. Apache is an open source carrier grade web server that you can use to host websites and so on but more importantly &#8211; from the point of view of the iPhone or iPod Touch &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>One of the great things about OS X Leopard is that it comes with Apache installed out of the box. Apache is an open source carrier grade web server that you can use to host websites and so on but more importantly &#8211; from the point of view of the iPhone or iPod Touch &#8211; it supports byte range reading. What this means is that your humble Mac can function as a streaming video server on your WLAN for your iPhone or iPod Touch with a little bit of legwork and a little PHP app that I threw together.</p>
<p>So how do you do it?</p>
<p>First things first &#8211; we need to enable web sharing. Open System Preferences, click Sharing and click the box next to &#8216;Web Sharing&#8217;. </p>
<p>Next we need to enable PHP. Although it&#8217;s installed with Leopard, the PHP module is disabled in Apache&#8217;s configuration by default. Let&#8217;s enable it &#8211; open a Terminal and type:</p>
<pre>sudo nano -w /etc/apache2/httpd.conf</pre>
<p>(Note that the &#8216;-w&#8217; is important &#8211; it disable line wrapping). Press CTRL-W and type <i>php5</i> then press return &#8211; the cursor should jump to the line that loads the PHP module:</p>
<pre>#LoadModule php5_module        libexec/apache2/libphp5.so</pre>
<p>Delete the hash mark at the start of the line and then press CTRL-O to save the updated config, followed by CTRL-X to exit the Nano text editor. Back at the command prompt, we need to restart the Apache server:</p>
<pre>sudo apachectl restart</pre>
<p>Give it a few seconds to come back up and then check that it&#8217;s working by browsing to <a href="http://localhost/">localhost</a>. You should be greeted by the default Apache home page. That&#8217;s the messy stuff done &#8211; it&#8217;s all downhill from here.</p>
<p>Download my <a href="misc/EasyStream.tar.bz2">EasyStream</a> scripts and extract them to the Sites folder in your home directory. Make sure you keep them in their own subfolder (i.e., <i>Sites/EasyStream</i>). Create a directory under this one (call it whatever you like, I suggest &#8216;Movies&#8217;) &#8211; this is where you&#8217;ll store the video that you need to stream.</p>
<p>Open your browser again and go to <em>http://localhost/~User/EasyStream/</em> (make sure you substitute &#8216;User&#8217; for whatever your short user-name is). You should see the EasyStream interface but it&#8217;ll probably look a little barren with no videos to watch. The easiest way to create some is to use <a href="http://handbrake.fr/">Handbrake</a> to convert some existing ones, using Handbrake&#8217;s &#8216;iPhone &#038; iPod Touch&#8217; profile.</p>
<p>Once you have some video, it&#8217;s time to test with your iPhone/Touch &#8211; connect your device to your WLAN and then open Safari and browse to <em>http://yourdevice.local/~User/EasyStream/</em> (substitute &#8216;yourdevice&#8217; for your Mac&#8217;s hostname and &#8216;User&#8217; for the short form of your username). EasyStream should list the video in your <em>EasyStream/Movies</em> folder; tapping on one should cause QuickTime to open and after a short pause to buffer, your video should start playing.</p>
<p>Like most things, this trick has some pros and cons. First the pros &#8211; you no longer have to fill your iPhone/Touch up with videos; just stick them in your EasyStream folder instead. Secondly, if you forward port 80 on the outside of your firewall to your Mac&#8217;s IP, you can view your videos remotely provided you have a working internet connection for your device and know your public IP address (I&#8217;ve no idea how well this works over 3G). Finally, as our first test demonstrated, you can view the EasyStream pages in your ordinary browser &#8211; you can also view the videos (provided QuickTime is installed). The non-iPhone version of QuickTime downloads the entire video before it starts playing but you can fix that by ticking the &#8216;web optimised&#8217; box in Handbrake before you start your conversion.</p>
<p>As far as cons go, I&#8217;ve built in a &#8216;compact view&#8217; that breaks the videos into an alphabetical hierarchy but with lots of videos in your EasyStream/Movies folder, things could still become cumbersome. Secondly, there&#8217;s no way to bookmark where you are in a video, so if you stop playing something midway through and then go back, you&#8217;ll have to scrub through until you find where you where. Luckily the iPhone makes this relatively painless and it&#8217;s a worthwhile trade-off not to have to store the videos on your iPhone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2009/10/01/easily-stream-video-to-your-iphoneipod-touch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finn: One Whole Year</title>
		<link>http://www.deadlocked.org/2009/10/01/finn-one-whole-year/</link>
		<comments>http://www.deadlocked.org/2009/10/01/finn-one-whole-year/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 13:12:52 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=168</guid>
		<description><![CDATA[As you know from my last post, Finn was one on the 19th of February just gone. I got so caught up in the party and so on that I didn&#8217;t think to take some photos on the day, but here&#8217;s a short clip of everyone singing Happy Birthday to him.
[See post to watch QuickTime [...]]]></description>
			<content:encoded><![CDATA[<p>As you know from my last post, Finn was one on the 19th of February just gone. I got so caught up in the party and so on that I didn&#8217;t think to take some photos on the day, but here&#8217;s a short clip of everyone singing Happy Birthday to him.</p>
[See post to watch QuickTime movie]
<p>Everyone had a great day, particularly Finn &#8211; although he did have us all tormented, wanting us to hold his hands so that he can walk around. Both he and Eoin also discovered the joy that is chocolate rice krispie cakes &#8211; Eoin made the even more joyous discovery that they&#8217;re even tastier when broken up and eaten off the floor. Yum!</p>
<p>As I mentioned above, Finn is mad to walk &#8211; if we put him standing at the sofas or our bed, he&#8217;ll &#8216;cruise&#8217; back and forth. It&#8217;s only a matter of time before he starts walking unaided but for the moment we&#8217;ve finally found a surefire way to keep him out of trouble: he can pull himself up in the cot and he can maintain his balance so long as he has something or someone to hold on to but he hasn&#8217;t mastered <strong>sitting</strong> back down again. Good times.</p>
<p>All of this development has been fascinating to watch; it&#8217;s something that you don&#8217;t get a real appreciation for until you&#8217;ve experience it first hand and close up. They grow from being a tiny creature whose mind is little more than a collection of instincts and responses to a miniature person who <strong>knows</strong> his own mind and isn&#8217;t shy about letting you know (one year-olds having tantrums are hilarious, by the way &#8211; for about 5 seconds).</p>
<p>They also become adept at entertaining themselves:</p>
[See post to watch QuickTime movie]
<p>That&#8217;s a little plastic chicken, by the way and he spent about five minutes doing that before the amusement wore off.</p>
<p>Finally, an illustration of how persistent he can be &#8211; like the above video, this is just a minute or so of something that went on for a few. </p>
[See post to watch QuickTime movie]
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2009/10/01/finn-one-whole-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adventures in Time (Machine)</title>
		<link>http://www.deadlocked.org/2009/10/01/adventures-in-time-machine/</link>
		<comments>http://www.deadlocked.org/2009/10/01/adventures-in-time-machine/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 13:12:33 +0000</pubDate>
		<dc:creator>deadlock</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.deadlocked.org/?p=166</guid>
		<description><![CDATA[I recently came into possession of a Macmini which I have pressed into service as an HTPC-stroke-server type box. Given the meagre HDD drive (80GB) that this particular machine came with, I decided to use my external 750GB HDD as a store for my media and so on. The only problem is that I was [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came into possession of a <a href="http://www.apple.com/macmini/">Macmini</a> which I have pressed into service as an HTPC-stroke-server type box. Given the meagre HDD drive (80GB) that this particular machine came with, I decided to use my external 750GB HDD as a store for my media and so on. The only problem is that I was already using one of the two partitions on the disk as a Time Machine Volume for my Macbook.</p>
<p>This left me with something of a conundrum &#8211; I use my Macbook for pretty much everything from the trivial (browsing the web) to the crucial (processing and cataloguing my photos and videos and so on). Obviously I wanted to continue to use <a href="http://www.apple.com/macosx/features/timemachine.html">Time Machine</a> to back my data up but a second external HDD isn&#8217;t an option for me at the moment. So, I decided that I&#8217;d share the Time Machine partition attached to the Macmini on my LAN. My reasoning was that if I mounted this network partition on the Macbook and told Time Machine to use it as its backup volume, it would detect that it already had a backup store there and just continue using it. Except, of course, that it isn&#8217;t that straightforward.</p>
<p>When you direct Time Machine to use a network drive as its backup volume, it creates a sparse bundle on the volume. A sparse bundle is a type of disk image, similar to the ones that are used by virtually every Mac software developer/publisher to distribute their applications. The difference is that whereas a disk image is a single file, a sparse bundle is actually a directory that contains loads and loads of other directories, each of which contain individual files. Each of these files contains some of the data that comprises the disk image data. When one of the files inside the disk image changes, only the files in the sparse bundle that pertain to that dat need to be update; this makes Time Machine much more efficient when using network volumes as a backup store. When you try to open the sparse bundle directory in Finder, it will be mounted as though it were a normal disk or disk image.</p>
<p>What this meant for me was that when when I told Time Machine to use my network mounted Time Machine Volume &#8211; which, remember, had all of the previous backups I&#8217;d taken of my Macbook &#8211; it ignored the existing Backup.backupdb directory. Instead it created a new sparse bundle image, mounted it and started backing up &#8211; from scratch &#8211; to <strong>that</strong> virtual disk. This wasn&#8217;t satisfactory from three points of view. Firstly, backing up approximately 60GB of data across a WLAN would take forever. Secondly, it meant that I was consuming far more space on the volume than I wanted to what with two seperate Time Machine instances now living there. Thirdly, and most importantly, it meant that if I wanted to go further back in time than today, I&#8217;d have to physically disconnect the HDD from the Macmini, plug it into the Macbook and then return it to the Macmini every single time. Inconvenient once, pain in the arse forever after.</p>
<p>My solution was to copy the data from the original backup set into the sparse bundle, again on the assumption that this would cause the Macbook to pick up where it left off. As it turned out, this was the correct assumption but it wasn&#8217;t as straightforward as I had hoped, for reasons that I&#8217;ll explain in another post.</p>
<p>To make a boring story shorter, my ultimate solution was to use <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">Super Duper!</a> to copy the data into the sparse bundle. This took about eight hours, even doing it locally on the Macmini and once it was done I had to delete the contents of the Time Machine partition and copy the sparse bundle back to it.</p>
<p>It worked though and my Macbook is happily backing up across the network and I can use Time Machine to go all the way back to my initial backup in September of last year. I&#8217;ve also learned far more than I ever wanted to know about hard links.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deadlocked.org/2009/10/01/adventures-in-time-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
