<?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>Pedro Assunção &#187; experiments</title>
	<atom:link href="http://pedroassuncao.com/category/experiments/feed/" rel="self" type="application/rss+xml" />
	<link>http://pedroassuncao.com</link>
	<description>Thoughts on technology, skydiving, life, the universe, you know, whatever comes to mind.</description>
	<lastBuildDate>Sat, 28 Aug 2010 19:18:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Trying out the android app</title>
		<link>http://pedroassuncao.com/2010/08/trying-out-the-android-app/</link>
		<comments>http://pedroassuncao.com/2010/08/trying-out-the-android-app/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 01:39:17 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[resolutions]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/2010/08/trying-out-the-android-app/</guid>
		<description><![CDATA[<p>So I come back from the road trip and what&#8217;s they&#8217;d first thing I do? Install the wordpress android app so I can blog anywhere, hehe. I kind of decided to use my blog as it was intended (as a web log), not necessarily as people see them these (...)<br/ >[<a href="http://pedroassuncao.com/2010/08/trying-out-the-android-app/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2009/12/reddit-developers-please-fix-this/' rel='bookmark' title='Permanent Link: Reddit developers, please fix this'>Reddit developers, please fix this</a></li>
<li><a href='http://pedroassuncao.com/2010/02/twitter-weekly-updates-for-2010-02-12/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2010-02-12'>Twitter Weekly Updates for 2010-02-12</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>So I come back from the road trip and what&#8217;s they&#8217;d first thing I do? Install the wordpress android app so I can blog anywhere, hehe. I kind of decided to use my blog as it was intended (as a web log), not necessarily as people see them these days (as places to write longer pieces of text that cannot be tweeted).</p>
<p>Peace</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2010/08/trying-out-the-android-app/&amp;t=Trying+out+the+android+app" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Trying+out+the+android+app+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2010/08/trying-out-the-android-app/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2010/08/trying-out-the-android-app/&amp;title=Trying+out+the+android+app" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2010/08/trying-out-the-android-app/&amp;title=Trying+out+the+android+app" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2010/08/trying-out-the-android-app/&amp;t=Trying+out+the+android+app" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2010/08/trying-out-the-android-app/&amp;title=Trying+out+the+android+app" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2010/08/trying-out-the-android-app/&amp;t=Trying+out+the+android+app" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2009/12/reddit-developers-please-fix-this/' rel='bookmark' title='Permanent Link: Reddit developers, please fix this'>Reddit developers, please fix this</a></li>
<li><a href='http://pedroassuncao.com/2010/02/twitter-weekly-updates-for-2010-02-12/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2010-02-12'>Twitter Weekly Updates for 2010-02-12</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2010/08/trying-out-the-android-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new kind of bandages?</title>
		<link>http://pedroassuncao.com/2010/06/new-kind-of-bandages/</link>
		<comments>http://pedroassuncao.com/2010/06/new-kind-of-bandages/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 10:39:04 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[cries for help]]></category>
		<category><![CDATA[experiments]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/?p=1006</guid>
		<description><![CDATA[<img class="size-full wp-image-1007 " title="A normal bandage" src="http://pedroassuncao.com/wp-content/uploads/2010/06/original.jpg" alt="A normal bandage" width="200" height="200" /><p class="wp-caption-text">A normal bandage</p> <p>I hate bandages. I really do. Everyone knows the best way for a wound to heal is to leave it exposed to oxygen and, hence, a bandage is the worst thing you (...)<br/ >[<a href="http://pedroassuncao.com/2010/06/new-kind-of-bandages/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/03/altruistic-usb-plug/' rel='bookmark' title='Permanent Link: Altruistic USB plug'>Altruistic USB plug</a></li>
<li><a href='http://pedroassuncao.com/2010/07/feedsquares-a-refreshing-view-for-google-reader/' rel='bookmark' title='Permanent Link: Feedsquares: A refreshing view for Google Reader'>Feedsquares: A refreshing view for Google Reader</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_1007" class="wp-caption alignleft" style="width: 210px"><a href="http://pedroassuncao.com/wp-content/uploads/2010/06/original.jpg"><img class="size-full wp-image-1007 " title="A normal bandage" src="http://pedroassuncao.com/wp-content/uploads/2010/06/original.jpg" alt="A normal bandage" width="200" height="200" /></a><p class="wp-caption-text">A normal bandage</p></div>
<p>I hate bandages. I really do. Everyone knows the best way for a wound to heal is to leave it exposed to oxygen and, hence, a bandage is the worst thing you can do to it.</p>
<p>A couple of days ago i took a big crash while going downhill on my bike (for gore lovers, check out the <a href="http://www.flickr.com/photos/nocivus/4738588371/">picture of my arm</a>) and ended up with my right shoulder and elbow completely scratched. The elbow is a no brainer in the summer; since i use a t-shirt all day, it can just go around with Betadine on it and heal normally. The problem is the shoulder. Since i don&#8217;t usually like to use <a href="http://www.blackpool-logos.com/prodimages/5580.jpg">tank tops</a> in my everyday life, it would be hard for my clothes not to get soaked in a mixture of blood and Bepanthene/Betadine.</p>
<p>Now, here&#8217;s an idea: why not create a bandage that is open everywhere, except in its boundaries &#8211; so that the wound can normally &#8220;breathe&#8221; and at the same time not be in contact with the clothes?</p>
<div id="attachment_1008" class="wp-caption alignright" style="width: 410px"><a href="http://pedroassuncao.com/wp-content/uploads/2010/06/what_i_want.jpg"><img class="size-full wp-image-1008" title="The bandage i needed" src="http://pedroassuncao.com/wp-content/uploads/2010/06/what_i_want.jpg" alt="The bandage i needed" width="400" height="200" /></a><p class="wp-caption-text">The bandage i needed</p></div>
<p>I kind had to <a href="http://www.cracked.com/article_17251_the-10-coolest-foreign-words-english-language-needs_p2.html">pull a Mcggyver</a> (check the last entry) and improvise one this morning. It works marvelously. I think i should start selling these things <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2010/06/new-kind-of-bandages/&amp;t=A+new+kind+of+bandages%3F" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=A+new+kind+of+bandages%3F+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2010/06/new-kind-of-bandages/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2010/06/new-kind-of-bandages/&amp;title=A+new+kind+of+bandages%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2010/06/new-kind-of-bandages/&amp;title=A+new+kind+of+bandages%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2010/06/new-kind-of-bandages/&amp;t=A+new+kind+of+bandages%3F" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2010/06/new-kind-of-bandages/&amp;title=A+new+kind+of+bandages%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2010/06/new-kind-of-bandages/&amp;t=A+new+kind+of+bandages%3F" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/03/altruistic-usb-plug/' rel='bookmark' title='Permanent Link: Altruistic USB plug'>Altruistic USB plug</a></li>
<li><a href='http://pedroassuncao.com/2010/07/feedsquares-a-refreshing-view-for-google-reader/' rel='bookmark' title='Permanent Link: Feedsquares: A refreshing view for Google Reader'>Feedsquares: A refreshing view for Google Reader</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2010/06/new-kind-of-bandages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My blog in the old geocities age</title>
		<link>http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/</link>
		<comments>http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 11:51:58 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[findings]]></category>

		<guid isPermaLink="false">http://diffract.me/2010/04/my-blog-in-the-old-geocities-age/</guid>
		<description><![CDATA[ I recently came across this devilish we application that turns any website into a version that could have been hosted on geocities a long, long time ago. ... I just laughed my @ss off looking at the "Bill Gates is the devil" image on the right :D  (...)<br/ >[<a href="http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/04/irony-of-searches-and-one-ipad-visit-to-my-blog/' rel='bookmark' title='Permanent Link: Irony of searches and one iPad visit to my blog'>Irony of searches and one iPad visit to my blog</a></li>
<li><a href='http://pedroassuncao.com/2010/03/lack-of-ram-will-kill-your-blog-host-virtual-machine/' rel='bookmark' title='Permanent Link: Lack of RAM will kill your blog host virtual machine'>Lack of RAM will kill your blog host virtual machine</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I recently came across this devilish we application that turns any website into a version that could have been hosted on geocities a long, long time ago. If you wanna see what this blog would look like <a href="http://wonder-tonic.com/geocitiesizer/content.php?theme=2&amp;music=10&amp;url=diffract.me">click here</a>. I just laughed my @ss off looking at the &#8220;Bill Gates is the devil&#8221; image on the right <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/&amp;t=My+blog+in+the+old+geocities+age" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=My+blog+in+the+old+geocities+age+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/&amp;title=My+blog+in+the+old+geocities+age" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/&amp;title=My+blog+in+the+old+geocities+age" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/&amp;t=My+blog+in+the+old+geocities+age" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/&amp;title=My+blog+in+the+old+geocities+age" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/&amp;t=My+blog+in+the+old+geocities+age" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/04/irony-of-searches-and-one-ipad-visit-to-my-blog/' rel='bookmark' title='Permanent Link: Irony of searches and one iPad visit to my blog'>Irony of searches and one iPad visit to my blog</a></li>
<li><a href='http://pedroassuncao.com/2010/03/lack-of-ram-will-kill-your-blog-host-virtual-machine/' rel='bookmark' title='Permanent Link: Lack of RAM will kill your blog host virtual machine'>Lack of RAM will kill your blog host virtual machine</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2010/04/my-blog-in-the-old-geocities-age/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sproutcore on OSX snow leopard</title>
		<link>http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/</link>
		<comments>http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 09:13:08 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://diffract.me/?p=908</guid>
		<description><![CDATA[<p>It recently came to my attention the existence of this heavily-client-based web framework to develop desktop-like applications called Sproutcore and is backed up by Apple (there is another cool alternative called Capuccino). Basically it relies on Javascript to create nice desktop-like applications, but on the web.</p> <p>Ever since i (...)<br/ >[<a href="http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2009/01/recover-isync-after-removing-it-from-osx/' rel='bookmark' title='Permanent Link: Recover iSync after removing it from OSX'>Recover iSync after removing it from OSX</a></li>
<li><a href='http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/' rel='bookmark' title='Permanent Link: Websockets tutorial/example with pywebsocket'>Websockets tutorial/example with pywebsocket</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It recently came to my attention the existence of this heavily-client-based web framework to develop desktop-like applications called <a href="http://sproutcore.com/">Sproutcore</a> and is backed up by Apple (there is another cool alternative called <a href="http://cappuccino.org">Capuccino</a>). Basically it relies on Javascript to create nice desktop-like applications, but on the web.</p>
<p>Ever since i heard about node.js i have been curious to try out one of these things. My ideas on it will come later but, for now, here are the required steps to make Sproutcore work well on OSX snow leopard. And i say work well because if you rely on the vanilla Ruby 1.8.7 that comes with snow leopard you will have a very crappy experience with Sproutcore; It will take approximately 35 seconds to reload any webpage every time you make a code change. And that will make you not want to use it at all.</p>
<p>Fortunately a lot of people have been kind enough to explain me, on twitter, how to make it faster.</p>
<p>But let&#8217;s start from the beginning:</p>
<p><strong>1. Install Sproutcore using GEM, like so:</strong></p>
<pre>sudo gem install sproutcore</pre>
<address>Note: I don&#8217;t remember if gem comes installed with snow leopard. If not, you can always google it <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </address>
<p><strong>2. Follow the </strong><a href="http://www.sproutcore.com/get-started/"><strong>rest of the steps</strong></a><strong> to setup your first application</strong></p>
<p>By now you should have realized that (if you are using OSX snow leopard) the damn thing is freaking slow. So&#8230;</p>
<p><strong>3. &#8230;download and compile the <a href="http://www.ruby-lang.org/en/downloads/">Ruby 1.9 source</a> code for OSX</strong></p>
<pre>tar xzvf ruby-1.9.1-p376.tar.gz
cd ruby-1.9.1-p376
./configure --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1
make
sudo make install</pre>
<address>Note: The actual version could be different, as stuff evolves over time <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </address>
<p><strong>4. Update the symbolic link on your system to point to the new ruby installation</strong></p>
<pre>sudo rm /usr/bin/ruby
sudo ln -s /usr/local/bin/ruby /usr/bin/ruby</pre>
<p><strong>5. Make sure the correct Ruby version is in use</strong></p>
<pre>ruby --version</pre>
<p>Should return something like this:</p>
<pre>ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.3.0]</pre>
<p><strong>6. Install thin. This server is faster than the one that comes with Sproutcore</strong></p>
<pre>sudo gem install thin</pre>
<p><strong>7. All done. Give it a try again</strong></p>
<p>If you try to refresh the page of a Sproutcore example now you will notice the speed difference, like night to day. Have fun coding client-side desktop web applications <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m planning to also take a look at <a href="http://cappuccino.org">Capuccino</a>, another similar framework, but created in Objective-J &#8211; a derivative of Objective-C for javascript. Looks interesting and it might get me into iPhone development at last <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/&amp;t=Sproutcore+on+OSX+snow+leopard" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Sproutcore+on+OSX+snow+leopard+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/&amp;title=Sproutcore+on+OSX+snow+leopard" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/&amp;title=Sproutcore+on+OSX+snow+leopard" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/&amp;t=Sproutcore+on+OSX+snow+leopard" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/&amp;title=Sproutcore+on+OSX+snow+leopard" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/&amp;t=Sproutcore+on+OSX+snow+leopard" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2009/01/recover-isync-after-removing-it-from-osx/' rel='bookmark' title='Permanent Link: Recover iSync after removing it from OSX'>Recover iSync after removing it from OSX</a></li>
<li><a href='http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/' rel='bookmark' title='Permanent Link: Websockets tutorial/example with pywebsocket'>Websockets tutorial/example with pywebsocket</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2010/04/sproutcore-on-osx-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iPad jailbroken one day after coming out. That was fast.</title>
		<link>http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/</link>
		<comments>http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 10:01:28 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[experiments]]></category>

		<guid isPermaLink="false">http://diffract.me/?p=905</guid>
		<description><![CDATA[<p>&#8220;A well-known hacker of the iPhone, who previously defeated Apple&#8217;s restrictions on developers, has claimed in a video to have hacked the iPad. Just a day after release, the hacker, who goes by &#8216;MuscleNerd&#8217; online, said that he has gained root access to the iPad&#8230;&#8221;, as seen on slashdot.</p> (...)<br/ >[<a href="http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/01/things-i-wanted-in-apples-ipad-tablet/' rel='bookmark' title='Permanent Link: Things i wanted in Apple&#8217;s iPad (tablet)'>Things i wanted in Apple&#8217;s iPad (tablet)</a></li>
<li><a href='http://pedroassuncao.com/2009/12/reddit-developers-please-fix-this/' rel='bookmark' title='Permanent Link: Reddit developers, please fix this'>Reddit developers, please fix this</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>&#8220;A well-known hacker of the iPhone, who previously defeated Apple&#8217;s restrictions on developers, has claimed in a video to have hacked the iPad. Just a day after release, the hacker, who goes by &#8216;MuscleNerd&#8217; online, said that he has gained root access to the iPad&#8230;&#8221;, as <a href="http://apple.slashdot.org/story/10/04/04/2223237/iPad-Jailbroken">seen on slashdot</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/dgHNayVtHkQ&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://www.youtube.com/v/dgHNayVtHkQ&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/&amp;t=iPad+jailbroken+one+day+after+coming+out.+That+was+fast." rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=iPad+jailbroken+one+day+after+coming+out.+That+was+fast.+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/&amp;title=iPad+jailbroken+one+day+after+coming+out.+That+was+fast." rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/&amp;title=iPad+jailbroken+one+day+after+coming+out.+That+was+fast." rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/&amp;t=iPad+jailbroken+one+day+after+coming+out.+That+was+fast." rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/&amp;title=iPad+jailbroken+one+day+after+coming+out.+That+was+fast." rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/&amp;t=iPad+jailbroken+one+day+after+coming+out.+That+was+fast." rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/01/things-i-wanted-in-apples-ipad-tablet/' rel='bookmark' title='Permanent Link: Things i wanted in Apple&#8217;s iPad (tablet)'>Things i wanted in Apple&#8217;s iPad (tablet)</a></li>
<li><a href='http://pedroassuncao.com/2009/12/reddit-developers-please-fix-this/' rel='bookmark' title='Permanent Link: Reddit developers, please fix this'>Reddit developers, please fix this</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2010/04/ipad-jailbroken-one-day-after-coming-out-that-was-fast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Super regeneration, here we go</title>
		<link>http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/</link>
		<comments>http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 13:46:25 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[animals]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[findings]]></category>
		<category><![CDATA[nature]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://diffract.me/?p=887</guid>
		<description><![CDATA[<p>A new study has found that a specific gene (P21) is directly linked to regenerative properties that you typically find in reptilian creatures, such as salamanders. Apparently, when deactivated, this gene allows mice cells to behave more like stem cells and fully regenerate wounds without leaving any scars. Are (...)<br/ >[<a href="http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2009/09/super-useful-article-on-postgresql/' rel='bookmark' title='Permanent Link: Super useful article on PostgreSQL'>Super useful article on PostgreSQL</a></li>
<li><a href='http://pedroassuncao.com/2010/03/other-probably-intelligent-wordpress-plugins-to-install/' rel='bookmark' title='Permanent Link: Other (probably intelligent) wordpress plugins to install'>Other (probably intelligent) wordpress plugins to install</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A new study has found that a specific gene (P21) is directly linked to regenerative properties that you typically find in reptilian creatures, such as salamanders. Apparently, when deactivated, this gene allows mice cells to behave more like stem cells and fully regenerate wounds without leaving any scars. Are we close to super fast regeneration, and eventually immortality? <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can find the <a href="http://www.physorg.com/news187879295.html">entire article here</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/&amp;t=Super+regeneration%2C+here+we+go" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Super+regeneration%2C+here+we+go+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/&amp;title=Super+regeneration%2C+here+we+go" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/&amp;title=Super+regeneration%2C+here+we+go" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/&amp;t=Super+regeneration%2C+here+we+go" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/&amp;title=Super+regeneration%2C+here+we+go" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/&amp;t=Super+regeneration%2C+here+we+go" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2009/09/super-useful-article-on-postgresql/' rel='bookmark' title='Permanent Link: Super useful article on PostgreSQL'>Super useful article on PostgreSQL</a></li>
<li><a href='http://pedroassuncao.com/2010/03/other-probably-intelligent-wordpress-plugins-to-install/' rel='bookmark' title='Permanent Link: Other (probably intelligent) wordpress plugins to install'>Other (probably intelligent) wordpress plugins to install</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2010/03/super-regeneration-here-we-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video speed controls on youtube&#8217;s HTML5 player</title>
		<link>http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/</link>
		<comments>http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:12:44 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[findings]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://diffract.me/?p=740</guid>
		<description><![CDATA[<p>I don&#8217;t know if you noticed, but youtube introduced speed controls to their HTML5 video player. I have no idea if it was there from the beginning, actually, but it&#8217;s a really cool feature indeed <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p> <p><img class="alignleft size-full wp-image-741" title="Youtube HTML5 video speed (...)<br/ >[<a href="http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2009/12/reddit-developers-please-fix-this/' rel='bookmark' title='Permanent Link: Reddit developers, please fix this'>Reddit developers, please fix this</a></li>
<li><a href='http://pedroassuncao.com/2010/05/crazy-cool-google-chrome-speed-ad/' rel='bookmark' title='Permanent Link: Crazy cool Google Chrome speed ad'>Crazy cool Google Chrome speed ad</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if you noticed, but <a href="http://youtube.com">youtube</a> introduced speed controls to their <a href="http://www.youtube.com/html5">HTML5 video</a> player. I have no idea if it was there from the beginning, actually, but it&#8217;s a really cool feature indeed <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://www.youtube.com/html5"><img class="alignleft size-full wp-image-741" title="Youtube HTML5 video speed controls" src="http://diffract.me/wp-content/uploads/2010/02/speed_youtube.png" alt="Youtube HTML5 video speed controls" width="468" height="302" /></a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/&amp;t=Video+speed+controls+on+youtube%27s+HTML5+player" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Video+speed+controls+on+youtube%27s+HTML5+player+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/&amp;title=Video+speed+controls+on+youtube%27s+HTML5+player" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/&amp;title=Video+speed+controls+on+youtube%27s+HTML5+player" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/&amp;t=Video+speed+controls+on+youtube%27s+HTML5+player" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/&amp;title=Video+speed+controls+on+youtube%27s+HTML5+player" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/&amp;t=Video+speed+controls+on+youtube%27s+HTML5+player" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2009/12/reddit-developers-please-fix-this/' rel='bookmark' title='Permanent Link: Reddit developers, please fix this'>Reddit developers, please fix this</a></li>
<li><a href='http://pedroassuncao.com/2010/05/crazy-cool-google-chrome-speed-ad/' rel='bookmark' title='Permanent Link: Crazy cool Google Chrome speed ad'>Crazy cool Google Chrome speed ad</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bomb This Country</title>
		<link>http://pedroassuncao.com/2010/02/bomb-this-country/</link>
		<comments>http://pedroassuncao.com/2010/02/bomb-this-country/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 08:08:15 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[jokes]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://diffract.me/2010/02/bomb-this-country/</guid>
		<description><![CDATA[ After an awesome Japanese dinner with my good friend Luizzz , we came to the conclusion that the website that was missing was one where you could bomb any country in the world. ... So over the course of about 8 hours - the next day - we came up with bombthiscountry.com , a meaningless website where you can bomb any country in the world (yes, China, Tibet is a country).  (...)<br/ >[<a href="http://pedroassuncao.com/2010/02/bomb-this-country/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/02/twitter-weekly-updates-for-2010-02-19/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2010-02-19'>Twitter Weekly Updates for 2010-02-19</a></li>
<li><a href='http://pedroassuncao.com/2010/02/twitter-weekly-updates-for-2010-02-26/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2010-02-26'>Twitter Weekly Updates for 2010-02-26</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After an awesome Japanese dinner with my good friend <a href="http://twitter.com/luizsoarez">Luizzz</a>, we came to the conclusion that the website that was missing was one where you could bomb any country in the world. The motivation for this was part statistical curiosity and part plain bastardness (did i just make up another word?).</p>
<p>So over the course of about 8 hours &#8211; the next day &#8211; we came up with <a href="http://bombthiscountry.com">bombthiscountry.com</a>, a meaningless website where you can bomb any country in the world (yes, China, Tibet is a country). If you <a href="http://twitter.com/bombthiscountry">follow it on twitter</a> you get daily statistics on the most bombed countries in the world.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2010/02/bomb-this-country/&amp;t=Bomb+This+Country" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Bomb+This+Country+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2010/02/bomb-this-country/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2010/02/bomb-this-country/&amp;title=Bomb+This+Country" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2010/02/bomb-this-country/&amp;title=Bomb+This+Country" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2010/02/bomb-this-country/&amp;t=Bomb+This+Country" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2010/02/bomb-this-country/&amp;title=Bomb+This+Country" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2010/02/bomb-this-country/&amp;t=Bomb+This+Country" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/02/twitter-weekly-updates-for-2010-02-19/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2010-02-19'>Twitter Weekly Updates for 2010-02-19</a></li>
<li><a href='http://pedroassuncao.com/2010/02/twitter-weekly-updates-for-2010-02-26/' rel='bookmark' title='Permanent Link: Twitter Weekly Updates for 2010-02-26'>Twitter Weekly Updates for 2010-02-26</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2010/02/bomb-this-country/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Websockets tutorial/example with pywebsocket</title>
		<link>http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/</link>
		<comments>http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 12:37:24 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[code snipplets]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://diffract.me/?p=634</guid>
		<description><![CDATA[<p>As everyone already knows, Google Chrome now supports websockets. In essence, this allows you to keep a connection open with a webserver indefinitely (analogous to typical sockets) and send data bi-directionally. Unfortunately Chrome is the only browser currently supporting this, but I&#8217;m pretty sure this will change.</p> <p>So I (...)<br/ >[<a href="http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/01/my-small-pywebsocket-tutorial/' rel='bookmark' title='Permanent Link: My small pywebsocket tutorial &#8230;'>My small pywebsocket tutorial &#8230;</a></li>
<li><a href='http://pedroassuncao.com/2009/10/fabric-for-remote-deployment/' rel='bookmark' title='Permanent Link: Fabric for remote deployment'>Fabric for remote deployment</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As everyone already knows, <a href="http://www.google.com/chrome">Google Chrome</a> now supports <a href="http://dev.w3.org/html5/websockets/#websocket">websockets</a>. In essence, this allows you to keep a connection open with a webserver indefinitely (analogous to typical sockets) and send data bi-directionally. Unfortunately Chrome is the only browser currently supporting this, but I&#8217;m pretty sure this will change.</p>
<p>So I decided to give this a try and experiment a bit with it. This is my step by step process on getting a web page opening a websocket to a server and receiving the server&#8217;s date and time every second. It is based on an <a href="http://armstrongonsoftware.blogspot.com/2009/12/comet-is-dead-long-live-websockets.html">article by Joe Armstrong</a>, though he uses <a href="http://ftp.sunet.se/pub/lang/erlang/">Erlang</a> for the server, while I decided to follow the easy road and use <a href="http://code.google.com/p/pywebsocket/">Google&#8217;s pywebsocket</a> &#8211; an apache module (uses mod_python) that allows you to create handlers for websocket connections in a easy-to-use fashion. The code also contains a way to start a standalone server (i.e. not requiring apache) for testing purposes.</p>
<p>So here are the steps I took to get this working:</p>
<h4>1. Create a web page</h4>
<p>This is the code I borrowed from Joe, though slightly modified to fit my purposes (it requires <a href="http://jquery.com/">jquery</a>, by the way):</p>
<pre>&lt;html&gt;

&lt;head&gt;

&lt;script src="jquery-1.3.2.min.js"&gt;&lt;/script&gt;
&lt;script&gt;

$(document).ready(function(){

var ws;

if ("WebSocket" in window) {
debug("Horray you have web sockets. Trying to connect...");
ws = new WebSocket("ws://localhost:9998/echo");

ws.onopen = function() {
// Web Socket is connected. You can send data by send() method.
debug("connected...");
ws.send("hello from the browser");
ws.send("more from browser");
};

run = function() {
var val=$("#i1").val(); // read the entry
$("#i1").val("");       // and clear it
ws.send(val);           // tell erlang
return true;            // must do this
};

ws.onmessage = function (evt)
{
//alert(evt.data);
var data = evt.data;
var i = data.indexOf("!");
var tag = data.slice(0,i);
var val = data.slice(i+1);
$("#" + tag).html(val);
};

ws.onclose = function()
{
debug(" socket closed");
};
} else {
alert("You have no web sockets");
};

function debug(str){
$("#debug").append("&lt;p&gt;" +  str);
};

});
&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;h1&gt;Interaction experiment&lt;/h1&gt;

&lt;h2&gt;Debug&lt;/h2&gt;
&lt;div id="debug"&gt;&lt;/div&gt;

&lt;fieldset&gt;
&lt;legend&gt;Clock&lt;/legend&gt;
&lt;div id="clock"&gt;I am a clock&lt;/div&gt;
&lt;/fieldset&gt;

&lt;/body&gt;

&lt;/html&gt;</pre>
<h4>2. Download and install pywebsocket</h4>
<p>Checkout the code with</p>
<pre><span>svn checkout http</span><span>:</span><span>//pywebsocket.googlecode.com/svn/trunk/ pywebsocket-read-only
</span></pre>
<p>Then do <strong>python setup.py build</strong> and <strong>sudo python setup.py install</strong> inside the <strong>src</strong> folder. This will install it into your python environment.</p>
<h4>3. Being lazy, means we will change an example handler</h4>
<p>The way pywebsocket works is delegating the connections to something they call handlers. In the <strong><span>pywebsocket-read-only/src/example</span></strong><span> folder you will find a file named <strong>echo_wsh.py</strong>. They have this convention where handlers are named <strong>&lt;entry_point&gt;_wsh.py</strong>. This means that when you later call (from your web page) the url <strong>http://localhost:9998/echo</strong> the server will delegate the processing of that connection to that file.</span></p>
<p><span>I modified that file to something like this:</span></p>
<pre># Copyright 2009, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
#     * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
#     * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from mod_pywebsocket import msgutil
from datetime import datetime
import time

_GOODBYE_MESSAGE = 'Goodbye'

def web_socket_do_extra_handshake(request):
 print 'Connected.'
 pass  # Always accept.

def web_socket_transfer_data(request):
 while True:
 time.sleep(1)
 date = datetime.now()
 #try:
 #    line = msgutil.receive_message(request)
 #except Exception, e:
 #    print 'Foi com os porcos'
 #    raise e
 #print 'Got something: %s' % line
 #msgutil.send_message(request, line)
 msgutil.send_message(request, 'clock!%s' % date)
 #if line == _GOODBYE_MESSAGE:
 #    return</pre>
<p>So basically whenever a new connection is made to this entry point, a call to <strong>web_socket_do_extra_handshake</strong> is made. After that, <strong>web_socket_transfer_data</strong> is called and it&#8217;s your responsibility to create the loop that receives messages and handles the flow (as you can see in the commented lines). I don&#8217;t care about that right now, since I only want to push the date and time to the client every second.</p>
<h4>3. Start the standalone server</h4>
<p>Go to the <strong><span>pywebsocket-read-only/src/mod_pywebsocket</span></strong> folder and run the following command:</p>
<pre>sudo python standalone.py -p 9998 -w ../example/</pre>
<p>This will start the server in port 9998 and use the handlers directory specified by the -w option. That is where our echo_wsh.py lives.</p>
<h4>4. Test it <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </h4>
<p>So now open your browser (remember, only chrome supports websockets currently) and open the html file your created in the beginning. Voilá, server&#8217;s date and time every second in the clock div.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/&amp;t=Websockets+tutorial%2Fexample+with+pywebsocket" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Websockets+tutorial%2Fexample+with+pywebsocket+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/&amp;title=Websockets+tutorial%2Fexample+with+pywebsocket" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/&amp;title=Websockets+tutorial%2Fexample+with+pywebsocket" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/&amp;t=Websockets+tutorial%2Fexample+with+pywebsocket" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/&amp;title=Websockets+tutorial%2Fexample+with+pywebsocket" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/&amp;t=Websockets+tutorial%2Fexample+with+pywebsocket" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/01/my-small-pywebsocket-tutorial/' rel='bookmark' title='Permanent Link: My small pywebsocket tutorial &#8230;'>My small pywebsocket tutorial &#8230;</a></li>
<li><a href='http://pedroassuncao.com/2009/10/fabric-for-remote-deployment/' rel='bookmark' title='Permanent Link: Fabric for remote deployment'>Fabric for remote deployment</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2009/12/websockets-tutorialexample-with-pywebsocket/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>World&#8217;s deadliest ping pong cannon</title>
		<link>http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/</link>
		<comments>http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:00:10 +0000</pubDate>
		<dc:creator>Pedro Assuncao</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[toys]]></category>

		<guid isPermaLink="false">http://diffract.me/?p=562</guid>
		<description><![CDATA[<p>I want one of these. I wonder who comes up with these things. Maybe the same guy that thought it was a good idea to shoot a satellite against the moon.</p> <p></p> Share this on Facebook Tweet This! Post on Google Buzz Digg this! Share this on Reddit Submit (...)<br/ >[<a href="http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/">continue reading</a>]


Related posts:<ol><li><a href='http://pedroassuncao.com/2009/11/dutch-break-world-domino-record/' rel='bookmark' title='Permanent Link: Dutch break world domino record'>Dutch break world domino record</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I want one of <a href="http://gajitz.com/ping-pong-pow-worlds-deadliest-pneumatic-ping-pong-gun/">these</a>. I wonder who comes up with these things. Maybe the same guy that thought it was a good idea to <a href="http://www.cnn.com/2009/TECH/space/10/09/probe.moon.crash/index.html">shoot a satellite against the moon</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/glvIJLeepck&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;feature=player_embedded&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/glvIJLeepck&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;feature=player_embedded&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/&amp;t=World%27s+deadliest+ping+pong+cannon" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=World%27s+deadliest+ping+pong+cannon+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/&amp;title=World%27s+deadliest+ping+pong+cannon" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/&amp;title=World%27s+deadliest+ping+pong+cannon" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/&amp;t=World%27s+deadliest+ping+pong+cannon" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/&amp;title=World%27s+deadliest+ping+pong+cannon" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/&amp;t=World%27s+deadliest+ping+pong+cannon" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2009/11/dutch-break-world-domino-record/' rel='bookmark' title='Permanent Link: Dutch break world domino record'>Dutch break world domino record</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2009/11/worlds-deadliest-ping-pong-cannon/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
