Nov 132009
 

Following a discussion with a friend of mine, I did some crude statistics today. Perusing Wikipedia, I ranked the world’s religions in terms of the effectiveness with which they were able to commit mass murder between 1914 and the present day. I did not count “legitimate” victims of war. My statistics are necessarily crude, as I probably didn’t include all incidents, and I just used the concept of a “predominant religion” instead of researching the actual religious breakdown of perpetrators and victims. The figures themselves may also be in dispute.

Having said that, I calculated some percentages (normalized by dividing the number killed by the square root of the product of the populations of the perpetrators’ and the victims’ predominant religion) and arrived at this bleak ranking of our recent history:

Buddhist-on-Buddhist: 10%
Christian-on-Jew: 3%
Christian-on-Christian: 0.9%
Muslim-on-indigenous: 0.5%
Muslim-on-Christian: 0.2%
Muslim-on-Muslim: 0.1%
Buddhist-on-Hindu: 0.01%
Hindu-on-Christian: 0.006%
Christian-on-Muslim: 0.0006%

Muslim claims about evil Christians are clearly bogus, at least insofar as recent history is concerned; Christians were far more busy killing each other and killing Jews, and Muslims were certainly more efficient when it came to killing Christians than the other way around (mostly thanks to the efforts of the Ottoman Empire).

But no, I do not conclude from this that religion is inherently evil. About two thirds of all the killings listed here were, in fact, committed by states that were nominally atheist. Reason may lead one to atheism, but atheism certainly doesn’t guarantee reason…

 Posted by at 4:09 pm
Nov 122009
 

According to leaks, a secret meeting held in Seoul and led by the ever so vigilant champion of all that’s free, the United States, may lead to the most Draconian restrictions yet on Internet freedom. Under the pretense of fighting counterfeiting, the participants (which include the United States, Canada, and the EU) are really discussing copyright provisions, and are planning to agree on a series of measures that would make a Cuba or North Korea proud. These include giving new powers to border guards, extending controversial protection of copy protection measures, removing privacy protection such as the “safe harbor” status of ISPs, and mandating “three strikes and you’re out” laws.

The fact that such talks are held in near complete secrecy by itself speaks volumes. This is how an East Germany negotiated border control measures with other communist states, not how free states negotiate about the rights of their citizens.

Once I stop fuming, I’ll write a nice, polite e-mail to our esteemed Prime Minister and ask if he and his government are really planning to go completely mad. I’d rather not see another penny in my life as revenue from the software I develop than live in a country which thinks that such totalitarian measures are needed to protect corporate profits from unruly citizens.

Meanwhile, I just had an idea. I think it is time to organize massive civil disobedience campaigns. I doubt it’d be too difficult to convince millions, if need be, to make one illegal copy a day of a song, a video, or software, not for profit, not even for public distribution (I am, after all, respectful of intellectual property), just to make a point and break badly crafted, stupid, hostile laws that should, really, must, be repealed (or, in the case of Canada, not enacted in the first place.)

 Posted by at 12:31 am
Nov 112009
 

poppyThis is the sunniest, brightest Remembrance Day that I recall.

I don’t usually like national holidays and such. This, however, is an exception. The way it is celebrated, especially here in Canada, it’s not about glory, not about victory… it’s about the memory of those who died. As such, it is an inclusive celebration. You can take part regardless of your nationality; it doesn’t matter what uniform your father or grandfather might have been wearing, what is being remembered is that he served and suffered. (Fortunately, nobody from my immediate family fell or was wounded in war. My maternal grandfather served briefly in the Hungarian army in 1942 or thereabouts, as an engineer… fortunately, he returned to Hungary before the disastrous collapse of Hungary’s Second Army at the Don River. My great Uncle Bela served in WWI, on the Russian front I believe. He, too, survived.)

 Posted by at 4:33 pm
Nov 082009
 

If you’re watching Canadian TV these days, chances are you’ve seen the ad for a pair of Vancouver 2010 red mittens ($10/pair, net proceeds go toward supporting Canadian athletes, etc.) Now I may not be an expert when it comes to knitted mittens, but my wife certainly is, and we knew right away that $10 a pair can mean only one thing: Made in China. A suspicion that was promptly confirmed when I found some blog postings from people who bought a pair.

