Category Archives: Notes For Myself

How to install Xapian 1.2.5 PHP bindings on Ubuntu Lucid Lynx

Starting from version 1.2.x, Xapian repository on Ubuntu does not contain php5-xapian package apparently due to the license incompatability between GPL and PHP license(great…) Issue is discussed somewhat at length here. But in the meantime, folks suggesting to build PHP … Continue reading

Posted in Linux/UNIX, Notes For Myself, PHP, System Administration | Leave a comment

Auto-splitting video file in equal chunks with ffmpeg and python

Recently I needed to upload a whole bunch of long video files. Maximum allowed length for each video was just few minutes, while the actual length of files I tried to upload were about an hour each. FFmpeg is really … Continue reading

Posted in Notes For Myself, Python | Tagged , | 3 Comments

Build OpenLDAP 2.3.x from sources on Ubuntu

It happened so that I needed to build a particular version of OpenLDAP on Ubuntu and use that instead of the one in Ubuntu’s repository. Here is a quick guide as to how it worked for me: 1. Get BDB … Continue reading

Posted in Linux/UNIX, Notes For Myself, System Administration | Tagged , , , , | 5 Comments

Getting around open_basedir restriction on Plesk

Almost every time I do a deploy on Plesk-based hosting server, I hit the same roadblock: PHP Warning:  realpath() [<a href='function.realpath'>function.realpath</a>]: open_basedir restriction in effect. Since I tend to keep my app-code outside of webroot, this restriction is somewhat a … Continue reading

Posted in Notes For Myself, PHP | Tagged | 1 Comment

HTML5 Video Encoding with FFmpeg

Encoding Ogg video ffmpeg -i SOURCEFILE.avi -vcodec libtheora OUTFILE.ogg Encoding MP4 ffmpeg -i SOURCEFILE.avi -vcodec libx264 -vpre slow OUTFILE.mp4 Encoding WebM ffmpeg -i SOURCEFILE.avi -vcodec libvpx -acodec vorbis OUTFILE.webm Resizing video: ffmpeg -i SOURCEFILE.avi -s WIDTHxHEIGHT OUTFILE.ogg WIDTH, HEIGHT new … Continue reading

Posted in Notes For Myself | Tagged , , , | Leave a comment