java

recent posts related to java, jdbc, spring, etc.

Mac speech recognition - How I control my iMac with speech recognition

Mac speech recognition software: I just had a fun interaction with my iMac that went a little like this:

Al is standing in kitchen, peeling an avocado. It's a little quiet, so he says, "Computer, play the movie Juno."

The computer says something snarky like "Yes, master" (or in Alaska, "You betcha"). In a few moments the movie begins playing.

Al smiles.

Pure Java speech recognition

Summary: There is a Pure Java speech recognition project named Sphinx-4, which looks very promising. You can easily run their WebStart demo, and recently I've developed my own Java speech recognition app on top of Sphinx-4 to control my Mac OS X system.

So far this looks pretty sweet ... if you're interested in programming with speech recognition, a project named Sphinx-4 provides a Java speech recognizer, i.e., a speech recognition server written entirely in Java.

A Java CRUD generator (and PHP, and Ruby, and ...)

Way back in the late 1990s, I wrote a Java CRUD generator, which was based on the work of someone else. It was a static code generator, but like future dynamic frameworks like Ruby on Rails, CakePHP, and others, it scanned the database and generated source code from the database table definitions.

Using the True License ObfuscatedString class

One of the things that isn't immediately obvious when using the True License Java license key manager software library is how to use the ObfuscatedString string class. In short, you're supposed to use this class to help obfuscate Java String objects that you might ordinarily include directly in your Java source code. If you're trying to protect your Java class (your intellectual property, or "IP"), you want to obfuscate these strings, otherwise they can be easily found by people trying to hack your code so they can use it freely.

A True License example - Part 2, the Java Software License client

(This is my Java TrueLicense example, Part 2. A link to Part 1 of this example is available below.)

Mac Java - Open a URL in a browser

A quick note here that if you need some Java code to open a URL in the default browser on a Mac OS X system, I just ran across this Java method in one of my programs that should do the trick:

Java architect's thoughts on Java 7 and Java 8

I just ran across this link in my email about the Chief Architect of the Java Platform Group at Oracle, with his thoughts about how to proceed on the Java 7 and Java 8 platforms releases. I haven't paid attention to the "New Java Features" world in a while, but it's a short, interesting read about how they're thinking about proceeding with the Java 7 and Java 8 platform releases.

Options to put your Java application name on the Mac menubar

If you don't do anything to your Java application on a Mac OS X system, your Java class name will appear in the Mac menubar. Of course, this isn't a good thing. There are a couple of things you can do to get the name of your Java application on the Mac menu bar, and I'll share all of the ways I know how to do this. I've listed these techniques in order here from "easiest" to "best".

A Java Extract Interface refactoring example

Java Refactoring FAQ: Can you provide an example of the Extract Interface refactoring process?

While working on a Java Swing development project recently, I had written a couple of controllers (as in controllers from the Model/View/Controller pattern), and I was about to write some more, when I realized that if I refactored my Java source code I would have a much better design -- source code I code more easily maintain.

The pattern I saw repeated in my Java controller classes was that they all had similar method names, something like this:

A Java JScrollBar example

I took a little time today to add some new features to my "JustWrite" text editor, and one of the features I'm experimenting with is an animation similar to the current horizontal scrolling area shown at the top of Apple's Mac web page. When you first hit that page the scrolling area is offset a little bit, and then in an animation the scrollbar moves more to the center of the scrolling display area.

Syndicate content