<?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>code candies - codecandies.com</title>
	<atom:link href="http://www.codecandies.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codecandies.com</link>
	<description></description>
	<lastBuildDate>Thu, 10 Jan 2019 14:04:16 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Eaten by a gigantic spider</title>
		<link>http://www.codecandies.com/2015/04/14/eaten-by-a-gigantic-spider/</link>
		<comments>http://www.codecandies.com/2015/04/14/eaten-by-a-gigantic-spider/#comments</comments>
		<pubDate>Tue, 14 Apr 2015 20:02:52 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[fluchen wie ein Bierkutscher]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[spider]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=3100</guid>
		<description><![CDATA[Thanks to Hans for this code candy // Hack to save null value for imageId // The Zend Framework removes the key of all null values // in the params array&#8230; // See http://stackoverflow.com/questions/1999797/zend- // framework-getting-an-empty-param // SERIOUSLY WHAT THE FUCK IS THIS SHIT? // I HOPE THE STUPID ZEND FRAMEWORK DEVELOPERS GET EATEN // [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to Hans for this code candy</p>
<blockquote><p>
// Hack to save null value for imageId<br />
// The Zend Framework removes the key of all null values<br />
// in the params array&#8230;<br />
// See http://stackoverflow.com/questions/1999797/zend-<br />
// framework-getting-an-empty-param<br />
// SERIOUSLY WHAT THE FUCK IS THIS SHIT?<br />
// I HOPE THE STUPID ZEND FRAMEWORK DEVELOPERS GET EATEN<br />
// BY A GIGANTIC SPIDER!!!
</p></blockquote>
<p><b>Programming language:</b> PHP</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2015/04/14/eaten-by-a-gigantic-spider/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>This annoyed many windows users</title>
		<link>http://www.codecandies.com/2015/04/14/this-annoyed-many-windows-users/</link>
		<comments>http://www.codecandies.com/2015/04/14/this-annoyed-many-windows-users/#comments</comments>
		<pubDate>Tue, 14 Apr 2015 19:47:41 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[zum Verzweifeln]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[mcaffee]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[widows]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=3091</guid>
		<description><![CDATA[Thanks to Andreas R. for this code candy /* ** 2006-10-31: The default prefix used to be &#8220;sqlite_&#8221;. ** But then Mcafee started using SQLite in their anti- ** virus product and it started putting files with the ** &#8220;sqlite&#8221; name in the c:/temp folder. ** This annoyed many windows users. Those users would then [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to Andreas R. for this code candy</p>
<blockquote><p>
/*<br />
** 2006-10-31:  The default prefix used to be &#8220;sqlite_&#8221;.<br />
** But then Mcafee started using SQLite in their anti-<br />
** virus product and it started putting files with the<br />
** &#8220;sqlite&#8221; name in the c:/temp folder.<br />
** This annoyed many windows users.  Those users would then<br />
** do a Google search for &#8220;sqlite&#8221;, find the telephone<br />
** numbers of the developers and call to wake them up at<br />
** night and complain.<br />
** For this reason, the default name prefix is changed to<br />
** be &#8220;sqlite&#8221; spelled backwards. So the temp files are<br />
** still identified, but anybody smart enough to figure<br />
** out the code is also likely smart enough to know that<br />
** calling the developer will not help get rid of the<br />
** file.<br />
*/<br />
#ifndef SQLITE_TEMP_FILE_PREFIX<br />
# define SQLITE_TEMP_FILE_PREFIX &#8220;etilqs_&#8221;<br />
#endif
</p></blockquote>
<p><b>Source: <a href="https://www.sqlite.org/src/artifact/3e57a24e2794a94d?ln=52,66" target="_blank">Direct link to the source code</a></b><br />
<b>Software: <a href="https://www.sqlite.org/" target="_blank">SQLite</a></b><br />
<b>Programming language:</b> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2015/04/14/this-annoyed-many-windows-users/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I’m sleepy</title>
		<link>http://www.codecandies.com/2014/11/03/i-am-sleepy/</link>
		<comments>http://www.codecandies.com/2014/11/03/i-am-sleepy/#comments</comments>
		<pubDate>Mon, 03 Nov 2014 21:08:16 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[machs halt besser]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[sleepy]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=3085</guid>
		<description><![CDATA[Thanks to Tito for this code candy // TODO: I believe the method (and all class in general) // doesn&#8217;t make any sense at all, but I&#8217;m sleepy and // it works fine Programming language: C#]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to Tito for this code candy</p>
<blockquote><p>
// TODO: I believe the method (and all class in general)<br />
// doesn&#8217;t make any sense at all, but I&#8217;m sleepy and<br />
// it works fine
</p></blockquote>
<p><b>Programming language:</b> C#</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2014/11/03/i-am-sleepy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skip reading</title>
		<link>http://www.codecandies.com/2014/05/23/skip-reading/</link>
		<comments>http://www.codecandies.com/2014/05/23/skip-reading/#comments</comments>
		<pubDate>Fri, 23 May 2014 19:34:35 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[machs halt besser]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=3080</guid>
		<description><![CDATA[// if you do not like UGLY MONSTERHACKS, // skip reading the next three lines [&#8230;] Programming language: Java]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
// if you do not like UGLY MONSTERHACKS,<br />
// skip reading the next three lines<br />
[&#8230;]
</p></blockquote>
<p><b>Programming language:</b> Java</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2014/05/23/skip-reading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get all females</title>
		<link>http://www.codecandies.com/2014/05/14/get-all-females/</link>
		<comments>http://www.codecandies.com/2014/05/14/get-all-females/#comments</comments>
		<pubDate>Wed, 14 May 2014 19:49:54 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[girls]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=3073</guid>
		<description><![CDATA[Thanks to Mike for this code candy // A function that retrieves all females from the database // for processing and display: function getGirls() { //if only it were really that simple [&#8230;] } Programming language: PHP]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to Mike for this code candy</p>
<blockquote><p>
// A function that retrieves all females from the database<br />
// for processing and display:<br />
function getGirls() { //if only it were really that simple<br />
[&#8230;]<br />
}
</p></blockquote>
<p><b>Programming language:</b> PHP</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2014/05/14/get-all-females/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jiggery-pokery</title>
		<link>http://www.codecandies.com/2012/08/20/jiggery-pokery/</link>
		<comments>http://www.codecandies.com/2012/08/20/jiggery-pokery/#comments</comments>
		<pubDate>Mon, 20 Aug 2012 19:35:05 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[fluidity]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2360</guid>
		<description><![CDATA[# all this f*cking around with unicode and the document # header is to get lxml to STFU. Yeah, this is probably # The Wrong Way(TM), once again, but that&#8217;s how I roll, # y0: ghetto-tastic shitball code. If you want # to understand why each of these changes was made, remove # this jiggery [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
# all this f*cking around with unicode and the document<br />
# header is to get lxml to STFU.  Yeah, this is probably<br />
# The Wrong Way(TM), once again, but that&#8217;s how I roll,<br />
# y0: ghetto-tastic shitball code.  If you want<br />
# to understand why each of these changes was made, remove<br />
# this jiggery pokery and you&#8217;ll see what I mean. ;-P
</p></blockquote>
<p><strong>Source:</strong> <a href="http://code.google.com/codesearch#XeC9KfD2sPY/fluidity/note.py&#038;type=cs&#038;l=160" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="https://code.google.com/p/fluidity/">Fluidity</a><br />
<strong>Programming language:</strong> Python</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/08/20/jiggery-pokery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2-dimensional array</title>
		<link>http://www.codecandies.com/2012/08/20/2-dimensional-array/</link>
		<comments>http://www.codecandies.com/2012/08/20/2-dimensional-array/#comments</comments>
		<pubDate>Mon, 20 Aug 2012 19:33:03 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[array]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2388</guid>
		<description><![CDATA[Thanks to liskel for this code candy // I have absolutely no idea, why it becomes a // 2-dimensional array &#8230; so working around instead // of solving $css = $css[0]; Programming language: PHP]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to liskel for this code candy</p>
<blockquote><p>
// I have absolutely no idea, why it becomes a<br />
// 2-dimensional array &#8230; so working around instead<br />
// of solving<br />
$css = $css[0];
</p></blockquote>
<p><b>Programming language:</b> PHP</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/08/20/2-dimensional-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Longest.  Comments.  Evar.</title>
		<link>http://www.codecandies.com/2012/08/07/longest-comments-evar/</link>
		<comments>http://www.codecandies.com/2012/08/07/longest-comments-evar/#comments</comments>
		<pubDate>Tue, 07 Aug 2012 19:48:13 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[fluidity]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2375</guid>
		<description><![CDATA[# FIXME: and this is just plain /wrong/. Naughty naughty # this is why I have to learn some kind of signal creation # techinque. OOOOH OH OH OH , ORRRRRR, I can just pass # in a single callback&#8230;? pull in one particular method # from the caller for the called object to refer [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
# FIXME: and this is just plain /wrong/. Naughty naughty<br />
# this is why I have to learn some kind of signal creation<br />
# techinque. OOOOH  OH OH OH , ORRRRRR, I can just pass<br />
# in a single callback&#8230;? pull in one particular method<br />
# from the caller for the called object to refer back to<br />
# as a conduit back into that caller.  Is that crack?<br />
# &#8230;.orrrrrrrrrr&#8230;..  the data manager is the one that<br />
# knows this shit and can take care of the &#8220;your shit<br />
# changed, so update it motherf*cker&#8221; kinds of tasks.<br />
#<br />
# Longest.  Comments.  Evar.
</p></blockquote>
<p><strong>Source:</strong> <a href="http://code.google.com/codesearch#XeC9KfD2sPY/fluidity/ui/dialogs.py&#038;type=cs&#038;l=460" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="https://code.google.com/p/fluidity/">Fluidity</a><br />
<strong>Programming language:</strong> Python</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/08/07/longest-comments-evar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim comments</title>
		<link>http://www.codecandies.com/2012/06/11/vim-comments/</link>
		<comments>http://www.codecandies.com/2012/06/11/vim-comments/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 20:42:10 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2350</guid>
		<description><![CDATA[&#8220;vim comments are so f*ckin stupid!! Why the hell do they &#8220;have comment delimiters that are used elsewhere in the &#8220;syntax?!?! We need to check some conditions especially &#8220;for vim Source: Direct link to the source code Software: Vim IDE Programming language: Vim Script]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
&#8220;vim comments are so f*ckin stupid!! Why the hell do they<br />
&#8220;have comment delimiters that are used elsewhere in the<br />
&#8220;syntax?!?! We need to check some conditions especially<br />
&#8220;for vim
</p></blockquote>
<p><strong>Source:</strong> <a href="http://code.google.com/codesearch#jvl2--W4Gzg/trunk/windows/Vim/vimfiles/plugin/NERD_commenter.vim&#038;type=cs&#038;l=2518" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> Vim IDE<br />
<strong>Programming language:</strong> Vim Script</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/06/11/vim-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distracted by their beards</title>
		<link>http://www.codecandies.com/2012/05/30/distracted-by-their-beards/</link>
		<comments>http://www.codecandies.com/2012/05/30/distracted-by-their-beards/#comments</comments>
		<pubDate>Wed, 30 May 2012 20:38:54 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[fluchen wie ein Bierkutscher]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[smileysmazehunt]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2340</guid>
		<description><![CDATA[/** &#160;* Returns the specified integer as a string because the &#160;* designers of C were too distracted by their beards to &#160;* write a lanague that doESNT SUCK ASS F*CK SHIT &#160;*/ Source: Direct link to the source code Software: smileysmazehunt Programming language: C++]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/**<br />
&nbsp;* Returns the specified integer as a string because the<br />
&nbsp;* designers of C were too distracted by their beards to<br />
&nbsp;* write a lanague that doESNT SUCK ASS F*CK SHIT<br />
&nbsp;*/
</p></blockquote>
<p><strong>Source:</strong> <a href="http://code.google.com/codesearch#BQBJwck-vt4/trunk/smiley.cpp&#038;type=cs&#038;l=197" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> smileysmazehunt<br />
<strong>Programming language:</strong> C++</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/05/30/distracted-by-their-beards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No exceptions</title>
		<link>http://www.codecandies.com/2012/05/30/no-exceptions/</link>
		<comments>http://www.codecandies.com/2012/05/30/no-exceptions/#comments</comments>
		<pubDate>Wed, 30 May 2012 20:33:48 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[exeption]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2333</guid>
		<description><![CDATA[Thanks to Tobias for this code candy return verify_iban($this->iban); # we could throw exceptions of various types, but why &#8211; # does it really add anything? possibly some slightly # better user feedback potential. however, this can be # written by hand by performing individual checks ala # the code in verify_iban() itself where required, [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to Tobias for this code candy</p>
<blockquote><p>
return verify_iban($this->iban);<br />
# we could throw exceptions of various types, but why &#8211;<br />
# does it really add anything? possibly some slightly<br />
# better user feedback potential. however, this can be<br />
# written by hand by performing individual checks ala<br />
# the code in verify_iban() itself where required, which<br />
# is likely almost never. for the increased complexity<br />
# and maintenance / documentation cost, i say,<br />
# therefore: no. no exceptions.
</p></blockquote>
<p><strong>Source:</strong> <a href="http://code.google.com/p/php-iban/source/browse/trunk/oophp-iban.php" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> php-iban<br />
<strong>Programming language:</strong> PHP</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/05/30/no-exceptions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE caching for ajax requests</title>
		<link>http://www.codecandies.com/2012/04/17/ie-caching-for-ajax-requests/</link>
		<comments>http://www.codecandies.com/2012/04/17/ie-caching-for-ajax-requests/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 20:20:39 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[fluchen wie ein Bierkutscher]]></category>
		<category><![CDATA[death]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2326</guid>
		<description><![CDATA[Thanks to dac-xp for this code candy /* &#160;* random number for the shitty InternetExplorer to f*ck &#160;* their caching-system. I hope the programmers of the IE &#160;* caching for ajax requests will die a terrible death. &#160;*/ var requestid = Math.random() * (9999999999-0+1); Programming language: JavaScript]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to dac-xp for this code candy</p>
<blockquote><p>
/*<br />
&nbsp;* random number for the shitty InternetExplorer to f*ck<br />
&nbsp;* their caching-system. I hope the programmers of the IE<br />
&nbsp;* caching for ajax requests will die a terrible death.<br />
&nbsp;*/<br />
var requestid = Math.random() * (9999999999-0+1);
</p></blockquote>
<p><strong>Programming language:</strong> JavaScript</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/04/17/ie-caching-for-ajax-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>God were we wrong</title>
		<link>http://www.codecandies.com/2012/04/03/god-were-we-wrong/</link>
		<comments>http://www.codecandies.com/2012/04/03/god-were-we-wrong/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 20:14:31 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2320</guid>
		<description><![CDATA[Thanks to Andi for this code candy /** this code does more than necessary. this was because we thought we could leave the parameters optional. god were we wrong&#8230; */ Programming language: PHP]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to Andi for this code candy</p>
<blockquote><p>
/**<br />
this code does more than necessary. this was because we thought we could leave the parameters optional. god were we wrong&#8230;<br />
*/
</p></blockquote>
<p><strong>Programming language:</strong> PHP</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/04/03/god-were-we-wrong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean it up</title>
		<link>http://www.codecandies.com/2012/01/06/clean-it-up/</link>
		<comments>http://www.codecandies.com/2012/01/06/clean-it-up/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 20:37:07 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[machs halt besser]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2313</guid>
		<description><![CDATA[/* &#160;* This code is rather messy, but I don&#8217;t have time right &#160;* now to clean it up as much as I would like. &#160;* But it works, so I&#8217;m happy. :-) jpw &#160;*/ Source: Direct link to the source code Software: OpenBSD Programming language: C]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/*<br />
&nbsp;* This code is rather messy, but I don&#8217;t have time right<br />
&nbsp;* now to clean it up as much as I would like.<br />
&nbsp;* But it works, so I&#8217;m happy. :-) jpw<br />
&nbsp;*/
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#pVnjyrKOxRk/arch/mac68k/dev/adb.c&#038;type=cs&#038;l=66" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> OpenBSD<br />
<strong>Programming language:</strong> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2012/01/06/clean-it-up/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>out-of-date preferences</title>
		<link>http://www.codecandies.com/2011/12/06/out-of-date-preferences/</link>
		<comments>http://www.codecandies.com/2011/12/06/out-of-date-preferences/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 21:36:51 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[PilotManager]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2305</guid>
		<description><![CDATA[# Now bring out-of-date preferences back up to speed # What a nice developer I am, taking care of the # behind-the-times users. :-) Source: Direct link to the source code Software: PilotManager Programming language: Perl]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
# Now bring out-of-date preferences back up to speed<br />
# What a nice developer I am, taking care of the<br />
# behind-the-times users. :-)
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#DPabaZP21vg/pub/NetBSD/packages/distfiles/LOCAL_PORTS/pilotmgr-1.107p2.tar.bz2%7CQ_7c0p_FdDw/pilotmgr/SyncCM.pm&#038;type=cs&#038;l=720" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="http://pilotmanager.sourceforge.net">PilotManager</a><br />
<strong>Programming language:</strong> Perl</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/12/06/out-of-date-preferences/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>this needs to be explained</title>
		<link>http://www.codecandies.com/2011/12/06/this-needs-to-be-explained/</link>
		<comments>http://www.codecandies.com/2011/12/06/this-needs-to-be-explained/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 21:32:17 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[göttliche Eingebung]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2301</guid>
		<description><![CDATA[Thanks to David for this code candy // this needs to be explained!! $this->_searchResult[$type] = $this->_searchResult[$type]; Programming language: PHP]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Thanks to David for this code candy</p>
<blockquote><p>
// this needs to be explained!!<br />
$this->_searchResult[$type] = $this->_searchResult[$type];
</p></blockquote>
<p><strong>Programming language:</strong> PHP</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/12/06/this-needs-to-be-explained/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Complicate your code</title>
		<link>http://www.codecandies.com/2011/10/23/complicate-your-code/</link>
		<comments>http://www.codecandies.com/2011/10/23/complicate-your-code/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 19:31:36 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[zum Verzweifeln]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jstore]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2281</guid>
		<description><![CDATA[// To make Flash Storage work on IE, we have to load up an // iFrame which contains an HTML page that embeds the // object using an object tag wrapping an embed tag. // Of course, this is unnecessary for all browsers except // for IE, which, to my knowledge, is the only browser [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
// To make Flash Storage work on IE, we have to load up an<br />
// iFrame which contains an HTML page that embeds the<br />
// object using an object tag wrapping an embed tag.<br />
// Of course, this  is unnecessary for all browsers except<br />
// for IE, which, to my knowledge, is the only browser in<br />
// existance where you need to complicate your code to<br />
// fix bugs. Goddamnit. :(
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#DvRdSXpx2js/trunk/%20wsctn/WS-Web/WebContent/script/hp/jquery.jstore-all.js&#038;type=cs&#038;l=657" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="http://code.google.com/p/jquery-jstore">jStore</a><br />
<strong>Programming language:</strong> Java Script</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/10/23/complicate-your-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trying to understand this years from now</title>
		<link>http://www.codecandies.com/2011/09/27/trying-to-understand-this-years-from-now/</link>
		<comments>http://www.codecandies.com/2011/09/27/trying-to-understand-this-years-from-now/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 19:52:26 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[Perl Source]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2275</guid>
		<description><![CDATA[/* Most of this code was written while watching the Marlins sweep the Giants in the 1997 National League Playoffs &#8211; no Braves fans allowed to use this code (just kidding :-). I realize that if I wanted to be true to the perl tradition, the only comment in this file would be something like: [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/*<br />
   Most of this code was written while watching the Marlins sweep the Giants in the 1997 National League Playoffs &#8211; no Braves fans allowed to use this code (just kidding :-).</p>
<p>   I realize that if I wanted to be true to the perl tradition, the only comment in this file would be something like:</p>
<p>   &#8230;they shuffled back towards the rear of the line. &#8216;No, not at the rear!&#8217;  the slave-driver shouted. &#8216;Three files up. And stay there&#8230;</p>
<p>   However, I really needed to violate that tradition just so I could keep track of what happens myself, not to mention some poor fool trying to understand this years from now :-).<br />
*/
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#E4XixW5gvCc/pub/CPAN/src/latest.tar.bz2|NU9eyGOUCk8/perl-5.12.1/pp_sort.c&#038;l=599" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="http://www.cpan.org/src/">Perl Source</a><br />
<strong>Programming language:</strong> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/09/27/trying-to-understand-this-years-from-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Relax</title>
		<link>http://www.codecandies.com/2011/09/13/relax/</link>
		<comments>http://www.codecandies.com/2011/09/13/relax/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 21:15:47 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[QEcho]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2269</guid>
		<description><![CDATA[/* uhhh&#8230;. i&#8217;ve commented this out. it was a great pervertion, i know, but it could result in broken packets, and that&#8217;s more f*cking than a simply crash. Relax. */ Source: Direct link to the source code Software: QEcho Programming language: C]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/*<br />
   uhhh&#8230;. i&#8217;ve commented this out. it was a great pervertion,<br />
   i know, but it could result in broken packets, and that&#8217;s<br />
   more f*cking than a simply crash. Relax.<br />
*/
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#-3MUC_MJZAo/pub/misc/unsorted/qecho-3.57pl9.1e.tgz|lva7enIrJoA/qecho-3.57pl9.1e/qecho.c&#038;type=cs&#038;l=153" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> QEcho<br />
<strong>Programming language:</strong> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/09/13/relax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>feel good today?</title>
		<link>http://www.codecandies.com/2011/08/23/feel-good-today/</link>
		<comments>http://www.codecandies.com/2011/08/23/feel-good-today/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 19:59:11 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[fluchen wie ein Bierkutscher]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[cinema4d]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2258</guid>
		<description><![CDATA[/* okay, this is a mess. some 3d apps seem to try being */ /* unique, hello cinema4d &#038; 3d exploration, feel good */ /* today?, and save this crap in tons of different */ /* formats. gah, those screwed coders. tho the */ /* wavefront obj standard defines exactly two ways */ /* of [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/* okay, this is a mess. some 3d apps seem to try being */<br />
/* unique, hello cinema4d &#038; 3d exploration, feel good */<br />
/* today?, and save this crap in tons of different */<br />
/* formats. gah, those screwed coders. tho the */<br />
/* wavefront obj standard defines exactly two ways */<br />
/* of storing face information. so, i really won&#8217;t */<br />
/* support such stupid extravaganza here! */
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#oNJWyUxJnsI/trunk/libs/picomodel/pm_obj.c&#038;type=cs&#038;l=676" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="http://code.google.com/p/osxnetradiant/">osxnetradiant</a><br />
<strong>Programming language:</strong> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/08/23/feel-good-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>smelling like retched cigarette ashes</title>
		<link>http://www.codecandies.com/2011/08/16/smelling-like-retched-cigarette-ashes/</link>
		<comments>http://www.codecandies.com/2011/08/16/smelling-like-retched-cigarette-ashes/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 20:27:07 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[machs halt besser]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2252</guid>
		<description><![CDATA[/* We changed phase but ESP shows bus service, &#160;* in this case it is most likely that we, the &#160;* hacker who has been up for 20hrs straight &#160;* staring at the screen, drowned in coffee &#160;* smelling like retched cigarette ashes &#160;* have miscoded something&#8230; so, try to &#160;* recover as best we [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/* We changed phase but ESP shows bus service,<br />
&nbsp;* in this case it is most likely that we, the<br />
&nbsp;* hacker who has been up for 20hrs straight<br />
&nbsp;* staring at the screen, drowned in coffee<br />
&nbsp;* smelling like retched cigarette ashes<br />
&nbsp;* have miscoded something&#8230; so, try to<br />
&nbsp;* recover as best we can.<br />
&nbsp;*/
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#KVTjzuVpblQ/pub/linux/kernel/v2.1/linux-2.1.132.tar.bz2|rRQVdpFovMU/linux/drivers/scsi/esp.c&#038;type=cs&#038;l=3149" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="http://kernel.org/">Linux Kernel</a><br />
<strong>Programming language:</strong> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/08/16/smelling-like-retched-cigarette-ashes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why are smart people using this?</title>
		<link>http://www.codecandies.com/2011/08/09/why-are-smart-people-using-this/</link>
		<comments>http://www.codecandies.com/2011/08/09/why-are-smart-people-using-this/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 22:14:47 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[fluchen wie ein Bierkutscher]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Tamatebako]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2241</guid>
		<description><![CDATA[# WTF is this? http://optionparser.rubyforge.org/ # why are there like 20 differnt option parsers all called # OptionParser!? and seemingly no attempt at # disambiguation. its like an oldskool CPAN clusterfuck # all over again. This is what you get when a buncha non # english speakers design a programming language in # english, and [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
# WTF is this? http://optionparser.rubyforge.org/<br />
#   why are there like 20 differnt option parsers all called<br />
#   OptionParser!? and seemingly no attempt at<br />
#   disambiguation. its like an oldskool CPAN clusterfuck<br />
#   all over again. This is what you get when a buncha non<br />
#   english speakers design a programming language in<br />
#   english, and a buncha SanFran webdesigners, in all their<br />
#   VWbug-pastelcolored-sushiloving-DeathCabforCutie glory<br />
#   flocked like hipster lemmings because Ruby was<br />
#   &#8220;written by a Japanese guy&#8221;. This language is seriously<br />
#   pissing me off. Why are smart people using this?
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#Qf0ue6KK-Bc/bincompare.rb&#038;l=13" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="https://github.com/s7ephen/Tamatebako">Tamatebako</a><br />
<strong>Programming language:</strong> Ruby</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/08/09/why-are-smart-people-using-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t read this code right after dinner</title>
		<link>http://www.codecandies.com/2011/07/26/dont-read-this-code-right-after-dinner/</link>
		<comments>http://www.codecandies.com/2011/07/26/dont-read-this-code-right-after-dinner/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 21:14:38 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[Magie]]></category>
		<category><![CDATA[black magic]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2233</guid>
		<description><![CDATA[/* &#160;* Accessing the EEPROM is `interesting&#8217; to say the least &#160;* &#8211; don&#8217;t read this code right after dinner. &#160;* &#160;* This is all about black magic and bit-banging the &#160;* device&#8230; I wonder in what hospital they have put the guy &#160;* who designed the i2c specs. &#160;* &#160;* Oh yes, this is [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/*<br />
&nbsp;* Accessing the EEPROM is `interesting&#8217; to say the least<br />
&nbsp;* &#8211; don&#8217;t read this code right after dinner.<br />
&nbsp;*<br />
&nbsp;* This is all about black magic and bit-banging the<br />
&nbsp;* device&#8230; I wonder in what hospital they have put the guy<br />
&nbsp;* who designed the i2c specs.<br />
&nbsp;*<br />
&nbsp;* Oh yes, this is only the beginning!<br />
&nbsp;*/
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#KMCRKdMbI4g/drivers/net/acenic.c&#038;l=2999" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> Linux driver for the Alteon AceNIC Gigabit Ethernet card<br />
<strong>Programming language:</strong> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/07/26/dont-read-this-code-right-after-dinner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yellow pages</title>
		<link>http://www.codecandies.com/2011/07/17/yellow-pages/</link>
		<comments>http://www.codecandies.com/2011/07/17/yellow-pages/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 22:29:17 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[code candies]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2230</guid>
		<description><![CDATA[/* &#160;* It&#8217;s someone else&#8217;s. Let our fingers &#160;* do the walking. (Why the fuck do they call it &#160;* the &#8220;yellow pages&#8221; anyway. They&#8217;re white pages &#160;* dammit! If they were YELLOW pages, we could &#160;* say ypmatch &#8220;Automobile, Dealers, Retail&#8221;, and &#160;* things like that !). &#160;*/ Source: Direct link to the source [&#8230;]]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/*<br />
&nbsp;* It&#8217;s someone else&#8217;s. Let our fingers<br />
&nbsp;* do the walking. (Why the fuck do they call it<br />
&nbsp;* the &#8220;yellow pages&#8221; anyway. They&#8217;re white pages<br />
&nbsp;* dammit! If they were YELLOW pages, we could<br />
&nbsp;* say ypmatch &#8220;Automobile, Dealers, Retail&#8221;, and<br />
&nbsp;* things like that !).<br />
&nbsp;*/
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#8hsCawl-2Kk/pub/grafik/urt-3.1.tar.gz|FmVf0f4anKw/urt-3.1/get/gettaac.c&#038;type=cs&#038;l=525" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="http://www.cs.utah.edu/gdc/projects/urt/" target="_blank">Utah Raster Toolkit</a><br />
<strong>Programming language:</strong> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/07/17/yellow-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This algorithm sucks</title>
		<link>http://www.codecandies.com/2011/07/13/this-algorithm-sucks/</link>
		<comments>http://www.codecandies.com/2011/07/13/this-algorithm-sucks/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 21:02:38 +0000</pubDate>
		<dc:creator><![CDATA[Christoph]]></dc:creator>
				<category><![CDATA[machs halt besser]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[flood]]></category>

		<guid isPermaLink="false">http://www.codecandies.com/?p=2223</guid>
		<description><![CDATA[/* FIXME: This algorithm sucks. I need to be shot for &#160;* writing such atrocious code. Grr. */ Source: Direct link to the source code Software: Flood &#8211; a profile-driven HTTP load tester Programming language: C]]></description>
				<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<blockquote><p>
/* FIXME: This algorithm sucks.  I need to be shot for<br />
&nbsp;* writing such atrocious code.  Grr.  */
</p></blockquote>
<p><strong>Source:</strong> <a href="http://www.google.com/codesearch#gxQraQScfmw/trunk/flood_round_robin.c&#038;type=cs&#038;l=1078" target="_blank">Direct link to the source code</a><br />
<strong>Software:</strong> <a href="http://httpd.apache.org/test/flood/" target="_blank">Flood &#8211; a profile-driven HTTP load tester</a><br />
<strong>Programming language:</strong> C</p>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://www.codecandies.com/2011/07/13/this-algorithm-sucks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
