Archives
-
Recent Comments
Author Archives: admin
WordPress MU Upgrade and Permalinks 404 Erros
WordPress MU upgrade(from 2.x to 3.2.1) was a rather simple process surprisingly! Having completed it in a matter of couple hours for a fairly large blogging network, I was a happy camper up till the moment when permalinks started giving … Continue reading
MongoDB distinct count
List of disctinct values for a FIELD in COLLECTION: db.COLLECTION.distinct(“FIELDNAME”, {}) Count of the same: db.COLLECTION.distinct(“FIELDNAME”, {}).count
Posted in 4QuickLookUp
Leave a comment
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
Gnome Do, Docky, upgrade to Ubuntu 10.10 and an odd case of /var/lib/dpkg/tmp.ci/md5sums
So I finally upgraded to 10.10, a bit behind the curve but whatever. For the most part it went surprisingly swimmingly. I only had 2 issues First one – gnome-do docky theme was gone. And apprently it’s gone for good … Continue reading
WordPress shortcode for ShareThis buttons
I like using ShareThis for social sharing button, but one thing that was certainly missing for the default ShareThis WordPress plugin were shortcodes. Luckily WordPress makes it really easy adding them So to get shortcode for ShareThis integration just add … Continue reading
How to setup local PHP debugging with PHPStorm and Xdebug
I am checking out a new IDE on the block – PHPStorm… well, new for me anyway For Java and Python, Eclipse is all I need, but when coding in PHP, I am not a big IDE guy, for me, … Continue reading