A Rocky Mountain sunset, near Boulder, Colorado.
Alvin Alexander | Java, Scala, Unix, Perl, Mac OS X
A crow in the snow, a memory of a winter past.
“If you think you’re enlightened, go spend a week with your family.”
~ Ram Dass
A friend introduced me to the movie Home for the Holidays many years ago, and it’s still the best Thanksgiving movie I know.
“Parhelions, more commonly known as sun dogs or mock suns, appear as fuzzy rainbows or bright spots in the sky ‘dogging’ the Sun. You are most likely to see a sun dog in the morning or afternoon during the winter. Records of this phenomena date all the way back to the ancient Egyptians. Famous Ancient Greek philosophers Cicero and Aristotle even made mention of sun dogs.”
(I’m pretty sure I made the photo from Google image search results, but I don’t remember where I got that text. I posted this on Facebook on November 23, 2013.)
Doctor: Do you know why your triglycerides are high?
Me: The election?
Me: David Bowie’s death?
Me: *sigh* The cookies?
If you ever need some good ScalaJ-HTTP examples, see the test files in the project, including this HttpBinTest.scala file. That file currently shows a number of good ScalaJ-HTTP examples, including GET, POST, redirect examples with Scala.
See that page for a full list of examples, but for my own use, here are a few of them.
I’ll be joining a new yoga class soon, and I was just thinking about what I might say, or not say, to the other students in the class about the things I’ve experienced when practicing yoga very seriously. In an open discussion during a previous yoga class I told other students that I was able to feel various things when we did the “corpse pose” at the end of the session. I didn’t go into great detail, but I did tell them that I could feel my blood flowing in my body, how I could feel “vibration” sensations on my skin, and a few other things.
When I saw this map after the election I didn’t think about politics. I thought, “Wow, in ten years almost all of those truck drivers can be replaced by self-driving vehicles.”
I’m all for reducing congestion on the interstates — the U.S. population has probably doubled since the interstates were built — but that looks like a lot of people who are going to need to learn a new trade.
Table of Contents
- Getting started
- First steps
- Adding Given/When/Then behavior (and ‘And’)
- More on Given, When, Then, and And
- Add more tests within ‘describe’
- Testing Option/Some/None in a BDD test
- Nesting describe blocks
- Using ‘before’ and ‘after’
- Mark tests as pending
- Temporarily disabling tests
- Testing expected exceptions
- Using matchers
- Tagging your BDD tests
- More information
This page is very much a work in progress, but it currently shows a small collection of ScalaTest BDD examples. I’ll keep adding more BDD examples as time goes on. Also, in this article I assume that you are familiar/comfortable with Scala and SBT, and are at least slightly familiar with using ScalaTest.
What the sky will look like when people travel back and forth to the Moon.
“Beginning today, treat everyone you meet as if they were going to be dead by midnight. Extend to them all the care, kindness and understanding you can muster, and do so with no thought of any reward. Your life will never be the same again.”
~ Og Mandino
When you go to the bathroom at the top of Rocky Mountain National Park, and you come out and everyone else is gone.
It’s a bit of a riddle, but other people in your life have to be who they are so you can be(come) who you are.
Sometimes when you’re working with doctors they’ll use the term, “idiopathic.” It turns out that’s just a fancy word for, “We don’t know.” I haven’t looked up the origin of the word, but I remember its meaning by thinking, “Idiot, we’re not telepathic.” (Supernatural fans: substitute “idjit” for “idiot.”)
As an example, there’s an illness named, “Chronic Idiopathic Uticaria.” Chronic means constant, uticaria is a fancy word for hives, so that phrase means, “Some people constantly break out in hives, and we don’t know why.”
I have this problem, but for me it’s no longer idiopathic. I now know if I stick to a diet of a small set of organic foods I won’t get hives, but if I stray from that diet I quickly get itchy, and if I keep eating that way I eventually get hives.
That’s my medical lesson of the day. ;)
“I am not this hair. I am not this skin. I am the soul that lives within.”
Ever have one of those days where you wake up in a bathtub full of ice in a hotel room with one of your kidneys gone?
“The best feeling is when someone appreciates everything about you that someone else took for granted.”
(I don’t know the original source of this, but I like it.)