Jan 062009
 
The Piano Tuner

The Piano Tuner

Years ago I went to a bookstore at Zurich’s international airport and picked up a book to read on the flight, Daniel Mason‘s The Piano Tuner. I began reading then, but I kind of drifted away, never finishing it, putting it aside after I got back home, I never even got halfway. The book was sitting, forgotten, on top of an ever growing pile next to my bed.

Until last week, that is, when I picked it up again. I had to start from the beginning, as I didn’t remember much, just the uniqueness of the story and its atmosphere. This time around, it didn’t take long to get to the last page… despite the 19th century feel and pace, it turned out to be a page-turner after all.

And an unlikely story it is, set in Victorian England, telling the tale of a shy, self-absorbed London piano tuner who gets the most unusual commission of his lifetime: a request by Her Majesty’s War Office to travel to the remotest parts of Burma in order to tune and repair an Erard grand piano.

As it turns out, I’m not the only one who was mesmerized by Mason’s story. Now I hear that a movie is in the works. Not bad for the first novel of a medical student!

 Posted by at 1:36 pm
Jan 042009
 

How many times have we heard statements like this? Most recently, I heard it just moments ago, as an Israeli spokesperson stressed that Israel’s fight is not with the Palestinian people. But, I submit to you, when you kill hundreds of said people, your words are irrelevant: the facts are that your fight is with the people, the Palestinian people in this particular case, as it is the Palestinian people (in particular, innocent Palestinian people who have nothing to do with the Hamas idiots who keep firing rockets into Israel) who’re doing most of the dying.

 Posted by at 3:24 am
Jan 032009
 

I just read this term, “paparazzi physics”, in Scientific American. Recently, several papers were published on the PAMELA result referencing not a published paper, not even an unpublished draft on arxiv.org, but photographs of a set of slides that were shown during a conference presentation. An appropriate description! But, I think “paparazzi physics” can be used also in a broader sense, describing an alarming trend in the physics community to jump on new results long before they’re corroborated, in order to prove or disprove a theory, conventional or otherwise.

 Posted by at 9:16 pm
Jan 022009
 

As a contributor to Maxima, I occasionally receive requests from students to fill out surveys. I got one today, and after completing it, felt obliged to add the following comment, which really applies to most such surveys that I’ve seen:

You seem to be concentrating on things like prestige, reputation, stuff like that that I have no interest in and certainly play no role in my decision to work on an open source project. Simply put, the projects I work on I work on because of what they DO, not because they are open source or not. It’s not a self-serving activity… I no more think of it as “programming” as I think, say, of repairing my computer as “screwdrivering”. Programming (or using a screwdriver) is not the goal, but the means to reach a goal.

I work on Maxima because I need it for my research, because its tensor algebra packages were broken and I was able to repair and maintain them, because I need the result, because by participating I can help ensure that the package remains reliable and useful… what others think of me is irrelevant. I left your last question (ranking roles by prestige) unanswered for this reason… you might as well have asked me to rank them by color.

 Posted by at 5:00 pm
Jan 012009
 

A full nine years after the Y2K bug was to end civilization as we know it, it appears that Microsoft has yet to discover leap years. It seems that many of their Zune music players died a premature death yesterday (though they’re expected to come back to life today) because they were not prepared to deal with years that are 366 days in length.

Not only is this a remarkable case of sloppy programming and quality control, it also highlights why devices with digital rights management are such a bad idea. They’re designed not to serve you, the person who owns the devices and pays for the content played on it, but to serve third party content providers who view you as the enemy. And you actually pay good money for such garbage?

This is why I have yet to purchase an iPod, Zune, or indeed, any other device or software that is designed to police my non-existent file sharing habits.

 Posted by at 3:23 pm
Jan 012009
 

I am starting the new year by reading about a substantial piece of cryptographic work, a successful attack against a widely used cryptographic method for validating secure Web sites, MD5.

That nothing lasts forever is not surprising, and it was always known that cryptographic methods, however strong, may one day be broken as more powerful computers and more clever algorithms become available. What I find astonishing, however, is that even though this particular vulnerability of MD5 has been known theoretically for years, several of the best known Certification Authorities continued to use this broken method to certify secure Web sites. This is hugely irresponsible, and should a real attack actually occur, I’d not be surprised if many lawsuits followed.

The theory behind this attack is complicated, and the hardware is substantial (200 Playstations used as a supercomputing cluster were required to carry out the attack.) One basic reason why the attack was possible in the first place has to do with the “birthday paradox”: it is much easier to construct a fake certificate that has the same signature as a valid certificate than it is to recover the original cryptographic key used to sign the valid certificate.

This has to do with the probability that two persons at a party have the same birthday. For a greater than 50% chance that another person at a party has your birthday, the party has to be huge, with more than 252 guests. However, the probability that at a given party, you find at least two people who share the same birthday (but not necessarily yours) is greater than 50% even for a fairly small party of just over 22 guests.

This apparent paradox is not hard to understand. When you meet another person at a party, the probability that he has the same birthday as you is 1/365 (I’m ignoring leap years here.) The probability that he does NOT have the same birthday as you, then, is 364/365. The probability that two individuals both do NOT have the same birthday as you is the square of this number, (364/365)2. The probability that none of three separate invididuals has the same birthday as you is the cube, (364/365)3. And so on, but you need to go all the way to 253 before this results drops below 0.5, i.e., that the probability that at least one of the people you meet DOES have the same birthday as you becomes greater than 50%.

However, when we relax the condition and no longer require a guest to have the same birthday as you, only that there’s a pair of guests who happen to share their birthday, we need to think in terms of pairs. When there are n guests, they can form n(n – 1)/2 pairs. For 23 guests, the number of pairs they can form is already 253, and therefore, the probability that at least one of these pairs has a shared birthday becomes greater than 50%.

On the cryptographic front, what this basically means is that even as breaking a cryptographic key requires 2k operations, a much smaller number, only 2k/2 is needed to create a rogue cryptographic signature, for instance. It was this fact, combined with other weaknesses of the MD5 algorithm, that allowed these researchers to create a rogue Certification Authority certificate, with which they can go on and create rogue secure certificates for any Web site.

 Posted by at 2:30 pm
Jan 012009
 

This is a sad picture:

It's raining Columbia

It's raining Columbia

Yesterday, NASA released its final report about the Columbia accident, complete with gruesome but necessary details about how seven astronauts died.

 Posted by at 12:58 am
Dec 292008
 

… and CBC Radio 2 is not faring well. After the cultural vandalism by its bureaucrats last September, the ratings of Radio 2 here in Ottawa are down by a full one third compared to the same period last year: in 2007, the market share of CBOQ was 5%, now it’s down to 3.3%.

The theory behind the revamping of Radio 2 was that by going for the lowest common denominator, pop music, Radio 2 will attract a bigger audience and will better represent Canada overall. What was forgotten was that it is not the mandate of a public broadcaster to be popular… commercial radio already does that. The public broadcaster should be the guardian of high culture (and if that sounds elitist, maybe it should be) not a promoter of pop culture.

The ratings prove my point.

Ratings of CBC RAdio 2 in Ottawa

Ratings of CBC RAdio 2 in Ottawa

By the way, some people argue that it’s wrong to promote music written by middle aged white men. (Not that the CBC was exclusively about music written by middle aged white men. I learned a lot about jazz, Canadian folk, South American music, African music, and more on the “old” CBC.) Anyhow, when I hear that argument, I feel the urge to respond by asking, are you also upset that science classes teach the physics or math of middle aged white men? That engineering schools teach the engineering of middle aged white men? For better or for worse, much of our world’s science and technology was developed by Europeans, and until recently European civilization was very male-oriented (some argue it still is.) This doesn’t change the validity of, say, Boltzmann’s thermodynamics, Einstein’s gravity, or Feynman’s QED. Why should it be different when it comes to music? Is the music of Beethoven less valuable because there weren’t that many symphonic orchestras in the 19th century (or even today) in sub-Saharan Africa? I don’t think so. In any case, if we think that an area of science or culture is dominated by middle aged white men, the correct solution is not to banish their contributions, but to make sure that they become accessible to others… which is precisely what the CBC is no longer doing. Now that’s real “elitism” in the most pejorative sense of the word.

 Posted by at 4:56 pm
Dec 292008
 

Sometimes, programmers do physics, for better or for worse. Sometimes, physicists do programming, and the result is not always disastrous, sometimes quite the contrary. Bruce Allen, for instance, is a gravitational physicist who developed an extremely useful set of programs for Linux, allowing one to monitor the health status of a hard drive using the drive’s SMART (Self-Monitoring, Analysis and Reporting Technology) capabilities. He certainly needed it… his cluster has several hundred disk drives in operation. I only have a few, but nevertheless it is reassuring to know that they’ll send me an e-mail, presumably before a catastrophic failure wipes out all my data.

Which of course can still happen. I’ve seen hard drives die a sudden death, with no advance warning whatsoever, becoming an expensive but useless boat anchor.

 Posted by at 4:18 pm
Dec 292008
 

A candidate for the leadership of the US Republican party sent to several politicians a Christmas CD that contained, among other things, a song called “Barack the Magic Negro.” Many people are outraged, and many are surprised.

I’m not. After all, isn’t this precisely the kind of behavior one expects from Sarah Palin’s party?

 Posted by at 3:45 am
Dec 222008
 

This is not what I usually expect to see when I glance at CNN:

CNN and integrals

CNN and integrals

It almost makes me believe that we live in a mathematically literate society. If only!

The topic, by the way, was a British Medical Journal paper on brain damage caused by a dancing style called headbanging. I must say, even though I grew up during the disco era, I never much liked dancing. But, for what it’s worth, I not only know how to do integrals, I actually enjoy doing them…

 Posted by at 1:25 pm
Dec 222008
 

The other day, David Letterman had a segment called The Ten Most Hated Christmas Songs. They were well known Christmas tunes with twisted lyrics. All of them were funny, but two I found especially memorable. The first said,

“Joy to the world, George Bush is done.”

The second one was really creepy:

“It’s beginning to look a lot like Christmas,
“Nineteen-twenty-nine…”

Indeed.

 Posted by at 12:48 pm
Dec 212008
 

No, it’s not the name of a heavy metal group or a German curse word, just an appropriate way to describe the cats in our house, now six in number, given that we have a guest cat again. Poppy is back with us for a month.

Poppy in August

Poppy in August

 Posted by at 4:16 pm
Dec 192008
 

CNN has a report about health care workers’ right to refuse to provide services, or information about services such as abortion, if it goes against their conscience. Not unreasonable, but it is also not unreasonable for patients to expect services according to their own beliefs, not the health care workers’.

Yet there seems to be a simple solution: health care workers should be obliged to disclose to patients their beliefs and the fact that they may be withholding specific information as a result of those beliefs. Health care workers may have a right to refuse to provide services or advice that they consider unethical, but patients also have a right to know that they are not receiving objective advice.

 Posted by at 3:31 pm
Dec 192008
 

Sad news today: at the age of 76, Majel Roddenberry, aka. Nurse Christine Chapel from Star Trek and Lwaxana Troi from Star Trek: TNG, has passed away today. My she rest in peace.

Her husband, Star Trek creator Gene Roddenberry, passed away over 17 years ago, on October 24, 1991. That date is memorable to me for another reason: it was on the morning of that day that I became a wizard of Richard Bartle’s classic multiplayer computer game, MUD (Multi-User Dungeon), aka British Legends, a game that I have ported to modern 32-bit platforms nearly a decade later and that I have been hosting ever since.

 Posted by at 1:27 am
Dec 172008
 

… two days and several scraped fingers later (after I also lost, no doubt, many braincells to aggravation, not to mention hours of useful operating time of my heart muscle measured by a number considerably greater than the 48 or so that have elapsed since I first discovered that my computer is in trouble) I am finally back in business. All because of a bleeping 10 cent capacitor. But before I complain too loud, I quickly remind myself that during these 48 hours or so, tens if not hundreds of thousands (or millions?) of people around the world were killed, died of starvation, lost their most loved ones, lost their freedom, lost their possessions, you name it… and I am complaining because I had to replace a stupid motherboard and bring my computer back to life?

No, I am not complaining. Still, the last two days were a time I could have done without.

 Posted by at 2:28 pm
Dec 162008
 

That’s all it took. One faulty capacitor, worth about 10 cents, to put my computer out of commission for nearly two days.

The capacitor in question sits on the motherboard and, judging by its placement, it regulates power to the main I/O chip (which explains why, among other things, the failing motherboard had trouble accessing disks.)

Other than this, my experience qualifies as a comedy of errors. After replacing the motherboard with an identical model, the system didn’t boot; it turned out that I inserted the processor incorrectly, bending (but fortunately, not breaking!) some of its pins. Then I found out that the BIOS of the replacement motherboard, which I purchased second-hand, was password locked. After I reset the BIOS, the system didn’t boot at all, it turned out it needed a PCI graphics card to come back to life. Then, the operating system didn’t boot… it turned out that the partition table and boot sector was damaged on the hard drives. Meanwhile, the floppy drive in this machine died, just when I needed it to boot from a Windows XP CD (extra drivers needed for the RAID controller in my computer come on a floppy.)

But now, the system is rebuilding the RAID mirror, and when that’s done, I’ll reconnect everything and try to resume where I left off two nights ago. Groan.

Oh, but I forgot: I also need to upgrade this motherboard’s BIOS, to ensure that it recognizes the dual-core CPU (which it presently doesn’t).

Which reminds me, I’ve been using this motherboard for years, and it’s been working well (apart from a failing chip fan and now, this failing capacitor.) But when I tried to install VISTA on a test machine with the same motherboard, VISTA didn’t work in its “enhanced” AERO mode… or, it did, but only recognizing one CPU core. According to ATI, it’s NVIDIA’s fault, as their AGP implementation is not fully multiprocessor compatible and VISTA has problems with that. But, I ask naively… how come XP worked so well on this motherboard for years? AERO may be pretty, but it’s still just bits that are being moved between motherboard and graphics card, is it not?

 Posted by at 9:23 pm