<?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>Prosthetically Hip &#187; Work</title>
	<atom:link href="http://www.prostheticallyhip.com/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prostheticallyhip.com</link>
	<description>meepzorp.</description>
	<lastBuildDate>Wed, 08 Feb 2012 01:25:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Maximum Capacity</title>
		<link>http://www.prostheticallyhip.com/2011/01/05/maximum-capacity/</link>
		<comments>http://www.prostheticallyhip.com/2011/01/05/maximum-capacity/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 19:22:21 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Cycling]]></category>
		<category><![CDATA[Hashing]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[La Iglesia]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wii]]></category>
		<category><![CDATA[woof!]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Bosceaux]]></category>
		<category><![CDATA[cycling]]></category>
		<category><![CDATA[fitness]]></category>
		<category><![CDATA[housework]]></category>
		<category><![CDATA[Indy]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[running]]></category>
		<category><![CDATA[vdh3]]></category>
		<category><![CDATA[weight]]></category>
		<category><![CDATA[Wii Fit]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.prostheticallyhip.com/?p=1038</guid>
		<description><![CDATA[Disclaimer: the number in this post isn&#8217;t what bothers me. I don&#8217;t want to hear bitching about numbers (mine especially or yours), unless you&#8217;re unhappy about yours and want to do something about it. I hopped on the scale recently (something I&#8217;ve never owned before, and still rarely step on), the other day, and saw [...]]]></description>
			<content:encoded><![CDATA[<p>Disclaimer: the number in this post isn&#8217;t what bothers me. I don&#8217;t want to hear bitching about numbers (mine especially or yours), unless you&#8217;re unhappy about yours and want to do something about it.</p>
<p>I hopped on the scale recently (something I&#8217;ve never owned before, and still rarely step on), the other day, and saw a number that was new to me: 167.5.</p>
<p>This is the most I&#8217;ve ever weighed, topping my post-Katrina expansion. And I don&#8217;t really care about that, because it&#8217;s all relative. I don&#8217;t care that I weigh that, I care that my BMI is high. I also care that I wasn&#8217;t able to button a pair of pants.</p>
<p>The problem is I have become sedentary. I&#8217;m traditionally used to a much more active lifestyle, and that just isn&#8217;t happening these days. Between the day job, the design/development LLC that Bea and I formed, the housework, and the less-than-happy knees, I just haven&#8217;t been exercising. And I /need/ to. I want to.</p>
<p>I just have to make the time. And I am. My friends Chum Dumpster and Everything Butt Sex have been meeting up at NOMA M-W-F at 6am-ish to run 5k. Chum and EBS are hashers who have been concentrating on the drinking part of hashing over the running part. While they run a slower pace than I do, they&#8217;re doing the hard part: getting up and doing it. This is what I need. So, Mondays I plan on bringing one dog, and Friday the other, leaving Wednesdays to myself. The pups need exercise too, especially chubby little Indy.</p>
<p>And as for the knees/etc, I&#8217;ve already taken the first step, so to speak: I went to the <a href="http://www.louisianarunning.com/">Louisiana Running Co</a> to get fitted for a new pair of shoes: <a href="http://www.kswiss.com/item/52.46/02243-163/Men/Footwear_Running/K-Ona_C/Wht_Clscblu_Red.html">K-Swiss K-Ona C</a>. They&#8217;re meshy on top and drain out of the bottom! THE BOTTOM! I really liked that place, too. Just a two-person startup, and I didn&#8217;t feel like I was being &#8220;sold to&#8221; &#8211; he just wanted to help me run how I wanted to (no races / half-marathons / full marathons). I definitely recommend them.</p>
<p>Now, obviously running won&#8217;t fix the problem alone. I have plans to mountain bike (at least a few laps at the spillway) every few weeks, and do Wii Fit on an almost daily basis.</p>
<p>There are of course dietary concerns, and all I&#8217;m going to say is that I&#8217;m already making a concerted effort to eat better, and especially cut out as much high fructose corn syrup / crap foods overall. I also understand that it&#8217;s just not practical to go whole-hog on that effort, so it&#8217;ll be within reason. The last thing I want to is stress out about what I&#8217;m eating. If you are (or if you aren&#8217;t) familiar with the next handful of months in NOLA, then you should read Pistolette&#8217;s excellent <a href="http://pistolette.net/2011/01/01/no-resolutions/">rationalization on eating and goals in NOLA</a>.</p>
<p>And as usual, she has inspired Bea and I with our life this year. We have a list of goals, broken down into months, for the year. We&#8217;re gonna get a lot of shit done that we&#8217;ve been putting off. We&#8217;re tired of a project being 85% done.</p>
<div style="text-align: center;">
<a href="http://www.flickr.com/photos/willcore/5304577238/" title="167.5 by dubtea, on Flickr"><img src="http://farm6.static.flickr.com/5205/5304577238_7f80d03e88.jpg" width="282" height="500" alt="167.5" /></a><br />
&nbsp;<br />
<a href="http://www.flickr.com/photos/willcore/5304612836/" title="bmi by dubtea, on Flickr"><img src="http://farm6.static.flickr.com/5001/5304612836_4e33bed997.jpg" width="500" height="279" alt="bmi" /></a>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2011/01/05/maximum-capacity/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>5 7 5</title>
		<link>http://www.prostheticallyhip.com/2010/07/07/5-7-5/</link>
		<comments>http://www.prostheticallyhip.com/2010/07/07/5-7-5/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 03:35:45 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Domesticamation]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Writing]]></category>
		<category><![CDATA[Haiku]]></category>
		<category><![CDATA[NaBloPoMo]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/?p=819</guid>
		<description><![CDATA[Long day, I&#8217;m tired. I don&#8217;t want to be conscious any more today. I&#8217;m going to say this counts, as I just wrote you a haiku. Goodnight.]]></description>
			<content:encoded><![CDATA[<blockquote><p>Long day, I&#8217;m tired.</p>
<p>I don&#8217;t want to be conscious</p>
<p>any more today.</p></blockquote>
<p>I&#8217;m going to say this counts, as I just wrote you a haiku. Goodnight.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2010/07/07/5-7-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downtime and EXT3 undelete</title>
		<link>http://www.prostheticallyhip.com/2009/09/17/downtime-and-ext3-undelete/</link>
		<comments>http://www.prostheticallyhip.com/2009/09/17/downtime-and-ext3-undelete/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 18:01:57 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Grrr...]]></category>
		<category><![CDATA[Photos]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[EXT3]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[undelete]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/?p=587</guid>
		<description><![CDATA[The other day, the server I share with the other bicycle/computer nerd Will (yes, there are two of us) went down. I called my friend Paul who basically runs the datacenter the box lives in to give him a heads up I&#8217;d be heading over. Paul was already having a rough work day, but still [...]]]></description>
			<content:encoded><![CDATA[<p>The other day, the server I share with the other bicycle/computer nerd Will (yes, there are two of us) went down.</p>
<p>I called my friend Paul who basically runs the datacenter the box lives in to give him a heads up I&#8217;d be heading over. Paul was already having a rough work day, but still carved out a little time to help me out &#8211; thanks again P.</p>
<p>Anyways, we hooked up a crash cart, and here&#8217;s what we saw:</p>
<div style="text-align: center;"><a href="http://www.flickr.com/photos/willcore/3929508022/" title="Garble by dubtea, on Flickr"><img src="http://farm3.static.flickr.com/2449/3929508022_8dafc56496.jpg" width="500" height="375" alt="Garble" /></a></div>
<p>&nbsp;<br />
Ruh-roh. We could discern that it was asking for the root password for maintenance, and that was about all we could glean from the garbled screen. Unfortunately neither Paul nor Will knew the password, and if you tried to skip it, it would just reboot. This meant I had to pull it and work on it elsewhere.</p>
<p>I went to boot from a cd, but the server had none, so I tried the next step &#8211; putting a bootable disc image onto a USB thumb drive. That didn&#8217;t work as the hardware is old enough to not be able to detect bootable USB devices.</p>
<p>I hadn&#8217;t yet opened up the case (which I should have done earlier), so I went the only route that I had available to me at the moment: floppy boot disks.</p>
<p>Holy crap y&#8217;all, I made linux boot floppies. I know, I know, I as stunned as you are. I was not only surprised to find that I still had some floppies, but that they were still good! As it turned out, it too was all for naught &#8211; when booted up, I couldn&#8217;t really do anything for one reason or another.</p>
<p>I finally opened the damn case, and to my exultant joy, I spied an IDE port. I plugged in a CD-ROM and booted up a Gentoo install disc. After fixing the screen garble (which was due to a splashimage being loaded by Grub), I was able to see and address the actual problem: somehow the EXT2/3/4 fsck had gone missing.</p>
<p>Before I actually fixed the issue, I figured it would be a good time to back some stuff, and due to an unfortunate timing of keystrokes, I managed to delete the entire home directory, residing on its own partition. Dumb.</p>
<p>After immediately unmounting the partition and some serious googlation of various terms including EXT3 undelete, EXT3 restore, oh holy hell what did I just do, linux undelete, etc&#8230; I had pretty much lost all hope of restoring this data. Luckily, at the bottom of some forum thread, someone had posted a link to an app called <a href="http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html"><strong>ext3grep</strong></a>. This page and application, considering how completely amazing it is, has an extremely poor google listing. Hopefully this may help. I doubt it, but you never know.</p>
<p>Anyways, after crapping myself, here&#8217;s all it took to restore the deleted files:</p>
<blockquote><p>
umount /home<br />
cd /usr/src<br />
wget http://ext3grep.googlecode.com/files/ext3grep-0.10.1.tar.gz<br />
tar -zxvf ext3grep-0.10.1.tar.gz<br />
cd ext3grep-0.10.1<br />
./configure; make; make install<br />
ext3grep /dev/sda8 &#8211;restore-all -after=1252972801
</p></blockquote>
<p>There&#8217;s actually a bit more, but that&#8217;s superfluous things like changing to a directory with enough free disk space. But the pure simplicity of this app is that once downloaded / compiled / etc, is that with a single command, you can restore files deleted after a certain timestamp.</p>
<p>If for no other reason that finding a working, powerful, and simple ext3 undelete utiliy, the headache was all worth it.</p>
<p>Here&#8217;s a quick photo of the server on my desk at work:</p>
<div style="text-align: center;"><a href="http://www.flickr.com/photos/willcore/3929520890/" title="Patient on the Operating Table by dubtea, on Flickr"><img src="http://farm3.static.flickr.com/2494/3929520890_e411a3535f.jpg" width="500" height="375" alt="Patient on the Operating Table" /></a></div>
<p>&nbsp;<br />
I still can&#8217;t believe I deleted the /home directory &#8211; sometimes you just hit that Enter key a mere moment before you actually hit the tab key a second time. At least I learned from this mistake.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2009/09/17/downtime-and-ext3-undelete/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Done is the Engine of More.</title>
		<link>http://www.prostheticallyhip.com/2009/04/22/done-is-the-engine-of-more/</link>
		<comments>http://www.prostheticallyhip.com/2009/04/22/done-is-the-engine-of-more/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 04:18:18 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Domesticamation]]></category>
		<category><![CDATA[Wii]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[Cult of Done]]></category>
		<category><![CDATA[exercise]]></category>
		<category><![CDATA[housework]]></category>
		<category><![CDATA[routine]]></category>
		<category><![CDATA[schedule]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/?p=443</guid>
		<description><![CDATA[A while ago, I was introduced to the Cult of Done. For me, it is quite simple, quite obvious, and I identify with it on a number of levels. In the spirit of the manifesto set forth and in combination with a generally needed re-ordering of my day-to-day schedule and goals, I&#8217;ve figured out a [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago, I was introduced to the <a href="http://www.brepettis.com/blog/2009/3/3/the-cult-of-done-manifesto.html"><b>Cult of Done</b></a>. For me, it is quite simple, quite obvious, and I identify with it on a number of levels.</p>
<p>In the spirit of the manifesto set forth and in combination with a generally needed re-ordering of my day-to-day schedule and goals, I&#8217;ve figured out a calendar, or should I say guideline, to help me get the things done I want to get done.</p>
<p>This mostly means setting aside time for working on the house, and light yoga/exercise &#8211; something I wanted to more of this year, but have since lapsed.</p>
<p>I run (er, <a href="http://www.voodoohash.com/"><b>hash</b></a>) ~5-6 miles every Thursday night, and bike pretty much everywhere, but need to do just a little more. And the housework I want done can be attacked in hour or sub-hour increments, and will probably be done faster in this manner than I had be doing before.</p>
<p>To help kick my ass, here is my rough daytime schedule for the work week (click to embiggen):</p>
<div style="text-align: center;"><a href="http://www.flickr.com/photos/willcore/3466531667/sizes/o/" title="New Weekly Calendar by dubtea, on Flickr"><img src="http://farm4.static.flickr.com/3601/3466531667_3b46d6df06.jpg" width="500" height="254" alt="New Weekly Calendar" /></a></div>
<p>&nbsp;<br />
I start on Monday. Let&#8217;s see how things go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2009/04/22/done-is-the-engine-of-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Department of Redundancy Department</title>
		<link>http://www.prostheticallyhip.com/2008/12/12/department-of-redundancy-department/</link>
		<comments>http://www.prostheticallyhip.com/2008/12/12/department-of-redundancy-department/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 17:14:53 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Grrr...]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/2008/12/12/department-of-redundancy-department/</guid>
		<description><![CDATA[I got a call (well, a text, really) this morning, prompting me to hurriedly run out of my house and head to the office. My linux server, the workhorse, the reliable one, was apparently offline. Suck. I get there, and while it is powered up, it is absolutely unresponsive. Might as well had been off. [...]]]></description>
			<content:encoded><![CDATA[<p>I got a call (well, a text, really) this morning, prompting me to hurriedly run out of my house and head to the office. My linux server, the workhorse, the reliable one, was apparently offline. Suck.</p>
<p>I get there, and while it is powered up, it is absolutely unresponsive. Might as well had been off. So, I powercycle it, and up it boots. Unfortunately on the front of the case is a orange blinky light. As it turns out, one of the two Ghostbusters-esque <a href="http://flickr.com/photos/willcore/3102978832/"><b>power supplies (PSU)</b></a> (hooray, redundancy!) is dead. Boo, hiss.</p>
<p>Because there are two PSUs in the rig, it just pulls all the power from the other, good, PSU. That&#8217;s all fine and dandy, unless there is a power hiccup.</p>
<p>&#8220;But wait!&#8221;, I hear you cry, &#8220;What about UPSes? Don&#8217;t you have battery backups?&#8221; Very good point, young reader. I indeed do have UPSes. Two <a href="http://www.apcc.com/resource/include/techspec_index.cfm?base_sku=sua1000i"><b>APC Smart UPS 1000</b></a>s, to be exact. And to be extra redundant, one PSU from each server is connected to each battery, instead of each server getting its own dedicated battery. This way, if a UPS fails during an outage, one battery can still provide power to both servers.</p>
<p>Back to the power hiccup. Apparently, one of the UPSes died recently. Not a biggie, right? That&#8217;s why I mixed the power sources. Normally, it would not be a big deal, unless THE REMAINING GOOD PSU IS PLUGGED INTO THE BAD UPS!</p>
<p>Yeah. So, in the interest of visual simplicity, the setup is below:<br />
<font color="#339900"><b>GREEN</b></font> = Power, battery backup.<br />
<font color="#FF9900"><b>ORANGE</b></font> = Power, no battery backup.<br />
<font color="#990000"><b>RED</b></font> = Dead</p>
<div style="text-align: center"><a href="http://www.flickr.com/photos/willcore/3102978874/" title="Not so UPS by dubtea, on Flickr"><img src="http://farm4.static.flickr.com/3021/3102978874_4c5b6dd229_o.gif" width="394" height="271" alt="Not so UPS" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2008/12/12/department-of-redundancy-department/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>More on that mod_rewrite hack.</title>
		<link>http://www.prostheticallyhip.com/2008/01/08/more-on-that-mod_rewrite-hack/</link>
		<comments>http://www.prostheticallyhip.com/2008/01/08/more-on-that-mod_rewrite-hack/#comments</comments>
		<pubDate>Wed, 09 Jan 2008 02:45:31 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Grrr...]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/2008/01/08/more-on-that-mod_rewrite-hack/</guid>
		<description><![CDATA[So I implemented that mod_rewrite hack (but added string sanitizing, etc.) on a project for a client. The other morning, it failed spectacularly. It was definitely one of those &#8220;But it worked fine yesterday&#8221; moments that we all love. In this instance, the host uses cPanel (an out-of the-box hosting solution), and I was not [...]]]></description>
			<content:encoded><![CDATA[<p>So I implemented that <a href="http://prostheticallyhip.com/2007/02/07/i-want-my-mod_rewrite/"><b>mod_rewrite hack</b></a> (but added string sanitizing, etc.) on a project for a client.</p>
<p>The other morning, it failed spectacularly. It was definitely one of those &#8220;But it worked fine yesterday&#8221; moments that we all love.</p>
<p>In this instance, the host uses cPanel (an out-of the-box hosting solution), and I was not able to specify a custom 404 page (neither via the .htaccess nor the unaccessible virtual server config). I could do a custom 404 page though &#8211; it would create a 404.shtml file in the pubilc_html folder. Just fuckin&#8217; dandy. SHTML is pretty much worthless.</p>
<p>What I was able to do, however, is add a custom handler in the .htaccess that says &#8220;hey Apache, treat .shtml files as if they are really PHP files!&#8221; like so:<br />
<b>
<pre>AddHandler application/x-httpd-php .shtml</pre>
<p></b></p>
<p>Apache was parsing the PHP code in the .shtml document. Every it seemed, would be all right.</p>
<p>Fast forward a few months to the other morning. Instead of processing the PHP code in the 404.shtml, it was printing it out. BAD. Turns out, the web host updated to PHP5 overnight. As you very well may know or have surmised, PHP4 and PHP5 are handled very differently on the server level.</p>
<p>Now, the humble little .htaccess that looks like this:<br />
<b>
<pre>AddHandler application/x-httpd-php5 .shtml</pre>
<p></b></p>
<p>Don&#8217;t you love how those one character differences make all the difference in the world? How nobody was notified? How they didn&#8217;t anything in place so that all would be backwards compatible and therefore gravy-like?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2008/01/08/more-on-that-mod_rewrite-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Song Title to Describe My Mood</title>
		<link>http://www.prostheticallyhip.com/2007/04/17/greatest-song-title-to-describe-my-mood/</link>
		<comments>http://www.prostheticallyhip.com/2007/04/17/greatest-song-title-to-describe-my-mood/#comments</comments>
		<pubDate>Tue, 17 Apr 2007 21:11:11 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Grrr...]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/?p=268</guid>
		<description><![CDATA[Venom&#8217;s Aaaaaaarrghh from their 1983 album At War with Satan.]]></description>
			<content:encoded><![CDATA[<p>Venom&#8217;s <i>Aaaaaaarrghh</i> from their 1983 album <i>At War with Satan</i>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2007/04/17/greatest-song-title-to-describe-my-mood/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hiding Spam Comments</title>
		<link>http://www.prostheticallyhip.com/2006/11/22/hiding-spam-comments/</link>
		<comments>http://www.prostheticallyhip.com/2006/11/22/hiding-spam-comments/#comments</comments>
		<pubDate>Wed, 22 Nov 2006 22:17:40 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/?p=234</guid>
		<description><![CDATA[Thanks to an article from SANS ISC, I have been working for the past two weeks on a new spam-reduction technique for WordPress. It&#8217;s really simple, only 2 lines of code, really. The first is in the comments.php page (if your custom theme doesn&#8217;t have this file, use the one from the default theme). Around [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to an article from <a href="http://isc.sans.org/diary.php?storyid=1836"><b>SANS ISC</b></a>, I have been working for the past two weeks on a new spam-reduction technique for WordPress.</p>
<p>It&#8217;s really simple, only 2 lines of code, really.<br />
The first is in the comments.php page (if your custom theme doesn&#8217;t have this file, use the one from the default theme).</p>
<p>Around line 80 (right before the comment author, etc. fields), I added the following line:<br />
<code>&lt;input type="text" name="subject" id="subject" value="" size="22" style="display: none;" /&gt;</code></p>
<p>On wp-comments-post.php in the blog home directory, I changed the following line:<br />
<code>$comment_id = wp_new_comment( $commentdata );</code><br />
to:<br />
<code>if(empty($_POST['subject'])) { $comment_id = wp_new_comment( $commentdata ); } // execute comment if "subject" field is empty</code></p>
<p>Since the &#8220;subject&#8221; field has the display:none; style, it is hidden to the regular blog reader. But, most comment spam is performed by bots, and not people. The bot will &#8220;see&#8221; this field and populate it with data.</p>
<p>Since this field now has data, it is not empty, and the actual commenting action will not happen.<br />
All this from one extra line of html and a single &#8220;if&#8221; statement.</p>
<p>I decided to let both mine and Sonny&#8217;s blog run for a week, so see how much spam we got, then to &#8220;turn on&#8221; the new spam filter and see how much spam we accrued in a week.</p>
<p>I started at 12:30pm on 11.08.06, with both blogs using a plugin called <a href="http://akismet.com/"><b>Akismet</b></a> which would &#8220;tag&#8221; the spam, but not delete it.</p>
<p>One week later (12:30pm, 11.15.06), I had accrued 201 spam comments, while Sonny on the other hand, racked up 1423 spam comments. Today, one week after the initial measurement, I had 10 spam comments, compared to Sonny&#8217;s 953.</p>
<p>Why were my numbers both before and after so much lower than Sony&#8217;s? I don&#8217;t know. I&#8217;m guessing it has to do with cached pages. Either way, the reduction is significant.<br />
And down the road, as bot writers may/may not pick up this method, you can specify the hidden attributes as a CSS style (in the header or something, called &#8220;form&#8221;, for example), and class=&#8221;form&#8221; the hidden input, or maybe even apply the style to a div or span tag that wraps around the input, etc., etc.</p>
<p>Anyway, I&#8217;m going to start building this functionality into other web apps I write. Hopefully you&#8217;ll do something along the same lines.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2006/11/22/hiding-spam-comments/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My brain is fuzmy.</title>
		<link>http://www.prostheticallyhip.com/2006/11/02/my-brain-is-fuzmy/</link>
		<comments>http://www.prostheticallyhip.com/2006/11/02/my-brain-is-fuzmy/#comments</comments>
		<pubDate>Thu, 02 Nov 2006 16:39:03 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Amusing]]></category>
		<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/?p=226</guid>
		<description><![CDATA[My morning was looking up. I felt awake and alert. Ready to be productive. Then I took a hit of the Robotussin, to help with the removal of phlegm left in my lungs from my extended weekend sickness. Well, that was dumb. I feel fuzzy, and I still have work to do. Blargh. Well, barring [...]]]></description>
			<content:encoded><![CDATA[<p>My morning was looking up. I felt awake and alert. Ready to be productive.</p>
<p>Then I took a hit of the <a href="http://cog.cerber.us/fmf/MC%20Chris%20-%20the%20tussin%20(robotussin).mp3"><b>Robotussin</b></a>, to help with the removal of phlegm left in my lungs from my extended weekend sickness.</p>
<p>Well, that was dumb. I feel fuzzy, and I still have work to do. Blargh.</p>
<p>Well, barring evening fuzziness, Lara, <a href="http://basshoss.com/chomps"><b>Sonny</b></a>, and I will ride in the <a href="http://jenene.org/photo/Halloween_NOLA/source/image/halloween_nola253.jpg"><b>Sorry Bout Ya Face</b></a> ride, a benefit for what I assume is a cyclist who got hurt.</p>
<p>Oh, and at midnight at Molly&#8217;s is the great can opening. That is all for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2006/11/02/my-brain-is-fuzmy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>18 hours</title>
		<link>http://www.prostheticallyhip.com/2006/09/06/15-hours/</link>
		<comments>http://www.prostheticallyhip.com/2006/09/06/15-hours/#comments</comments>
		<pubDate>Wed, 06 Sep 2006 06:47:56 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/?p=209</guid>
		<description><![CDATA[I just finished a work day that started at 8:30am. I worked at the office all day, then at the R for a few hours, then at a location or two for a project with Jonah that I undershot / misjudged. Tomorrow is looking to be the same, except replace working at the R with [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished a work day that started at 8:30am.</p>
<p>I worked at the office all day, then at the R for a few hours, then at a location or two for a project with <a href="http://spasticrobot.typepad.com"><b>Jonah</b></a> that I undershot / misjudged.</p>
<p>Tomorrow is looking to be the same, except replace working at the R with a (hopefully brief) meeting with a local restauranteur.</p>
<p>Hopefully after the regular workday on Thursday, I can meet up with <a href="http://asianprovocateur.blogspot.com"><b>Madam Provocateur</b></a> for a drink or several. I&#8217;m sure I&#8217;ll need them at that point.</p>
<p>And now, sleep, for there is an over-sized cat that is making it quite difficult for me to type, not to mention my mutinous eyes.<br />
That sounds grosser that it really is. Eh.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prostheticallyhip.com/2006/09/06/15-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

