<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>Smurfmatic</title>
        <link>http://smurfmatic.net/blog/</link>
        <description>...the blog</description>
        <language>en</language>
        <copyright>Copyright 2010</copyright>
        <lastBuildDate>Wed, 03 Mar 2010 11:46:16 -0500</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>Google Earth on the Nexus One</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/4404345804/" title="Google Earth on Nexus One by Cedric Sam, on Flickr"><img src="http://farm5.static.flickr.com/4012/4404345804_a6b9a875cd.jpg" width="500" height="334" alt="Google Earth on Nexus One" /></a>

Since February 22nd, <a href="http://google-latlong.blogspot.com/2010/02/google-earth-now-available-for-android.html">Google Earth is available on certain Android handsets</a>, including the Nexus One. Just like Google Goggles, it's a neat app that you want to show all your friends without a Nexus One -- but not a terribly useful one. I wrote a <a href="http://www.vox-asia.com/news/2010/03/review-google-nexus-one-smartphone/">review piece</a> for <a href="http://www.vox-asia.com/news/">Vox Asia</a> this week, detailing my thoughts on the N1.

<a href="http://www.flickr.com/photos/smurfmatic/4404345800/" title="Google Earth on Nexus One (Hong Kong) by Cedric Sam, on Flickr"><img src="http://farm5.static.flickr.com/4035/4404345800_da9b293716.jpg" width="500" height="334" alt="Google Earth on Nexus One (Hong Kong)" /></a>]]></description>
            <link>http://smurfmatic.net/blog/archives/2010/03/03/google-earth-on-the-nexus-one.html</link>
            <guid>http://smurfmatic.net/blog/archives/2010/03/03/google-earth-on-the-nexus-one.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Technology</category>
            
            
            <pubDate>Wed, 03 Mar 2010 11:46:16 -0500</pubDate>
        </item>
        
        <item>
            <title>Nouveau plan données + streams audio CBC &amp; Radio-Canada</title>
            <description><![CDATA[Je viens de changer le <a href="http://smurfmatic.net/blog/archives/2010/01/06/hong-kong-mobile-broadband-heaven-for-nexus-one.html">plan de données</a> illimité de mon téléphone pour me permettre de faire du tethering et ainsi m'alimenter en Internet chez nous. Du coup, on m'a donné le Access Point (APN) du broadband résidentiel qui s'appelle juste "Internet". Et ça me coûte que HK$50 (CA$6.50) de plus par mois, et un beau total de HK$300 (CA$40) par mois.

Donc, à part que je puisse maintenant faire du tethering avec mon cell (j'aurais pu aussi avant, mais ça aurait contrevenu à mon entente), le nouvel APN me donne constamment de plus grandes vitesses de transfert de données et me permet maintenant aussi de streamer de l'audio à travers le réseau mobile.

<a href="http://www.flickr.com/photos/smurfmatic/4355805632/" title="Google Nexus One by Cedric Sam, on Flickr"><img src="http://farm5.static.flickr.com/4036/4355805632_6412b2192f.jpg" width="375" height="500" alt="Google Nexus One" /></a>

Armé de mon <a href="http://www.google.com/phone">Nexus One</a> (que je vais reviewer la semaine prochaine), je peux donc me promener dans la rue à Hong Kong et écouter les streams de <a href="http://www.radio-canada.ca/">Radio-Canada</a> (et de <a href="http://www.cbc.ca/">CBC</a>, de <a href="http://www.bandeapart.fm/">Bande à part</a>, etc., par extension) comme si j'étais à Montréal! Le seul hic: c'est à travers le réseau 3G, alors ça va drainer de la batterie.

<a href="http://www.flickr.com/photos/smurfmatic/4355771064/" title="Screenshot-Icecast Streaming Media Server - Mozilla Firefox by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2775/4355771064_2c852c7628.jpg" width="500" height="346" alt="Screenshot-Icecast Streaming Media Server - Mozilla Firefox" /></a>

En fouillant dans les fichiers Javascript de BAP, j'ai trouvé que le serveur des publishing points chez <a href="http://www.abacast.com/">Abacast</a> servait aussi une page index: <a href="http://in-1.atl.icy.abacast.com/">http://in-1.atl.icy.abacast.com/</a>. C'est aussi peut-être un alias/serveur géo-spécifique de <a href="http://icy1.abacast.com/">http://icy1.abacast.com/</a> que j'ai trouvé dans les <a href="http://smurfmatic.net/blog/archives/2007/08/26/pour-lire-les-asx-de-radiocanada.html">ASX de R-C</a>.

CBC et Radio-Canada sont de leurs partenaires et la liste de la page mentionnée ci-dessus comprend donc pas mal tous les mount points de ses feeds audio, servis pour appareils mobiles, applications Web, etc.

Comme c'est public, on peut pointer à ces addresses directement sur son browser mobile, et si la connection est assez rapide (devrait être HSDPA, à 3Mo/s), on peut les écouter comme de la radio à travers les ondes. On va sur la <a href="http://icy1.abacast.com/">page</a>, on copie le lien M3U, et on enlève le ".m3u" de l'adresse (ou on ouvre le fichier m3u dans un éditeur de texte).

Des streams taggés "128" (comme ceux de BAP) sont en fait du 192kbps. Ça tire un peu beaucoup avec ma connection sur l'île chez moi, mais quand ça marche, ça sonne mieux que la radio FM. Y'a d'autres streams comme les radio musicales qui sont aussi à haut débit. Le talk radio est à 64.

Autre goody: la page nous montre le nombre d'auditeurs présentement connectés. (Bon, ça serait p-ê une bonne idée que qqu dise à Abacast d'arrêter de laisser cette page publique?)]]></description>
            <link>http://smurfmatic.net/blog/archives/2010/02/14/nouveau-plan-donnees-streams-audio-cbc-r.html</link>
            <guid>http://smurfmatic.net/blog/archives/2010/02/14/nouveau-plan-donnees-streams-audio-cbc-r.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Hong Kong</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">t3h g33kn3$$</category>
            
            
            <pubDate>Sun, 14 Feb 2010 01:48:59 -0500</pubDate>
        </item>
        
        <item>
            <title>My new lamp</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/4297441433/" title="My new lamp by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2784/4297441433_449343147d.jpg" width="500" height="334" alt="My new lamp" /></a>

