Tuesday, August 21, 2018


What separates us from the angels? Of course there are many things, they are only spirit, we are body and spirit. They have perfect understanding, we do not. But the most important difference is that we can change while they cannot. There is some sort of disease in society today, this is a lack of uncertainty. Uncertainty is healthy. Uncertainty is human. Without uncertainty, we cannot change. The fallen angels know this, and that is probably why there is such a perceived stigma nowadays on uncertainty. Because if you are certain, you cannot change. The certainty cements your mind. And when you make a mistake, oh yes you will make a mistake, you will not be able to correct it due to your complete certainty. You will freeze yourself as an angel, and give up one of our great human powers---that is change. Now I don't mean you must never make a decision, certainly you are faced with many many decisions every day. However, you can make a decision without being certain, and when you make a bad decision, your uncertainty will allow you to change.

Monday, July 16, 2012

I was trying to get an HP t5565 thin client to open two browser windows fullscreen with one on the primary monitor and one on the secondary monitor.

I ended up using wmctrl and had it manually move one window to the second screen.  My webpages had the word Gelcoat in the title so I could key off that to get the window id.

WID=$( wmctrl -l | grep Gelcoat | cut -f1 -d " " | tail -n 1 )
wmctrl -ir $WID -e 0,1920,0,1920,1080
WID=$( wmctrl -l | grep Gelcoat | cut -f1 -d " " | head -n 1 )
wmctrl -ia $WID

I had to add the last two lines to bring the primary display window to the front to cover the task bar again after moving the other window to the secondary display.

I then setup this script as a 'connection' and set the priority so that it would run after the two browser window connections were started.

Monday, October 24, 2011

Empathy Lost

the intellectual identification with or vicarious experiencing of the feelings, thoughts, or attitudes of another.[1] 
Many today have lost a sense of empathy.  They seem unwilling, and even incapable, of seeing outside of their own image.  Everything in the world is treated as if it was made in their image and likeness.

Most children are not born with empathy.  In fact, when young, children behave in a manner assuming others see through their eyes, hear with their ears, feel with their hands. This is why a two-year old will stand in from of a screen that you are trying to see.  They don't even realize someone else might not be able to see.  If they can see, they assume everyone must be able to see.  The same goes for the young child who hides by hiding their eyes or head.  Since they cannot see you, they therefore assume that you cannot see them.

Eventually, we learn to see things from another's perspective.  We are able to place ourselves in their shoes, see from their eyes, feel from their hands.  However, this learning seems to have been lost.  Many grow up nowadays without any sense of empathy whatsoever.  They maintain the attitude of the two-year old.

I see this in how they treat others, I see this in their expectations of others, in their desires for others.  For example, one may hardly ever get colds, while another gets colds quite often.  To the un-empathetic, it seems that the sick one is doing something wrong.  "I don't get the cold, it must all be in the other's head." This is very, very wrong, and can lead to many injustices as well as poor decisions.  For example, I am personally not allergic to poison ivy.  However, it would be wrong for me to tell those who are allergic that it is all in their head and toss poison ivy on them. 

We can see the same thing when we make decisions for ourselves.  Since we assume that everyone is made in our image, what is good for them must also be good for us.  This leads to bad, bad decisions.  What is good for someone else, may be disastrous for me, and something that would not be good for another could be just what I need.

Empathy is important and something we should both strive to learn, and something we should teach our own children.  Empathy is part of growing up, too many today do not grow up.  Growing up is impossible without empathy.

Friday, September 30, 2011


People like to talk about movies they've watched.  People like to talk about the weather.  Why is this?  It is because these are things that we do not have control over.  These are things that we cannot change.  So it is with conspiracies.  Why do people like conspiracy theories?  Because, as it is with movies, they are usually totally beyond the control of the average person.  But there is more: conspiracies are often used as excuses for not performing changes in our own lives, in our own behavior.  Conspiracies against us are the reasons we are failing, nothing we can do will change that, so there is no reason for us to change our lives.  People don't want to change their lives.  Change is hard.

I've heard more than one Christian who was overwhelmed with conspiracies.  But why do they forget: everything that happens, God allows.  I would have died a million times from disease, cars, accidents, if not for God's Will.  Why do we not trust Him to keep us safe and give us what we need to save our souls?  Some shadowy government agent should be the least of our worries.

