Welcome Lewis, b’bye Josh


I’m going to miss my first Toronto Rock home game in over six years this weekend. Gail’s dad turns 65 on Saturday, and so we’re going up for a visit. Since I got Rock season tickets in 2000, the only home game I’ve missed was one game in December of 2002. We were on a Carribbean cruise at the time, and had scheduled it in December because we knew the lacrosse season started in late December. That was the one year that the league decided to start the season early.

And so I will miss the Rock debut of Lewis Ratcliff, who was traded from Calgary at the trading deadline for Josh Sanderson (some draft picks were thrown in there too). For the most part, I will miss watching Josh on the offense — he’s one of the best playmakers in the game, and holds the league record for assists in a season. In fact, I believe he holds second place on that list as well. He can score some pretty goals as well, make no mistake, but he is known for setting up players, and is was kind of the point guard of the Rock. However, he’s not a great defender at all, so if he gets caught on a fast break and can’t get off the floor, he’s a liability. I did get quite frustrated with his lack of hustle as well — you almost never see him running full out, and on the transition to defense, he’s almost always the last guy off the floor. He’s probably the smallest guy in the league (5’7″, 160 lbs), making him pretty useless at setting picks; big defenders just run over him without noticing that he was even there.

Ratcliff, on the other hand, is 6’1″ and 200 pounds and is a pure scorer. He might give back to the Rock what we lost in Colin Doyle, and that’s someone who can power through the defense instead of trying to finesse around them. People have called Ratcliff a selfish player who would rather take a low-percentage shot himself than pass, but he’s got more assists than Sanderson this year, and that’s without Tracey Kelusky playing.

I see this as a fairly even trade that might be good for both teams.

Lunar Eclipse


I took some pictures of the lunar eclipse back in February, and I’m just now posting them to flickr. I’m kinda new to this digital photography thing.

That was the night of the spaghetti dinner and silent auction at my kids’ school, which Gail and other members of the school council spent weeks organizing. During the evening, I was talking to the father of one of Ryan’s friends, and he mentioned the eclipse that was happening that night. I had no knowledge of this at all, so I was glad he told me. When we got home and I got the boys to bed, I grabbed the camera and tripod and set it up in the kitchen. We also have a little trigger thing that attaches to the camera so you can take a picture without touching the camera itself — I figured this was a good idea since I turned the flash off, so the exposure time might be longer, and if I was holding the camera it would be shaky. I centered the camera on the moon, zoomed in as far as I could (200mm lens), and took a couple. With the tripod, the camera already centered on the moon, and the trigger, I was all set. All I had to do was go into the kitchen every five minutes or so, hit the trigger, and that’s it.

Five minutes after I took the first picture, I went back into the kitchen and looked through the viewfinder, just to make sure I was still centered on the moon. I wasn’t, so I re-centered and took another picture.

Five minutes after that, I did the same thing, found that, again, I was not centered, so I re-centered and took another one. I figured that I must have bumped the camera or tripod without noticing, so I was extra careful this time.

Another five minutes passed, and I went to take another picture. Sure enough, the camera was no longer centered. I scratched my head and re-adjusted again and then it hit me like a ton of bricks.

The moon moves.

I had to re-adjust the camera and tripod before every picture, of course, and eventually the moon got high enough in the sky that I was getting reflections off of the kitchen windows, so I moved the tripod out to the deck. Luckily there were only patches of snow at the time, so I could go outside in my socks every few minutes without getting wet. As we moved towards totality, the exposure time kept increasing; between 9:32 and 9:55, exposure time went from 0.4 seconds to 4 seconds, and by 10:18 it was at 15 seconds. At 10:52 it was still 13 seconds, but at 11:15, it was back down to 2.

There are nicer and clearer pictures of the eclipse out there, but I’m pretty happy with mine. Here is a very cool video made up of a series of excellent pictures of the eclipse, though this guy is a much better photographer than I am, since he managed to keep the moon centered the whole time. Maybe the moon doesn’t move where he is.

Stewart in, Johnson out


The Blue Jays released Reed Johnson today, in favour of Shannon Stewart in left field. I don’t get this move. Johnson’s numbers overall look very similar to Stewart’s — Stewart has a higher career batting average (though Johnson hit .320 in 2006, which is higher than Stewart has ever hit), but the power numbers are the same. Stewart was faster in his prime, but hasn’t stolen more than 7 bases since 2002. Stewart is a decent fielder but can’t throw, while Johnson is a much better fielder who can play more than just left. And Johnson is almost three years younger.

But Stewart makes way less than Johnson — which is weird, considering the Jays signed Johnson to a one-year contract less than three months ago. Once again, the almighty dollar makes decisions that should be left to baseball people.

Who’s the Gretzky of baseball?


