<?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>John Hunt&#039;s web log</title>
	<atom:link href="http://john-hunt.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://john-hunt.com</link>
	<description>Open source, Linux, Developer tips, Beer, Whatever</description>
	<lastBuildDate>Thu, 25 Feb 2010 21:46:31 +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>Trac quick start on Debian</title>
		<link>http://john-hunt.com/2010/02/25/trac-quick-start-on-debian/</link>
		<comments>http://john-hunt.com/2010/02/25/trac-quick-start-on-debian/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 21:33:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=202</guid>
		<description><![CDATA[Trac is pretty easy to set up on Debian, here&#8217;s a mini guide of what I did to get it working nice and quick. You&#8217;ll probably want to configure users etc afterwards,  but this should be enough to get going.
Install:

apt-get install trac libapache2-mod-wsgi

Initiate the trac environment:

trac-admin /var/www/srdev/trac/ initenv

Set permissions:

chown -R www-data /var/www/srdev/trac/

Install the wsgi [...]]]></description>
			<content:encoded><![CDATA[<p>Trac is pretty easy to set up on Debian, here&#8217;s a mini guide of what I did to get it working nice and quick. You&#8217;ll probably want to configure users etc afterwards,  but this should be enough to get going.</p>
<p>Install:<br />
<code><br />
apt-get install trac libapache2-mod-wsgi<br />
</code></p>
<p>Initiate the trac environment:<br />
<code><br />
trac-admin /var/www/srdev/trac/ initenv<br />
</code></p>
<p>Set permissions:<br />
<code><br />
chown -R www-data /var/www/srdev/trac/<br />
</code></p>
<p>Install the wsgi script and web resources. The first argument before &#8216;deploy&#8217; should match the install environment (the path above.) The second argument following &#8216;deploy&#8217; can probably go anywhere, but I just shoved it in the trac dir.</p>
<p><code><br />
trac-admin /var/www/srdev/trac/ deploy /var/www/srdev/trac/www/<br />
</code></p>
<p>Next, we need to tell apache how to call the wsgi script, we do this using an alias. You can use / if you just want it to be in the same dir as your virtualhost, but in my case I wanted trac to be in a sub directory of the site (www.mysite.com/trac.) Add this to your virtual host (/etc/apache2/sites-enabled/whatever.)</p>
<p>The directory directive specifies some permissions for the script.<br />
<code><br />
WSGIScriptAlias /trac /var/www/srdev/trac/www/cgi-bin/trac.wsgi<br />
<Directory /var/www/srdev/trac/www/cgi-bin/trac.wsgi><br />
  WSGIApplicationGroup %{GLOBAL}<br />
  Order deny,allow<br />
  Allow from all<br />
</Directory><br />
</code></p>
<p>Finally, enable the wsgi module, and then restart apache. Now it *should* work <img src='http://john-hunt.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<code><br />
a2enmod wsgi<br />
/etc/init.d/apache2 restart<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2010/02/25/trac-quick-start-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s going on</title>
		<link>http://john-hunt.com/2010/02/18/whats-going-on/</link>
		<comments>http://john-hunt.com/2010/02/18/whats-going-on/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 05:45:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=194</guid>
		<description><![CDATA[I&#8217;ve recently moved john-hunt.com again, from Australia to Texas in the states. The reason for this is my web host here in Australia was crap and the server kept going down (among other things.) They weren&#8217;t that terrible (hence I won&#8217;t mention them), but not worth the hassle.
Anyway, hopefully this year john-hunt.com will undergo a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently moved john-hunt.com again, from Australia to Texas in the states. The reason for this is my web host here in Australia was crap and the server kept going down (among other things.) They weren&#8217;t that terrible (hence I won&#8217;t mention them), but not worth the hassle.</p>
<p>Anyway, hopefully this year john-hunt.com will undergo a bit of a transformation.</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2010/02/18/whats-going-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting SVG to png (with alpha channel)</title>
		<link>http://john-hunt.com/2010/01/18/converting-svg-to-png-with-alpha-channel/</link>
		<comments>http://john-hunt.com/2010/01/18/converting-svg-to-png-with-alpha-channel/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 05:38:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=193</guid>
		<description><![CDATA[Recently discovered this while creating some web graphics in inkscape:
http://studio.imagemagick.org/pipermail/magick-users/2007-August/020001.html
 convert -density 100 -background None [filename].svg -compress none -depth 16 [filename].png
Really quite handy seeing as my version of inkscape loses the alpha channel when exporting.
]]></description>
			<content:encoded><![CDATA[<p>Recently discovered this while creating some web graphics in inkscape:</p>
<p><a href="http://studio.imagemagick.org/pipermail/magick-users/2007-August/020001.html">http://studio.imagemagick.org/pipermail/magick-users/2007-August/020001.html</a></p>
<p><code> convert -density 100 -background None [filename].svg -compress none -depth 16 [filename].png</code></p>
<p>Really quite handy seeing as my version of inkscape loses the alpha channel when exporting.</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2010/01/18/converting-svg-to-png-with-alpha-channel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schöfferhofer Hefeweizen</title>
		<link>http://john-hunt.com/2009/08/21/schofferhofer-hefeweizen/</link>
		<comments>http://john-hunt.com/2009/08/21/schofferhofer-hefeweizen/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 07:29:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beer]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=184</guid>
		<description><![CDATA[
Today&#8217;s beer, Schöfferhofer Hefeweizen is another German beer (there seems to be a few of these around at the moment.)
I drank this wheatbeer from a 500ml bottle. Apparently the fermentation is finished in the bottle.
Surprising at first, before the carbonation ruins it. I also suspect this beer is best drank a few degrees warmer than [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://john-hunt.com/wp-content/uploads/2009/08/IMG_4730-225x300.jpg" alt="Beer" title="Beer" width="225" height="300" class="alignleft size-medium wp-image-188" /></p>
<p>Today&#8217;s beer, <strong>Schöfferhofer Hefeweizen</strong> is another German beer (there seems to be a few of these around at the moment.)</p>
<p>I drank this wheatbeer from a 500ml bottle. Apparently the fermentation is finished in the bottle.</p>
<p>Surprising at first, before the carbonation ruins it. I also suspect this beer is best drank a few degrees warmer than fridge temp.</p>
<p>Schöfferhofer Hefeweizen certainly isn&#8217;t that easy to categorise, the flavour feels like it&#8217;s hidden in there somewhere but won&#8217;t come out. Dissapointing really as it could have been pretty good.</p>
<p>Apparently this beer won a gold medal! Obviously I have no idea what I&#8217;m talking about.</p>
<p>Not a great review, but then not a beer that really stood out to me. 5/10 &#8211; Not foul by any means, but meh.</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2009/08/21/schofferhofer-hefeweizen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fürstenberg</title>
		<link>http://john-hunt.com/2009/08/20/furstenberg/</link>
		<comments>http://john-hunt.com/2009/08/20/furstenberg/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 08:01:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Beer]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=180</guid>
		<description><![CDATA[I thought it was about time I started reviewing some beer, at least as a reference for myself when I&#8217;m next out shopping for beer. In time I&#8217;ll start to do this properly, but for now it&#8217;s just a quick summary.
Today&#8217;s beer is Fürstenberg a 5.3% lager from Germany.
Approx. $18 for 6 330ml bottles from [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://john-hunt.com/wp-content/uploads/2009/08/IMG_4726.jpg" alt="Bottle" title="Bottle" width="231" height="308" class="alignleft size-full wp-image-181" />I thought it was about time I started reviewing some beer, at least as a reference for myself when I&#8217;m next out shopping for beer. In time I&#8217;ll start to do this properly, but for now it&#8217;s just a quick summary.</p>
<p>Today&#8217;s beer is <strong>Fürstenberg</strong> a 5.3% lager from Germany.</p>
<p>Approx. $18 for 6 330ml bottles from my local store. This is a german beer, and tastes very much like the beer we had at the world cup in Germany in 2006, so it brings back font memories for me. The first thing I&#8217;d note about Fürstenberg is that it goes down extremley well, it doesn&#8217;t seem too carbonated and there&#8217;s no bitterness to it at all, faily refreshing although not very sharp. This beer is lacking in flavour a bit, but then again it&#8217;s the kind of beer that isn&#8217;t meant to have a lot of flavour, it&#8217;s a real drinking beer &#8211; so I&#8217;m now off to drink the other 5!</p>
<p>I&#8217;ll hopefully revisit this review once I gain more experience and write some proper reviews. But for now, as a personal reference I&#8217;ll give this beer a solid 7/10 &#8211; it&#8217;s a good beer, but lacks anything special. Certainly better than most of the beer I seem to drink.</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2009/08/20/furstenberg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 5 and old clients (like php4)</title>
		<link>http://john-hunt.com/2009/08/04/mysql-5-and-old-clients-like-php4/</link>
		<comments>http://john-hunt.com/2009/08/04/mysql-5-and-old-clients-like-php4/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 03:38:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=175</guid>
		<description><![CDATA[Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /blah/somepage.php on line 123
The reason for this warning is because PHP4 can&#8217;t communicate with a MySQL5 server unless it&#8217;s using old passwords (set by using the OLD_PASSWORD() function below.)
There are two simple ways to fix this. The first would [...]]]></description>
			<content:encoded><![CDATA[<p><code>Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /blah/somepage.php on line 123</code></p>
<p>The reason for this warning is because PHP4 can&#8217;t communicate with a MySQL5 server unless it&#8217;s using old passwords (set by using the OLD_PASSWORD() function below.)</p>
<p>There are two simple ways to fix this. The first would be to upgrade your version of php. Unless you *really* need php4 (or below?!) upgrade! I&#8217;m not sure php4 is supported any more and should be considered a security risk. If you can&#8217;t upgrade, just do this in your database:</p>
<p><code>update mysql.user set password=OLD_PASSWORD('thepassword') where user = 'theusername';</code><br />
and:<br />
<code>flush privileges;</code></p>
<p>This should do the trick. Be warned, if you issue any GRANT statements after this you will have to update mysql.user again.</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2009/08/04/mysql-5-and-old-clients-like-php4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto_increment fun!</title>
		<link>http://john-hunt.com/2009/07/14/auto_increment-fun/</link>
		<comments>http://john-hunt.com/2009/07/14/auto_increment-fun/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 07:50:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=166</guid>
		<description><![CDATA[Discovered some fun things in MySQL today..
Set the variable @id to 0:
SET @id = 0;
Update the column id to be id + 1 &#8211; this will re-index your id column in one fell swoop. Very nice:
UPDATE tblname SET id = (@id := @id + 1);
Set the first value for an auto_increment column:
ALTER TABLE tblname AUTO_INCREMENT [...]]]></description>
			<content:encoded><![CDATA[<p>Discovered some fun things in MySQL today..</p>
<p>Set the variable @id to 0:<br />
<code>SET @id = 0;</code></p>
<p>Update the column id to be id + 1 &#8211; this will re-index your id column in one fell swoop. Very nice:<br />
<code>UPDATE tblname SET id = (@id := @id + 1);</code></p>
<p>Set the first value for an auto_increment column:<br />
<code>ALTER TABLE tblname AUTO_INCREMENT = 196;</code><br />
(this won&#8217;t work if there are rows with a higher value already in the table)</p>
<p>All in all, a few nice bits and pieces for cleaning up your tables.</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2009/07/14/auto_increment-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ableton Live 7.3 under Wine</title>
		<link>http://john-hunt.com/2009/06/29/ableton-live-7-3-under-wine/</link>
		<comments>http://john-hunt.com/2009/06/29/ableton-live-7-3-under-wine/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 02:13:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=164</guid>
		<description><![CDATA[Amazingly, I&#8217;ve managed to get Ableton Live to work properly under Wine.. installation was a breeze, but getting it to decode MP3s properly was a head scratcher.
When I dragged an mp3 over into Ableton live, it would clip all over the place, even in the waveform which tipped me off that this wasn&#8217;t a hardware [...]]]></description>
			<content:encoded><![CDATA[<p>Amazingly, I&#8217;ve managed to get Ableton Live to work properly under Wine.. installation was a breeze, but getting it to decode MP3s properly was a head scratcher.</p>
<p>When I dragged an mp3 over into Ableton live, it would clip all over the place, even in the waveform which tipped me off that this wasn&#8217;t a hardware or emulation issue of some kind. Anyway, after faffing around with ffdshow and stuff, I finally found the answer:</p>
<p>http://appdb.winehq.org/objectManager.php?sClass=version&amp;iId=16226 the summary says:</p>
<pre>Install Apple iTunes and change msacm.winemp3=winemp3.acm to msacm.winemp3=QuickTime.qts to fix mp3 issue.</pre>
<p>Now, I tried to install iTunes 8, but that was a lost cause, so I got iTunes 7 here:</p>
<p>http://www.pcauthority.com.au/Download/59665,apple-itunes-7.aspx</p>
<p>Installed that, then edited ~/.wine/drive_c/windows/system.ini and changed the above line. However this still didn&#8217;t work. What I needed to do was copy QuickTime.qts from it&#8217;s directory to system32:<br />
cp ~/.wine/drive_c/Program\ Files/QuickTime/QTSystem/QuickTime.qts ~/.wine/drive_c/windows/system32/</p>
<p>Then it worked.. keep in mind that previously imported samples that are glitchy will still be glitchy as they need to be re-analysed, probably best to just delete and re-import them.</p>
<p>Oh, and make sure you&#8217;re using the latest version of Wine.</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2009/06/29/ableton-live-7-3-under-wine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Western Digital Mybook World Edition (2nd edition)</title>
		<link>http://john-hunt.com/2009/06/22/western-digital-mybook-world-edition-2nd-edition/</link>
		<comments>http://john-hunt.com/2009/06/22/western-digital-mybook-world-edition-2nd-edition/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 06:57:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=161</guid>
		<description><![CDATA[A few weeks ago, I decided I needed some kind of NAS for my home as I&#8217;m often replacing my linux distro, installing Win7 or whatever and I wanted somewhere more permanent for my files.
I looked at the possibility of getting another PC to set up as a NAS, but this looked like it was [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 410px"><img title="Mybook World Edition (2nd edition!)" src="http://www.v-trust.eu/products/wdfMyBook_World_1N.jpg" alt="The new(ish) mybook world edition" width="400" height="400" /><p class="wp-caption-text">The new(ish) mybook world edition</p></div>
<p>A few weeks ago, I decided I needed some kind of NAS for my home as I&#8217;m often replacing my linux distro, installing Win7 or whatever and I wanted somewhere more permanent for my files.</p>
<p>I looked at the possibility of getting another PC to set up as a NAS, but this looked like it was going to be too costly, and I really needed something that could be plugged into my router which is stuck in the kitchen so I went for the WD Mybook World Edition as I knew it was running Linux and was hackable.</p>
<p>So far I&#8217;ve been fairly happy with it, it was *Very* easy to enable SSH and get to work fiddling with it. There&#8217;s a checkbox option on its web interface to allow SSH access. From there it&#8217;s fairly easy to install optware (similar to apt on Debian/Ubuntu) which allows you to easily install pretty much anything.</p>
<p>Performance is apparently a lot better than the old blue-ring version, however I must say the USB &amp; ntfs performance is laughable &#8211; after a lot of tweaking I managed to only get 1.2MB(megabytes!)/sec out of it via USB where as I get about 5MB/sec over my wireless network! Oh well.</p>
<p>The only other issue I&#8217;ve had with it is the software it runs.. WD have done something very bizzare indeed and used what seems to be some kind of generic PHP software for embedded devices to run the thing. At first I thought this was just for the web front end, but no, there are all kinds of system() and shell() (or whatever it is) calls in a whole bunch of weird php files that do everything from mounting hard disks to starting other services etc.. very weird! I think significant performance gains could have been made if WD had opted for a more &#8216;normal&#8217; system rather than having the overhead of a web server and php for everything.</p>
<p>Having said that, using optware allows you to do things as you would on a normal system without interfering with the main system which is a nice feature of optware.</p>
<p>Overall, I&#8217;d recommend this device &#8211; it&#8217;s not the best, but for the price I think it&#8217;s pretty reasonable.</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2009/06/22/western-digital-mybook-world-edition-2nd-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WDTV &#8211; Western Digital TV media player</title>
		<link>http://john-hunt.com/2009/01/30/wdtv-western-digital-tv-media-player/</link>
		<comments>http://john-hunt.com/2009/01/30/wdtv-western-digital-tv-media-player/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 00:15:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ac3]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[wdtv]]></category>

		<guid isPermaLink="false">http://john-hunt.com/?p=147</guid>
		<description><![CDATA[Picked up a WDTV last night for $200. As you may have guessed from some of my other posts, I&#8217;m into my A/V stuff, so this thing seemed like a bargain. Many reviews will rave about how great it is, and I must say it&#8217;s not too bad, but I have found there are bugs [...]]]></description>
			<content:encoded><![CDATA[<p>Picked up a WDTV last night for $200. As you may have guessed from some of my other posts, I&#8217;m into my A/V stuff, so this thing seemed like a bargain. Many reviews will rave about how great it is, and I must say it&#8217;s not too bad, but I have found there are bugs (even in the latest 1.0.1.2 firmware):</p>
<p>Playback of any AC3 file seems to result in a barely noticable (but very annoying) 100ms or so audio lag. This doesn&#8217;t drift which is good, but it makes watching anything with an AC3 soundtrack very annoying. I&#8217;ve tried various things to try and fix this and make sure it&#8217;s not me or my files, but the unit. Strangely, this only seems to occur when playing back NTSC files, and not PAL (25fps) files.</p>
<p>Other than that, it&#8217;s pretty good. I&#8217;ll hang on to it until I can test it on someone else&#8217;s setup. Otherwise it might have to go back to the shop!</p>
<p><strong>*update*</strong></p>
<p>After more testing with different files, it seems to be off-sync with a bunch of files, not just ones with an AC3 soundtrack. I also tested the device at a friends place before finally taking it back. If Western Digital manages to sort this bug out, I may consider buying it again&#8230;probably not though, manufacturers need to start testing stuff rather than just putting things out there and then releasing good firmware a year later.</p>
<p>I also just found out the WDTV violates the GPL, so I don&#8217;t want it anyway!</p>
<p>*update2*</p>
<p>Version 1.02 firmware is now released for the WDTV, and I&#8217;ve recently bought an AV reciever which has built in a/v delay stuff (and optical/hdmi inputs etc..) so perhaps it is time to re-purchase WDTV after all. Converting MKV/h264 to AVI/xvid for my xbox w/ac3 isn&#8217;t so great.</p>
<p>*update3*</p>
<p>I did re-buy the WDTV, and I&#8217;ve been very happy with it, but only if using firmware version 1.02.03 (I think it&#8217;s that one) which has all the sync issues sorted. Recommended!</p>
]]></content:encoded>
			<wfw:commentRss>http://john-hunt.com/2009/01/30/wdtv-western-digital-tv-media-player/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
