mbarrick: (Default)
2007-12-15 03:08 pm

RSS from ezboard


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)
2007-07-23 10:03 am
Entry tags:

I was absent, now I am back.


Some of you may have noticed I went unusually long without posting here, wasn't responding to messages on Facebook, mySpace, deviantART, etc. More of you probably noticed it took me unusually long to getting around to posting last week's Sin City pictures.

Pretty much every spare moment I had this past week went into writing a new upload interface for Gothic BC. The old one was slapped together over five years ago and was mediocre in 2002. I've been wanting to do a proper drag-and-drop control for a long time now and the opportunity was ripe since I needed to being the upload control in line with the new design anyway.

I "cheated" to a certain extent and bought a Java control to handle the drag-and-drop ("Hey, look, a wheel. Guess I don't need to reinvent that.") - what sucked up all my time for a week was *doing* something with the files that was better than the old upload. I'm pretty happy with what I've got going (especially a spiffy progress indicator while it builds the editing page). Much like when I first put the new gallery up there are still some problems: if you try to upload more than 75 or so photos in M$IE it takes forever to render the editing page

Nonetheless what I've got going now is as easy to use as Flickr, Facebook etc. which isn't too shabby since my budget is about five million times smaller.

feature list and an annotated screen shot of the editing page )
mbarrick: (Default)
2007-07-13 10:59 pm

This Week's Winning Bit of Stupidity


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)
2007-07-09 09:36 pm

Why I Don't Work Well With Others


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)
2007-03-27 10:12 pm

We should elect politicians this way.

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)
2007-02-05 09:54 pm
Entry tags:

Shape of Things to Come


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)
2007-01-07 03:45 pm
Entry tags:

10,000 Pixels of Glory



I made the above animation and created quite probably the geekiest icon ever from it.

Old-school geeks will understand.
mbarrick: (Default)
2006-11-16 09:30 pm

Pushing the 3-D ASCII Art Thing


Tristan Risk in 3D as ASCII art. <-- Now in colour!

As before no animated GIFs were harmed in the making of this image, it's all plain text animated with CSS and JavaScript (that can't show on LJ directly). Once again, you'll have to follow the link to see this exercise in even more astounding uselessness than last time.

Rendering this should pretty much max out your CPU - this is about as far as I can go with this in this direction.
mbarrick: (Default)
2006-11-13 05:48 pm

Something Different: 3-D ASCII Art


This is so completely pointless I'm at a loss to explain what possessed me to do it, nonetheless, I bring you:

Tristan Risk in 3D as ASCII art.

Note that this is not an animated GIF, this is plain text animated with CSS and JavaScript so I can't show it on LJ directly. You'll have to follow the link to see this exercise in astounding uselessness.

It works best if you sit back and squint a little.
mbarrick: (Default)
2006-09-06 08:01 am
Entry tags:

Life is Funny

So, after two years of looking for work in Australia or New Zealand, now that I've managed to create something that suits my purposes here, what happens? I've just signed on for a remote development gig with an outfit in the Brisbane area.
mbarrick: (Default)
2006-08-06 12:12 am

I've Wanted this for Years


I can't tell you how many times the situation as arisen where I have wanted to find a particular old blog entry to refer someone to and struggled to find it. Typically I'd employ one of three methods to find an old post:
  • making a rough guess at the date and looking through the subject lines for the months near when I think I might have made the post,
  • making a rough guess at the date and looking at the image folders on my server for a picture in the post, then going to the month in the archive and finding the post, or
  • grepping my backup (I run a Perl script nightly that downloads my entries) to find the post.
Grepping is quickest but the results can be so ugly that the other two methods are often more effective. So, today I decided to write a search utility that gives nice, clean results. Finding things in my blog is now a snap. And as it gets bigger (there are already almost 3,000 entries) this will get more useful.

There is also another level of utility to it as well. More than just being a useful tool, it was an exercise in using Perl to pull together elements from my Lotus Domino server, a third-party website, and the file system in a nice, seamless way - which is exactly what I am going to need to do for the leverage the work already done with the [livejournal.com profile] artofadornment store for selling prints. There is a plan, it all fits together eventually.
mbarrick: (Default)
2001-07-25 02:27 pm

I want to go play with my camera

I'm sitting here, repeatedly waiting for program agents to run as I try to pinpoint a glitch that has been a problem since before I started this job. It's a matter of change one tiny thing, run the agent. Change the tiny thing back and change some other tiny thing, run the agent again. Note what changed. Rinse. Repeat. Boring but effective. Of course what I really want to do is go home and play with my new toy. I've got a mountain of artwork that I don't have good pictures of. Not to mention I am way overdur for getting the Sin City pictures up. I've got about two thirds of them ready to post and meant to get the rest up last Saturday but couldn't because my computer was tied up by SlowPatrol.
mbarrick: (Default)
2001-07-17 12:41 pm

