Some Terms: Registry Pattern, object hash

I would talk about a pattern whose name I fail to know before, giving it the name of multi-singleton. Registry pattern I read about it in PHP 5 certification study guide from php|architect’s series. This is the example given: class Registry { private static $_register; public static function add(&$item, $name = null) { if (is_object($item) […]

Read More…

Moving development to the extreme

For sparing time, you end up wasting all time. A colleague, when first time talked my about XP (more than 10 years ago), said something like “It’s wonderfull. You are much quicker. You know it? Beautifull: you write tests, and then …”, and me “tests?!?”, “yes, then the system continue to work along time .. […]

Read More…

How to hide image to the visitor right click

Well, I found this hack in http://coollogo.net/cool_logo_70/ a good resource for social icon. Given you want to show image.jpg, just put a transparent image in a div tag with the background-image: url(‘image.jpg’) this way: Ok, then you can use jQuery Context Menu to show your context menu, anyway, even if javascript is disabled the standard […]

Read More…

Why not to use remove link

This is my experience: I have to rewrite administration page where there is remove button (in a form) with only javascript confirm. I thought: “no one had problem with no limitation in the past, why they should now? I’ll use a link with javascript confirm. It happened I have a dashboard page where is listed […]

Read More…

Google Chrome no-cache and Login throw oauth services

I found this very annoying, it seem chrome optimization make it not works things like “login via facebook” or “login via twitter” button with this browser and make it wait forever. I implemented oauth support for http://www.cellularmagazine.it/recensioni/inserisci.php and had a similar problem: Expires setted to access plus 10 minute (via .htaccess , this happen to […]

Read More…

php goodies: filter

Filter is in php by default from 5.2.0 and is a usefull library for web developer, so it is the time to make use of it. It was created for validation and sanitization of foreign input, that is GET, POST, COOKIE, or anything that you can’t trust on. With php filter one can tests if […]

Read More…

wwwsqldesigner short review

Install Download from http://code.google.com/p/wwwsqldesigner/ Very easy installation: you need a webserver running, unpack wwwsqldesigner it in a folder, setup your virtual host (I use personal domain for my pc), all done! Use There is a small tool bar to the right, very simple and intuitive to use, it is grouped in 4 areas: Save/load Table […]

Read More…