Archive for March, 2008

emacs css-mode indent-buffer fix

Friday, March 21st, 2008

Ive been using emacs for some years now, but I always noticed the css mode seemed to format it a little strange.

I found this article, it fixes all the issues in the css mode.

(setq cssm-indent-level 4)
(setq cssm-newline-before-closing-bracket t)
(setq cssm-indent-function #'cssm-c-style-indenter)
(setq cssm-mirror-mode nil)

Now when I auto indent the buffer it looks correctly. I have no idea why this is not the default for the css-mode.

FYI my auto indent key is F2.

(defun indent-buffer ()
    (save-excursion (indent-region (point-min) (point-max) nil))
(global-set-key [f2] 'indent-buffer)

Helmet Cam

Tuesday, March 18th, 2008

Well I suppose I could get more than a Rubiks Cube for my birthday.

I have been looking at getting a helmet cam for when I go snowboarding in Hintertux.

The good complete systems are quite expensive, around 800 Euros for a good one, then I need a helmet too, they cost around 40 Euros.

The Elmo SUV


Elmo SUV @ Vegaoptics



VIO POV 1 @ Vegaoptics

I now wish I had bought a better camcorder when I did last year, then I could just get the helmet cam and connect it in, but my DCR-HC37 doesnt have audio or video input.

I think I’ll have to make do with my current camcorder this year, its not even 1 year old yet, at least I’ll have my Rubiks cube.

Rubiks Cube

Tuesday, March 18th, 2008

Well my birthday is coming up soon and the only thing I want is a Rubiks Cube 4×4.

Rubiks Cube 4×4 Image

I have many 3×3 cubes which I can solve (quite) fast, and I have taught many people over the years.

I actually have to admit that I never really figured out how to solve them myself, my Grandad actually showed me many many years ago.

It looks like there are a lot of online stores in Germany which sell them


Tuesday, March 18th, 2008

I finally got around to moving away from simplephpblog. It was so hacked and customised I could no longer upgrade.

I have moved to wordpress. It feels more professional, but its going to take some time to get used too it.

I have moved most of the posts from 2008, but all the old ones have been deleted.

VW Golf does 82mpg

Monday, March 3rd, 2008

Well this morning Steve actually worked out how many MPG our 11 year old A4 gets. Roughly its around 25mpg. Not great, but not bad either. The wikipedia page for the A4 says the new cars only do around 30 mpg. This new VW Gold gets 82 mpg. If it has the same petrol tank size as my car, it would do around 2000km on a 60 litre tank. Thats just crazy! 🙂

82 miles per gallon = 34.861784 km/litre
60 litres * 34.8 km/litre = 2088 km

I’m not sure I would buy a hybrid car though, they may be more fuel efficient, but that does not mean they are that good for the environment.

You have to remember batteries and plastics are very bad for the environment and in the total lifetime of the car, the environmental impact of the manufacturing and disposal of the car are often ignored.

If you want to know the best car for CO2 production then the telegraph has this story about C02 production in current cars.

I’d be very interested to find out how environmentally friendly old cars are. I know they don’t do 50 + mpg but they were mainly steel and wood, both easy to reuse.

You may want to read article too. Its called END-OF-LIFE VEHICLES: A THREAT TO THE ENVIRONMENT.