Using ffmpeg with php
Installing on Mac OSX
Unfortunately Mac Port doesn't cover this one so I followed the instructions I found here: http://www.dorianmoore.com/works/2352
Installing on Linux
yum install ffmpeg ffmpeg-devel
I mostly followed the instructions posted here: http://www.mysql-apache-php.com/ffmpeg-install.htm
However the info for the dag repository was not working for me. If you get package not found, then you will need to add few lines in the yum repository for dag packages installation. Create a file named dag.repo in /etc/yum.repos.d with the following contents on it first.
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
#baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
baseurl=http://dag.linux.iastate.edu/dag/redhat/el5/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
Making Zend_Tool Work On Mac OSX
I'm starting a new project where it look like I have to use the Zend Framework. There appears to be a tool included that autogenerates the MVC application structure for you. To use it though you have to mess around in the command line on your Mac to set things up. I enventually got everything working.
Regular Expression Fun
There are already loads of resources on the interwebs explaining the purpose of regular expressions so no need to explain further here. (Well basically, they allow you to match and extract patterns of text from strings). I just want to document a few quick examples that I use a lot.
Internet Explorer 8 Sucks Too!
Every one knows IE6 sucks and deserves to die in the firey pits of hell. IE7 was a bit better, and after lots of hair pulling and css hacking we were able to get our websites to look pretty much the same across all the major browsers. So when IE8 came out our sites were sure to keep working. Right?...
Fricken HTML Emails!
Building html emails is a royal pain in the arse. Every email clients buggers up something along the way. Here’s the most annoying things I’ve figured out along the way…