The Current Pros and Cons List for SimpleDB
Ha humchi fo hum. Get it? sigh
The article’s pretty dumb, too. Funny title.
Mwah, I can’t help myself but to comment on some of the cons they list:
- “No referential integrity, stored procedures, joins, this is not a professional product” - Duh, you’re missing the point. If you want all that, stick to SQL. That’s what it’s made for. If you want to jump the wagon on the next wave of storing data on the web, this is for you. So is CouchDB, by the way.
- “No API support for X, Y & Z” - Again, duh. This is SOAP/REST, ever heard of HTTP?
They’re also commenting on the rumor that it’s built in Erlang. This flourished from Damien Katz, who said that someone at Amazon wrote a BDB layer in Erlang. It’s naturally distributed, which is nice, so if it is true, you know, great. Guess what else is written in Erlang? CouchDB.
via →Undo commit in subversion (svn)
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.
Battling Fibonacci
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.
Remote editing on OSX
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.
Kopi Luwak
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:
How much did that run me? Not sayin’.
Blue Mountain Coffee
Leopard Annoyances #1
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.
Migrating from MySQL to PostgreSQL
(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.
Coniuro
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.
Apple WiFi Hack Exposed
Remember back in mid-2006 when some security researcher allgedly found an exploit in the Apple WiFi Driver? As far as I remember, no one really believed him, or the video he produced.
Well it’s out now. Complete from discovery to exploit.
via →Urh,.. iPod Touch?
A few weeks ago, the iPod Touch came out. Everybody’s writing about it, and I promised not to succumb to the pressure of blogging it.
Anywho, so this poor sod received his, and it’s in the diagnostics program. Some technician must’ve left it there. Think you need a special sequence of “touches” to get to it. Here’s the kicker: There’s a Bluetooth menu item. And something called “Speakers” — which is not the headphones, since there’s a separate option for that. There was some debating just after the launch on Engadget, and it might just be so.
Anyway, SNAFU on the Apple scene. I’m getting mine in a few weeks. (Thanks to Johannes for pointing me at this.)
via →IDLE support for Apple Mail
Cool! mads pointed me to an IDLE implementation for Mail.app:
IMAP-IDLE is a plugin for Apple’s Mail.app 2.x. (Tiger version). It opens a second connection for each of your IMAP accounts, requests IDLE mode, and listens for messages from the server. When it receives a message that indicates new mail has arrived, it asks Mail.app to check for new mail. In this way, you get “instant” notification of new mail, rather than needing to wait for the polling interval (e.g., 5 minutes or whatever you have it set to). I have Mail set to “manual check” and let IMAP-IDLE tell it to check for new mail.via →
Sign of life.
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,
HOWTO: Move from Oslo to Amsterdam
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…
Amsterdam
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.
Blog tag
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.
Lefdal sucks
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.
∝


