rblog

Spinning to Mumford & Sons

#11 – Today I was spinning while listening to Mumford & Sons and their debut album Sigh No More. Got to known them by using Spotify and have long wanted to listen to the whole album without a pause. Must admit that I did not expect it to be the best “spinning-music”, but I was wrong…I really enjoyed it, just a few songs that where to …slow…

[video:youtube:_KCg_QEHtkY]

I have bought a coconut

The tools and the nut

Drilling the hole in order to get out the coconut milk, which tasted like nothing I have ever tasted before, I guess I would have had to be deserted on an island before enjoying it.

So I ended up discarding the milk but making coconut macaroons of the rest. Actually tasted quite well I must say, even though they are not a sight for sore eyes.

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()

Hjem