<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The life of Ryan</title>
	<atom:link href="http://ryanbrooks.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryanbrooks.wordpress.com</link>
	<description>Grails, dojo, and building software that confuses me</description>
	<lastBuildDate>Mon, 27 Jun 2011 15:43:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ryanbrooks.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>The life of Ryan</title>
		<link>http://ryanbrooks.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ryanbrooks.wordpress.com/osd.xml" title="The life of Ryan" />
	<atom:link rel='hub' href='http://ryanbrooks.wordpress.com/?pushpress=hub'/>
		<item>
		<title>pfSense and VirtualBox</title>
		<link>http://ryanbrooks.wordpress.com/2011/06/27/pfsense-and-virtualbox/</link>
		<comments>http://ryanbrooks.wordpress.com/2011/06/27/pfsense-and-virtualbox/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 15:43:06 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Posts]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=50</guid>
		<description><![CDATA[Thinking of installing pfSense on VirtualBox to test out the functionality. Great idea! When you&#8217;re setting up the network controllers, make sure to change them to Intel card emulators, because there&#8217;s a bug in the FreeBSD driver for the non-Intel cards which makes them not work, but still appear in ifconfig.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=50&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Thinking of installing pfSense on VirtualBox to test out the functionality. Great idea! </p>
<p>When you&#8217;re setting up the network controllers, make sure to change them to Intel card emulators, because there&#8217;s a bug in the FreeBSD driver for the non-Intel cards which makes them not work, but still appear in ifconfig.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=50&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2011/06/27/pfsense-and-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>
	</item>
		<item>
		<title>Smaller (scaled) logos for Mythweb&#8217;s Elkin theme</title>
		<link>http://ryanbrooks.wordpress.com/2010/12/05/smaller-scaled-logos-for-mythwebs-elkin-theme/</link>
		<comments>http://ryanbrooks.wordpress.com/2010/12/05/smaller-scaled-logos-for-mythwebs-elkin-theme/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 16:49:52 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Posts]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/2010/12/05/smaller-scaled-logos-for-mythwebs-elkin-theme/</guid>
		<description><![CDATA[I really do like MythTV, mostly because I like fiddling with things for hours to make them &#8216;just so&#8217;. Since 0.23 I have even started thinking it&#8217;s almost straight-forward to set up. My only complaint has been that mythweb, the web-based interface, had a very dated look and feel. I only use the mythweb for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=59&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I really do like MythTV, mostly because I like fiddling with things for hours to make them &#8216;just so&#8217;. Since 0.23 I have even started thinking it&#8217;s almost straight-forward to set up. My only complaint has been that mythweb, the web-based interface, had a very dated look and feel. I only use the mythweb for scheduling recordings and checking out what to watch, and with the help of DynDNS I can get to it from anywhere, a feature which Sky have only cottoned onto recently.</p>
<p>Then the elkin theme came along. It is a bit light and fluffy, but the grey-on-white is much brighter and cleaner than the previous default theme, and much more modern. The only problem is the channel icons (in the UK at least) are massive, leaving only four or five channels on the screen at any one time.</p>
<p>Fortunately the fix is quick and simple. You will need to edit a single CSS file for the TV listings, <code>tv_list.css</code>, which is stored in the <code>skins/elkin/</code> directory of mythweb. On Mythbuntu Maverick this is <code>/usr/share/mythtv/mythweb/skins/elkin/tv_list.css</code>.</p>
<p>Change the entry for channel images:</p>
<p><pre class="brush: css;">
.x-channel img {
    position:           relative;
    top:                -4px;
    vertical-align:     middle;
}
</pre></p>
<p>to:</p>
<p><pre class="brush: css;">
.x-channel img {
    position:           relative;
    top:                -4px;
    vertical-align:     middle;
    height:             40px;
}
</pre></p>
<p>Adding the height value shrinks the icons down so you get more information onto a single screen, so it ends up looking like this:<br />
<div id="attachment_60" class="wp-caption alignnone" style="width: 460px"><a href="http://ryanbrooks.files.wordpress.com/2010/12/mythweb_elkin.jpg"><img src="http://ryanbrooks.files.wordpress.com/2010/12/mythweb_elkin.jpg?w=650" alt="Elkin theme on mythweb with scaled icons" title="Elkin theme on mythweb with scaled icons"   class="size-full wp-image-60" /></a><p class="wp-caption-text">Elkin theme on mythweb with scaled icons</p></div></p>
<p>It is of course possible to tackle this problem in another way &#8211; resizing the images manually will probably end up with a crisper image on the webpage. Before 0.23 I had written a script to make imageMagick scale the a larger version of the logo (from the same source) to 40px height, and then add rounded corners to it. The final look was excellent, but the script went the way of many un-backed-up things, and I&#8217;m back to square corners again.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=59&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2010/12/05/smaller-scaled-logos-for-mythwebs-elkin-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>

		<media:content url="http://ryanbrooks.files.wordpress.com/2010/12/mythweb_elkin.jpg" medium="image">
			<media:title type="html">Elkin theme on mythweb with scaled icons</media:title>
		</media:content>
	</item>
		<item>
		<title>Checking an annotated field is an enum</title>
		<link>http://ryanbrooks.wordpress.com/2010/11/24/checking-an-annotated-field-is-an-enum/</link>
		<comments>http://ryanbrooks.wordpress.com/2010/11/24/checking-an-annotated-field-is-an-enum/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 17:09:32 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[java enum programming]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=53</guid>
		<description><![CDATA[Whilst building an annotation processor for a Seam/Wicket project I&#8217;m working on I needed to do a specific action if the annotated field was an enum. Thanks to autoboxing, I accomplished the task using the getType() method and comparing that Class object to the enum I was interested in. It did leave me with a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=53&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Whilst building an annotation processor for a Seam/Wicket project I&#8217;m working on I needed to do a specific action if the annotated field was an <code>enum</code>. Thanks to autoboxing, I accomplished the task using the <code>getType()</code> method and comparing that <code>Class</code> object to the enum I was interested in. It did leave me with a big niggle though, and for the past couple of weeks I&#8217;ve been thinking about the following code:<br />
<pre class="brush: java;">
// Get the type of the field, as a Class object. Note we can't do instanceof on this, because it is a Class.
Class&lt;?&gt; type = field.getType();

//FIXME - make generic for any enum - this will work if we just change the catch criteria here.
if (type == OurEnumOne.class || type == OurClass.NestedEnumOne.class || type == OurEnumTwo.class) { ... }
</pre><br />
It&#8217;s horribly unmaintainable code for many reasons, but most unforgivably it won&#8217;t match any other enums, so every time we want to add support for a new enum we need to modify the class this resides in &#8211; nasty!</p>
<p>At first this doesn&#8217;t seem like it should be a problem, but the obvious solution (to get an instance of the field and just use <code>instanceof</code>) involves some convoluted reflection which will no doubt introduce bugs later on.</p>
<p>Fortunately, the real solution is a) more elegant, b) simpler, c) not likely to introduce bugs and d) applicable to all cases like this. Every class has an <code>isAssignableFrom(Class test)</code> method, which evaluates whether the calling class is a superclass or the same class as the test parameter, so the following returns true for any enum:</p>
<p><pre class="brush: java;">
if(Enum.class.isAssignableFrom(type)){ ... }
</pre></p>
<p>Thanks autoboxing!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=53&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2010/11/24/checking-an-annotated-field-is-an-enum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>
	</item>
		<item>
		<title>Mythtv Remote X10</title>
		<link>http://ryanbrooks.wordpress.com/2010/08/19/mythtv-remote-x10/</link>
		<comments>http://ryanbrooks.wordpress.com/2010/08/19/mythtv-remote-x10/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 06:31:41 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=28</guid>
		<description><![CDATA[I have an ATI Remote Wonder remote, which I&#8217;ve been quite happy with for the last couple of years. Not that happy though (or maybe I just like tinkering), because I set about trying to make the remote more responsive. There&#8217;s something about having to keep letting go of the button and waiting for it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=28&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have an ATI Remote Wonder remote, which I&#8217;ve been quite happy with for the last couple of years. Not that happy though (or maybe I just like tinkering), because I set about trying to make the remote more responsive. There&#8217;s something about having to keep letting go of the button and waiting for it to accept a new press that winds me up when I&#8217;m trying to watch a film&#8230;<br />
The default lirc  configuration file is an immense improvement in Mythbuntu Lucid, but I started hacking around anyway.<br />
First off was to try the kernel drivers for the X10, which worked, but I couldn&#8217;t get any of my lirc settings to affect its behaviour. Switching to the <code>X10 (userspace)</code> drivers made the remote more responsive (and generated *many* more button presses in irw.<br />
I now have the standard <code>ati_remote_wonder_rf </code>configuration running with one slight tweak &#8211; I have changed the repeat rates in <code>~/.lirc/mythtv </code>to 5 (from 0).<br />
Now it behaves like a remote should &#8211; and is quick enough for me anyway.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=28&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2010/08/19/mythtv-remote-x10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>
	</item>
		<item>
		<title>Posting syntax highlighted source code to WordPress</title>
		<link>http://ryanbrooks.wordpress.com/2010/07/17/posting-syntax-highlighted-source-code-to-wordpress/</link>
		<comments>http://ryanbrooks.wordpress.com/2010/07/17/posting-syntax-highlighted-source-code-to-wordpress/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 09:36:56 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Posts]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=44</guid>
		<description><![CDATA[So I almost left WordPress the other day, when I found the code tags didn&#8217;t syntax hightlight. Since then I&#8217;ve found this page: http://en.support.wordpress.com/code/posting-source-code/ which describes how to do it with sourcecode tags. I&#8217;m not sure why it was so hard to find, but WordPress has a big thing about blocking Javascript, so searching for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=44&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I almost left WordPress the other day, when I found the code tags didn&#8217;t syntax hightlight. Since then I&#8217;ve found this page: http://en.support.wordpress.com/code/posting-source-code/ which describes how to do it with sourcecode tags. </p>
<p>I&#8217;m not sure why it was so hard to find, but WordPress has a big thing about blocking Javascript, so searching for &#8220;syntax highlighting javascript on wordpress&#8221; provided suitably incorrect results. The highlighting options look pretty comprehensive, and although the highlighting of dojo code isn&#8217;t quite spot on (I haven&#8217;t found an editor that is, TextMate is about as close as I&#8217;ve got), it is certainly more readable than the &#8216;pre&#8217; tags.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=44&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2010/07/17/posting-syntax-highlighted-source-code-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>
	</item>
		<item>
		<title>The beginning, and the end of blogging!</title>
		<link>http://ryanbrooks.wordpress.com/2010/07/15/the-beginning-and-the-end-of-blogging/</link>
		<comments>http://ryanbrooks.wordpress.com/2010/07/15/the-beginning-and-the-end-of-blogging/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 18:23:21 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=34</guid>
		<description><![CDATA[OK, so I almost started using this blog again. I came pretty close. But then I tried to use the (granted very free) WordPress.com site to blog about software development. No plugins and no syntax highlighting for code. So I am out of here, probably to procrastinate and set up a blog on my own [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=34&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><del datetime="2010-07-17T09:02:46+00:00">OK, so I almost started using this blog again. I came pretty close. But then I tried to use the (granted very free) WordPress.com site to blog about software development. No plugins and no syntax highlighting for code. So I am out of here, probably to procrastinate and set up a blog on my own server. </p>
<p>Maybe I was a bit presumptuous, and have found a well-documented but poorly advertised feature of WordPress: <a href="http://en.support.wordpress.com/code/posting-source-code/">Source code highlighting</a>.</p>
<p>Right, well there were are, now that I can actually document what I&#8217;m doing I&#8217;m considerably happier. </p>
<p>&#8230;it will of course sit un-added to for another couple of years.</del></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=34&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2010/07/15/the-beginning-and-the-end-of-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up the new theme</title>
		<link>http://ryanbrooks.wordpress.com/2010/07/13/setting-up-the-new-theme/</link>
		<comments>http://ryanbrooks.wordpress.com/2010/07/13/setting-up-the-new-theme/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 09:48:03 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Tweets]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=30</guid>
		<description><![CDATA[This photo, status, link and post integration attempts to bring delicious, flickr and twitter to WordPress.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=30&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This photo, status, link and post integration attempts to bring delicious, flickr and twitter to WordPress. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=30&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2010/07/13/setting-up-the-new-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>
	</item>
		<item>
		<title>Efficient use of Java&#8217;s Scanner</title>
		<link>http://ryanbrooks.wordpress.com/2008/06/17/efficient-use-of-javas-scanner/</link>
		<comments>http://ryanbrooks.wordpress.com/2008/06/17/efficient-use-of-javas-scanner/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 15:54:32 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=27</guid>
		<description><![CDATA[So I&#8217;ve been debugging some code that I wrote quickly to parse a couple of hundred megabytes of log files. I wasn&#8217;t surprised to notice that the most expensive method call was to getNextLine() in java.util.Scanner, but I was surprised to see that hasMoreLines() was the second most expensive. It appears that there is no [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=27&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been debugging some code that I wrote quickly to parse a couple of hundred megabytes of log files. I wasn&#8217;t surprised to notice that the most expensive method call was to <code>getNextLine()</code> in <code>java.util.Scanner</code>, but I was surprised to see that <code>hasMoreLines()</code> was the second most expensive. It appears that there is no buffering of the line when it does its search of the stream, which just about doubles the processing time if you&#8217;re reading millions of lines. I can only assume the same problem is encountered with the other return types (<code>getNextLong()</code>, etc).</p>
<p>Luckily it&#8217;s an easy fix, changing this code:</p>
<hr />
<pre class="brush: java;">
Scanner s = new Scanner(inputFile);
while(s.hasMoreLines()){
    System.out.println(s.nextLine());
}
s.close();
&lt;/pre&gt;
&lt;hr /&gt;

to:

&lt;hr /&gt;
&lt;pre&gt;
Scanner s = new Scanner(inputFile);
try{
    while(true){
        System.out.println(s.nextLine());
    }
}catch(NoSuchElementException e){
    s.close();
}
</pre></p>
<hr />
<p>For those of you used to exception-based programming this will seem obvious, but I&#8217;ve posted it here for everyone else!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ryanbrooks.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ryanbrooks.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=27&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2008/06/17/efficient-use-of-javas-scanner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding packages to Perl on OS X Leopard</title>
		<link>http://ryanbrooks.wordpress.com/2008/06/17/adding-packages-to-perl-on-os-x-leopard/</link>
		<comments>http://ryanbrooks.wordpress.com/2008/06/17/adding-packages-to-perl-on-os-x-leopard/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 10:54:35 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=26</guid>
		<description><![CDATA[So I was having a bit of a problem. I&#8217;ve got Perl installed with MacPorts &#8211; probably a little superfluous now seeing as Leopard is shipped with 5.8.8, but still. I&#8217;ve been wondering for a while about getting extra packages installed, and expected it to be as painful as many other unix tools are for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=26&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I was having a bit of a problem. I&#8217;ve got Perl installed with MacPorts &#8211; probably a little superfluous now seeing as Leopard is shipped with 5.8.8, but still. I&#8217;ve been wondering for a while about getting extra packages installed, and expected it to be as painful as many other unix tools are for OS X. How I was proved wrong! </p>
<p>Basically all you need to do is download the package from CPAN, extract it and drop the folder into /System/Library/Perl/Extras/5.8.8 (for global addition of the package). The only caveat I found with this is that you need to make sure the naming is the same as you reference the package in Perl, so for example I wanted to use Statistics::Distributions, so I renamed the downloaded, extracted folder from Statistics-Distributions-1.01 to &#8220;Statistics&#8221; with Distributions.pm inside it, and it worked like a charm. </p>
<p>I&#8217;m guessing there will be some which need compiling and can prove to be a complete pain, but for now I&#8217;m impressed.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ryanbrooks.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ryanbrooks.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=26&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2008/06/17/adding-packages-to-perl-on-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenOffice.org 3 on OS X</title>
		<link>http://ryanbrooks.wordpress.com/2008/05/09/openofficeorg-3-on-os-x/</link>
		<comments>http://ryanbrooks.wordpress.com/2008/05/09/openofficeorg-3-on-os-x/#comments</comments>
		<pubDate>Fri, 09 May 2008 09:14:15 +0000</pubDate>
		<dc:creator>spikeheap</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[openoffice]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://ryanbrooks.wordpress.com/?p=25</guid>
		<description><![CDATA[Today I became sold on OpenOffice. The beta release of version 3 has been released and they finally addressed the issue which kept me with Office for Mac for so long, and have switched to Aqua. From a quick foray it is obvious how much better the interface is for Mac users now they&#8217;ve moved [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=25&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I became sold on OpenOffice. The <a href="http://marketing.openoffice.org/3.0/announcementbeta.html">beta release of version 3</a> has been released and they finally addressed the issue which kept me with Office for Mac for so long, and have switched to Aqua. </p>
<p>From a quick foray it is obvious how much better the interface is for Mac users now they&#8217;ve moved away from X11. Keep up the good work guys!</p>
<p><a href="http://www.openoffice.org"><img src="http://marketing.openoffice.org/art/galleries/marketing/web_buttons/nicu/180x60_3_get.png" border="0"/></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ryanbrooks.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ryanbrooks.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ryanbrooks.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ryanbrooks.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ryanbrooks.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ryanbrooks.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ryanbrooks.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ryanbrooks.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ryanbrooks.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ryanbrooks.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ryanbrooks.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ryanbrooks.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ryanbrooks.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ryanbrooks.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ryanbrooks.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ryanbrooks.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ryanbrooks.wordpress.com&amp;blog=3216671&amp;post=25&amp;subd=ryanbrooks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ryanbrooks.wordpress.com/2008/05/09/openofficeorg-3-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f847aeef61e9466a132b6fdbd980e11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spikeheap</media:title>
		</media:content>

		<media:content url="http://marketing.openoffice.org/art/galleries/marketing/web_buttons/nicu/180x60_3_get.png" medium="image" />
	</item>
	</channel>
</rss>
