AlphaGo Zero whips AlphaGo, 100-0

NPR reports that a new version of Google’s AlphaGo Zero software became a Go master by learning to play the game only by playing itself, i.e., only by using reinforcement learning (as opposed to supervised learning). Per the report in Nature.com, “AlphaGo Zero achieved superhuman performance, winning 100–0 against the previously published, champion-defeating AlphaGo.”

Amazon Kindle eBooks: OPF file example

As a quick note today, I’ve been trying to build my own Amazon Kindle eBook using HTML and CSS, and yesterday I learned that I also need an OPF file as part of the process of creating both the eBook and the Table of Contents (TOC).

This morning I found that Amazon has a collection of sample books that you can use with Kindlegen, and the “Guide” project specifically includes the following example OPF file, which is well-documented.

Functional programming in Scala: Kindle eBook, coming soon alvin October 16, 2017 - 6:21pm

In the “Good News” department, apparently a long time ago when I was pretty sick with the MCAS, I wrote a series of Scala scripts to help convert a LaTeX document into an Amazon Kindle eBook. As a result, my book on functional programming in Scala should be available as a Kindle eBook later this week.

How to process every line in a file with a Unix/Linux shell script

Unix/Linux shell script FAQ: How do I write a Unix or Linux shell script where I "do something" for every line in a text file?

Solution: An easy way to process every line in a text file is to use a Unix/Linux while loop in combination with the Linux cat command, like this:

Visitors in bed

After finishing a yoga session at the cabin in Talkeetna, I decided to lay down in bed for the savasana part. So I’m laying there, relaxing, minding my own business, when someone sits on the bed next to me. I quickly open my eyes, but *nobody is there*. I jump out of the bed as fast as I’ve done anything in my life, then sleep on the couch for the next week.

A couple of years later I’m laying on my left side in bed at a friend’s house, waiting to fall asleep, when one of her dogs jumps on the bed, down behind my legs. The dog scratches on the bed, circles in one direction, stops, then circles in the other direction before finally plopping down against my legs. I think, “How nice, one of the dogs has chosen to lay down next to me.” Trying not to disturb them, I slowly lift my head, look down at my legs to see which one it is, and *there’s nobody there*.

(Boo)