Which forces me to refrain from asking the rhetorical question, “Am I the only one?…” since obviously I’m not the only one troubled by the fact that we outsource the making of maple leafs to China, but I have yet to see either a journalist or a politician comment.

And no, I don’t want to start a populist, protectionist tirade, since I despise populism and protectionism. And yes, the Olympics  is supposed to be international in spirit and all that. Still, I do think it’d have been appropriate to have those mittens made in Canada. Sure, it’d have been more expensive. But, it’d have helped not only Canadian athletes, but also Canadian communities harmed by the recession. Or how about having some of them made in Canada, a “special edition” if you wish, sold at a higher price to those who want them and who think it’s proper to pay workers at (minimum) Canadian wages? As things stand, you can’t even compete with the Chinese imports even if you wanted to… the Olympic logo is a fiercely protected trademark.

 Posted by at 2:01 pm
Nov 062009
 

I was channel hopping a little this morning, which is how I happened upon a health news segment on CBS, “CBS Healthwatch”, and caught this sentence as part of a discussion about headache triggers:

“Anything that’s not… American cheese that you can by right over the counter.”

I didn’t realize that in the US, one needs a prescription to buy some blue cheese or Camembert.

 Posted by at 12:52 pm
Nov 062009
 

I just added some new calculators to my ever growing online museum. Two of them are programmables: an Aurora SC-180 and a Casio FX-770P. I also added several non-programmables to the “photo album“: a Btech fx-82LB scientific model (obviously, a Casio clone), a Canon P3-DII, a Cedar CD-420, a Corvus 322 (this is a real vintage machine), a Lloyd’s Accumatic 310 (similar to my first ever calculator), a Sharp EL-531RH, and an Underwood 340 (this is a really ancient machine, printer only, no display). I also added two calculator-like non-calculators: an “RV Special” databank and a handheld Sudoku game.

 Posted by at 1:57 am
Nov 042009
 

Here’s another fine example of a somewhat Orwellian interpretation of Draconian copyright laws: according to Texas Instruments, hacking your own pocket calculator is illegal.

Recently a friend of mine, responding on the bureaucratic nightmare surrounding the H1N1 flu shots, remarked that “it’s enough to turn one into a Republican”. What can I say? Acts like those of Texas Instruments are, on the other hand, enough to turn one into a commie. After all, when corporations treat their own customers as the #1 enemy, what is the customer to think?

 Posted by at 5:17 pm
Nov 032009
 

Some Romanians are planning to fly a balloon to the Moon. OK, to be more precise, what they’re planning is the use of a stratospheric balloon as a launch platform for their attempt to win Google’s Lunar X Prize. It’s not as crazy as it sounds… the disadvantages of launching from an unstable platform like a balloon may be more than offset by the advantages of launching from an altitude that is above most of the Earth’s atmosphere.

 Posted by at 3:03 pm
Nov 032009
 

It looks like the Mythbusters tend to ignore air resistance.

In a recent episode, they claimed to have demonstrated that a horizontally fired bullet and a bullet that is simply dropped fall to the ground in the same amount of time. They were wrong. What they actually demonstrated is that air resistance causes the fired bullet to hit the ground more slowly.

Their argument would apply perfectly in a vacuum, as on the surface of the Moon, but not here on the Earth, where the bullet’s motion is governed not just by the laws of gravity, but also by the laws of a non-conservative force, namely air resistance. (Why is it non-conservative? Some of the bullet’s kinetic energy is converted into heat, as it travels through the air at high speed. Unless we also include the thermodynamics of the air into our equations of motion, the equations will not conserve energy, as the amount of kinetic energy converted into heat will just appear “lost”.)

The bullet’s velocity, v, can be written as v2 = vh2 + vv2, where vh is the horizontal and vv is the vertical component. The initial horizontal velocity is v0. The initial vertical velocity is 0.

Air resistance is proportional to the square of the bullet’s velocity. To be precise, acceleration due to air resistance will be

aair = κv2,

where κ is an unknown proportionality factor. (To be more precise, κ = ½cAρm, where c is the dimensionless drag coefficient, A is the bullet’s cross-sectional area, ρ is the density of the air, and m is the bullet’s mass.) The direction of the acceleration will be opposite the direction of the bullet’s motion.

