-
Creating an array of strings for an enum
A common issue in writing C based test tools is the desire to be able to show a user a list of all enums. This, of course, is technically impossible, as the mapping from enum to int is one way only. However, the following trick lets you create a two dimensional character array who’s index […]
-
New Section: C Stuff
I’ve been collecting nifty tricks and useful factoids about C, and I think I’ll start posting them here. Look for the first post sometime on Tuesday, with 3-4 posts weekly after that!
-
Ejecting Removable Media from the Command Prompt
How often have you wanted to be able to eject a CD, disconnect an MP3 player / USB key, etc., from the command line? With a small little utility (courtesy of Microsoft (and me)), you can!
-
Blogroll Added
Thanks in part to people like Jameel begging me for a link, I’ve added a blogroll (*shudder*… I hate that word!) to my site. Like all tabs, it’s collapsable if you don’t like it. I’ve tried to categorize those blogs I read frequently by their defining attributes, although being in one category doesn’t mean they […]
-
Limitting concurrent runs in PHP
Most PHP tasks are designed to be run concurrently, that is, several instances of the same task can run simultaneously. For example, my home page should be displayed to all viewers, even if they’re trying to access it at the same time. Other tasks, however, should only be run one at a time. For instance, […]