Suitable to drity-bit.ch, I found this video 🙂
Blog
Run processes when not logged-in with SSH
Scenario: I want to run a process on a remote computer, but don’t want to keep the SSH connection open during its execution. Even using the & after a command does not make a running process presist / survive a SSH disconnect. For these cases you can use screen. When logged-in in a remote computer,… Continue reading Run processes when not logged-in with SSH
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)
Subversion: revert file to older revision
Who doesn’t know the following situation: The file somestuff.c is in the HEAD revision, but it is not working anymore. Now you want to revert it to the revision 10 (which is may be HEAD-1). One way doing that is to update to the files correct version by: svn up -r 9 somestuff.c Then copy… Continue reading Subversion: revert file to older revision
Increase php’s memory_limit for a virtual host in Apache configuration
Add the following line within your <VirtualHost></VirtualHost> directive: php_value memory_limit 128M For increasing the allowed memory to 128 MB for php to consume for the specific virtual host.
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!)
compile C and C++ code into one binary in Linux
Sometimes you have a project written in C and you want to add some code (may be open source software) which is provided in C++. So you may want to call a function written in C++ from C. For that purpose, you have to change the function prototype of the concerned C++ function like: #ifdef… Continue reading compile C and C++ code into one binary in Linux
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
start Matlab using just one computation thread for computation
For reference it might be useful running Matlab computations only on one core: matlab -singleCompThread
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