Archives for: "November 2010"

Huge difference

November 30th, 2010

Inside 20 celsius above zero (68 Fahrenheit) and outside 20 celsius below zero (-4 Fahrenheit) least happy we are at my in laws. Must admit that I am considering buying stuff from at home. Would have been nice with a brand new iron stove at home.

Wikileaks - friend or foe?

November 29th, 2010

I must admit that I have found the first parts leaking out from the "Cabelgate" at Wikileaks was kind of boring - that some diplomat finds Berlusconi partying to hard and Sarchozy being easily offended, who cares? But when Hillary Clinton is ordering illegal surveillance of the U.N...ref. for instance

Diplomatic cables released by Wikileaks show that Secretary of State Hillary Clinton ordered U.S. diplomats, the CIA, and the FBI to spy on highest echelons of UN officialdom, including Secretary General Ban Ki-Moon and World Health Organization, the Guardian reports. The U.S. event wanted biometric information of UN officials including DNA and iris scans.

In the news today Clinton was angry, she is apparently having good reasons for that, and hurray for Cabelgate! (Until I decide otherwise...)

A sign from above?

November 29th, 2010

Alone at home today, was watching "Two and a half men" when I decided during a commercial break to switch to "The Big Bang Theory". There was a scene where one of the characters yelled out in a bar that his picture would be in Peoples Magazine, when Charlie Sheen turned around saying something like "Until you are on the front page it does not matter"... I took that as a sign and switched back to Two and a Half Men, feeling sorry for having left them in the first place...

Johan Theorin - "Nattefokk"

November 26th, 2010

My latest book, this time not a documentary but a crime fiction, the story takes place at the Swedish island Öland. Easy to read, mixing ghosts, thieves, police and more.

Changing XML attributes using Python

November 25th, 2010

Doing some work trying to update J2C resources defined in WebSphere using Rational Automation Framework, actually about the same thing as described in the article "A step-by-step guide to automating the deployment of a data source by using Rational Build Forge" and I needed to do some changes in jaas.xml. Won't go into the details why editing XML using for instance "normal" Perl is hard, but I ended up using Python and ElementTree to edit the file with a structure like this


    description="The database user"

Used plenty of sources to help me out, but I do think I did use the most - super when it comes to figuring out Python, but was also of great help!

The script I created is available here The script is bound to changing jaas.xml-files, but it should be quite easy to change it for other needs as well.

How to compare files? Notepad++ to the rescue

November 24th, 2010

Have been using Notepad++ for quite a while now, but have not dived into the various plugins to much yet. But today I needed to compare two files and had no available comparators, or...could have used Rational Application Developer - but that is overkill for comparing two Jython scripts. But then Notepadd++ plugins to the rescue. Found this blogpost, downloaded the plugin and followed this simple how-to installing it. Up and running in less than five minutes!

Magnetic resonance scan

November 22nd, 2010

Today I tried Magnetic resonance scan for the first time (and hopefully my last). It was not that bad experience, I guess because I do not suffer from claustrophobia and also because I could wear ear protections. I was there to get a picture of my shoulder, and in a few days I will hopefully just get confirmed that my muscles are ok and I can start lifting without any fear of creating more damage to my arm.

Worst thing was that I had to remove my nipple piercing, but after having watched this video I realized that it was a good thing to remove it...and I know that both Elin and my mother appreciate that it is gone...

Ragnar Hovland - "1964"

November 21st, 2010

My latest book, recommended by Elin, Ragnar Hovland "1964". Easy to read, and good entertainment.

How to undelete files in subversion

November 18th, 2010

I accidentally deleted a bunch of directories using "svn delete" about a month ago, and now we realized that we needed them. So, question was - how to do undelete in Subversion since svn does not have a undelete-command. Then 'svn copy -r REVISON' to the rescue. First attempt solution found at


The above command resulted in "NAMEOFDIRECTORY not a working copy"...damn!!! But then I found a slightly different way of doing it at and I did


Success...and if you are unsure of your svn url, just type 'svn info'

Then to commit a list of folders in one operation I found the solution at

cat mblade_list.txt | xargs svn commit -m "Restored"

Anders Frankson og Niklas Zetterling "Slaget om Kursk"

November 17th, 2010

The story about the battle of Kursk. Quite interesting book, off course a lot of name of various places and a lot of numbers making it a bit hard to hang in there, but also much focus on how the life of a solider was from day to day. Enjoyed the focus on the differences in leadership between the allied, here represented by the Russians, and the axis. Where the Russians focused on leadership from above, the Germans let soldiers on all levels decide during the battle, making the German army way more effective. They did not have to wait on orders from above when deciding what to do on the battlefield. Such things make the book worth reading, but still, you have to be interested in WW2 to really enjoy the book.

Planning to buy a new bike?

November 15th, 2010

Then you have several options, you could choose to go for the safe, conservative and very common alternative - bikes that has bike chains.

But if you want to be more innovative, maybe want to prove that you are an early adopter in the urban market (ha-ha), you could go for the Trek District Bike. It uses a belt instead of a chain, in fact it might be a good alternative for my single speed. I have already had to replace two chains this year, and I give the one mounted on it right now just another month before that one must be replaced as well.

But you can be even more innovative, take a look at the Stringbike. That is for sure innovation! But it looks a bit complicated I must admit.

Trøndersk Chargé d'affaires Oslo

November 14th, 2010

Today I was out with Anders, we had been at Teknisk Museum, which by the way surprised me bigtime being a paradise also for a boy only two and a half year. On our way home waiting for the bus the stop after Kjelsås, we had been at Shell buying some buns, I noticed a sign on the house just next to the bus stop. "Trøndersk Chargé d'affaires Oslo" and also showing the time both in Trondheim and New York.

How to do training with a broken shoulder

November 11th, 2010

Not what I'm used to call training, but it is...until my shoulder blade is healed.


Contrails at Vestreng

November 10th, 2010

Originally I planned to use the word "cemtrails", but realizing that it might cause some misunderstanding, I use the correct word instead, which is contrails. But even still, I find it a bit interesting how much time and effort people can spend when it comes to conspiracy theory's. But then again, for them it is the truth...nice pictures anyhow

Roy Jacobsen "Grenser"

November 8th, 2010

My latest book, Roy Jacobsen "Grenser" (Borders)...story about a man saying he is blind, but is not, about Stalingrad during WW2 and such. Even so, did not like this one, enjoyed Seierherrene and Vidunderbarn much more

A Perfect Circle

November 8th, 2010

Watch the drawing of this perfect circle

Found the video while I was listening to A Perfect Circle

Bjørvika, Oslo seen from the window of a bus

November 6th, 2010

Yesterday at about half past four, on my way from Oslo to Vestreng by public transportation for the first time. Nice view. Picture taken using my Nokia E72

Microscopic step for mankind, a giant leap for me

November 6th, 2010

Pictures taken yesterday morning. The first one showing our bread knife and the toaster and no bread. That's good news since I have used my right arm cutting the bread all by myself (and then eat it)

And here you have me, very pleased since I have managed to put on a normal t-shirt all by myself! Good thing after having spent the past two weeks wearing t-shirt of wool, very warm, but so stretchy that I managed to put them on. My arm keeps getting better and better each day...