How can I capture raw HID input on Linux?

Short version of what I want to accomplish: I have a foot pedal (INFINITY-IN-USB-1, if that's of any interest) that is implemented as a generic HID device, and I would like it to be behave as Ctrl...

How to get Xorg to work well with Intel Q35 on OpenSolaris?

OpenSolaris doesn't seem to support the Intel 82Q35 chipset. This is translated into slow Xorg whose performance degrades with time and is not usable at all even doing a ls on a fullscreen gnome...

How to assign newline functionality in Ubuntu Jaunty to Enter directly?

In Ubuntu Jaunty the Enter key is apparently translated to Ctrl-m symbol. I'd like to free Ctrl-m symbol from newline functionality to make it available for other commands. In this case I guess I...

How to obtain the path of Desktop in gnome

I am using gnome/Ubuntu-10.10 in Chinese language and the desktop path is not "~/Desktop" but "~/XXXX" where XXXX stands for the Chinese translation of "Desktop". So, how to write code to obtain...

Using greybox js library to show a window using the google tts

EDITED THIS FOR CLARITY: I have a Django app! I want to use the google tts stuff for translation of certain items on my web page. Now I have an onclick, yes I should know better, that calls a...

Keys not being interpreted by ncurses

I have a curses based application (WordGrinder). I've just had a bug report from a user saying that some keys aren't working properly on his keyboard. On investigation, he's right. The keys in...

Why does "locate filename | xargs vim" cause strange terminal behaviour?

When I do "locate 50local.policy | xargs vim", I get the error "Vim: Warnung: Die Eingabe kommt nicht von einem Terminal" (translation: Vim: Warning: The input does not come from a terminal). I...

Creating new object in Core Data: create first or upon return?

So I'm struggling with Core Data. I'm finding there are many ways to do the same thing, and that if you try to build the app using Storyboards and UIManagedDocuments you need to read all the...

Using intltool with cmake

I'm writing a GNOME application and use CMake. Now I'm considering making the app translatable, for which GNU provides intltool, gettext, msgfmt, etc.. autotools supports these tools and the...

How to translate small bash code to csh / tcsh (setting GNOME terminal title)

I need help to translate the following bash code to tcsh : case $TERM in (xterm*) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}\007"' ;; esac It is part of my .bashrc on all...

Why elinks not working properly on kde terminal

I have a script which fetches a word's meaning (translates english/turkish and turkish/english) from a remote web page and parsing it with using elinks and simple grep. It's quite simple script,...

Assigning URIs to RDF Resources

I'm writing a desktop app using Gnome technologies, and I reached the stage I started planning Semantic Desktop support. After a lot of brainstorming, sketching ideas and models, writing notes and...

How can I convert this apache user_agent blacklist regex into a php friendly regex?

I'm using this blacklist from http://perishablepress.com/blacklist/ua-2013.txt If I strip out the regex and assign it to a php variable I get: $strRegex =...

how to determine the encoding of scanf under linux?

source: #include <stdio.h> int main() { char buff[100] = {0}; char ch; int index = 0; scanf("%s", buff); ch = buff[index]; while (ch) { printf("%2x", ch); ch = buff[index++]; } return...

How to force QLocale::system to change

I need to test my application translation to non-English language very often, and this is very uncomfortable to change the whole operating system language just to do this simple check. How can i...

"Network services system are not compatible with this version ." Debian 8

Helllo, I'm using Debian 8 and it runs correctly, but I restart my computer after installing icons and gnome shell extensions and that happened :( any ideas? Translate to English "Network services...

Load GTK-Glade translations in Windows using Python/PyGObject

I have a Python script that loads a Glade-GUI that can be translated. Everything works fine under Linux, but I am having a lot of trouble understanding the necessary steps on Windows. All that...

using italic Arial (embedded) in FPDI

I'm trying to output a pdf file with an italic text in Arial and using FPDI for that. Since the arial.php and the arialbd.php (bold) are already existing, it's working fine. Now I found a...

How to make a plugin system using Libpeas for a Python3 Gtk application?

I'm trying to make an application in Python3 with Gtk and other GNOME technologies. I want to implement a plugin system(preferably libpeas) but it has no documentation for python. Hence I was...

Website Gone error while using Google Chrome on Android devices only?

My website is turning Gone error while being accessed on android devices, using Google chrome only. I tried many ways but nothing seems working and no clue what's the problem. I am using Opencart...

How to import Gtk, gi.repository? Best GUI for table grids? Tkinter * vs ttk?

I found a program, that uses gi, gi.repository, and Gtk. It seems like a great GUI for my Python script that involves Excel sheet imports and table grids. I am finally able to import gi after much...

Graphviz -> svg (->pdf) text flows out of the box for some viewers

An svg file generated from graphviz looks fine in some viewers (Chrome, Gnome Image Viewer) but doesn't in others (Inkscape, when converting using ImageMagick to pdf). Here's what my minimal...

vim crashes in directory with *.py files

When I try opening vim from the command line in a specific directory, it crashes with this message: vim Vim: Caught deadly signal ABRT Vim: Finished. Aborted (core dumped) After that, my...

Setup internationalization i18n Django

Following stackoverflow posts and a lot of tutorials to implement i18n internationalization in Django Admin I founded this steps: Command line Install (in the right ENV) Using PIP: pip install...

GCE: Ubuntu 18.04 custom image has no connectivity/SSH?

I'm currently struggling to get a custom image of Ubuntu 18.04LTS to work in GCE. I'm using the Ubuntu Desktop version, since installing gdm3 afterwards on Google stock Ubuntu just doesn't seem to...

Translate GTK UI written in Glade and Python

I've spent some time looking around for answers, and I've got a ton of them. And theoretically my code should work, however it doesn't. At first I'll post the minimal code, after that I'll...