How to Run Python Code on SublimeREPL


Question I really like using sublime text 2 to write Python codes, however any time I try to run a script which has an input, the sublime text console reports an error. So, I decided to try SublimeREPL, however I've been searching for hours and I didn't find out how to run Python code... could you guys help me? I want to run the code on SublimeREPL as we do with the sublime text console (CTRL+b).…
Read more ⟶

Install mysqldump on Ubuntu 14.04


Question I have trouble installing the mysqldump utility on a Ubuntu Server. I tried with apt-get install mysqldump but i get E: Unable to locate package mysqldump. I tried googling but couldn't find any quality information of the installation of mysqldump. I stumbled upon packages like mysql-client-5.1 or thelike that might contain it. But i am afraid it might somehow clash with the existing mysql installation. As i am no expert to the topic i wasn't able to gain enough information on the client packages, what they contain and if they will interfere.…
Read more ⟶

Control mouse by writing to /dev/input/mice


Question I am using Ubuntu 12.04. For one of my applications I require to control the mouse in software using a script. I understand that the mouse device is /dev/input/mice. If I do a cat /dev/input/mice and then move my mouse, I see a lot of output being dumped to the screen. Now I wish to remove the mouse, and have a script which writes to /dev/input/mice in order to control the mouse pointer…
Read more ⟶

Java: System.getProperty("user.home") returns "?"


Question I'm completely lost on this one: System.getProperty("user.home") and System.getProperty("user.name") returns a questionmark "?". System-Specs: Kubuntu 9.04 Gnome 2.2.61 Java 1.5.0_16 My testcase looks like that: $ more Test.java class Test { public static void main( String[] args ) { System.out.println( System.getProperties() ); } } The result is (added line-breaks for better readability, replaced company name and own name): $ javac Test.java $ java Test { java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.…
Read more ⟶

cx-freeze, runpy and multiprocessing - multiple paths to failure


Question This is a bit of a complex one, and may take some of your time. The basic problem is, that on linux (Ubuntu in my test case) a cx-freeze'd version of my program (Omnitool) is not able to create subprocesses. It works on Windows 7, however. Or when running directly from source code. Unfortunately it's not as simple as forgetting freeze_support. The Problem Default behaviour of starting a subprocess, is that the X Server crashes.…
Read more ⟶

No module named packaging


Question I work on Ubuntu 14. I install python3 and pip3. When I try to use pip3, I have this error Traceback (most recent call last): File "/usr/local/bin/pip3", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 70, i n <module> import packaging.version ImportError: No module named 'packaging' Does anyone know what is the issue? Answer First update your pip version itself. You can take a look at this answer…
Read more ⟶

Removing all installed OpenCV libs


Question I'm running Kubuntu 11.10 (w/ KDE 4.8) Before you read all this : I just want to remove all traces of OpenCV from my system, so I can start afresh.. The whole story I first installed python-opencv and libopencv (2.1 I think) from https://launchpad.net/~gijzelaar/+archive/opencv2 a long time ago. I only tried python-opencv at that time, which worked perfectly (I didn't attempt using C++ code using OpenCV) Then I recently tried to install OpenCV 2.…
Read more ⟶