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

If you want to use the JavaPlot library from the Scala REPL, it’s pretty easy to get started with. Just download and unpack the JavaPlot distribution and then find the JavaPlot.jar file in the dist directory of the package. Copy that jar file to the current directory, and then start a Scala REPL session like this:

AppleScript FAQ: How do I find out what application elements can be scripted with AppleScript?

Open up the AppleScript Editor (Applications > Utilities > AppleScript Editor), then go to File > Open Dictionary, and select the application you want to learn more about. For instance, I just wanted to learn more about scripting iTunes, so I chose iTunes from the dialog that was display.

Here’s what that AppleScript Editor “Dictionary’ dialog looks like:

Scalala is a numerical linear algebra library for Scala, supporting rich Matlab-like operators on vectors and matrices, and a library of numerical and plotting routines. Scalala takes it inspiration from numerical programming environments such as Matlab and R, that can easily express linear algebra as simple expressions involving matrices, vectors and scalars. However, general purpose programming with richer data structures in these environments ranges from slow to painful. Scalala is designed to marry the syntax of interactive numeric environments, the performance of dedicated linear algebra libraries, and the flexibility of general purpose programming in Scala.”

Here’s a good article on highscalability.com on what we currently know about the WhatsApp architecture that Facebook bought.

I use highlighters a fair amount, and I can say, this is a great idea. I found it on this website.

As long as you’re talking about some physical thing that’s going to be built, I agree with this statement. If you’re talking about software that is easily updated, I don’t agree 100%. I prefer to get something that works out there, if only to a small test base, and then iterate on that.

Imagine that you have a method that requires an InputStream, and you want to test that method. How can you test it?

In the Scala Cookbook I wrote how your method can accept a Source instead of a File to make it easier to test, so I won’t write any more about that right now.

But if you have a method that accepts an InputStream and you want to be able to test it with a String, here’s what you can do:

Well played. :)

Monday, Monday, la la, la la la ... image from this link on Twitter.

The folks at huskyrescue.org continue to do a great job with their Facebook account. If you’ve ever had a husky, you’ve probably seen this in your rearview mirror.

I like “real” single- and double-quotes -- not the fake ones on your keyboard next to the Return key -- and after a little research, here’s how you can type them on your Mac OS X system: