-
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!
-
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, […]
-
Rockbox Files
Please see my Rockbox section for some files that I hope will be useful. I have daily builds for 4g and mini1g (fixed now– I’d done the patching incorrectly the first time) with Frequency Scaling turned off to help fix crashing bugs. Additionally, there’s a bootloader there that boots RetailOS first, instead of Rockbox. For […]