<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Thu, 23 Feb 2012 18:51:13 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Random Geek Blog</title><link>http://blog.leplus.org/blog/</link><description></description><lastBuildDate>Thu, 19 Jan 2012 13:52:04 +0000</lastBuildDate><copyright></copyright><language>en-US</language><generator>Squarespace Site Server v5.11.81 (http://www.squarespace.com/)</generator><item><title>I finally get how Siri can change the world</title><category>Apple</category><category>Hack</category><category>Siri</category><category>Software</category><category>iOS</category><category>iiPhone</category><category>mobile</category><category>proxy</category><category>security</category><category>software</category><category>voice control</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Thu, 19 Jan 2012 11:37:08 +0000</pubDate><link>http://blog.leplus.org/blog/2012/1/19/i-finally-get-how-siri-can-change-the-world.html</link><guid isPermaLink="false">744299:8731028:14647702</guid><description><![CDATA[<p style="text-align: justify;">A colleague this morning introduced me to the wonderful world of Siri proxies. As expected some clever guys have reversed the protocol used by Siri, the voice service for iOS devices. So you can now have your own proxy that intercept Siri&rsquo;s query to Apple&rsquo;s server and provide your own answers to specific commands. I think this opens a world of cool possibilities. Imagine sitting at your favorite coffee shop and ordering your favorite coffee drink using Siri. Once Siri&rsquo;s API is available to iOS apps, you could do this with a specific app for the coffee place. But by doing it via a network proxy, you can integrate your commands in canonical Siri interface. This seems like a much smoother solution.</p>
<p style="text-align: justify;">The flipside, as always, is that these methods could be used for more nefarious purposes. For example a store could provide free Wi-Fi but block access to competitors or price comparison sites. Worst they could let you access these sites but change the content of the page to increase their competitors&rsquo; prices or stocks. This shows once again the importance of making SSL more ubiquitous on the web.</p>
<p style="text-align: justify;">Currently Siri proxies are a bit of a hack. I really hope that Apple will officially support them soon and I can&rsquo;t wait to see how businesses, public services and home automation nuts will use them.</p>
<p style="text-align: justify;">Short URL for this post: <a href="http://lepl.us/5jz">http://lepl.us/5jz</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-14647702.xml</wfw:commentRss></item><item><title>Six years of Gmail</title><category>Dropbox</category><category>Gmail</category><category>Google</category><category>Software</category><category>email</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Sat, 23 Jul 2011 10:02:36 +0000</pubDate><link>http://blog.leplus.org/blog/2011/7/23/six-years-of-gmail.html</link><guid isPermaLink="false">744299:8731028:12229080</guid><description><![CDATA[<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;I have been using Gmail for six years as of today. Six Internet years is like 30 years in the real world! It's an amazing testimony to the quality of that service. And it's all for free.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;But enough congratulations. I noticed something else with Gmail. When I joined in July 2005, the service's main selling point was the huge amount of storage it offered. More than 2GB! And counting as they say on the homepage where they shows a real-time counter of the ever-increasing disk quota allowed to users.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;There has been many speculations on how that quota has been computed over the years. It reached 7GB in Fall 2008. But then at the beginning of 2009 the rate of this growth suddenly dropped by a factor of ten. And we are now, three years later, at 7.6GB. How come? I mean 7.6GB is plenty of space so I am not complaining but with the bandwidth of our Internet connections always increasing and the file of our digital media always growing, for how long will that 7.6GB feel so huge. The maximum attachment size currently is 25MB. My DSLR camera makes bigger files than that!</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;So I am wondering if Google is not resting on its laurels here. I am only using about 20% of my Gmail quota so I don't think I would switch to a new service tomorrow even if they offered unlimited disk space. But what if that service also integrated a Dropbox-like feature to backup your files in the cloud. You could share by email big files because they would upload in the background. Wouldn't that be great?</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;I guess my conclusion is: stay on your toes Gmail team! Because I really want Gmail to stay the best email service out there. And thanks for everything that you have done so far.</p>

