Fixing redirect to Open DNS search page

When accidentally starting up your browser before your network interface is up, since I use OpenDNS, I end up with a situation like this: http://cl.ly/image/381×351p2q1u There is no link in the OpenDNS search results page that helps you reload the page you were trying to load. Hence I wrote this little snippet of JS to be saved as a bookmarklet to take me out of the situation: javascript:function(){window.location.href = “http://” + decodeURIComponent(window.location.href.split(“url=”)[1].split(’&ref=’)[0])}();

Switching to Disqus

I got fed up with comment cleaning this blog.
I was tempted to close all comments, but I preferred to keep the chance open to engage a conversation activating Disqus.
I’ll see how it works.

Symfony2 and FOSUserBundle: goodbye sfGuardUserPlugin

Lately I have been working closely with FOSUserBundle in order to get my productivity tool DoItAgain launched soon. The documentation shipping with the bundle is just enough to get your hands dirty and see some action. I have been struggling with some concepts integration points, but the fault is not of the bundle, but mine as I am still at the beginning of the Symfony2 learning curve.

PHP miniframeworks: do we really need them?

PHP microframework are the buzz word of the moment. I saw the trend grow in the Ruby and Python world with projects such as Sinatra or web.py (the latest being a lightweight framework to be precise). Honestly I still don’t understand all this interest. I reckon they might be interesting as toys suitable for playing around and testing little features.

Handling big data sets from MySQL with PHP: mysql_unbuffered_query

It’s good to know that mysql_query fetches and buffers the result rows in memory. This can cause memory exhausted problems, prematurely ended scripts and so on and so forth.

How I realized I have a Gmail addiction (which not even Sparrow can cure *yet*)

I bought Sparrow: I was curious and the new Mac App Store made it terribly easy and fast.

Ubuntu image won't reboot if running on t1.micro Amazon EC2

Due to a now resolved bug, if you start/stop or reboot an pre-2010-09-09 official ubuntu image running on t1.micro Amazon instance, you would end up with a ec2-brick.
That is, the system would hang on reboot and you would be stuck out of your image with no luck.
The problem was caused by /etc/fstab referring to a partition that is usually available on all other instance types, but not in t1.micro.
These are the steps to follow to fix the problem:

Save 60 EUR for a DrupalCon Copenaghen 2010 ticket!

IT IS SOLD NOW!

If you are thinking to attend the super cool DrupalCon Copenaghen 2010 (23rd/27th Aug) don’t miss the chance to buy a ticket at a very discounted price.
Email me at drupalcon@flevour.net and we’ll handle the details together!

Puntare un dominio .it da Tophost a Dreamhost? Non perdere tempo, cambia registrar :)

Ho recentemente registrato un dominio .it su Tophost.it allettato dal basso costo di registrazione. Non c’ho pensato troppo sù, tanto ho pensato “Cosa può andare storto con la gestione di un dominio?”.

Facebook Share button and that little annoying behaviour with zero counts

The new Facebook Share button is very cool and offers a new insightful information about your posts: the share count.
Alas, when no one has yet shared your post, the count balloon disappears in thin air. This give you layout headaches, because the widget doesn’t fill a fixed area in the page.
jQuery to the rescue! I wrote this simple code to fix the problem and show a neat “0” count beside the post. Thought I’d share for someone out there in need :)

Pages

Subscribe to flevour unplugged RSS