The total acceleration of the bullet will have two components: a vertical component g due to gravity, and a component aair opposite the direction of the bullet’s motion.

The resulting equations of motion can be written as:

dvh/dt = –κvvh,
dvv/dt = g – κvvv.

Right here we can see the culprit: air resistance not only slows the bullet down horizontally, it also reduces its downward acceleration.

This is a simple system of two differential equations in the two unknown functions vh(t) and vv(t). Its solution is not that simple, unfortunately. However, it can be greatly simplified if we notice that given that vv << vh, vvh, and therefore, we get

dvh/dt = –κvh2,
dvv/dt = g – κvvvh.

This system is solved by

vh = 1/(κt + C1),
vv = vh[(½κt2 + C1t)g + C2].

Given

v0 = 1/(κt0 + C1)

we have

C1 = 1/(v0 – κt0),

which leads to

vh = v0/[κ(tt0)v0 + 1],

or, if we set t0 = 0,

vh = v0/(κtv0 + 1),

Similarly, given vv(0) = 0, we get C2 = 0, thus

vv = gtv0t + 2)/(2κv0t + 2).

The distance traveled horizontally (sh) and vertically (sv) between t0 = 0 and t1 can be obtained by simple integration of the respective velocities with respect to t between 0 and t1:

sh = log(κv0t1 + 1)κ,
sv = g[κv0t1v0t1 + 2) – 2log(κv0t1 + 1)]/(2κv0)2.

The claim by the Mythbusters was that the time it took for the fired bullet to hit the ground was only ~40 ms more than the time it took for a dropped bullet to fall, which is a negligible difference. But it is not! Taking g ≅ 10 m/s2, it is easy to see that the time it takes for a bullet to fall from a height of 1 m, using the well-known formula ½gt2, is 447 ms; the difference measured by the Mythbusters is nearly 10% of this number!

Not only did the fired bullet take longer to hit the ground, the Myhtbusters’ exquisite setup allows us to calculate the bullet’s initial velocity v0 and drag coefficient κ. This is possible because the Mythbusters conveniently provided three pieces of information (I am using approximate numbers here): the length of the path that the bullet traveled sh ≅ 100 m), the height of the bullet at the time of firing (sv ≅ 1 m), and the time it took for the fired bullet to hit the ground. Actually, what they provided was the difference between the time for a fired vs. a dropped bullet to hit the ground, but we know what it is for the dropped bullet (and because it is never moving very rapidly, we can ignore air resistance in its case), so t1 = 447 + 40 = 487 ms. The solution is given by

κ = 0.0054 m–1,
v0 = 272.3 m/s.

Given a bullet cross-sectional area of A = 2 cm2 = 2 × 10–4 m2, an approximate air density of ρ = 1 kg/m3, and a bullet mass of m = 20 g = 0.02 kg, the dimensionless drag coefficient for the bullet can be calculated as c = 2κmAρ = 1.08, which is not at all unreasonable for a tumbling bullet. Of course the actual values of A and m may differ from the ones I’m using here, resulting in a different value for the dimensionless drag coefficient c.

 Posted by at 12:39 am
Oct 312009
 

Halloween CatIt’s black cat day again. I love (black) cats.

One thing I like a lot less is daylight savings time. It’s unnecessary and annoying. Wouldn’t it be simpler to just tell everyone to get up an hour earlier (or later) if it saves some energy? And I’m not even sure that it does.

 Posted by at 11:00 pm
Oct 292009
 

This morning, I decided to clean my main workstation, as it’s been noisier than usual these last couple of days. Sure enough, it had plenty of dust and cat hair in it, but I also noted that a little motherboard fan was not working. I had spares, so I decided to replace it. Removing it is not easy, as it is in an awkward location, and I also had to resolder its connector onto the new fan.

That having been done, I rebooted my machine. Or, I tried to anyhow, but it failed to boot. It failed to do anything after the BIOS initialization. After a while, I realized that for some weird reason, it was trying to boot from an attached USB device. I disconnected the device, but still nothing… worse than nothing, actually, as it told me that my system disk is unbootable.

