Archives
-
Recent Comments
- Stephen Kane on WordPress shortcode for ShareThis buttons
- ciacob on WordPress shortcode for ShareThis buttons
- quantumtraveler on WordPress shortcode for ShareThis buttons
- Mercurial and 404 | Bryan's Blog on Installing Mercurial 1.5, 1.6 or 1.7 on Ubuntu Lucid Lynx 10.04
- indir on How to setup local PHP debugging with PHPStorm and Xdebug
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
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 bdb, ldap, openldap, slapd, ubuntu
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
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