Missing tests - getting everything testedJul 12th 2011, 20:18

Unit tests are not often the first thing on someone’s mind when it comes to coding, unless you are in the small group of developers that have become accustomed to writing tests before writing any code. Thanks to the current project I'm busy with I have joined this group.

Due to a few (lame) reasons, unit testing has never been a high priority on Infinitas. In all the wisdom of hindsight unit...

Tags

shells | unit testing | infinitas

142 views (new post)

Moving EC2 instances across regions on Amazon Web Services (AWS)Apr 20th 2011, 16:06

the moveWe started using Amazon AWS at work for hosting and I landed up being the server admin. I've been stuck in terminal for more than 3 weeks and not touched a line of code (apart from turning debug on after this move to make sure the cache was cleared) and one awesome bash backup script.

After building a monster development box on AWS to host git (new application), SVN (old application), gitweb, a ...

Tags

Ubuntu | Amazon | cloud

412 views

Custom view class - Zend, CakePHP, Symfony and KohanaFeb 17th 2011, 00:19

There are a lot of sites out there that benchmark frameworks. Every time there is a new benchmark, there is a huge outcry from the loosing sides followers. To date there has not been anything that I know of that has not been bias or meaningful, as the person doing the benchmarking does not know each of the frameworks and its normally a 'hello world' application which is completely pointless as...

Tags

zend | symfony | kohana | cakephp

933 views

A few updates to my blogDec 10th 2010, 01:57

Super quick today, just activated the twitter plug-in so things will be a little bit more social :). The twitter auth is read only so I wont be doing any funny things to your account when you are not looking

I also added some new modules, down the bottom of every page is some links to other blogs I read. On the right is a box of "latest posts" for quick links to the new stuff.

I have also just...

Tags

update | infinitas

11865 views

Huge speed gains for InfinitasDec 8th 2010, 00:11

I just pushed some changes to Infinitas that has made a huge difference in the page load times. As you have seen in some of my previous posts, Infinitas serves loads of asset files. On average one JavaScript file and one css file, along with all the images. This equates to around 40 or 50 requests per page.

A little while back I added the code for generating symlinks automatically and although t...

Tags

performance | infinitas | pagespeed

927 views

Symlink CakePHP plugin assets for faster page loadsNov 23rd 2010, 22:23

If you are a fan of CakePHP's plug-ins, and want to keep you application non-dependent on plug-ins you have to keep the assets in the plug-ins webroot folder. This might not seem like a bad thing till you realise CakePHP delivers those files via some fread() calls and appropriate headers.

So what you ask? Say You have an application with many plug-ins, things like a gallery, content management, ...

Tags

symlinks | performance | cakephp

1501 views

Infinitas is almost betaNov 11th 2010, 01:59

If you been to my site before you will notice some changes. A few more links added to the nav bar with some new content.

As I said before I will be keeping my site running a standard version of Infinitas (with some of the available plugins), so that you may get a glimpse into what it has on offer. All the posts from before have been using the Blog Plug-in that was coded for Infinitas. The ab...

Tags

infinitas | cakephp | random

986 views

Google's new mod_pagespeed for ApacheNov 4th 2010, 15:58

Update

The bug I submitted about the cached names being to long has been fixed. More information is available here. I have not tested it yet, but hope to do so shortly.

Google has released mod_pagespeed for Apache, a module that brings promise of faster page loads and less bandwidth usage, lowering costs and making everyone happy. Is it possible that this could work as well as APC? s...

Tags

apache | pagespeed | cakephp

1961 views

PHP APC - make your app super fast!Oct 11th 2010, 04:04

One of the many advantages of using Ubuntu over windows is the ability to install and test out all the plug-ins available for PHP. One of them being APC (Alternative PHP Cache).

I just upgraded to the latest Ubuntu 10.10 and figured I would take a quick screen shot, for anyone that is doubting how much something like APC can affect an application. When I first found out about them, I did not thi...

Tags

opcode cache | cakephp | php

2381 views

Removing the www sub domain from your urlOct 3rd 2010, 23:37

For the most part, the www in a domain is pretty pointless. In general it's only there to make you type 4 extra characters to get to the site you want. It can also cause you a lot of pain trying to develop Ajax applications as I once found out.

There I was tying to get some Ajax working on a client site I was busy with only to be given some error about cross domain Ajax being disabled or not all...

Tags

cakephp | apache

1009 views

Using other apps with CakePHP - htaccess configOct 3rd 2010, 22:34

One thing that is asked quite a lot on #cakephp is how to use other apps alongside CakePHP, and the answer giving is normally pretty ugly. Stick the files/folders in side webroot/. Although that does work, its not very nice. So ill show you a little trick with .htaccess files.

The first (really simple way) is to use a .htaccess inside the sub folder. For example you can have a copy of Joomla! ru...

Tags

apache | cakephp

2818 views

Time for a new layout with the new InfinitasOct 1st 2010, 00:58

So the Windows 3.1 was not working for you? Even though there was mixed reactions, I thought it was pretty cool. So I scraped a bit of time together and started work on a new layout. Ill be sticking with this one for a while, although I will most likely be tweaking it as time goes on.

If you are using internet-shitty, tough luck. I'm using a lot of css3 and html5 and as time goes on there will b...

Tags

general

863 views

ProgressOct 1st 2010, 00:47

Infinitas has seen some huge changes in the structure, if you been following the development you would have noticed. Besides removing a lot of code (about 50k lines or so) much of the code has new homes. With all the development going on some plug-ins were getting a bit full of unrelated code and it was decided that everything should be split up.

The new structure has a lot to do with the core...

Tags

infinitas | development | update

900 views

SELECT * FROM t1 WHERE title REGEXP '(this[[.space.]{1,}]rocks)'Aug 2nd 2010, 14:16

Trying to find ways of optimizing my code that sorts the jobs, I remembered reading about regex in MySQL. I can make my way round regex, but its not my strongest point so never took much notice. Also not having a need for it, I filed it in to-do.

The problem: I have 15k new jobs pulled from the RSS feeds. Now I want to know what the pay is like for each one. Not all jobs have salaries in...

Tags

mysql | regex | cakephp

1745 views

Job searching... The Developer wayJul 27th 2010, 01:42

So I am looking for a job at the moment (something in Php if you had not guessed) and got kinda sick of looking at the same jobs on all the different sites. As one would do, I wrote a feed aggregator, over the weekend. Added some logic to it to remove spam and duplicates so there is less running around on all the sites, extract vital information so I could see at a glance what the job is all...

Tags

infinitas | cakephp | rss

1838 views

Why I started InfinitasJul 27th 2010, 00:39

Why another CMS? Its a mixture of reasons, of which the main ones are:

  • Tired of writing the same code all the time.
  • Good way to learn CakePHP inside out.
  • For the most part other open source systems don't always fill the gap.

I found out about Php around 5 years ago playing with other Open Source systems such as Joomla, Zen-Cart and the likes. Doing quite a lot of cu...

Tags

infinitas | general | development

998 views

WelcomeJul 27th 2010, 00:33

Welcome to my blog. As I’m sure most of you know, I am a Php developer and have been for about 5 years. I have been using CakePHP for the last 2 years, and is by far my framework of choice.

I started the Infinitas project in December '09 and figured now that its usable its time to do my own blog. Its most probably going to be a mix of CakePHP and Infinitas, but I am sure there will be so...

Tags

general | welcome

876 views