<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>spacebeast</title>
	
	<link>http://spacebeast.com/blog</link>
	<description>By, for and about beasts from space</description>
	<lastBuildDate>Wed, 05 Oct 2011 23:28:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/spacebeast" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="spacebeast" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Eliminating Annoying Backup Drive Spin-Up</title>
		<link>http://spacebeast.com/blog/2010/05/19/elininating-annoying-backup-drive-spin-up/</link>
		<comments>http://spacebeast.com/blog/2010/05/19/elininating-annoying-backup-drive-spin-up/#comments</comments>
		<pubDate>Thu, 20 May 2010 03:43:50 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[nerdery]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=138</guid>
		<description><![CDATA[Do you suffer from spin-up wait times as OS X&#8217;s Finder attempts to access your idle external backup drive when you open up a file selection dialog box? Those seconds can add up &#8211; but wait no more, a solution is at hand! I have SuperDuper! (recommended!) scheduled to do a nightly backup of my [...]]]></description>
				<content:encoded><![CDATA[<p>Do you suffer from spin-up wait times as OS X&#8217;s Finder attempts to access your idle external backup drive when you open up a file selection dialog box? Those seconds can add up &#8211; but wait no more, a solution is at hand!</p>
<p><span id="more-138"></span></p>
<p>I have <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper!</a> (recommended!) scheduled to do a nightly backup of my primary drive onto an external Seagate FreeAgent drive. The drive conveniently spins down to reduce wear and power consumption after being idle for a few minutes. However, since it is left mounted for the backup to run, the Finder feels the need to access it occasionally, incurring a few seconds of spinning beach-ball time.</p>
<p>The solution is to leave the external drive unmounted, and mount it only while the backup is running. You&#8217;re also free to mount it yourself whenever you like using the Disk Utility application.</p>
<p>The first thing you&#8217;ll need to do is to figure out what the UUID of the backup volume is. Run &#8220;<code>diskutil list</code>&#8221; from the Terminal&#8217;s command line, and find the volume you&#8217;re interested in. In my case the one I was looking for was the second partition, /dev/disk1s2:</p>
<pre>
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk1
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS FreeAgent Drive         999.9 GB   disk1s2
</pre>
<p>Now get the volume&#8217;s UUID with &#8220;<code>diskutil info /dev/disk1s2</code>&#8221; &#8211; you&#8217;ll see a &#8220;Volume UUID&#8221; line with a large hexadecimal number like this:</p>
<pre>
   Volume UUID:              01234567-890A-BCDE-F012-34567890ABCD
</pre>
<p>In the example above, the value &#8220;01234567-890A-BCDE-F012-34567890ABCD&#8221; is what we&#8217;re looking for.</p>
<p>In order for OS X (this post refers to 10.6) to ignore the backup drive on startup, you&#8217;ll have to tell it not to mount it. Even though it doesn&#8217;t create the file by default, OS X will use mount parameters from the file system table in the old familiar /etc/fstab file. The one we want is &#8220;noauto&#8221; and you can specify the disk to apply it to with the UUID you found above. Create the /etc/fstab file and add a line like the following to it:</p>
<pre>
UUID=01234567-890A-BCDE-F012-34567890ABCD none hfs rw,noauto
</pre>
<p>Here we&#8217;re specifying the backup volume with the UUID, &#8220;none&#8221; is the mount point so that OS X will mount it in <code>/Volumes</code> where you&#8217;re used to seeing it, and &#8220;hfs&#8221; is the filesystem type. The mount parameters &#8220;rw&#8221; and &#8220;noauto&#8221; specify that the volume is to be mounted writable, but not to mount it automatically at boot time.</p>
<p>The final step is to tell the backup system to mount and unmount the volume prior to and following the backup. OS X&#8217;s diskutil can mount disks using the UUID, so to mount the drive:</p>
<pre>
/usr/sbin/diskutil mountDisk 01234567-890A-BCDE-F012-34567890ABCD
</pre>
<p>and to unmount it:</p>
<pre>
/usr/sbin/diskutil unmountDisk 01234567-890A-BCDE-F012-34567890ABCD
</pre>
<p>SuperDuper! has an &#8220;advanced&#8221; option to run shell scripts before and after the backup is run, so that&#8217;s where I put those commands.</p>
<p>Now you can unmount your backup drive and you&#8217;ll no longer have to suffer through that agonizing few seconds of waiting for the Finder to uselessly spin it up! Not only that, but you&#8217;ll save wear and tear on your backup drive because it isn&#8217;t constantly spinning up and down.</p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2010/05/19/elininating-annoying-backup-drive-spin-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Streaming CBC Radio Live in iTunes</title>
		<link>http://spacebeast.com/blog/2009/05/25/streaming-cbc-radio-in-itunes/</link>
		<comments>http://spacebeast.com/blog/2009/05/25/streaming-cbc-radio-in-itunes/#comments</comments>
		<pubDate>Tue, 26 May 2009 02:34:44 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[nerdery]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[canada]]></category>
		<category><![CDATA[cbc]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=123</guid>
		<description><![CDATA[Last week CBC radio&#8217;s streaming feed stopped working on my Mac, and it turns out they changed their streaming format and switched to the Abacast CDN. Their stream used to be in WMV format, but now they&#8217;re sending MP3. Unfortunately they haven&#8217;t updated their instructions for OS X on their stream page yet. Flip4Mac is [...]]]></description>
				<content:encoded><![CDATA[<p>Last week CBC radio&#8217;s streaming feed stopped working on my Mac, and it turns out they changed their streaming format and switched to the Abacast CDN.  Their stream used to be in WMV format, but now they&#8217;re sending MP3.  Unfortunately they haven&#8217;t updated their instructions for OS X on their <a href="http://www.cbc.ca/listen">stream page</a> yet.  Flip4Mac is no longer required, and iTunes can open the stream directly (yay!).  Here&#8217;s how to set up the new stream using Firefox (Safari should be similar):</p>
<ol>
<li>Open the stream you want from the list on their <a href="http://www.cbc.ca/listen">&#8220;Listen&#8221; page</a>.</li>
<li>In the popup window, click the link for the stream bit rate you want.</li>
<li>Right click on the popup window, and select &#8220;View Page Info&#8221; from the context menu.</li>
<li>Click on the &#8220;Media&#8221; tab and copy down the &#8220;embed&#8221; URL.  In my case it is http://icy1.abacast.com/cbc-r1vancouver-96.</li>
<li>Create a plain text file called &#8220;cbc.m3u&#8221; containing only the URL from the previous step.  Here is <a href='http://spacebeast.com/blog/wp-content/uploads/2009/05/cbc.m3u'>mine</a>.  Alternatively you can press command-U to play the stream directly.</li>
<li>Drag the file you created into iTunes, and you&#8217;re done!</li>
</ol>
<p>Update: CBC has updated their stream links page, and the URLs they supply seem to work now.  Continue to ignore the Flip4Mac instructions on the <a href="http://www.cbc.ca/listen">&#8220;Listen&#8221; page</a> though.</p>
<p>Update (June 1, 2011): Darn, they broke things again. CBC now appears to be streaming their radio content using services from streamtheworld.com, which encapsulates the MP3 stream in a FLV container for playing in a Flash player. When I figure out how to get it working again I&#8217;ll post. With some difficulty, I&#8217;ve extracted the playlist for Vancouver&#8217;s Radio One live stream. In iTunes, select &#8220;Advanced|Open Stream&#8230;&#8221; and paste in the following URL: <a href="http://2513.live.streamtheworld.com:80/CBC_R1_VCR_H_SC ">http://2513.live.streamtheworld.com:80/CBC_R1_VCR_H_SC</a>.</p>
<p>Update (June 24, 2011): See Charles&#8217; comments below for links to CBC&#8217;s updated lists of Radio 1, 2, and 3 stream URLs. </p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2009/05/25/streaming-cbc-radio-in-itunes/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
<enclosure url="http://spacebeast.com/blog/wp-content/uploads/2009/05/cbc.m3u" length="80" type="audio/x-mpegurl" />
		</item>
		<item>
		<title>Programming is Fun Again with Processing</title>
		<link>http://spacebeast.com/blog/2009/01/01/programming-is-fun-again-with-processing/</link>
		<comments>http://spacebeast.com/blog/2009/01/01/programming-is-fun-again-with-processing/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 22:14:08 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[processing.org]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=93</guid>
		<description><![CDATA[Have you heard about Processing? I was introduced to it indirectly through the Arduino microcontroller board I picked up a few months ago, which uses a variant of Processing for its development environment. Processing is essentially a Java-like language oriented primarily toward programming in a visual context: i.e. making graphics. It might also be the [...]]]></description>
				<content:encoded><![CDATA[<p>Have you heard about <a href="http://processing.org/">Processing</a>?  I was introduced to it indirectly through the <a href="http://www.arduino.cc/">Arduino</a> microcontroller board I picked up a few months ago, which uses a variant of Processing for its development environment.  Processing is essentially a Java-like language oriented primarily toward programming in a visual context: i.e. making graphics.  It might also be the most fun I&#8217;ve had programming anything since I wrote a Mandlebrot set generator in CBM Basic for my Commodore 64.  The immediacy of seeing something happen graphically as you code is like getting a cookie every time you hit &#8220;compile&#8221;.<span id="more-93"></span></p>
<p>Having a few days off over the holidays means I&#8217;m able to spend time playing with code a little, so I wrote what the Processing folks call a &#8220;sketch&#8221;.  Here is the result (you&#8217;ll need a Java plugin):</p>
<p><applet name="tendrils" WIDTH="400" HEIGHT="300" archive="wp-content/uploads/2009/01/tendrils.jar" standby="Loading Processing software..." codebase="http://spacebeast.com/blog/" code="tendrils" mayscript="true" scriptable="true" image="wp-content/uploads/2009/01/tendrils.png" boxmessage="Loading Processing software..." boxcolor="#FFFFFF"><br />
<img src="wp-content/uploads/2009/01/tendrils.png" alt="No Java Plug-in screenshot"/><br />
</applet> 			  </p>
<p><small><a href="wp-content/uploads/2009/01/tendrils.pde">&#8220;Tendrils&#8221; code.</a></small></p>
<p>Fun stuff!  And I haven&#8217;t even touched the 3D portions of the API, which look very tempting.  </p>
<p>Processing also has a lively community, including a <a href="http://www.flickr.com/groups/processing/">Flickr group</a> which has a lot of beautiful Processing-generated images.  The brilliant John Resig of jQuery fame has even ported the language and large portions of the API to <a href="http://ejohn.org/blog/processingjs/">Javascript</a>, using the canvas element available in modern web browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2009/01/01/programming-is-fun-again-with-processing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery Content RegExp Selector</title>
		<link>http://spacebeast.com/blog/2008/12/16/jquery-content-regexp-selector/</link>
		<comments>http://spacebeast.com/blog/2008/12/16/jquery-content-regexp-selector/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 05:52:54 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[selector]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=74</guid>
		<description><![CDATA[One of jQuery&#8217;s best features is the ease with which it can be extended with simple plugins. This post on customizing jQuery selectors inspired me to write the following selector extension, which matches text content in the current element set with a regular expression. Remember how I said it was simple? More like effortless, you [...]]]></description>
				<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_87" class="wp-caption alignright" style="width: 160px;">
<dt class="wp-caption-dt"><a href="http://jquery.com/"><img class="size-full wp-image-87" title="jQuery" src="http://spacebeast.com/blog/wp-content/uploads/2008/12/jquery.png" alt="jQuery logo" width="150" height="46" /></a></dt>
</dl>
</div>
<p>One of <a href="http://jquery.com/">jQuery&#8217;s</a> best features is the ease with which it can be extended with simple plugins.  This <a href="http://james.padolsey.com/javascript/extending-jquerys-selector-capabilities/">post on customizing jQuery selectors</a> inspired me to write the following selector extension, which matches text content in the current element set with a regular expression.  <span id="more-74"></span>Remember how I said it was simple? More like effortless, you could easily squeeze this down into a half dozen lines or so if you were so inclined.  The only slightly difficult bit is figuring out what the &#8220;a&#8221;, &#8220;i&#8221; and &#8220;m&#8221; parameters mean in the jQuery selector source.  From the looks of things &#8220;a&#8221; is the element to match, &#8220;i&#8221; is the index in the list of matched elements, and &#8220;m&#8221; is the regexp match for the selector expression where &#8220;m[3]&#8221; is the value of the parameter supplied to the selector function.</p>
<pre>[code lang="javascript"]
(function ($) {
     var match = function (a, i, m) {
         return RegExp(m[3]).test(a.textContent || a.innerText || $(a).text() || "");
     };

     var match_ignore_case = function (a, i, m) {
         return RegExp(m[3], 'i').test(a.textContent || a.innerText || $(a).text() || "");
     };

     $.extend($.expr[':'], {
                  containsmatch: match,
                  containsmatchi: match_ignore_case
              });
 })(jQuery);
[/code]</pre>
<p>With the above code loaded, &#8220;:containsmatch(&lt;regexp&gt;)&#8221; and &#8220;:containsmatchi(&lt;case insensitive regexp&gt;)&#8221; will be added to jQuery&#8217;s already generous set of selectors.  For example, [code lang="javascript"]$('p:containsmatchi(^the)')[/code] will case insensitively match any paragraph element with text content beginning with &#8220;the&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2008/12/16/jquery-content-regexp-selector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Harbour Tour</title>
		<link>http://spacebeast.com/blog/2008/12/01/harbour-tour/</link>
		<comments>http://spacebeast.com/blog/2008/12/01/harbour-tour/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 03:38:09 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[photo]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=68</guid>
		<description><![CDATA[I took the Child on a trip to Science World yesterday, and part of the fun was the trip on the SeaBus and SkyTrain. On the way back we watched a pair of tugs working in the harbour and had to take this photo.]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/big-dave-diode/3073169084/" title="Hawk at Days End by Big Dave Diode, on Flickr"><img src="http://farm4.static.flickr.com/3239/3073169084_262445c63e_m.jpg" width="240" height="160" alt="Hawk at Days End" /></a><br />
I took the Child on a trip to Science World yesterday, and part of the fun was the trip on the SeaBus and SkyTrain.  On the way back we watched a pair of tugs working in the harbour and had to take this photo.</p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2008/12/01/harbour-tour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Word of the Day is ☞ Manicule</title>
		<link>http://spacebeast.com/blog/2008/11/23/the-word-of-the-day-is-%e2%98%9e-manicule/</link>
		<comments>http://spacebeast.com/blog/2008/11/23/the-word-of-the-day-is-%e2%98%9e-manicule/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 05:55:23 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[manicule]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=55</guid>
		<description><![CDATA[I&#8217;ve never been satisfied with the terminology for the pointer cursor, the little hand with the index finger extended, that web browsers use to indicate a hyperlink by default. Standard CSS rules call it a &#8220;pointer&#8221;, and IE in its typically idiosyncratic fashion calls it a &#8220;hand&#8221;. Today I ran across a post on the [...]]]></description>
				<content:encoded><![CDATA[<p><a title="Illustrated Manicule by Mykl Roventine, on Flickr" href="http://www.flickr.com/photos/myklroventine/1253354937/"><img class="left alignleft" style="padding: 5px;" title="Illustrated Manicule by Mykl Roventine, on Flickr" src="http://farm2.static.flickr.com/1142/1253354937_b2d43908cb_m_d.jpg" alt="Illustrated Manicule" width="240" height="182" /></a><br />
I&#8217;ve never been satisfied with the terminology for the pointer cursor, the little hand with the index finger extended, that web browsers use to indicate a hyperlink by default.  Standard CSS rules call it a &#8220;pointer&#8221;, and IE in its typically idiosyncratic fashion calls it a &#8220;hand&#8221;.</p>
<p>Today I ran across a <a href="http://www.languagehat.com/archives/003319.php">post</a> on the excellent Language Hat blog which laments the fact that the term &#8220;manicule&#8221;, meaning a bullet-like symbol shaped like a pointing hand used to direct the readers attention, has disappeared from contemporary dictionaries. The word was a new one on me, and had immediate appeal.  I&#8217;m not the only one that likes it: it has its own <a href="http://en.wikipedia.org/wiki/Manicule">WikiPedia entry</a> and even a <a href="http://www.flickr.com/groups/manicule">Flickr group</a>.</p>
<p>From now on I&#8217;m referring to the pointer cursor as the &#8220;manicule&#8221;, and I encourage all right-thinking CSS users to do the same. </p>
<p><small>[<a href="http://creativecommons.org/licenses/by/2.0/deed.en">CC</a> Photo by <a href="http://www.flickr.com/photos/myklroventine/">Mykl Roventine</a>]</small><span id="more-55"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2008/11/23/the-word-of-the-day-is-%e2%98%9e-manicule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qila and baby Tiqa</title>
		<link>http://spacebeast.com/blog/2008/11/16/qila-and-baby-tiqa/</link>
		<comments>http://spacebeast.com/blog/2008/11/16/qila-and-baby-tiqa/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 02:30:13 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[photo]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/2008/11/16/qila-and-baby-tiqa/</guid>
		<description><![CDATA[Qila and baby Tiqa We made a trip to the Vancouver Aquarium this morning, and found out that the five month old beluga calf has been named Tiqa since the last time we saw her. She&#8217;s a cute little grey torpedo with a big beluga smile.]]></description>
				<content:encoded><![CDATA[<p><a title="photo sharing" href="http://www.flickr.com/photos/big-dave-diode/3035509367/"><img style="border: solid 2px #000000;" src="http://farm4.static.flickr.com/3249/3035509367_c96bf08d90_m.jpg" alt="" /></a></p>
<p><span style="font-size: 0.9em; margin-top: 0px;"><a href="http://www.flickr.com/photos/big-dave-diode/3035509367/">Qila and baby Tiqa</a></span></p>
<p>We made a trip to the Vancouver Aquarium this morning, and found out that the five month old beluga calf has been named Tiqa since the last time we saw her.   She&#8217;s a cute little grey torpedo with a big beluga smile.</p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2008/11/16/qila-and-baby-tiqa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dirk Gently Airs, Convert RealAudio to MP3</title>
		<link>http://spacebeast.com/blog/2008/10/13/dirk-gently-airs-convert-realaudio-to-mp3/</link>
		<comments>http://spacebeast.com/blog/2008/10/13/dirk-gently-airs-convert-realaudio-to-mp3/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 01:44:03 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bbc]]></category>
		<category><![CDATA[dirk gently]]></category>
		<category><![CDATA[douglas adams]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[realaudio]]></category>
		<category><![CDATA[realplayer]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=41</guid>
		<description><![CDATA[BBC Radio 4 is finally airing the second Dirk Gently series: &#8220;The Long Dark Tea-Time of the Soul&#8221;.  Unfortunately it is only available as a RealAudio stream (who still uses RealPlayer?) so you&#8217;ll have to cope with some mplayer magic to convert it to something an iPod will play: [code lang="perl"] #!/usr/bin/perl -w use strict; [...]]]></description>
				<content:encoded><![CDATA[<p>BBC Radio 4 is finally airing the second <a href="http://www.bbc.co.uk/radio4/dirkgently/">Dirk Gently</a> series: &#8220;The Long Dark Tea-Time of the Soul&#8221;.  Unfortunately it is only available as a RealAudio stream (who still uses RealPlayer?) so you&#8217;ll have to cope with some mplayer magic to convert it to something an iPod will play:<span id="more-41"></span></p>
<pre>[code lang="perl"]
#!/usr/bin/perl -w
use strict;
use Getopt::Long;

my $encode_mp3 = 1;
my $encode_wav = 1;
GetOptions('mp3!' =&gt; \$encode_mp3,
	   'wav!' =&gt; \$encode_wav);

my $WGET = '/usr/bin/wget';
my $MPLAYER = '/usr/bin/mplayer -nojoystick -nolirc';
my $LAME = '/usr/bin/lame';
my $TMP = '/tmp';

my $ramurl = shift;
my @ram = `$WGET -q -O - $ramurl`;
my ($rtspurl) = grep(/^rtsp:/, @ram);
$rtspurl =~ s/\&amp;.*$//;
$rtspurl =~ /\/([^\/]*)\.r[ma]/ or die("Can't parse rtsp URL: \"$rtspurl\"");
my $filebase = $1;
print("Opening stream at " . localtime() . "\n");
system("$MPLAYER -dumpstream -dumpfile $TMP/$filebase.dump $rtspurl");
my $wavfile = $TMP;
$wavfile = '.' unless $encode_mp3 &amp;&amp; !$encode_wav;
$wavfile .= "/$filebase.wav";
system("$MPLAYER -ao pcm:file=$wavfile $TMP/$filebase.dump");
unlink("$TMP/$filebase.dump");
if ($encode_mp3)
{
    system("$LAME $wavfile $filebase.mp3");# or die("Couldn't convert to mp3");
}
unlink("$wavfile") unless $encode_wav;
[/code]</pre>
<p>Pass the script the RAM URL as a command line parameter, and if all goes well it should dump the stream to a WAV, then convert it into an MP3 file.  You&#8217;ll need mplayer and lame installed.</p>
<p>(And if all else fails, the CD should be released in a few months&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2008/10/13/dirk-gently-airs-convert-realaudio-to-mp3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Foggy San Francisco</title>
		<link>http://spacebeast.com/blog/2008/08/27/foggy-san-francisco/</link>
		<comments>http://spacebeast.com/blog/2008/08/27/foggy-san-francisco/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 17:00:10 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[travel]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=31</guid>
		<description><![CDATA[On our quick trip to San Francisco, we discovered they weren&#8217;t exaggerating about the fog &#8211; or the steep hills.  Coming from North Vancouver, it was pretty easy to adjust though.]]></description>
				<content:encoded><![CDATA[<p><a href="http://spacebeast.com/blog/wp-content/uploads/2008/08/img_0226.jpg"><img class="alignnone size-medium wp-image-32" title="Grace Cathedral" src="http://spacebeast.com/blog/wp-content/uploads/2008/08/img_0226-300x199.jpg" alt="" width="300" height="199" /></a></p>
<p>On our quick trip to San Francisco, we discovered they weren&#8217;t exaggerating about the fog &#8211; or the steep hills.  Coming from North Vancouver, it was pretty easy to adjust though.</p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2008/08/27/foggy-san-francisco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LHC: Comedic Collider</title>
		<link>http://spacebeast.com/blog/2008/07/02/comedic-collider/</link>
		<comments>http://spacebeast.com/blog/2008/07/02/comedic-collider/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 18:55:46 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[lhc]]></category>
		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://spacebeast.com/blog/?p=29</guid>
		<description><![CDATA[Funny guy Chris Morris writes about his visit to the Large Hadron Collider and hilarity ensues. He includes the obvious joke about misspelling &#8220;hadron&#8221;, but in a nice subtle way. [Via]]]></description>
				<content:encoded><![CDATA[<p>Funny guy Chris Morris <a title="Chris Morris writes about his visit to the LHC" href="http://www.guardian.co.uk/science/2008/jun/30/cern.particle.physics2">writes</a> about his visit to the Large Hadron Collider and hilarity ensues.  He includes the obvious joke about misspelling &#8220;hadron&#8221;, but in a nice subtle way.</p>
<p><a href="http://blogs.discovermagazine.com/badastronomy/2008/07/02/comedy-bosons-and-art/">[Via]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spacebeast.com/blog/2008/07/02/comedic-collider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
