Posts by this author

Feb 23, 2004
Post comments count0
Post likes count0

Invalid thread and process IDs

Perhaps you want a value to use as a sentinel, which you want to be guaranteed is never a valid thread ID or process ID. What values can you use? Nothing is explicitly written about this topic, but you can put on your logic cap and figure it out. If you need an invalid thread ID, you can use zero. How do you know that zero is an invalid thr...

Code
Feb 21, 2004
Post comments count0
Post likes count3

Raymond's comment policy

Okay, I was hoping it wasn't going to be needed but it takes only one bad apple... Here are the ground rules. Things that increase the likelihood that your comment will be edited or deleted: If a wave of comment spam is under way, I may choose to moderate or even close comments until the problem subsides. More rules may be added later, but ...

Non-Computer
Feb 19, 2004
Post comments count0
Post likes count1

Sorry the posts are late lately

Somehow the server is in a wonky state and my autopilot script that posts a new article at 7 every morning is getting error 500 back (internal server error). So I'm posting manually for the nonce. Expect erratic posting times until the problem is resolved.

Non-Computer
Feb 19, 2004
Post comments count0
Post likes count1

No code is an island

Norman Diamond noted in a comment that on Windows 2003 Server, the Display Adapter Troubleshooting slider still lists "full acceleration" as the recommended setting even though the default for Server is "full minus one". This is one of those "Oh, that's an easy change" bugs. The discussion probably went like this: Some guy whose idea this was...

History
Feb 18, 2004
Post comments count0
Post likes count1

Why are RECTs endpoint-exclusive?

Endpoint-exclusive RECTs and lines are much easier to work with. For example, the width of a rectangle is , and its height is . If rectangles were endpoint-inclusive, then there would be annoying +1's everywhere. End-point exclusive rectangles also scale properly. For example, suppose you have two rectangles (0,0)-(100,100) and (100,100)-(200,20...

History
Feb 17, 2004
Post comments count0
Post likes count2

GetDialogBaseUnits is a crock

Each dialog can have different base units, so it's meaningless to have a global converter.

Code
Feb 17, 2004
Post comments count0
Post likes count2

The social skills of a thermonuclear device

Somebody@somewhere.else described me as having the social skills of a thermonuclear device. I don't remember the incident in question, but I'll have to accept that it happened. I have a very low tolerance for laziness. If you come to me for help, I expect you to have done your homework. (Though I try to scale my expectations to your position. If ...

Non-ComputerThe social skills of a thermonuclear device
Feb 16, 2004
Post comments count0
Post likes count1

So what's to do in Sweden?

Here is where Raymond gets to abuse his power as a blogger to get some free travel advice. I will likely travel to Sweden in mid-March, with a whopping total of five months of Swedish under my belt. I'm sure I will embarrass myself horribly, but that's sort of the point, after all. The question is, "So what's to do in Sweden?" I was thinki...

Non-Computer