dog

Me and a black dog in Mexico

Way back in 2009 I went on a yoga retreat in Sayulita, Mexico with about twelve other people. One night after dinner I met this black dog as we were walking around the town plaza area. I spent every evening in the town plaza, where I had watched this dog constantly be attacked by other dogs, so when she came up to me on this evening I petted her and then gave her my leftovers. I was reminded of this when I encountered another black dog while on a walk yesterday.

Yoga teacher Judi Rice — who organized the trip — was influential in my life, is standing behind my left shoulder. She passed away in December, 2014.

Running on all fours in a dream

Wow, how embarrassing. It has taken me *years* to realize that when I run on all fours in a dream that I’m actually a dog (or maybe some other four-legged animal).

I finally realized it this morning when I was running like that and came up to a group of human friends, and one said something like, “Hey, look over there, it’s your new friend.”

When I looked in the direction he was pointing I saw a group of people who didn’t look familiar, and a black dog. Just then the dog came running at me. When it got to me it started licking and biting me and I thought, “This dog is crazy, why doesn’t someone get it off of me,” when everything suddenly made sense.

Flashdance

This is olde-tyme movie week at the Alexander household in Colorado (a tiny apartment, actually). Here are two images from the end of Flashdance, which I first saw at a theatre in Barrington, Illinois in 1983.

Flashdance image 1

Flashdance image 2

A Scala Factory Pattern example

Here’s a small example of how to create a Factory Pattern in Scala. In the Scala Cookbook I created what some people might call a simple factory and/or static factory, so the following code is a much better implementation of a true OOP Factory Pattern.

The factory classes

I don’t have too much time to explain the code today, but here are the classes that make up the factory, including a set of “animal” classes along with a DogFactory and CatFactory that extend an AnimalFactory trait:

Good design: Quantity leads to quality (and iteration speed is vital)

When I saw this tweet this morning:

[DOG MAGICIAN] think of a color, any color ... is it ... gray?

[OTHER DOG] oh my GOD

I knew that I loved the joke, but I didn’t like the presentation. I wanted to put the joke on Facebook, but I know that people like images more than they like text, so I made a second cup of coffee and began putting the text on an image.