Extending Zend_Rest_Server to use namespaces

I’ve been building an API for a project I’m “secretly” working on, and I wanted to have a REST endpoint to consume some resources, I wanted to have my resources divided as follows appname.resource.action for instance: myapp.post.create I’m building this app using Zend Framework, I’ts not the first time i have to deal with Zend, but it was the first using the Rest Server component, and I was shock to find the setClass method did support the namespace, but it wasn’t being used, so I decided to roll out my own extending...
read more

Installing geoip php library and geoip standard on OS X 10.7 (Lion) for use with MAMP using PECL and Homebrew

I needed to install the GeoIP library for use on a PHP Application, so i tried to download the libraries from MaxMind website, i found that to be little to none helpful, having had experience with libraries and MAMP i started to wonder what is the best way to install this?, my initial idea was spot on! PECL, i had to first find the version of PECL bundled with MAMP, this isn’t really hard just locate your PHP Version (5.3.6 for me) then try to locate it under MAMP’s Application folder rroche at Ramon-Roches-MacBook-Pro in /Applications/MAMP/bin/php/php5.3.6 $ la total 32 drwxr-xr-x 8...
read more

Installing PHPUnit on OS X using MAMP via PEAR

Here is a quick and solid way to add PHPUnit to your MAMP Setup Important: The path to your PHP and PEAR if you are using MAMP is something similar to this PHP: /Applications/MAMP/bin/php/php5.xxx/bin/php PEAR: /Applications/MAMP/bin/php/php5.xxx/bin/pear notice the php5.xxx this will depend on the version of php you are using, in my case is php5.3.6 so have that in mind if you are planning on copy pasting this guide Instructions: Turn on PEAR auto discover /Applications/MAMP/bin/php/php5.3.6/bin/pear config-set auto_discover 1 As Alex from the comments states you might need to update pear cd...
read more

MTR – Homebrew

I recently installed MTR with homebrew and i forgot it’s a X11 app, to install the CLI version do brew install mtr...
read more

Installing Imagemagick with Hombrew ( libtiff fix ) UPDATED

UPDATE Jan 24 2012 – RESOLVED I got ImageMagick Installed with nothing more than brew install imagemagick, big thanks to the community behind Homebrew dont forget to pay them a visit on IRC freenode #machomebrew - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - When i updated to Lion i found out that most of my libraries where gone, including the much needed ImageMagick, i couldn’t install it with MacPorts for some odd reason so i installed it by source, huge mistake, one of my apps stopped working. Today i tried installing with Homebrew, but...
read more

FFmpeg recommended conversion settings for iPad

Just a quick note on how to convert video to and iPad appropiate format I’m using libfaac for aac compression, you can get more conversion helpers here...
read more
Page 1 of 3123