Scala, Java, Unix, MacOS tutorials (page 267)

A very cool Raspberry Pi cluster running Akka and the Play Framework. More info at this tweet.

This article shares the graph shown that says the “War on Drugs” isn’t working. That appears to be true, but unfortunately you can’t really know that it’s true because there is no control group. What I mean is that we have no idea what the drug addiction rate would be like if we had not spent all this money on this so-called war. Maybe the rate would be 1.3%, or maybe it would be 5%; we don’t know.

A good note about scouting pitchers, from this link.

Firing people is hard. But it becomes a little easier when you learn this lesson.

Stressed out MBAs turn to meditation to help with stress and anxiety. The rest of the story is here.

Well played, Mr. Iry.

If you’re ever in the Palmer/Wasilla, 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.

The “algorithm of success” (in life).

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:

I don’t know why, but without digging into it more, all I can say right now is that I can’t use the Java Sound API from within SBT. Whenever I try running sbt run, I keep getting the following error message, even though I know that my app and sound file work fine when I package 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.

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.

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: