Posts from: September 2008

25 Sep 2008

Joining in on the commentary

I think we’re very lucky that both presidential candidates have the potential to bring more intelligence to the position, and that the excitement seems to be getting more of us paying attention to what our elected officials are doing for (and against) us. I’ve certainly never been more interested in a presidential race, and access

[...read the post]
23 Sep 2008

RecordSet to CSV in VBScript

While I’m in a temporary hell maintaining some VBScript, I thought I’d should share this. RecordSet’s GetString method is inadequate for properly quoting CSV, so I had to write this.

[...read the post]
19 Sep 2008

Minify 2.1 on mrclay.org

A new release of Minify is finally out, and among several new features is the “min” application that makes 2.1 a snap to integrate into most sites. This post walks through the installation of Minify 2.1 on this site.

[...read the post]
12 Sep 2008

flock() blocking reads

(Sigh.) After applying recent upgrades to our Red Hat 5 server at work, suddenly PHP file locking blocks the script execution for exactly 30 seconds! Both a shared reading lock (LOCK_SH) and exclusive writing lock (LOCK_EX) do this. This was, shall we say, unpleasant to diagnose. Since we use Cache_Lite (which locks by default) to

[...read the post]
10 Sep 2008

Javascript humor

hasthelargehadroncolliderdestroyedtheworldyet.com has a news feed. It also has this in the source: if (!(typeof worldHasEnded == “undefined”)) { document.write(“YUP.”); } else { document.write(“NOPE.”); } Folks without Javascript get a more definite answer: <noscript>NOPE.</noscript> Also appreciated: <!– if the lhc actually destroys the earth & this page isn’t yet updated please email mike@frantic.org to receive a

[...read the post]
9 Sep 2008

uTag: like snurl, but crappy!

A SitePoint blogger recently wrote about uTag. Like my favorite, snurl, it’s one of many make-a-shorter-link URL redirect services, but with a 90′s twist! When you click on these, instead of getting a page, you get a frameset with ads on top, broken addressbar usability, and, if you know how uTag works, the warm fuzzies

[...read the post]
6 Sep 2008

Case of the NS_ERROR_DOM_SECURITY_ERR

Working on a bookmarklet, I ran across “security errors” in Firefox and Opera (may happen in others, I didn’t check). In Firefox the code threw “Security error (NS_ERROR_DOM_SECURITY_ERR)” and in Opera it was something similarly vague. The culprit code was trying to access the cssRules property of a style sheet from a different domain (my

[...read the post]