headphono.us

Avatar

Pras Sarkar blogs about web technology, music, social networks, digital identities and other random things.

Firebug console bug/erratic behavior

This bug happens quite often and is very hard to pin down. It usually manifests itself as some piece of functionality in your app not working until you open the Firebug console window. If you're using console.log anywhere in your code-base, this error occurs since the Firebug console window isn't defined unless it is open and usable. Luckily, the fix is quite easy. Just surround your console.log() with a ...

We need smarter “real-time” search engines

There was an interesting article in the Guardian recently highlighting a study that claims that users mostly ignore "real-time" search results in Google. If you're not familiar with the real time results, it's those search results from twitter, facebook, etc. right at the very top before the web results. The article goes on to say that it might be due to the fact that not much information is contained ...

A neat trick to expose PHP objects’ private properties

If you've ever needed to write up a PHPUnit test that requires you to check the value of a private property, you can try accessing the private member variables like so: Or PHP 5.3+ using Reflections: Great tip from Derick Rethans.

,

My Lifestream

My shenanigans around the web