Posts by this author

Apr 25, 2007
Post comments count0
Post likes count0

There's something about Christopher Walken

Actor Christopher Walken has such a peculiar speaking style, he's inspired a theater show: All About Walken. The run ends soon, so if you're going to see it, you'll have to act fast.

Non-Computer
Apr 25, 2007
Post comments count0
Post likes count1

Identifying an object whose underlying DLL has been unloaded

Okay, so I gave it away in the title, but follow along anyway. Your program chugs along and then suddenly it crashes like this: Instantly you recognize the following: This is a virtual method call. (Call indirect through register plus offset.) — Very high confidence. The vtable is in . (That is the base register of the ind...

Other
Apr 24, 2007
Post comments count0
Post likes count0

How much time does it take for a pedestrian to cross the street?

It sounds like the set-up to an old joke, but it's not. It's just one of the random bits of trivia that I wondered about. For intersections with both high pedestrian and high vehicle volumes, I was able to find the Federal Highway Administration recommendation, which is to give pedestrians a head start to allow them to cross one lane of traffic be...

Non-Computer
Apr 24, 2007
Post comments count0
Post likes count3

What is the underlying object behind a COM interface pointer?

When you're debugging, you might have a pointer to a COM interface and want to know what the underlying object is. Now, sometimes this trick won't work because the interface pointer actually points to a stub or proxy, but in the case where no marshalling is involved, it works great. (This technique also works for many C++ compilers for any object ...

Other
Apr 23, 2007
Post comments count0
Post likes count0

Given a choice between two options, you influence the result by adding a third, inferior, alternative

Shankar Vedantam wrote a Washington Post article and also appeared on NPR to discuss The Decoy Effect: Given a choice between two options, introducing a third, clearly inferior, option can influence your original decision. You won't pick the third option, but a clever choice of the bad third option can sway the decision toward either of the oth...

Non-Computer
Apr 23, 2007
Post comments count0
Post likes count1

Psychic debugging: When reading unfamiliar code, assume it's mostly correct

You may be called in to study a problem in code you've never seen before or be asked to look over a proposed change to some code you've never seen before. When this happens, you have to take shortcuts in your analysis because following every function call to the bottom would not only take far too much time, but also take you so far away from the c...

Other
Apr 20, 2007
Post comments count0
Post likes count0

The wisdom of seventh graders: Designing an elective course

Last month, I spent a few hours reading essays written by seventh graders (ages 12 and 13) on the following subject: Electives are often fun and different from our normal core classes. Imagine you have been chosen to create one new elective for our school. In a multi-paragraph essay, explain what the new elective would be like and what students w...

Non-ComputerThe wisdom of seventh graders
Apr 20, 2007
Post comments count0
Post likes count1

The format of bitmap resources

The next entry in the continuing sporadic series on resource formats is the bitmap. You thought accelerator tables were simple; bitmaps are even simpler. A bitmap resource takes the same form as a file, except that there is no . That's all.

Code
Apr 18, 2007
Post comments count0
Post likes count0

Trivia: Pea, marble, dime, nickel, quarter, half dollar, walnut…

Pea, marble, dime, nickel, quarter, half dollar, walnut, golf ball, hen egg, tennis ball, baseball, teacup, grapefruit, softball. What is this a list of? Answer. Note that the list is different in Britain. (Original story that tipped me off to this list.)

Non-Computer