<?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>House of Metnetsky &#187; humor</title>
	<atom:link href="http://cowarthill.com/blog/index.php/category/humor/feed/" rel="self" type="application/rss+xml" />
	<link>http://cowarthill.com/blog</link>
	<description>Run Tortoise Run</description>
	<lastBuildDate>Fri, 26 Feb 2010 17:15:33 +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>The Mighty &#8220;Success Exception&#8221;</title>
		<link>http://cowarthill.com/blog/index.php/2009/10/02/the-mighty-success-exception/</link>
		<comments>http://cowarthill.com/blog/index.php/2009/10/02/the-mighty-success-exception/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 12:54:40 +0000</pubDate>
		<dc:creator>MET</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://cowarthill.com/blog/?p=295</guid>
		<description><![CDATA[For all those Java programmers who feel lonely in the land of .NET &#8211; here&#8217;s a class just for you!]]></description>
			<content:encoded><![CDATA[<p>For all those Java programmers who feel lonely in the land of .NET &#8211; here&#8217;s a class just for you!</p>
<pre class="brush: csharp; title: ; notranslate">
using System;

namespace Biz.Your.Company.Goes.Here.Util
{
	public sealed class SuccessException : Exception
	{
		public SuccessException() : base()
		{
			System.Environment.Exit(1);
		}

		public SuccessException(string msg) : base(msg)
		{
			System.Environment.Exit(1);
		}

		public SuccessException(string msg, Exception exception) : base(msg, exception)
		{
			System.Environment.Exit(1);
		}
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://cowarthill.com/blog/index.php/2009/10/02/the-mighty-success-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Tutorial: Comments</title>
		<link>http://cowarthill.com/blog/index.php/2009/03/27/programming-tutorial-comments/</link>
		<comments>http://cowarthill.com/blog/index.php/2009/03/27/programming-tutorial-comments/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 23:38:30 +0000</pubDate>
		<dc:creator>MET</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[mono]]></category>

		<guid isPermaLink="false">http://cowarthill.com/blog/?p=260</guid>
		<description><![CDATA[Comments are only effective if they threaten abuse. Discovered by Noah Massey.]]></description>
			<content:encoded><![CDATA[<p>Comments are only effective if they threaten abuse.</p>
<pre class="brush: csharp; title: ; notranslate">
/**
 * Note: The following array MUST be sorted in order for BinarySearch to work. I have taken the liberty of
 * creating it sorted to avoid this operation. If you really feel the need to break the manual sorting,
 * uncomment the array.sort below this, and then go out and stand in front of traffic. thank you.
 */

string[] allowed_items  = {&quot;activate&quot;, &quot;restore&quot;, &quot;save&quot;, &quot;update-relay&quot;, &quot;verify-mount&quot;, &quot;verify-restore&quot;}; 

//Array.Sort(allowed_items);

if (Array.BinarySearch(allowed_items, list) &gt;= 0) {
	/* -.v.- */
}
</pre>
<p>Discovered by Noah Massey.</p>
]]></content:encoded>
			<wfw:commentRss>http://cowarthill.com/blog/index.php/2009/03/27/programming-tutorial-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Tutorial: Covering All Your Bases</title>
		<link>http://cowarthill.com/blog/index.php/2009/03/25/programming-tutorial-covering-all-your-bases/</link>
		<comments>http://cowarthill.com/blog/index.php/2009/03/25/programming-tutorial-covering-all-your-bases/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 13:30:21 +0000</pubDate>
		<dc:creator>MET</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://cowarthill.com/blog/?p=252</guid>
		<description><![CDATA[Make sure you cover all your bases when reseting variables: Discovered by @zewillow]]></description>
			<content:encoded><![CDATA[<p>Make sure you cover all your bases when reseting variables:</p>
<pre class="brush: php; title: ; notranslate">
if ($flag == &quot;yes&quot;) {
	$form-&gt;creationDate = null;
	$form-&gt;runCount = 0;
	$form-&gt;statusCode = 1;
} else {
	$form-&gt;creationDate = null;
	$form-&gt;runCount = 0;
	$form-&gt;statusCode = 1;
}
</pre>
<p>Discovered by <a href="http://twitter.com/zewillow" target="_blank">@zewillow</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cowarthill.com/blog/index.php/2009/03/25/programming-tutorial-covering-all-your-bases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Tutorial: Unreachable Code</title>
		<link>http://cowarthill.com/blog/index.php/2009/03/24/programming-tutorial-unreachable-code/</link>
		<comments>http://cowarthill.com/blog/index.php/2009/03/24/programming-tutorial-unreachable-code/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 22:30:47 +0000</pubDate>
		<dc:creator>MET</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://cowarthill.com/blog/?p=240</guid>
		<description><![CDATA[Always run non-existent commands after unreachable code. Discovered by Noah Massey.]]></description>
			<content:encoded><![CDATA[<p>Always run non-existent commands after unreachable code.</p>
<pre class="brush: bash; title: ; notranslate">
if [ `id -u` != 0 ]; then
	sudo $0
	exit $?
fi

if [ `dpkg -l | grep sun-java5 | wc -l` -eq 0 ]; then
	sh /media/cdrom0/application/appupgrade; # causes reboot
else
	sh /media/cdrom0/application/sysupgrade; # causes reboot
fi

sudo updat-java-alternatives -s java-6-sun;

exit 0;
</pre>
<p>Discovered by Noah Massey.</p>
]]></content:encoded>
			<wfw:commentRss>http://cowarthill.com/blog/index.php/2009/03/24/programming-tutorial-unreachable-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Tutorial: Readability</title>
		<link>http://cowarthill.com/blog/index.php/2009/03/18/programming-tutorial-readability/</link>
		<comments>http://cowarthill.com/blog/index.php/2009/03/18/programming-tutorial-readability/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 17:01:32 +0000</pubDate>
		<dc:creator>MET</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://cowarthill.com/blog/?p=213</guid>
		<description><![CDATA[Readability is always more important than simple one-liners: Discovered by @zewillow.]]></description>
			<content:encoded><![CDATA[<p>Readability is always more important than simple one-liners:</p>
<pre class="brush: php; title: ; notranslate">
if ($form-&gt;minute == 0) {
	$minute = &quot;00&quot;;
} else if ($form-&gt;minute &lt; 10) {
	$minute = &quot;0&quot; . $form-&gt;minute;
} else {
	$minute = $form-&gt;minute;
}
</pre>
<p>Discovered by <a href="http://twitter.com/zewillow" target="_blank">@zewillow</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cowarthill.com/blog/index.php/2009/03/18/programming-tutorial-readability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Tutorial: Variable Initialization</title>
		<link>http://cowarthill.com/blog/index.php/2009/03/17/programming-tutorial-variable-initialization/</link>
		<comments>http://cowarthill.com/blog/index.php/2009/03/17/programming-tutorial-variable-initialization/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 19:25:19 +0000</pubDate>
		<dc:creator>MET</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://cowarthill.com/blog/?p=207</guid>
		<description><![CDATA[Always make sure your variables are properly initialized: Discovered by @zewillow]]></description>
			<content:encoded><![CDATA[<p>Always make sure your variables are properly initialized:</p>
<pre class="brush: php; title: ; notranslate">
$list = $_SESSION['list'];

if ($list == null || $list == &quot;&quot;) {
	$list = $_SESSION['list'];
}
</pre>
<p>Discovered by <a href="http://twitter.com/zewillow" target="_blank">@zewillow</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cowarthill.com/blog/index.php/2009/03/17/programming-tutorial-variable-initialization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

