Wild monkey love or tender Sarah McLachlan love?

Xander ,'Him'


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


§ ita § - Nov 21, 2002 2:21:32 pm PST #1689 of 10000
Well not canonically, no, but this is transformative fiction.

Hostrocket has told me they can't offer CVS for our purposes. I've replied asking them for what purposes it's usable.


Karl - Nov 21, 2002 2:39:29 pm PST #1690 of 10000
I adore all you motherfuckers so much -- PMM.

I'll be over here, setting something up in case hostrocket doesn't work out. ita, profile addy is good if you need anything from me.


Rob - Nov 21, 2002 2:57:18 pm PST #1691 of 10000

I think we should just go with Karl's machine.


§ ita § - Nov 21, 2002 3:07:26 pm PST #1692 of 10000
Well not canonically, no, but this is transformative fiction.

Karl, yell when you have something set up we can poke, can you?


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.