March 30th, 2010
9 years ago, I started a fan site dedicated to the game called Codename Eagle. In 2005, I shut the website down due to a lack of time. A couple of weeks ago, some friends of mine brought up the old game and we had a blast playing again. After searching for some info on it online, I found there was very little information available on the game, so I decided to quickly throw together a reference site on the game for anyone who was looking for information on it.
It’s now online at codenameeagle.net – I suggest you check out the unofficial multiplayer demo – it’s a real blast at any LAN party. Definitely worth a try!
Tags: CE Nation, codename-eagle, gaming
Posted in CE Nation | 2 Comments »
December 14th, 2009
Have you ever wanted to log a user out of your site if he is inactive for a given amount of time?
Create a better user experience by dimming or hiding page elements while the user is watching a video?

A couple of months ago I came across Nick Zakas’ YUI approach to this problem, and recently I found Paul Irish’s jQuery plugin which was based on Nick’s work.
This is my attempt at creating a Mootools class that uses the same approach. Quite simply, it fires a timer that activates a callback after a given amount of time. The timer is reset if the user moves the mouse, presses a key, scrolls using the scroll wheel or clicks any mouse button. This has to be done over the active document, obviously.
Key features:
- Can be attached to a single element on the page or the entire document/window.
- Lets you set up multiple instances with different timeouts and events.
- Easily retrieve the idle status from the instance using the isIdle property.
- Find the number of milliseconds since the user was last active.
- Allows you to call the active() method to manually reset the idle state – useful for Flash and other overlays that lets you communicate with Javascript.
- Easily retrieve an IdleTimer instance using element.get(‘idle’, { options });
- Free and open source. MIT-licensed.
Check out the demo page for more details. The source is available on Github as well as in the recently opened MooTools Forge.
Tags: class, forge, idletimer, Mootools, plugin
Posted in Mootools | No Comments »
December 8th, 2009
My new project, ØnskerSeg.no is now live.
“Ønsker Seg” is a service that lets you create and share wishlists with people you know. Each user gets a simple and easy to remember URL, x.onskerseg.no. For now, the service is only available in Norwegian, but if I have enough time it would be fun to make it “international”.
It’s not often I have the time or dedication to finish a project like this, so I’m very happy to see it online and I’m going to keep adding features to it. So if you’re Norwegian and you’re looking for a simple way to create and share wishlists, take a look!

My latest project, ØnskerSeg.no
Tags: project, website
Posted in Ønsker Seg | No Comments »