Alvin Alexander | Java, Scala, Unix, Perl, Mac OS X

Lately I’ve been in the process of “making the switch” from macOS to Linux Mint, and to that end, I just installed the Java 8 JDK/SDK, Scala 2.12, and SBT 0.13 on a new Linux Mint system, and I want to note here how I did that while it’s still fresh in my mind. Here are my notes in a compact form.

Guess. Apologize. Compensate. This is a nice slide from a talk by Jonas Bonér‏, CTO of Lightbend.

Guess. Apologize. Compensate.

Tried to use someone’s software library.
Documentation was bad, couldn’t get it to work.
Used someone else’s.

#haiku-ish

“Do not let the behavior of others destroy your inner peace.”

~ The Dalai Lama

Do not let the behavior of others destroy your inner peace

I’d like to meet the person who first drank milk from a cow. I’m curious about what led up to that decision.

Today’s mindfulness “lesson of the day” (mostly for myself) is a reminder to keep practicing, even when you don’t feel like it. You don’t get to choose when moments of enlightenment happen, so the best thing you can do is keep practicing so those moments will be possible when the right circumstances (karma?) come into alignment.

What happens is that over time, both the mindfulness and the enlightenment bits change the wrinkles in your brain, change your perspective and attitude, and cleanse the environmental conditioning of whatever happened to get you to this point. With continued practice you evolve (think “metamorphosis”) into a new person over time — this time a person of your own choosing, rather than a person conditioned by where and when you were born and lived.

(And who knows, maybe one day you’ll break free from the endless cycle of karmic existence, if you’re into that sort of thing.)

Namaste. ;)

“If testing costs more than not testing, don’t test.”

~ Kent Beck (via this twitter page)

wunderground.com says we might have 1-3” of snow on Friday. I think that would be the latest snowfall we’ve had at ground level (not in the mountains) since I moved to Colorado.

Snow expected in Louisville, Colorado, May 19, 2017

I first posted this definition of the word “Namaste” in January 2015. With my aunt passing away, I’m reminded of it today.

I honor the place in you
Where the entire universe resides.
I honor the place in you
Of love, of light, of truth, of peace.

I honor the place in you
Where if you are in that place in you and
I am in that place in me,
There is only one of us.

That definition comes from the excellent book, Polishing the Mirror, by Ram Dass.

Namaste.

On this day (May 16th) in 1990, Muppets creator Jim Henson died. He left this note for his children. (There’s a little more information at lettersofnote.com.)

Jim Henson's letter to his children

“Goddamnit!”

Every so often a woman in a lucid dream this morning yelled out like that, so after the fourth or fifth time I had to ask her about it. “Why do you keep saying that?,” I asked.

“Gets your attention, doesn’t it?”

“Yeah, I guess so.”

“There you have it.”

“There I have what?”

Ten years ago I moved to Talkeetna, Alaska, and just a few days after I moved into my cabin, a huge fire that was larger than the city of Louisville, Kentucky started to the west of Talkeetna. I took this photo at the top of the hill that overlooks the area.

Huge fire in Alaska (June, 2007)

Meanwhile, in Alaska ... a moose at a McDonald’s. (Image from this pinterest page.)

A moose at a McDonald's in Alaska

Back in 2013 I was staying in a hotel in New Mexico, put a coffee cup next to the tv, started pouring cream, and static electricity pulled the cream into the tv. Cool.

Coffee, cream, and static electricity

Thought of the day: Some people are hard to love. I’m sure there are more categories than this, but the people I’m thinking of today are either mean, negative, self-pitying, or in other cases, they just don’t give you anything to love.

An important part of this thought for me is that none of this has to do with what a person looks like, it’s all about their attitude.

“Program testing can be used to show the presence of bugs, but never to show their absence.”

~ Edsger Dijkstra

If you want to copy the current macOS Terminal path to the clipboard, you can do it with this simple command:

$ pwd | pbcopy

pwd prints the path to STDOUT, and pbcopy reads that and copies it to the macOS clipboard. Once the path is on the clipboard you can paste it into your other applications.

Of course you can also create an alias, like this:

alias path="pwd | pbcopy"

I was hoping to release the next version of my book on Scala and functional programming as a free PDF download tonight, but I ran into a couple of problems that I want to fix before I release it, and I’m too tired to do that tonight. I hope to release it tomorrow (Monday), and it should include over 600 pages, with 54 chapters and two appendices.

More of my Scala/FP book, coming soon

A software tool created by the NSA to hack into Microsoft Windows systems has been turned into a ransomware worm that has infected and disabled hundreds of thousands of unpatched Windows’ systems. Read more at bbc.com if you’re interested.