<?xml version="1.0" encoding="UTF-8" ?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc=" http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>briancarper.net (λ) (Tag: Plasma)</title><link>http://briancarper.net/tag/210/plasma</link><description>Some guy's blog about programming and Linux and cows.</description><item><title>Plamsa + Ruby = Ouch</title><link>http://briancarper.net/blog/plamsa--ruby--ouch</link><guid>http://briancarper.net/blog/plamsa--ruby--ouch</guid><pubDate>Tue, 08 Sep 2009 23:34:17 -0700</pubDate><description>&lt;p&gt;I wrote my first KDE4 plasmoid the other day.  I can't release it because it's essentially a clone of &lt;a href=&quot;http://www.konami.jp/kojima_pro/english/dl/item_ota.html&quot;&gt;something you aren't allowed to copy&lt;/a&gt; (maybe I can replace him with a penguin and release it that way though).&lt;/p&gt;

&lt;p&gt;But I need to rewrite it first anyways, because I did it using the Ruby bindings for Qt4 and Plasma, and wow it's painful.  It has a 50/50 shot of even initializing at any given point.  When it does initialize, it has about a 1 on 8 chance of immediately crashing Plasma.  And some things I just can't get to work at all, e.g. setting a default size or resizing the applet programmatically; &lt;code&gt;X-Plasma-DefaultSize&lt;/code&gt; in the metadata is supposed to do it but it does nothing.  And it's not just my system (using KDE 4.3), because I tried it on a Kubuntu machine using stable KDE 4.2 and had the same problems.&lt;/p&gt;

&lt;p&gt;The other snag is that the documentation of the Plasma API is buried so deep on the KDE site that I don't even know how I found it.  &lt;a href=&quot;http://api.kde.org/4.x-api/kdelibs-apidocs/plasma/html/index.html&quot;&gt;Here it is&lt;/a&gt; for those who care (and for my own future reference).  I hit lots of dead links on the KDE site on the way there.&lt;/p&gt;

&lt;p&gt;Next step is to rewrite the plasmoid in Python or C++ I guess.&lt;/p&gt;</description></item></channel></rss>