I am often confused by the need of some people to 'get the message out'.  What is the purpose? What are you changing?  I can see specific instructions for specific situations, but the purpose of just spreading the information does not follow Christian standards.  Spreading information should have a direct purpose.  I would not go around telling people the performance of a particular contracter, without the imminent need of the person to know it.

Save your soul.  If an obsession with conspiracies is becoming an obstacle, cut it off.

Wednesday, June 22, 2011

GWT & Databases

UPDATE For GWT 2.6+:
You will need to reference a few more jars in your project in order for jetty to work:

You will also need to place a "jetty-web.xml" file in your WEB-INF directory.  The contents of this file will be used to create the pool in jetty.

The file contents are given below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">

<Configure class="org.eclipse.jetty.webapp.WebAppContext">

        <New id="website" class="org.eclipse.jetty.plus.jndi.Resource">


                        <New class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
                                <Set name="Url">jdbc:mysql://hostname:3306/dbname</Set>
                                <Set name="User">username</Set>
                                <Set name="Password">password</Set>


There is one last thing to setup, and that is your Run/Debug configuration. In the VM arguments you will need to add:

For GWT 2.5:

If you plan on running your GWT application on tomcat, you setup your datasource in the usual way. Normally you use a connection pool, which you setup in META-INF/context.xml

By default, GWT uses jetty when you are running your application in hosted mode.  In order to use the same code to access the database, you must configure a few things in your project.

You will need to reference a few more jars in your project in order for jetty to work:

You will also need to place a "jetty-web.xml" file in your WEB-INF directory.  The contents of this file will be used to create the pool in jetty.
The file contents are given below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">

<Configure class="org.mortbay.jetty.webapp.WebAppContext">

        <New id="website" class="org.mortbay.jetty.plus.naming.Resource">

                        <New class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
                                <Set name="Url">jdbc:mysql://hostname:3306/dbname</Set>
                                <Set name="User">username</Set>
                                <Set name="Password">password</Set>


There is one last thing to setup, and that is your Run/Debug configuration. In the VM arguments you will need to add:
as shown below:

Saturday, May 21, 2011


Inside the box
Friday afternoon I received a strange package via UPS.  The return address had no name.  I opened the box and inside was another box.  This one had a strange diagram of a mouse-powered rocket engine.

There was also a sheet of stickers inside the first box.  This sheet was my first real clue to what was waiting inside the second box.

I opened the box and inside was my chromebook!  Several months ago I had signed up for the pilot program and had forgotten about it.  I opened the rocket diagram box and inside was the chromebook, if you search the web you can find several pictures and videos out there, so I won't post them here.  What I will give you are my experiences thus far.

In order to log in, you need to have access to a wifi network.  This is because you use your google login credentials on the chromebook.  Setting up the wifi was straight-forward and not a problem.  The Verizon 3g, however, was a different story.  More on this later.

Once logged in, you basically have a specialized chrome browser.  I tested a few websites and they all loaded as you would expect.  The terminal was a nice addition, although you only have a handful of commands at your disposal.

Google talk worked well, and I tried the video chat.  The quality was ok, the camera blurs motion a bit more than on my macbook pro.

I tried a couple of videos on YouTube and it played them well.  After that, I tried Hulu, while the video did play, there was a noticeable jerkiness.  I did try Netflix, but it is currently not available on the chromebook:


The laptop has no marks on it whatsoever, it is basically a rubberized black matte.  The keyboard is a Mac-like 'chiclet'-style keyboard, which makes it very nice for typing.  The touchpad supports some multitouch (two-finger scroll and right click).  It is also like the Mac trackpad, but is more 'sticky' and thus a bit harder to use.

So the 3g...I have not had much time with it.  Initially, when I tried to set it up, the activation failed.  After searching the web, I found some people saying that you could grab the link from the modem status and use that to register, after that, activation would work.  I tried that, but no dice.  The next day I called Verizon and was on the phone with tech-support for a couple of hours.  He was trying to get the system to do a manual activation, but I kept getting a dbus error.  Finally, he said I would have to contact a 'google ninja' and open a ticket there.  I did that, and in the mean-time I thought  I would try some things out.  I had copied down the mdn, min, and system_id that Verizon tech-support gave me earlier and went about trying different combinations of booting with wifi/3g enabled/disabled.

