Farewell (a Northern Exposure poem)

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

How to use a non-default table column separator in Asciidoc alvin December 9, 2019 - 12:04pm

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

Scala: How to search a directory tree with SimpleFileVisitor and Files.walkFileTree alvin December 7, 2019 - 2:01pm

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:

Song of the Day: Never Surrender, by Corey Hart

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

Notes on using Dotty (Scala 3), SBT, and VS Code together

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:


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