Target IE6 and IE7 Browsers without Conditional Comments

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 […]

Git Cheatsheet – setup

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 […]

Recover MySQL root Password

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 […]

Easy Web Fonts with Google Font API

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 […]