Sunday, December 17. 2006
Completed now listening support Posted by Diederik van der Boor
in KMess, Less-technical, Screenshots at
17:10
Comments (0) Trackbacks (0) ![]()
Completed now listening supportI've just completed the now listening support in KMess! A month ago KMess could only show what contacts are listening to. Now it also does the reverse; notifying contacts what you're listening to. When this feature is active, an additional status line appears in the main window:
KMess is able to retreive playing information from Amarok, Juk, Kaffeine, KsCD, and Noatun. Suport for non KDE-players like XMMS and Banchee could be added later, but I'm not starting with it yet. Each of these players has it's own way to provide the playing information. To enable this feature, check the last option in the settings dialog:
KMess uses DCOP to retreive the playing information. DCOP is a really nice KDE feature to make IPC-calls to other applications (it runs over the standard X11 ICE protocol). Try the following commands in the console, and you'll get the idea: dcop dcop amarok dcop amarok player dcop amarok player artist
Really amazing, and extremely powerful Sunday, December 17. 2006
Sinterklaas presents Posted by Diederik van der Boor
in Less-technical, Life at
16:16
Comments (0) Trackbacks (0) ![]()
Sinterklaas presentsLong time no blog... I didn't make much room for it lately. Previous week we've had Sinterklaas in The Netherlands. It's an annual Dutch tradition, which can be compared somewhat with Santa Claus. At 5 December, Sinterklaas brings presents to both children and adults. Some presents are also camouflaged in an imaginative way, accompanied by a fitting poem to make fun of the recipient. This year I had to make a nice present for my father. The present contains a pocket-size book about wine. This is the end result after two weekends
The body consists of a soft-drink bottle and two small wooden planks. These planks form a cross which is nailed on the soft-drink bottle. The whole part has been wrapped with paper maché. The small book didn't fit entirely, resulting in the amazing booster effect below the wings
Additionally two pictures of the construction:
The present sticking out:
That was enough creativity for me this year. Sunday, December 3. 2006
Debugging KDE applications in Fedora ... Posted by Diederik van der Boor
in KMess, Open Source at
17:39
Comments (0) Trackbacks (259) ![]()
Debugging KDE applications in Fedora CoreImage speaking to a new developer. With excitement you tell about the debugging features of KMess. We've got a network output window, and lots, really lots of console output. The console is literally flooded with messages when you run the debug-build of KMess. This allows us to trace how KMess interacted with the protocol messages, how it parsed those and sent responses back. Now imagine this new developer doesn't see anything of it. That's an annoying way to become challenged as developer. First you start guessing where the output could be. SuSE has a nice My next stop was KMess uses standard #include <kdebug.h>
int main()
{
kdDebug() << "test output" << endl;
return 0;
}
Again, this simple test application gave no output on STDERR or whatsoever. I seriously started to fear KDE was patched by the developers of Fedora Core. This could mean the developer would never see the output. Stephan Binner has a site of distributor patches, for which I can't thank him enough. Browsing the folders I found a patch on kdelibs/kdebug. Compare the original file with this patch, and notice how Fedora Core hides all output by default! arhg! This not only costs one or two hours of debugging, but it's even more annoying it isn't mentioned anywhere. A simple note would have been enough. The code of the original file acted as a good reference to find a solution. By creating the file [0] InfoOutput=2 ErrorOutput=2 This extends the global configuration in Needless to say, I'll propably disfavour distributor patches even more then I already did (i.e. how a Wine developer wasted his Sunday afternoon on debugging packaging problems, scroll to "another example"). When something needs to be patched, it's likely the upsteam software lacks some option, not an other patch. In the case of KDE this wasn't needed at all, |
QuicksearchIdenti.ca
CategoriesArchivesLinksContactingComments can be posted at the bottom of each blog entry. For direct questions, you can also contact me by e-mail. My e-mail address is "vdboor" at "codingdomain.com". Powered by |