<p>Short URL for this post: <a href="http://lepl.us/5hw">http://lepl.us/5hw</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-12229080.xml</wfw:commentRss></item><item><title>iPhone apps are not magically secure</title><category>Computer Security</category><category>LinkedIn</category><category>Software</category><category>Squarespace</category><category>Tumblr</category><category>iOS</category><category>iPad</category><category>iPhone</category><category>network</category><category>password</category><category>privacy</category><category>security</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Fri, 15 Jul 2011 23:02:30 +0000</pubDate><link>http://blog.leplus.org/blog/2011/7/15/iphone-apps-are-not-magically-secure.html</link><guid isPermaLink="false">744299:8731028:12131064</guid><description><![CDATA[<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;I have been wondering about the iPhone apps security for a long time. Most apps are connected to some sort of web service but are they using SSL? We spent so much time educating users to check the security icon in their web browser and now the iPhone comes out and nobody cares anymore! That bugs me so I decided to find out.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;After starting Wireshark on my router, I went through most applications on my iPhone, logging in, accessing my profile and my account details. The good news is that all the banking apps that I tried are connecting over SSL. But many of the more casual apps are not. Ironically the first app that I found transmitting my login and password in plain text was the Squarespace app! And apparently it's not alone amongst the blogging apps since Tumblr is doing the same. Sincerely it depresses me that in this day and age, developers still spend so much effort designing design such cool apps and services and yet do not care about their security.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;One might say that these are just passwords to your blog. No big deal. But everybody knows that most people use the same password on every sites. And it's not just passwords. The LinkedIn app transfers your whole profile in the clear. Name, e-mail address, resume, almost everything you need for identity theft or to figure out the answer to the security question for the web sites where you did not use the same password as the others.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;That's a good opportunity to remind everyone of two fundamental security rules. One, use a different password on every web site. Tools like <a class="offsite-link-inline" href="http://lastpass.com">LastPass</a> make it very easy. Two, never connect to unencrypted Wi-Fi networks. Everybody can capture everyone else's data on these networks.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Finally if none of this is news to you, please take the time to explain it to your less tech-savvy friends and relatives.</p>

<p>Short URL for this post: <a href="http://lepl.us/5hv">http://lepl.us/5hv</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-12131064.xml</wfw:commentRss></item><item><title>Having fun with Lomography Spinner 360°</title><category>Lomography</category><category>Photography</category><category>Spinner 360°</category><category>camera</category><category>film</category><category>photography</category><category>scanner</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Sun, 03 Jul 2011 19:50:24 +0000</pubDate><link>http://blog.leplus.org/blog/2011/7/3/having-fun-with-lomography-spinner-360.html</link><guid isPermaLink="false">744299:8731028:11997291</guid><description><![CDATA[<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;I got a new toy: the <a class="offsite-link-inline" href="http://microsites.lomography.com/spinner-360/">Spinner 360&deg;</a> from Lomography. It is a film camera that takes a 360&deg; by spinning around a handle. And I have to say, it is a load of fun!</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;The camera is very simple to use. There is only one setting on the camera (sunny or cloudy) so you have to forget about exposure, focus and all that, and just take pictures. It is completely the opposite of how I approached photography. When I bought my first digital camera, I spent a lot of time learning all the camera settings and understanding their impact on the resulting picture. That is the way I go about things but it is also a distraction from the most important thing: taking pictures. With the Spinner 360&deg;, you only have to think about taking pictures. You think about the location, the subject and the framing, that's it.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Speaking of pictures, the results are brilliant. Of course it is hit or miss process. It is hard to picture what the result of a 360&deg; shot will look like. Not to mention all the little details going around you (literally) when you take the picture. That is why I usually take several photographs in each place. Typically a 36 exposures roll of film will get you about 7 360&deg; exposures.</p>

