<?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>Gareth Halfacree &#187; coding</title>
	<atom:link href="http://gareth.halfacree.co.uk/tag/coding/feed" rel="self" type="application/rss+xml" />
	<link>http://gareth.halfacree.co.uk</link>
	<description>&#34;Work hard, have fun, enjoy.&#34;</description>
	<lastBuildDate>Wed, 02 Feb 2011 11:04:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>aRSSduino</title>
		<link>http://gareth.halfacree.co.uk/2010/08/arssduino</link>
		<comments>http://gareth.halfacree.co.uk/2010/08/arssduino#comments</comments>
		<pubDate>Mon, 30 Aug 2010 11:48:54 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[freelance]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[arssduino]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[rss reader]]></category>
		<category><![CDATA[wiring]]></category>

		<guid isPermaLink="false">http://gareth.halfacree.co.uk/?p=642</guid>
		<description><![CDATA[The aRSSduino is a simple project for the Arduino microcontroller, designed to display RSS feed entries on a 16x2 LCD.  It's still in the early stages, with the following outstanding:

	To Do: Support for larger LCDs
	To Improve: Better UTF-8 character handling
	To Do: Multiple RSS feed ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://gareth.halfacree.co.uk/wp-content/uploads/2010/08/arssduino.jpg"><img class="alignright size-medium wp-image-643" title="aRSSduino" src="http://gareth.halfacree.co.uk/wp-content/uploads/2010/08/arssduino-300x240.jpg" alt="The aRSSduino in action" width="300" height="240" /></a>The aRSSduino is a simple project for the Arduino microcontroller, designed to display RSS feed entries on a 16&#215;2 LCD.  It&#8217;s still in the early stages, with the following outstanding:</p>
<ul>
<li>To Do: Support for larger LCDs</li>
<li>To Improve: Better UTF-8 character handling</li>
<li>To Do: Multiple RSS feed support</li>
</ul>
<p>For now, however, it&#8217;s a pretty neat hack &#8211; and an alternative back-end allows it to display Twitter @ replies instead, with the person&#8217;s username on the top line of the display and the message below.</p>
<p>The aRSSduino relies on a USB connection between the Arduino and the host PC &#8211; it&#8217;s not a stand-alone project.  Currently, the Python back-end is written to run on a Linux-based host &#8211; although it should be relatively simple to port to Windows, I have no plans to do so at present.</p>
<p>You can download the project source code &#8211; both for the Arduino sketch and for the Python-based back-end <a title="Download aRSSduino v0.1.4" href="http://gareth.halfacree.co.uk/code/arssduino/arssduino_0.1.4.tar.bz2" target="_self">here</a>.  If you improve upon it, let me know!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://gareth.halfacree.co.uk/2010/08/arssduino/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twitter and XHTML validation</title>
		<link>http://gareth.halfacree.co.uk/2009/04/twitter-and-xhtml-validation</link>
		<comments>http://gareth.halfacree.co.uk/2009/04/twitter-and-xhtml-validation#comments</comments>
		<pubDate>Sun, 05 Apr 2009 10:47:55 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://gareth.halfacree.co.uk/?p=269</guid>
		<description><![CDATA[I've been fighting my new WordPress theme this morning in order to get the darn thing to validate as XHTML 1.0 Transitional - I didn't aim for Strict as I use the "target=_new" functionality in a lot of existing links which would need to ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been fighting my new WordPress theme this morning in order to get the darn thing to validate as XHTML 1.0 Transitional &#8211; I didn&#8217;t aim for Strict as I use the &#8220;target=_new&#8221; functionality in a lot of existing links which would need to be updated.  After fixing a bunch of problems around the place, I finally tracked the last few down to the Twitter widget you can see to the right.<br />
It appears that Twitter&#8217;s default coding for the HTML-based widget is a trifle skwiffy.  The code offered to me by the site is:</p>
<blockquote><p><code lang="html"></p>
<div id="twitter_div">
<h2 class="sidebar-title">Twitter Updates</h2>
<p><a id="twitter-link" href="http://twitter.com/ghalfacree" style="display:block;text-align:right;">follow me on Twitter</a></div>
<p><script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script> <script src="http://twitter.com/statuses/user_timeline/ghalfacree.json?callback=twitterCallback2&amp;count=5" type="text/javascript"></script></code></p></blockquote>
<p>which refuses to validate, showing five errors mostly related to things being in the wrong order.  A quick hack-job gave me the following:<br />
<span id="more-269"></span></p>
<blockquote><p><code lang="html"></p>
<div id="twitter_div">
<h2 style="display: none;">Twitter Updates</h2>
<ul id="twitter_update_list">
<li><script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script> <script src="http://twitter.com/statuses/user_timeline/ghalfacree.json?callback=twitterCallback2&amp;count=4" type="text/javascript"></script></li>
</ul>
<p><a id="twitter-link" style="display:block;text-align:right;" href="http://twitter.com/ghalfacree">follow me on Twitter</a></div>
<p></code></p></blockquote>
<p>which validates just fine as XHTML 1.0 Transitional.  However, this rather ugly bit of cruft crashes Internet Explorer.  So, a neater &#8211; but rather stupid &#8211; hack is below:</p>
<blockquote><p><code lang="html"></p>
<div id="twitter_div">
<ul id="twitter_update_list">
<li>&nbsp;</li>
</ul>
<p><a href="http://twitter.com/ghalfacree" id="twitter-link" style="display:block;text-align:right;">follow me on Twitter</a>
</div>
<p><script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script><br />
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/ghalfacree.json?callback=twitterCallback2&amp;count=4"></script></code></p></blockquote>
<p>That should suffice for now, but I&#8217;m not particularly happy with the solution.  Still, it validates &#8211; which means it can&#8217;t be <em>bad</em>.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://gareth.halfacree.co.uk/2009/04/twitter-and-xhtml-validation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

