Index ¦ Archives ¦ RSS

libwpd-bindings-0.1.0

Estimated read time: 1 minutes

I tried to search back when did I create Java bindings for libwpd - it seems this was the first commit.

First I kept back the source code to get some money for it (there were a customer who seemed to be willing to pay, but then disappeared), then I just abandoned the idea and pushed it to SourceForge.net to some CVS repo, (I even mentioned it in a blog post), which is finally now converted to git.

Long story short, a week ago finally Fridrich released the first version of the code, after about 2.75 years. :)


OSL_TRACE()

Estimated read time: 1 minutes

Background: OSL_TRACE() is an internal LibreOffice macro that is like printf(), but it’s only enabled in debug mode. Without it, you would add a debug printf during development:

printf("debug, foo\n");

then you would comment it out when the code started working,:

//printf("debug, foo\n");

then remove the comment when it breaks again, etc.

In the past, if you built a LibreOffice module, then you executed:

build

inside a module, and in case you wanted debug symbols and such messages you built using:

build debug=t

which increased the debug level to 2 (from 0), where 1 is required for debug symbols, 2 for debug messages. (See the OOo wiki page.)

The recent update, why I’m writing this post: Now this has been changed, and debug=t gives you debug symbols only, but no extra debug output. While this is great in most cases, sometimes you still want the old behaviour to get the debug messages. In that case the solution (as pointed out in the mailing list post) is to use:

build debug=t dbglevel=2

(Hopefully this post will be handy for who missed that post, like I did the first time.)


Systemd

Estimated read time: 1 minutes

I first heard about systemd from voroskoi, later Michael pointed it out again during the OOoCon 2010, finally it somehow came up on #frugalware.dev today.

So I read up some documentation in this area, and I definitely like it. (Note: I didn’t say I’m willing to do all the work to integrate this into Frugalware, but I like the idea.) For me, the killer post is this one: a distro-independent init script in 8 lines is very much like our FrugalBuild scripts which are no longer than 11 lines for a project with a standard build-system.

I like that minimalism a lot.


Rejourn: Using an unpatched version

Estimated read time: 1 minutes

One may have noticed that right now my rejourn tree is empty. That’s not an accident, after Ram accepted my 15th patch, finally the site runs an unpatched version of rejourn - of course with a custom config and design.

Of course I still have a few ideas on what to improve, so this is not the end of the story, but still - I’m happy he was so open for changes and new features that we reached this post. :)


How to split gpx files using gpsbabel

Estimated read time: 2 minutes

I usually just download the gpx track from my GPS and delete the track from device each time I arrive home and I was at some interesting place before. Last week this was not the case, I was at Gyúró two weeks ago, then I borrowed by device, without clearing the log from it.

So the task was easy: I had a timestamp and I had the full log from the device, and I want to split it: before and after a given timestamp. It turned out that I had some log from Oct 28th as well, so I wanted:

  • The log till Oct 28th

  • The log between Nov 5th and 8th

  • The log after 10th.

Luckily the gpsbabel documentation is quite clear in this area (see Example 4.8), I just needed the following commands:

$ gpsbabel -t -i gpx -f in.gpx -x track,stop=20101028 -o gpx -F out1.gpx
$ gpsbabel -t -i gpx -f in.gpx -x track,start=20101105,stop=20101108 -o gpx -F out2.gpx
$ gpsbabel -t -i gpx -f in.gpx -x track,start=20101110 -o gpx -F out3.gpx

Update: two more notes:

  • the stop is exclusive, start is inclusive

  • when using the result in digikam, the camera time zone has to be set to "manual: gmt+0", even if both the gpx result and the camera time is in local time


OpenOffice.org: vmiklos01 CWS integrated

Estimated read time: 1 minutes

Once I was ready with this year’s GSoC work I started to submit it back to OpenOffice.org. Before that was completed, LibreOffice was launched, though I thought if I started working on submitting it to OpenOffice.org as well, I’ll finish it. About 6 weeks later they now integrated (merged) the vmiklos01 CWS (the branch containing my GSoC work) to DEV300, what will became OpenOffice.org 3.4 later.


Google account migration

Estimated read time: 1 minutes

The whole story starts here. The whole conflict is about I had a google account with my vmiklos.hu domain already, but now the google apps account took it over and they asked me to rename the old account to something else.

I joined the early adopter program and I was happy about it, finally I could access Picasa with my google apps account, though I could not make it to picasa.vmiklos.hu or something. But at least I could use it.

Why I’m writing is that now they changed something regarding google groups as well, since I just noticed I can no longer post to the invite-only lists hosted on google groups where I use my personal address… It turns out the trick is to get the old (renamed) address unsubscribed and get the new one subscribed.

I’m not really claiming, since the new state is much more clear, but this unsubscribe + subscribe dance is rather uncomfortable…

Oh, and a related doc link in case you want to use gtalk on your domain as well (for now I decided not to use it).


German comment finder mentioned on LWN

Estimated read time: 1 minutes

So we had this script with Jonas, and the current news about it is that it’s mentioned by in this LWN article. I just innocently read the article and noticed:

After ten years, the code still has over 100,000 lines of German-language comments; those are now being targeted with the help of a script which repurposes the built-in language-guessing code which is part of the spelling checker.

— LPC: Michael Meeks on LibreOffice and code ownership

Nice! :)


BitlBee 3.0

Estimated read time: 1 minutes

Even if I gave it a quick testing about two weeks ago, now I tried the new Twitter / identi.ca support and I like it a lot. Now messages are not coming from a single user by default, but a separate channel is created, nicks are appearing there, and I can just highlight people to reply to their last tweet or simply type to submit a new one.

And of course my Skype module still works, as Wilmer fixed it up. :)


tgt is now available as a package

Estimated read time: 1 minutes

Today I packaged tgt an iSCSI target (server). The upstream package provides a large number of examples, though I thought it’s a good idea to note what I used for testing:

# egrep -v '#|^$' /etc/tgt/targets.conf
default-driver iscsi
<target iqn.2010-11.local.test:storage>
    backing-store /dev/sdb
</target>

Something offtopic: a rejourn patch accepted and a LibreOffice bug fixed today.

© Miklos Vajna. Built using Pelican. Theme by Giulio Fidente on github.