Author Archive
Automatic MySQL databases backup with unix
Hello folks, of course you manage a lot of nasty DBMS and of course you have no time to care about backup-ing them all manually.
Here i come with a simple yet nice .sh script for all the seasons to use under any (i suppose) unix system.
Autosetting website mobile initial zoom with mobileAutoZoom.js
This is a little tweak I felt like sharing.
mobileAutoZoom auto-set the “initial-zoom” in the “viewport” meta as much as it’s necessary to display your template.
It replaces the meta “viewport” according to the window.innerWidth / layout_width
division The result is the optimal zoom level.
jQuery scrollTop not working on Mobile Devices (iPhone, iPad, Android Phones)
Today is a nasty day, the day when we discovered that our beloved $(selector).scrollTop(), a child method of $(selector).animate(), is not working properly on mobile devices.
On mobiles the javascript call simply blink on the top of the page, making our boss disappointed.
To tell you the truth it’s not your fault and this is why…
Symfony2 Doctrine – Catchable Fatal Error: Object of class XYZ could not be converted to string in Doctrine\DBAL\Statement.php line 131
Hello folks,
While developing a Symfony2 Web App you will face a lot of uncommon errors, due to your fault, but even if the error description is often effective, there are times where it’s not enough and even if you manage to get things working, it’s always a better pratice to understand why shit happens.
Today we’re talking about this error:
Catchable Fatal Error: Object of class Bundle\Entity\YourEntity could not be converted to string in \www\symfony\vendor\doctrine-dbal\lib\Doctrine\DBAL\Statement.php line 131
Every Symfony developer have seen it before, the solution is quite easy, you could easily find it on StackOverflow…
GIT error: The following untracked working tree files would be overwritten…
Hey guys, it’s been a while. This is a common error while GITtin’ a lot without being too careful, or perhaps having issues with caches and other dynamic stuffs.
So here’s the fix for this nasty error, quick and easy:
Github Starting Guide for Total Newbies
Hello folks, this week i’ll write a straight and easy guide for young programmers who needs to learn Git and need to do it fast!
Your typical scenario is probably like this:
Welcome to your new workplace, hi! i am your senior, me and your coworkers use Git as revision service, i am sure you know all about it, right?
Don’t worry, it’s fine, take a deep breath and ask for a Coffee Break. Then sneak in the bathroom and read this guide. Quick, do it!
Online Password Manager and similar stuff
Editor’s note: this post has become obsolete and the service is up no more. Sorry 🙂
Hello folks, i’ve been busy for a while. I’ll introduce a typical concern common between any kind of internet user:
If i’m going to die tomorrow, who will inherit all my web accounts and how they’ll know where to get my passwords?
Ok i’m joking, but i’m an airhead and it means i often forget my passwords, only gmail helps me but i feel one day i’ll need something more reliable than a paper note or some old mail records. So here’s my solution:
Dumb -br clear:”both”- is no moar!
As you know in these days HTML markup validation is becoming a common pratice. W3C offers his tool ( The W3C Markup Validator ) and it’s really useful to find obsolte code from old HTML revisions like the famous
<br clear="both"/>
Oh my br, i loved you a lot in past years, but it’s time to DIE! Nowadays it’s better to use
overflow: hidden;
to reset floating stuff.
Thank you W3C and goodbye BRCLEAR. You served the web well.
How to remove that useless dotted outline
We all hate that stupid dotted outline on hyperlinks. Here’s the sugar:
a,a:active,a:focus{ outline: none; outline-style: none; }
..and it’s gone :O