Do you have an arrangement in your family where everyone picks the name out of a hat and the name you pick is the person you'll buy a Christmas gift for? My family does this, but it's always been a bit of a pain because not everyone involved can be at the same place at the same time in order to pull names out of a hat. Inevitably someone has a name pulled for them, which puts a damper on the whole surprise and suspense part of the fun.To make things easier, I wrote a program that pulls a ...
You provide the acronym, we'll make up the meaning!I've written a PHP script I call a"[Backronym](http://en.wikipedia.org/wiki/Backronym) Generator". The purposeof this script is for the user to enter a word that is intended to be theresulting abbreviation of an [acronym](http://en.wikipedia.org/wiki/Acronym),and upon submission the script will "make up" the acronym's constituentcomponent words.For instance, if you enter the word: TESTThe result might be:Trident Earache Stabbed Twang(This really was once generated by the script) ...
Last weekend I upgraded to Mac OS X [Leopard](http://www.apple.com/macosx/), and one thing that doesn't seem to work with Leopard is GrowlMail* (a [Growl](http://growl.info) [Extra](http://growl.info/applications.php)). After missing [Growl Notifications](http://growl.info/about.php) for [Mail.app](http://en.wikipedia.org/wiki/Mail.app) a lot, I decided to search for a solution. After some googling, I found [this](http://blog.insidesystems.net/articles/2007/08/17/growl-mail-app-and-applescript) on [Kevin Way's](http://blog.insidesystems.net/) blog: ...
I've release a new version of the YUBNUB command line tool for Windows. This new version adds the following new features: - The --plain option will now "word wrap" (at column 80) - A new option "--raw" will output the verbatim HTML to the consoleFor a complete description of the [YUBNUB command line tool for Windows](http://www.opbarnes.com/blog/2005/06/24#yubnub), read the blog entry I posted when I originally released the tool [here](http://www.opbarnes.com/blog/2005/06/24#yubnub).You can download the latest version of the program and the source code from [here](http://www.opbarnes.com/downloads/yubnubcmd_win.zip). ...
Here is an implementation of a thread-safe* C++ singleton template. It's small, simple, and easy to use. You can download the code snippet from here: Singleton.zip * Only construction of the class instance created by the singleton is made thread-safe. Using members of the class are not specifically made thread-safe, and remains the programmers responsibility if necessary. ...
Recently I came across a situation where I needed to search for the first occurrence of any one of a number of sub-strings inside a rather large string. Using strstr would have been quite inefficient because the string would have been searched from it's beginning for each sub-string until one was found. Hence I wrote MultiStrFind. This is a C++ function* that takes the string to be searched and an array of sub-strings to search for within the string as parameters. A pointer to the first occurrence of any one of the sub-strings will be returned. ...
Here is a little command line tool I wrote called YUBNUB.EXE. The program runs on Windows 95/98/NT/2000/XP/2003 and up. This program is a windows command line interface to yubnub, which itself is a command line for the web. You can find out all about yubnub here.Here are the tool's options:USAGE: yubnub [options] [yubnub command line] ...
A couple of years ago I started to write a program called HEATTACK. I found the source code the other day and I realized how far along I ended up in the effort. The game is completely playable, minus a few key features. Apparently I never added a way to die, so it seems that the player has unlimited lives. Also, I never added a scoring system, so you can blow things up to your heart's content and never earn a single point. With all that said, it's really quite a fun little game. ...
Here is a little command line tool I wrote called ISADMIN. The program runs on Windows 95/98/NT/2000/XP/2003 and up. Just run this little program from the command line and it will tell you whether or not the logged in user has administrative rights. The utility has a silent mode which makes it a perfect tool for installers and batch files. In addition to the tool's output (which is not displayed in silent mode), you can determine whether or not the user has administrative rights based on the error level returned on program exit (errorlevel 0 means that ...
Here is a little command line tool I wrote called CPUSPEED. The program runs on Windows 95/98/NT/2000/XP/2003 and up. Just run this little program from the command line and it will report your computer's clock speed in megahertz. This basically tells you how fast your computer runs. If you think you own a 2.8 gigahertz computer, this program should report something like:The clock speed is: 2789I've also decided to release the source for this program. Feel free to use the program or its source code in any way you wish. ...
Copyright ©2004-2009 O. Patrick Barnes. All rights reserved.