The Blog

Keep URLs Friendly

12 Jun 2012

I have seen a number of websites lately still using query string URLs (http://www.mysite.com/index.php?id=1) for general content pages. I do not object to using these for special cases like a complex search, product filtering and other cases which I can't think of at the time of writing this.

Slim Composed

20 Apr 2012

Slim Framework has been around for some time now and it has become my de-facto micro framework for developing small projects or even just prototyping concepts easily. I have been long looking for a good package manager for PHP that would allow me to easily load any package I want to use in my projects.

Using Twig with Slim Framework

29 Dec 2011

In this post I will continue from my last post about Using PHPActiveRecord with Slim Framework we will move on to creating template(views) using Twig Template Engine. Twig is written by the creator of Symfony Framework Fabien Potencier and the template syntax is easy to understand and extending Twig is also relatively easy. Before continuing any further I would advice on following the previous blog post Using PHPActiveRecord with Slim Framework or if you are not interested in learning about PHPActiveRecord you can download the files from the GitHub repository.

Using PHPActiveRecord with Slim Framework

17 Oct 2011

When prototyping projects in PHP I normally use Slim Framework and for all database interactions I use PHPActiveRecord. These tools make Rapid Application Prototyping quick and easy to manage. In this article I will go through step by step explaining how to get these two up and running.

MySQL python inside of virtualenv with django

06 Oct 2011

After hours of trying to install MySQLdb in a virtualenv for a django app I am working on, I have finally worked out how to get it done. I was using the normal

pip install MySQL-python

command inside of my environment and this didn't work, I did multiple google searches and checked all over the internet and to no avail.

Microframework are great for quick prototyping

17 Mar 2011

I have recently started to use microframeworks to prototype and test ideas in short sprints rather than creating a full blown web application. I will be talking about a upcoming PHP 5 Microframework called Slim Framework. Slim Framework as small as the package might be is a feature filled framework which keeps the separation between presentation and business logic.

Getting Flickr Photos into MODx Revolution

29 Aug 2010

I have now moved this website over to MODx Revolution 2.0.0. I must say the migration wasn't too difficult although I was waiting on a one click upgrade path but after looking at the way how MODx is built in general, it wouldn't have been possible as different developers use different plugins, snippets and addons. I was reading Muddy Dog Paws and realized he was having problems getting Flickr to work in MODx Revolution.

Manage Multiple Domains with MODx Revolution

16 Jul 2010

With MODx Revolution 2.0.0 hitting RC3 it is not long before the final version is released. I took some interest in Revolution from the time it hit RC2 and have been working on a internal project with it. I wanted to manage a few internal websites with it so I put it to the test to see how easy it would be to do this.

Multiple copies of Firefox on windows

22 Jan 2010

Upgrading is good but there are some who just don’t updgade as often as others, so I have upgraded to Firefox 3 but wanted to keep Firefox 2 at hand for testing websites I develop, so here is how to install multiple copies of Firefox on Windows.

Arrays and Objects in Javascript

18 Jan 2010

When working with Arrays there are normally a few tasks that you tend to repeat and the functions are not that evident from the names alone. I created a helper object which allows you to convert a JSON string to objects and store them into a array.

Social Media

Twitter
London Midland Train Square Bob Sponge Pants at o2 Arena The Reliable