http://www.documentroot.net/en - tips, tricks, tutorials
Welcome to DocumentRoot in english. In this blog I collect hints, howtos and tutorials about everything concerning Linux, scripting, internet and computers in general. Originally this blog was written in German and I have translated parts of it; so if you speak German, you can use the link on the right.
October 30, 2011

Version control your MySQL tables with svnchronize

If you manage your PHP projects with subversion, you may have come across the problem of synchronizing the database with your repository. Of cource, this can be achieved with mysqldump, but that’s impractical, slow and often you simply forget to run synchronization. In the ideal case, you would have dump files that are always synchronized with the database, without anything to do manually and without any cronjobs choking your processor. Over the last two months I have looked at possible solutions and now want to share the script I have come up with. Read more…

Development , , , , , , , , , ,

March 16, 2011

Fixing the “shine-through”-bug in Linux flash plugin

In the last few days I experienced a strange problem with Adobe’s Flash plugin on Linux. Whenever I watched a flash video in Opera, parts of it seemed to stay in some graphics buffer and always shined through when there were white or black areas. It made text on white background completely unreadable and even persisted in other applications when the browser had been closed. Read here how to fix this problem. Read more…

Internet, Linux , , , , , , ,

October 9, 2010

KDE SmartNotify Plasmoid

Are you sick of KDE notifications popping up under your mouse cursor and distracting you from the things you are doing? I am. That brought me to the idea for two new plasmoids: one of them displays notifications while the other one shows the status of jobs (file copying, etc) – and both do their job in a very unobtrusive way. No popups, just pure functionality. Read more…

Linux , , , , ,

September 28, 2010

Tutorial: Interprocess Communication with D-Bus and Python

In the recent time I had to struggle with DBus and its Python implementation. Because it took me a lot of time and nerve, I decided to write down my experiences in the form of this small tutorial, for all those people also struggling with this topic. Besides, there are almost no useful examples to be found on the internet and that has to be changed. Read more…

Linux , , , , , , , , ,

June 23, 2010

Service Monitor: Bugs & Feature Requests

Please use the comment section to tell me about bugs you have found or features you are missing in the current version.

Linux , , ,

May 25, 2010

Short presentation of my Service Monitor plasmoid

In this article I’ll present my Service Monitor plasmoid, show what it looks like and what it can do. For those who don’t know what I’m talking about: a plasmoid is a desktop widget for KDE – Service Monitor’s purpose is to monitor the status of background processes (so-called daemons) and to start/stop them. Read more…

Linux , , , , , , , ,

May 24, 2010

Service Monitor KDE plasmoid published

I just published my very first KDE plasmoid (desktop widget) written in python. It manages background services (daemons). You can start/stop them with a single click, add arbitrary custom services and share them with other users. The plasmoid can be downloaded via kde-look.org. If you have any question about it, feel free to use the comment section as a discussion forum.

Linux , , , , ,

May 20, 2010

Repair python plasmoids after KDE upgrade

After upgrading KDE to the latest version on my Debian (testing) system, python-based plasmoids no longer work. Plasmoidviewer only tells me: AttributeError: ‘module’ object has no attribute ‘relpath’. After 2 hours of struggling, I finally came up with a quick-and-dirty workaround… Read more…

Linux , , , , , , ,

April 26, 2010

KNotify Popups via Python

Ocassionally one wants to give a script or program the opportunity to inform the user of some events – even if it is running hidden or in the background. For these cases KDE uses KNotify (a notification area in the systray). Since D-Bus has replaced DCOP, accessing KNotify has become more difficult. A small python script helps to do the job. Read more…

Linux , , , , , , , ,

March 23, 2010

Tutorial: Classes, Prototypes and OOP in JavaScript

In JavaScript there are no classes in the conventional sense. Instead, the language uses a soewhat confusing approach of inheritance through prototypes. In this post I will explain the concept of prototype inheritance and its implementation in JavaScript. Furthermore, I’ll show how to use it to recreate a more famililar class-based environment known from other languages. Read more…

Internet, Miscellaneous , , , , , , , , ,