<?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"
	>

<channel>
	<title>Five and Lime &#187; Web Services</title>
	<atom:link href="http://www.fiveandlime.com/journal/category/web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fiveandlime.com</link>
	<description>Personal web site of Keir Whitaker, Carsonite and Web Tinkerer</description>
	<pubDate>Sat, 23 Aug 2008 13:00:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Magnolia screenshot changes</title>
		<link>http://www.fiveandlime.com/journal/2008/02/10/magnolia-screenshot-changes/</link>
		<comments>http://www.fiveandlime.com/journal/2008/02/10/magnolia-screenshot-changes/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 08:16:45 +0000</pubDate>
		<dc:creator>Keir Whitaker</dc:creator>
		
		<category><![CDATA[Web Services]]></category>

		<category><![CDATA[magnolia]]></category>

		<guid isPermaLink="false">http://www.fiveandlime.com/journal/2008/02/10/magnolia-screenshot-changes/</guid>
		<description><![CDATA[Firing up this web site yesterday I noticed that the screenshots supplied by the ma.gnolia.com bookmark JSON feed had grown in size. After having a look at the actual feed nothing appeared to have changed. However closer inspection revealed that the supplied thumbnail URL had an additional &#8220;/160&#8243; at the end which as it turns [...]]]></description>
			<content:encoded><![CDATA[<p>Firing up this web site yesterday I noticed that the screenshots supplied by the <a href="http://ma.gnolia.com" title="Magnolia">ma.gnolia.com</a> bookmark JSON feed had grown in size. After having a look at the actual feed nothing appeared to have changed. However closer inspection revealed that the supplied thumbnail URL had an additional &#8220;/160&#8243; at the end which as it turns out is the width in pixels of the now default screenshot.<br />
<span id="more-16"></span></p>
<h4>The URL&#8217;s</h4>
<ul>
<li><strong>New JSON thumbnail link:</strong> <a href="http://ma.gnolia.com/bookmarks/xezizop/thumbnail/160/" title="Thumbnail link 160px wide">http://ma.gnolia.com/bookmarks/xezizop/thumbnail/160/</a></li>
<li><strong>Desired and previous JSON thumbnail link:</strong> <a href="http://ma.gnolia.com/bookmarks/xezizop/thumbnail/" title="Thumbnail link 100px wide">http://ma.gnolia.com/bookmarks/xezizop/thumbnail/</a></li>
</ul>
<p>As the feed supplies the URL I figured the easiest way to change it was in the JavaScript callback function. Using the replace function this was pretty straightforward. In the loop I use to buildup the image and description links I added the following</p>
<p><code>thumbnail = magnolias[i].thumbnail.replace(&#8217;160&#8242;,&#8221;);</code></p>
<p>Replacing the 160 with an empty string reverts the URL back to the smaller version. I had a quick look on the magnolia web site but couldn&#8217;t find any reference to the change. If anyone knows where these things are published do let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fiveandlime.com/journal/2008/02/10/magnolia-screenshot-changes/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
