Posts by this author

Dec 27, 2004
Post comments count0
Post likes count0

Alton Brown book tour 2005: I’m Just Here for More Food

Alton Brown, geek cooking hero and Bon Appetit Magazine Cooking Teacher of the Year 2004 will be spending January 2005 promoting his latest book, Food × Mixing + Heat = Baking (I'm Just Here for More Food), sequel to his award-winning debut cookbook Food + Heat = Cooking (I'm Just Here for the Food). Check th...

Non-Computer
Dec 27, 2004
Post comments count0
Post likes count1

You can create an infinitely recursive directory tree

It is possible to create an infinitely recursive directory tree. This throws many recursive directory-traversal functions into disarray. Here's how you do it. (Note: Requires NTFS.) Create a directory in the root of your C: drive, call it C:\C, for lack of a more creative name. Right-click My Computer and select Manage. click on the Disk Manage...

Other
Dec 24, 2004
Post comments count0
Post likes count0

Why does the system convert TEMP to a short file name?

When you set environment variables with the System control panel, the and variables are silently converted to their short file name equivalents (if possible). Why is that? For compatibility, of course. It is very common for batch files to assume that the paths referred to by the and environment variables do not contain any embedded space...

Code
Dec 24, 2004
Post comments count0
Post likes count0

How to open those plastic packages of electronics without injuring yourself

Small electronics nowadays come in those impossible-to-open plastic packages. A few weeks ago I tried to open one and managed not to slice my hand with the knife I was using. (Those who know me know that knives and I don't get along well.) Unfortunately, I failed to pay close attention to the sharp edges of the cut plastic and ended up cutting thre...

Non-Computer
Dec 23, 2004
Post comments count0
Post likes count0

Do you need clean up one-shot timers?

The CreateTimerQueueTimer function allows you to create one-shot timers by passing the WT_EXECUTEONLYONCE flag. The documentation says that you need to call the DeleteTimerQueueTimer function when you no longer need the timer. Why do you need to clean up one-shot timers? To answer this, I would like to introduce you to one of my favorite rhe...

Code
Dec 22, 2004
Post comments count0
Post likes count1

BOOL vs. VARIANT_BOOL vs. BOOLEAN vs. bool

Still more ways of saying the same thing. Why so many? Because each was invented by different people at different times to solve different problems. BOOL is the oldest one. Its definition is simply typedef int BOOL; The C programming language uses "int" as its boolean type, and Windows 1.0 was written back when C was the cool languag...

Code
Dec 21, 2004
Post comments count0
Post likes count0

Sometimes people don’t like it when you enforce a standard

Your average computer user wouldn't recognize a standards document if they were hit in the face with it. I'm reminded of a beta bug report back in 1996 regarding how Outlook Express (then called "Microsoft Internet Mail and News") handled percent signs in email addresses (I think). The way Outlook Express did it was standards-conformant, and I s...

Other
Dec 20, 2004
Post comments count0
Post likes count0

Don’t save anything you can recalculate

Nowadays, a major barrier to performance for many classes of programs is paging. We saw earlier this year that paging can kill a server. Today, another example of how performance became tied to paging. The principle is "Don't save anything you can recalculate." This of course, seems counterintuitive: Shouldn't you save the answer so you don't h...

History
Dec 17, 2004
Post comments count0
Post likes count0

How did Windows 95 rebase DLLs?

Windows 95 handled DLL-rebasing very differently from Windows NT. When Windows NT detects that a DLL needs to be loaded at an address different from its preferred load address, it maps the entire DLL as copy-on-write, fixes it up (causing all pages that contain fixups to be dumped into the page file), then restores the read-only/re...

History
Dec 17, 2004
Post comments count0
Post likes count0

Excellent blog about Windows and Unicode

Michael Kaplan has probably forgotten more about Unicode than most people know. He knows about the mysterious placement of the Won character in the Korean character set, and the same for the Japanese Yen character, what the invariant locale is, why Korean text sorts strangely if you pass the NORM_IGNORENONSPACE flag, and other strange and wond...

Other