Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Monthly Archives: November 2009

Traps in Gtk2.

During the development of MakerDialog, I’ve encountered two …, er, features of Gtk2 widgets.

First one is GtkComboboxEntry. When you select a list item in the pull-down menu, it emits signal “changed”; but when you start editing the text in entry, it still emit signal “changed”. This usually cause confusion for novice Gtk2 developers, because they might be only aware of “changed” event and wonder why the combo box seems to react with every single key stroke.

Second one is radio button group. It has a function to retrieve all the list item as a single linking list. In the beginning, I think the order should be the same as the order you add those items. However, it seems to work in reverse order.

Hope these tips helps.

Advertisements

Unpacking of archive failed on file xxx; cpio: md5 sum mismatch

Today I tried to build libsvm with koji for EPEL-5, but failed with following message:

error: unpacking of archive failed on file /builddir/build/SOURCES/LibSVM-svm-toy-48.png;4af11a25: cpio: MD5 sum mismatch

I think I did include it. So after I see this post, I recalled there is a command, namely rpmbuild-md5 to pack md5 info in Fedora11-built rpm.

I tried it, and koji completed building. 🙂