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

Every once in a while I query the job search engines to see what’s out there these days. I first did this in February, 2013, and have looked at them again every few months since then.

I especially like to look at Dice.com because most of those jobs are for contractors, and when businesses can't find full-time employees with certain skills -- such as new programming languages -- they hire contractors. This is also an indication of new projects that businesses are staffing up for.

Update: July 2, 2013. At the end of this article I made a list of some of the most important points that Mr. Johnson made during his keynote. See the “Excellent points” section at the end of the post.

@SpringRod’s Scala Days keynote presentation is controversial, to say the least. See the red arrow in this image:

If I had a choice in the matter, one of these images would have been used for the Scala Cookbook cover. (I thought they were a nice combination of “Alaska” and “Scalable”.) In the end, I appreciate the O’Reilly folks putting an endangered animal on the cover. Here’s some information about the O’Reilly Animals program: http://animals.oreilly.com

Wow, investing with PIMCO was a big waste of time and money. Fortunately I didn’t invest much money with them. (These results came at a time when the S&P 500 rose from 1,300 to over 1,600.)

When it comes to investing, I’m done with anything other than buying ETFs and individual stocks myself.

As a new author, it’s a little weird to see things like this. It makes me curious how Amazon came up with this Scala Cookbook + HTML5/CSS3 book bundle.

Scala developers: Don't be afraid to use Scala as a "Better OOP" language than Java.

As I wrote on Twitter last night, "My thinking about Scala jives with @springrod: Help Java devs learn Scala as a better OOP language. If later on they like FP, cool."

It looks like there may be a couple of ways to restart Mac networking -- AirPort to be specific -- from the Mac command line. The first is the old-school approach of using the ifconfig command. This command shuts down the en0 or en1 interface, which is typically the AirPort wireless interface. On my MacBook Air it's en0, so I'll show that here:

sudo ifconfig en0 down

You bring it back up/online in the same way:

When using a Mac OS X computer, it's easy to forget that it's just Unix running under the hood ... until your iMac graphics card dies and all you can do is use single-user mode, which has no GUI ... then you're reminded very quickly that it's all just Unix.

Take emptying the trash, for instance. Graphically, you right-click the Trash Can icon, then select the Empty menu option. From the Mac command line (Terminal) you just do this:

rm -rf ~/.Trash/*

It's funny how simple that is from the command line.

Warning: This article is about trying to accomplish some things in Mac single-user mode when your system is in trouble. In this article I assume that you're an experienced Unix administrator, so I don't bother to explain each command. If you don't know what the commands in this article do, don't use them, just take your Mac to an Apple store or Mac dealer. Be careful with all of these steps.

Dateline June 21, 2013, Talkeetna, Alaska: "The Sun does not rise."

Who's using Scala? With the recent blog post by LinkedIn (LinkedIn is using the Play Framework), showing that they're using the Play Framework, I thought I'd take a quick look at who we know is using Scala these days.

According to the Scala in the Enterprise page (and general knowledge), the following companies are using Scala:

[toc hidden:1]

Here’s a 30-second “ping-pong” demo using Akka Actors:

The source code

If you want the source code, you can get it from the GitHub link shown at the end of this post. First, here’s a quick description of it.

The code is in two files, PingPong.scala and PingPongPanel.scala.

PingPong.scala contains three actors:

(Click the image to see the full-size view. Better yet, right-click the image and open it in a new window so you can read the following discussion.)

If you’re just getting started with Scala and/or the Simple Build Tool, I hope the following video will help. It’s a five-minute introduction to the Simple Build Tool, or SBT:

I hope that was helpful. I'll try to make more Scala and SBT videos as time allows.