In honor of having more snow across the United States in mid-April.

There are some great Git learning resources at this Tower link.

I passed out again yesterday, but I think US Airways had a worse day than I did. Something went very wrong with this “customer service” tweet.

I don’t know if there is a better way to do this yet, but if you want to select one record from a database table using the Play Framework and Anorm, I do know that this code works:

“I’ve failed over and over again in my life, and that is why I succeed.” ~ Michael Jordan

I learned yesterday that people in olden days used to make up songs to help remember things.

I learned today that I'm not very good at making up songs (at least not while I'm awake).

Here’s a quick look at how to run Play Framework “model” methods from the Play console. In my case, my model methods are Anorm database access methods, but you may be accessing MongoDB, Cassandra, CouchDB, whatever.

First, move to your Play application directory and start the Play interpreter:

$ play

Then start the Play console:

[MyApp] $ console

Your prompt will now look like this:

It’s hard to find good Sencha JSON encoding and form POST examples, so here’s a quick collection of JSON examples I found while working yesterday. I know that these examples work with Sencha ExtJS; they may also work with Sencha Touch.

JSON encode a JavaScript object

First, the following example comes from this page, and shows how to convert a JavaScript object to JSON in an AJAX request:

Here’s a really good Scala recursion tutorial. The use of graphics here is a great idea to explain the concept.

Interesting stat of the morning.

Here’s a nice article on the Cubs farm system, and how the St. Louis Cardinals have been successful despite not having a top-10 pick in 16 years. “Anybody can pick out a No. 1 selection and think that’s a great deal,” ex-Cubs general manager Dallas Green said during a recent conversation. “But you make 30 or 40 selections [in a draft], and three or four of those guys have gotta play. They’ve gotta be good players along the way. That’s what scouting is all about. You can’t take 40 or 50 kids [each draft] and not have the 30th selection be a good player somewhere along the line.”

When I said a few days ago that I thought winter was over, what I meant to say was that it was going to snow again.

DevZendo has a cross-platform app launcher builder for Java/Scala/JVM apps. It looks like it’s based on Maven, and builds applications for OS X, Windows, and Linux. Their Manifesto for Software Development is also interesting.

When you’re writing Play Framework controller actions, you’re typically going to be returning a Play Results, with the most common result being Ok. However, your controller actions can return many different result types. This table shows some of the most common result types that you can use instead of Ok:

As a quick note to self, here’s how to just printed some HTTP request information in a Play Framework controller action:

As a quick note to self, I used the following Ant build.xml file in 2014 to build my Wikipedia Reader client application on Mac OS X 10.9 with Java 7.x: