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:

The Nasdaq exchange has hit a wall recently. I keep looking at stocks to invest in, and then I think, “Not right now.” Some times the best thing you can do with your money is nothing.

This conference, coming up in Boulder, Colorado in nine days, looks good.

April 10th, 2014: I think winter is finally over.

Well played, Photoshopper. :)

I sure hope Jony Ive gets involved in Mac OS X 10.10. I have the feeling whoever made design changes starting with Mac OS X 10.7 was involved with Windows Vista (which means I think that there were some dumb decisions).

I miss Michael Clark Duncan from The Finder (see Sun-Tzu, life, Buddha), but this quote from one of my favorite episodes of Medium is very good.

This Siberian Husky might look mean, but if you’ve ever had one, you can tell that he (or she) is probably just falling asleep.

Sencha Touch seems to have some problems with its textareafield, especially with sizing and resizing the height in a form. The best solutions I’ve found so far are: