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

As a quick note, if you need an example of how to write a Scala shell script that reads from STDIN (standard input) and writes to STDOUT (standard output), this code shows a solution:

#!/bin/sh
exec scala -savecompiled "$0" "$@"
!#

import scala.io.StdIn

var line = ""
while ({line = StdIn.readLine(); line != null}) {
    println(line)
}

I’m debating about releasing a print version of Functional Programming, Simplified. While pondering that decision, I found this image that shows an approximation of Scala Cookbook digital/print sales that O’Reilly makes available to me.

Scala Cookbook digital sales vs print sales

Boolean algebra was named after George Boole (1815-1864), which I just learned while reading A Book of Abstract Algebra.

Maria Menounos, age 39, was diagnosed with a brain tumor, and gave a talk at a UCHealth gathering. A few quotes from her:

“When you’re an overachiever, you’re conditioned to just do, do, do, do ... We are over-tapping ourselves. We are doing way too much. We’re trying to be everything to everyone and nothing to ourselves. If your body is screaming at you ... then surrender to it.”

“Maybe it’s true, 99 out of 100 people will let you down. But there’s magic in that one percent.”

~ From the Hart of Dixie

I was just wondering why Jake Plummer quit playing football in the prime of his career and came across this si.com article about him.

Several media outlets are reporting that Google is introducing their Neural Networks API in developer preview of Android 8.1. TechCrunch has a well-written article that includes this:

“The big highlight here is the new Neural Networks API, which brings hardware-accelerated inference to the phone for quickly executing previously trained machine learning models. Bringing these calculations to the edge can bring a lot of utility to the end user by reducing latency and load on the network, while also keeping more sensitive data on-device.”

Multiple sources, including AppleInsider.com, are reporting that Walmart plans to deploy 100,000 Mac computers to save on employee PC costs. From that article: “IBM noted that PC users drive twice the number of support calls compared to Mac users, and that PC support tickets require desk side support by IT personnel five times as often. The company's own analysis showed that each Mac deployed saves the company $270 in support costs compared to a Windows PC.”

Walmart deploying Mac computers to save money

cornell.edu has a good page on how the basic part of Google’s PageRank algorithm works. If you ever wonder why math is important in programming, that algorithm made Google billions and billions of dollars.

How Google's PageRank algorithm works

By The Bay has a very interesting interview with Tim Perrett, whose resume includes leading Scala teams at Verizon, and being a founding board member of the Scala Center.

A few good quotes from him at the beginning of the article: “Unlike many people in our industry, I left school at a young age and did not attend university. My first job was actually working in a factory. My modus operandi is that hard work and dedication can overcome any problem ... humility is something that enables one to be open to the ideas of others. To conclude: Listen, be humble, and roll up your sleeves.”

Einstein once scribbled his theory of happiness in place of a tip, and it just sold for more than a million dollars.

One note read, “A calm and modest life brings more happiness than the pursuit of success combined with constant restlessness.”

National Geographic ranks Anchorage, Alaska as the 10th-happiest city in the United States. Just down the road, Boulder, Colorado is ranked #1.

Mark Burgess has a long article based on the keynote address for the Reactive Summit 2017 titled, Microservices, the future of society, and all that.

I was curious what kind of hardware AlphaGo Zero uses, and I found this table on this Wikipedia page. The “TPU” references in that table refer to Tensor processing units.

AlphaGo Zero hardware configuration

A brisk 24 degrees to start the morning in Talkeetna, but I’m kinda getting used to it.

~ a “Talkeetna diary” note from October 23, 2010

deepmind.com has a great new article titled, “AlphaGo Zero: Learning from scratch.”

AlphaGo Zero power consumption vs its predecessors

underscore.io has a nice article about code reviews titled, Getting into other people’s code.

A favorite mellow song with some Zen-like lyrics is Time, by The Burned, and featuring Katie Gray.