Friday, October 19, 2007

Fun new stuff

Over the last couple of days, I’ve posted several new programs on my site and updated a couple of existing ones.

Since I’ve been working with C# now instead of Java, I decided to redo my old FunLibs program and add a few new stories to it while I was at it.

In my personal opinion, it looks a heck of a lot better than the java version, and I added the capability to save the story to a text file (not a huge deal since you could just copy and paste the story into a file, but I thought it was a nice touch).

In addition, I added error checking to Sorter and Zipper. I don’t know about you, but I thought it was kind of important that my programs die gracefully if they encounter an error while mucking about with files (especially if I’m not the only one using it).

The new programs that I’ve posted are things I’ve been using myself for about 6 months or so now. I just took a little time to polish them a bit more and decided that I might as well share them since someone else might get some use out of them as well.

Prepend adds a string to the beginning of all of the filenames in the directory that it’s called in.

Renamer replaces one string in all of the filenames in the directory that it’s called in with another string.

Spacer replaces all of the underscores in the filenames with spaces.

Underscore is the opposite of Spacer, replacing all spaces in filenames with underscores.

They’re written in the Unix tradition of simple programs that do one thing and do it well. They get used quite a bit by me, so I thought that there might be others who would appreciate them as well.

Prepend, Renamer, Spacer, Underscore, and Zipper all have both .rb versions and windows exe versions thanks to a handy little program called rubyscript2exe. Unfortunately, for some reason, it won’t work properly with Sorter, so it only has a .rb version available at the moment.

Feel free to use them. They're all on the Programs section of my website, and are all distributed under the GPL (version 2 only).

As always, if you have any suggestions, questions, comments, bug reports, or just want to drop me a line to say “hi”, my email address is on the website.

Current mood: tired
Current music: Metallica – Unforgiven II

No comments: