Silent death of a LG Flatron monitor

September 21st, 2008 by Samuel Tardieu

My LG Flatron L1915S monitor decided that it was tired of working so hard: the backlight now turns off after a fraction of second. Of course, it happened right after the warranty period expired, so it is unlikely that I can get it fixed. A fair number of users seem to have the same problem, so I guess I will have to find another brand.

20 years later, I’m proud of myself

August 6th, 2008 by Samuel Tardieu

Back in 9th grade. My science teacher was explaining to the class why carbon monoxide (CO) inhalation was dangerous: carbon monoxide molecules attach themselves to the hemoglobin, preventing dioxygen molecules (O2) to do so. The carbone monoxide doesn’t dissociate from hemoglobin under normal pressure, making it a long-term problem (ok, this was a simplification, but it was ninth grade, don’t forget).

I remember myself asking the teacher: “Would it be ok to run a person’s blood through a machine that temporarily increases its pressure in the presence of oxygen?” She looked surprised and told me she didn’t know.

Two days ago, I watched an episode of House M.D in which Dr. House puts a patient into an hyperbaric oxygen chamber to cure a patient from carbon monoxide poisoning. Not quite the same thing as the derivation I was thinking about, but the same principle, increase the blood pressure in an oxygen-saturated environment. This reminded me of the question I asked when I was a child. Twenty years later, I’m proud to know that my idea was not that stupid.

Battle Programme Shirase

August 4th, 2008 by Samuel Tardieu

Am I the only one who would have loved to see a second season of Battle Programmer Shirase coming?

The crazyness of DRM

December 7th, 2007 by Samuel Tardieu

First I hoped I had misread the web page. Then I realized I had not.

Networked disks are very useful. At home, they allow you to access your data from any computer on your local network without needing to keep a machine acting as a file server turned on all the time. But wait! You could use a networked disk to store songs and movies that you have illegally downloaded, couldn’t you?

Don’t worry, your networked disk will make sure you comply with the law and much more . Did you intend to store music that you legally downloaded from Jamendo and let your spouse and children access it? Too bad, since it may infringe someone else copyrights, Western Digital seems to think that it is best that you do not share it at all, just in case:

Due to unverifiable media license authentication, the following file types cannot be shared by different users using WD Anywhere Access.

If these file types are on a share on the WD My Book World Edition system and another user accesses the share, these file will not be displayed for sharing. Any other file types can be shared using WD Anywhere Access.

As a friend send to me, “sure, sharing 1 tera bytes of text files looks very appealing”. This post could have been titled “how DRM (Digital Rights Management) can hurt the world even when they are not used” or “we assume that you are a criminal”.

Using IPv6 by default with wget

October 31st, 2007 by Samuel Tardieu

I was surprised to see that wget chose to use IPv4 over IPv6 when downloading a file. It looks like it is on purpose (I would call it a bad design choice). You can tell wget to prefer IPv6 over IPv4 by putting the following line

prefer-family = IPv6

in either /etc/wgetrc (system wide) or $HOME/.wgetrc (user settings).

Strange keyboard problem

October 19th, 2007 by Samuel Tardieu

Since about a week, I started to notice that I had been making a lot of typos in some commands I use frequently. For example, I became unable to type correctly

cd /usr/src/linux

which always resulted in

cd /usr/src:linux

(incidentally, when typing the above strings, I had to fix the first one and the second one came naturally buggy)

On a French keyboard (AZERTY layout), / is obtained by pressing shift and :. I first thought that my laptop keyboard was misfunctioning. But it happened on my home computer as well. I then thought I had become unable to properly release the C key before pressing the shift one, but no, I think I found a real bug somewhere: this problem occurs only when a key amongst the lowest left part of the keyboard (near to the shift, namely one of the WXCV letters on my keyboard) is rapidly followed by a shift.

Let’s make a test: while running a X11 server, press the C key, let it pressed so that you turn the auto-repeat mode on, then press shift (without releasing the key). You should, at least under Linux with Xorg, see something like:

ccccccccccccccCCCCCCCCCCCCCCCC...

But what I get is:

cccccccccccccccccccccc...

The shift key is ignored. Note that it works fine with the right shift key though.

For a fast touch typist (as I otherwise luckily am), this is rather unfortunate; the combination of one of those wxcv letters followed by a slash happens to me at least fifty times a day, often much more than that. Since I cannot reproduce that on the Linux console, I will for the moment put the blame on my X server.

Recursion and while loops in Factor

October 11th, 2007 by Samuel Tardieu

Tonight, I was willing to create a while construct in Factor taking two items on the stack:

  1. a quotation to execute when the test is true
  2. a test quotation

For example, I wanted to be able to find the smallest power of two greater than or equal to an arbitrary number (here 34098) by doing:

1 [ 2 * ] [ dup 34098 < ] while

(of course there are much better ways of doing that, such as 34098 2 * 1 + 2 /i but that’s not the point here)

This would be much easier if we could recurse from within a block (by using a recurse word). Let’s start with that:

Read the rest of this entry »

A Japanese student in Paris

October 5th, 2007 by Samuel Tardieu

Are you Japanese? Do you have a bachelor degree? Do you speak some French? Do you want to come study for one year in Paris for free in the prestigious École Nationale Supérieure des Télécommunications? We teach computer science, electronics, embedded systems, robotics, optical communications and many other things.

If you answered yes to all those questions, do not hesitate to send me a message. In cooperation with the Renault Fondation, we are ready to welcome for one year Japanese students coming from the following universities:

And when I write for free, it even means that you get a comfortable grant that would cover all your expenses in France. Moreover, you will also follow intensive French courses when you arrive and you will travel around to discover other European cities.

For more information, have a look at the Renault Fondation website (and this explanation), and come and join us. See you in Paris!

(do not hesitate to disseminate information about this program, e.g., by sending a link to this post)

Velib

July 19th, 2007 by Samuel Tardieu

Bon, commençons par la partie agréable : je suis fan de Velib. Maintenant, de retour de soirée (merci Pablo pour m’avoir indiqué la route), il est rageant de dépasser les 30 minutes parce que la borne d’arrivée est pleine et qu’elle ne reconnait pas les passes Navigo pour prolonger, comme prévu, les trajets de 15 minutes supplémentaires. Surtout lorsqu’il faut faire 4 bornes pour trouver une place libre…

Et c’est marrant d’en faire avec les copains. Et ils aiment tous malgré les petits tracas.

Un résultat légitime

May 8th, 2007 by Samuel Tardieu

Ceux qui me connaissent savent que je suis un farouche opposant au scrutin majoritaire à deux tours. En effet, celui-ci empêche d’exprimer un choix réel en favorisant le vote « utile »  lorsque les Français votent selon leurs véritables préférences, on obtient un second tour Chirac-Lepen comme on l’a constaté en 2002.

Je préfère de beaucoup la méthode dite de Condorcet qui consiste à classer les candidats par ordre de préférence. On dit souvent qu’en 2002, l’utilisation de cette méthode se serait traduite par l’élection de Lionel Jospin, candidat le plus consensuel notamment parmis les électeurs de gauche ; en effet, Lionel Jospin aurait probablement été placé plus haut que Jacques Chirac sur de nombreux bulletins.

Curieux de savoir ce qu’aurait donné l’utilisation de la méthode Condorcet lors de l’élection présidentielle de 2007 entre les trois candidats François Bayrou, Ségolène Royal et Nicolas Sarkozy, j’ai fait une simulation avec les hypothèses suivantes :

Read the rest of this entry »


Creative Commons License