<?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; blog</title>
	<atom:link href="http://gareth.halfacree.co.uk/tag/blog/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>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>
		<item>
		<title>Mobile blogging</title>
		<link>http://gareth.halfacree.co.uk/2008/10/mobile-blogging</link>
		<comments>http://gareth.halfacree.co.uk/2008/10/mobile-blogging#comments</comments>
		<pubDate>Wed, 01 Oct 2008 20:46:25 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://gareth.halfacree.co.uk/?p=110</guid>
		<description><![CDATA[Just a quick update to reassure people that I'm not dead, and to test some new software I've put on my 'phone.  With the ability to update the site from anywhere, I'll really have no excuse not to do so more often!]]></description>
			<content:encoded><![CDATA[<p>Just a quick update to reassure people that I&#8217;m not dead, and to test some new software I&#8217;ve put on my &#8216;phone.  With the ability to update the site from anywhere, I&#8217;ll really have no excuse not to do so more often!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://gareth.halfacree.co.uk/2008/10/mobile-blogging/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New beginnings</title>
		<link>http://gareth.halfacree.co.uk/2008/08/new-beginnings</link>
		<comments>http://gareth.halfacree.co.uk/2008/08/new-beginnings#comments</comments>
		<pubDate>Sun, 31 Aug 2008 13:26:55 +0000</pubDate>
		<dc:creator>Gareth</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://gareth.halfacree.co.uk/?p=7</guid>
		<description><![CDATA[You may have noticed that this website has taken on a new look.  There's a reason for this.

In the past I've used strange, esoteric software to create my websites - the last one was made using something called GreyMatter.  While this works OK, it's ...]]></description>
			<content:encoded><![CDATA[<p>You may have noticed that this website has taken on a new look.  There&#8217;s a reason for this.</p>
<p>In the past I&#8217;ve used strange, esoteric software to create my websites &#8211; the last one was made using something called GreyMatter.  While this works OK, it&#8217;s not as flexible and powerful as some of the more mainstream options out there.</p>
<p>Accordingly, I&#8217;ve switched to <a title="WordPress" href="http://www.wordpress.com" target="_blank">WordPress</a>, an open-source package that&#8217;s rather more popular than the stuff I normally use.  It&#8217;s nice and powerful, but <em>does</em> mean that the custom theme I was using before has had to go bye-bye.  Thankfully, I was able to import the old content OK, although it could do with some tidying.</p>
<p>As time goes on, I&#8217;ll be customising the site further to accomodate my needs along with adding some additional software thanks to the new raft of MySQL databases I&#8217;ve got courtesy of moving to a decent <a title="TSOHost" href="http://billing.tsohost.co.uk/aff.php?aff=562" target="_blank">webhost</a>.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://gareth.halfacree.co.uk/2008/08/new-beginnings/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