I got a new desk lamp tonight. I really like it and I think it changes the whole atmosphere in my apartment. Now, instead of having the chandelier weakly illuminate the entire living room, I can shut down the lights in the whole flat and have my lamp focus on my desk only.

Back in Canada, I used to have a weaker lamp, but which did almost the same effect of letting me dim the surroundings. It's rather soothing, and comforting at night, especially when bringing back work home.]]></description>
            <link>http://smurfmatic.net/blog/archives/2010/01/23/my-new-lamp.html</link>
            <guid>http://smurfmatic.net/blog/archives/2010/01/23/my-new-lamp.html</guid>
            
            
            <pubDate>Sat, 23 Jan 2010 12:28:20 -0500</pubDate>
        </item>
        
        <item>
            <title>Hong Kong, mobile broadband heaven for Nexus One</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/4238545151/" title="Android Dev Phone 2 cover by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2728/4238545151_7dbf95a93a.jpg" width="500" height="334" alt="Android Dev Phone 2 cover" /></a>
<em><a href="http://en.wikipedia.org/wiki/Android_Dev_Phone#Android_Dev_Phone_2">Android Dev Phone 2</a> cover. <small>The AD2 is also known as the Google Ion, a software remix of the HTC Magic. Was handed out to Google I/O 2009 attendees and made available to other developers in November 2009.</small></em>

When Google's new "superphone" <a href="http://en.wikipedia.org/wiki/Nexus_One">Nexus One</a> was released yesterday, it was made available for online orders shipping to four places in the world: the US, the UK, Singapore and Hong Kong.

In Canada, I was paying CA$40/mo for high-speed (7mbps) Internet over fixed-line, on top of a mobile phone service (no data) that costs me CA$35/mo.

Hong Kong is a city where you can get pay-as-you-go SIM cards for your GSM phone with a company like <a href="http://www.hk.chinamobile.com/">China Mobile HK</a> for just HK$100 (CA$13.50) and get charge HK$0.10 (just above one cent) per local minute, and HK$0.25 (about three Canadian cents) per minute for Overseas calls to places like Canada, the US and the UK. If you sign up for a monthly postpaid plan (need a HK ID, or pay a ~HK$3000 deposit), you can get ridiculously cheap plans. My family and friends here constantly tell me about plans going for HK$50-100/mo. (CA$6-15), giving them access to stuff like 1000 minutes, up to a practically unlimited amount of minutes to call to Canada.

But one of the reason -- I think -- making Hong Kong such an appealing market for Google to roll out its version of the future (in the cloud) is also the cheap price of mobile broadband.

<a href="http://www.flickr.com/photos/smurfmatic/4239316908/" title="Android Dev Phone 2 (aka Google Ion &amp; HTC Magic) by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2774/4239316908_20551424f3.jpg" width="500" height="334" alt="Android Dev Phone 2 (aka Google Ion &amp; HTC Magic)" /></a>
<em>Android Dev Phone 2 with a SIM card from Bell (Canada).</em>