Actually, I should say disks, as I am using a dual drive mirror configuration in this computer. After poking around in it some more, I realized that I have inadvertently knocked out a cable from one of the drives. Unfortunately, reconnecting this cable didn’t help… the system was still unbootable.

And I’ve seen this before! A while back, a similar thing happened… one drive was disconnected, and when I reconnected it, the stupid RAID controller somehow managed to wipe the boot sector from both. What on Earth it did that for, I have no idea. But this is why I have a spare computer with identical drives and RAID controller… once I understood what was happening, the solution was to simply remove both drives, put them into USB cases, connect them to the other computer, and then copy over the boot sector using a raw disk editor. Easier said than done, of course, especially as I couldn’t find a raw disk editor on that spare machine (I swear I used to have one installed!) but eventually downloaded HxD, a very fine free disk editor that I have used before.

Two hours after I began, I had a working computer again. Still, it’s not a fun way to start a morning when you need both a soldering iron and a raw disk editor to get your computer working again…

 Posted by at 7:02 pm
Oct 292009
 

Yesterday, I phoned Rogers, basically because I wanted to give them some more of my money. At the same time, I also wanted to complain; several analog cable channels still have just one side (left or right) of the stereo audio (I first reported this almost a year ago, still unfixed), and I wanted to know why they’re suddenly charging me more, claiming that a bundle discount I used to get “expired”.

To make a long story short, after being interrupted and lectured about matters of life by an impertinent representative (one example: “Why do you want to have the analog service repaired when it will be discontinued in a few months anyhow?”) I asked for his supervisor. Predictably, I was told that the supervisor was not available, but they’d phone me back in 24 hours.

That was more than 24 hours ago. Needless to say, I’m still waiting… and I’m not the only one. I am getting more and more fed up with monopolies.

 Posted by at 6:52 pm
Oct 262009
 

When will companies finally learn that Activation and copy protection do little to deter real piracy, only punish and alienate legitimate users? Here is something I just came across in a PC World blog:

“Microsoft support reps were still replying to users’ questions about product keys with a canned response citing ‘several reasons why a product key might not be accepted.’

“Essentially, either, ‘You mistyped it. The product key you typed doesn’t match the key assigned to Windows on your computer. Microsoft has identified the product key you entered as counterfeit,’ or ‘the product key has already been used on another computer,’ according to Microsoft.

“One person griped: ‘I Have been on the phone since 4 pm EST and I still don’t have a valid product code. Thank you Microsoft! Thank you for wasting my valuable time! Time is money and this had been a flagrant waste of it,’ wrote thatguy38.”

So all you’re trying to do is install legitimately purchased software, and you end up with a major headache, a useless computer, lots of wasted time, and on top of that you might get accused of theft. Talk about a strong incentive to either use cracked pirate copies or to forego using commercial software altogether, switching to open source instead.

 Posted by at 9:27 pm
Oct 242009
 

Recently, I bought a television series on DVD online. One of the DVDs appears unreadable. I noticed some scratches on it, but I also noticed that it happened to carry the HD DVD label. Is it possible that one of the disks in the boxed set was mistakenly an HD DVD? Unfortunately, I don’t have an HD DVD drive in which to test it.

Which reminded me that I’ve actually been meaning to buy an HD DVD drive before they vanish completely, just to be able to read HD DVDs in case I come across any. I looked and found one online that I liked. I tried to buy it… only to be informed repeatedly by Yahoo shopping that “there was a problem saving your information and basket”.

No matter, it can wait… I’ve also been meaning to do another thing this morning, namely to buy a new Microsoft Developer Network subscription. So I went to the MSDN Web site, clicked all the right buttons, logged in with my blasted Microsoft Live ID, and presto… I was told by Microsoft that they “are unable to validate your customer information and proceed with your order at this time”.

Looks like The Powers That Be just don’t want me to spend any money this morning. No matter, I have better things to do with it… and with my time, too.

 Posted by at 2:20 pm
Oct 222009
 

I wanted to look up Barry Newman, the star of Vanishing Point, that legendary 1971 road movie. Accidentally, I entered Newman’s name into the URL field in Mozilla Firefox. Rather than telling me that I am full of nonsense or taking me to a search engine, Firefox instantly brought up the Internet Movie Database page on Barry Newman. What can I say… I know how it is done, but that doesn’t mean that I am unimpressed by how well it is done.

 Posted by at 1:44 pm
