Ruby and Ubuntu's Notify-OSD

I'm using ruby-libnotify in a Ruby GTK app, and it works great to create a bubble popup in Ubuntu. I'm on Hardy, and it all works great. Then I had others try the app on Jaunty, and instead of a...

Top level window on X Window System

I want to print on the screen the information about Top level windows under Linux. I use the xlib functions. I successfully recurse from the root window to print all the informations about all the...

Access NPAPI from pages DOM

I'm attempting to override the default functionality for webkitNotifications.createNotification and via a Chrome extension I'm able to inject a script in the pages DOM that does so. Problem I'm...

tail multiple logfiles in python

This is probably a bit of a silly excercise for me, but it raises a bunch of interesting questions. I have a directory of logfiles from my chat client, and I want to be notified using notify-osd...

How do you extract feed urls from an OPML file exported from Google Reader?

I have a piece of software called Rss-Aware that I'm trying to use. It basically desktop feed-checker that checks if RSS feeds are updated and gives a notification through Ubuntu's Notify-OSD...

How do I render nice desktop notifications from Java?

I am writing this very basic J2SE application which alerts the user with some info every now and then. Currently I am using the SystemTray and TrayIcon classes to show notifications, but I am not...

"Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")

I am using mysqldb (the python MySQL) module.. But everytime I try to run. it gives me this error. super(Connection, self).__init__(*args, **kwargs2) _mysql_exceptions.OperationalError: (2002,...

Make OSD notifications via Java

I am trying to access the notification bubble in Ubuntu through java here is my code class TestOSD{ public static void main(String[] args) throws Exception{ String[] cmmd =...

Can't build C++ program using Sublime Text 2

I think many of you are using or used to use Sublime Text 2 editor. I have strange error: C++ programs can't be built. My C++.sublime-build: { "cmd": ["g++", "${file}", "-o",...

Bash script not working properly when run automatically

I have a bash script that prints a notification using the notify-OSD only when my laptop is connected to a network. So I have placed the bash script in /etc/network/if-up.d I printed some log...

No longer able to connect to MySQL through socket

I was trying to do replication and setup my server as slave. i first changed permissions using sudo chmod 777 /etc/mysql/my.cnf then sudo chown user:user -R /etc/mysql then i tried installing...

Google chrome developer tools messed up

I am having an issue with the google chrome developer tools, they have become unusable, I don't think I have done anything to cause this. Any ideas how I can fix it? Google Chrome 26.0.1410.43 on...

GtkWarning could not open display - how can I notify-send from my daemon

I have a python-2.7.4 daemon script that uses the following command: from os import popen cmd = 'notify-send --icon=ICON_FILE --urgency=critical -t 10000 \'SCRIPT_NAME\' \'Here is my...

Python GTK - Pass mouse click to window below

I am creating an Ubuntu program that creates a transparent popup window. I would like it to act similarly to the notify-osd popups. When the mouse hovers over the window it fades even more. When...

How to send ACPI-based brightness hot keys by using ACPI notifications in a ACPI-filter Driver(WDM)?

At first, I have to admit I'm new to HW Driver development. Supposing that user can touch/press down a hardware key(such as brightness up) on a notebook keyboard with ACPI-based brightness hot...

How to make VLC click through

I have been all over the web looking for a solution to this problem! I'm looking for a way to make my VLC window "click through" on linux. I have found some python code here:...

Debugging (premature?) OOM-killer output

I am running a fairly memory intensive Python script, yet it seems that my machine is killing the process early. I have 16GB installed (and confirmed via lshw -class memory), and yet my process...

Notify2 works from Python3 IDLE but not always in terminal

I have been fighting with this code for days to get it to display notifications on a Raspbian Jessie desktop. I have tried Notify, notify2, and notify-send and they all work from IDLE but not from...

Bash, syntax error near unexpected token `done'

I tried dos2unix... didn't solve the error I tried using single quotes or no quotes wherever possible instead of double quotes... didn't solve the error I removed all the indentation, tab,...

Interprocess notification replacement using dbus-python

I'm trying to set up notifications for brightness controls that are replaced immediately when a new notification is sent. I've managed to create a test to get this working within the same python...

How to connect to AWS Client VPN from ubuntu box?

I have used this guide to create aws vpn client endpoint. Now i want connect to this vpn endpoint from my ubuntu box. For that i have downloaded the client certificates and using this guide for...

How to access the icon set of the current system theme?

I'm writing a bash script that uses notify-send (from the notify-osd package) to show popup notifications to the user, e.g. if there is an error during runtime. These popups can be decorated with...