Back in Canada, all major phone companies offer mobile Internet, but always with some sort of limitation on the bandwidth. Bell released its new HSPA+ network in Fall 2009, with potential speeds up to 21mbps (that's 3 times as fast as the typical high-speed Internet by fixed phone line), but typical speeds going much lower, probably running at 3-7mbps (just speculating). The price? A regular 500Mb data plan for iPhone goes for CA$50. That's not a lot of data, if you consider that each video watched on YouTube can be 5-10Mb. Other <a href="http://mobilebusiness.bell.ca/en/Common/Rate-plans/Combo-plans-for-iPhone_Page_944.aspx">Bell data plans</a> range from CA$60-100 for bandwidths of 1-3Gb.

Now in Hong Kong, I am also a personal consumer (I don't get any phone, let alone phone plan from any company that would employ me), and recently switched from a prepaid plan with China Mobile HK (the lowest of the low in HK, but a v. good short term prepaid option) to a postpaid data plan with <a href="http://www.smartone-vodafone.com/">SmarTone-Vodafone</a>, probably the company with the next to the best (<a href="http://www.hkcsl.com/">CSL/Telstra</a>) mobile network coverage and quality in Hong Kong. Now this plan sets me back HK$250 (all fees included) and gives me <a href="http://www.smartone-vodafone.com/jsp/mobile/prices/hot_offer/english/priceoffer_05.jsp">unlimited data</a> (and an insane to Canadians, but expected by Hongkongers, amount of minutes) at typical speeds of around 2-3mbps.

Now, bear in mind that in this market, HK$50 monthly plans are the norm for the masses. But with a comparable cost of living to Canada (3/4 of Canada in daily expenses), this means that with tethering (using your phone as a modem for your computer) for an extra HK$50, for a total of HK$300 (or CA$40), people in Hong Kong can drop their fixed Internet line altogether, and like to paraphrase Google, merge their phone with the Web for ridiculous prices for North American wallets.

Unlimited high-speed data plans are sold by 3 or 4 companies in Hong Kong, with prices varying around HK$250/mo, the price at SmarTone-Vodafone with a 18-month contract. The selling point, at least for me, was that you can break your contract at any point for just a HK$500 (CA$66) fee.

Is that the sign that mobile phone contracts are starting to become a thing of the past? The <a href="http://www.smartone-vodafone.com/jsp/mobile/prices/hot_offer/english/priceoffer_05.jsp">plan</a> is again very poorly advertised by SmarTone, because subsidized phones are still the way. This HK$250 monthly contract is only available if you bring your own unlocked smartphone, very common in Hong Kong... and now available directly from <a href="http://www.google.com/phone">Google</a> at US$530, or US$580 (HK$4500) when counting an AC adapter and international shipping to Hong Kong.

If your needs don't justify such expenses, Hong Kong is probably one of the easiest places in the world to find second-hand phones of reliable quality (this is not the jungle of Mainland China). One of my friends went to Mong Kok and bought a "used" <a href="http://www.htc.com/www/product/tattoo/overview.html">HTC Tattoo</a> (came out just in October 2009), HTC's budget-range smartphone that is running Android 1.6 for only HK$1000-something (around CA$200 if I remember correctly).

250/mo becomes 3000/yr (CA$400), for all your Internet needs. When I'm going to read these numbers in 5 years, I'm probably going to be as amazed as what a regular laptop or desktop computer used to cost 5 years ago...]]></description>
            <link>http://smurfmatic.net/blog/archives/2010/01/06/hong-kong-mobile-broadband-heaven-for-nexus-one.html</link>
            <guid>http://smurfmatic.net/blog/archives/2010/01/06/hong-kong-mobile-broadband-heaven-for-nexus-one.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Computers</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Hong Kong</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">t3h g33kn3$$</category>
            
            
            <pubDate>Wed, 06 Jan 2010 20:15:37 -0500</pubDate>
        </item>
        
        <item>
            <title>Un coin de rue, deux institutions médiatiques montréalaises</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/4238532377/" title="Cedric + La Presse by Cedric Sam, on Flickr"><img src="http://farm5.static.flickr.com/4053/4238532377_174f7c5859.jpg" width="500" height="334" alt="Cedric + La Presse" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/4238533229/" title="Cedric + Radio-Canada by Cedric Sam, on Flickr"><img src="http://farm5.static.flickr.com/4052/4238533229_d5347c1927.jpg" width="500" height="334" alt="Cedric + Radio-Canada" /></a>

