<?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>Techie Turmoil</title>
	<atom:link href="http://techieturmoil.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://techieturmoil.co.uk</link>
	<description>A techie in a world of luddites</description>
	<lastBuildDate>Tue, 13 Sep 2011 17:17:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Montpellier Gardens</title>
		<link>http://techieturmoil.co.uk/2011/09/13/montpellier-gardens/</link>
		<comments>http://techieturmoil.co.uk/2011/09/13/montpellier-gardens/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 17:17:46 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Photo Diary]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/2011/09/13/montpellier-gardens/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://techieturmoil.co.uk/wp-content/uploads/2011/09/wpid-IMAG0241.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2011/09/13/montpellier-gardens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canon iP1900 driver</title>
		<link>http://techieturmoil.co.uk/2011/04/02/canon-ip1900-driver/</link>
		<comments>http://techieturmoil.co.uk/2011/04/02/canon-ip1900-driver/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 10:32:08 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Techie Notes]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/?p=130</guid>
		<description><![CDATA[Canon provide a Debian package for this printer, which is great. Unfortunately it will not install on recent distributions of Debian or Ubuntu, as it depends on old-school libcupsys2. I&#8217;ve repackaged them to adjust the dependency. Here is the modified version.]]></description>
			<content:encoded><![CDATA[<p>Canon provide a Debian package for this printer, which is great. Unfortunately it will not install on recent distributions of Debian or Ubuntu, as it depends on old-school libcupsys2. I&#8217;ve repackaged them to adjust the dependency. <a title="Canon iP1900 Printer Driver" href="http://techieturmoil.co.uk/wp-content/uploads/2011/04/iP1900_debian_printer.tar.gz">Here</a> is the modified version.</p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2011/04/02/canon-ip1900-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing those pesky PNGs</title>
		<link>http://techieturmoil.co.uk/2011/03/24/fixing-those-pesky-pngs/</link>
		<comments>http://techieturmoil.co.uk/2011/03/24/fixing-those-pesky-pngs/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 23:53:04 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Techie Notes]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/?p=127</guid>
		<description><![CDATA[I&#8217;ve been struggling with PNG colour matching for a while. It&#8217;s fine on my Linux boxes, with a standard sRGB colour profile, but on Macs and Win/IE with an ICCP in place, the colours never match up with the CSS colours. This is always frustrating, as PNGs are so nice for proper alpha transparency. I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been struggling with PNG colour matching for a while. It&#8217;s fine on my Linux boxes, with a standard sRGB colour profile, but on Macs and Win/IE with an ICCP in place, the colours never match up with the CSS colours. This is always frustrating, as PNGs are so nice for proper alpha transparency.</p>
<p>I just found this handy snippet out there in the ether, to get rid of the gamma and colour profile info from PNGs.</p>
<pre>pngcrush -d outputdir -rem gAMA -rem cHRM -rem iCCP *.png</pre>
<p>pngcrush also optimizes the file and reduces the size, which is nice. Handy little tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2011/03/24/fixing-those-pesky-pngs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx and WordPress with SSL and Queries</title>
		<link>http://techieturmoil.co.uk/2011/03/22/nginx-and-wordpress-with-ssl-and-queries/</link>
		<comments>http://techieturmoil.co.uk/2011/03/22/nginx-and-wordpress-with-ssl-and-queries/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 18:28:55 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Techie Notes]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/?p=125</guid>
		<description><![CDATA[So setting up WordPress on Nginx isn&#8217;t difficult. You could follow the example here. This works fine for just a basic install, but what about something that has a load of plugins, for forms and such like? Here we need to tweak the config a bit. SSL: using SSL with Nginx is not as simple [...]]]></description>
			<content:encoded><![CDATA[<p>So setting up WordPress on Nginx isn&#8217;t difficult. You could follow the example <a title="Nginx WordPress configuration example" href="http://wiki.nginx.org/Wordpress">here</a>. This works fine for just a basic install, but what about something that has a load of plugins, for forms and such like? Here we need to tweak the config a bit.</p>
<p><strong>SSL</strong>: using SSL with Nginx is not as simple as just turning on the HTTPS section from the default/example config file and copying over the location directives from the port 80 section. You need to ensure that the PHP fastcgi knows that HTTPS is on, so add the directive:</p>
<pre>fastcgi_param HTTPS on;</pre>
<p>to your location ~ \.php$ section.</p>
<p><strong>Queries</strong>: if you are using a forms plugin, or something else that sends GET requests, you may find that they don&#8217;t work. Change your default rewrite to:</p>
<pre>try_files $uri $uri/ /index.php?$args;</pre>
<p><strong>Security</strong>: if you are using php5-fpm (you should be!) then it is quite possible to execute remote php files. We don&#8217;t want that! Add this line to your php section:</p>
<pre>try_files $uri = 404;</pre>
<p><strong>Suhosin</strong>: you may want to use the Suhosin patch (I do), but this can cause problems with file uploads (and phpMyAdmin). Add the following to your php.ini:</p>
<pre>suhosin.post.max_array_index_length = 256
suhosin.post.max_totalname_length = 65535
suhosin.post.max_vars = 1024
suhosin.request.max_array_index_length = 256
suhosin.request.max_totalname_length = 65535
suhosin.request.max_vars = 1024</pre>
<p>I added this in /etc/php5/conf.d/suhosin.ini, but you may wish to add it elsewhere.</p>
<p>Nginx + php5-fpm + APC + memcache is a super speedy combination. I use it everywhere now. But it does take a bit of getting used to if you are accustomed to Apache.</p>
<p>Just as an afterthought, the docs for setting up WordPress on Nginx in the <a href="http://codex.wordpress.org/Nginx">codex</a> suggest that unless you use APC and a WordPress caching plugin, you will get no performance benefit over Apache. This is utter drivel. Yes I highly recommend APC &#8211; it&#8217;s great &#8211; but you can use it on Apache too. Nginx is fundamentally faster than Apache, even if you compare apples with apples and set up Apache with fastcgi instead of the more common mod_php. This is because Nginx uses an asynchronous, event driven architecture, thus using significantly less resources. It is all explained <a title="Nginx Wiki" href="http://wiki.nginx.org/Main">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2011/03/22/nginx-and-wordpress-with-ssl-and-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get rid of caption inline styles in WordPress</title>
		<link>http://techieturmoil.co.uk/2011/03/03/get-rid-of-caption-inline-styles-in-wordpress/</link>
		<comments>http://techieturmoil.co.uk/2011/03/03/get-rid-of-caption-inline-styles-in-wordpress/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 23:27:52 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Techie Notes]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/?p=115</guid>
		<description><![CDATA[For some stupid reason, WordPress injects an inline style to its image caption divs, setting the width to 10px larger than the enclosed image. This is wrong in so many ways: You should never use inline styles. WordPress normally leaves styling to the themes (as it should). Even if you wanted this behaviour, padding would [...]]]></description>
			<content:encoded><![CDATA[<p>For some stupid reason, <a href="http://wordpress.org">WordPress</a> injects an inline style to its image caption divs, setting the width to 10px larger than the enclosed image. This is wrong in so many ways:</p>
<ol>
<li> You should never use inline styles.</li>
<li>WordPress normally leaves styling to the themes (as it should).</li>
<li>Even if you wanted this behaviour, padding would have been more appropriate.</li>
</ol>
<p>So how do we fix it? Well I just spent a while searching and found a few ill thought out suggestions, like overriding the style with !important (doesn&#8217;t work on all browsers and could cause problems if you want to override it again in a specific class) or replacing the shortcode function, either directly in wp-includes/media.php (just plain crazy) or in your functions.php (better but doesn&#8217;t work too well and not very maintainable). This last idea did lead me to find a good solution though. The img_caption_shortcode function has a filter, which effectively overrides its own output. So here&#8217;s what I used (tested on WP 3.1):</p>
<pre>add_filter( 'img_caption_shortcode', 'my_img_caption', 10, 3 );

function my_img_caption( $nowt, $attr, $content )
{
	extract( shortcode_atts( array(
		'id' =&gt; '',
		'align' =&gt; 'alignnone',
		'width' =&gt; '',
		'caption' =&gt; '',
	), $attr ) );

	if ( empty( $caption ) )
		return $content;

	if ( $id )
		$id = 'id="' . esc_attr( $id ) . '" ';

	return '&lt;div ' . $id . 'class="wp-caption ' . esc_attr( $align ) .
		'"&gt;' . do_shortcode( $content ) . '&lt;p class="wp-caption-text"&gt;' .
		$caption . '&lt;/p&gt;&lt;/div&gt;';
}</pre>
<p>Shove that in your theme&#8217;s functions.php and it will replace the core caption function, with the inline style removed. If you&#8217;re wondering what the $nowt variable is about, it is an unused blank string passed by the filter.</p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2011/03/03/get-rid-of-caption-inline-styles-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update to Canon iP1500 drivers</title>
		<link>http://techieturmoil.co.uk/2010/10/12/update-to-canon-ip1500-drivers/</link>
		<comments>http://techieturmoil.co.uk/2010/10/12/update-to-canon-ip1500-drivers/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 15:55:19 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Techie Notes]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/?p=104</guid>
		<description><![CDATA[﻿I&#8217;ve updated this previous post about the Canon iP1500 drivers for Ubuntu. I&#8217;ve added a new package with a script that actually works. The details of what&#8217;s in the script are here if you want to know what&#8217;s really going on.]]></description>
			<content:encoded><![CDATA[<p>﻿I&#8217;ve updated <a href="http://techieturmoil.co.uk/2010/01/27/canon-ip1500-ubuntu-driver/">this previous post</a> about the Canon iP1500 drivers for Ubuntu. I&#8217;ve added a new package with a script that actually works. The details of what&#8217;s in the script are <a href="https://wiki.ubuntu.com/CanonPixmaIP1500">here</a> if you want to know what&#8217;s really going on.</p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2010/10/12/update-to-canon-ip1500-drivers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pure Genius</title>
		<link>http://techieturmoil.co.uk/2010/10/02/pure-genius/</link>
		<comments>http://techieturmoil.co.uk/2010/10/02/pure-genius/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 12:31:37 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[Techie Notes]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/?p=97</guid>
		<description><![CDATA[Just found this on Google&#8217;s developer site. It&#8217;s called Chrome Frame and basically makes Internet Explorer render using Chrome, via a plugin. So we developers can make our sites insist on it, not have to worry about crappy IE rendering and drag those pesky, luddite IE users into the wonderful world of HTML5/CSS3/decent JS. Sounds [...]]]></description>
			<content:encoded><![CDATA[<p>Just found <a title="Google Chrome Frame" href="http://code.google.com/chrome/chromeframe/">this</a> on Google&#8217;s developer site. It&#8217;s called <a title="Google Chrome Frame" href="http://code.google.com/chrome/chromeframe/">Chrome Frame</a> and basically makes Internet Explorer render using Chrome, via a plugin. So we developers can make our sites insist on it, not have to worry about <a title="Check out how bad it is at QuirksMode.org" href="http://quirksmode.org">crappy IE rendering</a> and drag those pesky, luddite IE users into the wonderful world of HTML5/CSS3/decent JS.</p>
<p>Sounds perfect? We shall see. I shall test it out soon. On this very blog&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2010/10/02/pure-genius/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Shiny New Bike!</title>
		<link>http://techieturmoil.co.uk/2010/09/15/my-shiny-new-bike/</link>
		<comments>http://techieturmoil.co.uk/2010/09/15/my-shiny-new-bike/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 16:37:14 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[JT]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/2010/09/15/my-shiny-new-bike/</guid>
		<description><![CDATA[Oooh shiny! My lovely wife bought me this very exciting new bike for our anniversary. It&#8217;s so cool and very fast. I got to work very quickly today.]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://techieturmoil.co.uk/wp-content/uploads/2010/09/wpid-IMAG0103.jpg" /></p>
<p>Oooh shiny! My lovely wife bought me this very exciting new bike for our anniversary. It&#8217;s so cool and very fast. I got to work very quickly today. <img src='http://techieturmoil.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2010/09/15/my-shiny-new-bike/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I baked some bread</title>
		<link>http://techieturmoil.co.uk/2010/05/15/i-baked-some-bread/</link>
		<comments>http://techieturmoil.co.uk/2010/05/15/i-baked-some-bread/#comments</comments>
		<pubDate>Sat, 15 May 2010 21:47:46 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[JT]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/2010/05/15/i-baked-some-bread/</guid>
		<description><![CDATA[Here is my first attempt at home-made bread. We used to have a bread maker, but it conked out. So I thought I&#8217;d have a go at doing it by hand. Not bad eh?]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://techieturmoil.co.uk/wp-content/uploads/2010/05/wpid-IMAG0034.jpg" /></p>
<p>Here is my first attempt at home-made bread. We used to have a bread maker, but it conked out. So I thought I&#8217;d have a go at doing it by hand. Not bad eh?</p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2010/05/15/i-baked-some-bread/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time for a new phone</title>
		<link>http://techieturmoil.co.uk/2010/04/21/time-for-a-new-phone/</link>
		<comments>http://techieturmoil.co.uk/2010/04/21/time-for-a-new-phone/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 21:20:56 +0000</pubDate>
		<dc:creator>JT</dc:creator>
				<category><![CDATA[JT]]></category>

		<guid isPermaLink="false">http://techieturmoil.co.uk/?p=86</guid>
		<description><![CDATA[It&#8217;s time for me to get a new phone. I&#8217;ve had my beloved G1 for 18 months now. It doesn&#8217;t seem that long. Normally by this time I&#8217;m desperate to get rid of the phone and get a new one, rueing the day I signed up for the contract. But not this one. It has [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s time for me to get a new phone. I&#8217;ve had my beloved G1 for 18 months now. It doesn&#8217;t seem that long. Normally by this time I&#8217;m desperate to get rid of the phone and get a new one, rueing the day I signed up for the contract. But not this one. It has been the best phone I&#8217;ve ever had, by a mile. In fact I would go so far as to say it has been life-changing! The only reason I&#8217;m getting a new phone is because I can get a cheaper contract now and the newer Android phones are much faster. I&#8217;m glad I&#8217;ve been an early adopter of the platform though (I got the phone the day it came out in this country). It has been a fun journey and a real pleasure to see loads of others follow suit and enjoy the freedom of a real smartphone.</p>
<p>This will mean a change in theme for this much neglected blog of course. Since the theme is based on the G1, it won&#8217;t really be relevant anymore. I think I&#8217;ll go for a different vibe this time. Gotta keep moving.</p>
<p>Can&#8217;t wait &#8217;til my HTC Desire comes on Saturday. Super fast and slinky!</p>
]]></content:encoded>
			<wfw:commentRss>http://techieturmoil.co.uk/2010/04/21/time-for-a-new-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