Dismal, Dull, and Boring

Blah. I have to write a trouble log for a pilot project here at work. I can't even begin to imagine why there isn't a database for this sort of thing, this is precisely what Lotus Notes was invented for. It used to be called Lotus Support Notes for chrissake. I have a database for this at home. Of course I can't get to it because of the freaking firewall.

"Hi, Michael? Can you jump through these hoops, please? Do you mind if we tie your feet together first?"
mbarrick: (Default)
2001-06-26 11:42 pm
Entry tags:

Oh, man.

What an exciting life I lead. I spent my day in my cubicle writing code for a bank's intranet, then I came home and spent my evening writing code for a credit union's intranet. It is possible to interpret some of what I do as being important... the stuff I've made so far, at the moment, directly impacts or will have an impact on about three million people. How weird is that?

Do you have a bank account with HSBC? I my work affects your life.
Do you have a bank account with NSCU? I my work affects your life.
Are you a smoker in British Columbia or Newfoundland? My work will affect your life.

Yet I don't feel like I've done a blasted thing because it is all completely intangible and none of it means a damn thing to me. I don't like banks. Consumer credit is pure evil. Yet I support this system. I think the government suing the tobacco companies that they tax and regulate is absurd, yet my work supports this legal action (I took up smoking out of guilt).

I'm doing this all to pay off my fine art education and keep my studio space. Does that justify it? Does it matter one way of the other at all? Am I just an idiot for thinking about it too much? I'm groping for some meaning here. But there isn't any. I know that.

I'm just trying to be happy. Sometimes for a few hours here and there that happens. It helps not to have to worry about rent and food. I suppose that is reason enough for now.

I've really got to work this out, though. I can't keep flip-flopping between contentedness and discontent. I don't have any solid goals at the moment and without a goal I have no direction. I'm adrift. I'm getting seasick.
mbarrick: (Default)
2001-05-31 03:56 pm

I am not alone

My immediate supervisor (who is quitting - that's never a good sign) and I were telling a co-worker she should see "Office Space" today. This is it, the experience is universal. Just look at Kim's journal. Different big company, same gripes. At least my cubicle has a view if I stand up and turn around. I suppose I could rearrange my cubicle so that I was facing the window, but then casual passers by would be able to see me typing in my LJ client (I'm still kinda proud of myself for writing this client software. It's hard-coded to my user ID and depends on the fact I have a Lotus Domino development environment at home, so it isn't exactly something I can post on LJ for general consumption, but it works for me).

Just a few more minutes to waste before I can bail for the day and run to the bank to do a little more robbing Peter to pay Paul. This will get better. Only two more impovershed weeks to go. Then I can begin to enjoy the fruits of my misfortune.
mbarrick: (Default)
2001-05-24 04:27 pm
Entry tags:

Of all the days to forget my LJ client

I'm even more bored than usual at the moment. I'm running these brutally
slow routines to update the corporate directory. Apparently this a regular
thing that has to be done every pay period. This is so lame. I have a
nibble for a much more interesting job in Toronto and have my first
telephone interview a week Monday. It's for a digital post-production
company, which would be a little more interesting than a bank. I am hating
banks in general lately. A few minutes ago I ran across the street to cash
a cheque at the Bank of Montreal and they wanted to change me $3 to cash a
$32 cheque - I could cash it cheaper than at a fucking Money Mart! I
protested and the teller waived the fee, but really, should I have to
haggle over a service charge at a major bank as if I were buying melons in
Casablanca?

At least I had some fun last night. There was an opening in one of the
galleries in my building and I went to have a look. I need to do more of
that, start getting out there and maybe get somewhere with my art, if only
to compensate for this lame-ass bank job.
mbarrick: (Default)
2001-05-11 11:48 am

I am not slacking

I'm actually testing a program agent to be used in a mail migration in the background. I've got to keep one eye on it to make sure it is working properly. If it doesn't do what it is supposed to I could end up mangling six thousand people's e-mail.

So the damn Royal Bank nitwits haven't returned my money yet. They said Thurday and it still isn't there. I'm going to get paid before this is fixed. I may as well have screwed my landlord over on purpose and not bother post-dating the cheque.
mbarrick: (Default)
2001-05-10 03:07 pm
Entry tags:

(no subject)

Funny thing about this regular work day stuff: it seems I have a lot less to say. After all who wants to hear about the code I wrote today.
mbarrick: (Default)
2001-05-09 09:24 pm

Yay!!

It works. Now I can happily update my journal throughout the day and then quickly and easily upload my entries at the end of the day from home so there aren't any incriminating entries in the proxy reports. I've got all the features: picture selection, mood selection, even public/friends/private security. Hehe! Such a geek!
mbarrick: (Default)
2001-05-09 09:10 pm

(no subject)

Second test, problem with moods...