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

New York Times Bestseller!
TED Talks:
The Official Guide

As the ExtremeTech article states, “The curvy masterpiece, called the Vision G-Code, is covered in special multi-voltaic paint that can generate fuel from both solar and wind energy.”

As a quick note, I use code like this in my Mac/Java/Scala applications to determine where I can put my application data files on a user’s Mac OS X filesystem:

Hello, new Amazon Echo. And sadly, “Goodbye, Sarah”. Actually, I say that somewhat jokingly. I’ve come to appreciate that Sarah III has a large output display, because it gets boring listening to a computer voice sometimes, especially when it’s reading stocks and news reports.

In yesterday’s post titled, How to execute AppleScript from a Java or Scala application, I shared the following Scala method, which isn’t very functional:

Maybe the press/media just likes to post photos of this of Jay Cutler, but after I’ve seen so many of these, I had to think today that maybe Jay Cutler hates his job, and needs to get out of football.

If you ever wanted to see how easy it is to create a form using the JGoodies FormLayout, this code shows a simple example:

I just learned that there is a wild animal sanctuary here in Colorado, about 30 miles east from my location.

If you ever need to execute AppleScript from a Java or Scala application, this code shows how to solve the programming part of this problem.

Given an AppleScript command as a Scala multiline string, like this:

// press the `fn` key twice
val asCommand = """
tell application "System Events"
    key code 63
    key code 63
end tell
"""

you can execute that command by calling this executeAppleScriptCommand method:

Yeah, go ahead and insert a Windows disk into something there. (image from twitter)

“You have to be a little crazy to be successful.”
~ New Chicago Cubs manager Joe Maddon. (image from this espn article)

I used the following Scala source code to build a semi-transparent dialog (a Java JFrame, actually) for the second version of Sarah:

Why don’t more people work as programmers? Content from Quora (via Forbes).

A clever addition to the Chicago Cubs logo, following the hiring of new manager Joe Maddon.

My favorite candidate of the 2014 political season.

I don’t know the original source of this, but I just saw it on a friend’s Facebook page. Very clever, especially if you live in a cold area (Alaska, or the mountains here in Colorado come to mind), where they’ll last a few days.

The Africa without Ebola. From the Washington Post.

New York Times Bestseller!
TED Talks:
The Official Guide