<p style="text-align: center;"><a href="http://www.flickr.com/photos/lethalpossum/5826750788/lightbox/" title="Pont des Arts 360 - Paris, France"><img src="http://farm3.static.flickr.com/2591/5826750788_5bde5fe1c3.jpg" width="500" height="103" alt="Pont des Arts 360 - Paris, France"></a></p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;The only drawbacks are the costs. First there is the cost of the camera, about 125&nbsp;&euro;. The camera seems solid but it is mostly plastic and there is not much to it. So you are definitely paying for the trendiness of the Lomography brand. Then there is the cost of film and development. That actually is cheaper than I expected. However most photo labs will not be able to properly scan the developed film due to it's odd format. It means you will need your own flatbed scanner with a backlight unit. I bought the Epson Perfection V600 and I am very happy with it but it is another 240&nbsp;&euro;.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;In conclusion I recommend the Spinner 360&deg; because I am really having fun with it. Maybe the novelty will pass but I feel like I have already got my money's worth with this camera. If you've always wanted to experiment with film photography without taking it seriously, you will love it.</p>

<p>Short URL for this post: <a href="http://lepl.us/5hq">http://lepl.us/5hq</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-11997291.xml</wfw:commentRss></item><item><title>I want a GPS in my laptop!</title><category>GPS</category><category>Hardware</category><category>Software</category><category>geolocation</category><category>laptop</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Mon, 20 Jun 2011 18:38:57 +0000</pubDate><link>http://blog.leplus.org/blog/2011/6/20/i-want-a-gps-in-my-laptop.html</link><guid isPermaLink="false">744299:8731028:11853595</guid><description><![CDATA[<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;In my opinion one of the coolest feature of smartphones is geolocation. But why is it not yet available in every laptops? It's amazing when you think about all the ways developers could take advantage of it. Here are just a few examples of the top of my head:</p>

<ul style="text-align: justify;">
<li>Select automatically the current date, time, time zone.</li>
<li>Choose your default printer (e.g. home or office).</li>
<li>Mitigate WiFi network spoofing (instead of remembering SSIDs, your computer should really remember SSIDs at a given location).</li>
<li>Find your lost/stolen laptop.</li>
<li>Switch to local news, weather, sport, search etc. in one click.</li>
</ul>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Some of these features are already available using certain operating systems or software utilities but they usually rely on some guesswork based on your network address etc. Why not use a real GPS, or even better, both! We still have a long way to go. Your ideas are welcome in the comments (but then don't sue me if somehow still your idea).</p>

<p>Short URL for this post: <a href="http://lepl.us/5hl">http://lepl.us/5hl</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-11853595.xml</wfw:commentRss></item><item><title>KAYAK Explore: find your next destination for the holidays</title><category>KAYAK</category><category>Travel</category><category>airfare</category><category>data visualization</category><category>map</category><category>shopping</category><category>travel</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Sun, 19 Jun 2011 21:55:30 +0000</pubDate><link>http://blog.leplus.org/blog/2011/6/19/kayak-explore-find-your-next-destination-for-the-holidays.html</link><guid isPermaLink="false">744299:8731028:11845986</guid><description><![CDATA[<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Us geeks, we love data visualization. Just search for <a class="offsite-link-inline" href="http://www.google.com/search?q=infographics">infographics</a> on the web and you'll see what I mean. But data visualization is not just for fun or education. It can also help you save money. A good example is <a class="offsite-link-inline" href="http://www.kayak.com/explore/">KAYAK Explore</a>. The idea is quite simple: choose your location and KAYAK will show you a map of the most popular destinations in the world with the best airfare from where you are.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;The tool has all the features you want. You can choose the period when you want to travel (by month or season). You can set a maximum ticket price or flight time. You can choose direct flights only. You can zoom in on the map to get more destinations in a particular region. And you can even choose the destination by weather condition (from freezing to boiling hot).</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Of course your results may vary and KAYAK Explore cannot take into account all the promotions, discounts and so on. But it will definitely help you if you want to get the best value on the plane ticket for your next holidays.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Just for fun, go to the site, choose your city and slowly reduce the maximum budget for your flight. Most of the long distance destination will progressively disappear but not all of them. Those are the farthest destinations that you can go to for a decent price. You may be surprised! For example you can currently get a plane ticket from Paris to Tokyo for less than $600.</p>

<p style="text-align: center;"><span class="full-image-block ssNonEditable"><img src="http://blog.leplus.org/storage/post-images/Airfare.png?__SQUARESPACE_CACHEVERSION=1308520304669" alt=""></span></p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;As always I hope you will find this tip useful and feel free to share your tips in the comments.</p>

<p>Short URL for this post: <a href="http://lepl.us/5hk">http://lepl.us/5hk</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-11845986.xml</wfw:commentRss></item><item><title>Tips to Prepare for Travel Photography</title><category>Flickr</category><category>GPS</category><category>Google</category><category>Google Earth</category><category>Google Search</category><category>MontionX GPS</category><category>Photography</category><category>Travel</category><category>iPhone</category><category>map</category><category>photography</category><category>travel</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Mon, 16 May 2011 20:28:34 +0000</pubDate><link>http://blog.leplus.org/blog/2011/5/16/tips-to-prepare-for-travel-photography.html</link><guid isPermaLink="false">744299:8731028:11477624</guid><description><![CDATA[<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Next month I am going to Istanbul, Turkey. I have not been taking a lot of pictures this winter so it will be the perfect opportunity to pick up my camera. When I travel somewhere for the first time, I like to plan ahead for both visits and photography. There is a lot of tools available for that on Internet. Let me share a few of my favorites.</p>

<h3>Google Search</h3>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;It's the most obvious. If you google "things to do in Istanbul", "Istanbul sightseeing", "Istanbul must-dos" or "best of Istanbul", you will quickly get a pretty good idea of the most famous tourist attractions in the city and the liveliest neighborhoods. I usually make a list of these results on my iPhone with some kind of star rating.</p>

<h3>GPS</h3>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;I use an iPhone app named <a class="offsite-link-inline" href="http://gps.motionx.com/">MotionX GPS</a>. It is great because it allows me to cache maps so that I can actually use the GPS while I am off-line abroad. I save the location not only of the top attractions but also of my hotel. Think about it, in a country where you do not speak the language, having the ability to check that your cab from the airport is going in the general direction of your hotel is very comforting. Some people find the use of a GPS constraining. I actually think it is liberating. You can improvise your itinerary, going from one sight to the next using the GPS to link the dots. Of course you can miss a lot of the atmosphere of the place if you spend all your time looking at your phone. But if you have some sense of direction, there is a middle ground which will probably get you some memorable, serendipitous sights because you were not worried to get lost. Now I even enjoy getting lost!</p>

<h3>Guide Book</h3>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;I have to admit that I still buy a guide book. Most of the time it is just to get a good paper map as a backup of my phone's GPS (more precisely to my phone's battery when using the GPS). That's why I pay special attention to the level of details in the street names (are most streets named or only the main streets?). Public transportation is also very important (subway stations, bus stops etc.). Finally make sure that the maps have a scale to get an idea of distances.</p>

<h3>Flickr</h3>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Now let's focus more on the photography side. Many photographers tag or even geotag their pictures on the net. <a class="offsite-link-inline" href="http://www.flickr.com/">Flickr</a> is a great resource to find pictures of the places you are going to visit. I often use it as an inspiration. I also use it to get an idea of what the monuments really look like, what are their surroundings and when is the best time of day to photograph it. I also check this <a class="offsite-link-inline" "http://www.timeanddate.com/worldclock/astronomy.html">site</a> for the sunrise, sunset and moon phase.</p>

<h3>Google Earth</h3>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;When I see a really great picture on Flickr, I try to deconstruct it: to find out at what time the photo was taken and where from. That's where Google Earth is particularly useful. Let's take for example this picture of the Blue Mosque by <a class="offsite-link-inline" href="http://www.flickr.com/photos/oberazzi/">Oberazzi</a>.</p>

