Turn off error suppression [TotD]

Posted by hts | December 31, 2007 .

When you write PHP scripts and test them locally, you probably set PHP to show all errors, for easier debugging.
But if, when you use them on a “live” server, you use the “@” operator to suppress errors, then take note of the following…
Problem
Error suppression in PHP is very slow
Get rid of all your error suppressing […]

Optimising “For” Loops [TotD]

Posted by hts | December 30, 2007 .

From now on, I’ll (try to) post, every day, a quick tip, usually regarding PHP programming. (TOTD= tip of the day)
So for today, I’ll show you how to optimise your application speed with a simple trick regarding FOR loops in PHP:
Problem
Lets take the following example:

<?php//let’s suppose $max and $min variables are pulled from a databasefor ($i=1;$i< ($max-$min);$i++) {      //do something}?>

This is inefficient, unoptimised, memory and CPU consuming, etc - you […]

Cool “Pair” of Glasses

Posted by hts | December 28, 2007 .

Cool pair of glasses. I wonder whether a cyclop person’s worry would be the need to wear glasses :)

Shape Invasion Flash Game

Posted by hts | December 27, 2007 .

I stumbled upon this flash game, Shape Invasion, this morning, and I’ve played it for almost an hour before realising that “I’m wasting time here”.
Anyway, here’s the link: Space Invasion
Some tips: don’t get the turret or the pulse thing as upgrades -they are a waste of money. Instead, buy as soon as possible the rocket […]

Can You See the Illusion?

Posted by hts | December 25, 2007 .

Here you go (may be obvious, but the way those sub-images are arranged create a great illusion)

The Length of One Kilometer Was Greater Than That of One Mile

Posted by hts | December 23, 2007 .

I sometimes wonder whether human stupidity and incompetence has limits (think of Einstein’s quote…he was probably right):
[carefully read the highlighted line]

New Theme on imbaDev

Posted by hts | December 22, 2007 .

I’m all healthy and back in business. Therefore, I can blog again - what a relief to be able to do so.
Anyway, as you probably noticed (duh), I’ve changed the theme used here on imbaDev.com
I realised that a 2-column theme doesn’t provide enough room for everything I needed for this blog, so I switched to […]

When Accidents Happen

Posted by hts | December 18, 2007 .

I had an accident on Sunday and as a result, the doctor forbid me to engage in any activity that requires brain “usage” for some days (3-4 days to 1 week). And that includes watching TV, using a computer, reading etc… Therefore, I won’t be online these days (I just HAD to write this post, […]

Today’s news: 14.12.07

Posted by hts | December 14, 2007 .

I thought I’d express my opinion, just like everyone did, about some recent things.
First of all, Movable Type goes fully open source. I’m using wordpress for this site, but this move from Six Apart team, who owns movably Type, should encourage competition. It will be interesting to see what WP’s next move will be.
Then, it […]

What Google Thinks of Reese Whiterspoon

Posted by hts | December 14, 2007 .

If you search on Google for “Reese Whiterspoon”, without quotes, (the actual name of the actress is Reese Witherspoon) you get some strange images at the top of the search results (distorted, alien-like version of the actress).

See for yourself:

According to Google, you may occasionally see small images at the top of your Google search […]

Next Page »