Re: RFC: Optimizing stripDup()

2001-10-26 Thread LiangTyan Fui
On 10/27/01 2:34 AM, Jacqueline Landman Gay wrote: > Geoff Canyon wrote: >> >> Maybe something like: >> > > Geoff's is faster than mine. I never thought to use arrays. Pretty impressive. Yup, the winner is Geoff. Thanks! Now, where should I post this script to? Do we have an organised xTalk l

Re: finding system folder on Mac

2001-10-26 Thread Leston Drake
Geoff pointed me to the External collection from RunRev, since I'm still using 2.3. I guess in 2.4 you can use the specialFolderPath function. At 01:10 PM 10/26/2001, you wrote: >Does anyone know how to identify the System (or better yet, the >Preferences) folder on a Mac? I understand this is

Re: ask dialog customization?

2001-10-26 Thread Leston Drake
Thanks Klaus. I was hoping someone knew of an undocumented feature lying around somewhere ;-). Eugen, sorry I wasn't clear. I mistakenly used "answer" in my example, which was confusing. --Leston >From: Klaus <[EMAIL PROTECTED]> >Subject: Re: ask dialog customization? >Date: Thu, 25 Oct 2001

finding system folder on Mac

2001-10-26 Thread Leston Drake
Does anyone know how to identify the System (or better yet, the Preferences) folder on a Mac? I understand this is the place to store app-specific data on the Mac, but how does one identify it (since they can be renamed)? TIA, Leston Archives: http://www.mail-archive.com/metacard@lists.runre

Re: RFC: Optimizing stripDup()

2001-10-26 Thread Jacqueline Landman Gay
LiangTyan Fui wrote: > > Here is a function that I've written quite some time ago. It takes a list of > text theList, separated by theitemDel, remove duplicate items in the list, > and returns a new list without duplicate items. > Unfortunately, this function running rather slowly on a large list

Re: RFC: Optimizing stripDup()

2001-10-26 Thread Jacqueline Landman Gay
Geoff Canyon wrote: > > Maybe something like: > Geoff's is faster than mine. I never thought to use arrays. Pretty impressive. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com Archives: http://www.mail-archive.com/met

Re: RFC: Optimizing stripDup()

2001-10-26 Thread Geoff Canyon
Maybe something like: function stripDup theList,theitemDel # verify param if theList= "" then return "" if theitemDel = "" then put cr into theitemDel # set the itemDelimiter to char 1 of theitemDel put empty into tResultList repeat for each item tItem in theList if tItemLis

Re: RFC: Optimizing stripDup()

2001-10-26 Thread Yennie
I don't know if this is the optimal solution, but there *is* a way you could use sort to speed things up: first number the items, then sort them by their initial value, remove dups, then sort again by their number. Finally, strip the numbers. Not the simplest, but it should be faster for large

RFC: Optimizing stripDup()

2001-10-26 Thread LiangTyan Fui
Here is a function that I've written quite some time ago. It takes a list of text theList, separated by theitemDel, remove duplicate items in the list, and returns a new list without duplicate items. Unfortunately, this function running rather slowly on a large list (a few thousands records) - tha

Re: mc and cgi

2001-10-26 Thread Klaus
Hi Nicolas, > Klaus Major asked: > >> the number of hits per second that MC can handle. > > Now how does one figure _that_ out... actually i wrote that post to get some ANSWERS and not new questions ;-) I do not need an accurate number but an estimation will do. Something like: more than 100

Re: lineOffset / wholeMatches

2001-10-26 Thread Ken Ray
Nicolas, When "wholeMatches" is used with wordOffset, itemOffset or lineOffset, there has to be a match of the *whole chunk*. That is, if you set the wholeMatches to true and then do a 'lineOffset', the *entire line* must match your search string. Here is an approach to solve your problem: -- A

read from stdin / $REQUEST_METHOD is "POST"

2001-10-26 Thread Nicolas Cueto
Hello, How could I limit the amount of data/chars receivable via stdin/POST in an .mt (cgi) script? I'd like to prevent something bad happening unintentionally or maliciously to the server. Or is this a server-engine issue? Thank you. Nicolas R Cueto Archives: http://www.mail-archive.com/me

Re: lineOffset / wholeMatches

2001-10-26 Thread Nicolas Cueto
Eugen Helbling advised: > VARIATION (1) --- > put lineOffset(tab & tWord & tab, tField1) It worked! Thank you. Nicolas R Cueto Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EM

Re: mc and cgi

2001-10-26 Thread Nicolas Cueto
Klaus Major asked: > the number of hits per second that MC can handle. Now how does one figure _that_ out... Nicolas R Cueto Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, no

Re: Subject: Re: clickline()

2001-10-26 Thread eugen helbling
Mark Luetzelschwab wrote: > > Subject: Re: clickline() > >hi all, > >got a "problem" with clickline() on mc2.4 > > > >i have a text field in a stack consisting of 3 lines. > > > >I feel this field with > >put " 1 " & cr "-" & cr into fld X > >by clicking with the mouse (

Re: lineOffset / wholeMatches

2001-10-26 Thread eugen helbling
NR Kweto wrote: > > Hello, > > Perhaps I misunderstand lineOffset and its behaviour when wholeMatches is > set to true... The aim of the word-search algorithm I'm trying to script is > to match words in one list to those in another. Actually, it's the line > number that I'm after, and I want onl

Re: lineOffset / wholeMatches

2001-10-26 Thread Klaus
Hi Nicolas, here are my 4 pfennige :-) (in january that amount will equal to about 2 cents. The EURO is coming !!!) 100 pfennige make one deutsch-mark) (Where the hell is that coming from: my 2 cents ? Do do not get very far with 2 cents today, anyway...) Looks like this is more a semantic issu

mc and cgi

2001-10-26 Thread Klaus
Hi lovely folks on this lovely list, i know there are many of you out there, that use MC as a cgi-app. Can you please supply some info about the performance of MC as a cgi-app ? I mean: the OS you use, the hardware and, of cource, the number of hits per second that MC can handle. All infos wi