<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://blog.desgrange.net/</id>
  <title>desgrange.net</title>
  <link href="http://blog.desgrange.net/atom.xml" rel="self"/>
  <link href="http://blog.desgrange.net/"/>
  <updated>2012-05-19T08:13:07+02:00</updated>
  
    <entry>
      <id>http://blog.desgrange.net/2012/05/21/erlang-on-mac-os-x</id>
      <title type="html">Erlang on Mac OS X</title>
      <link href="http://blog.desgrange.net/2012/05/21/erlang-on-mac-os-x.html"/>
      <updated>2012-05-21T22:00:00+02:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;p&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Erlang_(programming_language)&quot;&gt;Erlang&lt;/a&gt; is a very nice &lt;a href=&quot;http://en.wikipedia.org/wiki/Programming_language&quot;&gt;programming language&lt;/a&gt; that you can &lt;a href=&quot;http://www.erlang.org/download.html&quot;&gt;download on erlang.org&lt;/a&gt;. Binary packages exists for &lt;a href=&quot;http://en.wikipedia.org/wiki/Microsoft_Windows&quot;&gt;Windows&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Linux_distribution&quot;&gt;Linux distributions&lt;/a&gt; usually provide packages to install erlang, but on &lt;a href=&quot;http://en.wikipedia.org/wiki/Mac_OS_X&quot;&gt;Mac OS&lt;/a&gt;, there is nothing.&lt;/p&gt;

&lt;p&gt;But erlang works nicely on &lt;a href=&quot;http://www.apple.com/macosx/&quot;&gt;Mac OS&lt;/a&gt;, you just have to install it from sources and it's pretty straightforward.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install &lt;a href=&quot;http://en.wikipedia.org/wiki/Xcode&quot;&gt;XCode&lt;/a&gt; (from &lt;a href=&quot;http://en.wikipedia.org/wiki/Mac_App_Store&quot;&gt;App Store&lt;/a&gt;), it contains all rquired tools to build erlang.&lt;/li&gt;
&lt;li&gt;Download erlang source code (currently otp_src_R15B01.tar.zip) from &lt;a href=&quot;http://www.erlang.org&quot;&gt;erlang.org&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Open a &lt;a href=&quot;http://en.wikipedia.org/wiki/Terminal.app&quot;&gt;terminal&lt;/a&gt; and go in the directory where you downloaded the file.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;console&quot;&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; unzip otp_src_R15B01.tar.zip
&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; tar -xvf otp_src_R15B01.tar
&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;otp_src_R15B01
&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; ./configure
&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; make
&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; sudo make install
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;


&lt;p&gt;That's all. You can check that erlang is working on your computer by launching an erlang console:&lt;/p&gt;

&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;console&quot;&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; erl
&lt;span class=&quot;go&quot;&gt;Erlang R15B01 (erts-5.9.1) [source] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]&lt;/span&gt;

&lt;span class=&quot;go&quot;&gt;Eshell V5.9.1  (abort with ^G)&lt;/span&gt;
&lt;span class=&quot;go&quot;&gt;1&amp;gt; &lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;



</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2012/05/14/mac-os-time-machine-local-backups</id>
      <title type="html">Mac OS Time Machine Local Backups</title>
      <link href="http://blog.desgrange.net/2012/05/14/mac-os-time-machine-local-backups.html"/>
      <updated>2012-05-14T22:00:00+02:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;p&gt;In &lt;a href=&quot;http://en.wikipedia.org/wiki/Mac_OS&quot;&gt;Mac OS&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Mac_OS_X_Lion&quot;&gt;Lion&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Time_Machine_(Mac_OS)&quot;&gt;Time Machine&lt;/a&gt; brought a new feature: local backups. If you are using Lion on a laptop and your &lt;a href=&quot;http://www.apple.com/macosx/apps/#timemachine&quot;&gt;Time Machine&lt;/a&gt; is on an external drive, this feature is enabled.&lt;/p&gt;

&lt;p&gt;What this feature does is to do backups even when not connected to the backup volume. All backups are written inside &lt;code&gt;/.MobileBackups&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When you start Time Machine client, on the time scale on the right, the white backups are local backups while the pink ones are your regular external backups.&lt;/p&gt;

&lt;p&gt;This feature is quite cool but a bit annoying when your drive is full. To disable it, run the following command in a &lt;a href=&quot;http://en.wikipedia.org/wiki/Terminal_(OS_X)&quot;&gt;terminal&lt;/a&gt;:&lt;/p&gt;

