<?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>Blachan Lab &#187; Code</title>
	<atom:link href="http://blachan.com/topics/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blachan.com</link>
	<description>Freshly Ground Shrimp</description>
	<lastBuildDate>Mon, 16 Nov 2009 00:15:01 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Code Golf: Saving Time</title>
		<link>http://blachan.com/blog/code-golf-saving-time/</link>
		<comments>http://blachan.com/blog/code-golf-saving-time/#comments</comments>
		<pubDate>Wed, 06 May 2009 17:33:37 +0000</pubDate>
		<dc:creator>Abdullah Arif</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[code golf]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[saving time]]></category>

		<guid isPermaLink="false">http://blachan.com/?p=205</guid>
		<description><![CDATA[A long while back Code Golf posted up the Saving Time challenge in which you were required to transform input representing a digital clock into an ASCII analog representation in as few key strokes as possible. Here were my solutions in both PHP and Python:
PHP: 234 characters


&#60;?fscanf(STDIN,&#039;%d:%d&#039;,$h,$m);$s=array_combine(str_split(&#039;0b1a29384756&#039;),array_fill(0,12,&#039;o&#039;));$s[$h=dechex($h&#62;11?$h-12:$h)]=&#039;h&#039;;$s[$m=dechex($m&#62;59?0:$m/5)]=$h==$m?&#039;x&#039;:&#039;m&#039;;vprintf(&#34;%9s
%5s%8s

 %s%14s

%s%16s

 %s%14s

%5s%8s
%9s&#34;,$s)

Not exactly the most beautiful code. If [...]]]></description>
		<wfw:commentRss>http://blachan.com/blog/code-golf-saving-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

