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

If you ever watched the tv show Northern Exposure, you might find this funny. It’s from the episode where Chris faces an extradition trial, and Mike uses an “identity” defense (“This Chris Stevens is not the same Christ Stevens that left West Virginia ...”).

NX was the first show I can recall that got me interested in Alaska, and philosophy.

Do you have any idea what you're going to say?

A good quote from Harold Ramis about the characters in his movies.

Harold Ramis: “My characters are rebels”

During a summer many, many moons ago, I helped to build the bookshelves (“stacks”) in a library at Texas A&M University. I don’t remember its name, but the building was related to the animal/veterinary sciences program there.

My lasting memory of that project is that one of my coworkers would sing this song every day, “Hush, hush, keep it down now, voices carry.”

Hush, hush, voices carry

“When the soul becomes the warrior, all fear melts, as the snowflake that falls upon your hand.”

~ from the Kung Fu tv series

I don’t know if Twin Peaks ever makes me laugh, but it often makes me smile.

Twin Peaks' cherry pie

One thing I learned on vacation this week: It doesn’t hurt to ask for the “biggie” hotel room. Turns out they had a really nice discount on this nice size suite, which was much more comfortable than the usual little hotel room. (This room is a “mini suite” at The Lodge at Santa Fe, in Santa Fe, New Mexico. From March, 2015.)

The biggie hotel room (Santa Fe, New Mexico)

A Gimp “oilified” view of Nolan Ryan’s windup. I got the original image from this YouTube video.

Nolan Ryan’s windup, from his fifth no-hitter

I’ve often wondered about the difference between the terms emptiness and interdependence in Buddhism, and came across this excellent Accidental Buddhist blog post recently, which includes this paragraph about a conversation the Dalai Lama had:

I was just reminded that the Visual Scala Reference is a very cool project.

Visual Scala Reference project

Linux crontab FAQ: How do I schedule Unix or Linux crontab jobs to run at intervals, like “Every five minutes,” “Every ten minutes,” “Every half hour,” and so on?

Solution: I’ve posted other Unix/Linux crontab tutorials here before (How to edit your Linux crontab file, Example Linux crontab file format), but I’ve never included a tutorial that covers the “every” options, so here are some examples to demonstrate this crontab syntax.

Somehow I’ve managed to write 620 pages of the second edition of the Scala Cookbook without knowing about AsciidocFX, a WYSIWYG Asciidoc editor.

AsciidocFX, a WYSIWYG Asciidoc editor

My software tells me that I took this photo of the big open sky here in Broomfield, Colorado on January 26, 2014.

Big open sky, Broomfield, Colorado

I’m a fan of many Tom Hanks movies, and I’m also a fan of his comments in regards to COVID-19:

“We don’t know what’s going to happen with COVID-19. The idea of doing one’s part, though, should be so simple: Wear a mask, social distance, wash your hands,” Hanks told host Hoda Kotb. “That alone means you are contributing to the betterment of your house, your work, your town, your society as a whole. And it’s such a small thing. ... It’s a mystery to me how somehow that has been wiped out of what should be ingrained in the behavior of us all.”

People who knew us at the end might be surprised by this, but one thing I wish I had asked my business partner more often was, “How are you doing? Really, how are you?”

While working with the sbt and Mill build tools recently, and updating Scala and Java versions like crazy, I’ve been trying to verify some things in my Scala applications. Just now I wrote this little Scala 3 / Dotty application to print out all system environment variables and properties:

Kind of a weird situation: I’ve been thinking about moving lately, and that led to the thought that if a doctor told me I only had six months left to live, I know where I would live. But I generally like a lot of things about Colorado, so I live here. Hmm...

SBT FAQ: How do I show the Scala version that SBT is using?

Short answer: Issue the scalaVersion command at the SBT prompt.

Longer answer: I was having a problem getting a certain Scala feature to work when I compiled my code with SBT, and even though I knew I had set the Scala version in my build.sbt file, I wanted a way to double-check that SBT was indeed using that Scala version. That’s when I found I can issue the scalaVersion at the SBT prompt.scalaVersion

I always wondered if this ever happened: Three people were injured when a whale collided with a boat (or vice-versa) in the waters just north of Juneau, Alaska.