Classic ASP and Server.GetLastError in IIS7

My classic ASP error logging scripts were dead in the water when I moved them to a Windows Server 2008 with IIS 7.0. Some code like this is useful to record errors in a database: dim objErrorInfo, errorStringStr set objErrorInfo = Server.GetLastError errorStringStr = objErrorInfo.File & “, line: ” & objErrorInfo.Line & “, error: “… Continue reading Classic ASP and Server.GetLastError in IIS7

I made a Keyword Multiplier

While revamping a PPC advertising account last week, I discovered the lack of a convenient keyword multiplier. I am sure there is some fancy pants way of combining keyword lists in a spreadsheet application, but I find no fun in writing macros for some piece of software. I installed the Google Adwords desktop editor because… Continue reading I made a Keyword Multiplier

Published
Categorized as Tools

Disguise Email Addresses for online publishing

Disguise your email address or any text with this character obfuscation. This code corey@example.com will show up on a web page as [email protected] You can share your email address without worrying that it will be collected by a spam bot. Enter some plain text Obfuscate Some losers send spam email for a living, and will… Continue reading Disguise Email Addresses for online publishing

Hide posts from WP home page

Hiding posts from showing up on the home page is something I have been thinking about all week. Last night I finally dug into the WP Codex and figured out how to make it happen. Hide WordPress posts from appearing on your home page by adding their post IDs to the following array (where you… Continue reading Hide posts from WP home page

Published
Categorized as WordPress

How to Block Java user-agents

A variety of user-agents that begin with “Java” are likely visiting your website. Visits providing this type of user-agent are programs created in Java by developers who did not choose to change the default user-agent string value. Here is a list of the Java user-agents I have encountered: Java/1.4.1_04 Java/1.5.0_02 Java/1.5.0_06 Java/1.5.0_14 Java/1.6.0_02 Java/1.6.0_03 Java/1.6.0_04… Continue reading How to Block Java user-agents