<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>turuthok's blog</title>
	<atom:link href="http://turuthok.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://turuthok.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 25 Jan 2011 01:52:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='turuthok.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>turuthok's blog</title>
		<link>http://turuthok.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://turuthok.wordpress.com/osd.xml" title="turuthok&#039;s blog" />
	<atom:link rel='hub' href='http://turuthok.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Facebook Hacker Cup &#8211; 1A &#8211; Wine Tasting</title>
		<link>http://turuthok.wordpress.com/2011/01/25/facebook-hacker-cup-1a-wine-tasting/</link>
		<comments>http://turuthok.wordpress.com/2011/01/25/facebook-hacker-cup-1a-wine-tasting/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 01:52:06 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Puzzle]]></category>

		<guid isPermaLink="false">http://turuthok.wordpress.com/?p=61</guid>
		<description><![CDATA[Problem Description A group of Facebook employees just had a very successful product launch. To celebrate, they have decided to go wine tasting. At the vineyard, they decide to play a game. One person is given some glasses of wine, each containing a different wine. Every glass of wine is labelled to indicate the kind [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=61&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Problem Description</h3>
<p>A group of Facebook employees just had a very successful product launch. To celebrate, they have decided to go wine tasting. At the vineyard, they decide to play a game. One person is given some glasses of wine, each containing a different wine. Every glass of wine is labelled to indicate the kind of wine the glass contains. After tasting each of the wines, the labelled glasses are removed and the same person is given glasses containing the same wines, but unlabelled.  The person then needs to determine which of the unlabelled glasses contains which wine. Sadly, nobody in the group can tell wines apart, so they just guess randomly. They will always guess a different type of wine for each glass.  If they get enough right, they win the game. You must find the number of ways that the person can win, modulo 1051962371.</p>
<h3>Input</h3>
<p>The first line of the input is the number of test cases, <strong>N</strong>. The next <strong>N</strong> lines each contain a test case, which consists of two integers, <strong>G</strong> and <strong>C</strong>, separated by a single space. <strong>G</strong> is the total number of glasses of wine and <strong>C</strong> is the minimum number that the person must correctly identify to win.</p>
<h3>Constraints</h3>
<ul>
<li><strong>N</strong> = 20</li>
<li>1 ≤ <strong>G</strong> ≤ 100</li>
<li>1 ≤ <strong>C</strong> ≤ <strong>G</strong></li>
</ul>
<h3>Output</h3>
<p>For each test case, output a line containing a single integer, the number of ways that the person can win the game modulo 1051962371.</p>
<h3>Example input</h3>
<p>5
1 1
4 2
5 5
13 10
14 1</p>
<h3>Example output</h3>
<p>1
7
1
651
405146859</p>
<h3>Dynamic Programming Approach</h3>
<p>During the contest, I chose to tackle this using a dynamic programming (DP) approach which will be described in this entry.  As usual, the DP approach will need us to formulate the recurrence relation for this problem.  The recurrence I used was based on the following:</p>
<p>Let <em><strong>f(n, pc, t)</strong></em> be the number of ways to guess arrangement of <em>n</em> glasses with <em>pc</em> of them still have a chance to be named correctly (<em>pc</em> stands for <em>potentially correct</em>), and at least <em>t</em> glasses will be named correctly.  When looking at the state <em>(n, pc, t)</em>, let our focus be on the very first glass position which can be named correctly.  On that position, there&#8217;s a possibility to put the correct glass on it, or a wrong glass.  Let&#8217;s explore the function:</p>
<p><pre class="brush: python;">def f(n, pc, t):
  if n == 0: return 1 if t == 0 else 0
  ways = 0
  if pc &gt; 0: ways += f(n-1, pc-1, max([0, t-1]))
  if pc &gt; 1: ways += (pc-1) * f(n-1, pc-2, t)
  ways += (n-pc) * f(n-1, max([0, pc-1]), t)
  return ways</pre></p>
<p><strong>Line 2</strong> contains the terminal condition of this recurrence, &#8230; it is clear that if there&#8217;s no glass left to worry, &#8230; we only have one success possibility if there is no target to achieve, <em>t</em> is zero.</p>
<p>Then comes the accumulation of number of ways based on possibilities of actions in this state, &#8230; remember the step always focuses in putting a glass (either correct or incorrect) into a position which can still have a proper glass for it.</p>
<p><strong>Line 4</strong> is also straightforward, one of the possibility is to put the correct glass into its position (there&#8217;s only one glass here) &#8230; the next state after putting this glass is obviously <em>(n-1, pc-1, max(0, t-1))</em>.</p>
<p><strong>Line 5</strong> is basically a possibility of putting wrong glass into the position, but this wrong glass actually has its own proper position somewhere.  This means we&#8217;re actually wasting 2 glasses and their positions without gaining any correct target.  Note that we can choose one out of <em>pc-1</em> glasses for this possibility, thus the multiplication with <em>pc-1</em>.</p>
<p><strong>Line 6</strong> is basically a possibility of putting wrong glass into the position, and this wrong glass never has a chance to be properly placed (i.e.: its proper position has been occupied by another glass).  We can choose out of <em>(n-pc)</em> glasses for this, thus the multiplication by <em>(n-pc)</em>.  The next state is: <em>(n-1, max(0, pc-1), t)</em>.</p>
<p>That&#8217;s it, &#8230; finally, to tackle an input of <strong>(G, C)</strong> &#8230; call the above function <strong>f(G, G, C)</strong> &#8230;</p>
<p>The above logic doesn&#8217;t take care of the modulo for clarity, &#8230; the following <a href="http://www.ideone.com/r3Pjp">C++ code</a> has the proper solution for this puzzle.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=61&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2011/01/25/facebook-hacker-cup-1a-wine-tasting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Sweet Florida-trip Sweep</title>
		<link>http://turuthok.wordpress.com/2010/11/11/sweet-florida-trip-sweep/</link>
		<comments>http://turuthok.wordpress.com/2010/11/11/sweet-florida-trip-sweep/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 19:58:33 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[Utah Jazz]]></category>

		<guid isPermaLink="false">http://turuthok.wordpress.com/?p=57</guid>
		<description><![CDATA[The Utah Jazz just pulled off two improbable wins against the Heat and Magic.  The Jazz-Heat game itself can easily go down as one of the greatest regular season games ever played.  Just too many dramas involved: Jazz being down by 22 away from home, against the heavily favored (and hyped) Heat superstars, Millsap broke [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=57&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Utah Jazz just pulled off two improbable wins against the Heat and Magic.  The Jazz-Heat game itself can easily go down as one of the greatest regular season games ever played.  Just too many dramas involved: Jazz being down by 22 away from home, against the heavily favored (and hyped) Heat superstars, Millsap broke loose for a career-high 46 points, including 11 points within the last 30 seconds of regulation to force overtime.  Millsap my man suddenly looked like T-Mac in this <a href="http://www.youtube.com/watch?v=nfurCV1FDpM" target="_blank">clip</a> &#8230; I still feel sorry for the Houston fans who left the building early, heheheh.  I&#8217;m not a fan of the Rockets, but this is just so amazing,  probably the only meaningful highlight of T-Mac as a Rocket.</p>
<p>Well, <a href="http://www.youtube.com/watch?v=HCiHOpNJXnc" target="_blank">this</a> might not be as fiery, but eerily similar, &#8230; the Jazz was down by 8 points with 37.3 seconds left in regulation.  From that point, the Jazz scored 14 points to force overtime, 11 by Millsap alone &#8230; 3/3 from 3-pt range and a putback to force OT.  What a game!!  Jazz went on (without Deron Williams who fouled out) in OT and won it 116-114.</p>
<p>The next day, the flew to Orlando to face the Magic team who was unbeaten at home.  I thought the Jazz came out pretty well in the 1st quarter, but the 2nd quarter was a disaster &#8230; Magic ended up holding a 10-pt lead at half-time.  They continued to torched the Jazz in the 3rd, until about 1:36 left in the period, leading by 18 points.  That was when the Jazz employed a perfectly executed zone defense &#8230; This match-up zone defense, along with the Magic bad plays, was responsible of a 24-2 Jazz run to get back in the game.  Jazz ended up with a win by 10 points: 104-94, whoa &#8230; how did that happen?  Check this great <a href="http://nbaplaybook.com/2010/11/11/utahs-match-up-zone-sparks-a-comeback/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+NBAPlaybook+%28NBA+Playbook%29&amp;utm_content=ESPN" target="_blank">article</a> out &#8230; it breaks down the defense employed by the Jazz during the game.</p>
<p>I&#8217;m usually looking forward for the next Jazz game, but don&#8217;t feel like it this time &#8230; still want to cherish the past two amazing games, the sweet Florida-trip sweep, baby <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8230; not a lot of teams will get out of it unscathed.</p>
<p>Go Jazz!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=57&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2010/11/11/sweet-florida-trip-sweep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Colored Stamps Puzzle (revisited)</title>
		<link>http://turuthok.wordpress.com/2010/10/28/colored-stamps-puzzle-revisited/</link>
		<comments>http://turuthok.wordpress.com/2010/10/28/colored-stamps-puzzle-revisited/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 20:32:46 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[Puzzle]]></category>

		<guid isPermaLink="false">http://turuthok.wordpress.com/?p=47</guid>
		<description><![CDATA[Here&#8217;s a simplified version of a similar colored stamps puzzle (it was once a question thrown at me during an interview).  The approach can be the same to the one indicated by Felix in the previous post, but if you haven&#8217;t seen it, it might still be interesting: In a game show, the host placed [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=47&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simplified version of a similar colored stamps puzzle (it was once a question thrown at me during an interview).  The approach can be the same to the one indicated by Felix in the <a href="http://turuthok.wordpress.com/2010/10/27/colored-stamps-puzzle/">previous post</a>, but if you haven&#8217;t seen it, it might still be interesting:</p>
<blockquote><p>In a game show, the host placed one colored stamp on each of the three contestants&#8217; forehead.  It could either be a red or a blue stamp.  Each contestant can only see the other guys&#8217; stamps, but not his own.  The host gives an important clue: <span style="text-decoration:underline;">at least one of the stamps is red</span>.  The host then asks each contestant to shout the color of the stamp on the contestant&#8217;s forehead.  Here are the responses, in order:</p>
<p>A: &#8220;I don&#8217;t know&#8221;</p>
<p>B: &#8220;I don&#8217;t know&#8221;</p>
<p>C: &#8220;I know!&#8221;</p></blockquote>
<p>What is the color of C&#8217;s stamp and what is his thought process leading to a confident answer?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=47&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2010/10/28/colored-stamps-puzzle-revisited/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Colored Stamps Puzzle</title>
		<link>http://turuthok.wordpress.com/2010/10/27/colored-stamps-puzzle/</link>
		<comments>http://turuthok.wordpress.com/2010/10/27/colored-stamps-puzzle/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 00:14:20 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[Puzzle]]></category>

		<guid isPermaLink="false">http://turuthok.wordpress.com/?p=39</guid>
		<description><![CDATA[I recently came across another interesting puzzle that goes like this: During a game show, the host who has 4 red stamps and 4 blue stamps has placed three contestants (A, B, C) in a closed room.  The host places 2 stamps on each of the contestant&#8217;s forehead in such a way that each contestant [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=39&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently came across another interesting puzzle that goes like this:</p>
<blockquote><p>During a game show, the host who has 4 red stamps and 4 blue stamps has placed three contestants (A, B, C) in a closed room.  The host places 2 stamps on each of the contestant&#8217;s forehead in such a way that each contestant can only see the other stamps, but not his own.  The remaining unused 2 stamps are thrown away and the colors are unknown to the contestants.  It is known that all three contestants are superb and honest logician.  The host then asks each contestant to see if he figures out the colors of the stamps on his forehead.  The host continues asking the same question to each contestant until one of them knows the correct colors of stamps on his forehead:</p>
<p>A: &#8220;I don&#8217;t know&#8221;</p>
<p>B: &#8220;I don&#8217;t know&#8221;</p>
<p>C: &#8220;I don&#8217;t know&#8221;</p>
<p>A: &#8220;I don&#8217;t know&#8221;</p>
<p>B: &#8220;I know!&#8221;</p>
<p>What are the colors of B&#8217;s stamps?</p></blockquote>
<p>P.S.: You guys know the drill, we need to deduce the answer based solely on the known facts and the above conversations.  No smart moves like using hands to grab the stamps or something of that sort.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=39&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2010/10/27/colored-stamps-puzzle/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Geocaching</title>
		<link>http://turuthok.wordpress.com/2010/10/21/geocaching/</link>
		<comments>http://turuthok.wordpress.com/2010/10/21/geocaching/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 19:21:08 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[Geocaching]]></category>
		<category><![CDATA[Puzzle]]></category>

		<guid isPermaLink="false">http://turuthok.wordpress.com/?p=33</guid>
		<description><![CDATA[What is geocaching?  Well, it happens to be my new hobby.  It is a form of outdoor activity using a GPS device.  It&#8217;s a form of a treasure hunt which in short goes like this: 1) A geocache owner hides a container (we&#8217;ll call it a cache). 2) That owner posts the GPS coordinates on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=33&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What is <a href="http://www.geocaching.com" target="_blank">geocaching</a>?  Well, it happens to be my new hobby.  It is a form of outdoor activity using a GPS device.  It&#8217;s a form of a treasure hunt which in short goes like this:</p>
<p>1) A geocache owner hides a container (we&#8217;ll call it a cache).</p>
<p>2) That owner posts the GPS coordinates on a site <a href="http://www.geocaching.com" target="_blank">www.geocaching.com</a> (this one is the most popular of such sites and has free and premium membership available).</p>
<p>3) Other cachers, like me, then try to find that hidden cache.  When we find it, we log our names into the cache, and sometimes exchange items.</p>
<p>There are <a href="http://www.geocaching.com/about/cache_types.aspx" target="_blank">types of geocaches</a> that we play with.  For me, I&#8217;m always interested in puzzle cache or unknown cache.  This is a type of cache where you&#8217;ll have to work your way first to obtain the correct cache coordinates.  Then the second part is to embark and find the actual cache.</p>
<p>Like many others, I&#8217;m starting to also hide some <a href="http://www.geocaching.com/bookmarks/view.aspx?guid=512cd0ca-1ebf-4c75-8f73-f470beff2468" target="_blank">caches</a> (with puzzles, of course) around the area where I live.  Check them out even if  you are not a geocacher yet, but a puzzle lover.  You can mail me if you think you got the right answer, or just use that validator link posted on the cache page.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=33&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2010/10/21/geocaching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Geometric Series Puzzle</title>
		<link>http://turuthok.wordpress.com/2010/10/21/geometric-series-puzzle/</link>
		<comments>http://turuthok.wordpress.com/2010/10/21/geometric-series-puzzle/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 18:13:55 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Puzzle]]></category>

		<guid isPermaLink="false">http://turuthok.wordpress.com/?p=21</guid>
		<description><![CDATA[Someone recently posted a puzzle involving geometric series.  It goes like this: From the set of integers in range [1..4000,000,000], in how many ways that we can pick 6 different integers from the set, and those 6 numbers form a geometric progression? From the big range of the set, we can see that brute force [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=21&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Someone recently posted a puzzle involving <a href="http://en.wikipedia.org/wiki/Geometric_series" target="_blank">geometric series</a>.  It goes like this:</p>
<blockquote><p>From the set of integers in range [1..4000,000,000], in how many ways that we can pick 6 different integers from the set, and those 6 numbers form a geometric progression?</p></blockquote>
<p>From the big range of the set, we can see that brute force won&#8217;t cut it.  However, after some analysis, a smarter approach can be applied here.  The following is the step-by-step approach I took when I pondered this puzzle.</p>
<p>Consider the following facts:</p>
<p>* In a geometric series, the 6th term of a series which starts with <em>a</em> as its 1st term is: <em>a r^5</em> where <em>r</em> is obviously the constant ratio between successive terms.</p>
<p>* We can visualize <em>r</em> as a fraction <em>n / d</em>, where both <em>n</em> and <em>d</em> are integers.  We can safely consider only <em>n</em> and <em>d</em> pairs with <em>n &gt; d</em> (which means we&#8217;ll just get the strictly ascending series).  So, visualizing ratios as <em>n / d</em>, we see the 6th term as <em>a n^5 / d^5</em>.</p>
<p>Then I started thinking about the simplest series with ratio 2 / 1.  The smallest valid progression is:</p>
<p>1 2 4 8 16 32</p>
<p>We immediately see that an integer multiple <em>k</em> of the above progression is also valid as long as 32 x <em>k </em>does not exceed 4,000,000,000 which is the maximum integer in the set.  We can see that the largest possible <em>k </em>is floor(4,000,000,000 / 32) = 125,000,000.  More generally, the number of valid integer multiples can be obtained by doing an <em>integer division of the maximum number in the set by the highest term of the 6 numbers in the smallest valid progression of this ratio</em>.</p>
<p>Let&#8217;s move on with another example with ratio 4 / 1.  The smallest valid progression is:</p>
<p>1 4 16 64 256 1024</p>
<p>And we&#8217;ll have floor(4,000,000,000 / 1024) = 3,906,250 valid progressions from the set.</p>
<p>Now it is obvious that we&#8217;ll start with the integer ratios like 2 or 4.  However, the trick to this puzzle is also to see that the ratio might not be an integer as the puzzle only seeks to pick 6 integers which forms geometric progression.</p>
<p>To find out more about this, I started looking at <em>n / d</em> and for each <em>n</em>, I walked up the <em>d</em> part from 1 up to <em>n</em>-1, as those will be the ratios to look at.  I skipped 4 / 2 (same as 2 / 1) because this is not a simple fraction, and thus would already be taken care of when dealing with ratios with <em>n</em> = 2.</p>
<p>Next value of <em>d</em> is 3, which is interesting to look at.  We can see that for a ratio of 4 / 3, the first term of the series has to be a multiple of 3^5.  Otherwise, we won&#8217;t be having integer terms because to get each successive term, we&#8217;d have to divide by 3.  So, the smallest valid progression for ratio 4 / 3 is:</p>
<p>243 324 432 576 768 1024</p>
<p>The a-ha moment came when I saw that the smallest progressions of both ratio 4 / 1 and 4 / 3 shares the same high number (6th term), which is 1024, or 4^5, or even more generally <strong><em>n^5</em></strong>.  This would mean that it would also have the same number of valid integer multiples, which is 3,906,250.  That is, for a particular simple fraction ratio <em>n / d</em>, the number of valid progressions is <strong><em>floor(MAX / n^5)</em></strong>.</p>
<p>I got excited.  We can then ponder how many valid <em>d</em>&#8216;s, each of which is less than <em>n</em>, and the pair <em>n, d</em> is relatively prime to each other to avoid non-simple fractions.  This is none other than the well-known <a href="http://en.wikipedia.org/wiki/Euler_totient" target="_blank">Euler&#8217;s Totient</a> function<em>.</em> Combine this with the number of valid integer multiples of a progression, we know that for a particular numerator <em>n</em>, the number of ways to pick 6 integers which forms a geometric progression is:</p>
<p><em><strong>f(n) = phi(n) x floor(MAX / (n^5))</strong>,</em></p>
<p>where phi is the Euler&#8217;s Totient function, and MAX is the maximum integer value in the set (in this case, 4,000,000,000).</p>
<p>Now, we just need to find the sum of all <em>f(n)</em> for <em>n</em> values of 2, 3, 4, &#8230; all the way until <em>f(n)</em> yields 0.</p>
<p>Take a look at the <a href="http://ideone.com/Tp34S" target="_blank">Python code</a> for this puzzle.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=21&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2010/10/21/geometric-series-puzzle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Interviews</title>
		<link>http://turuthok.wordpress.com/2009/03/11/programming-interviews/</link>
		<comments>http://turuthok.wordpress.com/2009/03/11/programming-interviews/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 00:28:00 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://turuthok.wordpress.com/?p=12</guid>
		<description><![CDATA[From time to time, I am often tasked to interview some candidates for a software development position.  I usually focus on assessing C/C++ skills of the candidates.  To be honest, so far, I&#8217;m still struggling to find a good way to efficiently conduct the interview sessions to better probe the level of competency of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=12&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From time to time, I am often tasked to interview some candidates for a software development position.  I usually focus on assessing C/C++ skills of the candidates.  To be honest, so far, I&#8217;m still struggling to find a good way to efficiently conduct the interview sessions to better probe the level of competency of the candidates.</p>
<p>That is why I&#8217;m so glad to see this <a href="http://www.joelonsoftware.com/articles/GuerrillaInterviewing3.html" target="_blank">article</a> from <a href="http://www.joelonsoftware.com/" target="_blank">Joel Spolsky</a>.  It&#8217;s a must read for interviewers like me, especially for programming related positions.</p>
<p>Here&#8217;s an interesting excerpt from the article which I truly like:</p>
<blockquote><p><em>A lot of programmers that you might interview these days are apt to consider recursion, pointers, and even data structures to be a silly implementation detail which has been abstracted away by today’s many happy programming languages. “When was the last time you had to write a sorting algorithm?” they snicker.</em></p>
<p><em>Still, I don’t really care. I want my ER doctor to understand anatomy, even if all she has to do is put the computerized defibrillator nodes on my chest and push the big red button, and I want programmers to know programming down to the CPU level, even if Ruby on Rails </em><em>does </em><em>read your mind and build a complete Web 2.0 social collaborative networking site for you with three clicks of the mouse.</em></p></blockquote>
<p>Happy interviewing!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=12&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2009/03/11/programming-interviews/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
		<item>
		<title>24 Season 7 &#8211; Episode 12 (8:00 pm &#8211; 9:00 pm)</title>
		<link>http://turuthok.wordpress.com/2009/03/10/24-season-7-episode-12-800-pm-900-pm/</link>
		<comments>http://turuthok.wordpress.com/2009/03/10/24-season-7-episode-12-800-pm-900-pm/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 07:22:18 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[24]]></category>

		<guid isPermaLink="false">http://turuthok.wordpress.com/?p=8</guid>
		<description><![CDATA[Bill Buchanan will be sorely missed!!!  This episode marks Bill&#8217;s final appearance as he sacrificed himself to save President Taylor and the rest of hostages from General Juma&#8217;s invasion.  Unlike Tony Almeida, there seems to be no chance of a comeback as Bill was given a silent clock at 8:11pm. Aside from above tragedy, Episode [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=8&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Bill_Buchanan" target="_blank">Bill Buchanan</a> will be sorely missed!!!  This episode marks Bill&#8217;s final appearance as he sacrificed himself to save President Taylor and the rest of hostages from General Juma&#8217;s invasion.  Unlike Tony Almeida, there seems to be no chance of a comeback as Bill was given a <a href="http://24.wikia.com/wiki/Silent_clock" target="_blank">silent clock</a> at 8:11pm.</p>
<p>Aside from above tragedy, Episode 12 is pretty fast-paced and the season is still going strong.  Granted, there&#8217;s been quite some unreasonable scripts, but it is still a very interesting show to watch.  There&#8217;s not a lot of tragedy like atomic bomb or anything like that, but so far, this season provides a steady stream of actions and twists.</p>
<p>Agent Walker slowly but surely becomes the female version of Jack Bauer, which is a good thing, I guess.  Jon Voight&#8217;s character is also very interesting as a villain.  I still don&#8217;t know his character&#8217;s name thus far.</p>
<p>Both Eunike and I don&#8217;t like Olivia&#8217;s character.  This girl spells trouble and doesn&#8217;t seem to know how to respond to a good intention.  I&#8217;m being mean here, but I really wouldn&#8217;t mind if General Juma <em>terminate</em> her while she was held hostage.  She literally accepted a job offer by accusing the guy who offered her the job as a failure and pretty much promised to bring him down.  Only a selfish, over-confident person would do such a thing, regardless of how good his/her deep down intentions are.</p>
<p>Anyway, enough ramblings for today, &#8230; can&#8217;t wait til next week&#8217;s episode.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=8&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2009/03/10/24-season-7-episode-12-800-pm-900-pm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
		<item>
		<title>To blog or not to blog</title>
		<link>http://turuthok.wordpress.com/2009/03/10/to-blog-or-not-to-blog/</link>
		<comments>http://turuthok.wordpress.com/2009/03/10/to-blog-or-not-to-blog/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 03:10:13 +0000</pubDate>
		<dc:creator>turuthok</dc:creator>
				<category><![CDATA[Ramblings]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[For some weird reason, today, I have this urge to start blogging again after a few years of being silent.  I&#8217;m not sure why.  It&#8217;s probably because I&#8217;m excited about the early Daylight Saving Time period (I have to admit, I was so happy to get out of work while the sun&#8217;s still up).  Or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=1&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For some weird reason, today, I have this urge to start blogging again after a few years of being silent.  I&#8217;m not sure why.  It&#8217;s probably because I&#8217;m excited about the early <a href="http://en.wikipedia.org/wiki/Daylight_saving" target="_blank">Daylight Saving Time</a> period (I have to admit, I was so happy to get out of work while the sun&#8217;s still up).  Or probably, today is Monday and I can&#8217;t wait til the next episode of <a href="http://www.fox.com/24" target="_blank">24</a>.  Or probably because I&#8217;m still stoked that I won a huge bowling pin from a bowling event last week at UC Davis with Eunike&#8217;s colleagues.</p>
<p>I guess it&#8217;s just that there&#8217;s so much to be thankful for. It&#8217;s been a depressing time for a lot of people, but God has always been so good to me with His blessings.</p>
<p>I&#8217;ll try to keep this up &#8230; but now, it&#8217;s time for 24.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/turuthok.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/turuthok.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/turuthok.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/turuthok.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/turuthok.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/turuthok.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/turuthok.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/turuthok.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/turuthok.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/turuthok.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/turuthok.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/turuthok.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/turuthok.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/turuthok.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=turuthok.wordpress.com&amp;blog=6894406&amp;post=1&amp;subd=turuthok&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://turuthok.wordpress.com/2009/03/10/to-blog-or-not-to-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79b8f4f586cd80f50fb959dac1e59a58?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">turuthok</media:title>
		</media:content>
	</item>
	</channel>
</rss>
