Archive for January, 2007

And it arrived…

Wednesday, January 31st, 2007

Last night I had a smallish nightmare. I have been waiting on my N800 to arrive since last Friday and because I had ordered the device to my home address, apparently I have never been home. So in the dream the device finally came.. I unwrapped it.. opened box.. teared apart the plastic bags and first thing that landed on my table was the flash card. And the next thing was NES cartridge with Actraiser logo. Well, I felt quite pissed at that point because of all the waiting, missed delivery reports on the UPS package tracking view. I don’t remember what happened afterwars, but eventually I woke up feeling very thirsty… And now comes the funny part - the Actraiser game was never made for the NES system, but instead was released for Super NES. Weird, but I clearly remember the shape of the NES cartridge having Actraiser logo and although, not that cleary I recall reading the name out loud…
N800 itself is quite a sweet piece. 3 times smaller in dimensions and about 4 times lighter than the Samsung Q1, this is clearly the winner in Ultra Mobile class ;)
And thanks to our local #n800 channel, I already have shell, ssh and root access. Only missing piece at the moment is the scratchbox which is still being downloaded.
BIG THANK YOU TO EVERYONE AT NOKIA OSSO TEAM FOR DEVELOPER DISCOUNT!!!

Intelligent diff for PO-files

Saturday, January 27th, 2007

One of my responsibilities is to maintain Estonian Translations for GNOME and part of this job is to also check whether the translations make sense and look good. In the other end, this means that I also have to review (or find someone) to review the translations.
Currently we are utilizing a script which sends the changes between modified mails to our cvs mailinglist. Sometimes these changes are also good for reviewing purposes, but sometimes are not :(
On Friday evening I went for a lookout for a script which generates intelligent diffs between po-files and found one perl script which was excellent. But this was only the beginning of the journey, because it had to be customized so it could be invoked by SVN-s post-commit hook.
And the result is here
Using it together with svn-mailer should be fairly straightforward. You only have to change the diff_command parameter to:

diff_command = podiff.pl %(label_from)s %(label_to)s %(from)s %(to)s

And then run the post-commit to see if it works… ;)

Work and play…

Thursday, January 25th, 2007

First things first - I upgraded my Wordpress to version 2.1 and reverted back to the original theme for now… I will probably change the theme back during this week, but I have felt that redesign is needed for a while now…
Also there is some blogging stuff on hold about gadgets and happenings like Canon EOS 400D, Samsung Q1, Nokia N800 and Mozilla Security Bounty program… For the curious - you can always check my “files” directory, to see what I’ve been up to. ;)

Scratching my itch…

Monday, January 8th, 2007

I spent ~40 minutes in #evolution today morning to get my patches commit approval…

10:39 < plaes> 373497 - evolution doesn’t honor prefix
10:39 < plaes> 375577 - Evo uses Spamassassin, but project name is SpamAssassin
10:40 < plaes> 382860 – GTK_IS_CHECK_MENU_ITEM failed: impossible to run 2.9.x
10:40 < plaes> 373495 – e-d-s doesn’t honor prefix

Apparently there was some movement, but still… Evo maintainers seem to be quite overloaded at the moment, which is sad, because there are some pretty bad bugs in there. (But I managed to get rid of one blocker so far, although it’s not committed yet).
Anyway.. my bitching gave me some more power:

11:44 <@andre-afk> plaes: you now have the power to change anything in
                   bugzilla. <disclaimer>use that power wisely
                   (=common sense :-) .</disclaimer>

Last Friday, while doing some .Net stuff with Mono, I discovered one quite bad problem:
When having a byte array which has string “test” in the beginning and the remaining bytes are NUL characters, doing String.Compare(Encoding.ASCII.GetString(buf), "test"); does not give the same results on Linux (with Mono), as it does on Windows. Apparently one has to use Encoding.ASCII.GetString(buf, 0, strlen)); instead. I tried reporting this to Mono guys, but apparently I was just wasting their time…
But well, lesson learned.

Also - N800 (I’m currently having problems finding link to it on Nokia.com page) is out too and there might be some developer discounts as there were for 770. But I really want one, because I missed 770 due to some unfortunate circumstances :)