The Old New Thing

Things I've written that have amused other people, Episode 4

One of my colleagues pointed out that my web site is listed in the references section of this whitepaper. It scares me that I'm being used as formal documentation because that is explicitly what this web site isn't. I wrote back, I really need to put a disclaimer on my web site. FOR ENTERTAINMENT PURPOSES ONLY Remember, this is a blog. ...

How do I get the handle of the primary monitor?

The primary monitor by definition has its upper left corner at (0, 0). Therefore, you can use this function: To make double extra sure (belt and suspenders), we also tell it, "If you're not sure what monitor to return, give us the primary." Sure, this sounds obviously simple, but I actually found somebody who fumbled around in the dark ...

Email tip: I don't have my bug numbers memorized

Far too often I'll get email like this: From: X Subject: 27183 Have you started looking at this one yet? It may surprise you to learn that I do not memorize all my bug numbers. Please include a brief description of the bug in your message so I have a clue what you're talking about. The bug title is a good start. It's like going to a ...

The truth about 4/29 the government doesn't want you to know

With the loss of the Weekly World News, I'll have to rely on the trustworthy Internet to keep me informed of government conspiracies. I happen to be partial to 4/29truth.com, which uncovers the strange coincidences and inconsistencies in the "official" explanation of the tanker crash and fire on April 29, 2007 that destroyed a highway ...

Freudian typo: Enchanced metafiles

Back in 1993, there was an internal presentation discussing the various new features that were being added to that fancy new version of Windows that ultimately came to be known as Windows 95. In the GDI section, one of the new features was listed as "Enchanced metafiles". When the slide went up, you could hear the scattered titters of ...

Probably the most expensive Harry Potter viewing I'll ever attend

Last week, I arranged to meet a friend downtown to see the latest Harry Potter movie. Traffic across the 520 bridge during the evening rush is always a disaster, so whenever I have to head into the city by myself after work, I usually take the bus, and today is no exception. It is a sunny day, which makes for pleasant weather but horrible ...