Monthly Archives: October 2012

Ignorance is bliss – why it’s hard to stop drinking

If I hadn’t known the difference between being under the influence and sober, I wouldn’t care much for drinking – and I guess most of you readers wouldn’t too. That’s the key idea. That’s why we have alcoholics, drug addicts, … Read more

Posted in Life / Philosophy | Leave a comment

How to change all the existing NetBeans file associations to point to a new NetBeans installation in Windows

Read on if you have one of these problems: My netbeans.exe associations are broken. When I try to change the association to different NetBeans binaries it still won’t work. I have two NetBeans installations and want to change the associations … Read more

Posted in Netbeans | 1 Comment

How to map a Servlet to only the front page / root path of your webapplication

This post is about Java Web Servlets and will hopefully save you some hours of debugging. Prelude Rant I was naive enough to think that the reasonable URL pattern “/” would match only the root path of the application. Guess … Read more

Posted in Java | 1 Comment

Iron Man, software development and entrepreneurship

Just finished watching Iron Man. It’s a fun movie, especially the Tony Stark character (the guy wearing the Iron Man suit). He’s somewhat narcissistic and arrogant but he has a good heart underneath that armor, well sort of, at least … Read more

Posted in Entrepreneurship, Programming | 3 Comments

Thoughts from a fresh dad

I met my newborn daughter today for the first time. She was born a few days ago while I was still in Skandinavia finishing off the last working week before coming here. She’s a really lovely baby who even looks … Read more

Posted in Family | Leave a comment

The Duck(typing) movie – movie script idea

An continuation of my silly programming movie script ideas. Briefing room: A (commander dude): When I see a bird that walks like a duck and looks like a duck and quacks like a duck, I call that bird a duck! … Read more

Posted in Comedy, Programming | Leave a comment

Super-simple way in Java with Netbeans to build all dependant libraries and subprojects with distribution

I think I finally figured out a simple and elegant way to build dependant libraries directly with the distribution and kiss that NoClassDefFound error goodbye. I also have a similar solution for Java Web Application projects. What you need is: … Read more

Posted in Java, Netbeans | Leave a comment

Compiling Mustache.java jar on Windows

I’m a Java rookie. I did a basic Java course in college back in the day (even got an A!) but I’m totally clueless now. I finally figured out how to compile Mustacha.java into a working jar (running jar out-of-the-box … Read more

Posted in Java, Maven, Mustache | Leave a comment

Kjæresten min føder vårt barn 8600 kilometer fra meg

Kjæresten min er nå på sykehuset i Thailand og skal snart føde vårt første barn. Jeg er 8600 kilometer borte. Jeg fikk ringt og vi fikk vekslet noen ord og jeg fikk kastet inn noen betryggelser før hun måtte legge … Read more

Posted in Family, Norsk (Norwegian) | Leave a comment

My 5-hour long stay in Cambodia

I just arrived in Cambodia. The only reason I’m here is to stay in Thailand. Confused? Read on. Tourists can only stay in Thailand for one month without a Visa. The only way to extend the stay is to cross … Read more

Posted in Cambodia, Thailand | 1 Comment