Wednesday, April 01, 2009 - Posts

Wednesday, April 01, 2009
via @fractalnavel: in the last twenty-four hours:
  • 2009.04.01 17:09: anti-moron wednesday - because monday is already past :
  • 2009.04.01 17:11: spring is in the air - and so are broken-english tech questioners who haven't a clue
  • 2009.04.01 17:11: time to spam the forums & boards with http://www.catb.org/~esr/faqs/smart-questions.html again
  • 2009.04.01 17:12: interestingly, there's a version at ms: http://support.microsoft.com/kb/555375
  • 2009.04.01 17:13: also, there are the types who will nickle and dime you in public spaces when instead they should be paying for the help
  • 2009.04.01 17:16: my guess is that there's a combination of effects: over-aggressive layoffs taking out necessary talent...
  • 2009.04.01 17:17: ... combined with a spate of new projects trying to automate & save costs
  • 2009.04.01 17:22: moving on ...
  • 2009.04.01 17:23: .. lots of cool new stuff in ie8, including good developer support - but the damn thing crashes quite a bit
  • 2009.04.01 17:24: (i can hear the laughs already)
  • 2009.04.01 17:24: funny, though - i just never click the "send to microsoft" button when it does
  • 2009.04.01 17:35: is google "too big to fail" ?
  • 2009.04.01 19:27: stupid computer tricks: i ran one drive down to under 10mb - windows starts screaming like a worm under your heel (huh?)
  • 2009.04.02 00:01: @craigg75
    I swear it looks like "Happy your baby is not ugly"
    rotflmao - come on, admit it - it was you !
  • 2009.04.02 03:06: life on mars finale: sure, it was a dream sequence, still worked out kina cool
  • 2009.04.02 03:09: the cognitive jump reminded me slighlty of the end of the dune series
  • 2009.04.02 03:10: now, if only we could have gotten some resolution to charlie jade
  • 2009.04.02 03:11: eh, been giving up on tv, movies anyway, preparatory to the analog shutdown
  • 2009.04.02 03:12: just deleted all of bsg season 3, unwatched
(pulled direct from twitter via custom job)
Posted by fractalnavel at 11:30 PM | with no comments

finally figured out why a certain site was trying to load adobe reader all the time

so for the last couple of years (yep, years) there’s been this oddity about a customer’s website that wasn’t very serious, but was one of those eye scrunching, eyebrow raising sort of things.  the first report of something flaky was a design consultant who was alarmed: “did you know that your website is trying to load flash and adobe reader every time i visit?” she warned.  i was like, funny, but i never see that.  basically, we ignored them; they weren’t very good at their jobs anyway.

but sometime later, i noticed the site started wanting to load adobe reader (just the runtime, not the gui) on every visit to every page (if it wasn’t already loaded).  but not in every environment, just in some of them, and just in ie.  i figured, whatever, maybe the designer gave us some funky images, most of the work was crap anyway.  again, it was just a shoulder shrug, not a big deal, no one else even seemed to notice anything.

this has continued to occur ever since, and i was always a bit curious.  then today i decided to poke into it a bit closer.  the new installation of ie8 is more locked down than how i normally run (which is still far more restricted than most people), so up pops the “do you want to run this add-in?” bar when i visit the site, instead of just loading adobe reader in the background.  and hey – it was some new information !  it was trying to load adobe svg viewer.  but only on machines that had it installed.  this new bit of info motivated me to look closer.  turns out this is an obsolete plug-in, only likely to be around on older systems, or – ha! – designers’ desktops, due to their frequent use of adobe tools.  pretty badly behaved too, to have a plug in need to load something as clunky as adobe reader.

so what was causing it to try to load ?  poking around with fiddler & the ie dev toobar, i couldn’t spot anything in particular about the headers (whoever installed office server extensions on that server needs to be - something), the html, the css, the images (for a moment there, i even suspected the favicon), the scripts – nothing.  or so i thought…

finally, disabling the scripts stopped the add-in request.  huh.  stepping through, i found the following: it’s an old awstats script, the one that’s supposed to track miscellaneous browser capabilities – and which had never worked anyway.  it’s been there all along. 

what was it doing ?  ugly stuff:

if (TRKie && TRKwin) {
    TRKshk = awstats_detectIE("SWCtl.SWCtl.1");
    TRKsvg = awstats_detectIE("Adobe.SVGCtl");
    TRKfla = awstats_detectIE("ShockwaveFlash.ShockwaveFlash.1");
    TRKrp  = awstats_detectIE("rmocx.RealPlayer G2 Control.1");
    TRKmov = awstats_detectIE("Quicktime.Quicktime");
    TRKwma = awstats_detectIE("wmplayer.ocx");
    TRKpdf = 'n'; TRKpdfver='';
    if (awstats_detectIE("PDF.PdfCtrl.1") == 'y') { TRKpdf = 'y'; TRKpdfver='4'; } // Acrobat 4
    if (awstats_detectIE('PDF.PdfCtrl.5') == 'y') { TRKpdf = 'y'; TRKpdfver='5'; } // Acrobat 5
    if (awstats_detectIE('PDF.PdfCtrl.6') == 'y') { TRKpdf = 'y'; TRKpdfver='6'; } // Acrobat 6
    if (awstats_detectIE('AcroPDF.PDF.1') == 'y') { TRKpdf = 'y'; TRKpdfver='7'; } // Acrobat 7
}

and

function awstats_detectIE(TRKClassID) {
    TRKresult = false;  // !!! Adding var in front of TRKresult break detection !!!
    document.write('<SCR' + 'IPT LANGUAGE="VBScript">\n on error resume next \n TRKresult = IsObject(CreateObject("' + TRKClassID + '")) \n </SCR' + 'IPT>\n');
    if (TRKresult) return 'y';
    else return 'n';
}

good lord, it’s testing for plug-ins by attempting to instantiate them !  and with vbscript, no less !

oh fer… mystery solved.

and shame on awstats.

so, need to just scrap that script.  and personally, i’m uninstalling that plug-in wherever i find it.  have to use add/remove programs for that.

there’s a lesson or two here.  hard to say what they are.  one of the reasons to do good work is so that people listen to you when you notice a problem.  but this was one of those oddball now you see it, now you don’t sort of issues, tough to nail down.

well, guess what ?  NAILED.

:-p

update 2009.04.02:

i was wondering if merely removing that svg plugin would solve the adobe reader load - not sure why it seemed to, since the code says it won't - and it doesn't - sometimes.  i could have sworn ...  i guess there's more complexity to that than i thought.  like having old adobe artifacts on the system or something, because on a cleaner box, only the presence or absence of the svg plug-in seems to make a difference.  odd, since the reader progid (AcroPDF.PDF) hasn't changed for a while.  maybe it's just a difference in the behavior of the adobe plug-in itself.  anyway, bottom line: that's an undesirable feature sniffing technique.  and i should never have used something i didn't look closely at.  but then - what about things like google anaalytics ?  no easy answers.

Posted by fractalnavel at 7:49 PM | 3 comment(s)
Filed under: ,
ie8 installation annoyance: a "malicious software" checker ?

this is uncalled for:

ie8_install

if i wanted to check for malicious software, i wouldn't be installing ie - i'd be running a
"malicious software checker".  and it's not even optional.

seriously, are they trying to discourage people from using their stuff, or what ?

Posted by fractalnavel at 4:18 PM | with no comments
Filed under: ,