<?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>Rob Lewis &#187; WorkBench</title>
	<atom:link href="http://wv4.co.uk/category/workbench/feed/" rel="self" type="application/rss+xml" />
	<link>http://wv4.co.uk</link>
	<description>My world on the web</description>
	<lastBuildDate>Mon, 02 Jun 2008 21:40:32 +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>Google Maps Bookmarklets</title>
		<link>http://wv4.co.uk/41/google-maps-bookmarklets/</link>
		<comments>http://wv4.co.uk/41/google-maps-bookmarklets/#comments</comments>
		<pubDate>Thu, 28 Apr 2005 15:08:47 +0000</pubDate>
		<dc:creator>Rob Lewis</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[WorkBench]]></category>

		<guid isPermaLink="false">http://wv4.co.uk/workbench/google-maps-bookmarklets/</guid>
		<description><![CDATA[Since the recent release of Google Maps in the UK, I&#8217;ve been having a play around to see what can be done. 
I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Since the recent release of <a href="http://maps.google.co.uk/">Google Maps in the UK</a>, I&#8217;ve been having a play around to see what can be done. </p>
<p>I&#8217;ve always been a big fan of <a href="http://www.multimap.co.uk">MultiMap</a>, but I think with the expertise (not to mention money) of Google now competing against them, I think they&#8217;re going to find the mapping market a lot more crowded.</p>
<p>I&#8217;ve put together a couple of very simple <a href="http://en.wikipedia.org/wiki/Bookmarklet" title="Link to Wikipedia entry for 'bookmarklets'">bookmarklets</a> to query Google maps: the first simply gives the map of a location based on the input (it probably works best with post codes, but you can try town names too).</p>
<p>The second uses Google&#8217;s direction finder to show a possible route between 2 locations. Again, entering post codes is probably the best way to do it, but I also noticed in testing that town names, or road names plus a town name may work too (actually, in one of my first tests I accidentally created &#8216;null&#8217; as an input value, which was translated into Null Road in East Yorkshire; I suspect from the location of the road that it should actually be Hull Road, but I digress).</p>
<p>I wouldn&#8217;t know whether the routes chosen are the quickest, best, most scenic etc. &#8211; for that sort of information you&#8217;ll have to ask my dad ;)</p>
<p>You can try these bookmarklets out by clicking the links, and if you want to keep them for later use, drag the links into your favourites/bookmarks.</p>
<ul>
<li><a href="javascript:void(q=prompt('Postcode:',''));if(q)location.href='http://maps.google.co.uk/maps?q='+escape(q)">Show location on Google Maps</a></li>
<li><a href="javascript:void(saddr=prompt('Going from:',''),daddr=prompt('Going to:',''));if(daddr)location.href='http://maps.google.co.uk/maps?saddr='+escape(saddr)+'&#038;daddr='+escape(daddr)">Get directions on Google Maps</a></li>
</ul>
<p>There&#8217;s a few more ideas I&#8217;ve had that could be possible with both Google Maps and bookmarklets (with a bit of geo-tagging thrown in). I&#8217;ll post them up here when I&#8217;ve had chance to think them through and try a few things out, that&#8217;s if no-one has beat me to it in the meantime.</p>
<div class="update">
  The following simple cut-n-paste code was found at <a href="http://www.malevolent.com/weblog/archive/2005/05/01/add-google-maps/" title="Link to Malevolent Design">Malevolent Design</a> (via <a href="http://google.weblogsinc.com/entry/1234000910043137/">The Unofficial Google Weblog</a>) to add a form to your site for directions from the users location to your specified [destination]:</p>
<ol class="code">
<li><code>&lt;form action="http://maps.google.co.uk/maps" method="get"&gt;</code></li>
<li class="tab1"><code>&lt;label for="saddr"&gt;Your postcode&lt;/label&gt;</code></li>
<li class="tab1"><code>&lt;input type="text" name="saddr" id="saddr" value="" /&gt;;</code></li>
<li class="tab1"><code>&lt;input type="submit" value="Go" /&gt;</code></li>
<li class="tab1"><code>&lt;input type="hidden" name="daddr" value="[destination]" /&gt;</code></li>
<li class="tab1"><code>&lt;input type="hidden" name="hl" value="en" /&gt;</code></li>
<li><code>&lt;form&gt;</code></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://wv4.co.uk/41/google-maps-bookmarklets/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Large First Character With CSS</title>
		<link>http://wv4.co.uk/9/large-first-character-with-css/</link>
		<comments>http://wv4.co.uk/9/large-first-character-with-css/#comments</comments>
		<pubDate>Sun, 20 Mar 2005 17:01:09 +0000</pubDate>
		<dc:creator>Rob Lewis</dc:creator>
				<category><![CDATA[WorkBench]]></category>

		<guid isPermaLink="false">http://wv4.co.uk/wordpress/workbench/large-first-character-with-css/</guid>
		<description><![CDATA[Style a large first character in a paragraph with CSS. ]]></description>
			<content:encoded><![CDATA[<h4>In brief:</h4>
<p>Use CSS to style a large first character in a paragraph. An old typography effect.</p>
<h4>The Code</h4>
<div class="update">
<h4>Update</h4>
<p>Although I had suspected it might be the case, but I had neglected to investigate, it is in fact possible to use the CSS pseudo-selector &#8220;first-letter&#8221; to apply a style to the first character, despensing with the need for a &lt;span&gt;. As this is CSS1.0, the browser compatibility of this is pretty widespread (personally tested in Forefox/Win, IE6.0/Win and Opera/Win).</p>
<p><strong>CSS Updated</strong></p>
<p><a href="/code/large-first-character-with-css-updated.txt">CSS Code example</a></p>
<p><strong>HTML</strong><br />
<a href="/code/large-first-character-with-css-html-updated.txt">HTML Code example</a>
</div>
<p><strong>The old method</strong></p>
<p><strong>CSS</strong></p>
<p><a href="/code/large-first-character-with-css.txt">CSS Code example</a></p>
<p><strong>HTML</strong></p>
<p><a href="/code/large-first-character-with-css-html.txt">HTML Code example</a></p>
<p>I&#8217;ve never been a big fan of using &lt;span&gt; tags, but for the moment I think this is the only way to achieve this effect.</p>
<p><strong>PHP</strong></p>
<p>For the record, here is the PHP function I use to add the span to a string:<br />
<a href="/code/large-first-character-with-css-php.txt">PHP Code example</a></p>
<h4>The Result</h4>
<p>I&#8217;ve had a redesign, so my old page headings which featured this effect are now gone. I&#8217;ll post up another example when I get chance, although if you have a play with the code snippets above you should be able to get it to work anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://wv4.co.uk/9/large-first-character-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Map</title>
		<link>http://wv4.co.uk/8/css-map/</link>
		<comments>http://wv4.co.uk/8/css-map/#comments</comments>
		<pubDate>Sun, 20 Mar 2005 16:35:39 +0000</pubDate>
		<dc:creator>Rob Lewis</dc:creator>
				<category><![CDATA[WorkBench]]></category>

		<guid isPermaLink="false">http://wv4.co.uk/wordpress/workbench/css-map/</guid>
		<description><![CDATA[Use CSS to produce a clickable world map (broken up by continent), which is semantic and degrades gracefully in browsers without CSS support.]]></description>
			<content:encoded><![CDATA[<h3>In brief:</h3>
<p>Produce an accessible, clickable, world map, broken up into continents. (Original idea for <a href="http://the-beat.co.uk/">The Beat</a>), that would degrade gracefully in browsers without CSS support.</p>
<h3>The Process:</h3>
<p>The code pretty much speaks for itself, so here are the component parts:</p>
<p><strong>The Graphic</strong></p>
<p><img src="/home/images/css-globe.png" alt="" /></p>
<p><strong>CSS</strong><br />
<a href="/code/css-map-css.txt">CSS Code example</a></p>
<p><strong>HTML</strong><br />
<a href="/code/css-map-html.txt">HTML Code Example</a></p>
<h3>The Result:</h3>
<p><a href="/code/css-worldmap.php">View the CSS map</a>.</p>
<p>This particular example also includes a CSS rollover to show the continent names.</p>
<h3>The Prologue:</h3>
<ul>
<li>A similar project, recently published on <a href="http://www.maxdesign.com" title="Visit the home page of MaxDesign">MaxDesign</a>: <a href="http://www.maxdesign.com.au/presentation/remote/" title="View Remote Control CSS on MaxDesign">Remote Control CSS</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://wv4.co.uk/8/css-map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create PHP Thumbnails On The Fly</title>
		<link>http://wv4.co.uk/7/create-php-thumbnails-on-the-fly/</link>
		<comments>http://wv4.co.uk/7/create-php-thumbnails-on-the-fly/#comments</comments>
		<pubDate>Sun, 20 Mar 2005 15:37:10 +0000</pubDate>
		<dc:creator>Rob Lewis</dc:creator>
				<category><![CDATA[WorkBench]]></category>

		<guid isPermaLink="false">http://wv4.co.uk/wordpress/workbench/create-php-thumbnails-on-the-fly/</guid>
		<description><![CDATA[A method for creating photo thumbnails on-the-fly with a bit of PHP, the GD Library, and code nicked from a variety of sources.]]></description>
			<content:encoded><![CDATA[<h4>In brief:</h4>
<p>The web is great for displaying photos to family and friends, but producing web-friendly photos with thumbnails can be a real chore. I wanted to produce a script which would create a thumbnail image from a full size photo.</p>
<h4>The Process:</h4>
<p>For this to work, the <a href="http://www.boutell.com/gd">GD library</a> is needed.</p>
<p><a href="/code/create-php-thumbnails-on-the-fly.txt">PHP Code example</a></p>
<p>I make no claims as to the code above being my own work &#8211; it is a bastardisation of various snippets found around the web, particularly the <a title="Visit the official PHP website" href="http://www.php.net">official PHP site</a>.</p>
<p>If you would like help in implementing this, please leave a comment below.</p>
<h4>The Prologue:</h4>
<ul>
<li>Requires GD to be installed on server.</li>
<li>High load on server?</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://wv4.co.uk/7/create-php-thumbnails-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
