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

Imagine being 30 years old, and life is good. You’re healthy, vibrant, and even astonishingly good at math.

But then just a few moments later you can’t make sense of the world. You don’t know what’s real and what’s not.

You begin hearing voices that aren’t there.

Shortly after this you’re put into a “mental institution.”

That’s what happened to my mom. For whatever reason, shortly after I was born, she was stricken with schizophrenia.

(If you’ve ever seen the tv series Fringe, my mom is almost exactly like Walter Bishop, or vice-versa.)

Git FAQ: How do I view the detailed commit history for a file?

Solution: When you want the detailed git commit history for a file, this is the best git command I know:

This is a sunset from my old apartment complex in Broomfield, Colorado, on March 17, 2020.

Rocky Mountain sunset, March 17, 2020

In 2011 I was living in Palmer, Alaska, and I just started to look into renting this small brown building to be a home for my software-consulting business when some family issues came up and I moved back to the Lower-48.

There probably wasn’t enough work in the Palmer/Wasilla area — also known as the Mat-Su Valley — but I loved the area so much I wanted to give it a try.

Little office building in Palmer, Alaska

A Rocky Mountain sunset, near Boulder, Colorado, November 24, 2016.

A Rocky Mountain sunset, near Boulder, Colorado

When I was very sick in 2015-2016, I used to tell my doctors it felt like I had been “drugged.” When I could see that they couldn’t understand or believe that, I’d tell them that it felt the way you feel after surgery, groggy and woozy.

For the most of this year I’ve been eating very well, but yesterday I went to see a movie (Logan) and had some popcorn. Shortly after eating the popcorn I started to feel sick, and today I feel like I’ve been drugged.

This — as I have learned — is life with mast cell activation disease, known as MCAD or MCAS.

This is a photo of some snowy trees in Louisville, Colorado, on March 27, 2018. I had to get up early to go to a physical therapy appointment and I was rewarded with this view.

Snowy trees, Louisville, Colorado

“I’ve seen a lot of my friends lose their passion and end up in a rut, afraid to take a chance. ‘Night Moves’ is about romantic passion, but ‘Ship of Fools’ is about passion for life. Maybe a guy’s working a job he doesn’t like, and he sees an ad about the Alaska pipeline or something that excites him. But there are problems. His family says it’s too cold in Alaska or whatever. So he passes it up and just keeps on with something he hates.”

~ From Bob Seger, about his song, Ship of Fools

For the purposes of writing the Scala Cookbook (2nd Edition), I thought I wanted a little “testing framework.” At first when I tried to use existing frameworks, I found that they didn’t always work with the latest release of Scala 3.0 (formerly Dotty). Then, after working with the libraries that were often kept up to date with Scala 3.0, I further decided that I just wanted to put my tests inside Scala @main methods — I didn’t want to have some code under src/main and other code under src/test in my Scala/sbt projects.

So, in the end, I created my own testing “framework,” which I named SimpleTest. It’s really not a framework, it’s just a very little library that lets me run tests in @main methods.

Over this past weekend, March 13-14, 2021, Denver, Colorado and the surrounding areas had the fourth or fifth largest snowstorm in recorded history. Before the snow stopped last night I saw that Denver had already had 24.1” of snow. This is a photo of my car and some neighbors cars here in Longmont, Colorado.

March, 2021 snowstorm (Longmont, Colorado)

The moon setting over the Rocky Mountains at five o'clock this morning.

~ Broomfield, Colorado, March 13, 2014

The moon setting over the Rocky Mountains

The hospital was mostly empty yesterday morning (March 10, 2020). When I went to the Imaging Department, the technician was standing at the front desk waiting for me, his only patient. The grocery store was out of TP. But the Moonset around 6:45am was beautiful.

What a marvelous morning for a Moonset

As a very brief introduction, this is the start of a ZIO cheat sheet. If you want a good cheat sheet, see this one on github. I’m creating my own as I learn ZIO and read the Zionomicon book. During the learning process I find that it’s much better to create your own by hand, that way you get something that’s meaningful to you.

As I get close to releasing the Second Edition of the Scala Cookbook, I’m trying to use the “foo bar baz” phrase less often, and trying to find better and more meaningful phrases. Thanks to Arrow and The Flash, one phrase I’m using is “Big Belly Burger.”

If you know any great phrases to use to help rid the world of “foo bar baz,” let me know here on Twitter. Here are a few I just looked up:

bond, james bond 
clear eyes full hearts can’t lose (friday night fights)
elementary, my dear Watson 
fasten your seatbelts 
frankly my dear 
gonna need a bigger boat 
hasta la vista (baby)
here’s looking at you kid
I see dead people 
just keep swimming
make my day
no crying in baseball 
not in kansas any more 
of all the gin joints 
open the pod bay doors, HAL 
pass the beernuts (Cheers)
play it again sam
show me the money
shaken, not stirred
Soylent Green is people 
the walking dead 
too much fruit (in the house)
who’s on first?
why so serious?
you talking to me? 
you’ll thank me later
Phrases to use instead of 'foo bar baz'

For some reason Facebook thinks I should add Jim Belushi as a Facebook friend. He seems like a nice guy, and I really liked his K-9 movie, but I’m not sure if this is a promotion, psychological experiment, or if they happen to know that my dad is buried near John Belushi, which you can partially see in this YouTube video.

Adding Jim Belushi as a Facebook friend

It’s important to remember that even when successful people say things, they’re often just opinions, not facts. Starbucks’ CEO Howard Schultz once told Jeff Bezos of Amazon, “You have no physical presence. That is going to hold you back.”

Back in 2011 I was at the start of the Iditarod race, which started on the frozen lake in Willow, Alaska.

The 2011 Iditarod race sign, Willow, Alaska

Sled dogs, from the start of the 2011 Iditarod, on the lake in Willow, Alaska. (I took this photo that day.)

Sled dogs, from the 2011 Iditarod, Willow, Alaska