Archive for KDE

12.04.06

Xgl and the AltGr key

Posted in KDE, Linux at 10:10 pm by are

After installing Ubuntu Edgy and tried Xgl I suddenly noticed that the AltGr button did not work. So writing $ and any of the {[]} was impossible. (Norwegian keyboard setup).

The solution is simple:

Create the file ~/.Xmodmap

keycode 22 = BackSpace
keycode 113 = Mode_switch

Make sure it loads when loading Xgl

04.07.06

Cvs merge Zend Studio integration

Posted in Programming, KDE at 5:49 pm by are

Animated gif of cvs commit with mergeZend Studio has a good cvs integration, and you can just right-click to commit and add etc files. But if your commit or update results in a conflict, or you want to merge your file into other revisions. Well, then you must use other tools… until now.
Using some scripts and KDE tools like kdialog and cervisia, we can change this.

Where I work we have at least three versions that all our patches has to go into. That is alot of merging, and it is boring. With the Zend Merge scripts I have created, I replace the cvs command used by ZDE with a custom shellscript. (Tools->Preferences->Source Control in ZDE)
The shellscript does the usual thing (commits, updates etc), but then checks if there were any conflicts. If it were, it asks if you want to resolve them using cervisia.
After that it asks about merging. One of the scripts fetches all the versions you can choose from (this must be customized). It then merges your file into all the selected revisions.

I have also added a context sensitive menu for KDE in the tarball, so you can merge multiple files at once.
(Take a look at the animation on the right for a demo of ZDE integration)

Download shellscripts here | Screenshot