There was a conversation on the radio the other day saying that we are lucky to have lived in a time where we’ve seen some of the best athletes in their prime — Tiger Woods, Wayne Gretzky, Michael Jordan, Roger Federer are or were all far and away the best players in their respective sports in their primes, and are frequently mentioned as possibly the greatest players in their sports of all time. I don’t follow football so I can’t comment on that, but it made me wonder who that player would be in baseball.

Warning: lots of sports stats to follow. A lot of people hate baseball because of all the stats, but that’s one of the reasons I love baseball.

Babe Ruth his 60 home runs in 1927, a record that was not broken until 1961. The second-highest total that year was 47, third was 30. Only three teams in baseball had totals higher than 60. He had over 130 RBIs ten times, including seven years in a row. His career batting average is .342, and slugging is an amazing .690. Oh, and as a pitcher he even won 20 games twice. Ruth arguably falls into this category (though amazingly, he only won the MVP award once)… but that was 70 years ago.

I don’t think there’s been one single baseball player since then that has dominated his sport to the same extent as Ruth, Gretzky, or Jordan. First of all, it’s basically impossible to compare pitchers with non-pitchers — was Roger Clemens in his prime more important to his team than Alex Rodriguez in his? — so we’ll have to come up with two.

For hitters, you’d have to say that ARod is the best player playing right now, and probably for most of the last 10 years. But think of how much better Wayne Gretzky was in his prime than the second best NHL player at the time, or how much better Tiger is than the second best golfer around today, and then think about the second best MLB player, whoever that is (Ichiro? Ordonez? Tejada?) — is Rodriguez that much better than second place? Not to the same extent. Think of previous best hitters in the game: Boggs, Brett, Rose, Williams, Mantle, Molitor, Sosa, McGwire, Bonds. Were they significantly better than second place at any time, and if so, was it for several consecutive years like Gretzky or Jordan? No. Also, most of these players were very good at some things and not so much at others. Some like Sosa and Bonds could hit for a high average and with some power, but Rose and Boggs were pure hitters who didn’t hit the home runs. For a player to be comparable to a Gretzky, he’d have to hit .375 with 50 HRs, 50 stolen bases, and a Gold Glove every year for ten years. Some players have two or even three of these, but rarely all four at the same time, and when they do it’s for a season or two and then they fall off.

How about pitchers? There are certainly a few candidates here. I would argue that Roger Clemens is the best pitcher of the past 20 years — he won back-to-back Cy Young’s in ’86 and ’87 and then did it again 11 years later. He won another in between those two sets and he’s won twice more since. But he wasn’t the most dominant pitcher in the game the entire time. Greg Maddux and Randy Johnson each won the Cy Young four years in a row, and Maddux has won at least 13 games in each of the last twenty seasons. But he’s only won 20 twice. Both Maddux and Johnson have been very good for a long time, but not head and shoulders above everyone else. It could be argued that Eric Gagné was far and away the best reliever in the game from 2002 to 2004, but missed most of the next two seasons because of injury and was just “pretty good” with Boston last year.

As much as I dislike him, Barry Bonds would have to be the best baseball candidate. He won 7 MVP awards including four in a row, he hit almost .300 for his career (including over .320 four years in a row), has the single-season and career records for home runs, led the league in walks many times, and was a legitimate base-stealer for the first half of his career. He’s the only player with both 400 career home runs and 400 career stolen bases — in fact, he’s got over 500 of each. And he won eight Gold Gloves in nine years in the 1990’s. However, he never won a World Series, and even when he was winning all those MVP awards, only once was he the unanimous choice. And of course, there are the allegations that he was juiced for the last six years.

I wonder what it is about baseball that it hasn’t produced any single player that is head and shoulders above the rest in 70 years?

Thanks to Wikipedia for all the stats.

The Best of Times, The Worst of Times


It’s the best of times, it’s the worst of times for Leaf fans. This is the time of year we both love and hate. It seems that every year between the trade deadline (sometimes shortly before) and the end of the season, the Leafs go on a hot streak, thereby giving their fans some hope that maybe they will sneak into the playoffs and as Edmonton showed us a couple of years ago, once you’re in the playoffs anything can happen. As I said, sometimes it happens before the trading deadline, thereby “forcing” the Leafs management to make some silly last-minute deal, usually trading away kids and draft choices for some veteran way past his prime. I’ve written about this a couple of times before.

Aside: I was at the Leafs game last Saturday night, and they had a “top 10” list on the Jumbotron during a commercial break. This was the top 10 scorers in NHL history who spent time as a Toronto Maple Leaf. This included long-time Leafs like Sundin and Gilmour, but also the likes of Leetch, Housley, Nieuwendyk, Francis, and Larry Murphy, all of whom spent very little time in Toronto. At least 6 of the 10 spent two seasons or less as a Leaf, mostly near the end of their careers (though Vincent Damphousse did his Leaf time at the beginning of his career (sob)), and these are all players with 15+ year careers.

