26 November 2007

Picture Filer: A free Java program for naming and sorting image files

I made this program to go along with my process for handling incoming digital pictures, but I hope you might find it useful also.
I copy files from my camera in to a working directory, and bulk rename them using my Nautilus script: rename-with-exif-date.sh. This gives me a bunch of files with a timestamp in [...]

11 November 2007

Displaying a Scaled Image with Java Swing

I'm working on a small application to help me with naming and sorting my pictures, so one of the basic things it needs to do is load and scale an image. Found lots of information here and there on this, and this post is to share what I came up with.
When searching around trying [...]

10 November 2007

NetBeans Gotcha: GUI custom component problem when package and class named the same

Let's say you have a project with package Example, and in that package you have:

Example.java // troublemaker!
ExampleUI.java // "form" - extends JFrame
LabelExample.java // extends JLabel

One of the cool things about the Matisse GUI Editor in NetBeans is that you can add LabelExample.java as a [...]

4 November 2007

Code Format Helper for WordPress (Java Program)

Displaying code on a web page can be tricky, and even trickier if you use WordPress. You may have noticed in WordPress that straight quotes turn in to curly quotes, multiple dashes turn in to en dashes and em dashes, and so on. While this may make our posts look prettier, it does [...]

29 October 2007

NetBeans Update, Briefly and Vaguely

Following up on my previous, surprisingly popular post about NetBeans, I finally wrote a Java GUI program with it. Simple program, but the writing of it confirmed my initial impression that NetBeans will be a good Java IDE for me. I've been avoiding the learning curve of Java GUI, but this weekend I [...]

14 September 2007

Celebrating Software Freedom Day: Check out some newly emancipated AI Java example code

An objection I've had to many programming books and web sites is that they don't make sample code available under a free software license. This is within the rights of the author, of course, but it seems counter to the spirit of teaching and sharing knowledge to restrict the use of example code.
A writer [...]

28 August 2007

Moving to NetBeans (from Eclipse)

NetBeans Projects Pane
I'm trying out NetBeans 5.5.1 as a Java IDE and I'm very impressed so far. Thought I'd cough up some related thoughts on programming environments and free software, mixed with some personal history:
MS Visual Basic
I began my corporate programming career using Visual Basic 4, and moved on up to VB6, which I continued [...]

29 June 2007

PermutationIterator.java (in honor of GPLv3)

To celebrate this great day, here's a little bit of free software, released under the terms of the GNU General Public License, version 3: a Java class I wrote to find all permutations for a given string. I may later post some more in the way of documentation, but for now, por ejemplo:
PermutationIterator p [...]