“People care about things that are thoughtfully conceived and well made ... our success is a victory for purity, integrity -- for giving a damn.” ~ Jonathan Ive, Apple

Wow, I have to say, I’ve never gotten out of an airplane to push it when it was 58 degrees below zero.

I learned about jq yesterday. As their web page says, “jq is like sed for JSON data – you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.” (I learned about it via this tweet by Grzegorz Kossakowski, who I met at the Scala Summit in 2013.

Wow, I was just informed that the Scala Cookbook is still an O’Reilly bestseller. That’s cool.

I’ve been developing a new Scala application named Cato that requires some command-line parameters, and I just had to figure out how to configure Eclipse so my application would get those parameters. Doing this with Scala in Eclipse is different than configuring Java command line parameters in Eclipse, so I thought I’d share the recipe.

Fortunately it’s just a two-step process. First, click the drop-down icon next to the “Run” button and choose “Run Configurations”, as shown here:

Argot is the name of a Scala library that lets you read command-line options/arguments from a Scala application. (Presumably it will work with Java and other JVM-based languages as well.)

I’m trying to use Argot with an application of mine named Cato, and when I had problems getting Argot to work -- and then needed to pass command-line arguments to my application through SBT -- I decided to write this quick little test code and article.

Can you grow the size of your brain through meditation? This image comes from a story titled, “Mind of the Meditator,” in the latest issue of Scientific American.

(Introductory note: In the story that follows, the word “gate” is pronounced “gah-tay”.)

I was intently digging through the bananas in the grocery story, trying to find some that were to my liking, when I heard a woman’s voice say, “Excuse me, do you mind if I ask what that song is that you’re humming? It sounds familiar, but I can’t place it.”

I haven’t figured out where one town ends and the next begins around here, but this is a field of prairie dogs I saw while on a walk last week in either Broomfield or Louisville, Colorado. (The snow is gone this week. It usually doesn’t last very long.)

“Clean code always looks like it was written by someone who cares.”

Michael Feathers, author of Working with Legacy Code, quoted in Clean Code

A few Chicago Bears players talking about former head coach Lovie Smith, including the phrase, “Win for this man.”

As an experiment, I decided to create an @impure annotation for my current Scala project. The annotation is a “do nothing” annotation, so it doesn’t actually check the code in the way the @tailrec annotation works, for example.

What it does is serve to nag me. My plan is to put it on my Scala definitions when I create them. In theory it will bother me that they’re there, and then I’ll do something about them.

I just read an article about a “sum of the squares” algorithm, and thought for a moment how I’d write it in Scala. As usual, it’s pretty easy:

List(2,3,5).map(Math.pow(_, 2)).sum

You can also use Scala’s fold or reduce methods, but for this algorithm, using sum is easiest.

If I can’t tell it’s Monday morning any other way, I always know it as soon as I go to check my email. Whatever they do on Sunday night or Monday morning, it almost always results in down time.

Chapter 10 of the book, Learn You a Haskell for Great Good!, is titled, Functionally Solving Problems. In that chapter, the author describes a “Reverse Polish Notation” (RPN) calculator. If you ever used an old Hewlett-Packard (HP) calculator, you might know what that is. (At least that’s where I first learned about RPN.)

You don’t have to read it all yet, but some of that discussion is shown in this image:

I’m not a religious person in the traditional sense of the word, but I do like to visit old churches when I’m on vacation. I haven’t made it to Juneau, Alaska, yet, but when I do I want to visit the Shrine of Saint Therese. (I saw this photo on Twitter some time ago. I’m sorry, but I don’t remember who posted it.)

Here’s some source code for a Java method that lets you copy text (a String) to the clipboard on your operating system:

“No, no, no ... come on old man, just let me back up before you start walking behind me”, I mutter to myself, looking back behind the right side of my rental car. I had a twelve hour drive to get here, and now I need to move my car out of this parking space like the pretty girl at the front desk asked.

The two young men had been drinking in the open field in rural Kentucky most of the night. “Billy Ray”, Jimmy said, “ya know what I’m gonna do? I’m gonna shoot the next damn thing that moves.”

“Includin’ me, Jeemy?”, Billy asked.

“No, a course not you Billy. But anythin’ else, I’m gonna shoot it.” Truth be told, Jimmy knew it was late, and they’d likely just finish their beers and drunk-drive themselves home.