PHP: Add Google Analytics to an entire static HTML website with PHP

June 14, 2010

I am in a situation where I need analytics data and none is provided. The entire 35k+ file website is all static HTML running on a Windows IIS server. I am not familiar enough with Windows Server to know what sort of scripting capabilities there are, but I do have PHP available. I wrote a

Javascript: Forward user to new page

June 6, 2010

I often find myself needing to forward a user through Javascript for various reasons. Here are a couple quick snippets of Javascript to accomplish that task. This one is supposed to block the Back button from tracking the change window.location.replace(“http://example.com”); window.location = “http://www.example.com”;

jQuery: Detect enter key

June 6, 2010

Sometimes it is nice to be able to detect when the user has pressed the enter. This is great for super custom forms and Javascript games. Or maybe a totally custom built app that is waiting for the user to hit enter for some reason. But how to detect the enter key? Luckily jQuery once

New Website Launch: Leon Powers

June 4, 2010

Leon Powers commissioned me to build a website for his publishing entity Look-About-Books and his Boy Scout pseudonym Doc Hawk. It came together pretty well. Take a look and order his new book while you are there. Visit Leon Powers Website

Finally Back on Linux in the office with Wubi

June 3, 2010

All of the Web Development office computers at Northwest Nazarene University are managed by IT and contain a Windows XP image that is parceled out over the network. I do not particularly enjoy working on a Windows machine and today I ran across the Wubi project again. It allows a user to install Ubuntu Linux