Three moose running across my neighbors yard, Wasilla, Alaska, November 12, 2010. I still remember being surprised at how much noise they made, it was like a rolling thunder sound and the little apartment I was in was shaking pretty good.
A shell script to start your Play application
First, you need to create a little Unix shell script that runs the startup command for your Play Framework application. I created a Play application for a website named kbhr.co, so I
cd into the directory for that website:
Over the last few years I’ve had a few dreams where I become lucid in a dream and find myself running on all fours. When this happens I think, “Well, this is odd, why am I running like this?” I then try to stand up, but I can’t. Typically I just keep running like that until I fade into the blackness of unconscious sleep.
One time when this happened I found myself running on all fours down a sidewalk, with a street to my left. Just as I was thinking about trying to stand upright I heard a noise to my right. I stopped in place, saw something small moving, and more or less against my will I began running towards the thing that moved. It suddenly occurred to me that the reason I was running on all fours was that I was a dog. “I” had my normal “I know I’m Alvin” consciousness, but I was in a dog’s body and I didn’t seem to have much control over the situation, I was just a passenger.
Had another dream this morning that I was running on all fours. Rather than ask myself, “Why in the world am I doing this?”, I now just accept that I’m a dog (or a cat, or some other animal) in the dream. That helps me go along with whatever is happening in the dream, rather than fight it and wake up.
(Notes from a dream on June 28, 2016)
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.
Last week I ran into a situation where I was bundling a Java/Scala application on a Mac OS X system, which (as usual) requires you to bundle your code in a Jar file. I was working with the jnativehook library, where I saw some code like this:
A frequently asked Java question is, "How can I tell what version of Java is running my program?"
Answer: Just use this line of source code to determine the version of Java that is running your program:
Java Mac FAQ: How can I determine whether my Java/Swing application is running on Mac OS X, or some other operating system?
Here's the test I use to determine whether my Java application is running on Mac OS X:
Question: What is the command to start a Glassfish server?
Answer: I use the following command to start my Glassfish server:
asadmin start-domain domain1
Although this command refers to starting
domain1, at least in my case, it also serves to start the entire Glassfish server. I don't know how this works for multiple domains, but my guess is that if you start any one of your domains, you will start up your Glassfish server.