Can’t stop WEBrick 1.3.1 with ctrl-c on Ubuntu 11.04

I’d rather comment than add an answer for this, but not enough rep. I have the same issue and found that resuming (with fg) after typing ctrl–c then pausing (with ctrl–z, as offered above) does the trick. So the recipe is: ctrl–c (does nothing right away) ctrl–z (pauses WEBrick, goes back to shell) fg (resumes … Read more

Hadoop: «ERROR : JAVA_HOME is not set»

Make sure that you have removed the comment tag and changed your JAVA_HOME in the hadoop-env.sh as well as the appropriate .bashrc and/or .profile: # export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk should be export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk You can set your JAVA_HOME and PATH for all users (make sure you haven’t previously set this to the wrong path) in /etc/profile. Also, … Read more

supervisord stopping child processes

The same problem was encountered by Rick Hanlon II here: https://coderwall.com/p/4tcw7w Option stopasgroup=true should be set in the program section for supervisord to stop not only the parent process but also the child processes. The example is given as: [program:some_django] command=python manage.py runserver directory=/dir/to/app stopasgroup=true Also, have in mind that you may have an older … Read more

linux/videodev.h : no such file or directory – OpenCV on ubuntu 11.04

The current answer is incomplete. Installing libv4l-dev creates a /usr/include/linux/videodev2.h but doesn’t solve the stated problem of not being able to find linux/videodev.h. The library does ship header files for compatibility, but fails to put them where applications will look for them. sudo apt-get install libv4l-dev cd /usr/include/linux sudo ln -s ../libv4l1-videodev.h videodev.h This provides … Read more

curl : (1) Protocol https not supported or disabled in libcurl

Got the answer HERE for windows, it says there that: curl -XPUT ‘http://localhost:9200/api/twittervnext/tweet’ Woops, first try and already an error: curl: (1) Protocol ‘http not supported or disabled in libcurl The reason for this error is kind of stupid, Windows doesn’t like it when you are using single quotes for commands. So the correct command … Read more

tech