Anyway, since February 16, the Leafs are 9-5, winning 5 of 6 at one point in there. They’re beating some pretty good teams too — taking two from the Flyers, destroying the Bruins 8-2, and also beating the Capitals and Senators. They’re playing pretty good hockey these days, so we have to ask, as we do every year about this time, “Where was this two months ago, when we were still in the playoff hunt?”

Of course, it would be great for the Leafs to go on a huge winning streak and make the playoffs and continue that momentum into the second and maybe third round, but it just ain’t likely. If that can’t happen, then it would be great, though less so, for them to completely tank and lose all of their remaining games, giving themselves a better draft pick and a chance to pick up Steve Stamkos. If they can suck all of next year too and pick up John Tavares (no, not the lacrosse player, his nephew the hockey player), that would be even better.

But that’s not that likely either. I have heard people actually suggesting that the Leafs should try to lose most of their remaining games, but come on. You just can’t expect professional athletes to try to lose. No, what will probably happen is the same as in the previous couple of years: the Leafs will do pretty well for the remainder of the season and miss the playoffs by that much. Or they’ll just make the playoffs and get slaughtered in the first round. Either way, they get a low draft pick. Such is life in Leaf Nation.

Usability


Memo to the people who wrote the DLink router HTTP server: when adding to the list of MAC addresses that are allowed to use the router, I should not have to reboot the router after every single one, especially when the option for MAC filtering is OFF. I should be able to add each computer that currently has a DHCP-assigned IP address to the list and then reboot the router once when I’m finished. This was a job that should have taken under a minute, but due to this little bit of stupidity, dragged out to over ten.

Security through obscurity


Computer security is strongest when everyone knows how it works. This seems on first blush to be counterintuitive — if you’re sending some information to another computer or storing it in a file and you want to encrypt it, wouldn’t it be better if nobody knew anything about your encryption algorithm? If it’s secret and nobody knows how it works, they can’t break it, right? Well, this is true, for the most part, but there’s a big problem with this so-called “security through obscurity” — once someone does figure out how it works, your secret is out and you’ve lost at least some (and usually most) of the security that it provides. On the other hand, if your algorithm is freely available and fully documented (i.e. TLS, HTTPS, AES), then the open source community can look it over and find any vulnerabilities in it. If thousands of hackers know exactly how an algorithm works and can still pound on it for years and not break it, that’s a good indication that it’s pretty strong.

This was demonstrated recently with some Adobe products after the release of TrueCrypt 5.0 full disk encryption software. TrueCrypt rewrites the first sector of your disk with its own software, so that it can ask you for your encryption phrase before the operating system boots. Some users have found that after they did this, their Adobe Dreamweaver installation, which worked perfectly until then, suddenly decided that it was no longer licensed. This is certainly inconvenient, but if they relicensed their Dreamweaver software and rebooted their machine, the machine would refuse to boot, which is beyond inconvenient. TrueCrypt forces users to create a recovery CD before it encrypts the disk, which is lucky since this is the only way to recover from this.

It turns out that Adobe is saving some of their licensing information on the first sector of the disk, which is not accessible through normal channels (i.e. you can search your C: drive to your heart’s content and you will never find their licensing data). I’m sure their developers thought this was quite the clever little solution — since nobody could find this information, nobody could modify it, thereby making their software more difficult to pirate. Rather than simply encrypting the licensing information with a secure algorithm, they chose security through obscurity. Now that their secret has been revealed, everyone knows where they store their license information, and so they’ve completely lost the security that this provided. If they had simply used something like an AES-encrypted file, their licensing scheme would only broken if the AES algorithm itself was broken, which is rather unlikely.

However, adding an encrypted file introduces a key management issue — where do you store the encryption key that unlocks the license file? If it’s hard-coded, you’re back to security through obscurity — if someone figures out where in the executable the key is stored and posts that information on the internet, your entire security scheme is useless. The solution to this problem is non-trivial, and so I’ll leave that up to the software manufacturers. They may decide that a hard-coded key is fine, or maybe using a random key and storing the bytes of the random key mixed in with the encrypted data itself (in a reversible way) is good enough for their purposes. Storing encrypted data along with its encryption key is inherently insecure — like keeping your bank card PIN on a Post-It note attached to your bank card — but it’s only licensing information we’re talking about here, not the US nuclear launch codes or a file containing credit card numbers or something.

Bottom line: if any part of your security system uses the phrase “Nobody’d ever think of looking here!” or “Nobody will ever figure out how we did this!”, it’s not secure.

What a drag it is getting old


