<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rdf:RDF
[
<!ENTITY % HTMLlat1 PUBLIC
 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
]>
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:admin="http://webns.net/mvcb/">
<channel rdf:about="http://blog.cihar.com">
<title>Coding</title>
<link>http://blog.cihar.com/archives/coding/</link>
<description>Random thoughts about everything…</description>
<dc:language>en-us</dc:language>
<dc:creator>Michal Čihař</dc:creator>
<dc:date>2008-06-17T18:03:03+02:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/06/17/code_of_the_day/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/04/04/phpmyadmin_is_in_summer_of_code/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/03/26/dont_be_impatient/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/03/21/photo_uploader_0_6/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/02/28/ukolovnik_1_0/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/01/30/my_first_drupal_module/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/01/22/when_to_release_1_0/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/01/18/toshiba_acpi_keys_hal_and_friends/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2008/01/10/ukolovnik_0_9/" />
<rdf:li rdf:resource="http://blog.cihar.com/archives/2007/12/16/nice_to_see_pyicq-t_back_alive/" />
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://blog.cihar.com/archives/2008/06/17/code_of_the_day/">
<link>http://blog.cihar.com/archives/2008/06/17/code_of_the_day/</link>
<title>Code of the day</title>
<dc:date>2008-06-17T16:50:58+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Life, Coding</dc:subject>
<description>
<![CDATA[<p>Why the hell do I have to hit various obscure pieces of code today? Current
winner is part of system-config-printer:</p>

<pre><code>def monitor_session (*args):
    pass

try:
    bus = dbus.SessionBus()
    bus.add_signal_receiver (monitor_session)
except:
    print &gt;&gt; sys.stderr, "%s: failed to connect to session D-Bus" % \
          PROGRAM_NAME
    sys.exit (1)
</code></pre>

<p>If you don't know D-Bus or Python: It listens to all signals on session bus
and does nothing with them. All this code causes is eating up memory and CPU
cycles when there is some higher load on session bus.</p>

<p>PS: Maybe I miss some nice idea behind this code, please enlighten me.</p>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2008/04/04/phpmyadmin_is_in_summer_of_code/">
<link>http://blog.cihar.com/archives/2008/04/04/phpmyadmin_is_in_summer_of_code/</link>
<title>phpMyAdmin is in Summer of Code</title>
<dc:date>2008-04-04T15:43:51+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>phpMyAdmin, Coding</dc:subject>
<description>
<![CDATA[<p>Well not directly, but MySQL is and they will also accept our projects.
So if you are student interested in getting some money for improving
free software, you're welcome to contact us. We have written down our
ideas to <a href="http://wiki.cihar.com/pma/SummerOfCode2008IdeasList">wiki</a>, but feel free to come with your own thought. But
don't forget that deadline is this Monday!</p>

<p>While talking about this improving phpMyAdmin, phpMyAdmin team would
also like to take part in <a href="http://www.hackontest.org/">Hackontest</a>, so vote and suggest there
features for us! If you have no idea for phpMyAdmin, Debian is also
taking part there ;-).</p>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2008/03/26/dont_be_impatient/">
<link>http://blog.cihar.com/archives/2008/03/26/dont_be_impatient/</link>
<title>Don't be impatient</title>
<dc:date>2008-03-26T13:57:42+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Gammu, Coding</dc:subject>
<description>
<![CDATA[<p>I handle bug reports and email communication as soon as possible, but it
does not mean that it may take month or even more to get reply. I'm not
working full time on my free software projects, I do it only in my free
time. Besides this I have regular job and I also have a real life with
another hobbies.</p>

<p>So if you wrote me something, just try to be patient, sending another
emails to urge your issue won't help anybody. I will just have more
unread mail to process until I get to real work.</p>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2008/03/21/photo_uploader_0_6/">
<link>http://blog.cihar.com/archives/2008/03/21/photo_uploader_0_6/</link>
<title>Photo uploader 0.6</title>
<dc:date>2008-03-21T12:17:46+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Photo uploader, Coding</dc:subject>
<description>
<![CDATA[<p>Even though I don't feel really good due to personal life, I decided to
relelase <a href="http://cihar.com/software/photo-uploader/">Photo uploader</a> 0.6. If you don't know this tool yet, it is
helper to upload photos (or images) over net. It was created when I
became too lazy to upload hundreds of photos to digilab, but generally
it can support any service which allows you uploading of whatever using
HTML forms.</p>

<p>News in this release:</p>

<ul>
<li>Added support for iTesco.cz.</li>
</ul>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2008/02/28/ukolovnik_1_0/">
<link>http://blog.cihar.com/archives/2008/02/28/ukolovnik_1_0/</link>
<title>Ukolovnik 1.0</title>
<dc:date>2008-02-28T00:15:24+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Coding, Ukolovnik</dc:subject>
<description>
<![CDATA[<p>New version of simple todo manager called <a href="http://cihar.com/software/ukolovnik/">Ukolovnik</a> has been just
released. There are no major changes in this release compared to 0.9, it
mostly happened to indicate that this small piece of code has reached
some level of stability and wanted level of features.</p>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2008/01/30/my_first_drupal_module/">
<link>http://blog.cihar.com/archives/2008/01/30/my_first_drupal_module/</link>
<title>My first Drupal module</title>
<dc:date>2008-01-30T10:34:27+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Coding</dc:subject>
<description>
<![CDATA[<p>As I use <a href="http://drupal.org/">Drupal</a> for <a href="http://phpmyadmin.cz/">Czech phpMyAdmin pages</a>, it was only a
matter of time till I will have (or want) to add some functionality. My
first Drupal module is quite trivial, but anyway I already got positive
feedback on it just after committing to Drupal CVS :-). Today I finished
little cleanup which my initial version required and I decided to make a
first release out of it.</p>

<p>And what I'm still talking about? It's a module for adding measuring
code for various web auditing systems used in Czechia. I didn't wanted
to hack this somehow into templates and module which will provide block
with those looks as best solution to me. You can get it on
<a href="http://drupal.org/project/czech_audit">Drupal pages</a>.</p>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2008/01/22/when_to_release_1_0/">
<link>http://blog.cihar.com/archives/2008/01/22/when_to_release_1_0/</link>
<title>When to release 1.0?</title>
<dc:date>2008-01-22T11:11:01+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Coding</dc:subject>
<description>
<![CDATA[<p>This is not about any particular project, but more a generic thought.
When should be something considered to be stable enough to be released
as 1.0? Over ages I started several projects which are in different
quality right now and this is maybe not completely related to version
they use.</p>

<p>Let's take one of older ones - <a href="http://wammu.eu/">Wammu</a>. It was started long time ago,
it really does not get any major code changes for several years and I
still don't want to make 1.0 release there. The reason is that I think
that many things could be done better there. However there are quite lot
of users which use it and they probably consider it stable enough :-).
But they will have to live with 0.x versions as I do not plan 1.0 at all
for now even if it maybe deserves it :-).</p>

<p>Different case is <a href="http://cihar.com/software/ukolovnik/">Ukolovnik</a>. It does not have tons of features,
but it's enough for me and it will be 1.0 soon. I have features to add,
but I don't thing that RPC interface has to be in 1.0, it can be just
thing added later.</p>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2008/01/18/toshiba_acpi_keys_hal_and_friends/">
<link>http://blog.cihar.com/archives/2008/01/18/toshiba_acpi_keys_hal_and_friends/</link>
<title>Toshiba ACPI keys, HAL and friends</title>
<dc:date>2008-01-18T13:44:07+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Life, Coding, Debian</dc:subject>
<description>
<![CDATA[<p>Long time ago I used <a href="http://fnfx.sourceforge.net/">FnFX</a> to handle events from ACPI keys on my
Toshiba notebook. However when <a href="http://blog.cihar.com/archives/2007/10/03/reinstalling_notebook/">reinstalling notebook</a> because of
disk crash, I thought there must be a cleaner way to handle these and I
found patch for acpid which added handling of these special events.</p>

<p>However I really didn't like patching acpid on every update and there
didn't seem to be chance to merge it upstream, so I started to look for
better solution. After another amount of googling, I found that HAL
already has some support for Toshiba hotkeys. Unfortunately it is now
<a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=400605">disabled in Debian</a> because most key did not emit anything using
HAL.</p>

<p>Okay, let's fix the HAL, maybe it will get later enabled. Converting
FnFX keymap to C code was quite easy and I made a <a href="http://cihar.com/patches/hal/toshiba_more_keys.patch">patch for HAL</a> to
add support for all keys. Hopefully it get merged soon and I can then
file bug on Debian package to reenable Toshiba support in HAL.</p>

<p>Meanwhile I'd like to find some generic way of configuring what happens
on these events. For now I hacked <a href="http://viewsvn.cihar.com/viewvc.cgi/scripts/trunk/bin/dbus-key-monitor">simple Python script</a> which
listens to DBUS events and invokes appropriate commands for keys, but I
hope that some such tool already exists and I just missed it. If you
know something, please let me know at <a href="&#109;&#97;&#x69;&#108;&#116;&#111;:&#109;&#x69;&#x63;&#x68;&#97;&#108;&#64;&#99;&#105;&#104;&#x61;&#x72;&#46;&#99;&#x6F;&#109;">&#109;&#x69;&#x63;&#x68;&#97;&#108;&#64;&#99;&#105;&#104;&#x61;&#x72;&#46;&#99;&#x6F;&#109;</a>.</p>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2008/01/10/ukolovnik_0_9/">
<link>http://blog.cihar.com/archives/2008/01/10/ukolovnik_0_9/</link>
<title>Ukolovnik 0.9</title>
<dc:date>2008-01-10T13:40:35+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Coding, Ukolovnik</dc:subject>
<description>
<![CDATA[<p>New version of simple todo manager called <a href="http://cihar.com/software/ukolovnik/">Ukolovnik</a> has been just
released. Version 0.9 comes with following changes:</p>

<ul>
<li>Fixed double SQL escaping in some cases.</li>
<li>New Swedish translation.</li>
</ul>]]>
</description>
</item>
<item rdf:about="http://blog.cihar.com/archives/2007/12/16/nice_to_see_pyicq-t_back_alive/">
<link>http://blog.cihar.com/archives/2007/12/16/nice_to_see_pyicq-t_back_alive/</link>
<title>Nice to see PyICQ-t back alive</title>
<dc:date>2007-12-16T23:50:32+02:00</dc:date>
<dc:creator>Michal Čihař</dc:creator>
<dc:subject>Coding</dc:subject>
<description>
<![CDATA[<p>I just noticed, that Python Jabber transports have been migrated this
weekend to <a href="http://code.google.com/p/pyicqt/">Google Code</a> and first people <a href="http://fisheye2.cenqua.com/browse/pyicqt">started to contribute</a>.
I especially like the fact, that first contributors are Czech guys and
they're fixing encoding problems :-).</p>

<p>Let's hope that this activity will also help to improve Debian package
which is not really in good state, but I <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=453959">promised</a> not to hijack it till
the end of year ;-) (so for now I temporarily hack it in <a href="http://debian.cihar.com/">my
repository</a>).</p>

<p>PS: I know ICQ is evil, but I don't have enough power to force all my
contacts to start using Jabber.</p>]]>
</description>
</item>
</rdf:RDF>
