How to: calculate the modulus (mod or %) of a float in PHP

This little caveat totally stumped me for at least an hour. I was trying to calculate the modulus of a floating point number in PHP.

For those who do not know what the modulus (or mod for short) operator is, it calculates the remainder after doing division. In PHP we use the % operator to calculate modulus.

Posted on Wednesday 15 December 2010 to the category Blog |
Used tags: , , , ,

How to convert metres to feet and inches in PHP

During development of a web application we had to convert metres to feet and inches using PHP. Not having fully remembered the formula from school (day dreaming was just so much more fun), we turned to Google...

Posted on Tuesday 9 November 2010 to the category Blog |
Used tags: , , , , , , ,

How to: Gzip compression with PHP

Gzip compression is a quick and easy way to decrease page size and lower bandwidth bills.

Posted on Sunday 17 October 2010 to the category Blog |
Used tags: , , , ,

How to use rel=nofollow to preserve your Google Page Rank

In short, the rel="nofollow" HTML tag is a way to tell search engines such as Google and Yahoo - "Please don't follow this link, it's not related to my website".

Posted on Wednesday 15 September 2010 to the category Blog |
Used tags: , ,

Facebook privacy - too little, too late?

Recently Facebook has been all over the media for it's constantly changing levels of privacy. Information which was previously hidden is now being forced to be shared with the entire world.

Posted on Wednesday 11 August 2010 to the category Blog |
Used tags: , ,

LOST is over!

Have you been watching LOST? Do you think the finale summed up the 6 year journey? Find out what we think.

Warning: If you have not watched the LOST finale, this post may spoil it for you. Please use strong caution!

Posted on Thursday 27 May 2010 to the category Blog |
Used tags: , ,

Robin Hood Festival of Running 2010

The Experian Robin Hood Festival of Running 2010 is a mini-marathon, half marathon and full marathon in Nottingham on September 12th 2010. Will you be running?

Posted on Wednesday 5 May 2010 to the category Blog |
Used tags: , ,

Is this the new iPhone?

Somehow an Apple employee lost a development version of the latest, greatest iPhone that is as yet un-announced. We have some pictures and information, and we like it!

Posted on Wednesday 21 April 2010 to the category Blog |
Used tags: ,

Kaifu Computing launch a brand new website

Do you like it? Our new website was designed and developed in house at Kaifu Computing. We think it's fantastic!

Posted on Monday 19 April 2010 to the category News |
Used tags: , , , , ,

Customer Relationship Management (CRM) solutions available from today

Customer Relationship Management software, or CRM for short, provides a single solution to keep track of and share leads, customers, accounts, sales, support and much more.

Posted on Wednesday 14 April 2010 to the category News |
Used tags: ,