Posts by this author

Apr 25, 2005
Post comments count0
Post likes count0

Welcome to Millennium Tower, due for completion in May 2005

The friend who brought to my attention the guide to British pub etiquette reports that Portsmouth's Millennium Tower, centerpiece of the Millennium Project, is still not finished, due for completion (scroll to the end of the article) in May 2005. To disguise the embarrassment, they've renamed it to Spinnaker Tower, thereby—as the Hampshir...

Non-Computer
Apr 25, 2005
Post comments count0
Post likes count0

What is the HINSTANCE passed to SetWindowsHookEx used for?

The function accepts a parameter. The documentation explains that it is a handle to the DLL containing the hook procedure. Why does the window manager need to have this handle? It needs the handle so it knows which DLL to load into each process when the hook fires. It injects the DLL you pass, then calls the function you pass. Clearly the fu...

Code
Apr 22, 2005
Post comments count0
Post likes count0

The new scratch program

I think it's time to update the scratch program we've been using for the past year. I hear there's this new language called C++ that's going to become really popular any day now, so let's hop on the bandwagon! The basic idea of this program is the same as our old scratch program, but now it has that fresh lemony C++ scent. Instead of keeping ou...

Code
Apr 21, 2005
Post comments count0
Post likes count0

Sweden's Worst Driver

Swedish Television announced a new reality-based television program called Sweden's Worst Driver (Sveriges värsta bilförare). I've done a bad job of translating some excerpts: TV4 has gathered seven of Sweden's worst drivers and subjects them to a series of tests and challenges. Those who complete each exercise the best get a prize and ...

Non-Computer
Apr 21, 2005
Post comments count0
Post likes count0

The Itanium’s so-called stack

Last year I alluded to the fact that the Itanium processor has two stacks. The one that is traditionally thought of as "the stack" (and the one that the register refers to) is a manually managed block of memory from which a function can carve out space to use during its execution. For example, if you declare a local variable like then that buf...

Code
Apr 20, 2005
Post comments count0
Post likes count0

What is the DC brush good for?

The DC brush is a stock brush associated with the device context. Like the system color brushes, the color of the DC brush changes dynamically, but whereas the system color brushes change color based on the system colors, the color of the DC brush changes at your command. The DC brush is handy when you need a solid color brush for a very shor...

Code
Apr 19, 2005
Post comments count0
Post likes count0

When people ask for security holes as features: Hiding files from Explorer

By default, Explorer does not show files that have the flag, since somebody went out of their way to hide those files from view. You can, of course, ask that such files be shown anyway by going to Folder Options and selecting "Show hidden files and folders". This shows files and folders even if they are marked as . On the other hand, files that ...

HistoryWhen people ask for security holes as features
Apr 18, 2005
Post comments count0
Post likes count0

Project update: Voyage to Our Hollow Earth

In December 2003, I reported on Steve Currey's expedition to the hole at the top of the earth, which at the time was scheduled for June 26, 2005. But on May 6, 2004, the site rescheduled the trip for Jun 26, 2006 with no explanation. The reservation form reminds you that the 25% deposit is non-refundable. Far be it from me to suggest that thes...

Non-Computer
Apr 18, 2005
Post comments count0
Post likes count4

What is the HINSTANCE passed to CreateWindow and RegisterClass used for?

One of the less-understood parameters to the function and the function is the (either passed as a parameter or as part of the structure). The window class name is not sufficient to identify the class uniquely. Each process has its own window class list, and each entry in the window class list consists of an instance handle and a class nam...

Code
Apr 15, 2005
Post comments count0
Post likes count0

News flash: Everybody has to pay income tax

NFL rookies are required to attend "How not to mess up your life like those other professional athletes" training. They learn about such things as sexual harassment, AIDS, common-law marriage, and, of course, taxes. Kendrell Bell, a Pittsburgh Steelers linebacker, tells of his great awakening to the verities of income tax: "I got a million-dollar...

Non-ComputerNews flash