<?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>matthewwhitworth.com &#187; Meta</title>
	<atom:link href="http://matthewwhitworth.com/category/meta/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthewwhitworth.com</link>
	<description>The Personal Homepage of Matthew Whitworth (duh!)</description>
	<lastBuildDate>Wed, 18 Jun 2008 13:41:11 +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>Escape from mod_rewrite!</title>
		<link>http://matthewwhitworth.com/2008/02/06/escape-from-mod_rewrite/</link>
		<comments>http://matthewwhitworth.com/2008/02/06/escape-from-mod_rewrite/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 06:47:22 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[zope]]></category>

		<guid isPermaLink="false">http://matthewwhitworth.com/2008/02/06/escape-from-mod_rewrite/</guid>
		<description><![CDATA[I&#8217;ve spent the last few days investigating Plone as a potential replacement for WordPress for the okcomputer.org web site, but, as is frequently the case when experimenting with new technology around here, I&#8217;ve been beating my head against the wall trying to get my Plone installation to work behind an Apache proxy.  I could [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the last few days investigating <a href="http://www.plone.org/">Plone</a> as a potential replacement for <a href="http://www.wordpress.org/">WordPress</a> for the <a href="http://www.okcomputer.org/">okcomputer.org web site</a>, but, as is frequently the case when experimenting with new technology around here, I&#8217;ve been beating my head against the wall trying to get my Plone installation to work behind an Apache proxy.  I could successfully pull up the main page&#8217;s content in my browser, but none of the Cascading Style Sheets or Javascript files were making it.  The result was less than inspiring.  So while I was waiting for the <a href="http://www.courier-journal.com/apps/pbcs.dll/article?AID=/20080205/NEWS01/80205002">tornadoes</a> to pass through tonight, I fired up my browser, tailed my log files and started beating on it.</p>
<p>First off, the mod_rewrite rule from the <a href="http://betabug.ch/zope/witch">RewriteRuleWitch</a> wasn&#8217;t matching.  Fantastic.  Here&#8217;s what it gave me:</p>
<p><code>RewriteRule ^($|/.*) \<br />
&nbsp;<br />
http://127.0.0.1:8080/VirtualHostBase/\<br />
&nbsp;<br />
http/%{SERVER_NAME}:80/okcomputer/VirtualHostRoot$1 [L,P]</code></p>
<p>The root document was matching, but nothing else was.  After setting my RewriteLogLevel to 9, I saw that the URI as it was being tested against the regex didn&#8217;t begin with a /.  So I removed the slash from the regex and added one to the substitution pattern:</p>
<p><code>RewriteRule ^($|.*) \<br />
&nbsp;<br />
http://127.0.0.1:8080/VirtualHostBase/\<br />
&nbsp;<br />
http/%{SERVER_NAME}:80/okcomputer/VirtualHostRoot/$1 [L,P]</code></p>
<p>Now the RewriteRule was matching, but the proxied requests were generating <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1">400 errors</a> on the Zope HTTP server.  The obvious culprits were the spaces in some of the URL&#8217;s, specifically in URL&#8217;s containing the string &#8220;Plone Default&#8221;.  My browser was (correctly) escaping the spaces as &#8220;%20&#8243;, but by the time mod_rewrite had processed the request and passed it on to mod_proxy the spaces were back resulting in a malformed HTTP request.</p>
<p>I found the fix for this last bit at <a href="http://blog.buro9.com/2007/08/17/mod_rewrite-mod_proxy-spaces-in-uri-boom/">Velo World</a>.  The trick is to define a RewriteMap and then use mod_rewrite&#8217;s built in escape function, like so:</p>
<p><code>RewriteMap escape int:escape<br />
&#46;..<br />
RewriteEngine On<br />
RewriteRule ^($|.*) \<br />
&nbsp;<br />
http://127.0.0.1:8081/VirtualHostBase/\<br />
&nbsp;<br />
http/%{SERVER_NAME}:80/okcomputer/VirtualHostRoot/${escape:$1} [L,P]</code></p>
<p>And success!  But what a pain in the ass!  I&#8217;d love to blame mod_rewrite, but I&#8217;m sure there&#8217;s some valid reason it doesn&#8217;t re-escape  substitutions by default.  Instead I&#8217;ll blame Plone.  Why?  Why do you put <em>spaces</em> in your %$#@! URL&#8217;s.  And given the number of pages on the web explaining how to set up Plone behind an Apache server with mod_rewrite and mod_proxy &#8212; including Plone&#8217;s own documentation &#8212; how come none of <em>them</em> mentioned this?  Very frustrated, but the problem is fixed, the tornadoes have passed, it&#8217;s going on 2:00 AM, I&#8217;m going to bed.</p>
<p><strong>UPDATE 2/14/2008:</strong> Special thanks to Sascha, who&#8217;s been helping me debug my RewriteRule issue.  The Witch&#8217;s rule <em>should</em> work, I just can&#8217;t figure out why apache is stripping that slash of the front of my URI&#8217;s.  I&#8217;m not using a RewriteBase, and the RewriteRule isn&#8217;t an a .htaccess file, so I just have no idea what the problem is.</p>
]]></content:encoded>
			<wfw:commentRss>http://matthewwhitworth.com/2008/02/06/escape-from-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy, Empty Gravatars</title>
		<link>http://matthewwhitworth.com/2008/01/23/easy-empty-gravatars/</link>
		<comments>http://matthewwhitworth.com/2008/01/23/easy-empty-gravatars/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 04:53:06 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://matthewwhitworth.com/2008/01/23/easy-empty-gravatars/</guid>
		<description><![CDATA[For some unknown reason, I got vaguely interested in Gravatars this week.  I&#8217;ll spare you the Google search &#8212; Gravatars are Globally Recognized Avatars.  (And for you total lame-os, avatars are the little pictures next to people&#8217;s names in some forums and blog comments.)  The idea is that you upload your avatars [...]]]></description>
			<content:encoded><![CDATA[<p>For some unknown reason, I got vaguely interested in Gravatars this week.  I&#8217;ll spare you the Google search &#8212; Gravatars are <em>Globally Recognized Avatars</em>.  (And for you total lame-os, <em>avatars</em> are the little pictures next to people&#8217;s names in some forums and blog comments.)  The idea is that you upload your avatars to <a href="http://site.gravatar.com/">gravatar.com</a> and associate them with your email address (which just happens to be a globally unique identifier that you&#8217;ve probably already provided to most systems you use), and then services that are configured to use Gravatars can always pull your latest and greatest avatar from a central repository.  Rocket science it ain&#8217;t.</p>
<p><img src="http://matthewwhitworth.com/wordpress/wp-content/uploads/2008/01/me-newyears-2004-80x80.jpg" alt="PG Gravatar" align="right" border="2" hspace="10" vspace="5" /><img src="http://matthewwhitworth.com/wordpress/wp-content/uploads/2008/01/mgw-ukelele-80x80.jpg" alt="G Gravatar" align="right" border="2" hspace="10" vspace="5" />First, I set up a couple of Gravatars myself: one rated PG (I&#8217;m holding a beer), another rated G of me playing the ukulele at Ian and Christine&#8217;s wedding party.  I&#8217;m not sure why I bothered as I don&#8217;t really post to any forums these days, but they&#8217;re there.</p>
<p>Next, I spent about three minutes setting up the <a href="http://wordpress.org/extend/plugins/easygravatars/">Easy Gravatars</a> WordPress plugin over on <a href="http://kidamnesiac.okcomputer.org/">Kid Amnesiac</a>.  Man, does Easy Gravatars live up to its name!  Not much flexibility, but a default setting that was perfect for my needs.  (The only tweaks I made were to change the URL for the default image for missing Gravatars to one being served off my own server and then to set the default maximum-naughtiness rating to PG.)</p>
<p>Here&#8217;s the kicker: not a single person who has posted comments to Kid Amnesiac has a Gravatar. I checked &#8216;em all.  Nothing.  I even posted a comment myself (since deleted) just to see if the plugin worked (it did).  I figured at least one person (*cough* Diana *cough*) would have a Gravatar.  Nope.  None.  So that was a bummer.</p>
<p>I&#8217;m leaving the plugin enabled in hopes that someone might read this and go nuts and actually set up a Gravatar.  Please, make me feel useful.  Oh, and I suppose I should set the plugin up for matthewwhitworth.com, too.</p>
]]></content:encoded>
			<wfw:commentRss>http://matthewwhitworth.com/2008/01/23/easy-empty-gravatars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Contact Winner!</title>
		<link>http://matthewwhitworth.com/2008/01/17/first-contact-winner/</link>
		<comments>http://matthewwhitworth.com/2008/01/17/first-contact-winner/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 16:06:55 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://matthewwhitworth.com/2008/01/17/first-contact-winner/</guid>
		<description><![CDATA[So ever since I pushed the new matthewwhitworth.com site into production Jessica has been bugging me about whether or not it was getting any hits.  Although I kept telling her that I was giving it time and didn&#8217;t expect anything for quite a while, I was actually checking the web server logs much more [...]]]></description>
			<content:encoded><![CDATA[<p>So ever since I pushed the new matthewwhitworth.com site into production Jessica has been bugging me about whether or not it was getting any hits.  Although I kept telling her that I was giving it time and didn&#8217;t expect anything for quite a while, I was actually checking the web server logs much more frequently than I care to admit.</p>
<p>A few days ago I had done the old &#8220;google yourself&#8221; trick and was shocked at how much my sabbatical had caused me to drop off the Internet radar.  I haven&#8217;t posted to Usenet or the Debian mailing lists for years.  My old web page had been down for months during the crash, and the content had been dormant for over a year.  Really, what did I expect?</p>
<p>Anyway, about 10 minutes after Jessica checked in last night, I went to give my email one last perusal before bed (I wasn&#8217;t watching the logs &#8212; I promise) and sure enough, there was the first mail from my new Contact page, from old middle/high school associate Jay V.  So that was cool &#8212; I hadn&#8217;t heard from him in almost 20 years.  And since he was the first person to get in touch with me via the new site, he won an MP3 of &#8220;Barbed Wire&#8221;, a song by my first band, Sacrilegious Toejam.  More on that later&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://matthewwhitworth.com/2008/01/17/first-contact-winner/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shakedown Cruise</title>
		<link>http://matthewwhitworth.com/2008/01/14/shakedown-cruise/</link>
		<comments>http://matthewwhitworth.com/2008/01/14/shakedown-cruise/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 01:22:28 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://matthewwhitworth.com/2008/01/14/shakedown-cruise/</guid>
		<description><![CDATA[I got bold and decided to push matthewwhitworth.com into production today, and the bugs are already starting to shake out.  The big problems seem to be in the theme I chose to use, miniBits.  I liked it because of its clean layout and minimal graphics, but its small size also gave me the [...]]]></description>
			<content:encoded><![CDATA[<p>I got bold and decided to push matthewwhitworth.com into production today, and the bugs are already starting to shake out.  The big problems seem to be in the theme I chose to use, miniBits.  I liked it because of its clean layout and minimal graphics, but its small size also gave me the suspicion that some edge cases might not handle so well.</p>
<p>It turns out it&#8217;s more than the edge cases.  About 15 minutes after pushing the site into DNS I noticed that the simple &#8220;view post&#8221; action produces invalid xhtml and displays the sidebar all wonky down at the bottom of the page.</p>
<p>So why didn&#8217;t I (or maybe the author) notice this earlier?  Well, it&#8217;s only broken when you&#8217;re not logged in! I&#8217;ve been doing most of my development so far while logged in, either as myself or as admin, so the bug just wasn&#8217;t occurring.  It&#8217;s also possible that he sidebar was off the bottom of my browser window and consequently I wasn&#8217;t seeing how broken it was when I was viewing the first couple of posts.  Who knows?  But now it&#8217;s gonna be out in the open for a while until I can fix it.</p>
<p>(Interestingly, the bug also doesn&#8217;t manifest itself at the <a href="http://www.creativebits.it/demo/?theme=miniBits">demo site</a>.  The author freely admits that the theme has only been tested with WordPress 2.1 and hasn&#8217;t been maintained for a while.  Could version compatability be the culprit?)</p>
<p>I also need to do a bit of Internationalization and Localization.  The original author appears to be Italian, and the strings in the program are a mixture of Italian and English. That will actually give me a good &#8220;learn how to do something&#8221; project (as opposed to the more annoying &#8220;bug fix&#8221; project) .</p>
<p>So I&#8217;m pulling the theme code into bzr right now and getting ready to tweak.  Hopefully, I&#8217;ll knock out the sidebar display bug tonight and get the site linked over to okcomputer.org so it can <em>really</em> go live.</p>
<p><strong>UPDATE:</strong>  I found and fixed the bug, and it&#8217;s a PHP classic: mixing your layout code inside conditionals. Down in the comments.php file I found two &lt;/div&gt; tags were inside an if clause when they shouldn&#8217;t have been.  A quick cut &amp; paste moved them below the endif, and things are suddenly looking much better.</p>
]]></content:encoded>
			<wfw:commentRss>http://matthewwhitworth.com/2008/01/14/shakedown-cruise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The New Homepage!</title>
		<link>http://matthewwhitworth.com/2008/01/12/the-new-homepage/</link>
		<comments>http://matthewwhitworth.com/2008/01/12/the-new-homepage/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 03:45:38 +0000</pubDate>
		<dc:creator>matthew</dc:creator>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Meta]]></category>

		<guid isPermaLink="false">http://matthewwhitworth.com/2008/01/12/welcome-to-my-new-homepage/</guid>
		<description><![CDATA[Hi and welcome to my brand spankin&#8217; new homepage at my brand spankin&#8217; new web site, matthewwhitworth.com.  I&#8217;ve been on a roll for the last two weeks, building a new Ubuntu Linux server, rebuilding the Kid Amnesiac blog and totally rebuilding and migrating okcomputer.org, so I figured it was finally time to get this [...]]]></description>
			<content:encoded><![CDATA[<p>Hi and welcome to my brand spankin&#8217; new homepage at my brand spankin&#8217; new web site, <a href="http://matthewwhitworth.com/">matthewwhitworth.com</a>.  I&#8217;ve been on a roll for the last two weeks, building a new <a href="http://www.ubuntu.com/">Ubuntu Linux</a> server, rebuilding the <a href="http://kidamnesiac.okcomputer.org/">Kid Amnesiac</a> blog and totally rebuilding and migrating <a href="http://www.okcomputer.org/">okcomputer.org</a>, so I figured it was finally time to get this place off the ground.</p>
<p>My homepages have certainly evolved over the years &#8212; from static HTML back in 1995, incorporating bits and pieces of Perl hackery as I learned that language and the art of CGI, and finally culminating in a <a href="http://blosxom.com/">Blosxom</a>-based semi-blog that died a slow death shortly after I moved back to Louisville.</p>
<p>After setting up the original Kid Amnesiac, I became interested in using WordPress more as a CMS than a blog*. As usual, I dawdled on that idea for quite some time, but I finally sat down and learned how to do it during last week&#8217;s okcomputer.org set-up. After that there was just no excuse, so today, in between bouts of baby-wrangling, I built the database, installed a fresh copy of WordPress 2.3.2, edited some custom page templates and banged out the first bits of content.</p>
<p>So here it is.  I hope you like it.  I hope I can make this interesting and/or useful.</p>
<p>&#8211;</p>
<p>* Not that I&#8217;ve got anything against blogs &#8212; I&#8217;m just remarkably bad at maintaining one.</p>
]]></content:encoded>
			<wfw:commentRss>http://matthewwhitworth.com/2008/01/12/the-new-homepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