The storm hit with a vengeance on Saturday. In the morning it wasn’t too bad, so I took Nicky to his skating lesson and Gail took Ryan grocery shopping. All of us were home by 11:00, and Gail and I didn’t leave the house again. The boys went out to play after lunch, but both were back inside within 15 minutes and then they stayed inside the rest of the day as well. It snowed and snowed and snowed, and by Sunday morning, we had more than a foot of new snow — luckily it was the light fluffy stuff, not the heavy wet stuff. I went out Sunday morning to shovel it, and spend an hour doing the sidewalk, front walkway, and half the driveway. I was too tired to do the other half, so I left it for later. An hour after coming in, I had to take a couple of Tylenol because my back was sore. It was sore again this morning so I took another two. I never went back out to do the rest of the driveway yesterday, so I had to do it this morning so I could get out (though I did as little as possible to allow me to manoeuvre the car out of the garage). Tonight, I’m feeling particularly old — my back is still sore as is my right shoulder (which frequently hurts during shovelling as well), and my legs are kind of stiff too.

I’ve managed to avoid buying a snow blower in previous years, using various excuses: it’s too late in the season to justify doing it now, or I should have bought it in the spring when prices are lower, or I can just borrow my neighbour’s (who’s very generous with his), or the ol’ “back in my day” excuse — I’m young and in relatively good shape so I should suck it up and do it by hand. In addition to those, I simply have no place to put a snow blower. In the winter we keep both vehicles in the garage, and there is no room in there for a snow blower. The only alternative is to leave the car in the driveway so we can store the snow blower in the garage. But then every morning I’d have to brush and/or scrape it and then get into a cold car, and in the past I’ve decided that the convenience of not having to do that outweighs the convenience of having the snow blower. Keeping the car outside in the winter is also likely to reduce the life of the car, whether through engine damage or rust.

As I get older, however, I’m finding that a snow blower is no longer merely a convenience, it’s becoming a necessary tool to avoid killing myself shovelling snow. In the past when the snow was particularly heavy, I’ve borrowed my neighbour’s. I feel a little guilty every time I do because he’s spent the big bucks to buy this thing and I’m benefiting from it, but boy, does it make the job easier. There have also been times where I have come home from work to find my driveway has been done for me (sometimes by my neighbour, sometimes by persons unknown), and I’m very grateful, but I feel a little bad that I cannot return the favour. Next year, though, I think I will have to bite the bullet, buy myself a snow blower, and leave the car outside for the winter. I will have to be gentle when I break the news to it.

Oh, gotta go. Matlock’s on.

The Winter from Hell


It’s come to this — blogging about the weather.

A front-page article in the Spectator the other day had the headline “‘Winter from hell’ far from over, folks”. That morning we got 15 cm of snow, and today (Friday) and tomorrow we’re supposed to get another 10-30 cm. We’ve already gotten more snow than we did all of last winter, I’ve worked at home because of weather more times this year than any other year (there were a couple of weeks in early February where I worked at home for about 8 out of 10 consecutive days), the potholes on the roads are brutal, and the four of us decided this morning that we’ve all had quite enough of winter, thankyouverymuch.

This year more than any other year I can remember, I have wondered to myself “Why do I still live in the cold, snowy, slushy Great White North? Why have I not moved to Vancouver or Florida or California or Hawaii or someplace warm?” The standard answer is that southern Ontario is where I’ve lived pretty much all my life (other than 4 months in Seattle and a year and a half in Ottawa). Most of my friends and family are here, and it’d be hard to make it to Rock, Leafs, and Blue Jays games if I lived anywhere else. I suppose the short answer is that I love southern Ontario… except for the winters.

I’ve been to Vancouver, and I loved it. It’s a beautiful city. Moving there would have the advantage of staying in Canada, but the winters are much nicer than here. It would also have the advantage of being close to the mountains — not only are they beautiful, but you could pick a spring day where it’s 15 degrees at home, drive for two hours and go skiing. I have friends in San Jose as well, and moving there would give us a zillion opportunities for tech jobs (not that we don’t have that here). However, both of those cities are very expensive, and to get a house the size of ours in either of those places (that’s not 100 miles away from the city) would be a million dollars, and I don’t have a million dollars.

So I guess we’ll just hang out here and complain about the winters until we retire, at which point we can spend our winters in Florida with thousands of other Canadian retirees. Maybe once the kids are in university Gail and I can winter in Florida and telecommute — Sybase might build me a GraemeAnywhere! (Note that the picture of IvanAnywhere in that article is old — here’s a newer one. If you look down the hall in that picture, you’ll see the top of a doorway on the left. My office is two doors down from that one.) (Update: IvanAnywhere has his own page on sybase.com now!)

Anyone else notice the irony in the phrase “winter from hell”?