Skip to content

Tag: linux

Ribbon interface for GTK and Qt

Is it possible to implement ribbon interface in Windows7 in GTK or Qt? If yes how to do it? Answer Yes, some libraries for Ribbon widgets have already been released. see this post and this one. There is also QtitanRibbon, an implementation of Microsoft’s Ribbon UI for QT.

Bash – for i in cat?

I’m not a bash scriptor, so this is no doubt a very simple question. I have a bash script throwing an error. It looks like this: The error is on the second line, related to the curly brackets. So it seems curly brackets shouldn’t be here… in which case, what should line 2 look like? The scri…

BASH – weird characters coming out from a pipe

I have this script which simply kills an app If I write the kill command manually as a oneliner than it works. But I have to run it as a script which doesn’t work. So I tried to debug it and here is the result Why do I keep getting those strange characters on the kill line? How can i

Assignment of variables in shell scripting

I am trying to write a shell script to simulate the following problem: File A contains some entries like and File B contains the final file should have (contents of file b which are not there in file a) I was trying something like this but it’s not working: Answer You code has some errors: forgot the cl…

logrotate configuration file development and testing

I have two questions related to developing configuration files for the logrotate tool on Linux systems. When I make a change to a file in /etc/logrotate.d, do I need to somehow notify logrotate so that it will recognize and respond to the change? It seems to notice changes on its own, eventually, but when tes…

Replace of XKeycodeToKeysym

When I try to build my code with the X11 headers in Ubuntu 12.04 What is the expected result? Compiles. What happens instead? As a result of https://bugs.freedesktop.org/show_bug.cgi?id=5349 XKeycodeToKeysym is now properly marked as being deprecated. How to fix my code for warning free and correct build? Tha…