All posts by Ingo

Datenbank für Gemeindeverzeichnis GV100

This is a special issue about a database for german communities. So it is written in german.

Für eine Verwaltungssoftware war ich auf der Suche nach allgemeinen Informationen zur Gemeindestruktur für eine Datenbank. Ich bin da auch verhältnismäßig schnell fündig geworden. Die Statistischen Ämter des Bundes und der Länder haben eine umfangreiche Dokumentation herausgebracht:

GV100AD Jahresausgabe am 31.12.2012 (zip, 434 kB, Datei ist nicht barrierefrei)

Die weitere Suche nach einer Tabellenbeschreibung für eine relationale Datenbank blieb allerdings erfolglos. Also habe ich mich selbst daran gemacht, eine zu erstellen die ich nun mit allen Netzbürgern teilen möchte.

Hier ist dann das Script, das ich für postgreSQL erstellt habe. Es liest das Gemeindeverzeichnis in eine Datenbanktabelle ein und erstellt auch ein paar sinnvolle Views. Als Vorlage sollte es auch für andere Datenbanksysteme schnell anpassbar sein.

GV100.zip

gnucash with mysql on debian

google told me different things about installing gnucash on debian squeeze by storing its data in a mysql database. Here is my way to get it working.

First have a look in gnucash at File -> Save As… if you find a Data Format “mysql”. This will only be shown if the mysql-server and the MySQL database server driver for libdbi (libdbd-mysql) is installed. To install them do this:

~$ sudo aptitude install mysql-server-5.1 libdbd-mysql

Then add an account for gnucash to the MySQL-server :

~$ mysql -u root -p
mysql> CREATE USER 'gncuser'@'localhost' IDENTIFIED BY 'yourpw';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'gncuser'@'localhost';
mysql> exit
~$

Now start gnucash, open your file and “file -> Save As.. mysql” with Username: “gncuser” and Password: “yourpw”. Maybe you will choose a different Database name then the default “gnucash”.

That’s it.

downgrade flashplayer

 I’ve got some problems with adobe flashplayer on my linux box with debian squeeze. Youtube videos doesn’t play and only shows a black window without any other action. Google tells me to get an older version of the flashplayer from adobes site and install it. But there is no debian package and I would like to have a clean installation with the debian package management system. Here is my way to downgrade flashplayer from Version 11 to Version 10.3.

In my /etc/apt/sources.list I have the entry to the debian-multimedia repository:

deb http://www.deb-multimedia.org squeeze main non-free

First I clean up the system from any flashplayer:

$ sudo aptitude purge flashplayer-mozilla flashplugin-nonfree flashplugin-nonfree-extrasound gnash

$ sudo find / -xdev -name libflashplayer.so
and delete any laying around libflashplayer.so

Get the older version of the flashplayer you want from:
http://ubuntu.bio.lmu.de/debian-multimedia/pool/non-free/f/
I used flashplayer-mozilla_10.3.183.7-0.0_i386.deb

Then install it:

$ sudo dpkg -i flashplayer-mozilla_10.3.183.7-0.0_i386.deb

To suppress any updates on this package add tihis entry to your /etc/apt/preferences:

Package: flashplayer-mozilla
Pin: version *
Pin-Priority: -1

That’s it.