Index ¦ Archives ¦ RSS > Tag: en

KDE 4.6 vs hibernate

Estimated read time: 1 minutes

We recently merged KDE 4.6 in Frugalware -current and since now it uses upower, it catches the sleep button of my netbook. The problem is that it tried to suspend instead of hibernation - what I wanted.

The trick is easy, but not really obvious. First, I disabled suspend/hibernate in /usr/share/polkit-1/actions/org.freedesktop.upower.policy so that I can play with this without actually hibernating/suspending the system.

Second, I went to System Settings → Input actions → Global, selected "KDE services" and there you can see Suspend and Hibernate as well. Go to Hibernate, and set a custom shortcut: it will ask if you want to remove the sleep button from Suspend - the answer is obviously yes.

Done!


Russian characters in RTF export

Estimated read time: 1 minutes

I got a report about two problems which got fixed in master now.

The first error is triggered, if you have special (in RTF terms, so for example { or }) characters in style names. The result was not so friendly when you opened such a document:

http://vmiklos.hu/pic/loru1.png

After applying the first fix, the document was imported but the original Тест text was replaced by something non-unicode:

http://vmiklos.hu/pic/loru2.png

The second fix addresses this, and now the result is the expected one:

http://vmiklos.hu/pic/loru3.png

LibreOffice's git-hooks now warn about undocumented classes

Estimated read time: 1 minutes

There was a thread about this topic already, but just refusing to commit new files without documentation sounded too aggressive. So the current code just prints a warning.

It was also requested to show some good/bad examples. Lubos volunteered to add detailed instructions in the wiki, so I’m just describing in short what did I test so far.

A good example:

/// Handles export of foos using RTF markup
class RtfFoo
{
};

A bad example:

class RtfBarBuggy
{
};

Example output when a warning is emitted:

~/git/libreoffice/master/sw$ git commit -a -m foo
sw/source/filter/ww8/bar.hxx:30: warning: Compound RtfBarBuggy is not documented.
[master 1b11571] foo
 3 files changed, 68 insertions(+), 0 deletions(-)
 create mode 100644 sw/source/filter/ww8/bar.hxx
 create mode 100644 sw/source/filter/ww8/foo.hxx

systemd vs. LVM

Estimated read time: 1 minutes

Yesterday I enabled udev support in our LVM package, and that means LVM volumes under systemd not work as expected. Thanks to Lennart for the quick answer. :)


Nationality of currently active Frugalware developers

Estimated read time: 1 minutes

/pic/nationality-of-frugalware-developers.t.png

Just a FYI:

$ ./chkacc --verbose
Accepting active developer 'vmiklos' [hu]
Accepting active developer 'iron' [hu]
Accepting active developer 'voroskoi' [hu]
Accepting active developer 'boobaa' [hu]
Accepting active developer 'crazy' [ro]
Accepting active developer 'priyank' [in]
Accepting active developer 'hermier' [fr]
Accepting active developer 'devil505' [fr]
Accepting active developer 'bouleetbil' [fr]
Accepting active developer 'ryuo' [us]
Accepting active developer 'gholafox' [fr]
Accepting active developer 'phayz' [au]
Accepting active developer 'elentir' [fr]
Accepting active developer 'cedynamix' [fr]
Accepting active developer 'jercel' [fr]
Accepting active developer 'exceed' [fr]
Accepting active developer 'dex' [de]
Accepting active developer 'kooda' [fr]
Accepting active developer 'centuri0' [fr]
Accepting active developer 'kikadf' [hu]
Accepting active developer 'pingax' [fr]

Wrapped images in Word (LibreOffice RTF export)

Estimated read time: 1 minutes

I’ve got a report which turned out to be two separate issues. One is a regression from Go-OO 3.2.x, this post is about this part. The other part is about the improvement of both the import/export RTF filter, the bug has some detail on that part as well.

So the problem was that wrapped images (when the image is a frame and not a character) had some extremely small height. I did not notice this bug in LO as an LO-specific extension hides that value, but in Word you can see it:

http://vmiklos.hu/pic/fdo32613-before.png

The fix is to use the height of the containing frame instead of the height of the picture itself, then it’ll look fine:

http://vmiklos.hu/pic/fdo32613-after.png

HP vs. Hungary

Estimated read time: 1 minutes

/pic/hp-hungary.t.png

Yesterday I bought a HP LaserJet Pro P1566 printer. The device itself is nice, supported by foo2zjs, though of course that support is unofficial. I was curious what do they offer a "Linux support" on their website, since the case of the printer mentions Linux support. And I had to use the above picture to select my country.

  1. It’s Magyarország, not Magyarorság.

  2. The map of the country isn’t even close to reality, what are they smoking? ;)


LibreOffice vs. F13

Estimated read time: 1 minutes

http://vmiklos.hu/pic/lof13.png

About four days ago it has been asked on #libreoffice if it’s possible to bind functions to F13..F16 in Calc. The short answer is no, but it turned out it’s pretty trivial to allow that (and of course not only in Calc).

Cedric’s great post is helpful here to find the relevant code. It also truned out that VCL already supports those keys, so only the user interface has to be improvied to export that feature.

The patch is here.


systemctl now supports auto-paging

Estimated read time: 1 minutes

If you use systemd, you know systemctl. That’s the command that controls systemd: you can use it to start, stop or list (and so on) services. Now in case you use list, there is a lot of output, probably it won’t fit your screen. git already invented auto-paging, which means it’ll feed its output to a pager if the output is more than a screen, for example when using git log. With my recent commit this now the case with systemctl as well. :)


bitlbee-skype now supports groups

Estimated read time: 1 minutes

I released bitlbee-skype 0.9.0 today. The last feature that triggered the relase born in git during the last two days: now it reads and writes Skype group info. This means if you have a Skype group "work", then you can just /j &work to see work contacts only, and /invite also works in that channel as expected.

More in the BitlBee wiki and in the NEWS file.

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