rblog

Bambi on ice

Two days ago, the first snowfall here in Oslo. The garbage truck having major trouble trying to drive downhill next to us. Midway he crashed into the fence, then he turned around and tried to go reverse dowhnill, crashing into the fence by the yellow house as well. At last he managed to slide down without causing major damage.

Jython – Unpack the manifest-file from a jar on the Windows platfom

Decided to create a script based on Jython v 2.1 (WebSphere comes with that version) that finds all third party jar-files packed in a EAR-file. When found I also needed to read the MANIFEST.MF-file to figure out the version of the jar. To accomplish this I needed to execute jar.exe to be able to extract the manifest file, when that is done I can read the line implementation-version in the file.

First, import the needed Java-classes


import java.lang.ProcessBuilder as ProcessBuilder
import java.lang.Process as Process

Then in the script


pb = ProcessBuilder(['cmd.exe', '/C', 'd:/WebSphere/AppServer/java/bin/jar.exe','xvf', 'd:/path/lib', 'META-INF/MANIFEST.MF']);
pb.directory(io.File('d:/temp'))
process = pb.start()
process.waitFor()
process.destroy()

Black Rose in Oslo

Black roses (roses of black color) do not exist in nature. They are often featured in fiction with many different meanings and titles such as black magic, barkarole, black beauty Tuscany superb, black Jade,” and baccara and death varieties of roses.

More to be found at
http://en.wikipedia.org/wiki/Black_rose_%28symbolism%29

Not sure if the truck driver has thought of the same symbolism when spray painting the truck which I saw outside my office building today.

This weekend in Tromsø

Spent the weekend in Tromsø celebrating my first cousin Andre, he turned 40 about a month ago. I also got to visit my friend Kent, always a pleasure. Sunday, lovely weather in Tromsø, Kent is giving the garden shredder a hard time.

Also testing the pogo stick
[video:youtube:NHfCYyVa2us]
After work what tastes better than black crowberry lemonade? “Krøkebærsaft” from http://midnattsolprodukter.no – worth the money.