fiddle2 monthly archives


Date: 2007-10-23 08:02:21 (Author: trav)
Link: http://travis.kroh.net/archives/004979.php

Happy Mole Day, everyone!

Six-point-oh-two-two times ten to the twenty-third
C'mon and shout it!
You don't have to be a geek or some kind of nerd
to know about it.
It's no mystery,
just a little chemistry.
When you got that many things,
YOU GOT A MOLE!


Date: 2007-10-20 17:36:13 (Author: trav)
Link: http://travis.kroh.net/archives/004978.php

So I get this email:

From: heidy heidy <heidyget@gmail.com>
Hi,
I am interested in purchasing the textlink advertising at some specific pages of http://travis.kroh.net/
let me know if interested so that we can discuss it further. I can make a good offer along with an attractive price in order to make it worth your time.
Let me know!
Regards
Heidy

which goes right to the spam folder. Then I get another one a few days later following up. Persistent, isn't she?
I asked what her pitch was, and got:

From: heidy heidy <heidyget@gmail.com>
Hi
Thanks for your interest!
I am interested in placing small text lines on specific pages of your website. An example of this can been seen at bottom of http://www.picment.com/articles/css/funwithforms/ Featured resources for CSS Web Designers
another example
http://www.smashingmagazine.com/2007/05/10/70-expert-ideas-for-better-css-coding/ below the blog post and above the comments.
The text will be custom written to match the content of the site. The textlinks will go to non spammy and relavent websites. And you've the right to edit the text anytime to make it worth your needs. I'm going to offer you a very attractive price for that. And we'll make it as per your requirement. Waiting for your response.
Regards
HEIDY

I let it go, but got yet another follow-up. So I've decided to bite:

Well, heidy heidy, before this goes anywhere, you're going to have to convince me of the legitimacy of the offer.
- What's the name and website of your firm/company, and why haven't you mentioned it before?
- Where are you located? What is your street address and phone number?
- Why are you doing business from a free, Gmail account?
- How do you solicit new advertisers, and what are they most usually interested in?
- What, specifically, about my site interests your advertisers?
- Specifically, which pages are you interested in?
- Why does a Google search for your username result in a site that's been hijacked to sell Viagra?
Let me know if you're still interested.
-trav


Date: 2007-10-05 21:36:41 (Author: trav)
Link: http://travis.kroh.net/archives/004970.php

Well, turns out the uncaught Google ad exception wasn't due to the inclusion of external Javascript code, it was due to the inclusion of an iframe. Apparently Firefox goes into a tizzy if you try to include anything via document.write instead of using the DOM createElement and appendChild methods. So, here's how you use Google Ads if you wanna serve your pages the way God (and the W3C) means you to (you'd better sit down):
What they want you to do is this: <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Don't do that. That's the script that puts the whammie on you. Instead, you have to include that script directly on the page, so you can edit it and take the nasty bits out. Here's the corrected version:

Then, to actually load an ad, you do something like this: <div id="someUniqueID"> <script type="text/javascript"> //<![CDATA[ loadAd(document.getElementById('someUniqueID')); //]]> </script> </div>

Date: 2007-10-02 11:31:50 (Author: trav)
Link: http://travis.kroh.net/archives/004969.php

Recently, I started serving fiddle2 with a content type of application/xml+xhtml (like you're supposed to), but that apparently broke script.aculo.us (which is what I use to expand the archives link list). Whenever I'd load script.aculo.us, Firefox would throw an exception:

Error: uncaught exception: [Exception... "Object cannot be created in this context" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "http://kroh.net/js/scriptaculous.js Line: 30"]

A little searching turned up a page that suggests replacing lines 28-31 of scriptaculous.js require: function(libraryName) { // inserting via DOM fails in Safari 2.0, so brute force approach document.write('<script type="text/javascript" src="'+libraryName+'"></script>'); }, with a block that handles the exception and includes the script via the DOM: require: function(libraryName) { try { script_tag = document.createElement('script'); script_tag.type = 'text/javascript'; script_tag.src = libraryName; head = document.getElementsByTagName("head")[0]; head.appendChild(script_tag); } catch(e) { // inserting via DOM fails in Safari 2.0, so brute force approach document.write('<script type="text/javascript" src="'+libraryName+'"></script>'); } } Now I have to find out why Google's ad script throws it. Working around that should be lots of fun.
Update: Indeed it was. I had to re-write part of the included Javascript.

Date: 2007-10-02 08:03:06 (Author: trav)
Link: http://travis.kroh.net/archives/004968.php

I learned, upon request of a co-worker to help with an installation, that MT 4 is out of beta. Since my database is pretty big I used the command line script to upgrade it, and was amused at the result: $ perl ./tools/upgrade upgrade -- A command line tool for upgrading the schema for Movable Type. * Upgrading database from version 4.0022. * Upgrading table for Job Exit Status records... * Upgrading table for User records... * Upgrading table for Job Function records... * Upgrading table for Job Error records... * Upgrading table for Job records... * Creating new template: 'Comment Response'. * Removing unused template maps... * Classifying entry records... * Classifying entry records... (100%) * Classifying category records... * Classifying category records... (100%) * Populating default file template for templatemaps... * Populating default file template for templatemaps... (100%) * Merging comment system templates... * Merging comment system templates... (100%) * Assigning user authentication type... * Assigning user authentication type... (100%) * Database has been upgraded to version 4.0026. Upgrade complete! Segmentation fault $_ I always like my scripts to tidy up with a good ol' fashioned seg fault, too.

Date: 2007-10-01 21:59:51 (Author: trav)
Link: http://travis.kroh.net/archives/004967.php

We're recording a new episode of GeekMuse tonight after a three-month hiatus! There are a lot of podcasts that fizzle out after a while--after the novelty wears off. We've been up and running for over a year now, and I think some of our listeners might have written us off after not seeing an update for so long, but we really were just on a temporary break, and we're going to have a new episode up soon. I've really missed it.

 

[ home - archives - quoteboard - blogger decoder - wishlist ]

Creative Commons License This work is licensed under a Creative Commons License.