Following this discussion http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&discussionID=130090944&gid=42193 enlight me on use of static methods and relation with TDD, what I learned so far is that is better to define a collection class implementing a collection interface, which has method that operate on collection of object, if this is the intend of the use of static methods. Example: Interface […]
Category: Software
ZCE: PHP 5.3 Zend Certificated Engineer. The exam: a more extensive report.
First of all, I have to pay some money to take it, so I tried to get information about this exam. I already have a book (ZEND PHP 5 Certification STUDY GUIDE, php|architect series), but certificate I was looking for is for 5.3, so I googled it. This is the more dated document (as far […]
Zend Certification: ZCE PHP 5.3
I just passed Zend Certification exam for PHP 5.3 . It means I have paid Zend, first of all. They gave me a printed paper (phisical paper) with instruction on what I can do. It says I can use Zend Certified Engineer icon found in http://www.zend.com/en/services/certification/zce-logo on my CV and site. This is the one that […]
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) […]
base 64 encode by ebay (ending with **)
I found this and thought it was my bug .. but .. When I get IEASToken in getUser ebay api request it returns a token with == a the end. It is a base64 encoded string, and have ‘=’ sign at end as expected. But when eBay send notification, there are ‘**’ in place of […]
Moving development to the extreme
<p><strong>For sparing time, you end up wasting all time.</strong></p> <p>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 .. […]
Drupal 7: Views, view modes, templates and conditional field formatting
Using drupal 6 I had chosen contemplate module for theming a contenttype, I also thought it was the right thing. But the problem was the need to have another place where to storetheming files, or put it in db, that is a practice I do not like. Also there could be a number of Views […]
Signal page as correct in Google Webmaster Tool (simulate mouse click)
Google webmaster tool signals scanning errors. The is option to signal error a scorrected, but sometime a lot of error is solved at once, but interface do not give option to select it all. Also this trick could be usefull in other service.. I loaded this code in chrome console (developer tool), modified from example […]
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 […]
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 […]