running

How to start a Play Framework application running as a service on Ubuntu 16.04 alvin April 30, 2018 - 6:17pm

As a relatively brief note, this seems to be the correct way to start a Play Framework application as a service on an Ubuntu 16.04 system.

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:

Running on all fours

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.

Another dream where I am running on all fours

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)

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.

How to determine if your Java application is running on Mac OS X

If you're developing a Swing/Java application to run on multiple platforms, at some point you'll probably have to make some tweaks for each operating system. Yes, there are differences in Swing behavior between Mac OS X, Linux, and Windows, and you'll want to account for those.

What is the command to start a Glassfish server?

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.