Alvin Alexander | Java, Scala, Unix, Perl, Mac OS X

There used to be a magical mirror, called the Mirror of Truth. If someone looked into it and said a lie, they would die immediately. In the land where it existed, everyone from kings to merchants was subject to its justice. One day Mulla Nasrudin came to this land and was brought before the Mirror of Truth to test his honesty. He declared, “I am telling a lie.” Nothing happened. “I think I broke your mirror,” said Mulla.

(I don’t remember where I read this, but I just found it in some old notes and thought I’d share it here.)

Started the drive at 5:50 EST Tuesday in Kentucky. Waited out the morning’s snowstorm with some old-timers and truckers at a McD’s in Georgetown, Indiana. Maneuvered through the snow and ice induced wrecks between Corydon and Evansville. Wanted to kiss the ground when it finally got dry after 11am. Drove through the sunset in Kansas, then followed the truckers, Moon, and stars across the rest of Kansas and Colorado, arrived “home” at 12:20am MST Wednesday. Looking forward to seeing if the mountains are white whenever I wake up.

“Perhaps the most important principle for the good algorithm designer is to refuse to be content.”

~ Alfred Aho

A little moose eating a tree, Wasilla, Alaska.

I think I originally saw this “kindness changes the brain” quote in a article titled The Positive Psychology of Kindness.

Kindness changes the brain

“Never let the fear of striking out get in your way.” ~ Babe Ruth

Diary entry from January, 18, 2011, Wasilla, Alaska: While on a walk this morning I came across a large moose. It was just standing there, eating a tree. I didn‘t bother it, and it didn‘t bother me.

One thing I learned about ten years ago is that when I need to memorize things, flashcards work really well for me. More recently, because I often bounce between many technologies, I have been making flashcards as a way of bringing me back up to speed after I’ve been away from a technology for a while.

The image shows one example of this, where I created a stack of flashcards to help me remember/relearn Android, which I haven’t used in several months. In this case I also have my Android cheat sheet to fall back on, but even then I still like using the flashcards. I think the theory is that rather than reading something passively, flashcards force you to try to recall something, and that’s a much more active way of using your brain and memory.

Android flash cards

As a short “note to self,” I just used this Scala code to (a) create a list that contains random strings of different lengths, then (b) shuffle the list of strings to create a more random effect:

“Always bear in mind that your own resolution to succeed is more important than any other thing.”

~ Abraham Lincoln (born in Hardin County, Kentucky)

“I’m not a great programmer; I’m just a good programmer with great habits.”

~ Kent Beck

Here’s an story about how a little shop in Palmer, Alaska “invented a machine that is cleaning the decks of aircraft carriers all over the world.”

Rick: If it’s December 1941 in Casablanca, what time is it in New York?

Sam: Uh, my watch stopped.

(Part of the lead-in to one of the great lines in movie history.)

Flashback to driving to Alaska in March, 2010: “If you try to drive through Canada in the winter with those tires you’re going to end up as a statistic.”

As shown in the image, I just installed Ubuntu on my 2008 27” iMac. The UI is interesting, a combination of MacOS and Windows. From what I’ve seen, I think I’ll like the Ubuntu UI (Unity) more than Linux Mint, but I’m open. So far Ubuntu is also significantly faster than the latest versions of MacOS were on the same hardware, though that may be because MacOS had a few hundred thousand more files on it than Ubuntu has at the moment.

Ubuntu running on a 2008 27” iMac

The movie The Hidden Fortress is said to have a major impact on the Star Wars series. From Wikipedia: “George Lucas has acknowledged the heavy influence of The Hidden Fortress on Star Wars, particularly in the technique of telling the story from the perspective of the film's lowliest characters, C-3PO and R2-D2. Lucas's original plot outline for Star Wars also had a strong resemblance to the plot of The Hidden Fortress, which would be reused for The Phantom Menace.”

“Besides a mathematical inclination, an exceptionally good mastery of one’s native tongue is the most vital asset of a competent programmer.”

~ Edsger Dijkstra

A website named has a collection of images and short stories they call Daniel Kottke’s Amazing Apple Relics. If you’re interested in Apple history it’s a nice little find.

I like the quote by Pema Chodron (PC) that’s shown in this image, but personally a better one for me is, “You know what, I screwed up here, and I need to own that.”

It took me about 43 years to stop blaming other people for my problems. Then one day I finally said to myself, “The only reason I don’t live in Alaska is because of me. The only reason I don’t practice yoga more is me. The only reason I don’t meditate more is me.”

A couple of times a year I still open my mouth to start blaming other people or situations for my problems, but I try to catch myself before the words actually come out, and when I wrongfully accuse someone else for my problem of the moment, I do try to apologize.

(It’s worth noting that I think PC and I are talking about two different circumstances. I’m talking about things that are under my control, which are the 99.9% of the things that happen to me in my daily life. I have read several books by PC, and I suspect that this quote is about people who have been harmed by things out of their control, such as family violence. I absolutely agree with her quote in that context.)

Personal responsibility

While reading Carlos Santana’s autobiography I’ve been trying to explore more of his music. This video shows two of his songs — Soul Sacrifice and Evil Ways — at Woodstock in 1969.