We're growing into something new. Read More



Code Gone Wrong - The secret lines of code

A collection of code comments. Humorous and pointless.


Git vs. Subversion

I've been using subversion for all my projects. What's so good about git?

<FilesMatch "\.(htaccess|svn|xml|inc|.*sql|cache_|.*~)$">
    deny from all

What does your .htaccess file look like?

I wanted to know what other people's .htaccess file look like. Here's a snippet that I include to remove certain files from view. Any other helpful ones?

$("#email").focus(function() {
    if ($(this).val() == $(this).attr('rel'))
$("#email").blur(function() {
    if ($(this).val() == '')

Simple jQuery on input fields to remove text upon user focus

<input type='text' id='email' value='Enter your Email' rel='Enter your Email' /> The content will contain "Enter your Email". But when the user enters the field, it will clear out the value... and vise versa.