<?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>Jamie Thompson &#187; Web</title>
	<atom:link href="http://jamiethompson.co.uk/tags/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamiethompson.co.uk</link>
	<description>Web Developer</description>
	<lastBuildDate>Thu, 09 Sep 2010 12:16:34 +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>Last.fm Loved Tracks RSS Feed</title>
		<link>http://jamiethompson.co.uk/web/2008/06/30/lastfm-loved-tracks-rss-feed/</link>
		<comments>http://jamiethompson.co.uk/web/2008/06/30/lastfm-loved-tracks-rss-feed/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 18:58:33 +0000</pubDate>
		<dc:creator>Jamie Thompson</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[last.fm]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://jamazon.co.uk/?p=85</guid>
		<description><![CDATA[

Update: October 2008
As of this month, last.fm have started providing an official RSS feed for loved tracks (Thanks Anil!). My homebrew feed, the original subject of this article, will be retired at some point in the near future in favour of the official feed.
The Official Feed
http://ws.audioscrobbler.com/2.0/user/jamiethompson/lovedtracks.rss

My Original Homebrew Approach
Ever wondered why last.fm don&#8217;t provide an [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://s322999261.websitehome.co.uk/wp-content/uploads/2008/07/lastfm.jpg" alt="last.fm loved tracks" title="last.fm loved tracks" width="530" height="191" /></p>
<div class="pullout">
<h2>Update: October 2008</h2>
<p>As of this month, last.fm have started providing an official RSS feed for loved tracks (Thanks <a href="http://www.last.fm/user/joanofarctan">Anil</a>!). My homebrew feed, the original subject of this article, will be retired at some point in the near future in favour of the official feed.</p>
<h2>The Official Feed</h2>
<p><a href="http://ws.audioscrobbler.com/2.0/user/jamiethompson/lovedtracks.rss">http://ws.audioscrobbler.com/2.0/user/jamiethompson/lovedtracks.rss</a>
</div>
<h2>My Original Homebrew Approach</h2>
<p>Ever wondered why last.fm don&#8217;t provide an RSS feed of your loved tracks*? Me too. So using the freely available <a href="http://www.audioscrobbler.net/data/webservices/">audioscrobbler web services</a> i&#8217;ve created a very basic last.fm loved tracks feed which. The main reason for doing so was to update twitter with my loved tracks via <a href="http://www.twitterfeed.com">twitterfeed</a>. The feed can be called with the following syntax:</p>
<p>http://jamazon.co.uk/last.love/user/<strong>[last.fm username]</strong>/feeds/<strong>[feed type (rss|atom|opml)]</strong></p>
<p>It&#8217;ll work with any valid last.fm username.</p>
<p>Here&#8217;s mine:</p>
<p><a href="http://jamazon.co.uk/last.love/user/jamiethompson/feeds/rss">http://jamazon.co.uk/last.love/user/jamiethompson/feeds/rss</a></p>
<p>* last.fm now provide an official RSS feed of loved tracks. If you somehow missed the massive notice at the top of this page, scroll back up and read it.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamiethompson.co.uk/web/2008/06/30/lastfm-loved-tracks-rss-feed/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Tips for Using JQuery with ASP.NET Ajax</title>
		<link>http://jamiethompson.co.uk/web/2008/06/09/tips-for-using-jquery-with-aspnet-ajax/</link>
		<comments>http://jamiethompson.co.uk/web/2008/06/09/tips-for-using-jquery-with-aspnet-ajax/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 08:21:20 +0000</pubDate>
		<dc:creator>Jamie Thompson</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://jamazon.co.uk/?p=78</guid>
		<description><![CDATA[Dave Ward has put together an excellent and extensive post on his experiences integrating jQuery with ASP.NET
There are the usual number of pitfalls you&#8217;d expect when integrating [insert widely-used microsoft technology here] with [insert useful open source technology here]
Want to consume a JSON Web Service with jQuery? Sounds simple. That&#8217;s kinda the point of JSON [...]]]></description>
			<content:encoded><![CDATA[<p>Dave Ward has put together an <a href="http://encosia.com/2008/06/05/3-mistakes-to-avoid-when-using-jquery-with-aspnet-ajax/">excellent and extensive post</a> on his experiences integrating jQuery with ASP.NET</p>
<p>There are the usual number of pitfalls you&#8217;d expect when integrating <em>[insert widely-used microsoft technology here]</em> with <em>[insert useful open source technology here]</em></p>
<p>Want to consume a JSON Web Service with jQuery? Sounds simple. That&#8217;s kinda the point of JSON right? Well yeah, but no. Everything&#8217;s workaroundable and to be fair it isn&#8217;t all Microsoft&#8217;s fault&#8230; ok so most of it is.</p>
<p>I&#8217;m gonna be starting a large scale ASP.NET / jQuery / ExtJS project in the very near future and Dave&#8217;s short guide has probably just saved me several hours if not a whole day of figuring out all the lumps and bumps myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamiethompson.co.uk/web/2008/06/09/tips-for-using-jquery-with-aspnet-ajax/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>imagettfbbox() Could not find/open font</title>
		<link>http://jamiethompson.co.uk/web/2008/06/04/imagettfbbox-could-not-findopen-font/</link>
		<comments>http://jamiethompson.co.uk/web/2008/06/04/imagettfbbox-could-not-findopen-font/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 23:51:41 +0000</pubDate>
		<dc:creator>Jamie Thompson</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jamazon.co.uk/?p=76</guid>
		<description><![CDATA[This evening I noticed a problem with the script which generates the image headings for this site. It had stopped working. I hadn&#8217;t noticed until now because the process caches all previously generated images and as such it hadn&#8217;t actually run for a while.
The error
imagettfbbox() [function.imagettfbbox]: Could not find/open font
The specified font file existed and [...]]]></description>
			<content:encoded><![CDATA[<p>This evening I noticed a problem with the script which generates the image headings for this site. It had stopped working. I hadn&#8217;t noticed until now because the process caches all previously generated images and as such it hadn&#8217;t actually run for a while.</p>
<h2>The error</h2>
<p><strong>imagettfbbox() [function.imagettfbbox]: Could not find/open font</strong></p>
<p>The specified font file existed and was readable. I was in fact testing for this eventuality using is_readable() prior to the the imagettfbbox call. After some poking around and a bit of googling I narrowed the problem down to a bug.. or feature in PHP > 4.3.0</p>
<h2>The solution</h2>
<p>It&#8217;s a simple fix, but what worked for me was to pass imagettfbbox an absolute path to the font. This is with PHP 5.2.0. I&#8217;ve read of this working for lots of people using various versions of PHP from 4.3.0 onwards, but it also seems that this isn&#8217;t always the solution, so your mileage may vary. As usual, it probably depends on a magic combination of seven million random compile flags.</p>
<p>So to sum up. Using imagettfbbox with relative font paths in PHP >= 4.3.0 may result in an error. A solution seems to be to use absolute paths. If this isn&#8217;t the issue, it could be spaces in the filename? Your really shouldn&#8217;t put spaces in filenames, what are you a windows user?</p>
<p>Official bug report here: <a href="http://bugs.php.net/bug.php?id=22092">http://bugs.php.net/bug.php?id=22092</a></p>
<p><em>Sometimes* PHP just sucks</em></p>
<p>* all the time</p>
]]></content:encoded>
			<wfw:commentRss>http://jamiethompson.co.uk/web/2008/06/04/imagettfbbox-could-not-findopen-font/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>jQuery &#8220;Access Keys&#8221; Plugin Beta 1</title>
		<link>http://jamiethompson.co.uk/web/2008/03/13/jquery-accessibility-plugin/</link>
		<comments>http://jamiethompson.co.uk/web/2008/03/13/jquery-accessibility-plugin/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 12:32:47 +0000</pubDate>
		<dc:creator>Jamie Thompson</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://jamazon.co.uk/jquery/2008/03/13/jquery-accessibility-plugin/</guid>
		<description><![CDATA[
Today I completed the first Beta of an Access Keys jQuery Plugin. The basic premise is that it allows you to have access keys automatically assigned to a selection of anchors. Each corresponding anchor will be assigned an access key corresponding to the first available letter not assigned to another anchor of it&#8217;s innerHTML. The [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://s322999261.websitehome.co.uk/wp-content/uploads/2008/03/any-key-150x150.jpg' alt='any key' align='right' /><br />
Today I completed the first Beta of an Access Keys jQuery Plugin. The basic premise is that it allows you to have access keys automatically assigned to a selection of anchors. Each corresponding anchor will be assigned an access key corresponding to the first available letter not assigned to another anchor of it&#8217;s innerHTML. The first occurrence of that letter within the anchor is subsequently underlined.<br />
The source can be found here <a href="/files/js/jquery.accesskeys.js">jquery.accesskeys.js</a></p>
<h2>Prerequisites:</h2>
<p>jQuery (obviously!) &#8211; grab yourself a fresh copy from <a href="http://code.jquery.com/jquery-latest.js">http://code.jquery.com/jquery-latest.js</a></p>
<h2>Usage:</h2>
<p><code>$(document).ready(function{<br />
    $('#navigation a').accesskeys();<br />
});<br />
</code></p>
<p>Based on an original idea by Lyall Oldfield</p>
]]></content:encoded>
			<wfw:commentRss>http://jamiethompson.co.uk/web/2008/03/13/jquery-accessibility-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

