cool tricks in SEX163
He, he, he... couldn't resist after thinking this was a bug and then realizing it's a feature! If you right-click (or control-click) on a function/handler name then SEX will edit the script of the card or stack of the control whose script you're editing that contains that routine! Cool eh? Stacks in use will also be scanned in the next version... Like it or not? cheers Xavier ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
SEX contributions anyone
Hi y'all, Im starting to get a little anxy... Im too rusty in C... Has anyone got a Fast remove duplicate lines script? Best I get is 12ms per line... Any line being a word. So before I install a c compiler and put in 2 weeks to make an external, has anyone got one ready? I know Frederic Rinaldi's StripDup but it's Mac Only... Maybe Fred will share his source... Sometimes, I miss my Mac and HyperCard... This routine is for a good cause, you're best alternative script editor for MC and soon RR... cheers Xavier ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: SEX contributions anyone
Le jeu 04/09/2003 18:17, MisterX a crit : I know Frederic Rinaldi's StripDup but it's Mac Only... Maybe Fred will share his source... I would, for my own, will be really reconnaissant to get from Frederic a port of its HowMany cross-command to the native transcript language ;-) Bests, Pierre cheers Xavier ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: SEX contributions anyone
on 4/9/03 5:17 pm, MisterX wrote Has anyone got a Fast remove duplicate lines script? Best I get is 12ms per line... Any line being a word. If split worked the way I think it should (and still could, quite compatibly - perhaps I'll make in bugzilla a suggestion I made long ago) then doing split/combine would probably do this almost instantaneously. Even without that, I've found Rev/MC's hashed arrays fantastically efficient. Have you tried simply: put empty into aTemp repeat for each line t in tManyLines put true into aTemp[t] end repeat put the keys of aTemp into tFewerLines Of course that will lose the order, but I'd expect it to be very fast. If you want to keep sequence (first appearance) then put empty into tFewerLines put empty into aTemp repeat for each line t in tManyLines if aTemp[t] = empty then put t return after tFewerLines put true into aTemp[t] end if end repeat should work, albeit a bit more slowly. Ben Rubinstein | Email: [EMAIL PROTECTED] Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com| Fax : +44 (0)1273-728866 ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: SEX contributions anyone
here, adapt this... function FilterLines olist,str local thisline,nulist put 1 into thisline put into nulist repeat while thisline 0 set cursor to busy put LineOffset(str,olist) into thisline put line thisline of olist return after nulist delete line 1 to thisline of olist if olist is empty then exit repeat end repeat return nulist end FilterLines just put an add 1 to counthowmany and return that instead of nulist... it's quite fast even with a table with 1 rows... from the XOS Obj Lib -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Pierre Sahores Sent: Thursday, September 04, 2003 18:25 To: [EMAIL PROTECTED] Subject: Re: SEX contributions anyone Le jeu 04/09/2003 18:17, MisterX a crit : I know Frederic Rinaldi's StripDup but it's Mac Only... Maybe Fred will share his source... I would, for my own, will be really reconnaissant to get from Frederic a port of its HowMany cross-command to the native transcript language ;-) Bests, Pierre cheers Xavier ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: SEX contributions anyone
on 4/9/03 6:18 pm, MisterX wrote function FilterLines olist,str local thisline,nulist put 1 into thisline put into nulist repeat while thisline 0 set cursor to busy put LineOffset(str,olist) into thisline put line thisline of olist return after nulist delete line 1 to thisline of olist if olist is empty then exit repeat end repeat return nulist end FilterLines wouldn't it be even faster as function FilterLines olist,str filter olist with (* str *) return olist end FilterLines ?! Ben Rubinstein | Email: [EMAIL PROTECTED] Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com| Fax : +44 (0)1273-728866 ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Using the Rev 2.1 engine
I'm on Mac OS X and ready to use Rev 2.1 with the MC IDE. I copy the Rev app to my MC folder and double-click it - and it unexpectedly quit. What is needed to use the latest engine with the MC IDE? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Message Box placement
Currently the Message Box is opened below and center to the topmost window. Personally, I prefer it to open at the bottom of the display (aboce the Dock/Task Bar). In the next rev of the IDE, would you folks prefer to have it centered to the topstack or at the bottom of the display? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Using the Rev 2.1 engine
On 9/4/03 10:46 PM, Richard Gaskin wrote: I'm on Mac OS X and ready to use Rev 2.1 with the MC IDE. I copy the Rev app to my MC folder and double-click it - and it unexpectedly quit. What is needed to use the latest engine with the MC IDE? Make a copy of the entire OS X MetaCard distribution folder. Then: 1. Control-click the Rev app and choose show package contents from the contextual menu. Open folder: Contents/MacOS/ 2. Control-click the Revolution file in there and choose Copy Revolution from the menu. 3. Open the copy of the MetaCard folder. Control-click the MetaCard app and go into Contents/MacOS/ 4. Delete the MetaCard file 5. Control-click in the empty folder and choose Paste item from the menu. 6. Rename the new copy of Revolution to MetaCard. Close all the folders. Back now in the main MetaCard distribution folder, double-click the new MetaCard app. It should launch, though you'll get a message about a mismatched tools stack. Bring up the message box and type: set the mcversion of stack MetaCard Menu Bar to 2.5.1 save stack MetaCard Menu Bar Resetting the mcversion of the tools stack allows the Help menu to work and avoids the error message when the Home stack opens. That does it for me. Scott Rossi said he couldn't get it to work though. I don't know if he ever solved it. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: SEX contributions anyone
Ben, You're too fast!!! Who needs externals! cheers Xavier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Rubinstein Sent: Thursday, September 04, 2003 19:35 To: [EMAIL PROTECTED] Subject: Re: SEX contributions anyone on 4/9/03 6:18 pm, MisterX wrote function FilterLines olist,str local thisline,nulist put 1 into thisline put into nulist repeat while thisline 0 set cursor to busy put LineOffset(str,olist) into thisline put line thisline of olist return after nulist delete line 1 to thisline of olist if olist is empty then exit repeat end repeat return nulist end FilterLines wouldn't it be even faster as function FilterLines olist,str filter olist with (* str *) return olist end FilterLines ?! Ben Rubinstein | Email: [EMAIL PROTECTED] Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com| Fax : +44 (0)1273-728866 ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: Message Box placement
I'd like it at the bottom of the display, but if the Dock/Task Bar is hidden at the bottom of the screen, the MB needs to be far enough away that a casual slide down the MB won't accidentally activate the Dock/Task Bar. Just my 2 cents, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Gaskin Sent: Thursday, September 04, 2003 11:49 PM To: MetaCard List Subject: Message Box placement Currently the Message Box is opened below and center to the topmost window. Personally, I prefer it to open at the bottom of the display (aboce the Dock/Task Bar). In the next rev of the IDE, would you folks prefer to have it centered to the topstack or at the bottom of the display? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metac ard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Message Box placement
Ken Ray wrote: I'd like it at the bottom of the display, but if the Dock/Task Bar is hidden at the bottom of the screen, the MB needs to be far enough away that a casual slide down the MB won't accidentally activate the Dock/Task Bar. Yes, it would use the windowboundingrect rather than screenrect, which would account for both the Dock and the Task Bar. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Using the Rev 2.1 engine
J. Landman Gay wrote: On 9/4/03 10:46 PM, Richard Gaskin wrote: I'm on Mac OS X and ready to use Rev 2.1 with the MC IDE. I copy the Rev app to my MC folder and double-click it - and it unexpectedly quit. What is needed to use the latest engine with the MC IDE? Make a copy of the entire OS X MetaCard distribution folder. Then: 1. Control-click the Rev app and choose show package contents from the contextual menu. Open folder: Contents/MacOS/ 2. Control-click the Revolution file in there and choose Copy Revolution from the menu. 3. Open the copy of the MetaCard folder. Control-click the MetaCard app and go into Contents/MacOS/ 4. Delete the MetaCard file 5. Control-click in the empty folder and choose Paste item from the menu. 6. Rename the new copy of Revolution to MetaCard. Close all the folders. Back now in the main MetaCard distribution folder, double-click the new MetaCard app. It should launch, though you'll get a message about a mismatched tools stack. Bring up the message box and type: set the mcversion of stack MetaCard Menu Bar to 2.5.1 save stack MetaCard Menu Bar Resetting the mcversion of the tools stack allows the Help menu to work and avoids the error message when the Home stack opens. That does it for me. Scott Rossi said he couldn't get it to work though. I don't know if he ever solved it. It works here. While it's a smart solution, it's a dumb problem, leaving up with a mismatched plist file as well until we dig on and take care of that as well. Why wouldn't the revolution.app simply work renamed as MetaCard? Or better, why should the engine for any platform need to be renamed at all? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard