rblog

Lovely winter’s day in Oslo yesterday

While my skis where miles away from me I needed some other excuse to get out and enjoy the nice weather yesterday. Decided to take the bus out to Fornebu to pick up my bike there. This picture is taken close to Lysaker

Took a stop on the bridge crossing the road in Bjørvika, using the panorama function of my cell phone.

Took a stop and noticed that my rear tyre is pretty much covered with salt. Need some warm weather pretty soon so I can clean my bike.

I’m a nerd and I’m proud!!

Had a folder with about 350 property files, but with only 150 of them having a valid file name. No problem finding the files with a valid file name using find in combination with regex

find . -regex '.*__.*properties'

Problem is that I do not want to find the files with valid file names, I needed the ones with invalid names, but all the time regex is powerfull doing almost anything except excluding phrases and such (as I have read in various sources found by Google) I had to find a workaround.

So here goes, all from the directory where the files are located

  1. ls > allfiles.txt create a file with all filenames
  2. perl -pi -e ‘s#.*__.*properties##g’ allfiles.txt Remove all valid filenames
  3. perl -pi -e ‘s#^\n##g’ allfiles.txt Turned out that I did not remove the newlines, so to get rid of all the blank lines I needed to issue this command as well.
  4. for i in `cat allfiles.txt`; do svn delete $i; done This oneliner loops through the file, for each line delete the file from subversion (which deletes the file for me)

Voila! Pleased with myself 🙂

Biking in cold weather

Today when going to work in just below -10 celsius I realized that my glasses where gone, so I had to test the googles I have bought for days like these. Combination of snow and cold weather is a bit hard if not having glasses. But to my surprise it turned out to work just fine, no condensation and also no pain in my forehead due to cold weather when going downhill from Tveita.

Our street today, pretty bad conditions, but on Thursday it will be better, then they will come and remove all the snow.

One teaspoon is enough!!

This weekend while cleaning the dishwasher I learned the hard way that one teaspoon of Zalo is enough. Just used it to clean the valve, but should not have…

But it could have been worse

[video:youtube:QcwAlcFOl00]

Should have watched the movie with Mark Newman-Kuzel…a CEO showing the way… ehow.com/..clean-dishwasher.html, who also can show you have to clean the shower and much more 🙂

Hjem