2008

2007

2006

2005

2004

IM ON UR DESK, MAKIN SUR U CODE PROPAH

▁ dec 20 2007

IMG00051

. o .

The Current Pros and Cons List for SimpleDB

▁ dec 18 2007
. o .

Undo commit in subversion (svn)

▁ dec 11 2007

A quick google search will turn up a few blogposts and forumthreads on how to undo a commit in Subversion. This is the easy way to do it, and also serves as a note for myself.

Example: You were working on rev 1707 and you committed some donkeycode that you have to remove. The donkey revision is 1708. You want to roll back.

user@host% svn merge -r 1708:1707 .
U    media/shared/css/admin.css
D    media/shared/js/ajax.js
U    settings.py
U    urls.py

OK, so some files were “updated”, meaning that the code you wrote is taken out, and some files are deleted, which are files that you added in your revision. Now check that it only made the changes you wanted it to:

user@host% svn diff

If it all looks OK, go ahead and commit your “rollback.” It’ll get a new revision number, but that’s how SVN works.

Hope this helps someone.

. o .

Battling Fibonacci

▁ dec 08 2007

There’s been some buzz lately over at programming.reddit.com where they’re comparing the speed of various languages, in calculating the fibonacci sequence.

So today, Vetle (who also has a birthday today, congrats!), posted an example in Simula.

Lets beat it! In D, that is.

import std.stdio;
void main() {
  for(int i = 0; i <= 36; i++) {
    writefln(fib(i));
  }
}
template fib(T) {
  T fib(T n) {
    if (n ==  0 || n == 1) {
      return n;
    } else {
      return cast(T)( fib(n - 1) + fib(n - 2) );
    }
  }
}

Runtime? A mere 0.863 0.742s ;) (with -O)

I can’t be bothered to post other benchmarks. Suffice to say, it’s fast.

UPDATE: Mads beat us with a C version that ran in 0.362s. He cheated by using -O3.

. o .

Remote editing on OSX

▁ nov 18 2007

Many people develop for the web on their OSX box. I’ve been doing this for years, and I’ve been down many roads for finding the best solution for this. There seems to be problems with most of the solutions, and this blogpost will go through some of the ones I’ve personally experienced. More after the break.

Read more »

. o .

Kopi Luwak

▁ nov 10 2007

My coffee pusher is amazing. I went to the store today to pick up some trivial items, and guess what I see. Kopi Luwak. This is, without a doubt, the most exclusive coffee in the world. It gets exported only once a year, and it’s near impossible to get a hold of.

There’s 500g available of this stuff, this year, and I managed to pick up 1/10th of that:

DSC01595

How much did that run me? Not sayin’.

. o .

Blue Mountain Coffee

▁ nov 06 2007

What can I say. I love coffee.

DSC01593

This stuff goes for $20 per 100 grams, people.

. o .

Leopard Annoyances #1

▁ oct 30 2007

Listing what annoys me about Leopard so far:

  • Cmd-Tab. When you are in cmd-tab mode and you head all the way to one side, and then try and go one further, it’s stuck. This didn’t happen in Tiger.
  • Sending mail through SSL servers without a certified certificate. Mail.app 3 just won’t allow you to do this. This is annoying like hell. Didn’t happen in Tiger either.
  • Dashboard Dictionary. When you’re in the input-field and you hit Escape, this doesn’t clear it so you can write a new word. Worked in Tiger. Well, let’s go through what major Tiger annoyances they’ve fixed since the last version:
  • Burning a disc. The disc title defaults to “Untitled CD/DVD”, and if you’d Tab to that input field, it’d only focus the “ntitled CD/DVD” part, leaving the uppercased ‘U’ intact. That’s fixed.

There was one other thing, but I’ve forgotten by now.

I’ll post more as I discover them.

. o .

Migrating from MySQL to PostgreSQL

▁ oct 16 2007

(If you’re not tech-savvy, please stop reading now.)

I’m waiting for a query to complete. It’s almost midnight. I’ve been at it all day. I’m trying to migrate a large amount of data from MySQL to PostgreSQL. There has been many walls to run into. Ran into most of them.

More after the break.

Read more »

. o .

Coniuro

▁ oct 15 2007

That’s the name of the company owned by some of my friends’ company. I do a lot of work for them right now, and hopefully I will be for a while :-)

They’re taking on clients and pass some of them on to me. I do that ~37 hours a week. It’s fun! Doing lots of python development, using the django framework which is excellent.

At the moment, we’re doing a site called ‘hundesitter.dk’, which bascially translates into dogsitter. It’s a site where people can create a profile and add their dogs, and in due time, they can hopefully locate a sitter in their area. Nothing major, but it’s fun to work on, and I get to use the tools I like. Just a small update.

. o .

Apple WiFi Hack Exposed

▁ sep 19 2007
. o .

Urh,.. iPod Touch?

▁ sep 14 2007
. o .

IDLE support for Apple Mail

▁ sep 12 2007
. o .

Sign of life.

▁ sep 09 2007

Sitting here on a couch, writing from my new Macbook. I haven’t written for a long time. Oddly, most of my posts about me not blogging for a long time. So what’s up. Working a lot on Dr. Whatson these days. If you don’t know what that is, then you should look forward to it! We’re launching in a few months, we hope. Oh, I started a company. Avantlumiere it’s called. I also quit my dayjob. I’m going to do some “steady” freelance work for some good ol’ friends in Denmark, that have formed their own company. I’ll also have some time on the side to work on my own things. Got some office space in downtown Amsterdam, so I won’t go crazy all by myself. It’s shared office space, so I’ll be hooking up with some other entrepreneurs, webdesigners and a journalist! It’s gonna be really exciting. I really want to start writing more here, and I’ve gotten a hold of MarsEdit now. That should help with getting more content up here. The new design should too ;-) So long,

. o .

HOWTO: Move from Oslo to Amsterdam

▁ apr 22 2007

Yeah yeah, this entry has been delayed by more or less 3 months. Sorry. But, without further ado, the howto on moving from Oslo to Amsterdam! Well, it all starts with…

Read more »

. o .

Amsterdam

▁ jan 25 2007

We’re here. We’re finally here. Our — at least my — aim for the past several months/years, has been obtained. We’re in Amsterdam. I’m blogging from there. How’s it going? Read on.

Read more »

. o .

Blog tag

▁ jan 09 2007

Whatever the heck that is. All I know is that “Eirik”:http://www.eiriks.net/index.php?id=177 tagged me. So I have to write 5 things about me here, that you didn’t know. Here goes: 1. I have a license to operate both a sewingmachine and a dagger. 2. I’m half deaf on my left ear. It happened when I was 2. 3. If the volume on any audio device is not dividable with either 2 or 5, I get uneasy and can’t rest before it’s fixed. 4. My partner is the most beautiful woman in the world. Period. 5. I shake my head when I sleep, for no apparent reason. Now, I want “Vetle”:http://my.opera.com/vetler and “Joen”:http://joen.dk to do the same.

. o .

Lefdal sucks

▁ jan 03 2007

I bought my Nintendo Wii when it came out here in Norway. I stood in line early morning to get it. I was very excited about it, and I got one as #17 in line. I go to work, unpack the damn thing, hook it up to our TV here (yes, we’re all very hard working here at Opera), pop in Wii Sports. And it doesn’t work.

Read more »

powered by