Posts Tagged “PHP”

Unit testing for CodeIgniter: PHPUnit and CIUnit

I have been looking into building a Continuous Integration Environment on my Mac for my Code Igniter Projects. To achieve this I need to put together some robust tests, I have selected PHPUnit to use as my test framework as I have used this before. I know that Code Igniter has a built in test Lib http://codeigniter.com/user_guide/libraries/unit_testing.html but this is not robust enough and it will not integrate with my Continuous Integration environment, which in this case is Jenkins.

To right tests for your code, you need to be able to load in your controllers and models and in turn for them to load in the rest of the Code Igniter core. It is I’m affried not as easy as just inclueding the classes you want and then instantiating them, you need to have the framework run like a page request. To do this is a bit of a mission, but, being a good little developer rather then reinvention the wheel I fired up Google and started haveing a search around.

Read On »

 

posted 15/04/2012 - 9:15 pm in Tech by

Bestcookbook.co.uk update: authors and price comparison

I’ve been very bad and not done an update on the site’s progress in a long while. There’s been a lot going on.

New Features:
I have been pretty busy updating the site. First off, as a quick win I added a Google+ button. Next, I created Author pages, which as you can guess gives you a list of all the books the site has for a particular author. It all helps.

The next big addition is that I added our first alternative book seller. The Book Depository, is the second seller to go on Bestcookbook.co.uk, so you can now compare prices, on the price comparison site, pretty handy… I also started trying to add in Tescos through their Beta API, but it only covers groceries, which I found out though much faffing. Hopefully, they will soon expand it out to include books.

Read On »

 

posted 13/11/2011 - 1:10 am in Projects by

TwitterGalaxy – Part 2 – Twitter API Integration into Google Earth using a KML Tour

earth

In my last post TwitterGalaxy – DIY Google Liquid Galaxy from Recycled Monitors with integrated Twitter Feed we had put together massive great array of monitors and I had promised that there was a reason – other then porn and gaming. Bookmark on Delicious Digg this post Recommend on Facebook Buzz it up share via Reddit Share with Stumblers Tweet about it

 

posted 20/09/2011 - 8:20 pm in Tech by

Bestcookbook.co.uk

Best Cook Book is my attempt at a niche site. Inspired by Pat Flynn’s blog at www.smartpassiveincome.com and more specifically his Niche Site Dual http://www.smartpassiveincome.com/nichesiteduel/

Based on the the first rule of niche site club “not talk about niche club”, ok so the second rule, create a site about some thing you like. I’m a keen cook and like most people I like saving money. So I came up with the idea of a price comparison site for cook books.

Read On »

 

posted 12/07/2011 - 6:57 pm in Projects by

Volvoracing.co.uk

20110715-120511.jpg

Volvoracing.co.uk is one of my own websites. Volvos are one of my favorite car manufactures and I wanted to create a website about there cars and there activities in motor sport. It also works as a handy test bed for monetization and tracking experiments.

Read On »

 

posted 05/04/2011 - 9:01 am in Projects by