No luck. Then I tried manual activation again---same dbus error. Now, I tried manual activation, but I did not supply any of the parameters on the command line.  This time it said activation failed, but did not give me the dbus error.  I checked the modem status, and saw that it had the min and mdn number were there now (previously they had said 'partial').  I went back to the chrome screen, it still had the 'Activate 3g' option. I went back to the terminal, and typed 'modem connect'.  Success!  3g connected and was working.  I rebooted, just to make sure. I still have the "activate" option in my network settings, but 3g appears to be working.

Saturday, December 04, 2010

Is Homeopathy Satanic?

As a scientist, I am skeptical of grandiose claims, cure-alls, and magic potions that cannot be explained naturally. However, also as a scientist, I try to keep an open mind, as I know there are many things which we do not yet understand. I can tollerate homeopathy, as long as it's not killing people. If it works, great, if not, then it's probably not a big deal.

As a Christian, I must also look at homeopathy. Is homeopathy satanic? If homeopathy cannot be explained by science, then are its effects from nature? If these effects are not from nature, from where do they come? Even if homeopathy has no real effects, is this faith-based medicine a false god?

Homeopathy is based on a core axiom, commonly called the law of similars, namely, that preparations that cause certain symptoms in a healthy person should be given in diluted form to people with ailments that exhibit similar symptoms.

To explore these issues, and examine homeopathy, we listen in on a conversation between three people who are having a discussion on the merits of homeopathy.

"Hey John!", Mike and Jill motioned to him to come over.

John stepped over, "Hi Mike. Hello Jill."

"What are you two up to?", said John.

"Jill was just telling me about this new kind of medicine, something about homeopathy, right Jill?" John interrupted, "You mean telepathy?" he elbowed Mike. "No really, homeopathy, it's a natural approach to healing,", said Jill.

John slowly combed his beard, "Yeah, I've heard of it. It's some weird hippy 'new age' thing, right?"

"New age!? You didn't tell me that, Jill!", Mike exclaimed.

"It's not 'new age', in fact it has been around since the 1800's.", said Jill.

John retorted, "Yes, it has, but since then science has advanced, and the only ways people are convinced of the efficacy of these potions is by combining them with 'new age' rituals and speech."

"So you think herbal medicine is all a scam?", Jill said.

John slowly responded, "No, I don't think all herbal medicine is a scam, homeopathy is not about herbal medicine, it is about the theory of similars. A theory that has never been shown to be true. Much like the theory of blood-letting."

Jill gulped, "I see. Well we all know that the pharmaceutical companies are all trying to keep you sick, their business is to sell you medicine, not make you better!"

John sighed, "Yes, and all mechanics break another thing in your car when they fix something else, right? I'm sure there are some crooked pharmaceutical companies, but to make your blanket statement, you must also believe that the homeopathics are crooks. They are people just as the ones who work in the pharmaceutical companies, subject to the same vices, and since their profit margin is so much higher, they are far more likely to be scamming."

"My cousin took some homeopathic remedy, and it helped her recover right away!", Mike cut in.

"So, how does it work then?", responded John.

Jill took a breath, "You see, you take something that gives a healthy person the same symptoms as the sick one is experiencing, you potentize it using a striker. This gives the memory of the energy of the poison to the water. Thus, when the sick person takes the pill containing the water, their body uses this to recover from the ailment."

Mike cut in, "You mean you dilute it and shake it. No need to use your fancy 'potentize' and 'striker' terms here. "

"Yes, that is correct. But the energy remains, the life-force of the poison.", responded Jill.

"Ah, see, now we are getting to the new age and occult. Since it is not possible to show how this works in nature, it must be some unnatural thing. You know, some spiritual thing. And that brings me to the question, is homeopathy satanic?"

Mike looked at John, "Wow! What are you talking about, John?!"

"You can't be serious, " said Jill. "All sorts of things were considered satanic and crazy because people didn't understand them. I'm sure electricity must have been at one time."

Mike snapped, "Sure, but some things that were considered satanic still are, for example, Tarrot cards, Ouija boards, fortune tellers, et cetera. When I see people putting vials of potions in their socks and dancing around, when I see people reciting numbers to be cured, when I see people putting all their faith in the church of homeopathy, it makes me question the power behind it."

Jill took a deep breath, "Well I can see that I'm not going to convince you today. You have brought up some points, and I will be watching homeopathy more carefully now to make sure I don't accidentally start turning to some occult practices."

Mike cut in, "hey guys! I almost forgot to tell you. My cousin just started this company and he said he can get us a great deal on vacuum cleaners, insurance, and legal council!"