Need to target IE browsers? Here is a quick hack that doesn’t require conditional comments (note that your CSS will therefore not pass auto-validation, which is fine if you are aware of why it doesn’t). The code below will change the background-color of divs depending on what browser the user is viewing the web page […]
It can come when we least expect it, when we are happily playing our favourite game and diligently working on the report due tomorrow. Then, all of a sudden, when we are just right about to save our progress, the blue demon appears, stares at you straight in the face and tells you that some […]
Setup git clone <repo> clone the repository specified by <repo> ; this is similar to “checkout” in some other version control systems such as Subversion and CVS Add colors to your ~/.gitconfig file: [color] ui = auto [color “branch”] current = yellow reverse local = yellow remote = green [color “diff”] meta = yellow bold […]
You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. # sudo /etc/init.d/mysql stop Step # 2: Start the MySQL (mysqld) server/daemon process with the –skip-grant-tables option so that it will not prompt for password. # sudo mysqld_safe –skip-grant-tables & Step # 3: Connect to […]
Somebody forwarded this to me today, thought it was funny as well as thought-provoking about the political situation in India now.
Web fonts allow you to step outside of the normal web-safe fonts by taking advantage of CSS’s @font-face rule. However, right now, browsers aren’t uniform in its implementation of @font-face. More specifically, web browsers differ in the types of font files they support (hopefully this will change with the WOFF standards). Additionally, you must be […]