Archive for September, 2008

Joining in on the commentary

Thursday, September 25th, 2008

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 [...]

RecordSet to CSV in VBScript

Tuesday, September 23rd, 2008

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.

Minify 2.1 on mrclay.org

Friday, September 19th, 2008

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.

flock() blocking reads

Friday, September 12th, 2008

(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 [...]

Javascript humor

Wednesday, September 10th, 2008

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 full
refund –>

uTag: like snurl, but crappy!

Tuesday, September 9th, 2008

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 [...]

Case of the NS_ERROR_DOM_SECURITY_ERR

Saturday, September 6th, 2008

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 CSS [...]