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

Android FAQ: How do I draw a rectangle in Android?

To draw a rectangle in Android you’ll need to create your own View, i.e., a class that extends the Android View class. For example, this CustomView shows how to extend a View and then use the Rect and Paint classes along with the onDraw method to draw a rectangle:

AppleScript FAQ: How do I enable the AppleScript menu on the Mac OS X menu bar?

To enable the AppleScript menu on the Mac OS X menu bar, follow these steps:

I think this is why I’m supposed to say “climate change,” and not “global warming.” (Snow on May 9th and 10th, 2015.)

If you want to make sure that your users’ Android display stays on while your app is running -- such as if you are writing a game/gaming app -- use this call and flag in the onCreate method of your Android Activity:

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

Here’s what the Android docs say about the FLAG_KEEP_SCREEN_ON setting:

bfxr.net lets you make sound effects for free. This is very helpful for game development.

It’s been raining in the Boulder, Colorado area for about a week, maybe longer. This is a view of the Boulder Creek, which is currently kept from flooding by sandbags. I just read that Colorado Springs had eight inches of hail. Image from the Denver Post.

Chris Archer, pitcher for the Tampa Bay Rays, has been on a roll this season, and he also sounds like a mindfulness master.

I don’t know how this Fitbit works, but if there was a watch that I could easily take off and set on my desk like this, that would be pretty cool. I haven’t worn a watch since the 1990s, but I’d be more inclined to wear one part-time if I could easily put it on and then take it off to set on a desk like this. (Image from fastcompany.com)

If you’re into wearable devices and interested in training your brain, the Muse Headband might be of interest.

I saw this image on Google+, where the poster wrote, “Don’t know if that’s a good statistic.” Indeed, that looks like an amazing change in nine years. Linux users: Do your heart a favor and get out there and exercise.

If you’ve ever known a Siberian Husky, you know this to be true. Image from the Free Spirit Siberian Rescue Facebook page.

One of the little known things about Alaska — Palmer in particular — is that there is a lot of farming in Alaska. This photo promotes the Antique Power Club’s annual “Plow Day” event. The photo comes from the Mat-Su Valley Frontiersman Facebook page. (Personally, I loved looking at the snow-covered mountains as I rode my bicycle around the farms.)

Farmers plowing a field in Palmer, Alaska

A terrific sign from the Talkeetna Roadhouse Facebook page to celebrate May 4th (“May the Fourth be with you”).

Carly Fiorina, arguably one of the world’s worst CEOs of all-time, announced that she’s running for President of the United States. I don’t mean to sound bitter about this, but I was very interested in HP’s success, and she nearly ran them into the ground.

When we used to hire software developers we always looked for people who had a “love of the game.” That is, we tried to hire people who loved computers and programming, and would do this sort of work even if the pay was horrible. I was reminded of that when I read this comment by Gary Kubiak, new head coach of the Denver Broncos.

Nothing lets you know you’re in Alaska quite like a moose. This photo is from the Associated Press Alaska Facebook page.