What’s up?

3. February 2012

So as usual I need an excuse for not blogging for so long. This times it’s work, moving to Berlin and some other things.


While I haven’t contributed that much code in that cycle apart from minor bug-fixing there have been a couple of nice contributions:

  • Sébastien Granjoux did amazing work to improve our project management which is now much easier to use and more powerful
  • Marco Diego Aurélio Mesquita (what a name) improved the glade integration by allowing to automatically connect widgets and code
  • But I guess I should cover all this in a “What’s new in Anjuta 3.4” post pretty soon


The often forgotten but still heavily used docking library…Inkscape forked that library into their repository and added some fixes for them that were never magically contributed back and at some point (especially with the gtk+3.0 transition of gdl) I became very hard to merge between the projects. However, lately Alex Valavanis stepped up and ported most of the Inkscape patches back into gdl master and hopefully Inkscape will be able to use stock gdl (or probably better gdlmm) really soon.


As I tried to organize all my banking stuff I made some contribution to the best linux banking software in the area of HBCI/FinTS which is a german standard to securely initiate online transactions with your bank. I hope to find some time to actually implement SEPA (read EU- or international transactions using IBAN and BIC) at least originating from german accounts. But I have to think about how to compute (98 – (x mod 97)) for x being larger than a 64-bit integer and while I found some strategies on the web this was too much math for a late evening. Before you ask, this is part of the way an IBAN checksum is computed and I need this checksum because at least for Germany the IBAN can be generated as a combination of account number and bank-code.

Brno Hackfest

/me will be there saving the world or drinking beer, maybe both.


After having been for a couple of hackfests which my much loved white netbook (read: “Oh, it’s so cute…”) I though it’s time for a real (male 😉 laptop. It doesn’t seem very easy to get a reasonably priced laptop without a Windows license or preferably with a preinstalled and working Linux. After some searching I ended up buying a ThinkPad Edge 320 from linux-laptop.de which arrived pretty quickly (apart from some problems with the postal service). I ordered it preinstalled with Linux Mint after having only used Fedora for a while.

The installation was complete but the fan was constantly running which annoyed me but can be fixed by installing the thinkfan utility and now things are quite again! I reported this back as I kind of assume things like that installed when I order a laptop with operating system.

6 Responses to “What’s up?”

  1. Did you read https://mail.gnome.org/archives/gtk-devel-list/2012-January/msg00033.html ? In particular the part where I’m wondering about having a dock in GTK?

    If Inkscape and Anjuata were using such a widget and I could get someone to port the Gimp, I think there’s a good argument for wanting such a widget in GTK core. (Also, I bet the GEdit guys would start using it immediately, they use all the crazy new stuff in GTK anyway….)

    That said, such a task would probably involve lots of boring fixage to make GDL conform to GTK coding standards. On the other hand you gain the benefits of being a GTK core widget and access to all our awesome internal APIs. So I’m not sure if that’s a task anybody wants to undertake.

    • jhs Says:

      Hi Benjamin!

      I don’t follow gtk-devel-list so no, I haven’t heard about it. I am not at all opposed to integrate gdl into gtk+ but I definitly won’t have time to do all the work.

      The coding style of gdl overall probably isn’t too bad, the documentation needs to be completed and the remaining bugs of gdl (all!) need to be fixed if this is going to be in gtk+ because it still has some rough edges. The problem is that you need a lot of knowledge of all the internal GtkWidget drawing code to be able to contribute – it’s not one of those easy tasks…


  2. “Male”? What?

  3. M Welinder Says:

    mod-97 one digit at a time. Not large values in play.

    perl -e ‘$m = 0; foreach $d (1, 0, 0, 0, 0) { $m = ($m * 10 + $d) % 97; } print “$m\n”;’

  4. Timo Kluck Says:

    Perhaps you have solved it already. If not, here’s my idea: You could pre-calculate (x mod 97) for x a power of 2. Then use that data (and additivity of taking a modulus) as follows:

    def computation(x):
    # pre-compute this table
    n_bits = 128
    a = {0:1}
    for i in range(n_bits):
    a[i+1] = 2*a[i] % 97

    res = 0
    for i in range(n_bits):
    if(x & (1<<i)):
    res += a[i]
    return 98 – res

    Hope it helps 🙂

  5. Anonymous Says:

    Just use libgmp. 🙂

Comments are closed.