What is energy independence?

So the USGS has almost completed the survey of the Bakken Formation. Estimates on the amount of oil contained in the shale formation range from 900 billion to 200 billion barrels.

A poster on Slashdot said that “Such a reserve would go a long way toward securing US energy independence.”

What exactly is energy independence? It seems to me that unless the United States starts taking alternatives to oil and coal more seriously that we are just trading dependence on foreign sources of petroleum for dependence on domestic ones. Is that really much better?

Import WebCT Cert

At work we run the WebCT Vista course management system by Blackboard.

Recently I was requested to figure out how to import the security certificate from the command line so that we could add this to the login script used for our campus computers. The main reason behind this was to eliminate the need for the user to have to manually agree to the security certificate when browsing to the CMS.

Normally when you want to create a Java keystore, you would use the keytool program located in $JAVA_HOME/bin. If you run this program to import a certificate without specifying a location for the keystore it tries to create one named .keystore in the user profile home directory.

However, when the JRE actually imports a certificate it doesn’t put it in this file. After some investigation, it turns out that the JRE imports certificates into a file named trusted.certs which is located in the following directory

C:\Documents and Settings\USERNAME\Application Data\Sun\Java\Deployment\security\

In order to import a certificate into a keystore you need to vital pieces of information:

  1. the keystore name
  2. the keystore password

The problem here is that this keystore is being automatically created by the JRE. It turns out that this keystore has a password that is an empty string. What this means is that when you import a certificate you have to specify the password by using the storepass parameter with a value “”.

For example if the certificate that you want to import has a name and path of

c:\Blackboard.cer

the command to import the certificate for the user jdoe would be

keytool.exe -import -noprompt -keystore C:\Documents and Settings\jdoe\Application Data\Sun\Java\Deployment\security\trusted.certs -storepass "" -file c:\Blackboard.cer

Update 2008-04-09:

I have also found how to do this on Mac OS X. According to the developer documents, the JVM on Mac OS X uses the user’s default keychain to store this type of certificate instead of using a file-based keystore like the other OS.

In order to store the certificate in the user’s login keychain you can import it via the command line tool certtool that is installed on the OS.

The command to import this certificate from the command line is

certtool i path/to/cert/file k=~/Library/Keychains/login.keychain

If you want to have this happen at login for each user who might login, then you could implement this via a login hook. For more on this, take a gander at the article 301446 in the Apple knowledgebase.

Whither MyMileMarker?

For the past several months I had been entering my fuel data into a really nifty web application called MyMileMarker.

As you entered each successive fill-up the application would chart your mpg. Not only that it was estimate the odometer reading of your next fill-up based on previous usage.

Unfortunately it would appear that this site is now more. I went to it yesterday to enter my latest fill-up to find that the site had disappeared, only to be replaced by a parking page by their webhost.

Maybe someone else will come up with a similar site.

caveat utilitor

Shows like CSI, Law and Order and Bones, throw around a lot of interesting phrases in Latin. While you may not care to study Latin, here’s a few that are fun:

  • caveat utilitor – let the user beware
  • condemnant quod non intellegunt – they condemn what they do not understand
  • deus ex machina – god of the machine
  • Roma aeterna – Rome is eternal

For some more fun phrases in Latin check out the entry List of Latin phrases (full) on Wikipedia and the latinproverbs wiki.

Wow I know I say it louder

So what’s it take to get you to remember a television commercial?

Sometimes it a catchy phrase, like “OMG, INBD!”

But more likely it is a catchy song.  Here are some of my current favorites:

Kia Spectra
Just Can’t Seem to Get it Right Today – Joe Purdy
http://youtube.com/watch?v=IitjbUD_VUc

Apple MacBook Air
New Soul – Yael Naim
http://www.youtube.com/watch?v=-YUxbDEPFiM

Apple iPhone
Perfect Timing This Morning – Orba Squara
http://www.myspace.com/orbasquara

What are some of yours?