Index ¦ Archives ¦ RSS > Tag: en

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.


Handy Latex bookmarks

Estimated read time: 1 minutes

Today I had some Hungarian mathematical logic notes to type in Latex, and again I had to dig up the various references to get the proper symbols I needed.

I used the following pages:


QtSql vs. SQLite

Estimated read time: 1 minutes

The problem was the following: I had this example code and the size() method just gave me insane result all the time, while just changing the driver to QMYSQL made the code work properly. After asking on #qt, I have been pointed out that the SQLite backend of QtSql does not support the size() method. :/

So - for now - I’ll just use MySql for my unit tests, even if that means I have to manually truncate the contents of each table. Worths checking a bit later again, though - since I already used in-memory SQLite for my unit tests when I had a project in PHP with Doctrine, and it was working just fine.


A song mentioning Frugalware!

Estimated read time: 1 minutes

chee on #frugalware linked a song and its lyrics, mentioning Frugalware. Please don’t compare it to an OpenBSD professional release song, then you’ll like it! :)


Rejourn

Estimated read time: 2 minutes

The story is old, it was exactly 3 years ago when last time I switched the engine under my blog. That time I switched from my custom php/mysql blog to b2evolution, and I hoped that using that engine it’ll require less time to manage it. Actually this wasn’t true:

  • When the php-5.3 upgrade came, I had to manually fix stuff.

  • I got a lot of spam, even if the captcha provided by the ready-to-use b2evo plugin was enabled.

  • The last thing: It turned out that it created the SQL schema in latin2, so utf8 comments had problems.

At that point I had enough trouble to think about migrating away from b2evo. And then I found rejourn, which is quite close to what I think is ideal to me. I just changed it a bit:

  • Added asciidoc support next to markdown.

  • Added RSS support, as my blog is part of the Frugalware and the LibreOffice planet, and I didn’t want to lose those readers.

  • Added support for tags, so that I can have a feed with a given tag only (to avoid OT posts on planets).

Before you ask: yes, I plan to submit back these feature to rejourn, if Ram accepts them. ;)

And finally, some more benefits:

  • the whole blog is now static HTML, generated by a single Makefile (so it’s faster + the server load is lower)

  • I can blog while I’m offline then later just git push the result.

  • I no longer have to use WYSIWYG editors or write HTML manually, I can use asciidoc. :)

Update: I forgot to mention:

  • I put up a simple b2evo → rejourn conversion script.

  • I just discovered that when I get email about new comments, I can reply via email as well - that’s really cool! :)

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