<p style="text-align: center;"><a href="http://www.flickr.com/photos/oberazzi/430961285/"><span class="full-image-block ssNonEditable"><img src="http://farm1.static.flickr.com/171/430961285_05f58348d6.jpg" alt="Istanbul Birds in Flight" /></span></a></p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;The Mosque is wonderfully framed. I was really curious to know where that picture was taken from. So I fired up Google Earth and after a little bit of virtual flying around, I figured it out: the picture was probably taken from the rooftop of the Seven Hills hotel. Nice tip Google Earth!</p>

<p style="text-align: center;"><span class="full-image-block ssNonEditable"><img src="http://blog.leplus.org/storage/post-images/Google_Earth.png?__SQUARESPACE_CACHEVERSION=1305583648177" alt=""></span></p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;I hope by now I have convinced you that Internet has a wealth of tools to offer to plan your next photography trip. Enjoy your next trip and feel free to leave more tips in the comments.</p>

<p>Short URL for this post: <a href="http://lepl.us/5hf">http://lepl.us/5hf</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-11477624.xml</wfw:commentRss></item><item><title>How to properly fold an iPad 2 Smart Cover</title><category>Apple</category><category>Hack</category><category>Smart Cover</category><category>iPad</category><category>iPad 2</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Sat, 16 Apr 2011 18:57:13 +0000</pubDate><link>http://blog.leplus.org/blog/2011/4/16/how-to-properly-fold-an-ipad-2-smart-cover.html</link><guid isPermaLink="false">744299:8731028:11175328</guid><description><![CDATA[<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Imagine my disappointment, the first time that I tried to make my iPad 2 stand upright, as soon as I touched the screen, the Smart Cover unfolded and my brand new iPad 2 slaped violently on the table. I think that my heart skipped a beat.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;The good news is that my iPad is fine. But a terrible thought crossed my mind: did Apple just scammed me? I remembered clearly having seen the iPad stand up using the Smart Cover during Steve Jobs presentation. I checked Apple's website and it clearly states, "Just lean iPad against the Smart Cover for a sturdy upright stand."</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;So what gives? I was ready to storm the Apple Store when I decided to have another quick look at the Smart Cover <a class="offsite-link-inline" href="http://www.apple.com/ipad/smart-cover/#video-incoming-swap-video">demo video</a>. That is when it hit me: I was folding the Smart Cover the wrong way. <strong>The exterior of the cover (in polyurethane or leather) has to be in the inside once the cover is folded.</strong> This way the cover can't unfold so easily and the interior of the cover also has more grip so the cover will not slide if put on a smooth surface.</p>

<p style="text-align: center;"><span class="full-image-block ssNonEditable"><span><img src="http://blog.leplus.org/storage/post-images/ipad2_facetime.jpg?__SQUARESPACE_CACHEVERSION=1302993841449" alt="" /></span></span></p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;This makes a big difference so I hope this information will help other people not to make the same mistake.</p>

<p>Short URL for this post: <a href="http://lepl.us/5he">http://lepl.us/5he</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-11175328.xml</wfw:commentRss></item><item><title>Mail files to Dropbox</title><category>Apple</category><category>AppleScript</category><category>Dropbox</category><category>Gmail</category><category>Google</category><category>Hack</category><category>Mac OS X</category><category>attachment</category><category>email</category><category>iOS</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Sat, 12 Mar 2011 15:40:42 +0000</pubDate><link>http://blog.leplus.org/blog/2011/3/12/mail-files-to-dropbox.html</link><guid isPermaLink="false">744299:8731028:10762654</guid><description><![CDATA[<p align="justify">&nbsp;&nbsp;&nbsp;I love <a class="offsite-link-inline" href="http://db.tt/GJfbh86">Dropbox</a>. It is a great way to share files with and between iOS devices. Dropbox is also available as a service for other apps so I hope it will become a standard way to share files between devices and even maybe between apps on the same device.</p>

<p align="justify">&nbsp;&nbsp;&nbsp;However one feature that Dropbox is currently missing is a way to send files to Dropbox by email. Most iOS apps allow you to save files and attach them to an email. So if these attachments could end up automatically in Dropbox, wouldn't it be great? So let's do it.</p>

