Bondo

Jan. 15th, 2008 09:50 pm
mbarrick: (Default)

Experienced used-car shoppers know to look for rusty areas repaired with Bondo and painted over. The car may look great but is really rotten and rusting to pieces. I've seen unscrupulous sellers do things like mix iron filings into the Bondo to subvert buyers checking with a magnet. I've even seen a rust hole patched with an ingeniously superficial application of duct-tape, Bondo and paint.

I am very glad my new job starts tomorrow, because the freelance web work I am doing has descended to the web equivalent of painting over duct-tape and Bondo. Beyond the shiny new paint, the vehicles are spectacularly decrepit. I wish I could say this is a unique problem with a particular client, but it is, in fact, epidemic and the unifying theme of just about all the work I have done for the past three years. 

I'm done with clients who point to $50,000 websites and say "I want that, but I only have $500." You don't get a brand new car for $500. For $500 you get duct-tape and Bondo. I'm done with duct-tape and Bondo.
mbarrick: (Default)

I've been working on a project for the last while that has, as one aspect, an RSS aggregator to bring together news from a bunch of different related website - nothing earth-shaking there. Problem is one of the sources I want to aggregate is an ezboard forum. The fact that ezboard doesn't have RSS feeds, however, put a bit of a damper on that.

A bit of Google searching made it quite clear that I was not the first person to want to do this, and while I am all for not reinventing the wheel when possible pretty much all I could find were lots of "ZOMG!!1!! I needs RSS from ezboard. PLZ spoon feed me!" forum posts and very little of actual use. In reply to these there were a couple of links to a dead service at http://www.mikeshea.net with the requisite "is gone OHNOES!!1!" replies. Eventually I found a post where someone rather usefully posted a link to the source on Mike Shea's site and I gave it a try.

While there was some wonderful Perl-y goodness to the script, particularly it's ability to deal with a whole bunch of other bulletin board services, the RSS generated was, to put it mildly, badly formed - the worst part for my application was a lack of pubDate tags so the items wouldn't slot in chronologically with the other feeds in my aggregator. Running the script also added about 20 lines of warnings in the error log every time it was executed. The script was all at once overkill and not very useful to me. But not completely useless. I retained the caching and some of the ezboard-specific screen scraping when I rewrote it, so credit where credit is due.

My script is entirely single-purpose, unlike Mike Shea's script it only works with ezboard forums, that's the downside. The upside is what it returns
  1. is the right content type ('text/xml')
  2. includes a lastBuildDate
  3. includes a pubDate for each item
  4. includes sticky threads, yet still sorts the thread items in the correct descending order by date/time, and, of course
  5. runs without warnings or errors

How to use:

For the cache you'll need a subdirectory under the location of the script that is writable by your http server process.

The script expects three parameters:
  1. title - arbitrary text describing the feed. This is what is going to end up inside the <title> tag of the RSS feed. Don't forget to URL encode the string.
  2. url - the full URL to the forum you want to make a feed from, URL encoded, of course, and
  3. description - arbitrary text  describing the feed, this will end up inside the <description> tag.
Example:

http://yourservername/andpath/ezrss.pl?title=Arbitrary+Title+for+Feed&url=http%3A%2F%2Fpxxx.ezboard.com%2Fmyforumpath&description=Arbitrary+Description+of+the+Specific+Forum

Source code: ezrss.txt
mbarrick: (Default)

I had a "lead developer" telling me that their application wouldn't work in a frame because if the address bar wasn't visible in the browser the application wouldn't work because it couldn't "see" the parameters in the URL. He meant "see" literally.

In a way I almost envy the guy. He lives in a magical world where servers have mysterious powers to visually read off URLs from the browsers address bar. That must be why MSIE shows the URL in pop-up windows even if the address bar is disabled (and you can have one guess what platform and technology this magician works with).

I asked him to explain how the GET request changes if the address bar isn't there. He said, "I don't want to argue with you."

The worst thing is the developer in question (or questionable developer, as the case may be) has lied to my client and I'm afraid he has convinced them that it was my fault and my only defence, sadly, it trying to give a technical explanation to someone is not in the least technically inclined.

I keep running into this scenario and I feel like I am defending evolution in Tennessee. It is depressing.
mbarrick: (Default)

I was told this in all seriousness last Thursday:
I don't think it matters that our site doesn't look good in Firefox. I've looked at other big sites that don't look good in Firefox and we're no worse. Is it even possible to make a site that looks good in all browsers? I don't think it is.
All I could do was rub my neck and say, "No, actually it is."

*sigh*
mbarrick: (Default)
Where N is the set of responses in the range -5 to -1 (one to five stars) and P is the set of responses in the range 1 to 5 (six to ten stars).

This is the formula I settled on for computing the rankings for the picture votes in the Gothic BC photo gallery. See how it kind of looks like a smiley face? Surely this will make everyone happy.
mbarrick: (Default)

One of the reasons I keep sinking time into Gothic BC is because I can use it as a sandbox. It's a good sized site with a lot of users (more traffic and users than most of the sites I am currently being paid to work on) where I am not hampered by corporate inertia. When inspiration strikes I can act on it.

In this case the inspiration was the Slide.com stuff I was looking at yesterday and Flickr. So, for those that might be interested, here is a sneak preview of where I'll be taking the gallery.

The 20,000' view of the technology here is this: the current Lotus Domino photo gallery is linked to a MySQL database by DECS and MyODBC, from there on it is run-of-the mill LAMP stuff. When it is done, and if time permits, the gory details of the Domino=>DECS=>MySQL=>PHP integration in my highly neglected and fantastically boring programming blog.
mbarrick: (Default)
By now you have probably seen the Bush Arrested for War Crimes hoax page. The world-cnn.com page is registered to one "Phineas Liu" of New York - who doesn't exist. The fictional Dr. Phineas Liu has a weblog as part of the "RYU Hospital: Dwayne Medical Center" website. The Dwayne Medical Center, "synonymous with the world's most innovative and extraordinary healthcare," features "All the Miracles of Modern Medicine™" including genetically customized babies, male pregnancy, and a mouse as smart as  human (Mr. Frisby? Brain?), and is actually a work of "web art" belonging to Virgil Wong.

Now, even more interesting after all those layers of deception, is the fact that the fake CNN site is, in fact based on truth. Lawyers Against the War, based right here in Vancouver, actually filed torture charges against George W. Bush under Canadian Criminal Code exactly as mentioned Virgil Wong's art in B.C. Provincial Court on the 30th of November. The charges were accepted by a Justice of the Peace and the court date will be set on Monday the 6th for a hearing to determine if a warrant of summons will be issued. The Attorney General of Canada has to determine if the proceedings will continue and the question of whether Bush's diplomatic immunity will apply has to be determined. This is real and you can read the press releases and the detail of the case via the link above.

And now back to Virgil Wong... I did a great deal of digging and checking of references from his artist's résumé before becoming convinced that he is a real person. Kind of a weird way to spend the evening, but it got my mind completely off work, which is a good thing.

Syndicate

RSS Atom
Page generated Jan. 26th, 2026 12:09 pm
Powered by Dreamwidth Studios