distribute shared library with your binary (set rpath)

When a Linux binary is started, the run-time linker uses three sources for finding the needed libraries. First it is possible to set the LD_LIBRARY_PATH environment variable, second the “rpath” (this is a path encoded into the binary while compile time) and last but not least the systems’ default directory like /usr/lib. Now consider the… Continue reading distribute shared library with your binary (set rpath)

WordPress updated (refresh this page if displayed wrong!)

WordPress has a very simple and convenient automatic updating process. But for making this process work, you need a working ftp server on your server and the filesystem permission for that user to access your htdocs-folder on your system. Furthermore, some lines in wp-copnfig.php are needed: define(‘FTP_HOST’, ‘ftp://localhost’); define(‘FTP_USER’, ‘my_username’); define(‘FTP_PASS’, ‘my_password’); define(‘FTP_BASE’, ‘/path/to/my_web_root/’); define(‘FTP_CONTENT_DIR’,… Continue reading WordPress updated (refresh this page if displayed wrong!)

Published
Categorized as Wordpress

change max_allowed_packet (or any arbitrary DB parameter group value) in Amazon RDS from commandline

This task sounds to be quite easy, but because the AWS Management Console does not allow the manipulation of parameter group values, you have to go the way using the API from your commandline (or from wherever you want). This post will explain how to do it in your console using the API tools from… Continue reading change max_allowed_packet (or any arbitrary DB parameter group value) in Amazon RDS from commandline

Create MATLAB readable avi from bmp frames

Use the following command ffmpeg -vframes 200 -f image2 -i airport1%03d.bmp -f avi -vcodec rawvideo -pix_fmt bgr24 -acodec pcm_s16le airport.avi This will convert all the files airport1000.bmp to airport1200.bmp to an avi file. Using mencoder will allow you to chose the framerate: mencoder “mf://*.bmp” -mf fps=12 -o out.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=800