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

I don’t always get sick, but when I do ... it’s nice to find other people who are going through what I’ve been going through, and they still have a sense of humor about it. If you have a Pinterest account, this “My Mastocytosis” page is great.

I don't always get sick, but when I do ...

I think I originally saw this “kindness changes the brain” quote in a pschologytoday.com article titled The Positive Psychology of Kindness.

Kindness changes the brain

Started the drive back to Colorado at 5:50am EST Tuesday in Kentucky. Waited out the morning’s nasty snowstorm with some old-timers and truckers at a McD’s in Georgetown, Indiana.

Got tired of waiting, so when the snow let up a little I got back in the car. Maneuvered through snow-and-ice induced wrecks between Corydon and Evansville. Wanted to kiss the ground when it finally got dry after 11am. Drove through the sunset in Kansas, then followed the truckers, the Moon, and stars across the rest of Kansas and Colorado, arrived home at 12:20am MST Wednesday. Looking forward to seeing if the mountains are white whenever I wake up.

I call this image, “Purple sky, with sunrise in the side view mirror.”

Sunrise in the side view mirror

Sunrise on the road, December 10, 2013. Somewhere in Kansas.

Somewhere in Kansas

Farewell! If ne’er I see thee more,
Though distant calls my flight impel,
I shall not less thy grace adore,
So friend forever fare thee well.

Farewell, alas, the tragic sound,
Has many a tender bosom torn,
While desolation spread around,
Deserted friendship left to mourn.

Alas! and if we sure must part,
Far separated long to dwell,
I leave thee with a broken heart,
So friend forever fare thee well.

~ part of a poem i heard on Northern Exposure

Table of Contents

  1. Solution
  2. Discussion
Table of Contents1 - Solution2 - Discussion

Scala problem: You want to be able to read configuration files that are written in the Lightbend “Config” file format.

Back to top

Solution

Lightbend — initially named Typesafe — created a configuration file format named HOCON, which stands for, “Human-Optimized Config Object Notation.” As an example, a small HOCON configuration file looks like this:

In Anchorage, Alaska, Walmart has apparently trained the ravens to help with the return of carts. If you look carefully you’ll see that there are at least five ravens in this photo.

Ravens in Alaska help with Walmart cart returns

Almost every product on this 1991 Radio Shack ad is now on your cellphone (sans the scanner and radar detector).

1991 Radio Shack ad

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

My book, Functional Programming, Simplified — 4.5-star rated on Amazon — is available in three formats:

PDF Format
$15 on Gumroad.com
(December sale!)

PDF version of Functional Programming, Simplified

Paperback Book
$39.99 on Amazon
 

Print version of Functional Programming, Simplified

Kindle eBook
$24.99 on Amazon
 

Kindle version of Functional Programming, Simplified

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

“She seduced me with baked goods.”

~ Walter talking about Fauxlivia (alternate universe Olivia) on Fringe

“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

I can’t find the original source of this image and product, but I have always liked the “Live Brave” saying, which I first heard on the excellent Eli Stone tv series (which stars Johnny Lee Miller, who may be more well known for the movie Hackers and of course, Elementary).

Live Brave bracelet