Re: CF Tips... was CF smart

2005-09-30 Thread Wayne Putterill
How about just requiring the subject to begin with TIP, any replies would have Re: at the beginning and would be ignored. Doesn't help with updates though. On 9/29/05, Michael Dinowitz [EMAIL PROTECTED] wrote: Requiring them to be on their own line might be nice, but when writing this I have to

CF Tips... was CF smart

2005-09-29 Thread Emmet McGovern
We need a Wiki or something to start compiling all the nifty solutions here. Is anyone on the Evolt.org list? They have a nice self building tips library by posters who just surround things with tip/tip. It would be interesting to build a cflist parser that throws something like this into an rss

Re: CF Tips... was CF smart

2005-09-29 Thread Michael Dinowitz
So you just want a text parser to look for a start and end 'tip' tag and treat whatever is in it as a tip to be loaded into a tip DB? I can do that. Let me see how easy it is. If your on the test list, you'll start seeing the code in place there. We need a Wiki or something to start compiling

RE: CF Tips... was CF smart

2005-09-29 Thread Emmet McGovern
, September 29, 2005 1:16 PM To: CF-Talk Subject: Re: CF Tips... was CF smart So you just want a text parser to look for a start and end 'tip' tag and treat whatever is in it as a tip to be loaded into a tip DB? I can do that. Let me see how easy it is. If your on the test list, you'll start seeing

Re: CF Tips... was CF smart

2005-09-29 Thread Claude Schneegans
They have a nice self building tips library by posters who just surround things with tip/tip. It would be interesting to build a cflist parser that throws something like this into an rss feed. Check CF_REextract that can do this pretty easily:

Re: CF Tips... was CF smart

2005-09-29 Thread Michael Dinowitz
: Thursday, September 29, 2005 1:16 PM To: CF-Talk Subject: Re: CF Tips... was CF smart So you just want a text parser to look for a start and end 'tip' tag and treat whatever is in it as a tip to be loaded into a tip DB? I can do that. Let me see how easy it is. If your on the test list

Re: CF Tips... was CF smart

2005-09-29 Thread Michael Dinowitz
I used: CFSET sTip=REFindNoCase('tip(.+?)/tip', body, 1, 1) CFIF ArrayLen(sTip.pos) GT 1 CFSET Tip=mid(body, sTip.pos[2], sTip.Len[2]) /CFIF They have a nice self building tips library by posters who just surround things with tip/tip. It would be interesting to build a cflist parser that

RE: CF Tips... was CF smart

2005-09-29 Thread Emmet McGovern
Nice job. Now will this eventually be moved into its own feed? Emmet -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 1:57 PM To: CF-Talk Subject: Re: CF Tips... was CF smart I used: CFSET sTip=REFindNoCase('tip(.+?)/tip', body, 1

Re: CF Tips... was CF smart

2005-09-29 Thread Michael Dinowitz
OK, the code works well and will seperate a single tip from a message. I'm still playing to deal with a quoted tip, but that should not be much of a problem either. ~| Logware (www.logware.us): a new and convenient web-based

Re: CF Tips... was CF smart

2005-09-29 Thread Michael Dinowitz
To: CF-Talk Subject: Re: CF Tips... was CF smart I used: CFSET sTip=REFindNoCase('tip(.+?)/tip', body, 1, 1) CFIF ArrayLen(sTip.pos) GT 1 CFSET Tip=mid(body, sTip.pos[2], sTip.Len[2]) /CFIF They have a nice self building tips library by posters who just surround things with tip/tip

RE: CF Tips... was CF smart

2005-09-29 Thread Emmet McGovern
Must have caught you on a slow day. :) -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 2:15 PM To: CF-Talk Subject: Re: CF Tips... was CF smart OK, the code works well and will seperate a single tip from a message. I'm still

RE: CF Tips... was CF smart

2005-09-29 Thread Emmet McGovern
: CF Tips... was CF smart Once some side issues are dealt with, I'll have all of the tips loaded into its own table and then into its own feed. The side issues include multiple tips per post, commented tips, duplicate tips, etc. A possible solution is to remove, comment or alter the tip container

Re: CF Tips... was CF smart

2005-09-29 Thread Barney Boisvert
How about requiring that tip and /tip be on lines by themselves? Or at least that tip has to be at the beginning on a line. Then you wouldn't have to worry about commented tips, and you probably should ignore them anyway, because the original message would have gotten the tip parsed out already.

Re: CF Tips... was CF smart

2005-09-29 Thread Michael Dinowitz
live. Must have caught you on a slow day. :) -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Thursday, September 29, 2005 2:15 PM To: CF-Talk Subject: Re: CF Tips... was CF smart OK, the code works well and will seperate a single tip from a message. I'm

Re: CF Tips... was CF smart

2005-09-29 Thread Michael Dinowitz
I have to think of every situation. Can't have a 'bad' tip messing up the list processing. :) I might have jumped the gun. I started posting every idiot thing I could think of to break it. I didn't try replying to a post with a tip though.

RE: CF Tips... was CF smart

2005-09-29 Thread Andy Matthews
PM To: CF-Talk Subject: Re: CF Tips... was CF smart How about requiring that tip and /tip be on lines by themselves? Or at least that tip has to be at the beginning on a line. Then you wouldn't have to worry about commented tips, and you probably should ignore them anyway, because the original

Re: CF Tips... was CF smart

2005-09-29 Thread Michael Dinowitz
Requiring them to be on their own line might be nice, but when writing this I have to assume that something will get in the way and people will be upset that their tip was 'missed'. As for a rewrite to add in the DB id of the tip, that's a possibility but involves stronger 'coupling' with the