<?xml version="1.0" encoding="UTF-8"?>
<rss version="0.92">
<channel>
	<title>john.geek.nz - 38911 Basic Bytes Free</title>
	<link>http://www.john.geek.nz</link>
	<description>SQL Tips, Apple Tips and Randomness</description>
	<lastBuildDate>Thu, 10 Jun 2010 10:16:40 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Combining two images with ImageMagick</title>
		<description><![CDATA[To combine two images of the same size with ImageMagick, you simply do the following:
The following will overlay overlay.png on top of output.png

mogrify -draw &#34;image SrcOver 0,0 0,0 'overlay.png'&#34; output.png

While this one will overlay overlay.png on top of input.png and save it as output.png

convert input.png -draw &#34;image SrcOver 0,0 0,0 'overlay.png'&#34; output.png

You can download imagemagick [...]]]></description>
		<link>http://www.john.geek.nz/2010/06/combining-two-images-with-imagemagick/</link>
			</item>
	<item>
		<title>Selective colour replacement with imagemagick</title>
		<description><![CDATA[Selective colour replacement is easy from the command line with imagemagick.
You can download imagemagick from http://www.imagemagick.org/
The following will replace all red (#FF0000) pixels with blue (#0000FF)

convert sourceimage.png -fill &#34;#FF0000&#34; -opaque &#34;#0000FF&#34; destimage.png

]]></description>
		<link>http://www.john.geek.nz/2010/06/selective-colour-replacement-with-imagemagick/</link>
			</item>
	<item>
		<title>Deleting folders recursively</title>
		<description><![CDATA[I needed recursively delete folders named .svn within a directory structure.
The following will allow you dto do this from a command prompt:

FOR /F &#34;tokens=*&#34; %G IN &#40;'DIR /B /AD /S .svn'&#41; DO RMDIR /S /Q %G

Remember, if you&#8217;re doing it from a batch file, you&#8217;ll need to double up the percent signs, thus:

FOR /F &#34;tokens=*&#34; [...]]]></description>
		<link>http://www.john.geek.nz/2010/06/deleting-folders-recursively/</link>
			</item>
	<item>
		<title>IIS 6- Setting up a write only FTP directory</title>
		<description><![CDATA[So, you want to set up a write only ftp directory on IIS?  One where you can upload files, but not list them?
Easy&#8230;

First, create a new user which you will log in as.
Make sure this user is explicitly denied access to all files and folders on the system.
Now, add the following &#8217;special&#8217; permissions to [...]]]></description>
		<link>http://www.john.geek.nz/2010/04/iis-6-setting-up-a-write-only-ftp-directory/</link>
			</item>
	<item>
		<title>WordPress Super Cache plugin &#8211; Performance Benchmarking</title>
		<description><![CDATA[I&#8217;ve been doing some performance tests on WordPress to see how much of a difference the WordPress Super Cache plugin made.
It turns out that the plugin makes a huge difference.
I kept increasing the rate of requests until the Disk IO rate was the same for both tests.  With the cache turned off, CPU usage [...]]]></description>
		<link>http://www.john.geek.nz/2010/04/wordpress-super-cache-plugin-performance-benchmarking/</link>
			</item>
	<item>
		<title>Wordpress not sending emails on ubuntu &#8211; nrcpts=0</title>
		<description><![CDATA[So, you&#8217;re using sendmail to try and send emails from php/wordpress and it&#8217;s not working?
Are your mail logs (/var/log/mail.log) showing nrcpts=0 ??
Make sure the sendmail_path in your php.ini file (/etc/php5/apache2/php.ini) is set up correctly.
It should probably be&#8230;

1
sendmail_path = /usr/sbin/sendmail -t -i

]]></description>
		<link>http://www.john.geek.nz/2010/04/wordpress-not-sending-emails-on-ubuntu-nrcpts0/</link>
			</item>
	<item>
		<title>Wordpress, Permalinks and 404 errors</title>
		<description><![CDATA[This page has the permalink http://www.john.geek.nz/2010/04/wordpress-permalinks-and-404-errors But internally its default URL is http://www.john.geek.nz/?p=1495.
Permalinks help people see the topic of a page before it&#8217;s visited and generally mean that search engines will rank them higher too.
OK, so you&#8217;re getting 404&#8217;s as soon as you enable permalinks other than the default?

Firstly, make sure mod_rewrite is loaded.  [...]]]></description>
		<link>http://www.john.geek.nz/2010/04/wordpress-permalinks-and-404-errors/</link>
			</item>
	<item>
		<title>Bear with me while I change servers</title>
		<description><![CDATA[I&#8217;ve taken the plunge, and this time I&#8217;m not doing it by halves.
I&#8217;m moving from my Windows Server 2003 physical co-located server to a Virtual Private Server (VPS) running Linux.
All of the websites have been transferred across, everything else is still to be moved over.
In the meantime, if you find any problems, or anything 404&#8217;s, [...]]]></description>
		<link>http://www.john.geek.nz/2010/04/bear-with-me-while-i-change-servers/</link>
			</item>
	<item>
		<title>DateTimeUTC &#8211; Version 1.1</title>
		<description><![CDATA[I&#8217;ve been using DateTimeUTC for quite some time in batch files to get a nicely formatted date.
This is the first major revision of DateTimeUTC where you can now add or subtract from the current date.  This is very useful if you want yesterday&#8217;s date.
Get the latest version from here: DateTimeUTC
The main usage of the [...]]]></description>
		<link>http://www.john.geek.nz/2010/04/datetimeutc-version-1-1/</link>
			</item>
	<item>
		<title>Live Renders of Earth</title>
		<description><![CDATA[I&#8217;ve recently come across the open source software Xplanet, which will render images of the globe with very realistic results.
I render them in 512&#215;256, 1024&#215;512, 2048&#215;1024 and 4096&#215;2048 resolutions.  The clouds information is obtained from weather satellites and is typically around three hours old.
I also use monthly map files so that the snow/ice on [...]]]></description>
		<link>http://www.john.geek.nz/2010/02/live-renders-of-earth/</link>
			</item>
</channel>
</rss>
