We'd be dead. Can't get paid if you're dead.

Mal ,'Serenity'


Buffistas Building a Better Board  

Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.

To-do list


John H - Nov 21, 2002 4:10:06 pm PST #1693 of 10000

they can't offer CVS for our purposes

I think in this case that "for your purposes" is just one of those meaningless strings that businesses add to the end of sentences so they won't just say "No.".

In other news, the last approach to parsing HTML, where I processed all end tags against start tags, is fatally flawed, as it will pass this:

</i><i>

as perfectly good code, what with the matching and the cancelling and the flavin.

Order is important. So, here's the new theory. We count all troublesome starting tags, and if there's a matching end-tag for them, we delete both. That won't find really curly problems but it will at least make a cursory inspection and identify unclosed tags.

Is it just me, or does that seem too easy? It would find unclosed table tags and unmatched TD tags.


Rob - Nov 21, 2002 4:24:21 pm PST #1694 of 10000

Is it just me, or does that seem too easy?

It seems like it will have the same problem you're having now.

I think we need to process the tags in order, so we have to figure out how iteratate over all the tags in order in PHP. If we can do that, the current algorithm will work fine.


§ ita § - Nov 21, 2002 4:27:20 pm PST #1695 of 10000
Well not canonically, no, but this is transformative fiction.

we have to figure out how iteratate over all the tags in order in PHP

Like

foreach ($taglist as $tag) {
    dojohnhmagic();
}
or has my skimming impaired my understanding of where we are right now?


Rob - Nov 21, 2002 4:30:09 pm PST #1696 of 10000

Hmm, actually, if we can change the regex to collect both open and close tags, and if they are returned in the order they appear in the text, ita's suggestion is right on the nose.


John H - Nov 21, 2002 4:41:50 pm PST #1697 of 10000

if we can change the regex to collect both open and close tags, and if they are returned in the order they appear in the text

You mean that wasn't implicit in my post above, which doesn't mention the idea at all?

I certainly thought it...


Rob - Nov 21, 2002 4:49:14 pm PST #1698 of 10000

I must have missed it. I think I've got an excess of blood in my caffeine system. I'll go fix that now.


Jon B. - Nov 21, 2002 11:37:42 pm PST #1699 of 10000
A turkey in every toilet -- only in America!

Speaking of open tags....

Rebecca Lizard had a tagline that was too long and got automatically cropped. Unfortunately, the crop occurred after an t i but before the t /i

This meant that everything underneath her tag --- i.e. her post and all the posts beneath it, were in italics.

I edited her tag and got rid of the t i


Rebecca Lizard - Nov 21, 2002 11:51:52 pm PST #1700 of 10000
You sip / say it's your crazy / straw say it's you're crazy / as you bicycle your soul / with beauty in your basket

Oh. Stupid me. I didn't even check to see if the tag had been cropped, after I changed it.

I need to go to bed.


§ ita § - Nov 22, 2002 12:03:45 am PST #1701 of 10000
Well not canonically, no, but this is transformative fiction.

Whatever happened to character counting in Word?


Noumenon - Nov 22, 2002 2:32:19 am PST #1702 of 10000
No other candidate is asking the hard questions, like "Did geophysicists assassinate Jim Henson?" or "Why is there hydrogen in America's water supply?" --defective yeti

Busted!!!