Ruby “glob”: How to process each file in a directory that matches a certain pattern

Here's some sample Ruby source code that shows how to do something with every file in a directory, where you only work on filenames that match a pattern you're interested in. For example, in my case I'm only interested in processing files that end with the filename extension WMA, so this first snippet of Ruby code shows how to print out the name of each file in a directory with the WMA extension:

Mac OS X Dashboard Widgets (intro)

I've been having a blast these last few days with Mac OS X Dashboard Widgets. Apple has assembled a nice collection of them, and they're all easy to install. Just download them (they seem to all be zip files), double-click the zip file to extract the contents, and then double-click the installer. Best of all, the widgets are free, fun to play with, and in some cases, they may even help your productivity.