<?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>Zack of All Trades &#187; How-To</title>
	<atom:link href="http://zackofalltrades.com/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://zackofalltrades.com</link>
	<description>… and master of, um… let me get back to you on that…</description>
	<lastBuildDate>Sat, 13 Mar 2010 03:41:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>bc</title>
		<link>http://zackofalltrades.com/2010/03/bc/</link>
		<comments>http://zackofalltrades.com/2010/03/bc/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 03:24:01 +0000</pubDate>
		<dc:creator>Zack Williams</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://zackofalltrades.com/?p=162</guid>
		<description><![CDATA[This post is mainly inspired by <a href="http://www.marco.org/441168915">this post by Marco</a>, about <a href="http://www.acqualia.com/soulver/">Soulver</a>, which has, in their words, a "word processor style interface".   I view this as a way to avoid saying "Command Line", which it basically is. 

I'm kind of surprised at this veneration - the concept is nothing new, as there's already as similar calculator built into Mac OS X and other Unix operating systems, called <a href="http://www.gnu.org/software/bc/">bc</a>, which is pretty much identical in functionality, with a few quirks. 
]]></description>
			<content:encoded><![CDATA[<p>This post is mainly inspired by <a href="http://www.marco.org/441168915">this post by Marco</a>, about <a href="http://www.acqualia.com/soulver/">Soulver</a>, which has, in their words, a &#8220;word processor style interface&#8221;.   I view this as a way to avoid saying &#8220;Command Line&#8221;, which it basically is. </p>
<p>I&#8217;m kind of surprised at this veneration &#8211; the concept is nothing new, as there&#8217;s already as similar calculator built into Mac OS X and other Unix operating systems, called <a href="http://www.gnu.org/software/bc/">bc</a>, which is pretty much identical in functionality, with a few quirks. </p>
<p>The first time you load <code>bc</code> up and use it, you&#8217;ll probably find that it&#8217;s defaults aren&#8217;t the best &#8211; for example, when dividing a number, you get only the quotient back (the part in front of the decimal place), which isn&#8217;t too useful in most cases.  </p>
<pre>
10/3
3
</pre>
<p>If you set the &#8220;scale&#8221; variable it will return a proper float with that number of digits: </p>
<pre>
scale=5
10/3
3.33333
</pre>
<p>Also, the gnu version of <code>bc</code> prints a gnu advertisement at the front of every session:</p>
<pre>
$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
</pre>
<p>The fix for this is as follows &#8211; <code>bc</code> (at least the common gnu version) will take a set of arguments from an environmental variable (set in your <code>.profile</code> or similar shell init script) like so:</p>
<pre>
BC_ENV_ARGS='-q /Users/username/.bc'
</pre>
<p>The <code>-q</code> suppresses the advert, and the path to my <code>.bc</code> file is a set of commands that is executed before every session. Note that it needs a full path supplied &#8211; you can&#8217;t use ~ to specify your home folder, as <code>bc</code> doesn&#8217;t perform shell expansion on it&#8217;s arguments passed in this way.  My <code>.bc</code> file is simple &#8211; it just sets the scale variable:</p>
<pre>
scale=5
</pre>
<p>You could also predefine functions and variables as well in there if you cared to.  </p>
]]></content:encoded>
			<wfw:commentRss>http://zackofalltrades.com/2010/03/bc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How slow is a floppy?</title>
		<link>http://zackofalltrades.com/2009/12/how-slow-is-a-floppy/</link>
		<comments>http://zackofalltrades.com/2009/12/how-slow-is-a-floppy/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 21:22:07 +0000</pubDate>
		<dc:creator>Zack Williams</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://zackofalltrades.com/?p=157</guid>
		<description><![CDATA[This slow:

# dd if=dban-1.0.7_i386.ima of=/dev/disk3
2880+0 records in
2880+0 records out
1474560 bytes transferred in 192.277221 secs (7669 bytes/sec)

That&#8217;s over 3 minutes, using a USB floppy drive connected my MacBook Pro.  
(I needed a copy of DBAN on floppy so I could erase an ancient 60Mhz Pentium) 
]]></description>
			<content:encoded><![CDATA[<p>This slow:</p>
<pre>
# dd if=dban-1.0.7_i386.ima of=/dev/disk3
2880+0 records in
2880+0 records out
1474560 bytes transferred in 192.277221 secs (7669 bytes/sec)
</pre>
<p>That&#8217;s over 3 minutes, using a USB floppy drive connected my MacBook Pro.  </p>
<p>(I needed a copy of <a href="http://www.dban.org/">DBAN</a> on floppy so I could erase an ancient 60Mhz Pentium) </p>
]]></content:encoded>
			<wfw:commentRss>http://zackofalltrades.com/2009/12/how-slow-is-a-floppy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling for multiple processor architectures in Mac OS X 10.5 Leopard</title>
		<link>http://zackofalltrades.com/2008/11/compiling-for-multiple-processor-architectures-in-mac-os-x-105-leopard/</link>
		<comments>http://zackofalltrades.com/2008/11/compiling-for-multiple-processor-architectures-in-mac-os-x-105-leopard/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 06:45:26 +0000</pubDate>
		<dc:creator>Zack Williams</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://zackofalltrades.com/?p=149</guid>
		<description><![CDATA[If you're compiling code on Mac OS X 10.5 Leopard from source with standard Unix tools like make, your resulting binary will usually be compiled only for the architecture you're currently running on.   Here's how to fix that. ]]></description>
			<content:encoded><![CDATA[<p>This is probably covered elsewhere in far greater detail, but I thought I&#8217;d drop a note here for my own reference more than anything. </p>
<p>If you&#8217;re compiling code on Mac OS X 10.5 Leopard from source with standard Unix tools like <code>make</code>, your resulting binary will usually be compiled only for the architecture you&#8217;re currently running on.   For example, when I first compiled a copy of <a href="http://sourceforge.net/projects/pwgen/">pwgen</a> for making sets of random passwords, the binary I got was i386 only: </p>
<pre>
$ file pwgen
pwgen: Mach-O executable i386
</pre>
<p>But, if you modify the Makefile to include the 4 architectures that Mac OS X (currently) supports: </p>
<pre>
CFLAGS = -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64
LDFLAGS =  -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64
</pre>
<p>GCC will be run with those options when compiling the code and creating the final binary, and you&#8217;ll get a &#8220;fat&#8221; binary that supports all the processor architectures: </p>
<pre>
$ file pwgen
pwgen: Mach-O universal binary with 4 architectures
pwgen (for architecture ppc7400):	Mach-O executable ppc
pwgen (for architecture ppc64):	Mach-O 64-bit executable ppc64
pwgen (for architecture i386):	Mach-O executable i386
pwgen (for architecture x86_64):	Mach-O 64-bit executable x86_64
</pre>
<p>Note that doing compiling anything on OS X will require that you install the Developer Tools, which you can download from the <a href="http://developer.apple.com/">Apple Developer Connection</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://zackofalltrades.com/2008/11/compiling-for-multiple-processor-architectures-in-mac-os-x-105-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Bluetooth and Optical dropouts on a Mac Mini</title>
		<link>http://zackofalltrades.com/2008/11/fixing-bluetooth-and-optical-dropouts-on-a-mac-mini/</link>
		<comments>http://zackofalltrades.com/2008/11/fixing-bluetooth-and-optical-dropouts-on-a-mac-mini/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 21:24:25 +0000</pubDate>
		<dc:creator>Zack Williams</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[mac mini]]></category>

		<guid isPermaLink="false">http://zackofalltrades.com/?p=147</guid>
		<description><![CDATA[The Bluetooth and Optical Drive stopped working reliably on my Mac Mini a few days ago. Here's what I did to fix it.]]></description>
			<content:encoded><![CDATA[<p>Bluetooth stopped working reliably on my Mac Mini (2.0Ghz Intel Core2Duo) a few days ago.   It would work for a while, then nothing.  Finally I got a menu bar icon that looked like this: </p>
<p><img src="http://zackofalltrades.com/wp-content/uploads/2008/11/bt-menu-x.png" alt="bt_menu_x.png" border="0" width="208" height="53" /></p>
<p>Obviously that&#8217;s not correct, as the bluetooth card is built in, and should always be connected.  </p>
<p>At first I though I just had a bad bluetooth card, but then I started having issues reading CDs and DVD&#8217;s in the optical drive and the lightbulb went on in my head.  </p>
<p>Both these components are electrically connected via a mezzanine board inside the Mac Mini. There are some good pictures of this <a href="http://www.applefritter.com/Mac_Mini_Take_Apart_Guide">here at AppleFritter.com</a>.  Basically, to put memory into a Mini, you have to disconnect and lift off the subframe which contains the optical, hard disk, bluetooth, and a ribbon cable to the audio connectors, all of which connect via the mezzanine board.</p>
<p>To fix, I just popped open the Mini again, lifted the subframe and mezzanine board out then and plugged it back in, and everything was back to normal.  It must have worked it&#8217;s way loose when I installed it, or due to thermal expansion/contraction after using it for the last year. </p>
<p>Moral of the story? If your Mini is acting weird, try reseating the internal components.   </p>
]]></content:encoded>
			<wfw:commentRss>http://zackofalltrades.com/2008/11/fixing-bluetooth-and-optical-dropouts-on-a-mac-mini/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extracting useful dates from bank CSV files</title>
		<link>http://zackofalltrades.com/2008/10/extracting-useful-dates-from-bank-csv-files/</link>
		<comments>http://zackofalltrades.com/2008/10/extracting-useful-dates-from-bank-csv-files/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 04:52:17 +0000</pubDate>
		<dc:creator>Zack Williams</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bank]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[financial]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[spreadsheet]]></category>

		<guid isPermaLink="false">http://zackofalltrades.com/?p=142</guid>
		<description><![CDATA[I download activity from my bank in CSV format to work on it in a spreadsheet, which is pretty useful when you're reconciling accounts, etc.  Unfortunately, the date as given in the file isn't in a format recognizable by a spreadsheet. Here's how to change that. ]]></description>
			<content:encoded><![CDATA[<p>I download activity from my bank in CSV format to work on it in a spreadsheet, which is pretty useful when you&#8217;re reconciling accounts, etc.  Unfortunately, the date as given in the file isn&#8217;t in a format recognizable by a spreadsheet (Excel in this case, but most other spreadsheet programs use an identical formula language).  Here&#8217;s how to change that. </p>
<p>The date format as it comes from the bank looks like this:</p>
<pre>
20081009120000[0:GMT]
</pre>
<p>From a datestamp perspective, it&#8217;s pretty useful &#8211; gives the whole date and time, plus the timezone.  In my bank&#8217;s case, the time and timezone is always noon and GMT, so I&#8217;d much rather have just the date. </p>
<p>Assuming that the above value is in cell B1, this formula will extract a date in the considerably more useful YYYY-MM-DD format:</p>
<pre>
= LEFT(B1,4) &#038; "-" &#038; RIGHT(LEFT(B1,6),2) &#038; "-" &#038; RIGHT(LEFT(B1,8),2)
</pre>
<p>This formula prints 2008-10-09 for the above date string.  If you want to get rid of the original date column, copy the new column of dates, then do a &#8220;Paste Special&#8230;&#8221; selecting &#8220;Values&#8221;, and it will no longer be dependent on the original date column. </p>
]]></content:encoded>
			<wfw:commentRss>http://zackofalltrades.com/2008/10/extracting-useful-dates-from-bank-csv-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing to a non-xen kernel in CentOS 5 (so you can run VMware Server)</title>
		<link>http://zackofalltrades.com/2008/09/changing-to-a-non-xen-kernel-in-centos-5-so-you-can-run-vmware-server/</link>
		<comments>http://zackofalltrades.com/2008/09/changing-to-a-non-xen-kernel-in-centos-5-so-you-can-run-vmware-server/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 01:11:02 +0000</pubDate>
		<dc:creator>Zack Williams</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://zackofalltrades.com/?p=140</guid>
		<description><![CDATA[Quick instructions for changing your kernel out on CentOS 5 so you can run VMWare Server. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://vmware.com/">VMware</a> conflicts with the <a href="http://www.xen.org/">Xen</a> hypervisor in the Linux kernel, making their use mutually exclusive.  This is because they both use the hardware assisted virtualization features of the processor. </p>
<p>Why would you want to do this, when Xen can offer better performance than VMware?  Portability &#8211; I can run a VMware virtual machine on Mac under VMware Fusion, on Windows under VMware Server, Workstation, or Player.  </p>
<p>In my office, I&#8217;ve got a Dell Poweredge 830 with 8GB RAM, but my desktop computer is a Mac Mini which maxes out at 2GB RAM. It&#8217;s a no brainer to use the Dell for setting up the VM&#8217;s and then moving them to other machines when the time comes. </p>
<p>If your CentOS 5 box is running the xen kernel and try to install <a href="http://vmware.com/beta/server/">VMware Server 2.0</a> (currently in beta), you&#8217;ll get the following error when trying to install the RPM:</p>
<pre> You cannot install VMware Server on a system running a xen kernel</pre>
<p>As a result, you need to switch to a non-xen kernel.</p>
<p>To do this, you first need to install the kernel. <code>yum</code> makes this easy:</p>
<pre>yum install kernel</pre>
<p>Then remove xen and the kernel-xen packages:</p>
<pre>yum remove xen kernel-xen</pre>
<p>Then you have to specify which kernel you want to run in <code>/boot/grub/grub.conf</code>. In that file there&#8217;s a list of kernels available to boot from:</p>
<pre>
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.10.el5)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-92.1.10.el5 ro root=LABEL=/1 rhgb quiet
        initrd /boot/initrd-2.6.18-92.1.10.el5.img
title CentOS (2.6.18-92.1.10.el5xen)
        root (hd0,0)
        kernel /boot/xen.gz-2.6.18-92.1.10.el5
        module /boot/vmlinuz-2.6.18-92.1.10.el5xen ro root=LABEL=/1 rhgb quiet
        module /boot/initrd-2.6.18-92.1.10.el5xen.img
</pre>
<p>The line that says <code>default=</code> specifies which kernel to load, where 0 is the first one listed in the file.  In my case, I had to change the line that says <code>default=1</code> to <code>default=0</code> to specify the non-xen kernel. </p>
<p>Reboot, and you&#8217;re good to go &#8211; the VMware RPM will install, and VMware server runs just fine. </p>
]]></content:encoded>
			<wfw:commentRss>http://zackofalltrades.com/2008/09/changing-to-a-non-xen-kernel-in-centos-5-so-you-can-run-vmware-server/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Extending your blog to Facebook</title>
		<link>http://zackofalltrades.com/2008/05/extending-your-blog-to-facebook/</link>
		<comments>http://zackofalltrades.com/2008/05/extending-your-blog-to-facebook/#comments</comments>
		<pubDate>Fri, 09 May 2008 14:00:05 +0000</pubDate>
		<dc:creator>Zack Williams</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://zackofalltrades.com/?p=137</guid>
		<description><![CDATA[It's really easy to have Facebook post your blog's news feed to your Facebook Notes.  Here's how, with pictures!]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s really easy to have Facebook post your blog&#8217;s news feed to your Facebook Notes.  Here&#8217;s how, with pictures! This is a great way to let people who are just on Facebook and not active blog readers know about your blog and what&#8217;s going on with you. </p>
<p>First, you need to find your blog&#8217;s feed URL &#8211; it&#8217;s probably a link labeled something like &#8220;RSS&#8221; or &#8220;Atom&#8221; or &#8220;Feed&#8221; in the sidebar or at the bottom of each blog page.  You&#8217;ll want the one that has just your posts &#8211; some blogging entries will have multiple feeds &#8211; for example, one that is just comments other people have made.   Copy this URL &#8211; you&#8217;ll need it later. </p>
<p>Next, log into Facebook, and in the left hand navigation click on where it says &#8220;Notes&#8221; &#8211; you may have to click the &#8220;more&#8221; link to get it to show up:</p>
<p><img src="http://zackofalltrades.com/wp-content/uploads/2008/05/picture-1.png" alt="Picture 1.png" border="0" width="159" height="257" /></p>
<p>Once your notes have loaded, in the right column where it says &#8220;Notes Settings&#8221;, click &#8220;Import a Blog >>&#8221;:</p>
<p> <img src="http://zackofalltrades.com/wp-content/uploads/2008/05/picture-5.png" alt="Picture 5.png" border="0" width="185" height="95" /></p>
<p>In the next screen, paste the feed URL into where it says &#8220;Web URL:&#8221;, click the checkbox (after reading the copyright warning of course) and then press &#8220;Start Importing&#8221;:</p>
<p><img src="http://zackofalltrades.com/wp-content/uploads/2008/05/picture-7.png" alt="Picture 7.png" border="0" width="447" height="321" /></p>
<p>In a little bit, all the blog posts in your RSS feed should show up as Facebook Notes, with a link back to your blog. When you make a new post, it will be automatically added as soon as Facebook scrapes your RSS feed.  </p>
]]></content:encoded>
			<wfw:commentRss>http://zackofalltrades.com/2008/05/extending-your-blog-to-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Guide to using diff and patch to update a Wordpress Weblog</title>
		<link>http://zackofalltrades.com/2007/06/quick-guide-to-using-diff-and-patch-to-update-a-wordpress-weblog/</link>
		<comments>http://zackofalltrades.com/2007/06/quick-guide-to-using-diff-and-patch-to-update-a-wordpress-weblog/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 00:16:30 +0000</pubDate>
		<dc:creator>Zack Williams</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://zackofalltrades.com/2007/06/quick-guide-to-using-diff-and-patch-to-update-a-wordpress-weblog/</guid>
		<description><![CDATA[When you start <a href="http://codex.wordpress.org/Upgrading_WordPress">upgrading</a> multiple blogs, you'll soon realize that the standard process of updating Wordpress is time consuming, and requires a lot of manual intervention, so here's a way to automate it using two standard unix tools, <code>diff</code> and <code>patch</code>.  
]]></description>
			<content:encoded><![CDATA[<p>Updates frequently come out for <a href="http://wordpress.org/">Wordpress</a>, such as <a href="http://wordpress.org/development/2007/06/wordpress-221/">this most recent one.</a>  </p>
<p>When you start <a href="http://codex.wordpress.org/Upgrading_WordPress">upgrading</a> multiple blogs, you&#8217;ll soon realize that the standard process of updating Wordpress is time consuming, and requires a lot of manual intervention, so here&#8217;s a way to automate it using two standard unix tools, <code>diff</code> and <code>patch</code>.<br />
<code>diff</code> finds all the differences between two files and folders, whereas  <code>patch</code> takes the output of <code>diff</code> and makes the changes described in the patch file to the files and folders it is run on.  </p>
<p>This example goes from Wordpress 2.2 to Wordpress 2.2.1, but should work for any combination of releases. This won&#8217;t update any of your themes and plugins, and you should definitely make a backup before doing it &#8211; don&#8217;t blame me if you completely screw up your installation!</p>
<p><b>Step 1</b></p>
<p>Obtain copies of both versions of Wordpress you&#8217;re going to be using from the <a href="http://wordpress.org/download/release-archive/">Release Archive</a>,  and decompress them into two folders (we&#8217;ll call these wordpress22 and wordpress221, in this example)</p>
<p><b>Step 2</b></p>
<p>Run <code>diff</code> on the directories to generate a patch file.</p>
<p><code>diff -Naur -x .DS_Store wordpress22 wordpress221 > wp22_221.patch</code></p>
<p>(The <code>-x .DS_Store</code> argument is only needed on the Mac, which stores directory information in that file.  The other options make the diff unified, recurse through the directories, make it ascii, etc. &#8211; read the diff&#8217;s man page for more information)</p>
<p><b>Step 3</b></p>
<p>Apply the patch you created in step 2 using <code>patch</code>.  <code>cd</code> into the directory, and run the patch command:</p>
<p><code> patch -p 1 < /path/to/wp22_221.patch </code></p>
<p>You will get a lot of output like this:</p>
<pre>
...
patching file wp-admin/edit-form-advanced.php
patching file wp-admin/edit-form-comment.php
patching file wp-admin/edit-form.php
patching file wp-admin/edit-page-form.php
patching file wp-admin/export.php
patching file wp-admin/install.php
patching file wp-admin/user-edit.php
patching file wp-admin/users.php
patching file wp-admin/widgets.css
patching file wp-admin/widgets.php
...
</pre>
<p>If there any errors, you'll see them during the patch process. </p>
<p>At this point, you're done.  You can use the patch file you created on any Wordpress weblog that you want to bring from version 2.2 to 2.2.1, but it won't work for other versions.<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://zackofalltrades.com/2007/06/quick-guide-to-using-diff-and-patch-to-update-a-wordpress-weblog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.189 seconds -->
