Michal Čihař - Blog Archives for English

Back from vacation

After returning from Easter vacation, I was afraid of my full mailbox. This was quite correct, but fortunately some people also were not working, so it is not that bad. Anyway I didn't read it all so far, so don't be afraid if reaction on your mail (especially about Gammu and Wammu) will take longer.

The worst thing which happened was, that somebody managed to fuck up MySQL server serving phpMyAdmin demo in some very unusual way, which was not detected by my scripts, which are checking whether demo server is still alive. This lead to almost day outage, because I had to restore MySQL manually this morning. Anyway this case should be now also caught and the script for checking is getting more and more complex. Maybe I should better use Monit (or other monitoring software) for this instead of home made shell script. But shell script seems to do good job in most cases :-).

Off topic PS: Thanks to everybody who helped to release Debian 4.0!

Hiding configuration

I know that GNOME is trying to hide as much configuration as possible, but Epiphany today suprised me. I started to use is as default browser some time ago, but now I needed to print something for first time. Everything in my system is configured to use A4 paper, so I didn't expect any problem with this configuration.

Unforutanety Epiphany has separate configuration under separate menu item. I don't know why it is separated from print dialog, maybe to confuse users. Also I have no idea why it has default size Letter. Anyway you can set paper size under Print Setup...

This is really great step for usability.

Mantis updated

I just updated bug tracker to latest version, which again fixes some security issues. I hope this won't break any existing functionality, but if it does, please write me at michal@cihar.com.

Hmm, maybe it's time to look for some BTS with less security problems? The only problem is that I don't follow others that hard, so I maybe only don't know about such issues…

Gammu test version 1.10.2

I just released new version of Gammu, you can download it from download server. There is quite a lot of changes:

  • Fixed crash on LMB export/import (bug #261).
  • Correct version in iCalendar export/import.
  • Fixed devel files installation using CMake (bug #78).
  • Fixed decoding of call date.
  • Use gettext for translation.
  • --clearall also attempts to delete calls.
  • Fixed decoding of date from backup (bug #267).
  • Backup saves and restores numbers as same type (bug #266).
  • Support for call notifications on AT phones.
  • Support for batch mode - you can script gammu (thanks to ace).
  • Use standard libc functions for string comparsion if available.
  • Gammu commands are now accepted also without leading --.
  • Detect more Nokia phones (5300, 6300, 8800) (some by Peter Stuge).
  • Allow compilation with MySQL and without PGSQL (thanks to Alin Năstac).
  • Fixed format strings for size_t (thanks to Alin Năstac).
  • New connection ark3116fbus for use with ark3116 module.

As you can see, largest change is switch to gettext. You can also use https://l10n.cihar.com for online translating.

VCS conversion troubles

It's probably time to give up. I tried to tweak tailor to make it able to convert my repositories to Subversion for several times, but without any success. It also fails to convert it to Bazaar-NG or Git. Those are list of all VCS I consider to use in future.

I'd prefer to switch to subversion, because it is widely used and most people will be willing to use it, but I have not find any way to convert current VCS data to it. Maybe I will start with empty repository and forget the history.

phpMyAdmin demo back online

After few days of outage, demo server is back running. To avoid possible problems, I now run it under separate vserver. This should limit any impacts of demo server to rest of services running on this host as it provides much better separation than chroot used before.

There still might be some issues with new setup, please tell me about them.

Server outage

I'm sorry for todays server outage, but it seems to be caused by some DOS attack. As a result of this I decided to temporary disable demo server, because it was target of this attack.

Demo will be back during tommorow, when I make some stricter restrictions on access to it.

Optimise your code

Especiall if there is chance it will be used on something like OpenWRT. Yesterday I installed Munin on my OpenWRT router. Now I can see that sometimes statistics drop to zero, because it didn't manage to catch them.

I looked for most CPU hungry plugins and those are df_inode and processes. I rememeber that I already had to rewrite df_inode, because it was damn slow, so I only used that version (it should be also somewhere in their tracker, but I can not find it right now).

The processes plugin was also quite easy to optimise, compare old and new code:

 # time find /proc -type d | grep [0-9]$ | tr -d "/proc/" | grep ^[0-9]*$ | wc -l
 real    0m 0.77s
 user    0m 0.28s
 sys     0m 0.39s

 # time ls -d /proc/[1-9]* | wc -l
 real    0m 0.06s
 user    0m 0.04s
 sys     0m 0.00s