<p align="justify">&nbsp;&nbsp;&nbsp;My first step was to create a dedicated Gmail account. A separate email account is not strictly required but it makes things easier and it's free, so why not do it. In Gmail, you need to enable POP and then configure Mail to fetch the emails in that account. For detailed instructions, go <a class="offsite-link-inline" href="http://mail.google.com/support/bin/answer.py?answer=13275">there</a>. Note that you can choose if you want to delete emails once they are downloaded. I chose to just archive them as a backup. Also I chose a long, random Gmail address to avoid getting spam to soon. I will never use that address for anything else so it will be interesting to see how long it will take spammers to find it.</p>

<p align="justify">&nbsp;&nbsp;&nbsp;I am not a big fan of Mail on the Mac but in that case it's perfect for two reasons. One I have a Mac Mini running 24/7 at home (it's my media center) so it can process the mails immediately. The other nice feature of Mail is that you can create rules in Mail that include AppleScript actions. Apple is kind enough to provide some examples of these rules in the folder /Library/Scripts/Mail&nbsp;Scripts/Rule&nbsp;Actions. You can download my new rule <a href="http://www.leplus.org/code/applescript/scripts/Save_Attachments.applescript">here</a>. Open the script with the AppleScript Editor. It is pretty self explanatory. You can easily customize the location of your Dropbox folder etc. Then click on the 'Compile' button. If everything looks in order, save it in the folder /Library/Scripts/Mail&nbsp;Scripts/Rule&nbsp;Actions as a .scpt file.</p>

<p align="justify">&nbsp;&nbsp;&nbsp;The last step is to create the rule in Mail and voila!</p>

<p><span class="thumbnail-image-block ssNonEditable"><span><a href="javascript:showFullImage('/display/ShowImage?imageUrl=%2Fstorage%2Fpost-images%2Fmail_rule.png%3F__SQUARESPACE_CACHEVERSION%3D1300444509860',390,639);"><img src="http://blog.leplus.org/storage/thumbnails/8730876-11288801-thumbnail.jpg?__SQUARESPACE_CACHEVERSION=1300444509863" alt="" /></a></span></span></p>

<p align="justify">&nbsp;&nbsp;&nbsp;I hope you will find this hack useful. Please share your comments and improvements.</p>

<p>Short URL for this post: <a href="http://lepl.us/5hc">http://lepl.us/5hc</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-10762654.xml</wfw:commentRss></item><item><title>The best connected stations of Paris Métro</title><category>GML</category><category>GraphML</category><category>Hack</category><category>Java</category><category>Métro</category><category>Paris</category><category>algorithmic</category><category>analysis</category><category>centrality</category><category>closeness</category><category>degree</category><category>graph</category><category>network</category><dc:creator>Thomas Leplus</dc:creator><pubDate>Sat, 05 Feb 2011 18:17:12 +0000</pubDate><link>http://blog.leplus.org/blog/2011/2/5/the-best-connected-stations-of-paris-metro.html</link><guid isPermaLink="false">744299:8731028:10369167</guid><description><![CDATA[<p style="text-align: center;"><span class="thumbnail-image-block ssNonEditable"><span><a href="javascript:showFullImage('/display/ShowImage?imageUrl=%2Fstorage%2Fpost-images%2Fmetro.png%3F__SQUARESPACE_CACHEVERSION%3D1297023876919',558,798);"><img src="http://blog.leplus.org/storage/thumbnails/8730876-10600684-thumbnail.jpg?__SQUARESPACE_CACHEVERSION=1297023876920" alt="" /></a></span></span></p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;This Sunday I finally decided to tackle a question that was on my mind for a long time: what are the most central stations of Paris Métro? But to answer that question we first need to define centrality.</p>

<p style="text-align: justify;">In graph theory and network analysis, there are several measures of centrality. The simplest one is called degree centrality. In the case of the Métro, the degree centrality of a station would be the number of lines coming in and out of the station. It is easy to look at a Métro map and figure out where many lines intersect.</p>

