Showing results for January 2007 - Page 2 of 4 - The Old New Thing

Jan 23, 2007
Post comments count0
Post likes count0

Unexpected consequences of writing a book: Public appearances

Raymond Chen
Raymond Chen

One of the consequences of being a minor book author is that you can't be a private person any more; you're automatically a public personality. If somebody asks you for an interview, you can't just reject it as a matter of principle. You're now doing it not for yourself but in the service of your book. (Major authors might be able to get away wit...

Non-Computer
Jan 23, 2007
Post comments count0
Post likes count0

Non-psychic debugging: If you can't find something, make sure you're looking in the right place

Raymond Chen
Raymond Chen

This isn't psychic debugging, but it's the sort of dumb mistake everybody makes and which you can't see when re-reading your code because your brain shows you what you want to see, not what's really there. I'm trying to respond to the notification, but it's not working. What am I doing wrong? You can stare at this code for ages and completel...

Code
Jan 22, 2007
Post comments count0
Post likes count0

The cost of continuously-visible affordances with dynamic states

Raymond Chen
Raymond Chen

Serge Wautier asks, "Why are the copy/cut/paste buttons not disabled when there's nothing to copy/cut/paste?", noting that the back/forward buttons do disable themselves when navigation is not possible in that direction. To get to this question, we'll first go back in time a bit to a world without toolbars. In those early days, these dynamic optio...

Code
Jan 19, 2007
Post comments count0
Post likes count0

2006 storm aftermath: A look back

Raymond Chen
Raymond Chen

It's been about a month since the windstorm that brought the Seattle area to a standstill. Puget Sound Energy has posted a recap of the storm, including what I consider to be a wonderful euphemism: We thank those customers who called to update us with valuable outage status information. Translation: "We would like to acknowledge all the people...

Non-Computer
Jan 18, 2007
Post comments count0
Post likes count0

Email tip: Choose a subject line that is meaningful to the recipient, not to the sender

Raymond Chen
Raymond Chen

Presumably you want the recipient to read the message. That's why you sent it. It would behoove you to select a subject line which conveys to your reader the purpose of your message. Otherwise your reader is likely to ignore it for being too vague and uninteresting. Here are some actual bad subject lines I've seen. Suppose your Inbox had a hund...

Non-Computeremail
Jan 17, 2007
Post comments count0
Post likes count0

Iced-over roads + people who can't drive = very expensive (and dangerous) game of billiards

Raymond Chen
Raymond Chen

Unbelievable video of people in Portland, OR who should know better trying to drive down an icy road. (Direct WMV link. Interview with the person who shot the video, but you're going to have to put up with the inane local news-anchor chatter. That last link includes images of cars that, yup, struck the fire truck.) It's as if these people had lo...

Non-Computer
Jan 17, 2007
Post comments count0
Post likes count0

Should all windows appear in the taskbar?

Raymond Chen
Raymond Chen

No new content today, just some follow-up discussion on the topic of windows that don't appear in the taskbar. The rules for which windows appear in the taskbar have been documented in MSDN for years, so changing the rules now would mean doing so after the game has ended. Consequently, this is not the sort of change that can be made lightly. Fi...

Other
Jan 16, 2007
Post comments count0
Post likes count0

One Armstrong = 13.5 mph

Raymond Chen
Raymond Chen

Out of curiosity, I wanted to know how fast Tour de France riders go up l'Alpe D'Huez, the legendary mountain climb. Using information from the Wikipedia page, I calculated that Lance Armstrong's 2004 ascent had an average speed of approximately 13.5 mph (22 kph). Consequently, I invented the Armstrong, a unit of bicycle velocity, with o...

Non-Computer
Jan 16, 2007
Post comments count0
Post likes count0

EnumChildWindows already enumerates recursively

Raymond Chen
Raymond Chen

I often see people write code that goes something like this: The intent here was to perform the operation on all the windows in a window tree by operating on the root, then operating on each of the children. Operating on the children is in turn performed recursively, so that we eventually see every window in the tree. Except that if you actua...

Code