<?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>Sleestacks - The Rant &#187; Humor</title>
	<atom:link href="http://www.sleestacks.com/category/humor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sleestacks.com</link>
	<description>No Shirt, No Shoes, No Sleestacks</description>
	<lastBuildDate>Thu, 23 Jun 2011 12:29:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>The Trouble With Regular Expressions</title>
		<link>http://www.sleestacks.com/2009/05/25/the-trouble-with-regular-expressions/</link>
		<comments>http://www.sleestacks.com/2009/05/25/the-trouble-with-regular-expressions/#comments</comments>
		<pubDate>Tue, 26 May 2009 05:04:39 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.sleestacks.com/?p=81</guid>
		<description><![CDATA[I have this problem with regular expressions. They&#8217;re too handy for their own good.Â  You say you don&#8217;t know what a regular expression is?Â  Well, let me just tell you, you don&#8217;t know what you&#8217;re missing out on.Â  Think of it like a really super-duper complicated way of searching for something real specific when it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I have this problem with regular expressions.  They&#8217;re too handy for their own good.Â  You say you don&#8217;t know what a regular expression is?Â  Well, let me just tell you, you don&#8217;t know what you&#8217;re missing out on.Â  Think of it like a really super-duper complicated way of searching for something real specific when it&#8217;s slapped in the middle of a whole back of other crap you don&#8217;t want to even mess with.Â  But it&#8217;s not even just searching for something, you can search and replace really complicated text that&#8217;s just too big to do by hand.</p>
<div id="attachment_82" class="wp-caption alignright" style="width: 190px"><img class="size-medium wp-image-82" title="Regular Expressions" src="http://www.sleestacks.com/wp-content/uploads/2009/05/regexp-180x300.jpg" alt="Regular Expressions Book" width="180" height="300" /><p class="wp-caption-text">Regular Expressions Book</p></div>
<p>More than that, it&#8217;s not like you just want to find every reference to the name &#8220;Meg&#8221; on your computer and change it to &#8220;Poop&#8221; &#8230; you can use regular expressions to transform Huge Text File (A) into just theÂ  little sub-sections of important stuff &#8230; or you can convert (A) from one textual format to another, like from HTML to Whiskey, or whatever the hell new-fangled nonsense is going on out there in web junky land.</p>
<p>There are plenty of programs out there that make use of regular expressions and you don&#8217;t even know about it.Â  I first started playing around with them way back in 1995 or so, not long after Rich Siegel started selling BBEdit for Macintosh, and I&#8217;ve been using them since.Â  Here&#8217;s an example &#8230; say you have a text file that looks like this:<br />
<code>Jimmy Jack Johnson sells 43 seashells to Yo Momma. She paid about three-fiddy.</code><br />
You can do a regular expression find/replace on that text, which would look something like this:<br />
<code>'s/^(J.*)\ J.*\ (J.*)\ (s)...s\ ([0-9]+).*\r/\1\ sucks\ \4\ \2\3\.\r/g'</code><br />
Which would now make that first text look something like this:<br />
<code>Jimmy sucks 43 Johnsons.</code></p>
<p>This sort of thing would be great for pranking your frienemies, but I have yet to hear of such a thing catching on.Â  Which brings us to my current dilemma.Â  I&#8217;ve come to rely on regular expressions so much that I believe they can do anything.Â  Unfortunately, I think I&#8217;m demanding too much, or at least my computer is unwilling to give me everything it&#8217;s got in order to accomplish this task.Â  I have aÂ  text file, freshly spit out from Excel, that has 43 columns of textual data over 160 some-odd rows &#8230; not that big of a file, it&#8217;s only got about 43,000 characters.Â  It&#8217;s tab-delimited, meaning that in the text file, there&#8217;s a unprinted tab character (\t) between each section of the data, to separate out each of the cells.Â  What I wanted to do was churn this tabbed text file into an XML .plist, or Property List file.Â  I&#8217;m sure there&#8217;s a more elegant way of doing this (without having to do it by hand, obviously), but I chose to create a regular expression &#8230; here&#8217;s what the &#8220;Search For&#8221; string looks like:</p>
<p><code>^(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\r</code></p>
<p>And here&#8217;s what the &#8220;Replace With&#8221; string looked like:</p>
<p><code>legislatorID\r\1\rlegtype_name\r\2\rlegtype\r\3\rlastname\r\4\rfirstname\r\5\rmiddlename\r\6\rnickname\r\7\rsuffix\r\8\rparty_name\r\9\rparty_id\r\10\rdistrict\r\11\rtenure\r\12\rpartisan_index\r\13\rphoto_name\r\14\rbio_url\r\15\rnotes\r\16\rgallery_desk\r\17\rcap_office\r\18\rstaff\r\19\rcap_phone\r\20\rcap_fax\r\21\rcap_phone2_name\r\22\rcap_phone2\r\23\rdist1_street\r\24\rdist1_city\r\25\rdist1_zip\r\26\rdist1_phone\r\27\rdist1_fax\r\28\rdist2_street\r\29\rdist2_city\r\30\rdist2_zip\r\31\rdist2_phone\r\32\rdist2_fax\r\33\rdist3_street\r\34\rdist3_city\r\35\rdist3_zip\r\36\rdist3_phone1\r\37\rdist3_fax\r\38\rdist4_street\r\39\rdist4_city\r\40\rdist4_zip\r\41\rdist4_phone1\r\42\rdist4_fax\r\43\r\r</code></p>
<p>Needless to say, it did not go over well.Â  BBEdit died after ten minutes of churning.Â  Perl sucked up 2 Gigs of RAM before I had to kill it.Â  Sure I could process the file little bits at a time, but wouldn&#8217;t that be taking the fun out of regular expressions?</p>
<h2>EDIT / Update:Â </h2>
<p>Yeah, about all that. With a tiny bit of touching up, a demo version ofÂ <a rel="nofollow" href="http://macromates.com/">TextMate</a>Â processed the whole file in about 6 seconds. Sounds like someoneâ€™s going to actually have to pay for a software registration when the demo expires. Nothing like knocking my socks off and shaming a few industry leaders to earn your keep. Nice job there buddy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sleestacks.com/2009/05/25/the-trouble-with-regular-expressions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Allow me to expound on my car&#8217;s litany of woes.</title>
		<link>http://www.sleestacks.com/2009/04/15/my-cars-litany-of-woes/</link>
		<comments>http://www.sleestacks.com/2009/04/15/my-cars-litany-of-woes/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 22:12:20 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Cars]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[Audi A6]]></category>
		<category><![CDATA[Audi dealer full of horseshit]]></category>
		<category><![CDATA[repairs]]></category>
		<category><![CDATA[transmission]]></category>
		<category><![CDATA[ZF 5HP19FLA]]></category>

		<guid isPermaLink="false">http://www.sleestacks.com/?p=73</guid>
		<description><![CDATA[So I have this great car, a 2002 Audi A6 Quattro (2.7L Bi-Turbo).  Not the one pictured on the right, but close enough.  My car and I have this special relationship.  One day I&#8217;ll tell you all how it started, but not today.  Today, you see, I&#8217;m telling you how it&#8217;s likely to end.  So we&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-74" title="audi" src="http://www.sleestacks.com/wp-content/uploads/2009/04/audi.jpg" alt="audi" /><br />
So I have this great car, a 2002 Audi A6 Quattro (2.7L Bi-Turbo).  Not the one pictured on the right, but close enough.  My car and I have this special relationship.  One day I&#8217;ll tell you all how it started, but not today.  Today, you see, I&#8217;m telling you how it&#8217;s likely to end.  So we&#8217;ve got this special relationship.  It drives me to school and I fix it up when it breaks.  Lately, there&#8217;s a lot of the latter and not much of the former.</p>
<ol>
<li>It all started going downhill last year when I noticed that it literally spewed out any gas over 3/4 full in the fuel tank.  Since this job didn&#8217;t qualify as a DIY, I took it to the dealership.  $2,600 later and the tank fills just fine.  Luckily, later that year Audi decided to fix this defect in the whole line of cars, and thus refunded me that expense.</li>
<li>Then I got this check engine light (CEL) &#8230; the computer/scanner tells me that the engine is running too lean, meaning it&#8217;s got too much oxygen coming in to the combustion chamber.  After a few weeks of hunting down cracked and broken vacuum hoses throughout the engine bay, the code now stays off and the engine runs great.</li>
<li>A few months later, I notice that during a heavy rain the rack that holds the battery, along with the brake boosters, master cylinder, and ECM module filled completely with rain water.  Audi didn&#8217;t think to remove a plastic cap that drains this out &#8230; Sadly, by the time I fixed it, the brake fluid reservoir and brake boosters got water in them, then rusted.  So I flush it as best I can, but now my brake booster squeaks like nails on a chalkboard every time I pump them.</li>
<li>In the course of flushing my brake fluid, I figured I might as well replace the brake disc rotors and pads.  This is about a month ago.  While midst replacement, I notice that a CV joint boot that holds in axel grease and protects the joint had recently obliterated itself.  The clue to this issue was the lack of axel grease on the front drive axel, yet everywhere else around it, such as the wheel well, brake rotors, brake calipers, suspension linkage, yeah &#8230; all that crap had lots of axel grease when there shouldn&#8217;t be any.  Funny how that happens.  I replaced the front drive axel (which comes with the CV boots) and all was well&#8230;</li>
<li>Then I got another CEL &#8230; this one told me that I have a stuck valve in my torque converter.  I had seen this particular code come up once before about a year ago, but it went away.  Looking online, folks said this generally comes on when the Automatic Transmission Fluid (ATF) is too low.  Odd, given that my friend/neighbor and I had changed the ATF and transmission filter about a year ago.  Interesting.  When I approach the Audi dealer about doing another ATF change, thinking I must have done it wrong, the Audi dealer refuses, saying the fluid is good for the life of the car &#8230; I call horseshit. This leads me to my latest &#8230;</li>
<li>I take the car, which now is showing some symptoms of transmission issues, to a european transmission rebuilder, hoping that a proper fluid change will fix my problems.  Sadly, after several days on the lift, they inform me that the low fluid was due to a leak.  They fixed the leak, but the damage was already done.  Clutch plates had burned.  The torque converter is in serious trouble.  My trusty old ZF 5HP19FLA transmission isn&#8217;t so trusty anymore. The estimated fix for this one?  Between $2,800 and $3,400 US dollars.  Holy shit.</li>
<li>I&#8217;m thinking that I should just drive it until the transmission collapses in a whimper or calamitous implosion.  But that might happen in the next couple of months.  I&#8217;m not really set up to spend $3,400 on a transmission rebuild, but then again I&#8217;m not set up to buy another car when this one completely fails, either.</li>
<li>Oh yeah, I almost forgot.  When you drive the car above 60 mph, the whole thing shakes like your granny&#8217;s false teeth in a blizzard.  Looks like some control arm bushings need a little love, too.</li>
<li>I love my car.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.sleestacks.com/2009/04/15/my-cars-litany-of-woes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thank God we got this settled&#8230;</title>
		<link>http://www.sleestacks.com/2009/01/29/thank-god-we-got-this-settled/</link>
		<comments>http://www.sleestacks.com/2009/01/29/thank-god-we-got-this-settled/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 16:17:17 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Dino-tacular]]></category>
		<category><![CDATA[God Bless Texas]]></category>
		<category><![CDATA[Jesus]]></category>
		<category><![CDATA[Legislature]]></category>

		<guid isPermaLink="false">http://www.sleestacks.com/?p=58</guid>
		<description><![CDATA[Representative Charlie Geren's HCR 16 irons out a troubling question about those Bible-troubling dinosaur bones in Glen Rose, Texas.]]></description>
			<content:encoded><![CDATA[<p>Â </p>
<div id="attachment_59" class="wp-caption alignleft" style="width: 210px"><img class="size-full wp-image-59  " style="margin: 10px;" title="jesus_on_dino" src="http://www.sleestacks.com/wp-content/uploads/2009/01/jesus_on_dino.jpg" alt="Jesus riding a dinosaur" width="200" height="300" /><p class="wp-caption-text">Jesus riding a dinosaur</p></div>
<p>So it&#8217;s been said that the 81st regular session of the Texas House of Representatives would be a dull one. Â The Speaker of the House is <em>not</em>Â Tom Craddick, much to everyone&#8217;s surprise, so no more Texas State Troopers storming the chamber to prevent a violent mutiny. Â The public already knows about all the ghost voting, or as I like to call it &#8220;Surprise, Representative Alonzo, you&#8217;re now a Republican&#8221;, so there&#8217;s no more excitement there. Â But little did we know that Representative Charlie Geren from Texas&#8217; 99th district had a little nugget (nougat?) of legislative gold in store for us. Â </p>
<p><span id="more-58"></span></p>
<p><a title="81(R) HCR16" href="http://www.legis.state.tx.us/tlodocs/81R/billtext/html/HC00016I.htm" target="_blank">HCR 16</a>Â irons out a troubling question about those Bible-troubling dinosaur bones in Glen Rose, Texas.Â Word on the wire is that we&#8217;ve had our state dinosaur wrong all these years. Â New scientific evidence shows that what we thought to be aÂ <em>Pleurocoelus </em>(ploor-oh-seel-us), meaning &#8220;hollow-sided&#8221;, is in reality aÂ <em>Paluxysaurus Jonesi</em> (sounds just like it reads), meaning &#8220;Paluxy Lizard&#8221;. Â This new lizard is said to have lived 112 million years ago (according toÂ heathenÂ organization <a title="Wikipedia" href="http://en.wikipedia.org/wiki/Paluxysaurus" target="_blank">Wikipedia</a>), but we all know it can&#8217;t be a day (or seven) older than 6,000 years old. Â Documentary evidence of its age is provided on the left for your evaluation.</p>
<p>So thankfully we have the Texas State House to clear up these concerns that I know keep you awake at night. Â Certainly a matter as important as this is best addressed well before we knock out other minor details such as public education financing, prison overcrowding, oh and that pesky Texas economy that seems to have tanked what with all the people jumping out of high-rise windows downtown.</p>
<p>Thank you Representative Geren, for setting the record straight, and for proving that the state legislature <em>can</em>Â actually get things done in only 140 calendar days every other year (provided the spring weather doesn&#8217;t force the legislators out to the old fishing hole with their poles in their hand).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sleestacks.com/2009/01/29/thank-god-we-got-this-settled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Porn Industry Stimulus Package</title>
		<link>http://www.sleestacks.com/2009/01/09/porn-industry-stimulus-package/</link>
		<comments>http://www.sleestacks.com/2009/01/09/porn-industry-stimulus-package/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 08:19:11 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Economic Stimulii]]></category>
		<category><![CDATA[Woody]]></category>

		<guid isPermaLink="false">http://www.sleestacks.com/?p=56</guid>
		<description><![CDATA[Larry Flynt (of Hustler Fame) is tired of seeing all this good money go to bad people, what with all these slick auto manufacturers rolling in the hay with our hard earned virgin taxes. Â So, dear old Larry is looking for a little government assistance for something a little more near and dear to our [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><a href="http://www.sleestacks.com/wp-content/uploads/2009/01/woody.gif"><img class="alignnone size-thumbnail wp-image-57" title="Woody" src="http://www.sleestacks.com/wp-content/uploads/2009/01/woody-150x150.gif" alt="Woody as Larry" width="150" height="150" align="right" /></a></span></p>
<p style="text-align: left;"><strong>Larry Flynt</strong> (of Hustler Fame) is tired of seeing all this good money go to bad people, what with all these slick auto manufacturers rolling in the hay with our hard earned virgin taxes. Â So, dear old Larry is <a title="bailout" href="http://politicalticker.blogs.cnn.com/2009/01/07/porn-industry-seeks-federal-bailout/" target="_blank">looking for a little government assistance</a> for something a little more near and dear to our hearts, or at least our loins&#8230; He&#8217;s asking for a measly $5 billion to help out the US porn industry. Â Now some of you may shrug this off as excessive or just silly, but here&#8217;s some figures to ponder&#8230;</p>
<p style="text-align: left;">Â </p>
<p><span id="more-56"></span></p>
<p>Â </p>
<p>Â </p>
<p>Â </p>
<table border="0" cellspacing="1" cellpadding="1" width="430"><!--StartFragment--><br />
<col width="185"></col>
<col width="235"></col>
<tbody></tbody>
<tbody></tbody>
<tbody></tbody>
<tbody>
<tr height="13">
<td class="xl24" width="188" height="13"><strong>US Auto Industry</strong></td>
<td class="xl24" width="75"><strong>US Porn Industry</strong></td>
</tr>
<tr height="13">
<td height="13">$226 billion in &#8220;new&#8221; sales</td>
<td>$13.3 billion</td>
</tr>
<tr height="13">
<td height="13">130 million &#8220;domestic&#8221; drivers</td>
<td>127 million customers</td>
</tr>
<tr height="13">
<td height="13">5.4 million cars sold</td>
<td>42% of Americans are customers</td>
</tr>
<tr height="13">
<td height="13">3 major manufacturers in the US</td>
<td>5 major producers in the US</td>
</tr>
<tr height="13">
<td height="13">465,000 workers</td>
<td>Millions of Hot Chicks and Hundreds of Dorks as trained &#8220;actors&#8221;</td>
</tr>
<tr height="13">
<td height="13">Cushy Benefits</td>
<td>No Retirement &#8220;Packages&#8221; to fall back on</td>
</tr>
<tr height="13">
<td height="13">$25 billion bailout</td>
<td>$5 billion bailout</td>
</tr>
</tbody>
</table>
<p>Â </p>
<p>All things considered, I think it&#8217;s a bargain. Â Hey, I&#8217;m so eager to help I think I&#8217;ll donate $9.99 right this minute.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sleestacks.com/2009/01/09/porn-industry-stimulus-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Adam &#8220;Bullet Proof&#8221; Reposa</title>
		<link>http://www.sleestacks.com/2008/04/17/free-adam-bullet-proof-reposa/</link>
		<comments>http://www.sleestacks.com/2008/04/17/free-adam-bullet-proof-reposa/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 18:48:52 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[morons]]></category>

		<guid isPermaLink="false">http://www.sleestacks.com/?p=44</guid>
		<description><![CDATA[It just so happens Bulletproof has managed to get into a little stink with a Travis County Court judge when he made an obscene jester at the opposing prosecuting attorney. This "simulated masturbatory gesture" landed him a Contempt of Court charge as well as 90 days in jail.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-45" style="float: right;" title="Wanker" src="http://www.sleestacks.com/wp-content/uploads/2008/04/wanker-300x200.jpg" alt="What a wanker" width="300" height="200" /></p>
<p style="text-align: left;">So Adam Reposa, heretofore known as &#8220;Bulletproof&#8221;, is criminal defense attorney in Austin.  It just so happens he attended UT Law with Lorin.  It just so happens Bulletproof has managed to get into a little stink with a Travis County Court judge when he made an obscene jester at the opposing prosecuting attorney.  This &#8220;simulated masturbatory gesture&#8221; landed him a Contempt of Court charge as well as 90 days in jail.</p>
<p style="text-align: left;">Granted, if I ever find myself in a Travis County jailhouse after a heavy night of binge drinking and a few smashed up cars in my rearview mirror, I would probably give Bulletproof a ring. Â It sounds like the prosecutor really pissed him off with some legal objection, so I&#8217;m sure it was a deserved response. Â But still, I&#8217;m left wondering WTF?</p>
<p style="text-align: left;">Â Here&#8217;s the original report from <a href="http://www.keyetv.com/content/entertainment/watercooler/story.aspx?content_id=6da0dd00-bc1c-47ea-8ac8-e8b3720e420e">K-Eye News</a>. Â BP has since returned before the judge and &#8220;apologized&#8221; (with his middle finger, assuredly), but the judge followed through with a sentence of 90 days in jail. Â Here are Bulletproof&#8217;s <a href="http://www.keyetv.com/mediacenter/local.aspx?videoid=18335@keye.dayport.com&amp;navCatId=5">comments</a> following the sentencing.  My favorite quote:</p>
<blockquote>
<p style="text-align: left;">&#8220;I&#8217;m not very good at looking contrite. Â All I do is wake up in the morning and fight the government.&#8221;</p>
</blockquote>
<p style="text-align: left;">The backlash is even more amusing, given his sudden prominence in a number of <a href="http://mrcanacorn.wordpress.com/2008/03/28/the-dwi-stud/">blogs</a>, (including this one?) Please click on through at some awesome YouTube footage of his commercials. Â What a guy.</p>
<p style="text-align: left;">Â </p>
<p style="text-align: left;">Â </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sleestacks.com/2008/04/17/free-adam-bullet-proof-reposa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