<p style="text-align: center;">
<table style="border-collapse: collapse; border: 1px solid black; padding: 5px;">
<tbody><tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Station</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Lines</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Châtelet</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">5</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">République</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">5</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Montparnasse - Bienvenüe</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">4</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Nation</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">4</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Saint-Lazare</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">4</td></tr>
</tbody></table>
</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;This is a good start but the degree only tells us if a station gives access to many lines. A station could be on the outskirts of the city and still have many lines running through it. So we need a better measure of centrality. Ideally the best measure would indicate how close a station is from all the others. In network theory, a popular metric is called closeness. It takes into account not only the average distance between a node and all the others but also the degree centrality of the station. So we know what we want to compute. Now all we need is some input data (a graph of the Métro) and a piece of software that can compute closeness.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;After some googling, I found just what I needed on Wikipedia: <a class="offsite-link-inline" href="http://en.wikipedia.org/wiki/Social_network_analysis_software">http://en.wikipedia.org/wiki/Social_network_analysis_software</a>. The article lists a bunch of network analysis software. I tried a few of them before I found Financial Network Analyzer (<a class="offsite-link-inline" href="http://www.financialnetworkanalyzer.com/">FNA</a>). It is a new project so it still lacks a nice GUI but hey, who needs GUI anyway? Also it is written in Java and open source which means I can run it on my Mac and I can tweak the code if needed.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;Now we need some data to put into FNA. So I wrote some Perl to scrap the RATP web site and create a graph file of the Métro netwrok. The file is available to download in <a href="http://www.leplus.org/fun/files/metro.gml">GML</a>, <a href="http://www.leplus.org/fun/files/metro.graphml">GraphML</a> and <a href="http://www.leplus.org/fun/files/metro.cmd">FNA commands</a> formats. I did a few sanity checks and the files look correct. Feel free to download them and reuse them in any way. If you do anything cool with them or if you find any mistake, please let me know.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;So now that we have everything we need, let's jump to the results. The result file is available in <a href="http://www.leplus.org/fun/files/metro.csv">CSV</a> format. But here are the top stations:</p>

<p style="text-align: center;">
<table style="border-collapse: collapse; border: 1px solid black; padding: 5px;">
<tbody><tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Station</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Closeness</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Châtelet</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">7.52</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Madelaine</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">7.53</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Pyramides</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">7.58</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Opéra</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">7.74</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Concorde</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">7.89</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Gare de Lyon</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">7.95</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Saint-Lazare</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">8.01</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Hôtel de Ville</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">8.04</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Les Halles</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">8.19</td></tr>
<tr style="border-collapse: collapse; border: 1px solid black; padding: 5px;"><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">Chaussée d'Antin - Lafayette</td><td style="border-collapse: collapse; border: 1px solid black; padding: 5px;">8.24</td></tr>
</tbody></table>
</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;A few remarks. First of all, good news: the results seem logical. Châtelet is clearly the biggest, best connected and most central station of Paris. But Les Halles, which is very close to Châtelet, has less lines running through (i.e. a lesser degree centrality) so it has a lower closeness score. The fact that Madeleine and Pyramides are in second and third position is more of a surprise. They are not really big stations but they are very centrally located and well connected. So it makes sens. Another interesting fact is that all the top stations are on the Right Bank.</p>

<p style="text-align: justify;">&nbsp;&nbsp;&nbsp;This was an interesting exercise and I got the answer I was looking for. However this is not exactly a scientific study and there is a lot of room for improvement. For example I did not take into account the actual distance between the stations (for that we would need a weighted graph). Also I did not take into account the time required for connections. Connections should have a weight too. I will leave that as an exercise for the reader.</p>

<p>Short URL for this post: <a href="http://lepl.us/5h2">http://lepl.us/5h2</a></p>]]></description><wfw:commentRss>http://blog.leplus.org/blog/rss-comments-entry-10369167.xml</wfw:commentRss></item></channel></rss>
