So you're doing a bulk import into your MySQL database, knowing that your primary key values are unique. Yet, MySQL throws the Duplicate Key message…
Play button on video thumbnails
Here’s a quick method to add a play button to video thumbnails. This is useful when you generate dynamic thumbnails for videos, or grab them…
Vertically center a div with jQuery
$('.vcenter').each(function() { $(this).css('margin-top', (parseInt($(this).parent().css('height')) – parseInt($(this).css('height'))) / 2); });
Browser won’t read dynamic css file
Occasionally you find the need throw some dynamic information into your CSS file. This usually entails giving your CSS file an extension that will force…
AJAX calls being cached
I spent a couple hours this morning trying to figure out why Internet Explorer was return the same result from an AJAX request which returns…
cfimage resizing issues
If you are using the ColdFusion image resize tag to size down images, you may occasionally run into an error during resizing. Although your web…
Page specific CSS
One major decision when it comes to performance optimizing your site is how to merge your CSS files, if at all. Let's say that you…
JavaScript For loop vs. jQuery $.each function
Comparing jQuery each function vs. javascript for loop for iterating through a large array. We're assuming that the jQuery method would be measurably slower, as…
Accept fractions in place of numeric input
If there's one thing your competitor probably isn't doing, when it comes to online tools, it's accepting fractions for numeric input. For instance, if you…
Clever way to style radio input labels?
I've you haven't guessed by reading my other posts, I'm a huge fan of extremely minimal markup. It's just plain easier to update. I have…