Index ¦ Archives ¦ RSS

Rotating pdf pages

Estimated read time: 1 minutes

So I wanted to rotate each page in a pdf file clockwise using pdf2ps, pstops and ps2pdf. Actually I haven't figured out how to do so, even if I already used pstops (which is cryptic for the first time) multiple times so far.

Sure, I know ideally how to do it, but then I just got blank pages.

But pdftk seem to do it properly:

pdftk in.pdf cat 1-endE output out.pdf


lilypond list makes me a celeb

Estimated read time: 1 minutes

Here and there.

Other than that I got a pretty usable answer for my question here.

Wow, I really like the lilypond community. :)


Asciidoc source hilight for html and pdf output

Estimated read time: 1 minutes

Long time no blog, mainly because I'm pretty busy with real life.

So yesterday I got an answer on the asciidoc list about how to do C++ source hilighting that works with html and pdf output as well. The problem is that source-highlight (used for html) and docbook have a different name for this crappy language.

The solution was to do

:cpp: cpp

Which says "if docbook, then c++ otherwise cpp", and then I can just use

----
code
----

Yay!


bitlbee-skype in Debian

Estimated read time: 1 minutes

It isn't exactly there yet, but it's in their queue. :)

The m8r guy asked me to link it in the doc, but I'll wait till it's at least part of experimental (or maybe better till it's part of contrib).


asciidoc newtable bug solved

Estimated read time: 1 minutes

We hit this bug after I upgraded asciidoc on the server where we build the Frugalware documentation, luckily I just had to backport the given patch from hg and it now works fine.

I like how responsible the upstream (Stuart) is. Asciidoc is not bug-free, but as long as one provides simple reproducers, he quickly fixes bugs, yay! :)


iSCSI fun

Estimated read time: 1 minutes

So I was playing with iSCSI, and the tricky part was that I shared out a block device to a Windows one and the silly OS created a partition table on it, but the block device was an LVM LV. So it was like /dev/mapper/foo-lvol0, and of udev did not create /dev/mapper/foo-lvol0p1, so it was hard the mount.

Next example about hacking Frugalware is useful, we had this problem while generating the USB installer image as well, the trick was to mount /dev/mapper/foo-lvol0 with -o offset=32256, and this works generally as long as the partition table is an old PC one (so it's not an MS dynamic disk or anything).


Godollo 30

Estimated read time: 1 minutes

az utvonal ilyesmi volt, hogy: godollo - szada - mogyorod - fot - csomad - veresegyhaz - szada - godollo. kicsit bovebb info itt.

haztol hazig: netto ido 4:29:24, brutto ido ~6.5 ora, tav 104.88km, atlag 23.3, max 54.0

lassan kozeledik a szumma 3000, 2986nal jarok. :)

egyeb resztvevok: zai, Friczy, meg osszefutottunk Varanus-szal is.


Emulating an old jdk with openjdk on ppc

Estimated read time: 1 minutes

Okay, so this was a bit tricky, I was about to give it up, but then after 2 hours of RTFMing I got the solution. ;)

The goal was to emulate jdk1.3 with openjdk.

The first trick is to enable the binfmt_misc handler of qemu, as you'll need jre1.3, and the self-extractor of it is an i386 code. pacman -S qemu, service qemu start should do it.

The rest is just a Makefile, something like this.

It was tricky to figure out the right options for the postprocessor (as I was using an odbms) options as well, but that's not a so interesting problem anyway.


kaudiocreator

Estimated read time: 1 minutes

I just got an audio CD and they wanted me to grab it (copy+compress to mp3). I think last time I did so about 8 years ago? :) Those days I used xfce and I used first grip then I wrote a perl script that used lame, cdparanoia, mp3info and cdlabelgen (it lacked cddb support).

Of course I did not maintain my script so it stopped working with the updated upstream tools, so I was searching something simple, like grip but preferably a qt/kde one.

When I inserted the audio CD, it offered to compress it, it started KAudioCreator. And yes, the usual kde quality, it just worked. :)


Final gsoc 2oo9 proposal

Estimated read time: 1 minutes

So today was the deadline, I posted this. (IIRC I linked it once already in this blog but it was updated since then.) This year proposals can't be updated after the deadline, so it doesn't matter if it will be accepted or not, this is the final version. ;)

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