Blog

Latest Entries

Earlier today I found myself needing to configure Rocketeer to deploy to a server that required commands to be run with sudo. I’m not sure that this is particularly well documented so I thought I’d share how I did this here.

Credit cards
Credit cards photo by NY - http://nyphotographic.com/

Fed up with searching for documentation of test payment cards for specific payment gateways the other day I decided to start compiling a cheatsheet of them. It can be frustrating trying to figure out what card numbers can be used for testing especially considering the many poorly documented payment gateways out there. So I created the Test Payment Cards cheatsheet repository.

The TinyMCE link dialog.

If you’re using the link plugin for TinyMCE to add links to content and want to get rid of the target attribute options then the trick is to set target_list to false in the editor’s configuration.

I recently found myself needing to change the user-group for file permissions depending on the connection being deployed to via Rocketeer. Rather than completely override the permissions callback defined in remote.php for the specific context I wanted to be able to define the user-group as a configuration option that could be overridden contextually. It turns out this is pretty simple to achieve.

Wouldn’t it be great if deploying changes to a server was as simple as typing the command rocketeer deploy? Well with Rocketeer it is!

Rocketeer is a task runner and deployment package. It is an alternative to the popular Capistrano.

If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.

I’ve recently noticed a number of people trying to use CakePHP 2’s updateAll() method very badly.

Let’s first get one thing straight: updateAll() is not the intended way of updating a record in CakePHP, use save() for that!

Sass maps have been around for a little over a year now and are an incredibly useful feature of the CSS preprocessor.

If you’re already using them then you’ll already know how handy they are; if not, then hopefully this little post will give you a good start.