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.

Update: Possible alternative

I haven’t looked into this yet, but it may be possible (and easier) to install OpenJDK rather than Oracle’s version of Java (which I describe below). I describe that process on my notes on how to configure a new Ubuntu server, but the basic command to install the OpenJDK JRE is:

apt-get install default-jre

and the command to install the OpenJDK JDK/SDK is:

apt-get install default-jdk

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

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

“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.

“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?”

Back on the first day of June, 2007, I moved to Talkeetna, Alaska, and just a few days after I moved into my cabin, a huge fire that was larger than cities like Louisville, Kentucky or Denver, Colorado, 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.

As a quick “note to self,” to get the Share Buttons module by AddToAny working in Drupal 8, I followed these steps:

- install the AddToAny module
- configure permissions so i could work with it
    - admin/people/permissions
- configure AddToAny as desired
    - admin/config/services/addtoany
- create a block, add it to a region (such as Content)
    - i actually created a block, then modified
      my theme to show AddToAny between the Contents and
      the Comments

The key to getting AddToAny was knowing to go to admin/structure/block and then selecting “Place Block” to create an AddToAny block. Not knowing that I had to do that slowed me down for quite a while.

To show how far my diet has come, on May 13, 2013 I wrote this on Facebook: “Huh, the doctor was right. They do have vegetables at my grocery store.”

These days (May, 2017), 80-90% of my diet is organic vegetables.

1-800-Flowers should be renamed to 1-800-NO-Flowers, because an order I placed on the Tuesday before Mother’s Day — which I paid extra to have delivered on Friday — won’t be delivered until after Mother’s Day. Either they or FedEx screwed up the delivery, and now FedEx won’t deliver the order until next week, so with 36 hours left before Mother’s Day, 1-800-NO-Flowers-For-You! won’t do anything to correct the problem.