Oct 152009
 

First, it was the multiverse. Then came Boltzmann brains. Now here’s another intriguing idea: the cancellation of the Superconducting Supercollider project in the 1990s and last year’s failure of one of the Large Hadron Collider’s magnets at CERN are just two manifestations of manifest bad luck brought about by the fact that the Higgs particle simply cannot be discovered; that its discovery at any time in the future propagates backwards in time, causing events that prevent its discovery in the first place.

An intriguing idea, though not precisely original, as something much like it was already published in the form of John Cramer‘s excellent science fiction novel, Einstein’s Bridge. And when I say intriguing, I mean intriguing… as the basis of a science fiction story. But as the basis of a scientific paper? Another adjective comes to my mind… appalling.

 Posted by at 12:11 am
Oct 082009
 

There are uncanny coincidences in life, so much so that I sometimes wonder, are we all just one giant computer simulation using a less-than-perfect random number generator?

Take this, for instance… yesterday, I copied to a hard drive our collection of Monty Python DVDs. I also looked at one episode, and in it there was a sketch that I don’t think I’ve ever seen before, a sketch about flying sheep. Flying sheep??? But later yesterday, here’s what was on CBC Newsworld, also repeated this morning:

Flying sheep

Flying sheep

Yes, flying sheep. Hanging sheep to be precise, as they are being carried across the rocky terrain on the Faeroe Islands.

Or how about this: a few days ago, my wife returned from Hungary with my mother’s old laptop (actually, my old laptop, but it’s been in my mother’s possession for many years) and much to our sadness, we found that its screen got broken during the trip. I know laptop screens break regularly, but it’s not something I run across often, indeed I think this was only the second time that I have seen a broken laptop screen up close. But today, I went to the barber… who, while waiting for customers, happened to be busy transferring files to a USB stick off a laptop with, you guessed it, a broken screen.

So is this just pure randomness? Or is the world suffering because God uses a broken random number generator?

 Posted by at 2:59 pm
Oct 082009
 

Google’s Street View has just been introduced in Canada.

Many people consider it a “gross invasion of privacy” that someone can take pictures of their streets and post it on the Internet. “What if they see my car in my driveway?” they scream at the top of their lungs, as if Google broke some long established taboo by photographing a public street.

But wait a minute… are these the same people who readily submit to having their laptops searched, its content, personal and business, examined and scrutinized, just so that customs can catch the occasional pedophile?

For what it’s worth, I couldn’t care less if Google posts photographs of my street or my house. On the other hand, I am so concerned about real invasions of my privacy, I am willing to face the wrath of customs agents by using Bruce Schneier’s method of laptop protection against unwarranted searches.

Curiously, most of the people commenting on Schneier’s article completely misunderstand his point: it’s not that I have anything illicit or shameful on my laptop that I need to hide. That would be easy. It’s that I object to the principle of strangers going through my entire life.

The really scary thing is that so many people, citizens of supposedly free countries, already adopted such a strong police state mentality: rather than looking for a lawful way to maintain their privacy, they are discussing various ways to break the law without getting caught. What I like about Schneier’s method is that it does not involve breaking the law: all my statements to customs agents would be truthful. As they say, no good deed goes unpunished… I’ll likely be harassed more than the smartalec who just creates a hidden partition on his laptop and keeps the visible partition sterile. But, at least I’ll suffer with a clean conscience, whatever good that does.

 Posted by at 12:57 pm
Oct 042009
 

I bought this at our favorite Portuguese bakery the other day:

sliced breadIn case it’s not obviously visible from the picture, it’s a sliced loaf of bread… sliced lengthwise, that is.

No, I did not ask for it to be sliced lengthwise. I’d have preferred it to be sliced the conventional way, but unfortunately, I was late to the bakery, and this was the last loaf of their uniquely tasty nine-grain bread that day. So I bought it, and they were kind enough to sell it to me at a discount.

The explanation? “New employee,” I was told. Now why do I have the feeling that this new employee will not be employed at that place very long?

Then again, it could have been worse. She could have sliced it horizontally.

 Posted by at 12:30 pm