Mon père (un photographe émérite) a pris ces photos de moi devant le bâtiment du journal La Presse, et puis avec au loin la Maison de Radio-Canada derrière mon épaule droite. C'était à l'angle de la rue Saint-Antoine et du boulevard Saint-Laurent.]]></description>
            <link>http://smurfmatic.net/blog/archives/2010/01/02/un-coin-de-rue-deux-institutions-mediati.html</link>
            <guid>http://smurfmatic.net/blog/archives/2010/01/02/un-coin-de-rue-deux-institutions-mediati.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Medias</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Montreal</category>
            
            
            <pubDate>Sat, 02 Jan 2010 21:21:52 -0500</pubDate>
        </item>
        
        <item>
            <title>Enfin de retour à Hong Kong</title>
            <description><![CDATA[Woaw, les deux dernières semaines. J'ai passé du franchement bon temps avec la famille et les amis à Montréal. J'ai fait de petits paquets avec ma vie montréalaise, tant au sens figuré qu'au sens propre, et j'ai dit au revoir à à peu près tout le monde en ville. On a bien mangé, et j'en ai même rapporté ici.

Ici, c'est Hong Kong. Malgré un attentat déjoué dans les airs la semaine dernière, les choses sont revenues à peu près à la normale -- en tout cas pour mes vols. Pas de fouille supplémentaire, pis ça a pris à peu près le même temps pour tout passer ce que j'avais passé en septembre dernier lors de mon départ initial de Montréal. -- À peu près à la normale, vu qu'à cause d'un problème de papiers, nous disait le pilote, le vol CO99 entre Newark et Hong Kong a quand même été retardé d'au moins deux heures et demie, mais on est quand même arrivé en retard juste par 1h30. J'ai pris le Airport Express -- ce que je ne fais pas d'habitude -- et je suis arrivé à Hong Kong Station à Central vers 23h30. J'ai eu le bonheur ensuite d'assister au décompte du nouvel an en face de mon quai du traversier pour l'Île de Lamma. Ça fait du bien de savoir qu'on sera bientôt à la maison -- du moins ma seconde maison.

On passe maintenant devant Aberdeen et Ap Lei Chau sur le ferry.

À Montréal, je me suis débarassé de pas mal de choses. J'ai développé une certaine &laquo; haine &raquo; des choses matérielles, en particulier du papier. Pourquoi promener tant de papier, quand l'essentiel est en fait ce qui est écrit dessus? Alors pourquoi pas tout digitaliser et le traîner dans le nuage? Ma vie en ce moment est un peu comme l'état de mes choses : dans un nuage, qui virevolte, disparait, et réapparait à des endroits différents du monde.

Je m'installe à Hong Kong : peut-être pour quelques mois, peut-être pour quelques années. Le reste de mes jours? Bon, on verra pour ça...

Une chose est sûre, je ne m'ennuierai pas des hivers canadiens. Depuis l'adolescence, j'ai cessé d'apprécier la neige et le blizzard. Ok, peut-être qu'il y a encore un peu d'amour, mais c'est seulement pour le hockey et les soirées passées au chaud à l'intérieur avec ceux qu'on aime et qu'on aimait.

Il doit faire 16-17 degrés maintenant, nuit du Nouvel An à Hong Kong. Tout à fait dans les normales saisonnières et très agréable. Bon, la cloche qui indique qu'on est presque arrivé vient de sonner! 15 minutes de marche avec mes bagages: on est capable!]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/12/31/enfin-de-retour-a-hong-kong.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/12/31/enfin-de-retour-a-hong-kong.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Real-life blues</category>
            
            
            <pubDate>Thu, 31 Dec 2009 16:37:26 -0500</pubDate>
        </item>
        
        <item>
            <title>How to update your Android emulator&apos;s position with an external GPS</title>
            <description><![CDATA[Assuming that you have an Android emulator running, and listening at the default port (5554). First, you need a script called getGeo.sh that gets the GPGGA line from gpsd running at its usual port. gpspipe attaches to gpsd and we get the line we want, put it in a file:

<pre>#!/bin/bash
# get nmea from device

FOO="geo nmea `gpspipe -r -n 10 | grep "GPGGA" | tail -n 1`"
echo ${FOO}
echo ${FOO} > ${HOME}/geo.nmea
</pre>

Then, second code calls telnet and sends it the contents of the file with the "geo nmea <nmea code>" line:

<pre>#!/bin/bash
# simulate sending gps info to android emulator

${HOME}/bin/getGeo.sh
exec telnet 127.0.0.1 5554 < ${HOME}/geo.nmea > /dev/null &> /dev/null
</pre>

You could loop it to make refresh the positioning as you walk around with your GPS.]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/12/03/how-to-update-your-android-emulator-with.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/12/03/how-to-update-your-android-emulator-with.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Linux</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">t3h g33kn3$$</category>
            
            
            <pubDate>Thu, 03 Dec 2009 04:38:30 -0500</pubDate>
        </item>
        
        <item>
            <title>November 9th federal by-election: results maps in 2008</title>
            <description><![CDATA[Might be at the other end of the world, but I'm not missing this election for nothin' in the world... These are links to results by poll in the October 2008 election for the four ridings in play. They're all safe to stay in the same hands (Cumberland's Bill Casey was an independent, but formerly Conservative who voted with them as well).

<strong>Cumberland - Colchester - Musquodoboit Valley:</strong> <a href="http://earth.smurfmatic.net/canada2008/polls/#12007">http://earth.smurfmatic.net/canada2008/polls/#12007</a>
<strong>Hochelaga:</strong> <a href="http://earth.smurfmatic.net/canada2008/polls/#24021">http://earth.smurfmatic.net/canada2008/polls/#24021</a>
<strong>Montmagney - L'Islet - Kamouraska - Rivière-du-Loup:</strong> <a href="http://earth.smurfmatic.net/canada2008/polls/#24058">http://earth.smurfmatic.net/canada2008/polls/#24058</a>
<strong>New Westminster - Coquitlam:</strong> <a href="http://earth.smurfmatic.net/canada2008/polls/#59017">http://earth.smurfmatic.net/canada2008/polls/#59017</a>]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/11/08/november-9th-federal-by-election-results.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/11/08/november-9th-federal-by-election-results.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Canada</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Politics</category>
            
            
            <pubDate>Sun, 08 Nov 2009 12:25:07 -0500</pubDate>
        </item>
        
        <item>
            <title>city&apos;super!</title>
            <description><![CDATA[Let's go back to <a href="http://smurfmatic.net/blog/archives/2005/06/29/the-price-of-cultural-difference-or-a-di.html">2005</a>, on my second stay in HK, and the longest (for about four months)...

<blockquote>When I miss home, I go to City Super. One time, I went home with three pieces of swordfish to cook for my "adoptive" family, which set me back for around 120HKD (20CAD). The time before, I craved for food we didn't even have at home, the U-shaped French saucisse sèche (80HKD/12CAD) (and with it, a freshly baked baguette (15-20HKD/2-3CAD)). Which is fine, because the saucisse lasted for a whole month (which never happens at home), and the baguette almost as good as the one we get in Canada.</blockquote>

Now, I've done it again. Tonight, went crazy at City'Super, and got myself a French saucisson (HKD$90), a baguette (HKD$20) and olive oil (HKD$80 for 250mL - Australian, no less). [The exchange rate is roughly HKD$7.5 for each Canadian dollar). I also got a small stick of Danish butter (200g) for around HKD$35, which makes it twice as expensive as it would in Canada...

In photos:

<a href="http://www.flickr.com/photos/smurfmatic/4039343603/" title="Saucisson français (à HK) by Cedric Sam, on Flickr"><img src="http://farm4.static.flickr.com/3127/4039343603_d9bc451793.jpg" width="500" height="334" alt="Saucisson français (à HK)" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/4039343611/" title="Australian olive oil by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2556/4039343611_06cfa492d7.jpg" width="334" height="500" alt="Australian olive oil" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/4039343591/" title="Lurpak Danish Butter by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2653/4039343591_269e7fbed0.jpg" width="500" height="334" alt="Lurpak Danish Butter" /></a>

These are the things you can get in a truly international city (or in a city that can sustain a fancy place such as city'super). Mind you, I'm going back to forced-vegetarian menu of noodles with Chinese veggies or plain rice with soy sauce for the rest of the week...

I also got pasta. So yes, no-meat, no-cheese (but yes-olive oil) garlic linguine, here I come...

And in the weird packaging ploys category, <strong>low-sodium sea salt</strong>:

<a href="http://www.flickr.com/photos/smurfmatic/4039269191/" title="Low-sodium sea salt, lol by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2709/4039269191_6b2d5cbede.jpg" width="500" height="334" alt="Low-sodium sea salt, lol" /></a>]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/10/24/citysuper.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/10/24/citysuper.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Food</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Hong Kong</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Hong Kong 2009</category>
            
            
            <pubDate>Sat, 24 Oct 2009 12:40:30 -0500</pubDate>
        </item>
        
        <item>
            <title>IKEA in Hong Kong</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/3983248538/" title="IKEA Hong Kong (Causeway Bay) by Cedric Sam, on Flickr"><img src="http://farm4.static.flickr.com/3477/3983248538_5e313ba9ba.jpg" width="500" height="334" alt="IKEA Hong Kong (Causeway Bay)" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/3982490021/" title="IKEA Hong Kong (Causeway Bay) by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2550/3982490021_40b134e1bf.jpg" width="500" height="334" alt="IKEA Hong Kong (Causeway Bay)" /></a>

IKEA in Hong Kong is as you would expect anywhere else in the world, except that it does not have a warehouse, is more compact and completely subterranean.

One of the IKEA stores in Hong Kong is located in the commercial area of Causeway Bay on Hong Kong Island. You find familiar items such as the IKEA food (hot dogs + cinnamon rolls), those vanilla-perfumed cartridge candles and <a href="http://www.flickr.com/photos/smurfmatic/3982490021/">Poang chairs</a>.]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/10/05/ikea-in-hong-kong.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/10/05/ikea-in-hong-kong.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Hong Kong 2009</category>
            
            
            <pubDate>Mon, 05 Oct 2009 04:16:13 -0500</pubDate>
        </item>
        
        <item>
            <title>Linux rebooting on my Continental flight to HKG</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/3974217864/" title="imgp0036 by Cedric Sam, on Flickr"><img src="http://farm4.static.flickr.com/3478/3974217864_6a6722b28c.jpg" width="500" height="334" alt="imgp0036" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/3974356798/" title="Linux rebooting on CO99 to HKG by Cedric Sam, on Flickr"><img src="http://farm4.static.flickr.com/3430/3974356798_6237c9feea.jpg" width="500" height="334" alt="Linux rebooting on CO99 to HKG" /></a>

It can be a little unsettling when you see rows of text scrolling down the screen in front of you when sitting in an airplane. That happened twice during my flight to Hong Kong yesterday, as the captain needed to reboot the server running the touch-screen system controlling on-board entertainment and flight status.

I'm not so surprised that they use Linux. It's pretty nice to see the text cascading across the screen -- I'm getting perhaps a strong sense of familiarity.

<a href="http://www.flickr.com/photos/smurfmatic/3973454117/" title="Flying off from Newark by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2628/3973454117_ae3f2867fc.jpg" width="500" height="334" alt="Flying off from Newark" /></a>]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/10/02/linux-rebooting-on-my-continental-flight.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/10/02/linux-rebooting-on-my-continental-flight.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Computers</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Hong Kong 2009</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">t3h g33kn3$$</category>
            
            
            <pubDate>Fri, 02 Oct 2009 20:30:49 -0500</pubDate>
        </item>
        
        <item>
            <title>Google Earth: Canada Federal Election 2008 (by polls)</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/3929636641/" title="Thornhill by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2652/3929636641_f4158d44ca.jpg" width="500" height="341" alt="Thornhill" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/3929636227/" title="Papineau by Cedric Sam, on Flickr"><img src="http://farm4.static.flickr.com/3209/3929636227_5d0b5ecd79.jpg" width="500" height="341" alt="Papineau" /></a>

<font size="+2"><a href="http://earth.smurfmatic.net/canada2008/polls/">http://earth.smurfmatic.net/canada2008/polls/</a></font>

Inspired by Stephen Taylor's <a href="http://www.stephentaylor.ca/2009/08/google-earth-demo-2008-general-election-poll-maps-and-results/">post</a> (and my <a href="http://www.youtube.com/watch?v=EqsYZQFSwiU">own</a> <a href="http://www.insidethecbc.com/jazzing-up-election-imagery/">past</a> <a href="http://smurfmatic.net/blog/archives/2008/10/01/google-earth-canada-election-map-2008.html">project</a> from Fall 2008), I set out to produce a website where people could navigate election results by riding, but also by poll.

I used cartographic data from the <a href="http://www.geogratis.gc.ca/geogratis/en/option/select.do?id=1169">Geogratis.gc.ca</a> website. I imported the Shapefiles to a PostgreSQL database with Postgis. Then, I processed results by polling divisions from the 2008 election, data available on the <a href="http://www.elections.ca/">Elections Canada</a> website. It was put in a separate table on the same database. A custom program in Python using the very handy <a href="http://code.google.com/p/libkml/">libkml</a> (a code library developed and supported by Google) took the data and outputted pretty KML code. It was packed as a KMZ and uploaded to my webspace. [E-mail me, if you want to exchange ideas on the code]

The webpage itself is rich in JavaScript and the code can be seen <a href="http://earth.smurfmatic.net/canada2008/polls/polls.js">here</a>. I use hashes to make the webpage bookmarkable and loadable with a given riding pre-loaded.

For instance, the Papineau riding (24048) can be accessed through this link:
<a href="http://earth.smurfmatic.net/canada2008/polls/#24048">http://earth.smurfmatic.net/canada2008/polls/#24048</a>

The website requires the Google Earth plugin, available for Windows and Mac. It works very smoothly on my old computer (bought in 2003).

You could also download the individual KMZ files (they are in fact zip files, so on Windows you would rename them with .zip and unzip them with your usual utility). They are at: <a href="http://earth.smurfmatic.net/canada2008/polls/ridings/">http://earth.smurfmatic.net/canada2008/polls/ridings/</a> . However, if I post updates (which I will), you won't see them.
]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/09/17/google-earth-canada-federal-election-200.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/09/17/google-earth-canada-federal-election-200.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Canada</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Medias</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Politics</category>
            
            
            <pubDate>Thu, 17 Sep 2009 20:15:04 -0500</pubDate>
        </item>
        
        <item>
            <title>L&apos;autre choix, mini marché : food lovers&apos; choice in Westmount village</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/3928242272/" title="L'autre choix, mini marché, 330A avenue Victoria by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2582/3928242272_31e5695928.jpg" width="500" height="334" alt="L'autre choix, mini marché, 330A avenue Victoria" /></a>

A new grocery store on Victoria Avenue just opened its doors last week. The half basement shop offers a variety of organic (and non-organic too) produce. It may fit the look of a Westmount upscale boutique, but the prices shown for the basic stuff (tomatoes, apples, lemons) are at market price (similar to PA's price, comparatively lower than the nearby Metro).

On top of that, you also find a unique offering of Asian products (the owner Clara happens to be a food-loving Canadian Chinese) such as soy milk, bok choy and ramen noodles. They are also importing a type of pasta from Italy.

<em>334A Avenue Victoria, Westmount</em>

<a href="http://www.flickr.com/photos/smurfmatic/3928237080/" title="L'autre choix, mini marché, 330A avenue Victoria by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2583/3928237080_87b4bf5e6f.jpg" width="500" height="334" alt="L'autre choix, mini marché, 330A avenue Victoria" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/3927455913/" title="L'autre choix, mini marché, 330A avenue Victoria by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2634/3927455913_7b57d7a90c.jpg" width="500" height="334" alt="L'autre choix, mini marché, 330A avenue Victoria" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/3927456935/" title="L'autre choix, mini marché, 330A avenue Victoria by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2457/3927456935_a58ac91cb3.jpg" width="500" height="334" alt="L'autre choix, mini marché, 330A avenue Victoria" /></a>

Speaking of young entrepreneurs, I found out that the newest <a href="http://mcot.ca/">my cup of tea</a> shop is just next door:

<a href="http://www.flickr.com/photos/smurfmatic/3927457899/" title="my cup of tea #2, 344A avenue Victoria by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2560/3927457899_5e8a66703f.jpg" width="334" height="500" alt="my cup of tea #2, 344A avenue Victoria" /></a>]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/09/17/lautre-choix-mini-marche-food-lovers-cho.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/09/17/lautre-choix-mini-marche-food-lovers-cho.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Food</category>
            
            
            <pubDate>Thu, 17 Sep 2009 00:47:37 -0500</pubDate>
        </item>
        
        <item>
            <title>Il vote pour qui, le voisin ? / Who&apos;s the neighbour voting for?</title>
            <description><![CDATA[<a href="http://www.flickr.com/photos/smurfmatic/3909080884/" title="Toronto: Electoral Donations in Canada by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2607/3909080884_4110531e43.jpg" width="500" height="291" alt="Toronto: Electoral Donations in Canada" /></a>

<a href="http://www.flickr.com/photos/smurfmatic/3909080870/" title="Montreal: Electoral Donations in Canada by Cedric Sam, on Flickr"><img src="http://farm4.static.flickr.com/3480/3909080870_9698bf2414.jpg" width="500" height="291" alt="Montreal: Electoral Donations in Canada" /></a>

<big><a href="http://smurfmatic.net/blog/files/contrib40_2009-09-11.kmz">Download the KMZ / Téléchargez le KMZ</a></big>

Finally finished the first phase of my <a href="http://smurfmatic.net/blog/archives/2009/09/07/electoral-contributions-to-parties-in-canada.html">data visualization project</a> for electoral donations to political parties. The data is for individual contributions during the 2008 election in Fall. Here is the KMZ file: <a href="http://smurfmatic.net/blog/files/contrib40_2009-09-11.kmz">contrib40_2009-09-11.kmz</a>

Finalement, j'ai fini la première phase de mon <a href="http://smurfmatic.net/blog/archives/2009/09/07/electoral-contributions-to-parties-in-canada.html">projet de visualisation de données</a> de contributions aux partis politiques. Les données sont pour les dons de particuliers lors de l'élection d'automne 2008. Voici le fichier KMZ: <a href="http://smurfmatic.net/blog/files/contrib40_2009-09-11.kmz">contrib40_2009-09-11.kmz</a>

Here are a few examples of stuff that I found while fooling around... / Voici quelques exemples que j'ai trouvé en me promenant...

<a href="http://www.flickr.com/photos/smurfmatic/3909056828/" title="David Kilgour: Electoral Donations in Canada by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2591/3909056828_3765037c17.jpg" width="500" height="269" alt="David Kilgour: Electoral Donations in Canada" /></a>

David Kilgour gives to the Conservative Party. We think it's _the_ <a href="http://en.wikipedia.org/wiki/David_Kilgour">David Kilgour</a>, because wife Laura is also listed for the same postal code. For the notice, Kilgour was a former Jean Chrétien minister (originally was a Progressive Conservative). Retired as an independent in 2006 and known to be a Falun Gong sympathizer.

<a href="http://www.flickr.com/photos/smurfmatic/3909056834/" title="Michael Sabia: Electoral Donations in Canada by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2621/3909056834_daf3a34cc8.jpg" width="500" height="269" alt="Michael Sabia: Electoral Donations in Canada" /></a>

<a href="http://en.wikipedia.org/wiki/Michael_Sabia">Michael Sabia</a>, the Caisse de dépôt et de placement du Québec CEO, formerly a Bell Canada CEO, naturally gives to the Liberals.]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/09/11/il-vote-pour-qui-le-voisin-whos-the-neighbour-voting-for.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/09/11/il-vote-pour-qui-le-voisin-whos-the-neighbour-voting-for.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Medias</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Politics</category>
            
            
            <pubDate>Fri, 11 Sep 2009 02:42:55 -0500</pubDate>
        </item>
        
        <item>
            <title>Electoral contributions to political parties in Canada : the sales pitch</title>
            <description><![CDATA[<strong>Edit (2009-11-11):</strong> I completed the project a few days after describing it in this post. This <a href="http://smurfmatic.net/blog/archives/2009/09/11/il-vote-pour-qui-le-voisin-whos-the-neighbour-voting-for.html">link</a> gives you an overview of what it does. Here is the web version (requires Google Earth plugin): <strong><a href="http://earth.smurfmatic.net/canada2008/contributions/">http://earth.smurfmatic.net/canada2008/contributions/</a></strong>

***

Some time ago, I wrote a lot on this <a href="http://smurfmatic.net/blog/archives/2009/03/08/a-new-project-using-google-earth-etc.html">particular project</a> without providing much specifics. This said project is the electoral contributions project.

The idea is pretty straightforward. Once a year, Elections Canada releases data on donations to political parties, whether it's from individuals or companies, directly to candidates or the party itself.

They have some database behind to power it, but none of it is open to the public. The only information available is under the form of webpages such as this one:

<a href="http://www.flickr.com/photos/smurfmatic/3895675500/" title="Screenshot-Financial Reports: Candidate's Electoral Campaign Return - Mozilla Firefox by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2558/3895675500_7636c6504d.jpg" width="500" height="415" alt="Screenshot-Financial Reports: Candidate's Electoral Campaign Return - Mozilla Firefox" /></a>

Also, you can click on the name of a contributor and find basic info such as the address where he sent his contribution from, specifically on this popup:

<a href="http://www.flickr.com/photos/smurfmatic/3895675502/" title="Screenshot-Contributor Information - Mozilla Firefox by Cedric Sam, on Flickr"><img src="http://farm3.static.flickr.com/2528/3895675502_73b1c4ca10_m.jpg" width="202" height="240" alt="Screenshot-Contributor Information - Mozilla Firefox" /></a>

So, what if you got the data and tried to use the postal code to put every contribution on a map? It's been done in the States by the <a href="http://fundrace.huffingtonpost.com/">Huffington Post</a>, the well-known web media outlet.

<strong>How to do it?</strong>

To get the 100-something pages containing the data, you write a shell script with wget on the address (check the post data with Firebug) and download all the pages. Then, do the same for the pop-ups (you find their script's URL by reading through their JavaScript code, all of which is ungarbled).

Then, parse the pages with a script. I wrote mine in PHP, because I didn't know better. I'll post it if there is interest for it. Then, the same script does the INSERTs to the PostgreSQL database. You can download this following database dump:

<a href="http://smurfmatic.net/blog/files/contrib40.sql">contrib40.sql</a>

I chose the columns to be of a super permissive datatype, because the data in those webpages is surprisingly not very well normalized. You also find invalid postal codes and basically no practical way to identify two different donors with, say, the same name.

Then comes the interesting part that I've finished once but did not save anything useful, that is to visualize the contributions geographically with the postal code. I made a separate table called "postalcodes" which is a unique list of postal codes contained in contrib40, and the geographical point representing this postal code. I obtained the point coordinates using a script that called the <a href="http://code.google.com/apis/maps/documentation/geocoding/index.html">Google HTTP geocoding service</a>. It's for Postgis that I used PostgreSQL.

Now it's maybe the fun part, that is to fetch the data and make it into something useful, either using MapServer + Google Maps, or libkml (to generate a file for Google Earth).

Interesting, telling uses? Since we only have access to data up to the end of 2008, we could show the rise of the Liberals in the post-electoral months of November and December, when Stéphane Dion stepped down in favour of maybe-Michael Ignatieff. We can surely superimpose donation origin and actual voting patterns <a href="http://smurfmatic.net/blog/archives/2009/08/22/canada-election-2008-now-results-by-marg.html">at the poll level</a>.

If you have more visualization ideas, feel free to drop me a line: <a href="mailto:cedricsam@gmail.com">cedricsam@gmail.com</a>. I'd like to hear your ideas, propositions. I think that this data ought to democratized, and using graphical methods like maps is one of the best methods nowadays.]]></description>
            <link>http://smurfmatic.net/blog/archives/2009/09/07/electoral-contributions-to-parties-in-canada.html</link>
            <guid>http://smurfmatic.net/blog/archives/2009/09/07/electoral-contributions-to-parties-in-canada.html</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">Medias</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">Politics</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">t3h g33kn3$$</category>
            
            
            <pubDate>Mon, 07 Sep 2009 01:04:39 -0500</pubDate>
        </item>
        
    </channel>
</rss>
