jorgenmodin.net - Blog
Requires package libav-tools on Ubuntu 13.10 .
youtube-dl is a small command-line program to download videos from YouTube.com
Read more: Link - youtube-dl
Impressive demos, including picture in picture. Uses ffmpeg and numpy.
Read more: Link - MoviePy — MoviePy 0.2 documentation
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)
Well actually two, but you stick them in one file that gets executed in bash:
ssh -fN -L 5900:localhost:5900 remotserver.example.com 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.
Tightvnc used in this case:
vncviewer -encoding tight -quality 5 localhost:1
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 https://raw.github.com/pypa/virtualenv/1.7.2/virtualenv.py
Setup the virtual environment like so:
python2.4 virtualenv.py .
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 https://pypi.python.org/pypi/setuptools 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/setup.py install
Time to install easy_install. Download the script from:
Then install easy_install with:
Time to install zc.buildout:
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:
[versions] setuptools = 1.4.2
And there you go:
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 wordpress.com, 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|
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.
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:
The instructions are for Ubuntu, but the user appociappo's instructions worked like a charm on Debian 7. It contains a patch to setup.py, 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 bootstrap.py for e.g. a Plone buildout, this bootstrap.py seems to work: