Skip to content. | Skip to navigation

Personal tools
Log in
You are here: Home - Blog

A python script to download videos from video sites, including youtube

Requires package libav-tools on Ubuntu 13.10 .


youtube-dl is a small command-line program to download videos from

Read more: Link - youtube-dl

Apr 12, 2014 08:20

MoviePy - video editing from python

Impressive demos, including picture in picture. Uses ffmpeg and numpy.



Read more: Link - MoviePy — MoviePy 0.2 documentation

Apr 12, 2014 08:15

How to find out your OpenSSL version



openssl version

With the recent disclosure of the long standing heartbleed bug, it is a god idea to check what version of openSSL you are actually running. Just type openssl on the command line followed by the word "version". According to this page, the versions that are compromised are

  • OpenSSL 1.0.1 through 1.0.1f (inclusive)

OpenSSL cheat sheet

Apr 08, 2014 10:30

Tunneling of VNC over ssh in one command

Well actually two, but you stick them in one file that gets executed in bash:

ssh -fN  -L 5900:localhost:5900
vncviewer -encoding tight -quality 5 localhost:0


The -N switch prevents commands to be sent to the remote host, the -f switch allows the terminal to come back and prompt for a vnc password that is triggered by the second line.

Warning: Haven't figured out how to exit cleanly.

Mar 27, 2014 10:35

A reasonable setting for low bandwidth VNC over SSH

Tightvnc used in this case:

vncviewer -encoding tight -quality 5 localhost:1
Mar 27, 2014 10:30

Making a python 2.4 virtualenv buildout on Ubuntu 10.4 & Debian 7 as of 2014-03

It gets harder and harder to install a python 2.4 buildout on Ubuntu and Debian. Basically, the different scripts involved will try to execute code that is not compatible with python 2.4 at every step of the way. I need python 2.4 for some old Plone 2.5 sites. Here is what I did to get it running this time, tested both on Ubuntu 10.4 and Debian 7:

Use a separate virtualenv script, so do not rely on the one installed in the system which is made for another python version. Instead download a standalone script of some vintage:

wget --no-check-certificate

Setup the virtual environment like so:

python2.4 .

It will crash when trying to install setuptools, but by then it has installed python.

Now you should have a working python.

Time to install a setuptools that actually works. Version 1.4.2 works (somewhat selected at random, you can try newer ones if you like). That version is not linked from the page, but with some detective work it can be found at:

Download and unpack it and install it in the old-fashioned way:

./bin/python setuptools-1.4.2/ install

Time to install easy_install. Download the script from:

Then install easy_install with:


Time to install zc.buildout:

./bin/easy_install zc.buildout==1.4.4

In your buildout.cfg file, you must also pin setuptools to the version you have installed. Otherwise, you guessed it, zc.buildout will download and fail to run a newer incompatible version of setuptools:


setuptools = 1.4.2

And there you go:






Mar 16, 2014 06:20

A free web/blog site with tables?

I had the need for a quick and easy way to publish a table on some free web publishing service. The table must be easy to edit. However finding a free blog site or web publishing site where you can add tables in the wysiwyg editor turned out to be not that easy. In fact I have not found one yet:


no wysiwyg tables. There are plugins for wordpress that have this, but they are not available at, at least not for free.


no wysiwyg tables


no wysiwyg tables and has peculiar ideas about password security and annoying captchas


no wysiwyg tables


Is supposed to have some wordpress plugins, which ones they are is not listed, but signup does not work whether using Firefox or Chrome from Ubuntu, so it will remain a mystery.


has a table "plugin" but it disappears when you try to click it in Google Chrome or Firefox


has markdown publishing, but does not support the markdown table format


Mar 05, 2014 03:35

Running a GUI application on your Linux machine as a different user

sux seems to do the job. If you are on Ubuntu:


sudo apt-get install sux


sux other_user_name gui_program_to_run


You may need to include the full path to the program you want to run, e.g. if is a Windows program to be run under wine

sux other_user_name wine /path/to/program


Haven't tried without full path though.

Jan 10, 2014 09:41 | Comments (2)

When the newfangled buttonless touchpads make right click difficult in Ubuntu

There is a "hidden" setting in Gnome that allows you to use two fingers on the touchpd (trackpad) to emulate right click (context click). Read more here:

Jan 03, 2014 05:19

How to get python 2.4 to compile on a new Debian

The instructions are for Ubuntu, but the user appociappo's instructions worked like a charm on Debian 7. It contains a patch to, and flags for the C compiler and loader:
 Link - [ubuntu] compile python 2.4 and 2.6 on 12.04 x86_64

Furthermore, if you are using for e.g. a Plone buildout, this seems to work:

Dec 31, 2013 09:40