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

Build mental toughness to achieve your goals!
SELF
DISCIPLINE
 
(over 500
amazon ratings)

The Yukon Quest is a 1,000 mile dog sled race that leads up to the Iditarod. It starts in four days. (Image from this Twitter link.)

Netflix thought In Your Eyes would be a five-star movie for me, and after watching it twice so far, I agree. The IMDB short description: “Two seemingly unconnected souls from different corners of the United States make a telepathic bond that allows them to see, hear and feel the others experiences, creating a bond that apparently can't be broken.”

I’m working on a very small Android “notifications” app where I a) display a notification using a background service, b) the user taps the notification, which c) takes them to a view that shows the full text of the notification. To get this to work, I need to send the full text along with the notification. However, this didn’t work easily. The text that was shown by my full view would be updated once, then never again.

After a lot of googling and trial and error, I finally got this approach in my sendNotification method working:

Some quotes from Chicago Bulls coach Tom Thibodeau on the New England Patriots practice and preparation, from this espn page.

This page has a nice list of stock Android drawable icons, as this image shows. This Android page also has some newer icons, and here’s a link to the Drawable javadoc (no images, just docs).

This image of “earthquake lights” is from this National Geographic article, which I just ran across again.

Sending/displaying a notification is one of the easy things to do in Android. To create and display an Android notification, all you have to do is:

It turns out that it’s easy to create and use a static array of strings in Android. Of course you can do this in Java code, as I describe in my Java string array tutorial, but for Android I’m talking about doing this in XML.

In short, this is how you define a static string array in an Android XML file:

Awesome! The new Raspberry Pi 2 is 6x faster than the original, quad-core, with 1 GB RAM. More info here on the RPI website.

Not much to see here, just a couple of Android permissions that an Android app may need to access the network/internet:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

As the names imply, the first permission requests access to the internet, and the second permission is needed to check the internet status/state. These permissions need to be put in an Android app’s AndroidManifest.xml file.

Martin Odersky: “There is no silver bullet for all concurrency issues.” From the book, Learning Concurrent Programming in Scala.

This is a poem titled, “If I Had My Life to Live Over,” by Nadine Stair. I found this poem in the book, Polishing the Mirror, by Ram Dass.

Nadine Stair, If I Had My Life to Live Over

I found this poem, titled “Snow Man,” in a Zen book I bought a few weeks ago.

snow man, wallace stevens

A great thing about the new apartment complex (just outside Boulder, Colorado) is that the pool is open year round. I love the optimism.

The Death Wish Coffee Co. says they make “the strongest coffee in the world.” Lisa Kelly (of the Ice Road Truckers in Alaska) tweets that it’s the official coffee of “Team Lisa.”

The following code shows how to create a CDATA element (string resource) in a strings.xml file in an Android application:

A QA Engineer walks into a bar ... (image from this link).

Build mental toughness to achieve your goals!
SELF
DISCIPLINE
 
(over 500
amazon ratings)