<?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"
	>

<channel>
	<title>Adam Pierce</title>
	<atom:link href="http://www.doctort.org/adam/feed" rel="self" type="application/rss+xml" />
	<link>http://www.doctort.org/adam</link>
	<description>Maker of Finest Quality Digital Things</description>
	<pubDate>Tue, 12 Aug 2008 10:33:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Working prototype of RS232 Rate Converter</title>
		<link>http://www.doctort.org/adam/general/working-prototype-of-rs232-rate-converter.html</link>
		<comments>http://www.doctort.org/adam/general/working-prototype-of-rs232-rate-converter.html#comments</comments>
		<pubDate>Tue, 12 Aug 2008 10:33:17 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/?p=235</guid>
		<description><![CDATA[
I am making some progress toward a manufacturable design of my RS232 baud rate converter. I now have the prototype working.
As you can see from the photo, I had to add a couple of wires to the PCB but only a couple and I am very pleased about that!
I am going to revise the board [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-236" style="float: right;" title="rs232prototype" src="http://www.doctort.org/adam/wp-content/uploads/2008/08/rs232prototype2.png" alt="First prototype of the RS232 Rate Converter" width="360" height="299" /></p>
<p>I am making some progress toward a manufacturable design of my RS232 baud rate converter. I now have the prototype working.</p>
<p>As you can see from the photo, I had to add a couple of wires to the PCB but only a couple and I am very pleased about that!</p>
<p>I am going to revise the board design before sending it for manufacture - apart from the couple of patches I also forgot to bring out the chip programming lines and the reset line. These are not needed for normal operation but will be needed to initially program the chip. To this end I am putting a new 10-way header on the board for programming and debugging.</p>
<p>Another issue I had when bringing the thing from prototype to a production stage was the firmware. I realized there really should be some way for end users to update the firmware either to patch bugs or add new features when customers inevitably request them. I do not want to be physically mailing these things back and forth for modification once they are sold. To that end, I have written a boot loader and firmware update utility.</p>
<p>I&#8217;m now ready to get the board manufactured. I want to do a small run of 20 or so to start off with. I used BatchPCB for my prototype but they are not cost-effective for more than one or two boards. After comparing a few different places, I have also come to the conclusion that local Australian PCB manufacturers are 3 to 4 times the price of an offshore fab. So I am going to try a Chinese manufacturer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/general/working-prototype-of-rs232-rate-converter.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Commercializing my Hobby</title>
		<link>http://www.doctort.org/adam/general/commercializing-my-hobby.html</link>
		<comments>http://www.doctort.org/adam/general/commercializing-my-hobby.html#comments</comments>
		<pubDate>Mon, 04 Aug 2008 08:52:34 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/?p=234</guid>
		<description><![CDATA[I enjoy designing little electronic devices in my spare time. I like working with circuit boards and digital chips, I&#8217;ve posted a few of my projects here on my blog in the past.
And some people have been reading those blog entries and have been asking me to make stuff for them. I&#8217;ve given in to [...]]]></description>
			<content:encoded><![CDATA[<p>I enjoy designing little electronic devices in my spare time. I like working with circuit boards and digital chips, I&#8217;ve posted a few of my projects here on my blog in the past.</p>
<p>And some people have been reading those blog entries and have been asking me to make stuff for them. I&#8217;ve given in to a few people here and there and built some. I think this indicates a clear although small demand for these devices.</p>
<p>So I&#8217;ve decided to have a go at manufacturing some things for sale. I&#8217;ve reviewed my designs and I think these two are obvious candidates:</p>
<p>1. RS232 Speed Converter<br />
2. MIDI Clock Source</p>
<p>I&#8217;m going to start with the RS232 Speed Converter since that design requires the least amount of work to get it to production. I&#8217;ll post my progress here on this blog. Let&#8217;s see if I can sell something. Wish me luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/general/commercializing-my-hobby.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Linux Equivalent of the Windows GetTickCount() function</title>
		<link>http://www.doctort.org/adam/nerd-notes/linux-equivalent-of-the-windows-gettickcount-function.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/linux-equivalent-of-the-windows-gettickcount-function.html#comments</comments>
		<pubDate>Mon, 21 Jul 2008 06:08:18 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<category><![CDATA[c]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[source]]></category>

		<category><![CDATA[time]]></category>

		<category><![CDATA[win32]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/?p=233</guid>
		<description><![CDATA[GetTickCount() is a real handy function in Windows but does not exist in Linux. This code will give a similar result:

#include &#60;sys/time.h&#62;

unsigned GetTickCount()
{
        struct timeval tv;
        if(gettimeofday(&#038;tv, NULL) != 0)
            [...]]]></description>
			<content:encoded><![CDATA[<p>GetTickCount() is a real handy function in Windows but does not exist in Linux. This code will give a similar result:</p>
<pre>
#include &lt;sys/time.h&gt;

unsigned GetTickCount()
{
        struct timeval tv;
        if(gettimeofday(&#038;tv, NULL) != 0)
                return 0;

        return (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/linux-equivalent-of-the-windows-gettickcount-function.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Gravatar support</title>
		<link>http://www.doctort.org/adam/general/gravatar-support.html</link>
		<comments>http://www.doctort.org/adam/general/gravatar-support.html#comments</comments>
		<pubDate>Mon, 14 Jul 2008 00:54:46 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/?p=231</guid>
		<description><![CDATA[ Just a quick note that this site now supports Gravatars. So if you make a comment here and are registered over at www.gravatar.com, your picture will appear next to your comment like magic!
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.doctort.org/adam/wp-content/uploads/2008/07/adamhatsmall.jpeg"><img class="alignnone size-medium wp-image-232" title="AdamAvatar1" src="http://www.doctort.org/adam/wp-content/uploads/2008/07/adamhatsmall.jpeg" alt="" width="60" height="60" /></a> Just a quick note that this site now supports Gravatars. So if you make a comment here and are registered over at <a href="http://www.gravatar.com/">www.gravatar.com</a>, your picture will appear next to your comment like magic!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/general/gravatar-support.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>UDEV swapped my drives!</title>
		<link>http://www.doctort.org/adam/nerd-notes/udev-swapped-my-drives.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/udev-swapped-my-drives.html#comments</comments>
		<pubDate>Tue, 03 Jun 2008 06:18:05 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/?p=230</guid>
		<description><![CDATA[After doing a dist-upgrade on a Debian Etch system, it would no longer boot! It loads the kernel and then stops displaying the following message:
Waiting for root filesystem
I&#8217;ve just spent a few torturous hours trying to get it back up again. It took me a while to figure out what was happening but it seems [...]]]></description>
			<content:encoded><![CDATA[<p>After doing a dist-upgrade on a Debian Etch system, it would no longer boot! It loads the kernel and then stops displaying the following message:</p>
<pre>Waiting for root filesystem</pre>
<p>I&#8217;ve just spent a few torturous hours trying to get it back up again. It took me a while to figure out what was happening but it seems that the updated package for UDEV changes the GRUB configuration so it tries to mount hdb1 instead of hda1 as the root file system. Of course hdb1 does not exist on this single-drive machine so it just sits there like a moron.</p>
<p>Turns out it is not frozen. If you wait about 3 minutes, it will eventually come up with the following prompt:</p>
<pre>(initfs)</pre>
<p>I found that I can kind of get the system running by typing the following commands. These are for a single-partition system on an EXT3 file system on an IDE hard drive. If your system is different, you will need to modify them a bit:</p>
<pre>mkdir /mnt

mount /dev/hda1 -t ext3 /mnt

chroot /mnt

login</pre>
<p>Then log in. The next thing to do is to correct the GRUB configuration:</p>
<pre>nano -w /boot/grub/menu.lst</pre>
<p>Change the <strong>root=/dev/sdb1</strong> entry to <strong>root=/dev/sda1</strong>. Once again, this is for a single IDE drive, you may need to change it if you are booting from SATA or some other kind of device.</p>
<p>Now regenerate the initramfs image:</p>
<pre>dpkg-reconfigure initramfs-tools</pre>
<p>At last we can reboot. The system came up fine for me after this.</p>
<pre>reboot</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/udev-swapped-my-drives.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Adaptec 1430SA on Debian Linux &#8220;Etch&#8221;</title>
		<link>http://www.doctort.org/adam/nerd-notes/adaptec-1430sa-on-debian-linux-etch.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/adaptec-1430sa-on-debian-linux-etch.html#comments</comments>
		<pubDate>Mon, 26 May 2008 06:38:37 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/?p=229</guid>
		<description><![CDATA[Well folks, I just got saddled with this Adaptec/Marvel piece of poo and now I have to make it work on a Debian server. The server belongs to my employer and is running Debian &#8220;Etch&#8221;.
The Etch release of Debian does not have a driver for this card built-in and even though Adaptec claim to support [...]]]></description>
			<content:encoded><![CDATA[<p>Well folks, I just got saddled with this Adaptec/Marvel piece of poo and now I have to make it work on a Debian server. The server belongs to my employer and is running Debian &#8220;Etch&#8221;.</p>
<p>The Etch release of Debian does not have a driver for this card built-in and even though Adaptec claim to support Linux, their drivers simply do not work unless you are running some specific outdated versions of Red Hat or SUSE. That&#8217;s not what I call Linux support!</p>
<p>I&#8217;m not the only one discovering this, Brent Norris wrote a wonderful article titled &#8220;<a title="Permanent Link: Adaptec 1420SA is JUNK!" rel="bookmark" href="http://www.brentnorris.net/blog/archives/158">Adaptec 1420SA is JUNK!</a>&#8221; on his blog which describes pretty much the exact situation I find myself in which Adaptec just doesn&#8217;t want to know about Linux.</p>
<p>When are these guys (by whom I mean most major hardware manufacturers) going to realize that Linux is here to stay and is getting real popular, especially in the server room.</p>
<p>Anyway, enough ranting. After a couple of hours Googling around, I see that there is an open source driver available for this card and it is built into Linux kernel version 2.6.22. Debian Etch uses 2.6.18 so all I need to do is upgrade the kernel.</p>
<p>The easiest way to install the upgraded kernel is to get a DEB package from Debian Backports. Go to this page:</p>
<p><a href="http://packages.debian.org/etch-backports/admin/">http://packages.debian.org/etch-backports/admin/</a></p>
<p>and grab a kernel, there are usually a couple of different versions available there.</p>
<p>Install it and reboot. Works great so far.</p>
<p>PS. I notice that the driver for this card was released into the Linux kernel by Red Hat corporation. So it seems even they are fed up with Adaptec&#8217;s poor support for Linux!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/adaptec-1430sa-on-debian-linux-etch.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Extract Chapters from a DVD</title>
		<link>http://www.doctort.org/adam/myproduct/extract-chapters-from-a-dvd.html</link>
		<comments>http://www.doctort.org/adam/myproduct/extract-chapters-from-a-dvd.html#comments</comments>
		<pubDate>Tue, 13 May 2008 13:07:05 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Homemade Creations]]></category>

		<category><![CDATA[Products]]></category>

		<category><![CDATA[chapter]]></category>

		<category><![CDATA[dvd]]></category>

		<category><![CDATA[mpeg]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/?p=226</guid>
		<description><![CDATA[I have this video camera, a Sony DVD201E which records straight to a mini-DVD disc. I want to copy the recorded video onto my PC but the software which comes with the camera is pretty awful. Besides it is Windows-only and I do prefer to use Linux.
So I have made a little Linux app which [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-227" style="float: right;" title="sony-dvd201e" src="http://www.doctort.org/adam/wp-content/uploads/2008/05/sony-dvd201e.jpg" alt="" width="200" height="150" />I have this video camera, a Sony DVD201E which records straight to a mini-DVD disc. I want to copy the recorded video onto my PC but the software which comes with the camera is pretty awful. Besides it is Windows-only and I do prefer to use Linux.</p>
<p>So I have made a little Linux app which can extract scenes from a DVD disc. The camera records each scene as a DVD &#8220;chapter&#8221;. My application reads a DVD disc and copies each chapter into a separate MPEG file. I&#8217;ll publish it here in case anyone else finds it useful.</p>
<h4>Downloading and Compiling</h4>
<p>I&#8217;m just releasing this as source code at the moment. I have tested it under Ubuntu 7.10 but It will probably work fine on any UNIX-based system. You can download it here:</p>
<p><a href="http://doctort.org/adam/files/DvdChapterExtract-1.2.tar.bz2">DvdChapterExtract-1.2.tar.bz2</a> (16k)</p>
<p>You will need <strong>libdvdread</strong> and <strong>libavformat</strong> before you compile. So install those:</p>
<pre>sudo apt-get install libdvdread-dev libavformat-dev</pre>
<p>Next unpack and compile:</p>
<pre>tar jxf DvdChapterExtract-1.2.tar.bz2

cd DvdChapterExtract/Release

make all</pre>
<h4>Usage</h4>
<p>1. You need to record your discs in <strong>Video mode</strong>, not &#8220;VR&#8221; mode. VR is a Sony proprietary format which cannot be read in a regular DVD drive.</p>
<p>2. After recording your disc, you must <strong>Finalize</strong> it in-camera.</p>
<p>3. Put the disc into the DVD drive on your PC.</p>
<p>4. Launch the DVD chapter extract tool like so (assuming /dev/scd0 is the name of your DVD drive).</p>
<pre>./DvdChapterExtract -d /dev/scd0</pre>
<p>It will extract each chapter into a separate file called chapter001.mpeg, chapter002.mpeg and so on. These can be loaded directly into any video editing software.</p>
<p>The camera also tags each chapter with some meta-data such as the date and time the scene was recorded. I have not yet figured out how to read that data.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/myproduct/extract-chapters-from-a-dvd.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>No more advertising</title>
		<link>http://www.doctort.org/adam/general/no-more-ads.html</link>
		<comments>http://www.doctort.org/adam/general/no-more-ads.html#comments</comments>
		<pubDate>Wed, 30 Apr 2008 10:36:27 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/?p=225</guid>
		<description><![CDATA[As you can see, I have removed all the Google ads from this blog.
This blog gets around 1000 page views per day and I&#8217;ve been running the ads for about a year and a half now. In all that time Google have not paid me anything. Not a cent! So they are gone.
]]></description>
			<content:encoded><![CDATA[<p>As you can see, I have removed all the Google ads from this blog.</p>
<p>This blog gets around 1000 page views per day and I&#8217;ve been running the ads for about a year and a half now. In all that time Google have not paid me anything. Not a cent! So they are gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/general/no-more-ads.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Installing Debian from a USB Key</title>
		<link>http://www.doctort.org/adam/nerd-notes/installing-debian-from-a-usb-key.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/installing-debian-from-a-usb-key.html#comments</comments>
		<pubDate>Wed, 23 Apr 2008 03:33:31 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/general/installing-debian-from-a-usb-key.html</guid>
		<description><![CDATA[I&#8217;m astonished how quickly CDs and DVDs are going the way of the Fondue Fork. Seems that everyone is downloading stuff these days and USB devices have exceeded DVDs in capacity already.
I can see it won&#8217;t be long before DVD drives will be an optional extra on new PCs (especially laptops) and will eventually disappear [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.doctort.org/adam/wp-content/uploads/2008/04/usbkey2.jpeg" alt="My USB Key" align="right" />I&#8217;m astonished how quickly CDs and DVDs are going the way of the Fondue Fork. Seems that everyone is downloading stuff these days and USB devices have exceeded DVDs in capacity already.</p>
<p>I can see it won&#8217;t be long before DVD drives will be an optional extra on new PCs (especially laptops) and will eventually disappear like floppy drives (remember them ?).</p>
<p>So it&#8217;s time to look at installing from USB on a machine which has no disc drive at all. I&#8217;ve found a few guides out there on the internet but none of them were easy to follow. I had to read several of them and then I still had to guess at stuff that wasn&#8217;t mentioned.</p>
<p>So here is my guide which is a little more comprehensive.</p>
<hr /><em>NOTE 1: I am assuming your USB device is /dev/sdb. If yours is not, you will have to change the examples to suit.</em></p>
<p><em>NOTE 2: I&#8217;m assuming you are logged in as a regular user. if you are logged in as root, just drop &#8220;sudo&#8221; off the beginning of all these commands.</em></p>
<p><strong>Step 1 - Download the installation image </strong></p>
<p>While there are several &#8220;small&#8221; installs for putting on a credit-card CD and so on, USB sticks are now large enough that you can use a normal install CD image. I am going to use the Debian Net Install which weighs in at around 160MB. This should easily fit on a 256MB device which quite frankly, people throw away these days because it is so uncool to have such a small device dangling from your keyring.</p>
<p>Go to <a href="http://www.debian.org/CD/netinst/">http://www.debian.org/CD/netinst/</a> and download the netinst image for your platfom (if you don&#8217;t know, it&#8217;s probably i386).</p>
<p><strong>Step 2 - Partition and Format the USB device</strong></p>
<p>Most USB keys come pre-formatted with a FAT16 or FAT32 file system. If this is the case with your stick, just erase all the files on it and proceed to Step 3.</p>
<p>But of course, I had previously formatted mine with EXT3 so I&#8217;ll need to reformat it with a DOS format.</p>
<p>First set the partition type to DOS</p>
<pre>sudo sfdisk -c /dev/sdb 1 c</pre>
<p>Next, format the partition.</p>
<pre>sudo mkdosfs /dev/sdb1</pre>
<p><strong>Step 3 - Obtain a kernel and RAMdisk image<br />
</strong></p>
<p>Next you need an hd-install kernel and <em>initrd</em> image. You can download these from Debian also. For the current version of the kernel, they should be available from here:</p>
<p><a href="http://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/">http://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/</a></p>
<p>Grab the two files <strong>vmlinuz</strong> and <strong>initrd.gz</strong> then mount your USB device and copy them onto it:</p>
<pre>sudo mount /dev/sdb1 /mnt

sudo cp vmlinuz /mnt/

sudo cp initrd.gz /mnt/</pre>
<p>Then you will need to make a file on the USB device called <strong>syslinux.cfg</strong> - just create a plain text file. Cut and paste the following two lines into it:</p>
<pre>default vmlinuz
append initrd=initrd.gz</pre>
<p><strong>Step 4 - Copy the installation image</strong></p>
<p>Next copy the ISO file you downloaded onto the USB device. From the commandline you can do it like this:</p>
<pre>sudo cp debian-40r3-i386-netinst.iso /mnt/</pre>
<p><strong>Step 5 - Make the device bootable</strong></p>
<p>You will need to have a couple of additional packages installed to do this:</p>
<pre>sudo apt-get install syslinux mtools</pre>
<p>Type these commands to make the stick bootable:</p>
<pre>sudo syslinux /dev/sdb1

sudo install-mbr -r -p 1 /dev/sdb</pre>
<p>Now you can unmount the USB device and you are good to go!</p>
<pre>sudo umount /mnt/usb</pre>
<hr />
<strong>UPDATE - I corrected an error in this, if you tried following it before 15-Jul-2008, you might have ended up with a non-working installer.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/installing-debian-from-a-usb-key.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Apple Crumble</title>
		<link>http://www.doctort.org/adam/homemade/apple-crumble.html</link>
		<comments>http://www.doctort.org/adam/homemade/apple-crumble.html#comments</comments>
		<pubDate>Fri, 28 Mar 2008 10:21:17 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Homemade Creations]]></category>

		<category><![CDATA[apple]]></category>

		<category><![CDATA[cooking]]></category>

		<category><![CDATA[recipe]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/homemade/apple-crumble.html</guid>
		<description><![CDATA[My last few articles have been very technical, so to slow the pace down a little, here&#8217;s an Apple Crumble I made the other day. I was kind of winging it but it turned out pretty good. I&#8217;ll write it here so I can remember the recipe.
Before you start, preheat your oven to 180°.
The Apple

850g [...]]]></description>
			<content:encoded><![CDATA[<p>My last few articles have been very technical, so to slow the pace down a little, here&#8217;s an Apple Crumble I made the other day. I was kind of winging it but it turned out pretty good. I&#8217;ll write it here so I can remember the recipe.</p>
<p>Before you start, preheat your oven to 180°.</p>
<p><strong>The Apple</strong></p>
<ul>
<li>850g Apples (I used &#8220;Pink Lady&#8221; apples but any kind would probably do)</li>
<li>2 tablespoons Brown Sugar</li>
</ul>
<p>Core the apples, cut them in half or quarters and slice them with the skin still on. Mix the sugar with about 50ml of water and put it with the apples in a pan. Stew until soft.</p>
<p><strong>The Crumble</strong></p>
<ul>
<li>175g Plain Flour</li>
<li>100g Brown Sugar</li>
<li>125g Butter</li>
<li>100g Oats</li>
<li>½ teaspoon Cinnamon</li>
</ul>
<p>Put the oats into a food processor and lacerate them into small pieces. Then dump in the rest of the ingredients and process until it is well mixed.</p>
<p>Put the stewed apples into a baking dish. There was some liquid left over from the stewing, I did not drain it.</p>
<p>Then sprinkle the crumble over the top. Do not pack it down, you want it light and crumbly.</p>
<p>I baked it for about 50 minutes, it was OK but that was probably too long. Next time I&#8217;ll try about 30 minutes.</p>
<p>Serve with whipped cream or ice cream. You&#8217;ll get about 12 serves from these quantities.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/homemade/apple-crumble.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cross compile for 68000 in C under Windows</title>
		<link>http://www.doctort.org/adam/nerd-notes/cross-compile-for-68000-in-c-under-windows.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/cross-compile-for-68000-in-c-under-windows.html#comments</comments>
		<pubDate>Wed, 27 Feb 2008 11:03:52 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<category><![CDATA[68000]]></category>

		<category><![CDATA[68k]]></category>

		<category><![CDATA[c]]></category>

		<category><![CDATA[compile]]></category>

		<category><![CDATA[cross]]></category>

		<category><![CDATA[cygwin]]></category>

		<category><![CDATA[gcc]]></category>

		<category><![CDATA[gnu]]></category>

		<category><![CDATA[m68k]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/nerd-notes/cross-compile-for-68000-in-c-under-windows.html</guid>
		<description><![CDATA[This article contains my notes for setting up a m68k cross-compiler using Cygwin. It&#8217;s all free software and gives me a way to create binary images for a 68000 CPU from C code on Windows. Here&#8217;s the step-by-step to set it up:
Step 1. Install Cygwin
Go to http://www.cygwin.com/ and download setup.exe. Run it.
During the setup, you [...]]]></description>
			<content:encoded><![CDATA[<p>This article contains my notes for setting up a m68k cross-compiler using Cygwin. It&#8217;s all free software and gives me a way to create binary images for a 68000 CPU from C code on Windows. Here&#8217;s the step-by-step to set it up:</p>
<p><strong>Step 1. Install Cygwin</strong></p>
<p>Go to <a href="http://www.cygwin.com/" target="_blank">http://www.cygwin.com/</a> and download setup.exe. Run it.</p>
<p>During the setup, you will have the opportunity to select what packages to install. Choose the following:</p>
<ul>
<li>binutils</li>
<li>gcc-core</li>
<li>bzip2</li>
<li>flex</li>
<li>make</li>
</ul>
<p><strong>Step 2. Download the compiler source code</strong></p>
<p>You want binutils and gcc-core from GNU. Go to the <a href="http://www.gnu.org/order/ftp.html" target="_blank">GNU download page</a>, choose a mirror and download the following files. Place them in your Cygwin home directory.</p>
<ul>
<li>binutils-2.15.tar.bz2</li>
<li>gcc-core-3.4.2.tar.bz2</li>
</ul>
<p>Yes there are more up-to-date versions but at the time of writing, the latest gcc versions do not support the 68000 platform. Feel free to try different versions but I know the versions just mentioned will work.</p>
<p><strong>Step 3. Compile and install binutils</strong></p>
<p>Launch Cygwin and type the following commands. Typing this kind of stuff is automatic for me these days. Its a pretty standard GNU setup procedure.</p>
<pre>mkdir /usr/local/m68k

tar jxvf binutils-2.15.tar.bz2

cd binutils-2.15/

./configure --prefix=/usr/local/m68k --target=m68k-coff

make install</pre>
<p><strong>Step 4. Compile and install gcc</strong></p>
<p>Same again for the C compiler.</p>
<pre>cd ~

export PATH=$PATH:/usr/local/m68k/bin

tar jxvf gcc-core-3.4.2.tar.bz2

cd gcc-core-3.4.2/

./configure --prefix=/usr/local/m68k --target=m68k-coff --enable-languages=c

make install</pre>
<p><strong>Step 5. Set up your path</strong></p>
<p>The 68000 compiler will be located in /usr/local/m68k/bin. To make life easier, you might like to add the following to your ~/.bashrc file:</p>
<pre>export PATH=$PATH:/usr/local/m68k/bin</pre>
<p><strong>Step 6. Enjoy</strong></p>
<p>Here&#8217;s the command to compile some C code:</p>
<pre>m68k-coff-gcc -o test.out test.c</pre>
<p>And the command to create a binary image from the compiled code:</p>
<pre>m68k-coff-objcopy -O binary test.out test.bin</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/cross-compile-for-68000-in-c-under-windows.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Setup of RAID5 without losing data</title>
		<link>http://www.doctort.org/adam/nerd-notes/setup-of-raid5-without-losing-data.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/setup-of-raid5-without-losing-data.html#comments</comments>
		<pubDate>Mon, 04 Feb 2008 22:46:02 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<category><![CDATA[copy]]></category>

		<category><![CDATA[degraded]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[mdadm]]></category>

		<category><![CDATA[raid]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/general/setup-of-raid5-without-losing-data.html</guid>
		<description><![CDATA[I have here a server (Debian Linux of course) which is storing its data on a 1TB hard drive. I want to upgrade the storage to a RAID5 using 4x 1TB drives. I&#8217;d like the existing drive to be a part of the RAID array so I only need to buy 3 new drives, but [...]]]></description>
			<content:encoded><![CDATA[<p>I have here a server (Debian Linux of course) which is storing its data on a 1TB hard drive. I want to upgrade the storage to a RAID5 using 4x 1TB drives. I&#8217;d like the existing drive to be a part of the RAID array so I only need to buy 3 new drives, but I don&#8217;t want to lose the 600G or so of data on it.</p>
<p>The solution ? Set up a degraded array, copy the data and then add the original disk to the array.</p>
<p>Put simply, a degraded array is a RAID array with one or more drives missing. RAID5 can operate with any one drive down. This is very useful if a drive fails, you can replace the faulty drive without losing any data. So we are going to pretend the drive with the data on it is &#8216;faulty&#8217; so it won&#8217;t be part of the RAID until later when we miraculously &#8216;fix&#8217; it.</p>
<p>On my machine, the new drives are /dev/sde, /dev/sdf and /dev/sdg. The drive with the data is /dev/sdh1. First we partition the new drives. You&#8217;ll need to type these two commands for each new drive:</p>
<pre>echo ",,L" | sfdisk /dev/sde

sfdisk --change-id /dev/sd1 1 fd</pre>
<p>You don&#8217;t have to use sfdisk, as long as you set up the partitions somehow and set them to type 0xFD (Linux RAID).</p>
<p>Now to create the degraded array. This is the magic bit.</p>
<pre>mdadm --create /dev/md3 --level=5 --raid-devices=4 --spare-devices=0 /dev/sde1 /dev/sdf1 /dev/sdg1 missing</pre>
<p>The magic word <strong>missing</strong> stands in for the drive with the data on it.</p>
<p>Next format the RAID array, mount the data drive and copy the data</p>
<pre>mkfs.xfs /dev/md3

mount /dev/md3 /home/adam

mount /dev/sdh1 /mnt

cp -prv /mnt/* /home/adam/</pre>
<p>This will take a while so you might want to do it in a <a href="http://www.doctort.org/adam/nerd-notes/watch-and-screen.html">screen session</a>.</p>
<p>Finally, after the data is copied, we can add the data drive to the array. This is the bit where we can lose everything if it goes wrong so check your data is all on the RAID before proceeding.</p>
<pre>umount /dev/sdh1

sfdisk --change-id /dev/sdh 1 fd

mdadm --manage /dev/md3 --add /dev/sdh1</pre>
<p>I&#8217;m really pleased at this neat trick. I&#8217;ve now got a shiny RAID array with a total storage of 3TB. It all worked so well, I just had to blog about it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/setup-of-raid5-without-losing-data.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Mud Soup</title>
		<link>http://www.doctort.org/adam/homemade/mud-soup.html</link>
		<comments>http://www.doctort.org/adam/homemade/mud-soup.html#comments</comments>
		<pubDate>Sun, 03 Feb 2008 06:08:56 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Bizarre Stuff]]></category>

		<category><![CDATA[Homemade Creations]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/homemade/mud-soup.html</guid>
		<description><![CDATA[Its nice to know that while I was obsessing over my circuit board, the kids were busy making stuff too. A wonderful Mudistrone Soup!
They are so proud of it.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.doctort.org/adam/wp-content/uploads/2008/02/mudsoup.png" alt="mudsoup.png" align="right" />Its nice to know that while I was <a href="http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-1.html">obsessing over</a> my <a href="http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-2.html">circuit board</a>, the kids were busy making stuff too. A wonderful Mudistrone Soup!</p>
<p>They are so proud of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/homemade/mud-soup.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>UUIDs in the fstab</title>
		<link>http://www.doctort.org/adam/nerd-notes/uuids-in-the-fstab.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/uuids-in-the-fstab.html#comments</comments>
		<pubDate>Fri, 01 Feb 2008 22:54:06 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[drive]]></category>

		<category><![CDATA[fstab]]></category>

		<category><![CDATA[mount]]></category>

		<category><![CDATA[uuid]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/nerd-notes/uuids-in-the-fstab.html</guid>
		<description><![CDATA[I have a machine with about 8 SATA hard drives in it some of which are connected to a PCI controller card and some are on the motherboard. I have an issue with Debian that it keeps swapping the device nodes around on reboot. Sometimes the first drive will be /dev/sda, other times it will [...]]]></description>
			<content:encoded><![CDATA[<p>I have a machine with about 8 SATA hard drives in it some of which are connected to a PCI controller card and some are on the motherboard. I have an issue with Debian that it keeps swapping the device nodes around on reboot. Sometimes the first drive will be /dev/sda, other times it will be /dev/sde. Somehow the system manages to boot up OK but when it comes time to mount the drives, all hell breaks loose!</p>
<p>My solution is to mount the drives by their UUID rather than by their device node. It took me quite a bit of Googling to find an example of how to do this so I thought I&#8217;d write it here so I will know for next time.</p>
<p>Normally, I&#8217;d put an entry in <strong>/etc/fstab</strong> like this to mount a drive:</p>
<pre>/dev/sdb1  /var/www  ext3  defaults  0  2</pre>
<p>But now I change it like so:</p>
<pre>UUID=bd412298-d540-4e4e-8f31-33ff45644bc4  /var/www  ext3  defaults  0  2</pre>
<p>You&#8217;ll notice it is exactly the same except I have used the UUID instead of /dev/sdb1.</p>
<p>But wait! I hear you ask, how do you find out what your drive&#8217;s UUID is ?</p>
<p>Well, I have the answer for that too:</p>
<pre>ls -l /dev/disk/by-uuid/</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/uuids-in-the-fstab.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>IVTV Device Node Problems - Solved</title>
		<link>http://www.doctort.org/adam/nerd-notes/ivtv-device-node-problems-solved.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/ivtv-device-node-problems-solved.html#comments</comments>
		<pubDate>Fri, 01 Feb 2008 03:06:37 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/nerd-notes/ivtv-device-node-problems-solved.html</guid>
		<description><![CDATA[I&#8217;ve got a Debian machine here which is set up for TV recording. It is fully stacked with 2 x cx88 DTV cards and 3 x PVR150 cards using the IVTV driver. I&#8217;m running Debian Etch which comes with version 0.8.2 of the ivtv driver at the time of writing.
The problem is that the PVR150 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a Debian machine here which is set up for TV recording. It is fully stacked with 2 x cx88 DTV cards and 3 x PVR150 cards using the IVTV driver. I&#8217;m running Debian Etch which comes with version 0.8.2 of the ivtv driver at the time of writing.</p>
<p>The problem is that the PVR150 cards sometimes register themselves as /dev/video0, 1 and 2 but other times, after a reboot they register themselves as /dev/video2, 3 and 4. I needed some way to make them stay on the same device nodes.</p>
<p>Enter this little UDEV rules file I wrote. It creates new device nodes called /dev/ivtvenc0, /dev/ivtvenc1 etc. up to however many cards you have. These will symlink to the correct device nodes every time. Here&#8217;s the script. Call it <strong>010_ivtv.rules</strong> and put it in <strong>/etc/udev/rules.d/</strong></p>
<pre># Rule to sort out those pesky IVTV cards which never
# seem to load in the correct order when DTV cards are
# also installed.
# by Adam Pierce 01-Feb-2008

ATTR{name}=="ivtv0 encoder MPEG",SYMLINK+="ivtvenc0"
ATTR{name}=="ivtv1 encoder MPEG",SYMLINK+="ivtvenc1"
ATTR{name}=="ivtv2 encoder MPEG",SYMLINK+="ivtvenc2"
ATTR{name}=="ivtv3 encoder MPEG",SYMLINK+="ivtvenc3"
ATTR{name}=="ivtv4 encoder MPEG",SYMLINK+="ivtvenc4"
ATTR{name}=="ivtv5 encoder MPEG",SYMLINK+="ivtvenc5"
ATTR{name}=="ivtv6 encoder MPEG",SYMLINK+="ivtvenc6"
ATTR{name}=="ivtv7 encoder MPEG",SYMLINK+="ivtvenc7"</pre>
<p>Watch it in action. Here it is after one reboot:</p>
<pre># ls -l /dev/ivtv*
lrwxrwxrwx 1 root root 6 2008-02-01 13:54 /dev/ivtvenc0 -&gt; video0
lrwxrwxrwx 1 root root 6 2008-02-01 13:54 /dev/ivtvenc1 -&gt; video1
lrwxrwxrwx 1 root root 6 2008-02-01 13:54 /dev/ivtvenc2 -&gt; video2</pre>
<p>And again after the next reboot</p>
<pre># ls -l /dev/ivtv*
lrwxrwxrwx 1 root root 6 2008-02-01 13:54 /dev/ivtvenc0 -&gt; video2
lrwxrwxrwx 1 root root 6 2008-02-01 13:54 /dev/ivtvenc1 -&gt; video3
lrwxrwxrwx 1 root root 6 2008-02-01 13:54 /dev/ivtvenc2 -&gt; video4</pre>
<p>Now I can always rely on the ivtvenc device nodes to point at the right cards.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/ivtv-device-node-problems-solved.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Solder Reflow with a Frying Pan - part 2</title>
		<link>http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-2.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-2.html#comments</comments>
		<pubDate>Wed, 30 Jan 2008 10:08:24 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Homemade Creations]]></category>

		<category><![CDATA[Nerd Notes]]></category>

		<category><![CDATA[electronics]]></category>

		<category><![CDATA[skillet]]></category>

		<category><![CDATA[soldering]]></category>

		<category><![CDATA[surface mount]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-2.html</guid>
		<description><![CDATA[Now that my pan is ready, it is time to do this. First I needed a board. I got one of my designs prototyped by Batch PCB who are cheap and did a good job but I had to wait about six weeks which is OK for hobbyists but I wouldn&#8217;t want to be in [...]]]></description>
			<content:encoded><![CDATA[<p>Now that my pan is ready, it is time to do this. First I needed a board. I got one of my designs prototyped by <a href="http://www.batchpcb.com/">Batch PCB</a> who are cheap and did a good job but I had to wait about six weeks which is OK for hobbyists but I wouldn&#8217;t want to be in a hurry.</p>
<p><img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/rubberglove.png" alt="rubberglove.png" align="right" />This solder paste stuff is pretty toxic. Perhaps I&#8217;m going overboard here but I thought some rubber gloves would be a good idea.<br />
<br clear="all" /><br />
<img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/solderpaste.png" alt="What a mess!" align="right" />To apply the paste, I just squirted it on the board. It kinda went everywhere at first until I got the hang of it. Next time I&#8217;ll get a smaller tube and perhaps a smaller nozzle. I fixed it up as best I could using a toothpick and cotton tips.  It took quite a lot longer and was much more messy than I anticipated.<br />
<br clear="all" /><br />
<img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/pickandplace2.png" alt="pickandplace2.png" align="right" />Next comes the pick-and-place. I got most of my parts from <a href="http://www.digikey.com/">Digi-key</a> who send them out as &#8220;Cut tape&#8221; which is pretty convenient, you just peel the backing off the tape until you get the quantity of parts you need and the rest are left still attached to the tape so you don&#8217;t lose them in the carpet. I positioned the parts with tweezers since most of them are incredibly teeny.</p>
<p>My board includes both surface-mount and through-hole components. I just placed the SMT stuff at this stage because I need the back of the board to be flat for heat transfer.</p>
<p>Now for the fun bit. I put the loaded board onto the pan cold. Then I increased temperature to around 100°C. I left it at that heat for a minute to get everything nice and warm. Then I cranked up the heat to maximum (in my case, 175°) until the solder melted. It was magic to watch. Everything just blobbed into place. Even components which were not exactly positioned right pulled themselves into line.</p>
<p>After a slow cool-down over 5 minutes, I examined the board. Everything looks good to my eye except for some pretty major bridging between the pins of my ARM chip. I&#8217;ll leave dealing with these to part 3.</p>
<p>In the end though, I&#8217;m pretty pleased with the result. Not bad for my first try!</p>
<p style="text-align: center"><img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/reflowshowingsolderbridges.png" alt="A few bridges there!" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-2.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Solder Reflow with a Frying Pan - part 1</title>
		<link>http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-1.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-1.html#comments</comments>
		<pubDate>Sun, 27 Jan 2008 06:46:53 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Homemade Creations]]></category>

		<category><![CDATA[Nerd Notes]]></category>

		<category><![CDATA[electronics]]></category>

		<category><![CDATA[soldering]]></category>

		<category><![CDATA[surface mount]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-1.html</guid>
		<description><![CDATA[I&#8217;ve been dying to have a go at this ever since I read some hobbyist websites on how to do solder reflow at home. I never even thought this was possible to do on a hobbyist budget.
The idea is to use a frying pan or toaster oven to perform solder reflow for SMT circuit boards. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been dying to have a go at this ever since I read some hobbyist websites on how to do solder reflow at home. I never even thought this was possible to do on a hobbyist budget.</p>
<p align="left"><img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/electricskillet.png" alt="Electric Skillet" align="right" />The idea is to use a frying pan or toaster oven to perform solder reflow for SMT circuit boards. I decided to use a skillet thinking that a toaster oven would melt components since it heats both top and bottom.</p>
<p>I managed to find the perfect thing. A pre-owned 9&#8243; electric skillet from the Salvation Army shop for $3.</p>
<p>Believe it or not, this device is not a precision instrument. The temperature dial is simply numbered from 1 to 10. The first thing I need to do is get some idea of what actual temperature this thing gets to.<br />
<br clear="all" /><br />
<img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/skillettemperature.png" alt="Measuring the temperature" align="right" />So I need to do a scientific experiment. Firstly I put some oil in the pan and stuck in a thermometer (the fork is to hold the probe in the oil). Then I turned up the heat slowly making a note of the temperature. Finally I graphed the result. Here are the results in degrees C. That cheap little temperature knob is surprisingly linear.</p>
<ol>
<li>Element not energized</li>
<li>30°</li>
<li>46°</li>
<li>65°</li>
<li>90°</li>
<li>105°</li>
<li>125°</li>
<li>140°</li>
<li>&gt;150°</li>
<li>&gt;150°</li>
</ol>
<p>The last two entries I could not measure since the thermometer only went up to 150°C, but by extrapolation I get 155° and 175°. Yes I did this on paper, it is much quicker than using Excel!<br />
<br clear="all" /></p>
<p style="text-align: center"><img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/skillettemperaturegraph.png" alt="The results" /></p>
<p><br clear="all" />I am now ready to use this thing for solder reflow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/solder-reflow-with-a-frying-pan-part-1.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Warcraft II on Windows XP, A step-by-step guide</title>
		<link>http://www.doctort.org/adam/nerd-notes/warcraft-ii-on-windows-xp-a-step-by-step-guide.html</link>
		<comments>http://www.doctort.org/adam/nerd-notes/warcraft-ii-on-windows-xp-a-step-by-step-guide.html#comments</comments>
		<pubDate>Sat, 26 Jan 2008 11:11:57 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[Nerd Notes]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/nerd-notes/warcraft-ii-on-windows-xp-a-step-by-step-guide.html</guid>
		<description><![CDATA[Warcraft II - Tides of Darkness.  I used to love this old DOS game way back when. But now I want to run it on Windows XP. Yes, it is possible. Here&#8217;s how.
DOS Emulation
First you need the very excellent DOSBOX which is a DOS emulator. You can download it from http://www.dosbox.com/.
Once DOSBOX is installed, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Warcraft II - Tides of Darkness</strong>.  I used to love this old DOS game way back when. But now I want to run it on Windows XP. Yes, it is possible. Here&#8217;s how.</p>
<h4><img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/dosboxmount-small.png" alt="DOSBOX" align="right" />DOS Emulation</h4>
<p>First you need the very excellent <strong>DOSBOX </strong>which is a DOS emulator. You can download it from <a href="http://www.dosbox.com/">http://www.dosbox.com/</a>.</p>
<p>Once DOSBOX is installed, we need somewhere to put our DOS games. I created a folder called <strong>C:\DOSGAMES</strong> for this purpose.<br />
<br clear="all" /><br />
Now it is time to run DOSBOX. Once it is going, type the following two commands:</p>
<pre>mount c C:\DOSGAMES\

mount d D:\ -t cdrom</pre>
<p><font color="#c0c0c0"><em>NOTE: If your CD-ROM drive is not D:\, modify this accordingly.</em> </font></p>
<p>Then you can insert your Warcraft II CD. The game can be installed like so:</p>
<pre>D:

SETUP</pre>
<p>Just select all the default options except for the soundcard and music device which you should set to <strong>Soundblaster 16</strong>.<br />
<br clear="all" /></p>
<h4> Making an icon</h4>
<p>At this point you can run the game by typing WAR2. But I don&#8217;t want to stop there. Let&#8217;s now make a pretty icon so you can launch the game with a mouse-click.</p>
<p>Open the folder <strong>C:\Program Files\DOSBox-0.72</strong> and find the file <strong>dosbox.conf</strong>. Copy it to your <strong>C:\DOSGAMES\WAR2</strong> folder.</p>
<p>Edit the copy of <strong>dosbox.conf</strong> and add the following line to the bottom under the [autoexec] section:</p>
<pre>mount d D:\ -t cdrom</pre>
<p>I&#8217;ve found it is also a good idea to reduce the speed of CPU emulation otherwise the map can scroll too fast. Modify the <strong>cycles</strong> entry in dosbox.conf like so:</p>
<pre>cycles=20000</pre>
<p>Now save the changes you made to dosbox.conf.</p>
<p><img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/warcraft2icon.png" alt="Warcraft II Icon" align="right" />Copy the DOSBOX icon on your desktop. Rename the copy to &#8220;Warcraft II&#8221;. Now right-click on the icon and select <strong>Properties</strong>.</p>
<p><br clear="all" /><br />
Enter the following text (all on one line) into the <strong>Target </strong>box:</p>
<pre> "C:\Program Files\DOSBox-0.72\dosbox.exe" "C:\DOSGAMES\WAR2\WAR2.EXE"
-conf "C:\DOSGAMES\WAR2\dosbox.conf" -exit -fullscreen</pre>
<p>Then finally click on the <strong>Change Icon</strong> button.</p>
<p>Click Browse and navigate to the folder <strong>C:\DOSGAMES\WAR2</strong>. Double-click the file <strong>WAR2ICON.DLL</strong>.</p>
<p>Choose the WarCraft icon and then click OK. Click OK on the shortcut properties window also.</p>
<p>Now we are done. Click the WarCraft icon and enjoy!</p>
<p style="text-align: center"><img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/warcraft2screenshotsmall.png" alt="Warcraft II" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/nerd-notes/warcraft-ii-on-windows-xp-a-step-by-step-guide.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Multicomp on Linux</title>
		<link>http://www.doctort.org/adam/general/multicomp-on-linux.html</link>
		<comments>http://www.doctort.org/adam/general/multicomp-on-linux.html#comments</comments>
		<pubDate>Thu, 17 Jan 2008 10:59:33 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/general/multicomp-on-linux.html</guid>
		<description><![CDATA[Hey, Multicomp runs pretty good under Ubuntu using WINE!

]]></description>
			<content:encoded><![CDATA[<p>Hey, <a href="http://doctort.org/adam/product/multicomp/">Multicomp</a> runs pretty good under Ubuntu using WINE!</p>
<p><img src="http://www.doctort.org/adam/wp-content/uploads/2008/01/multicomp-on-linux.png" alt="multicomp-on-linux.png" align="middle" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/general/multicomp-on-linux.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>SpamBam - anti spam for Wordpress</title>
		<link>http://www.doctort.org/adam/general/spambam-anti-spam-for-wordpress.html</link>
		<comments>http://www.doctort.org/adam/general/spambam-anti-spam-for-wordpress.html#comments</comments>
		<pubDate>Mon, 14 Jan 2008 23:07:57 +0000</pubDate>
		<dc:creator>adam</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.doctort.org/adam/general/spambam-anti-spam-for-wordpress.html</guid>
		<description><![CDATA[I&#8217;ve been using the excellent Wordpress blogging software for a year and a half now and it has been good - except for the comment spam. By the end of 2007 I was getting more than 100 comment spams every day and I was mighty tired of manually deleting them.
Then I found SpamBam by Gareth [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the excellent <a href="http://wordpress.org/">Wordpress</a> blogging software for a year and a half now and it has been good - except for the comment spam. By the end of 2007 I was getting more than 100 comment spams every day and I was mighty tired of manually deleting them.</p>
<p>Then I found <a href="http://www.thespanner.co.uk/category/spam-bam/">SpamBam</a> by <a href="http://www.thespanner.co.uk/">Gareth Hayes</a>. I&#8217;ve been running it for two months now and in that time I have received no spam. None. Not a single one.</p>
<p>If that isn&#8217;t the best anti-spam plugin ever, I&#8217;ll eat my hard drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doctort.org/adam/general/spambam-anti-spam-for-wordpress.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
