Posts by this author

Jun 6, 2005
Post comments count0
Post likes count0

Adam Felber teaches us how to avoid setting off motion detectors

In a sidebar discussion on this week's episode of Wait Wait, Don't Tell Me, Adam Felber explains that "you can foil most motion detectors with a pair of insulated gloves, a piece of plywood, and a hat." [Windows Media] [RealPlayer]

Non-Computer
Jun 6, 2005
Post comments count0
Post likes count0

A quick puzzle about security and synchronization

This quick puzzle floated past one of our internal discussion groups. In Process B, the succeeds, but the returns immediately instead of waiting. Explain. [Correction: I confused the matter by passing as the third parameter, thereby creating an event that is initially signalled. Change it to so that the event is created non-signall...

Code
Jun 3, 2005
Post comments count0
Post likes count0

Why does Windows XP SP2 sometimes forget my CD autoplay settings?

It didn't forget them; it's just double-checking with you. The developer responsible for CD autoplay in Windows XP SP2 explained it to me. There were two problems with the way Windows XP handled CD autoplay. First, when you installed a new program that included CD autoplay capability, many users didn't know where in ...

Tips/Support
Jun 2, 2005
Post comments count0
Post likes count0

The 2005 Seattle Chicken Tour

Mark your calendars for the 2005 Seattle Chicken Tour, scheduled this year for July 16th. Seattle Tilths Annual City Chickens and Coop Tour July 16, 2005   10 am — 4 pm $10 per family or group of four Seattles city chickens owners invite you into their backyards for a first-hand look at raising chickens. Discover the variety of breeds...

Non-Computer
Jun 2, 2005
Post comments count0
Post likes count0

If strncpy is so dangerous, why does Visual Studio 2005 still support it?

In response to the news that is so dangerous, at least one person has called for Visual Studio to revoke support for such a dangerous function, considering the continued support for the function grounds for holding the compiler manufacturer liable for any defects in programs compiled with that compiler. Well, for one thing, while it's true that...

Other
Jun 1, 2005
Post comments count0
Post likes count0

Why don't you ever see a rat vomiting?

Okay, maybe you never wondered why you never saw a vomiting rat, but the intrepid researchers at the Annals of Improbable Research have discovered that there's a good reason, and Anne's rat page will explain in more detail than you probably wanted.

Non-Computer
Jun 1, 2005
Post comments count0
Post likes count0

Using /LARGEADDRESSAWARE on 64-bit Windows for 32-bit programs

Probably the biggest advantage of 64-bit Windows is not the larger registers but rather the expansive 64-bit address space. Recall that even when the /3GB switch is set, 32-bit programs receive only 2GB of address space unless they indicate their willingness to cope with addresses above 2GB by passing the /LARGEADDRESSAWARE flag. This flag means t...

Other
May 31, 2005
Post comments count0
Post likes count1

Using modular arithmetic to avoid timing overflow problems

In an earlier article, I presented a simple way of avoiding timing overflows which seemed to create a bit of confusion. The short version: Given a starting time start, an ending time end and an interval interval, the way to check whether the interval has elapsed is to use the expression . The naive expression suffers from integer overflow probl...

Code
May 30, 2005
Post comments count0
Post likes count0

Shocked (shocked!) that patronage exists in Chicago politics

NPR reported on a startling discovery in Chicago: That government jobs go not to those best qualified to perform them, but rather to those with the best connections. Who'd-a thunk it? Shocked by this discovery, the Daley administration vowed to end it. The City of Chicago's top lawyer Mara Georges told incredulous City Hall reporters yesterday t...

Non-Computer
May 30, 2005
Post comments count0
Post likes count0

You can't simulate keyboard input with PostMessage

Some people attempt to simulate keyboard input to an application by posting keyboard input messages, but this is not reliable for many reasons. First of all, keyboard input is a more complicated matter than those who imprinted on the English keyboard realize. Languages with accent marks have dead keys, Far East languages have a variety of Input Me...

Code