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

“What if I never find out who’s a good boy?”

Who's the good boy?

As a brief note, if you ever need to use a different column separator when creating a table in Asciidoc, you can do so by specific the separator field in the table preamble.

For example, in the following Asciidoc table I can’t use the default pipe character | to separate the table columns, because I need to use that character in the content inside the table, so I set the separator character to be : instead:

<<methods_to_combine_cmds>> lists the ...

.Methods to combine external commands
[[methods_to_combine_cmds]]
[cols=",",options="header",separator=:,]
|===============================
:Methods :Description
:`cmd1 #| cmd2`  :The output of the first ...
:`cmd1 ### cmd2` :`cmd1` and `cmd2` will be ...
:`cmd1 #> cmd2`  :Normally used to write to ...
:`cmd1 #&& cmd2` :Run `cmd2` if `cmd1` runs ...
:`cmd1 #|| cmd2` :Run `cmd2` if `cmd1` ...
:`cmd1 #&& cmd2 #|| cmd3` :Run `cmd2` is ...
|===============================

I shortened that content so you don’t have to read through all the non-essential text, but the image shows the actual resulting Asciidoc table.

For more information, this asciidoctor.org URL was the most helpful resource for me. This other page shows how you can specify format="csv" to create a table from a CSV-style syntax.

In summary, if you needed to see how to create an Asciidoc table with a non-default table column separator, I hope this example is helpful.

How to use a non-default table column separator in Asciidoc

Little drops of rain whisper of the pain
Tears of loves lost in the days gone by
My love is strong, with you there is no wrong
Together we shall go until we die
My, my, my, inspiration is what you are to me
Inspiration — look, see

And so today, my world it smiles
Your hand in mine, we walk the miles
Thanks to you it will be done
For you to me are the only one
Happiness, no more be sad
Happiness — I’m glad

~ Lyrics from the song Thank You, by Led Zeppelin, possibly my favorite band of all time. This is one of those songs where I can work while listening to it, no matter how loud you play it.

And the Earth just keeps getting hotter ... the image comes from this tweet.

The Earth keeps getting hotter

As a brief note to self, if you ever want to write some code using Scala that recursively descends through a directory tree, here’s a solution that uses the Java SimpleFileVisitor and Files.walkFileTree method. First, here’s a skeleton class for the SimpleFileVisitor part of the solution:

A tub of applesauce exploded when I returned to higher altitude (driving back to Colorado from Kentucky). I’m always surprised when that doesn’t happen to my brain.

~ December 7, 2017

“It Couldn’t Be Done,” a poem by Edgar Guest. Former Broncos head coach Red Miller passed away recently, and he said that this became his motto.

It couldn't be done ~ Poem by Edgar Guest

If you like signs, this signpost on the corner of 4th and F streets in Anchorage, Alaska shows the distance to many other cities in the U.S. and around the world.

Signpost in Anchorage, Alaska

A lot of people don’t believe it when they come to the Boulder, Colorado area, but there were very few, if any, trees in Boulder and other towns like Louisville naturally. As you can see in this image from the 1800s, there are a few trees on the left side of the image, which is west, and closer to the mountains. Louisville, Colorado is east of here.

This image comes from the City of Boulder Facebook page.

Boulder, Colorado in the 1800s - Very few trees

So if you’re lost and on your own
You can never surrender
And if your path won’t lead you home
You can never surrender
And when the night is cold and dark
You can see, you can see light
Cause no one can take away your right
To fight and to never surrender

(Lyrics from the song Never Surrender, by Corey Hart. It was popular during my college bartending days, which was also a peak time for MTV and music videos.)

Never Surrender, by Corey Hart

As a note to self, here are some ways to work with Dotty (Scala 3), SBT, and VS Code (Visual Studio Code).

Create a Dotty project:

sbt new lampepfl/dotty.g8

Launch VS Code inside that project directory, with Dotty support:

sbt launchIDE

Start SBT as usual:

sbt

Those notes are just a reminder for myself, but hopefully they’ll also help others work with Dotty, SBT, and VS Code.

I don’t know the original source of this, but here’s a short review of the Wizard of Oz.

A short review of the Wizard of Oz

If you like cartoon guides to Zen and philosophy, Zen Speaks and Wisdom of the Zen Masters are two of my favorites. I don’t remember which book this story comes from, but it’s one of those two. (It’s definitely the work of Tsai Chih Chung.)

Zen - Being Your Own Master

Chicago Cubs great Ron Santo passed away on December 3rd. Back in the day, he came to one of my baseball games, wearing his trademark leather jacket. Technically he went to his son’s game, but since I was pitching for the opposition and we won, it was my game. :)

My dad would have loved to meet Mr. Santo, but he stopped coming to my baseball games by that time, so he missed out on that. In fact, my mom, with all of her problems, was the last parent to see me in a baseball uniform. She came to see a game after I injured my shoulder, and it turned out to be my last game.

Dear Amazon: If the Kindle Paperwhite supported ePub books I would buy one, but without that support it’s kind of useless to me.

Back in 2017, Wesley Reisz shared this image with the text, “Artist’s secret toolbox for creating art ... transformations.” The slide is from Brian Kane.

Artists secret toolbox for creating art ... transformations

If Functional Programming, Simplified seems large, a) I intentionally wrote it in a simple, leisurely style, and b) it’s a lot easier than reading hundreds of blog posts and all of those books on the right (although a few of those books are really good).

If Functional Programming, Simplified seems large ...

When I use Facebook, I like to use lists to group people that I know, friends, relatives, people from different states, etc. But on Thanksgiving of 2019, or maybe the day before, Facebook deleted the “Lists” link from their web app. It used to be with this group of links. I don’t use their app on my phone, so it’s pretty crazy that they removed this.

So, dear friends, if I don’t see and like your stuff, it’s not my fault. I’m sure not going to type in the name of each friend to see if they posted anything.

Update: You can find the Facebook “friends list/groups” URL here: facebook.com/friends/friendlist

Facebook deleted the “Lists” link

When I was in the hospital in Boulder, Colorado with the heart problem a few weeks ago, I asked a nurse about my cardiologist. I knew he had retired, but didn’t know why. “He’s 68 years old,” she said, “and he wants to spend more time with his girlfriend, who lives in Chicago.”

#HolidayLoveStory

“When individuals are too self-centered, they tend to be prone to fear, suspicion, anxiety and anger. Compassion and restraining from harming others act as an antidote to this.”

~ the Dalai Lama