&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;console&quot;&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; sudo tmutil disablelocal
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;


&lt;p&gt;This will stop Time Machine local backups feature and remove all local backups.&lt;/p&gt;

&lt;p&gt;If you want to enable it back:&lt;/p&gt;

&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;console&quot;&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; sudo tmutil enablelocal
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;



</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2012/05/04/sncf-oui-oui-c-est-possible</id>
      <title type="html">SNCF oui oui, c'est possible</title>
      <link href="http://blog.desgrange.net/2012/05/04/sncf-oui-oui-c-est-possible.html"/>
      <updated>2012-05-04T13:00:00+02:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;p&gt;…d'être aussi con.&lt;/p&gt;

&lt;p&gt;Aujourd'hui je reçois une newsletter de la part de la SNCF, bizarrement je ne me souviens pas m'être inscrit à une quelconque newsletter. Donc premier point :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;L'&lt;a href=&quot;http://fr.wikipedia.org/wiki/Opt-out&quot;&gt;opt-out&lt;/a&gt; est interdit en France.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Quoi qu'il en soit, je clique sur le lien pour me désinscrire (situé tout en bas du mail et écrit en tout petit en gris clair sur gris un peu plus clair (mais ça on a l'habitude)).&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;small-picture&quot;&gt;
&lt;img src=&quot;http://blog.desgrange.net/static/media/2012/05/04/sncf-newsletter.png&quot; alt=&quot;SNCF newsletter&quot; /&gt;
&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Et là j'arrive sur une page de désinscription qui me demande mon adresse email (pré-remplie), mon numéro de carte de fidélité S'Miles (ha bon, j'ai ça moi ? je suis pas au courant, heureusement c'est pré-rempli) et ma date de naissance… Pourquoi pas ma couleur de cheveux aussi et mon choix de vote pour dimanche ?&lt;/p&gt;

&lt;p&gt;Je rempli donc ce dernier champ et valide.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;small-picture&quot;&gt;
&lt;a href=&quot;http://blog.desgrange.net/static/media/2012/05/04/sncf-unsubscribe.png&quot;&gt;&lt;img src=&quot;http://blog.desgrange.net/static/media/2012/05/04/sncf-unsubscribe-640.png&quot; alt=&quot;SNCF désinscription&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Et oui, le numéro de carte S'Miles n'est pas bon (il me semblait bien que je n'en avais pas).&lt;/p&gt;

&lt;p&gt;Bref, la SNCF égale à elle même… EPIC FAIL.&lt;/p&gt;
</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2012/03/15/jekyll</id>
      <title type="html">Jekyll</title>
      <link href="http://blog.desgrange.net/2012/03/15/jekyll.html"/>
      <updated>2012-03-15T22:00:00+01:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;p&gt;I'm in the process of moving my blog from &lt;a href=&quot;http://wordpress.org/&quot; title=&quot;WordPress&quot;&gt;WordPress&lt;/a&gt; to &lt;a href=&quot;https://github.com/mojombo/jekyll&quot; title=&quot;Jekyll&quot;&gt;Jekyll&lt;/a&gt; (everything still hosted on my server).&lt;/p&gt;

&lt;p&gt;It's far for being finished yet but I already moved some posts. Given the nature of Jekyll there are no comments for the moment, I will think how I could add that later.&lt;/p&gt;

&lt;p&gt;Please update your &lt;a href=&quot;http://en.wikipedia.org/wiki/RSS&quot; title=&quot;RSS&quot;&gt;RSS&lt;/a&gt;/&lt;a href=&quot;http://en.wikipedia.org/wiki/Atom_feed&quot; title=&quot;Atom&quot;&gt;Atom&lt;/a&gt; feeds :-).&lt;/p&gt;
</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2012/01/30/fosdem-2012</id>
      <title type="html">FOSDEM 2012</title>
      <link href="http://blog.desgrange.net/2012/01/30/fosdem-2012.html"/>
      <updated>2012-01-30T22:00:00+01:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;p&gt;For the 3rd year in a row:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;small-picture&quot;&gt;
&lt;a href=&quot;http://www.fosdem.org&quot; title=&quot;FOSDEM&quot;&gt;&lt;img src=&quot;http://blog.desgrange.net/static/media/2012/01/30/going-to-fosdem.png&quot; alt=&quot;FOSDEM&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;&lt;/p&gt;
</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2012/01/16/lost-in-tokyo</id>
      <title type="html">Lost in Tōkyō</title>
      <link href="http://blog.desgrange.net/2012/01/16/lost-in-tokyo.html"/>
      <updated>2012-01-16T22:00:00+01:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;iframe src=&quot;http://player.vimeo.com/video/34447797?title=0&amp;amp;byline=0&amp;amp;portrait=0&amp;amp;color=ffffff&quot; width=&quot;640&quot; height=&quot;360&quot; frameborder=&quot;0&quot; webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;


&lt;p&gt;&lt;a href=&quot;http://vimeo.com/34447797&quot;&gt;Lost in Tokyo&lt;/a&gt; from &lt;a href=&quot;http://vimeo.com/user2062525&quot;&gt;Mark Bramley&lt;/a&gt; on &lt;a href=&quot;http://vimeo.com&quot;&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;

</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2012/01/09/dont-upgrade-specific-packages</id>
      <title type="html">Don't upgrade specific packages</title>
      <link href="http://blog.desgrange.net/2012/01/09/dont-upgrade-specific-packages.html"/>
      <updated>2012-01-09T22:00:00+01:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;p&gt;From time to time I don't want to upgrade some packages on my &lt;a href=&quot;http://www.debian.org&quot; title=&quot;Debian&quot;&gt;debian&lt;/a&gt; server (because there is a bug with the new version or some other reasons) but I still want to do the other updates.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/Advanced_Packaging_Tool&quot; title=&quot;APT&quot;&gt;APT&lt;/a&gt; is able to handle that but it's not really easy to do (and to remember). There is a utility called &lt;a href=&quot;http://www.togaware.com/wajig/&quot; title=&quot;Wajig&quot;&gt;wajig&lt;/a&gt; that simplify that a lot (wajig aim is to do all the package handling stuff simpler than apt and dpkg).&lt;/p&gt;

&lt;p&gt;Install wajig as usual:&lt;/p&gt;

&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;console&quot;&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; sudo apt-get install wajig
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;


&lt;p&gt;And here is how to use it for holding a package, unholding it or list all packages that are on hold:&lt;/p&gt;

&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;console&quot;&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; sudo wajig hold
&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; sudo wajig unhold
&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt; sudo wajig list-hold
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;



</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2012/01/02/obsolescence-programmee</id>
      <title type="html">Obsolescence programmée</title>
      <link href="http://blog.desgrange.net/2012/01/02/obsolescence-programmee.html"/>
      <updated>2012-01-02T22:00:00+01:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube-nocookie.com/embed/2PdX-2rGBSc?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;

</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2011/12/26/ubuntu-cola</id>
      <title type="html">Ubuntu Cola</title>
      <link href="http://blog.desgrange.net/2011/12/26/ubuntu-cola.html"/>
      <updated>2011-12-26T22:00:00+01:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;p&gt;I ate in a place where they sell &lt;a href=&quot;http://www.ubuntu-trading.com/&quot; title=&quot;Ubuntu Cola&quot;&gt;Ubuntu Cola&lt;/a&gt;! Not related at all with &lt;a href=&quot;http://www.ubuntu.com/&quot; title=&quot;Ubuntu&quot;&gt;Ubuntu&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Operating_system&quot; title=&quot;OS&quot;&gt;OS&lt;/a&gt;, except for the name (and &lt;a href=&quot;http://en.wikipedia.org/wiki/Ubuntu_%28philosophy%29&quot; title=&quot;Ubuntu philosophy&quot;&gt;its meaning&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;small-picture&quot;&gt;
&lt;a href=&quot;http://blog.desgrange.net/static/media/2011/12/26/ubuntu-cola.jpg&quot;&gt;&lt;img src=&quot;http://blog.desgrange.net/static/media/2011/12/26/ubuntu-cola-640.jpg&quot; alt=&quot;Ubuntu Cola&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;I usually don't drink cola drinks, so to me it tastes like any other cola. But it's a &lt;a href=&quot;http://www.fairtrade.net/&quot; title=&quot;Fair Trade&quot;&gt;fair trade&lt;/a&gt; product, so why not drinking &lt;a href=&quot;http://en.wikipedia.org/wiki/Ubuntu_Cola&quot; title=&quot;Ubuntu Cola&quot;&gt;Ubuntu Cola&lt;/a&gt; instead of big corporations ones?&lt;/p&gt;
</content>
    </entry>
  
    <entry>
      <id>http://blog.desgrange.net/2011/12/19/multiple-identities-in-apple-mail-5</id>
      <title type="html">Multiple identities in Apple Mail 5</title>
      <link href="http://blog.desgrange.net/2011/12/19/multiple-identities-in-apple-mail-5.html"/>
      <updated>2011-12-19T22:00:00+01:00</updated>
      <author>
        <!--  -->
        <name>Laurent Desgrange</name>
        <email>laurent+blog@desgrange.net</email>
      </author>
      <content type="html">&lt;p&gt;&lt;em&gt;N.B.:&lt;/em&gt; This is a &quot;reminder post&quot; to remind myself how to do that in the future, see links at the bottom for sources.&lt;/p&gt;

&lt;p&gt;If you have email address aliases you might want to configure them in &lt;a href=&quot;http://en.wikipedia.org/wiki/Apple_Inc.&quot; title=&quot;Apple&quot;&gt;Apple&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Mail_(application)&quot; title=&quot;Mail&quot;&gt;Mail&lt;/a&gt; so you can also use the aliases to send emails. There are two ways of doing so.&lt;/p&gt;

&lt;h2&gt;Simple and easy but incomplete solution&lt;/h2&gt;

&lt;p&gt;It's not intuitive since it's not explained in Mail interface, but you can simply do that by writting several email addresses in the &quot;Email Address&quot; field of your account information. You just need to separate them with comma:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;small-picture&quot;&gt;
&lt;img src=&quot;http://blog.desgrange.net/static/media/2011/12/19/mail-config.png&quot; alt=&quot;Mail config&quot; /&gt;
&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Then when you write an email, you can select your new identity:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;small-picture&quot;&gt;
&lt;a href=&quot;http://blog.desgrange.net/static/media/2011/12/19/mail-write-1.png&quot;&gt;&lt;img src=&quot;http://blog.desgrange.net/static/media/2011/12/19/mail-write-1-640.png&quot; alt=&quot;Mail write&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;&lt;/p&gt;

&lt;h2&gt;A bit more complicated but complete solution&lt;/h2&gt;

&lt;p&gt;But as you can see in the previous method, what you entered in &quot;Full Name&quot; field is used for all identities and the purpose of having several identities may be to have also different full names.&lt;/p&gt;

&lt;p&gt;In the folder &lt;code&gt;~/Library/Mail/V2/MailData&lt;/code&gt;, there is a file named &lt;code&gt;Accounts.plist&lt;/code&gt;. Close Mail, open the file (with &lt;a href=&quot;http://en.wikipedia.org/wiki/Xcode&quot; title=&quot;Xcode&quot;&gt;Xcode&lt;/a&gt; for instance) and in the element &lt;code&gt;MailAccounts/Item X&lt;/code&gt; (replace &lt;code&gt;X&lt;/code&gt; with the number corresponding to the email account you want to add an alias to) add &quot;EmailAliases&quot; array with dictionaries containing your new aliases :&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;small-picture&quot;&gt;
&lt;img src=&quot;http://blog.desgrange.net/static/media/2011/12/19/mail-accounts.png&quot; alt=&quot;Mail accounts&quot; /&gt;
&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Now when you write an email, the name you put is used:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;small-picture&quot;&gt;
&lt;a href=&quot;http://blog.desgrange.net/static/media/2011/12/19/mail-write-2.png&quot;&gt;&lt;img src=&quot;http://blog.desgrange.net/static/media/2011/12/19/mail-write-2-640.png&quot; alt=&quot;Mail write&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;&lt;/p&gt;

&lt;h2&gt;Sources&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://simon.heimlicher.com/hints/macosx/multiple_identities_mail&quot;&gt;http://simon.heimlicher.com/hints/macosx/multiple_identities_mail&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://blog.charismaticdog.com/2008/12/10/super-handy-solution-to-mailapp-conundrum&quot;&gt;http://blog.charismaticdog.com/2008/12/10/super-handy-solution-to-mailapp-conundrum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://jonathan.tron.name/2006/11/05/multiple-identities-in-one-account-with-apple-mail-app&quot;&gt;http://jonathan.tron.name/2006/11/05/multiple-identities-in-one-account-with-apple-mail-app&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.creativetechs.com/iq/use_multiple_email_aliases_in_apple_mail.html&quot;&gt;http://www.creativetechs.com/iq/use_multiple_email_aliases_in_apple_mail.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</content>
    </entry>
  
</feed>

