<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="http://feedproxy.google.com/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feedproxy.google.com/~d/styles/itemcontent.css"?><rss 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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>David Poblador Garcia</title>
	
	<link>http://davidpoblador.com/blog</link>
	<description>systems administration, free software, culture, Barcelona</description>
	<pubDate>Tue, 04 Nov 2008 22:20:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.0/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feedproxy.google.com/DavidPobladorGarcia" type="application/rss+xml" /><feedburner:emailServiceId>DavidPobladorGarcia</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Google Treasure Hunt: Network Question</title>
		<link>http://feedproxy.google.com/~r/DavidPobladorGarcia/~3/uodOymm_6tY/</link>
		<comments>http://davidpoblador.com/blog/google-treasure-hunt-network-question/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 22:20:53 +0000</pubDate>
		<dc:creator>david</dc:creator>
		
		<category><![CDATA[Just for fun]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[google treasure hunt]]></category>

		<category><![CDATA[network]]></category>

		<category><![CDATA[routing]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/blog/?p=37</guid>
		<description>The network question was by far the easiest one in GTH 2008 contest.
Sample question:
Below is a diagram of a computer network.  The nodes are hosts on the     network, and the lines between them are links.  A packet is sent out     from host N with a [...]</description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 410px"><img title="Network Problem" src="http://treasurehunt.appspot.com/images/network.png" alt="Network Problem" width="400" height="210" /><p class="wp-caption-text">Network Problem</p></div>
<p>The <a href="http://treasurehunt.appspot.com/historic/network/">network question</a> was by far the easiest one in <a href="http://googleblog.blogspot.com/2008/05/google-treasure-hunt-update.html">GTH 2008 contest</a>.</p>
<p>Sample question:</p>
<blockquote><p>Below is a diagram of a computer network.  The nodes are hosts on the     network, and the lines between them are links.  A packet is sent out     from host <strong>N</strong> with a destination of     <strong>201.107.56.70</strong>.  Which nodes does the packet pass     through on its way to the destination?  (include start and final node in     your answer)</p></blockquote>
<p>After that, Google presented a list of nodes with their <a href="http://en.wikipedia.org/wiki/IP_address">IP addresses</a>, 3 different <a href="http://en.wikipedia.org/wiki/Static_routing">static routes</a> and a <a href="http://en.wikipedia.org/wiki/Default_gateway">default gateway</a>. This is the entry for host <strong>N</strong>:</p>
<table style="border: 1px solid black;" border="1" width="100%">
<tbody>
<tr style="border: 1px solid black;"></tr>
<tr style="border: 1px solid black;">
<td style="border: 1px solid black;">N</td>
<td style="border: 1px solid black;">97.134.15.173</td>
<td style="border: 1px solid black;">88.42.227.237 =&gt; 53.138.73.76</td>
<td style="border: 1px solid black;">201.107.56.70 =&gt; 179.138.156.133</td>
<td style="border: 1px solid black;">68.190.198.0/24 =&gt; 248.194.205.8</td>
<td style="border: 1px solid black;">246.10.120.232</td>
</tr>
</tbody>
</table>
<p>Pretty easy:</p>
<ol>
<li>A packet going to 201.107.56.70 arrives at node N</li>
<li>Does it match 88.42.227.237 destination host? No&#8230; next try</li>
<li>Does it match 201.107.56.70 destination host? Yes!</li>
<li>The packet is forwarded to the host having 179.138.156.133 IP address (which is host B):</li>
</ol>
<table style="border: 1px solid black;" border="1" width="100%">
<tbody>
<tr style="border: 1px solid black;">
</tr>
<tr style="border: 1px solid black;">
<td style="border: 1px solid black;">B</td>
<td style="border: 1px solid black;">179.138.156.133</td>
<td style="border: 1px solid black;">31.114.20.211 =&gt; 248.194.205.8</td>
<td style="border: 1px solid black;">53.138.73.76 =&gt; 97.134.15.173</td>
<td style="border: 1px solid black;">248.194.205.0/24 =&gt; 67.244.46.98</td>
<td style="border: 1px solid black;">53.138.73.76</td>
</tr>
</tbody>
</table>
<p>And so forth&#8230;</p>
<p>&lt;bonus&gt;</p>
<p>How would route table at host B look like?</p>
<pre>devel@stewie:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
31.114.20.211   248.194.205.8   255.255.255.255 U     0      0        0 eth0
53.138.73.76    97.134.15.173   255.255.255.255 U     0      0        0 eth0
248.194.205.0   67.244.46.98    255.255.255.0   U     0      0        0 eth0
0.0.0.0         53.138.73.76    0.0.0.0         UG    100    0        0 eth0</pre>
<p>&lt;/bonus&gt;</p>
<div class="feedflare">
<a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=KOSwvoMo"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=VKYwWVjR"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=VKYwWVjR" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=8BZpdoZH"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=8BZpdoZH" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=6ZxMiiQk"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=6ZxMiiQk" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=lA3rVx6j"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=52" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/DavidPobladorGarcia/~4/uodOymm_6tY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/blog/google-treasure-hunt-network-question/feed/</wfw:commentRss>
		<feedburner:origLink>http://davidpoblador.com/blog/google-treasure-hunt-network-question/</feedburner:origLink></item>
		<item>
		<title>Google Treasure Winners announced (and I’m among them)</title>
		<link>http://feedproxy.google.com/~r/DavidPobladorGarcia/~3/puUJNj84f4M/</link>
		<comments>http://davidpoblador.com/blog/google-treasure-winners-announced-and-im-among-them/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 07:30:37 +0000</pubDate>
		<dc:creator>david</dc:creator>
		
		<category><![CDATA[Just for fun]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[google treasure hunt]]></category>

		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/blog/?p=35</guid>
		<description>Google Treasure Hunt winners abound from Official Google Blog.</description>
			<content:encoded><![CDATA[<p><a href="http://googleblog.blogspot.com/2008/10/google-treasure-hunt-winners-abound.html">Google Treasure Hunt winners abound</a> from <a href="http://googleblog.blogspot.com/">Official Google Blog</a>.</p>
<div class="feedflare">
<a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=9lfH1Nu6"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=Dbivvaqc"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=Dbivvaqc" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=6eg5zgtm"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=6eg5zgtm" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=bkqsFG1m"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=bkqsFG1m" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=NDa9Lwzu"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=52" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/DavidPobladorGarcia/~4/puUJNj84f4M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/blog/google-treasure-winners-announced-and-im-among-them/feed/</wfw:commentRss>
		<feedburner:origLink>http://davidpoblador.com/blog/google-treasure-winners-announced-and-im-among-them/</feedburner:origLink></item>
		<item>
		<title>Nationalization fun</title>
		<link>http://feedproxy.google.com/~r/DavidPobladorGarcia/~3/fnYeBZRNbH8/</link>
		<comments>http://davidpoblador.com/blog/nationalization-fun/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 12:47:41 +0000</pubDate>
		<dc:creator>david</dc:creator>
		
		<category><![CDATA[Economics]]></category>

		<category><![CDATA[banks]]></category>

		<category><![CDATA[nationalization]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/blog/?p=30</guid>
		<description>Chavez orders nationalization of Banco de Venezuela vs Gordon Brown nationalises UK banks
Fun!</description>
			<content:encoded><![CDATA[<p><a href="http://www.cnn.com/2008/WORLD/americas/07/31/venezuela.bank/index.html">Chavez orders nationalization of Banco de Venezuela</a> <strong>vs</strong> <a href="http://www.theaustralian.news.com.au/story/0,25197,24467461-643,00.html">Gordon Brown nationalises UK banks</a></p>
<p><a href="http://www.flickr.com/photos/micock/2870426075/in/set-1299865/">Fun</a>!</p>
<div class="feedflare">
<a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=7wBKgdjj"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=mB34nohd"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=mB34nohd" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=DVsIyF4h"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=DVsIyF4h" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=Twjtr1l7"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=Twjtr1l7" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=rhDZrUio"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=52" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/DavidPobladorGarcia/~4/fnYeBZRNbH8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/blog/nationalization-fun/feed/</wfw:commentRss>
		<feedburner:origLink>http://davidpoblador.com/blog/nationalization-fun/</feedburner:origLink></item>
		<item>
		<title>Learn Catalan: Why not? / Aprendre català: Per què no?</title>
		<link>http://feedproxy.google.com/~r/DavidPobladorGarcia/~3/pd6J8YrASCs/</link>
		<comments>http://davidpoblador.com/blog/learn-catalan-why-not-aprendre-catala-per-que-no/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 05:17:04 +0000</pubDate>
		<dc:creator>david</dc:creator>
		
		<category><![CDATA[Catalan Course]]></category>

		<category><![CDATA[català]]></category>

		<category><![CDATA[catalan]]></category>

		<category><![CDATA[languages]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/blog/?p=22</guid>
		<description>Vocalic sounds
Let&amp;#8217;s start learning different vocaling sounds. In written language, we use 5 different vowels (a e i o u), however, in spoken language we use 8 different vocalic sounds (a ɛ e i ɔ o u ə).

A /a/

Written as A
Like English &amp;#8220;father&amp;#8221;
Examples: català, casa


E oberta /ɛ/

Written as E
Like French &amp;#8220;père&amp;#8221;
Examples: veig, recta, fred



E tancada [...]</description>
			<content:encoded><![CDATA[<h3>Vocalic sounds</h3>
<p>Let&#8217;s start learning different vocaling sounds. In written language, we use 5 different vowels (<strong>a</strong> <strong>e</strong> <strong>i</strong> <strong>o</strong> <strong>u</strong>), however, in spoken language we use 8 different vocalic sounds (a <span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">ɛ </span>e i <span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">ɔ </span>o u <span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">ə</span>).</p>
<ul>
<li>A /a/
<ul>
<li>Written as A</li>
<li>Like English &#8220;f<strong>a</strong>ther&#8221;</li>
<li>Examples: catal<strong>à</strong>, c<strong>a</strong>sa</li>
</ul>
</li>
<li>E oberta /<span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">ɛ/</span>
<ul>
<li><span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">Written as E</span></li>
<li><span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">Like French </span><span style="font-family: Arial;">&#8220;p<strong>è</strong>re&#8221;</span></li>
<li><span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">Examples: v<strong>e</strong>ig, r<strong>e</strong>cta, fr<strong>e</strong>d<br />
</span></li>
</ul>
</li>
<li>E tancada /e/
<ul>
<li>Written as E</li>
<li>Like French &#8220;<span style="font-family: Arial;"><strong>é</strong>t<strong>é</strong>&#8220;</span></li>
<li>Examples: n<strong>é</strong>ixer, <strong>e</strong>st</li>
</ul>
</li>
<li>I /i/
<ul>
<li>Written as I</li>
<li>Like English &#8220;s<strong>ee</strong>m&#8221;</li>
<li>Examples: <strong>i</strong>lla, cr<strong>i</strong>s<strong>i</strong></li>
</ul>
</li>
<li>O oberta /<span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">ɔ/</span>
<ul>
<li>Written as O</li>
<li>Like French &#8220;r<strong>o</strong>be&#8221;</li>
<li>Examples: f<strong>o</strong>rta, g<strong>o</strong>ig</li>
</ul>
</li>
<li>O tancada /o/
<ul>
<li>Written as O</li>
<li>Like French &#8220;p<strong>eau</strong>&#8220;</li>
<li>Examples: hon<strong>o</strong>r, sanci<strong>ó</strong>, cal<strong>o</strong>r</li>
</ul>
</li>
<li>U /u/
<ul>
<li>Written as O or U</li>
<li>Like English &#8220;f<strong>oo</strong>d&#8221;</li>
<li>Examples: c<strong>u</strong>inar, c<strong>u</strong>rta, m<strong>u</strong>ntanya, c<strong>o</strong>brir, <strong>o</strong>bert</li>
</ul>
</li>
<li>Vocal neutra /<span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">ə/</span>
<ul>
<li>Written as A or E</li>
<li>Like English &#8220;<strong>a</strong>bove&#8221;</li>
<li>Examples: cas<strong>a</strong>, port<strong>e</strong>s, t<strong>e</strong>rritori</li>
</ul>
</li>
</ul>
<div class="feedflare">
<a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=otgBFOdr"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=cSkvM9CB"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=cSkvM9CB" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=oHAKBI4M"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=oHAKBI4M" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=ZyVr6aLw"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=ZyVr6aLw" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=15p3yv7e"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=52" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/DavidPobladorGarcia/~4/pd6J8YrASCs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/blog/learn-catalan-why-not-aprendre-catala-per-que-no/feed/</wfw:commentRss>
		<feedburner:origLink>http://davidpoblador.com/blog/learn-catalan-why-not-aprendre-catala-per-que-no/</feedburner:origLink></item>
		<item>
		<title>What would Adam Smith think about you guys?</title>
		<link>http://feedproxy.google.com/~r/DavidPobladorGarcia/~3/14IAB61u5HE/</link>
		<comments>http://davidpoblador.com/blog/what-would-adam-smith-think-about-you-guys/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 00:27:16 +0000</pubDate>
		<dc:creator>david</dc:creator>
		
		<category><![CDATA[Economics]]></category>

		<category><![CDATA[adam smith]]></category>

		<category><![CDATA[bailout]]></category>

		<category><![CDATA[bank]]></category>

		<category><![CDATA[shares]]></category>

		<category><![CDATA[stocks]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/blog/?p=17</guid>
		<description>Our hypocrite capitalism is not working properly.

Start up your own bank
Create low-profile mortgage agencies
Lend money to those who won&amp;#8217;t be able to pay you back
Sell your risks to those funny Europeans
Sell your stocks before everything collapses
Once your bank shares start falling you only must wait for the governmental bailout
Start over. &amp;#60;tip&amp;#62;Rice and wheat speculation could [...]</description>
			<content:encoded><![CDATA[<p>Our hypocrite capitalism is not working properly.</p>
<ol>
<li>Start up your own bank</li>
<li>Create low-profile mortgage agencies</li>
<li>Lend money to those who won&#8217;t be able to pay you back</li>
<li>Sell your risks to those funny Europeans</li>
<li>Sell your stocks before everything collapses</li>
<li>Once your bank shares start falling you only must wait for the governmental bailout</li>
<li>Start over. &lt;tip&gt;Rice and wheat speculation could be great&lt;/tip&gt;</li>
</ol>
<div class="feedflare">
<a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=yCWC3fW7"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=aDx3m83g"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=aDx3m83g" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=Tg5zHXvZ"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=Tg5zHXvZ" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=J65015KX"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=J65015KX" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=NBjKSW9U"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=52" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/DavidPobladorGarcia/~4/14IAB61u5HE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/blog/what-would-adam-smith-think-about-you-guys/feed/</wfw:commentRss>
		<feedburner:origLink>http://davidpoblador.com/blog/what-would-adam-smith-think-about-you-guys/</feedburner:origLink></item>
		<item>
		<title>How did I win Google Treasure 2008? (1)</title>
		<link>http://feedproxy.google.com/~r/DavidPobladorGarcia/~3/l7MZXIozwEI/</link>
		<comments>http://davidpoblador.com/blog/how-did-i-win-google-treasure-2008-1/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 00:53:12 +0000</pubDate>
		<dc:creator>david</dc:creator>
		
		<category><![CDATA[Just for fun]]></category>

		<category><![CDATA[brute force]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[google treasure hunt]]></category>

		<category><![CDATA[ipod]]></category>

		<category><![CDATA[python]]></category>

		<category><![CDATA[tshirt]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/blog/?p=7</guid>
		<description>It&amp;#8217;s been 2 months since a nice girl at Google told me I won the Google Treasure Hunt 2008. One week ago, I got my present: a T-shirt and an engraved iPod Nano stating &amp;#8220;Google Treasure Hunt &amp;#8216;08 Winner&amp;#8221;. I must admit I&amp;#8217;m really surprised. I could have never imagined I had a single chance [...]</description>
			<content:encoded><![CDATA[<p>It&#8217;s been 2 months since a nice girl at Google told me I won the <a href="http://treasurehunt.appspot.com/">Google Treasure Hunt 2008</a>. One week ago, I got my present: a T-shirt and an engraved iPod Nano stating &#8220;Google Treasure Hunt &#8216;08 Winner&#8221;. I must admit I&#8217;m really surprised. I could have never imagined I had a single chance to be one of the winners. I can&#8217;t figure out how many people took part in the contest.</p>
<p>It&#8217;s particularly suprising given the fact that I&#8217;m not that good at maths and my prime number &#8220;skills&#8221; are scarce nowadays. It&#8217;s time now to try to explain how I managed to solve out <a href="http://google-au.blogspot.com/2008/05/google-treasure-hunt.html">the &#8220;games&#8221;</a>.</p>
<p><a href="http://treasurehunt.appspot.com/historic/robot/"><strong>The robot</strong></a></p>
<blockquote><p>A robot is located at the top-left corner of a <strong>X</strong> x <strong>Y</strong> grid (marked &#8216;Start&#8217; in the diagram below).</p>
<p>The robot can only move either down or right at any point in time.        The robot is trying to reach the bottom-right corner of the grid        (marked &#8216;Finish&#8217; in the diagram below).</p>
<p>How many possible unique paths are there?</p></blockquote>
<p>Quick facts:</p>
<ul>
<li>2&#215;2 grid: 2 possible ways</li>
<li>3&#215;2 grid: 3 possible ways</li>
</ul>
<p>So far, so good&#8230; What about a 30&#215;40 grid?</p>
<p>I bet I was not the only naive guy who tried to get it by using a bruteforce 4 line Python script&#8230; OK&#8230; it took me less than a minute to realise that it wouldn&#8217;t work out (before 2040).</p>
<p>So&#8230;</p>
<p>What the heck? Let&#8217;s make use of some combinatorics.</p>
<p>In a 4&#215;4 grid, the robot must move exactly 3 times to the right and 3 times downwards&#8230; So&#8230;</p>
<p>DDDRRR<br />
DRDRDR<br />
&#8230;</p>
<p>So&#8230; &lt;hint&gt;how many ways you can permute 3 R and 3 D in an 6 move set?&lt;/hint&gt; I expanded that to the big grid, <em>et voilà</em>!</p>
<blockquote><p><em><span class="huge">Simplicity is prerequisite for reliability.</span></em><br />
<span class="bodybold"> Edsger Dijkstra</span></p></blockquote>
<div class="feedflare">
<a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=hrSORCb7"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=YjgkUxep"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=YjgkUxep" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=0GHDlS1b"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=0GHDlS1b" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=7SihLoIh"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=7SihLoIh" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=exXy9e4T"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=52" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/DavidPobladorGarcia/~4/l7MZXIozwEI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/blog/how-did-i-win-google-treasure-2008-1/feed/</wfw:commentRss>
		<feedburner:origLink>http://davidpoblador.com/blog/how-did-i-win-google-treasure-2008-1/</feedburner:origLink></item>
		<item>
		<title>Five things you should know before visiting Barcelona</title>
		<link>http://feedproxy.google.com/~r/DavidPobladorGarcia/~3/j54UjGGnITg/</link>
		<comments>http://davidpoblador.com/blog/five-things-you-should-know-before-visiting-barcelona/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 12:20:10 +0000</pubDate>
		<dc:creator>david</dc:creator>
		
		<category><![CDATA[Barcelona]]></category>

		<category><![CDATA[5things]]></category>

		<guid isPermaLink="false">http://davidpoblador.com/blog/?p=5</guid>
		<description>I got to know many people who decided to visit or even staying in Barcelona during the last years. Many of them didn&amp;#8217;t know much about our culture before landing, so hopefully I can help you to know more things about us before coming.

Spanish is not the only language here: In some areas people mainly [...]</description>
			<content:encoded><![CDATA[<p>I got to know many people who decided to visit or even staying in <a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=Barcelona&amp;ie=UTF8&amp;ll=41.594905,2.1698&amp;spn=1.918404,4.943848&amp;z=8&amp;iwloc=addr">Barcelona</a> during the last years. Many of them didn&#8217;t know much about our culture before landing, so hopefully I can help you to know more things about us before coming.</p>
<ol>
<li>Spanish is not the only language here: In some areas people mainly use <a href="http://en.wikipedia.org/wiki/Catalan_language">Catalan</a> as their daily language. Catalan and Spanish are both official in Catalunya (as well as <a href="http://en.wikipedia.org/wiki/Aranese_language">Aranese</a> in northwestern Catalunya)</li>
<li>Most people don&#8217;t like bullfights at all. In 2004, Barcelona council had a vote against bullfighting.</li>
<li>Catalan culture has few to do with other cultures in <a href="http://en.wikipedia.org/wiki/Iberian_Peninsula">Iberian Peninsula</a>. Iberian Peninsula has been visited by many different cultures in the last 10 centuries so, culture is really rich and different throughout Spain. Probably buying a bull, a <a href="http://en.wikipedia.org/wiki/Tambourine">pandereta</a> or even a Mexican hat when visiting Barcelona is not the best idea unless you want to bring back home some kitsch souvenir.</li>
<li>Catalan is not a minor language! 9.1 million speakers is not that few. It is spoken in different parts of Spain (Catalunya, Aragó, València, les Balears -yes, German is not the only language in Mallorca-, Murcia), also in Andorra (it is the official language in that country), in Italy (city of Alghero), and in many parts in southern France. I love figures. Catalan has more native speakers than Danish, Greek, Finnish, Slovak and other important languages in Europe.</li>
<li>If you want to live on your own in Barcelona you will pay at least 750 euro/month for an apartment being 1000 euro/month also common. You can find a room for 400 euro/month.</li>
</ol>
<div class="feedflare">
<a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=K4Zni9Jk"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=USm5aw9C"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=USm5aw9C" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=ScGK8Ua9"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=ScGK8Ua9" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=KTrirbec"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?i=KTrirbec" border="0"></img></a> <a href="http://feedproxy.google.com/~f/DavidPobladorGarcia?a=2DGpBln7"><img src="http://feedproxy.google.com/~f/DavidPobladorGarcia?d=52" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/DavidPobladorGarcia/~4/j54UjGGnITg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidpoblador.com/blog/five-things-you-should-know-before-visiting-barcelona/feed/</wfw:commentRss>
		<feedburner:origLink>http://davidpoblador.com/blog/five-things-you-should-know-before-visiting-barcelona/</feedburner:origLink></item>
	</channel>
</rss>
