<?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>Craig Russell Web n That &#187; WebApps</title>
	<atom:link href="http://www.craig-russell.co.uk/category/webapps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.craig-russell.co.uk</link>
	<description>Web developement, identity management, federated access, web tech, geekery and the odd bit of paper folding</description>
	<lastBuildDate>Fri, 27 Jan 2012 21:57:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Refresh Manifest Cache Without .htaccess</title>
		<link>http://www.craig-russell.co.uk/refresh-manifest-cache-without-htaccess/</link>
		<comments>http://www.craig-russell.co.uk/refresh-manifest-cache-without-htaccess/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 14:50:38 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=684</guid>
		<description><![CDATA[Manifest caching is one of the lovely new features of HTML5. It allows you to define a list of files to be cached for off-line access (among other nice features). One of the points to consider when making changes to cached files, is that the browser won&#8217;t know to download the modified file without being&#8230;]]></description>
			<content:encoded><![CDATA[<p>Manifest caching is one of the <a href="http://www.w3.org/TR/offline-webapps/">lovely new features of HTML5</a>. It allows you to define a list of files to be cached for off-line access (among other nice features).</p>
<p>One of the points to consider when making changes to cached files, is that the browser won&#8217;t know to download the modified file without being prompted to re-fetch the manifest file.</p>
<p><a href="http://html5doctor.com/go-offline-with-application-cache/#trigger-refresh">A common workaround</a> is to make some change to the manifest file to force an update, typically using a version number. This works fine in most instances, but Firefox stubbornly ignores this. The usual workaround for Firefox is to set the manifest file to expire by using the following rule in the .htaccess file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>IfModule mod_expires.c<span style="color: #000000; font-weight: bold;">&gt;</span>
ExpiresActive On
ExpiresByType text<span style="color: #000000; font-weight: bold;">/</span>cache-manifest <span style="color: #ff0000;">&quot;access plus 0 seconds&quot;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>While this works, it&#8217;s not much good if your&#8217;re not using Apache, or if your host has blocked .htaccess usage.</p>
<p>However, you can achieve the same effect by setting the HTTP headers in PHP. Put the following lines in to top of your manifest file, and change the extension to <code>.php</code>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: text/cache-manifest&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Cache-Control: no-cache, must-revalidate&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Expires: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span>DATE_RFC1123<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>The first line sets the content type to text/cache-manifest, this is a requirement for manifest caching to function. The second tells the browser not to cache the file. And in case the browser ignores that, the third line expires the file immediately.</p>
<p>Now the browser will keep the manifest cache up-to-date, but still cache the files you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/refresh-manifest-cache-without-htaccess/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rapportive and a New GitHub Project</title>
		<link>http://www.craig-russell.co.uk/rapporative-and-a-new-github-project/</link>
		<comments>http://www.craig-russell.co.uk/rapporative-and-a-new-github-project/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 16:00:23 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=670</guid>
		<description><![CDATA[Thanks to this post on Think Vitamin, I&#8217;ve today discovered Rapportive. Rapportive is a browser plugin for Firefox, Safari, Chrome and Mailplane, which displays social network information for your mail contacts. That in itself is alright, but the juicy part is the API. You can write your own &#8220;raplets&#8221; to pull contact data from any&#8230;]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://thinkvitamin.com/web-apps/4-ways-to-improve-your-customer-service/">this post on Think Vitamin</a>, I&#8217;ve today discovered <a href="http://rapportive.com/">Rapportive</a>. Rapportive is a browser plugin for Firefox, Safari, Chrome and Mailplane, which displays social network information for your mail contacts. That in itself is alright, but the juicy part is the API. You can write your own &#8220;raplets&#8221; to pull contact data from any data source and display it in GMail. Rapplets are intended to be self hosted, so you&#8217;ll need access to a web server to roll you own.</p>
<p>I&#8217;ve written a raplet which displays data from an LDAP directory next to a message thread in GMail. The records are matched against the email address (mail attribute). The data that is returned is easily configurable at the top of the script. </p>
<p>You can get <a href="https://github.com/craig552uk/LDAP-Raplet">hold of the file on gitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/rapporative-and-a-new-github-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How I Manage My Social Media</title>
		<link>http://www.craig-russell.co.uk/how-i-manage-my-social-media/</link>
		<comments>http://www.craig-russell.co.uk/how-i-manage-my-social-media/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 10:32:05 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=589</guid>
		<description><![CDATA[The Internet is awesome, no doubt, but it can be a challenge to keep track of all the information that&#8217;s flapping about these days. I&#8217;ve tried various techniques and technologies to help me manage the various streams of information that I like to keep an eye on. I thought I&#8217;d share how I go about&#8230;]]></description>
			<content:encoded><![CDATA[<p>The Internet is awesome, no doubt, but it can be a challenge to keep track of all the information that&#8217;s flapping about these days. I&#8217;ve tried various techniques and technologies to help me manage the various streams of information that I like to keep an eye on. I thought I&#8217;d share how I go about it.<span id="more-589"></span></p>
<h3>Google Reader</h3>
<p>I keep an eye on a lot of blogs, mostly design/science/art focussed. Typically I&#8217;ve got about 100 feeds in my feed reader, but I&#8217;ve had a bit of a purge recently, and chopped it down to about 30. I use <a href="http://www.google.com/reader/">Google Reader</a> to keep track of them all, sorted in to various tagged groups (Graphics, Science, Paper Craft, Comics etc..).</p>
<p>I tend to read through one group at a time, toggling the Expanded or List views depending on which group I&#8217;m reading. Expanded view is best for the graphics feeds making it easy to quickly scan through the images, picking out interesting pics. I prefer List view for text articles where I tend just to scan the headlines.</p>
<h3>Tumblr</h3>
<p>For a while I used to keep a photo album as a scrapbook of various images from magazines and what-not. As I tend to browse more articles online than off these days the photo album has become a bit redundant. For a while I kept printing off images and sticking them in, but this process was too cumbersome to keep up with.</p>
<p>Now I use <a href="http://www.tumblr.com/">Tumblr</a> as my scrapbook, combined with a Firefox plugin and an Android app, I can quickly and easily add inspiring images to my collection.</p>
<p>In Firefox I use the <a href="https://addons.mozilla.org/en-US/firefox/addon/5867/">Tumblr Post plugin</a>. With this I simply right click an image and select &#8216;Post photo to my Tumblelog&#8217;. <span style="text-decoration: line-through;">I copy and paste the page link (for reference) in to the comment field and hit upload</span>.  <strong>Update:</strong> There&#8217;s actually a plugin setting that sets the image link to the page URL, no copy and paste needed! Easy as.</p>
<p>On my mobile phone (<a href="http://www.htc.com/www/product/hero/overview.html">HTC Hero</a> running <a href="http://www.android.com">Android</a>) I have the <a href="http://asukatumblr.tumblr.com/">Asuka Tumblr app</a>, which allows me to send any image on my phone straight up to Tumblr. I can use this to take photos of things I see and stick them straight in to my scrapbook.</p>
<h3>Twitter</h3>
<p>I love Twitter. It&#8217;s awesome. However, managing followees and keeping an eye on conversations takes a bit of work. <a href="http://support.twitter.com/articles/76460-how-to-use-twitter-lists">Lists</a> and <a href="http://support.twitter.com/groups/31-twitter-basics/topics/110-search/articles/96646-how-to-save-searches">Saved Searches</a> are the answer. I&#8217;ve got a <a href="http://twitter.com/craig552uk/lists">number of lists</a> grouping the different people I follow, and I <a href="http://dictionary.reference.com/browse/take+a+gander+at">take a gander at</a> each on a semi-regular basis.</p>
<p>I&#8217;ve also set a few custom searches for words and phrases I&#8217;m interested in. Twitter search accepts logical search constructs, so I can search for <code>"paper engineer" AND "paper engineering"</code> in one go. This is a good way to find other people talking about things I like to talk about.</p>
<p>Incidentally, I&#8217;ve tried, but not really got on with any of these <a href="http://en.wikipedia.org/wiki/Social_network_aggregation">social network aggregation</a> programs, I&#8217;m much happier with the good old Twitter site itself.</p>
<p><a href="http://www.twitter.com/craig552uk">Follow me on Twitter</a><br />
<a href="http://craig552uk.tumblr.com">Check out my Tumblr Scrapbook</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/how-i-manage-my-social-media/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Android App Inventor</title>
		<link>http://www.craig-russell.co.uk/android-app-inventor/</link>
		<comments>http://www.craig-russell.co.uk/android-app-inventor/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 10:44:21 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=518</guid>
		<description><![CDATA[Google have launched a handy tool for building Android Apps without requiring any programming knowledge. It&#8217;s called App Inventor and is built upon the Open Blocks platform. With it you can create mobile apps simply by dragging and dropping program &#8216;blocks&#8217; in to place, similar to Lego Mindstorms. The video makes it look pretty simple&#8230;]]></description>
			<content:encoded><![CDATA[<p>Google have launched a handy tool for building Android Apps without requiring any programming knowledge. It&#8217;s called <a href="http://appinventor.googlelabs.com/about/">App Inventor</a> and is built upon the <a href="http://dspace.mit.edu/handle/1721.1/41550">Open Blocks</a> platform. With it you can create mobile apps simply by dragging and dropping program &#8216;blocks&#8217; in to place, similar to Lego Mindstorms. The video makes it look pretty simple.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="306" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/8ADwPLSFeY8&amp;hl=en_GB&amp;fs=1?rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="306" src="http://www.youtube.com/v/8ADwPLSFeY8&amp;hl=en_GB&amp;fs=1?rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>I wouldn&#8217;t expect that apps made using App Inventor would be better (faster, more efficient) than their hand-coded equivalents, but I can see that this would be useful for quickly knocking up a demo or for scratching out ideas. It&#8217;s clear from the blabber that Google aren&#8217;t trying to put developers out of work, this is aimed squarely at educators as a platform to teach about programming concepts. A good thing in my books.</p>
<p>Google will be granting access to App Inventor over the coming weeks, you need to <a href="https://services.google.com/fb/forms/appinventorinterest/">register</a> to get an invite.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/android-app-inventor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Website Design</title>
		<link>http://www.craig-russell.co.uk/new-website-design/</link>
		<comments>http://www.craig-russell.co.uk/new-website-design/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 09:18:23 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Comment]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=514</guid>
		<description><![CDATA[The recent release of WordPress 3.0 has prompted my to go for an overhaul of this site, making use of some of the jazzy new features in this latest version. Custom Post Types The introduction of custom post types is a feature that many WP users have been waiting for for a while, now it&#8230;]]></description>
			<content:encoded><![CDATA[<p>The recent release of WordPress 3.0 has prompted my to go for an overhaul of this site, making use of some of the jazzy new features in this latest version.</p>
<h3>Custom Post Types</h3>
<p>The introduction of custom post types is a feature that many WP users have been waiting for for a while, now it is here it is awesome. I&#8217;ve created a custom post type (&#8216;papertoy&#8217;), and <a href="http://kovshenin.com/archives/extending-custom-post-types-in-wordpress-3-0/">extended it with custom meta fields</a>, to make managing my paper toys far easier than before. I may write a post with more detail on this some time.</p>
<h3>Editable Menu</h3>
<p>WP 3 allows menus to be managed in a wonderful interface in the admin console. Posts, pages, categories, etc, can all be dragged and dropped around to create a menu hierarchy. And it is <a href="http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus">incredibly easy to code</a> in to a theme.</p>
<h3>Widgets</h3>
<p>Ok, these aren&#8217;t new. But as of WP2.8 there has been a <a href="http://codex.wordpress.org/Widgets_API#Developing_Widgets_on_2.8.2B">new widgets API</a>, which makes the creation of widgets a billion times easier than it was before. I&#8217;ve created two widgets for this new theme; one with links to my social network accounts, and another to display my latest paper toys.</p>
<p>The paper toys widget basically pulls an image (stored in a meta field) from each of my &#8216;papertoy&#8217; posts and displays it with a link to the page itself.If you&#8217;re planning on doing something similar yourself, you may to check out <a href="http://www.craig-russell.co.uk/wordpress-loop-in-a-widget/">this problem (and fix) </a>when using the WP loop with the new widgets API.</p>
<p>The social networks widget is pretty simple, I may publish it in the future, but right now I&#8217;ve got<a href="http://www.craig-russell.co.uk/msc-project-a-go-go/"> other things going on</a>. Oh, the icons I used are from <a href="http://www.komodomedia.com/blog/2009/06/social-network-icon-pack/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/new-website-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Loop in a Widget</title>
		<link>http://www.craig-russell.co.uk/wordpress-loop-in-a-widget/</link>
		<comments>http://www.craig-russell.co.uk/wordpress-loop-in-a-widget/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 14:33:36 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=502</guid>
		<description><![CDATA[When I was writing a WordPress widget plugin to display information from a sub set of my posts (that&#8217;s it on the side, with the paper toys&#8230;) I noticed that the WordPress Loop doesn&#8217;t quite behave itself when widgetized in the 2.8+ style. When using the following code, inside a widget, to return posts from&#8230;]]></description>
			<content:encoded><![CDATA[<p>When I was writing a WordPress widget plugin to display information from a sub set of my posts (that&#8217;s it on the side, with the paper toys&#8230;) I noticed that the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a> doesn&#8217;t quite behave itself when widgetized in the <a href="http://codex.wordpress.org/Widgets_API#Developing_Widgets_on_2.8.2B">2.8+ style</a>.</p>
<p>When using the following code, inside a widget, to return posts from a custom query, you&#8217;ll find that the post title and perma-link are returned, but the post ID is not.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$loop</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$loop</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$loop</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' : @; the_title(); ?&gt;</span>&lt;/a&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Adding a global call to the $post variable at the top of the loop fixes this issue.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$loop</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$loop</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$loop</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' : @; the_title(); ?&gt;</span>&lt;/a&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/wordpress-loop-in-a-widget/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change is Coming… Syntax Highlighted Change</title>
		<link>http://www.craig-russell.co.uk/change-is-coming-syntax-highlighted-change/</link>
		<comments>http://www.craig-russell.co.uk/change-is-coming-syntax-highlighted-change/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 15:57:31 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Comment]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=461</guid>
		<description><![CDATA[After the recent release of WordPress 3.0, I&#8217;ve decided to redesign my site taking in to account some of the fantastic new features it has to offer (more on that in a future post). But while I was hunting around for bits and bobs I found out about the marvellous syntax highlighter project, which allows&#8230;]]></description>
			<content:encoded><![CDATA[<p>After the recent release of <a href="http://wordpress.org/">WordPress 3.0</a>, I&#8217;ve decided to redesign my site taking in to account some of the <a href="http://codex.wordpress.org/Version_3.0">fantastic new features</a> it has to offer (more on that in a future post). But while I was hunting around for bits and bobs I found out about the <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">marvellous syntax highlighter project</a>, which allows me to do funky crap like this&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> LINE; <span style="color: #000000; font-weight: bold;">do</span>
   <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$LINE</span>
<span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt; <span style="color: #007800;">$0</span></pre></td></tr></table></div>

<p>Rather handily the highlighter script has been <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/">wrapped in to widget</a> (several actually) for easily jamming in to WordPress.</p>
<p>Laters!</p>
<p>P.S. That script is my attempt at a <a href="http://en.wikipedia.org/wiki/Quine_%28computing%29">Quine</a>, a cheat I know, but it was the first code sample that jumped in to my head while I was writing.</p>
<p><strong>EDIT</strong> <em>April 2011</em>: <a href="http://www.craig-russell.co.uk/new-site-design/">I&#8217;m now using a different plugin for syntax highlighting</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/change-is-coming-syntax-highlighted-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Politics and Chips</title>
		<link>http://www.craig-russell.co.uk/politics-and-chips/</link>
		<comments>http://www.craig-russell.co.uk/politics-and-chips/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 15:44:46 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=132</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p class="alignc"><a href="http://www.craig-russell.co.uk/wp-content/uploads/2008/10/tweet.jpg"><img class="alignnone size-full wp-image-133" title="tweet" src="http://www.craig-russell.co.uk/wp-content/uploads/2008/10/tweet.jpg" alt="" width="500" height="595" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/politics-and-chips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Incredible Brain Scan Images</title>
		<link>http://www.craig-russell.co.uk/incredible-brain-scan-images/</link>
		<comments>http://www.craig-russell.co.uk/incredible-brain-scan-images/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 08:28:28 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Psychology]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.craig-russell.co.uk/?p=108</guid>
		<description><![CDATA[These incredible images have been captured by a brain acanning technique called DTI (Diffusion Tensor Imaging). Essentially DTI uses an MRI scan to track the flow of water in nerve cells, these images here show the white matter connecting the grey matter in a schitzophrenic&#8217;s brain. Link to Paper Also, the paper is hosted on&#8230;]]></description>
			<content:encoded><![CDATA[<p class="alignc"><a href="http://www.craig-russell.co.uk/wp-content/uploads/2008/10/dtiscan.jpg"><img class="aligncenter size-medium wp-image-105" title="dtiscan" src="http://www.craig-russell.co.uk/wp-content/uploads/2008/10/dtiscan-300x124.jpg" alt="" width="450" height="182" /></a></p>
<p>These incredible images have been captured by a brain acanning technique called DTI (Diffusion Tensor Imaging). Essentially DTI uses an MRI scan to track the flow of water in nerve cells, these images here show the white matter connecting the grey matter in a schitzophrenic&#8217;s brain.</p>
<p><a href="http://www.scribd.com/doc/6455061/A-review-of-diffusion-tensor-imaging-studies-in-schizophrenia">Link to Paper</a></p>
<p>Also, the paper is hosted on Scribd, a site which allows free access academic papers. I&#8217;m going to have to check this one out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craig-russell.co.uk/incredible-brain-scan-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

