Track link and download clicks in Google Analytics
Three JavaScript files to dynamically track link and download clicks in Google Analytics. Continue reading
Three JavaScript files to dynamically track link and download clicks in Google Analytics. Continue reading
A simple sidebar widget that displays the current weather for a user-defined city. Powered by the OpenWeatherMap API. Continue reading
The CodeIgniter encryption key generator has been updated based on comments to the original post. Continue reading
If you’re using a “clean URL” permalink structure in WordPress and you have physical directories that match any of the URLs, you might be returning a 403 Forbidden response code even if the page render normally. This post shows how to remedy this situation using mod_rewrite. Continue reading
Inspired by WordPress’s secret-key service, I created a CodeIgniter encryption key generator. Navigate to or refresh the page to get a random, 32-character sting that can be used by CodeIgniter’s encryption class. Continue reading
WebKit’s automatic text resizing can break HTML emails when a font size less than 15 pixels is critical. Luckily, there’s an easy fix to this issue. Also, setting inline image elements to display as block-level can avoid the “mysterious gap” that breaks HTML email layouts. Continue reading
How to wrap the X-UA-Compatible meta element with IE conditional comments and still get it to work. Incidentally, this also helps avoid download blocking by conditional comments. Continue reading
How to wrap the X-UA-Compatible meta element with IE conditional comments and still get it to work. Incidentally, this also helps avoid download blocking by conditional comments. Continue reading
Installing PHPUnit with MAMP’s PEAR installer is pretty straightforward, but there are a few things to note. Continue reading
I was asked to sort a table of lease data by floor in descending order today—simple, right? But after updating the query with ORDER BY floor DESC, I noticed the results were wrong. The 9th floor was always at the top and the 10th floor and above were between the second and first floors. Continue reading