<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>Philippe Gauthier</title>
        <link>http://www.deuxpi.ca/</link>
        <description>Personal weblog about open-source software, electronics, science and general geekness.</description>
        <language>en</language>
        <copyright>Copyright 2012</copyright>
        <lastBuildDate>Sun, 06 Mar 2011 19:26:10 -0500</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>Ubuntu Québec était au GeekFest</title>
            <description><![CDATA[L'équipe d'Ubuntu Québec était présente au festival montréalais célébrant les divers aspects de la culture geek toute la fin de semaine du 5 et 6 mars. Nous avons été surpris par la très importante proportion des visiteurs qui utilisent déjà Ubuntu, ce qui nous a tout de même permis de faire connaître notre communauté Ubuntu locale. Surnommées les <i>LoCo Teams</i> (de l'anglais <i>Local Cummunity</i>) les groupes d'utilisateurs tels que le nôtre font partie d'un large réseau de soutien. Cette structure communautaire différencie les systèmes d'exploitations tels qu'Ubuntu des systèmes d'exploitation propriétaires et même des distributions qui ont un caractère plus commercial.<br /><br /><img src="//www.deuxpi.ca/DSC_1669.JPG" height="332" width="500" /><br /><br />Le groupe Ubuntu Québec est représenté par son site web <a href="http://www.ubuntu-qc.org/">http://www.ubuntu-qc.org/</a> et fournit une liste de discussion (par courriel, mais aussi accessible sous forme de forum) et une interface de clavardage pour du support en ligne interactif.<br /><br />Parmi les activités sociales d'Ubuntu Québec, deux événements nous attendent dans les prochains mois. Le premier est une rencontre à caractère plutôt technique qu'on nomme Global Jam. La seconde est la soirée de lancement de la prochaine version d'Ubuntu. Le GeekFest nous a peut-être permis de trouver des hôtes pour tenir ces activités. Pour se tenir au courant du lieu et de la date des événements, il suffit de s'abonner à la liste de discussion.<br /><br />]]></description>
            <link>http://www.deuxpi.ca/2011/03/ubuntu-quebec-etait-au-geekfes.html</link>
            <guid>http://www.deuxpi.ca/2011/03/ubuntu-quebec-etait-au-geekfes.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">geekfestmtl</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">ubuntu</category>
            
            <pubDate>Sun, 06 Mar 2011 19:26:10 -0500</pubDate>
        </item>
        
        <item>
            <title>« Be careful what you wish for »</title>
            <description><![CDATA[Lors du dernier Ubuntu Hour à Outremont, Christian « Mobidoy » a apporté des auto-collants qu'il a préparé à partir de l'image du billet précédent. Un pas de plus vers la domination du monde ! Photo par Fabian Rodriguez :<br /><br />
<a href="https://secure.flickr.com/photos/magicfab/5383993825/" title="Stickers, stickers, stickers by magicfab, on Flickr"><img src="https://farm6.static.flickr.com/5215/5383993825_0576ac89e2.jpg" alt="Stickers, stickers, stickers" height="376" width="500" /></a>]]></description>
            <link>http://www.deuxpi.ca/2011/01/-be-careful-what-you-wish-for.html</link>
            <guid>http://www.deuxpi.ca/2011/01/-be-careful-what-you-wish-for.html</guid>
            
            
            <pubDate>Mon, 24 Jan 2011 12:13:53 -0500</pubDate>
        </item>
        
        <item>
            <title>Est-ce que je peux avoir un pony ?</title>
            <description><![CDATA[<img alt="ponies.png" src="//www.deuxpi.ca/ponies.png" class="mt-image-right" style="float: right; margin: 0pt 0pt 20px 20px;" width="135" height="204" /><br />Tout a commencé sur #ubuntu-qc lorsque le groupe cherchait où se procurer des autocollants pour boîtier d'ordinateur qui affichent le logo Ubuntu. Éventuellement, la discussion en arrive à une requête très particulière :<br /><br /><pre>&lt;IdleOne&gt; I want a sticker that says "Powered by Ubuntu, Coffee and Ponies"
&lt;cyphermox&gt; +1 from me for coffee and ponies!
&lt;qwebirc32428&gt; ponies?
&lt;qwebirc32428&gt; haha
&lt;IdleOne&gt; yup ponies
&lt;qwebirc32428&gt; omg
&lt;IdleOne&gt; Coffee is what keeps Ubuntu going and the Ponies make all the automagical stuff work :)
</pre><br />Allez hop ! La magie du pony s'est mise en œuvre et quinze minutes plus tard voici le résultat. Le fichier SVG peut être <a href="//www.deuxpi.ca/ubuntu-ponies.svg">téléchargé directement ici-même</a> sous la license CC du blogue.<br />]]></description>
            <link>http://www.deuxpi.ca/2010/07/est-ce-que-je-peux-avoir-un-po.html</link>
            <guid>http://www.deuxpi.ca/2010/07/est-ce-que-je-peux-avoir-un-po.html</guid>
            
            
            <pubDate>Wed, 14 Jul 2010 10:04:22 -0500</pubDate>
        </item>
        
        <item>
            <title>Getting started with free and open source software</title>
            <description><![CDATA[<p>The magic behind free and open source software (or FOSS) comes from a few people who are freely giving to society part of their work. Free software often start as projects fulfilling a personal need, then a community may grow around the project because it seems useful to them. Some of these people may eventually contribute to the project. After the working product is released freely to everyone, it becomes difficult to define the bounds of the community gathered around the software because anyone can be part of it. There is an amplification effect caused by the very low barriers to the distribution of the software to whoever needs it. This amplification is what enables you to get and use this software free of change, and better yet, with almost no restrictions. You can read about the <a href="http://www.gnu.org/copyleft/gpl.html">GNU General Public License</a> to get a feel of the idea behind free software.</p>

<h3>Find a partner or mentor</h3>
<p>You can find by yourself a lot of valuable information from the Web or from books. Still, most people don't want to spend most of their free time on just making the system work, and you may also prefer to make fun and useful things with your computer. Like just said before, the concept of community is crucial to the existence of free software. If you start using free software with some friends or family, you are building a small community that can share ideas, solutions, and useful projects. For example, you could try to set up a remote backup solution for a few people you know, or edit a private web site for the family.</p>

<h3>Get a GNU/Linux distribution</h3>
<p>You can find an increasing number of free software that can run on non-free operating systems, but if you have the choice I would recommend starting with a complete GNU/Linux distribution. Distributions are large collections of software and the management tools that are necessary to configure a complete system. Every distribution includes the Linux kernel (the core software between the application software and the computer hardware), and the GNU subsystem (a collection of common tools to manage files, programs and data), hence the name GNU/Linux. Distributions come with a default setup (or a choice from a few options) that you can adapt to your needs by using the management tools. A very popular distribution is <a href="http://www.ubuntu.com/">Ubuntu</a>. You can even try the distribution by starting the computer with an Ubuntu CD-ROM before installing it to your computer. </p>

<h3>Real world example</h3>
<p>The free software universe is not very different from the academic and scientific communities. There is of course a very broad yet common goal of making the world a better place by understanding it and making small but essential contributions. No scientist is really working alone, and the collaboration with other people and groups is necessary to succeed. The seeming compatibility between the free software and the scientific philosophies results in a large number of important scientific software projects being free. Here is a list of links and example free software projects:</p>
<ul>
<li>A <a href="http://www.theknittingphysicist.com/2009/07/best-free-softwares-for-your-m.html">list of free software</a> for the Mac (non-free, of course!) with a scientific bias.</li>
<li>The <a href="http://www.python.org/">Python</a> programming language, which is increasingly used for scientific work along with the <a href="http://www.scipy.org/">SciPy</a> software.</li>
<li>The <a href="http://www.latex-project.org/">LaTeX</a> project, ubiquitous in scientific publishing.</li>
<li>The <a href="http://wwwasd.web.cern.ch/wwwasd/">CERN software libraries</a>.</li>
</ul>

<hr/>
<h3>More about free software</h3>
<ul>
<li><a href="http://www.fsf.org/">Free Software Foundation</a></li>
<li><a href="http://www.ubuntu.com/">Ubuntu</a></li>
<li><a href="http://blog.ianbicking.org/2009/09/10/a-new-self-definition-for-foss/">Ian Bicking: Toward a new self-definition for open source</a></li>
</ul>
]]></description>
            <link>http://www.deuxpi.ca/2009/08/getting-started-with-free-and.html</link>
            <guid>http://www.deuxpi.ca/2009/08/getting-started-with-free-and.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">foss</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">linux</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">ubuntu</category>
            
            <pubDate>Tue, 04 Aug 2009 10:40:38 -0500</pubDate>
        </item>
        
        <item>
            <title>Enabling the Marvell SATA controller on an ASUS M2V motherboard</title>
            <description><![CDATA[The computer running the deuxpi.ca domain had an extra hard disk installed since last November but I did not have a chance to use it because I didn't have a SATA cable for it. The disk was finally connected yesterday. However, the system did not recognize the disk. Also, the kernel was using a driver named "pata_marvell" (thus not, for example, "sata_marvell") for the controller.<br /><br />After some research on the Internet, I found that the kernel loads the ahci driver which then delegates to the sata_marvell driver in order to support legacy PATA drives on this controller. Alan Cox introducted a kernel option to prevent this default behavior so the ahci driver would be used to drive the SATA ports. In my case, the Marvell controller is used only for SATA. See the <a href="http://lkml.org/lkml/2008/9/3/142">thread</a> for some history about SATA support for the Marvell 88SE6121.<br /><br />To use this kernel option on a Ubuntu system, edit the grub configuration:<br /><br /><pre>sudo gedit /boot/grub/menu.lst</pre><br />Add <code>ahci.marvell_enable=1</code> to the line of standard kernel options. For example:<br /><br /><pre># kopt=root=/dev/mapper/vg0-root ro ahci.marvell_enable=1</pre><br />This line may be slightly different on another system depending on the partitioning scheme. Save the file, run <code>sudo update-grub</code>, and reboot the computer for this option to have effect.<br /><br /><b>Edit:</b> See the <a href="http://wiki.debian.org/pata_marvell">Debian wiki page</a> about enabling support for the Marvell SATA controller using possibly a better method.<br /><br />]]></description>
            <link>http://www.deuxpi.ca/2009/01/enabling-the-marvell-sata-cont.html</link>
            <guid>http://www.deuxpi.ca/2009/01/enabling-the-marvell-sata-cont.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">ubuntu</category>
            
            <pubDate>Thu, 29 Jan 2009 12:45:10 -0500</pubDate>
        </item>
        
        <item>
            <title>« Chilling effects »</title>
            <description><![CDATA[L'accusation de diffamation implique certainement un équilibre entre la liberté d'expression et la droit à sa réputation. En général, on s'attend à ce qu'il y ait injustice lorsqu'il y a une volonté de créer du tort.<br /><br />Dans le cas des Éditions Écosociété, il est très difficile de justifier le bâillon (voilà je l'ai dit) que veut lui imposer Barrick Gold. La volonté de cette dernière est probablement discréditer les auteurs de Noir Canada, puisqu'il lui semble beaucoup plus facile d'écrire une mise en demeure qu'une réponse critique valide. Toute cette mauvaise publicité à été générée par les attaques légales de BG elle-même bien plus que par la publication du livre. Bref, il ne faudrait jamais se gêner de dénoncer ceux qui exploitent les faiblesses des systèmes juridique et économique; je me permets ici de reproduire le plus récent communiqué d'Écosociété :<br /><br />]]></description>
            <link>http://www.deuxpi.ca/2008/10/-chilling-effects.html</link>
            <guid>http://www.deuxpi.ca/2008/10/-chilling-effects.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">chilling effects</category>
            
            <pubDate>Mon, 27 Oct 2008 19:19:57 -0500</pubDate>
        </item>
        
        <item>
            <title>Playing Loki&apos;s SMAC safely on recent systems</title>
            <description><![CDATA[The computer strategy game Alpha Centauri (SMAC) keeps getting older and is not maintained since the company having the rights -- Loki software -- closed its doors, and the source code to the program is not by any means available to the public. It crashes easily for many reasons, but mostly for incompatibilities with the recent sound and graphic architectures. This is a game that I still enjoy from time to time when I feel very lazy. I get discouraged easily when the program crashes, leaving the screen resolution in a different setting, a few times in a row.<br /><br />A large number of recent Linux installations have graphic features activated from an extension called Composite. This extension allows to create visual effects that are used in software such as Compiz and Beryl. However, SMAC is completely incompatible with the Composite extension, resulting in a crash shortly after the game starts (when the capsule lands, and the first base is founded). The usual workaround is to disable the Composite extension by adding a configuration option for the Xorg server, but doing this will prevent visual effects to work.<br /><br />A different option is to use an embedded X server that will be only used for displaying the game. I use Xephyr, which can be launched by using the command<br /><br /><code>Xephyr :1 -screen 800x600 -extension Composite</code><br /><br />Note that we can disable the Composite extension for this X server only. To launch SMAC, I have to specify the display to use. In the current example, Xephyr will create an X server as display :1.<br /><br /><code>DISPLAY=:1 smacpack</code><br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="smac.png" src="//www.deuxpi.ca/smac.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="328" width="417" /></span><br /><br />You should now see SMAC running in the Xephyr window.<br /> <div><br /></div>]]></description>
            <link>http://www.deuxpi.ca/2008/08/playing-lokis-smac-safely-on-r.html</link>
            <guid>http://www.deuxpi.ca/2008/08/playing-lokis-smac-safely-on-r.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">linux</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">ubuntu</category>
            
            <pubDate>Wed, 20 Aug 2008 20:53:13 -0500</pubDate>
        </item>
        
        <item>
            <title>Owww! It&apos;s hot in here!</title>
            <description><![CDATA[I checked the current weather on the Web to make sure that the very high humidity was not a product of my imagination. Some clothes from this morning's laundry have been hanged but at this rate they are not even close to be dry until tomorrow. Environment Canada confirms: the air is over 90 % saturated with humidity and humidex is 29.<br /><br />What really is humidex? I knew that it was supposed to represent the perceived temperature, but I clicked on the link for more information. It finally reveals that the formula does not have a strong physical basis. This empirical formula essentially is <i>H</i> = <i>T</i> + (<i>e</i> − 10), where, <i>T</i> is the temperature in degrees Celsius and <i>e</i> is the vapor pressure in mbar calculated from the dew point.<br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="chilldex.png" src="//www.deuxpi.ca/2008/06/28/chilldex.png" class="mt-image-center" style="margin: 0pt auto 20px 5px; float: right;" height="167" width="200" /></span>The site also offers a program named Chilldex to calculate the humidex and relative humidity based on the temperature and the dew point, but only if you run Windows... Ha! Let's use our mad Python skillz and create our own tools! Don't hesitate to modify and share.<br /><br /> <a href="//www.deuxpi.ca/humidex.py">humidex.py</a><br /><div><a href="//www.deuxpi.ca/windchill.py">windchill.py</a></div><div><br />(It will also spare you having to look at a picture of mounted police...)<br /><br /></div><div><br /><br /><b>Édition :</b> Lire la critique de Miguel Tremblay <a href="http://ptaff.ca/humidex/">Du refroidissement éolien et du facteur humidex (le ridicule a une température)<br /></a></div>]]></description>
            <link>http://www.deuxpi.ca/2008/06/owww-its-hot-in-here.html</link>
            <guid>http://www.deuxpi.ca/2008/06/owww-its-hot-in-here.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">python</category>
            
            <pubDate>Sat, 28 Jun 2008 21:18:17 -0500</pubDate>
        </item>
        
        <item>
            <title>Rsync on Windows sanity</title>
            <description><![CDATA[While I was trying to synchronize a music library between the Linux host and a Windows machine by using rsync (cwRsync, to be exact), I realized that most of of the directory and file names were scrambled, or displayed long strings of question mark characters. There is a --iconv flag to rsync I though of using so I started to search the Web for the details. Some mailing list from a year ago suggested using a Unicode-aware version of the Cygwin DLL. The site seems to be up-to-date with the current Cygwin thus I downloaded the new library and moved it to the cwRsync bin directory. It works! You can download the patched Cygwin library <a href="http://www.okisoft.co.jp/esc/utf8-cygwin/">here</a>.<br /><br />Now the remaining problems are synchronizing files and directories with characters that the archaic Windows shell does not accept and Cygwin still doesn't process directories with more than 260 characters...<br /><br /><b>Edit:</b> The limitation of 260 characters exists because Cygwin attempts to support the old non Unicode-aware versions of Windows. One day this may change. Also, there is a branch in rsync code that would allow the characters in the file names to be translated. A patched binary of rsync is available on the receiver side, but I don't have enough motivation to build a patched version on the Linux server side right now. Shame on Windows for bad POSIX support... <br /><br />]]></description>
            <link>http://www.deuxpi.ca/2008/06/rsync-on-windows-sanity.html</link>
            <guid>http://www.deuxpi.ca/2008/06/rsync-on-windows-sanity.html</guid>
            
            
            <pubDate>Wed, 25 Jun 2008 13:50:41 -0500</pubDate>
        </item>
        
        <item>
            <title>Shell history statistics meme</title>
            <description><![CDATA[<pre>What now, dude? history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
200 sudo
182 ls
90 cd
62 vi
52 mv
43 java
38 eyeD3
33 tail
25 javac
21 ~/embedcover</pre>

<p>Looks like I spend most of the time at the console organizing the music library (and breaking the computer--look at all those <code>sudo</code> and <code>vi</code>...)</p>]]></description>
            <link>http://www.deuxpi.ca/2008/04/shell-history-statistics-meme.html</link>
            <guid>http://www.deuxpi.ca/2008/04/shell-history-statistics-meme.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">gnome</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">meme</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">shell</category>
            
            <pubDate>Thu, 17 Apr 2008 16:15:07 -0500</pubDate>
        </item>
        
        <item>
            <title>Installation de Ounk sur Ubuntu 64-bit</title>
            <description><![CDATA[<p><b>Mise-à-jour :</b> Il semble que Csound vient d'atterrir sur Ubuntu
Hardy aujourd'hui (12 avril) ce qui évite de faire plusieurs des
détours décrits ci-dessous !</p><p>Voici un résumé des opérations que j'ai du effectuer pour pourvoir installer l'interface Ounk sur un système Ubuntu 64-bit. Pour commencer, la difficulté vient du fait que Csound 5 n'est pas disponible. Toutefois, l'équipe de Debian-Multimédia travaille à créer un paquet qui devrait éventuellement faire son chemin jusqu'à son inclusion dans Ubuntu.</p><p>Pour obtenir le paquet actuel, il faut ajouter le dépôt de Felipe Sateler aux sources de logiciels. La ligne <span class="caps">APT </span>est :<br /><br /><tt>deb http://felipe.sateler.com/debian unstable main</tt><br /><br />De plus, il faudra inclure le dépôt de Debian instable (sid) pour satisfaire les dépendances :<br /><br /><tt>deb http://ftp.us.debian.org/debian sid main</tt><br /><br />Après avoir rechargé la liste, le paquet csound devrait être disponible dans la section Multimedia dans Synaptic. En le sélectionnant pour installation, les dépendances devraient être ajoutées automatiquement. Puisque qu'on utilise à ce moment le dépot de Debian instable, on évitera d'installer d'autres paquets. Après cette installation, il est fortement recommandé de désélectionner le dépôt de Debian dans la liste des sources.<br /><br />Une fois cela fait, on peut en profiter pour installer les dépendances de Ounk : alsa-oss libportmidi0 libfluidsynth1 python-wxgtk2.8 svn.</p><p>Pour télécharger Ounk, il est plus facile d'utiliser une fenêtre de Terminal. Dans cette fenêtre, on peut aller demander la plus récente version en lançant la commande :</p><p><tt>svn checkout http://ounk.googlecode.com/svn/trunk/ ounk-read-only</tt></p><p>Subversion (svn) est un logiciel qui permet gérer le développement d'un logiciel en conservant un historique de toutes les versions des fichiers de code. Ici on demande d'extraire la plus récente version qui sera copiée dans un nouveau répertoire ounk-read-only. Pour mettre à jour les fichiers déjà obtenus, on peut se déplacer dans le répertoire et lancer</p><p><tt>svn update</tt></p><p>On peut maintenant lancer Ounk en se déplaçant dans le répertoire ounk-read-only et exécuter le programme :</p><p><tt>python Ounk.py</tt></p>
]]></description>
            <link>http://www.deuxpi.ca/2008/03/installation-de-ounk-sur-ubunt.html</link>
            <guid>http://www.deuxpi.ca/2008/03/installation-de-ounk-sur-ubunt.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">csound</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">music</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">ounk</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">ubuntu</category>
            
            <pubDate>Fri, 14 Mar 2008 13:44:00 -0500</pubDate>
        </item>
        
        <item>
            <title>Synthesizer tuning</title>
            <description><![CDATA[A typical modular synthesizer is not limited to a number of fixed
pitches, but can generate sounds in a very wide range of frequencies.
However, if one needs to play the synth much like any other standard
Western musical instrument, it will need to be tuned. The pitch
relations between notes are generally handled by a MIDI to control
voltage (CV) converter, or a quantizer. Tuning is usually performed by playing
a note — in our case this is standard A above middle C, or A-440 — on a keyboard and turning on an oscillator with a constant reference pitch, like a virtual tuning fork. The main oscillator is tuned when no beats can be detected.<br /><br />In my
synthesizer, I now need a precise reference oscillator. There is a design by <a href="http://www.modularsynthesis.com/a440/A440.htm">Dave Brown</a>
using the timers of a small AVR microcontroller to create a very
accurate square wave. This signal is then transformed into a pure sine wave
by a very sharp low-pass filter that removes the overtones. Dave does not publish his code on his page but even if I
could get help if I asked, I'm reading the ATtiny25 datasheet and doing
it the hard way.<br /><br />The microcontroller has two timers that can be run from an external clock. There is a prescaler circuit that will increment the timer counter every power of 2 clock ticks up to 256 ticks per count. The idea here is to use a clock frequency that when divided by the prescaler will produce a timer very close to a multiple of 440 counts per second. Dave found that a clock running at 5.0688 MHz divided by 11520 is a very good approximation. The counters are limited to 8 bits (256 values). So the 5.0688 Mhz clock divided by 64 runs the counter at 79.2 kHz. If we count up to 180 to start a new pulse we get exactly 440 Hz.<br /> ]]></description>
            <link>http://www.deuxpi.ca/2007/11/synthesizer-tuning.html</link>
            <guid>http://www.deuxpi.ca/2007/11/synthesizer-tuning.html</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">synth</category>
            
            <pubDate>Mon, 19 Nov 2007 13:19:20 -0500</pubDate>
        </item>
        
    </channel>
</rss>

