Archives for: "January 2012"

bad interpreter: No such file or directory

January 31st, 2012

Categorized by me as "WTF???". I did have sh installed in the bin-folder, but as usual, Google is my friend, found this perl snippet

Code

perl -i -pe's/\r$//;' <file name here>

Solution provided by vbrummet

British pair arrested in U.S. on terror charges over Twitter jokes

January 31st, 2012

If you in the nearby future, or I would guess I could cut the word "nearby", have plans to travel to the U.S, you must not under any circumstances offend the country in any way, what so ever. If you do you might end up as a suspected terrorist and be refused to enter the country...forever. It happened to a British pair since the guy had written some funny Twitter tweets...read all about it in DailyMail

Snow Leopard - Trash can won't empty

January 30th, 2012

For some reason that the "Secure empty trash"-function refuses to tell me, it would not totally empty my trash on our Macbook Pro running Snow Leopard 10.6.8. I stumbled across this Youtube-clip that got me started http://www.youtube.com/watch?v=lPTY8kHd0Hw


Point is that you need to go to the terminal and do a

Code

cd ./.Trash
sudo rm -rf *.*
to get the files deleted. If you watch the video don't worry about all the warnings of how dangerous the command is and also the thing he says that the command can have change - it won't change, this is a basic Linux/Unix command. Anyhow, this helped me out and I got to empty the trash totally. I guess it is a feature, but I hate the fact that it cannot empty my trash without me using command line sudo rm...

Dance the pain away

January 24th, 2012

Breaker vs. Nazis

Need to refresh my German language skills, that's for sure

A great moment in History

January 20th, 2012

Created a playlist with all Youtube clips of Hellacopters live at Hove 2008, a great moment in history!

SOPA and PIPA, learn why Wikipedia is down

January 18th, 2012

Find out more at wikipedia.org/wiki/Wikipedia:SOPA_initiative why Wikipedia is down today.

Motorcycle vs Car Drift Battle

January 15th, 2012

Pretty cool, fast car, bikes, RC cars and helicopters

Bike road train

January 13th, 2012

Anders on the snow sledge was very happy, Iver in the trolley was pissed, he wanted to sit on the sledge as well...but first he must learn to hold tight before he will be allowed.

Race towards Trans Germany

January 10th, 2012

78,0

The view at work

January 8th, 2012

Friday morning when coming to Fornebu.

And in the afternoon, just about to unlock my bike and head home.

MagSafe Power Adapter my ass!!!

January 7th, 2012

Written about the Apple Magsafe Power Adapter 85W:

...features a magnetic DC connector that ensures your power cable will disconnect if it experiences undue strain and helps prevent fraying or weakening of the cables over time....

http://store.apple.com/us/product/MC556LL/B

My ass!!! No I need to buy a complete new power adapter because the power cable has not disconnected when it experienced strain, and because of that it has not prevented fraying and weakening of the cable...which other product needs a complete webpage describing what not to do with it? http://support.apple.com/kb/HT1630 - Apple user friendliness my ass!!

Can I buy just the cable, no way Jose!! I need to buy a freakin complete new adapter, which some kids in Asia has made by their own hands in the middle of the night so I can surf the Internet...

The Joy of Stats

January 4th, 2012

Statistics and such, by no means my best field, but explained by Professor Hans Rosling in this one hour documentary http://www.bbc.co.uk/programmes/b00wgq0l (NRK3) it is in fact very interesting and somewhat fun. Like: Can computers analyze our feelings? They can, by harvesting all sentences starting with "I feel" from the vast amount of blogs on the Internet, maybe mine as well?

In one hour people all around the world consumes 7092 tons of bananas...

This again reminds me about Watson, the machine who won Jeopardy

Linux - find files older than 24 hours

January 4th, 2012

Something that easy turned out to be pretty hardcore

Take the file modification time in seconds and subtract the start time of the find program. This is the number of seconds in the past that the file was modified. Now divide by 86400 and discard any remainder. This is the number of days ago (as computed by the find command) that the file was modified. So the result you see is the expected result. You want:
-mtime +0

Solution found here www.unix.com/.../..problem-find

To much spare time?

January 4th, 2012

iMovie has some fun features...