If you’re ever in the Palmer, Alaska area, check out Sophia’s Cafe. I don’t know what their new building looks like, but I do know that their food is excellent. This is a photo of their French Toast from their Facebook page.

I thought Apple might push their developers internally to develop with their new Swift programming language, but I just did a search that shows they now have 30 Scala job openings. In December, 2013 Apple had six Scala job openings, and in April, 2014 they had 17.

As a quick note, I saw the PrintFlagsFinal Java/JVM option today, and thought it was interesting. I saw this command:

java -XX:+PrintFlagsFinal -Xmx64m -Xms32m -version 2>&1 | grep -i -E 'heapsize|permsize|version'

which yielded this output:

Background: I don’t know why, but without looking into it, all I know is that I could not use the Java Sound API from within SBT. Whenever I tried sbt run, I kept getting the following error message, even though I knew that my app and sound file worked when I packaged my Java application normally:

javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file

As part of the debugging process I created a little shell script named run.sh that contained these two lines:

This was said about Jeff Goldblum’s character Zach Nichols on the tv series Law & Order - Criminal Intent.

Twin Peaks often makes me smile.

I saw this on an episode of Continuum, and it reminded me of a way that I have always thought: You can fashion your future with your willpower.

Quick tip: To append when writing to a text file in a Scala or Java application, create your FileWriter with the append flag set to true, like this:

val bw = new BufferedWriter(new FileWriter(new File("/tmp/file.out"), true))
bw.write("Hello, world\n")

I just ran across this info on the spray.io website and wanted to remember it here. The image shows a couple of flags that can be used to show Java JVM garbage collection and hot spot compiler information. In particular the second flag shows when the hot spot compiler is “done”.

The current story is that Steve Jobs’ office at Apple HQ is still there, untouched, but I have always liked this image of his home office.

At the moment it’s not easy to find instructions on how to log output to a file using Grizzled-SLF4J in a Scala application, so I’m taking a few moments to show how this is done.

Grizzled-SLF4J dependencies

First, assuming that you’re using SBT, your build.sbt file should look like this:

“Show me your friends, and I’ll show you your future.” ~ Maurice Clarett

Quick tip: If you need to display a message dialog in a Java application, you can do so in as little as one line:

JOptionPane.showMessageDialog(jframe, "Hello, world");

If you don’t have a JFrame available, you can use null for the first argument. There are many more details and examples in this Java JOptionPane showMessageDialog tutorial.

Textexpander lets you create short snippets of text which it will replace with larger snippets. For instance, “;em” will be replaced with your email address when you type it.

Wow. It was 99 degrees about three days ago, and this morning I just woke up to find the first snow of the 2014-2015 season.

Need help finding your motivation to learn Scala? How about a $200K salary?

I haven’t worn a watch since the 1990s, and despite the new stuff from Apple, Google, and others, I still don’t see myself wearing a watch in the future. I’m curious to see how this plays out, whether the watches will be a bomb, or successful. Personally, I’m much more interested in products like SARAH.

One more funny Twitter post ... and now I better get back to work.