Re:C function in metaTalk?
C function in metaTalk? * From: eric . allen . engle * Subject: C function in metaTalk? * Date: Thu, 13 Mar 2003 05:09:52 -0800 I'm trying to translate the following C functions into hypertalk. If done properly they take as input a string, say ABC and then permutate it into a a b a b c b b c c UGLY C*** Hi again Eric, Or this one if you like less lines : local theResult on mouseUp put abracadabra(fld "orig") into fld "result" end mouseUp function abracadabra x if x <> "" then repeat with i = 1 to the length of x put char 1 to i of x & cr after r end repeat put r after theResult get abracadabra(char 2 to -1 of x) else return char 1 to -2 of theResult end abracadabra Have a nice night now, WA ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: MetaCard Web Browser
Hi Eric, the attachments have reached me offlist and I will add them to our samples on our ftp-server along with your browser. You ([EMAIL PROTECTED]) wrote on Thu, 13 Mar 2003: > Actually the browser -does- display images and > hyperlinks work as well. However metaCard displays > those images in the same space as a single character, > e.g. "a word X another word X" where X represents a > picture (of arbitrary size), i.e. the image is a part > of a styled text field. > > The other nice thing is that the hyperlinks work. You > -can- click on a link and (well, unless your subjected > to some vagary of a CGI) go to a new page. I *think* > php is supported in the protocol. > (snip) Unfortunately I do not get any images here (Windows 98 SE) and the hyperlinks in the text do not work either. I tried to access a number of different websites, among them www.metacard.com and www.runrev.com. I will check whether the situation is different with Windows 2000, XP, and MacOS 10.2.4, but all I get here is text, and even that does not work for specific web sites - the text of our own website (http://www.uni-kassel.de) - as I already mentioned - cannot be displayed in your browser and it cannot be displayed with htmltext in other Metacard stacks. Regards, Wilhelm Sanke ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Radical slowdown on one system
jbv wrote: >> When I run the WebMerge tutorial here on the slowest machine I have (Win 95, >> 300MHz), it generates the tutoprial pages in 3.9 seconds. I have a >> customer running Win98 on a 1.7GHz maxchine and the same files take 4 >> minutes to process.(!) >> > > Does your customer have things like Kazaa installed > on his hard drive ? > One guy in our company recently experiencied major > slow down under XP and Photoshop, and spent the > whole day trying to figure out what had changed in > his settings, and it was only Kazaa users accessing > some files on his HD... It only gets weirder than that, but thankfully with a happy ending: he just emailed me to tell me he did a re-install of my app and now hismachine is outperforming mine as I woud expect. So while he's happy with MC's performance, it raises a quesion: what could have made the difference? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.2: Publish any database on any 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: Radical slowdown on one system
>> When I run the WebMerge tutorial here on the slowest machine I have (Win 95, >> 300MHz), it generates the tutoprial pages in 3.9 seconds. I have a >> customer running Win98 on a 1.7GHz maxchine and the same files take 4 >> minutes to process.(!) >> > > Does your customer have things like Kazaa installed > on his hard drive ? > One guy in our company recently experiencied major > slow down under XP and Photoshop, and spent the > whole day trying to figure out what had changed in > his settings, and it was only Kazaa users accessing > some files on his HD... Here's another great one... You may notice that Flash playback in your Web browser is dramatically slower when Adobe products (Photoshop, GoLive, etc) are running concurrently. Close the apps and Flash runs faster. (Personally, I find it hard to believe this is just a coincidence and secretly theorize that Macromedia designed this behavior as a non-verbal response to Adobe's litigious attitude toward Macromedia.) jbv may be right in suggesting that the presence of another app, possibly a filesharing package, may be the cause. Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Radical slowdown on one system
Richard, > When I run the WebMerge tutorial here on the slowest machine I have (Win 95, > 300MHz), it generates the tutoprial pages in 3.9 seconds. I have a > customer running Win98 on a 1.7GHz maxchine and the same files take 4 > minutes to process.(!) > Does your customer have things like Kazaa installed on his hard drive ? One guy in our company recently experiencied major slow down under XP and Photoshop, and spent the whole day trying to figure out what had changed in his settings, and it was only Kazaa users accessing some files on his HD... JB ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Re:C function in metaTalk?
Salut, Je suis content d'avoir une solution. Très mécontente de n'avoir pas trouvé moi même... Une solution itérative j'ai trouvé... mais la récursion ca fait tourner ma tête... I'm happy to have a solution though I wish I found it myself. I got to an iterative solution, but have yet to figure out how to turn my iterative solution into a recursive solution. What I really find galling is that the recursive solution looks so damned easy - _after someone gives it too you... I did figure out that the C function I provided does not return abc ab bc ac a b c but rather abc bca cba etc... Thanks again! Merci encore! My Home Page with free online legal information Page perso avec liens juridiques http://www.lexnet.bravepages.com/ind.htm _ FindLaw - Free Case Law, Jobs, Library, Community http://www.FindLaw.com Get your FREE @JUSTICE.COM email! http://mail.Justice.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re:C function in metaTalk?
C function in metaTalk? * From: eric . allen . engle * Subject: C function in metaTalk? * Date: Thu, 13 Mar 2003 05:09:52 -0800 I'm trying to translate the following C functions into hypertalk. If done properly they take as input a string, say ABC and then permutate it into a a b a b c b b c c UGLY C*** Hi Eric, Something like this? : local theResult on mouseUp put "" into theResult put abra(fld "orig") into fld "result" end mouseUp function abra x if x <> "" then put char 2 to -1 of x into y repeat until x = "" put cr & x before theCollector delete char -1 of x end repeat put theCollector after theResult get abra(y) else return char 2 to -1 of theResult end abra Have a nice evening, WA ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Radical slowdown on one system
Ken Ray wrote: >> Of the many folks using my MC-base WebMerge product over the >> last two years, I've never had a support case like this one, >> and am hoping some of you may be able to offer some insight: >> >> When I run the WebMerge tutorial here on the slowest machine >> I have (Win 95, >> 300MHz), it generates the tutoprial pages in 3.9 seconds. I have a >> customer running Win98 on a 1.7GHz maxchine and the same >> files take 4 minutes to process.(!) >> >> Most of what WebMerge does is parsing and concatenating text, >> and of course creating files. Not particularly >> atom-splitting stuff, and I've never seen a performance >> disparity even close to this. >> >> I've verified that we're using the same fles, have the same >> version of WebMerge (using the MC 2.4.2 engine), and in all >> other respects his system is far superior to the one I've >> been testing on. >> >> Any clues? > > Memory? I know that this can cause major slowdowns if there's not enough > RAM. No: he has at least twice as much RAM as me. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.2: Publish any database on any 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: Radical slowdown on one system
Memory? I know that this can cause major slowdowns if there's not enough RAM. 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: Friday, March 14, 2003 1:17 PM > To: MetaCard List > Subject: Radical slowdown on one system > > > Of the many folks using my MC-base WebMerge product over the > last two years, I've never had a support case like this one, > and am hoping some of you may be able to offer some insight: > > When I run the WebMerge tutorial here on the slowest machine > I have (Win 95, > 300MHz), it generates the tutoprial pages in 3.9 seconds. I have a > customer running Win98 on a 1.7GHz maxchine and the same > files take 4 minutes to process.(!) > > Most of what WebMerge does is parsing and concatenating text, > and of course creating files. Not particularly > atom-splitting stuff, and I've never seen a performance > disparity even close to this. > > I've verified that we're using the same fles, have the same > version of WebMerge (using the MC 2.4.2 engine), and in all > other respects his system is far superior to the one I've > been testing on. > > Any clues? > > -- > Richard Gaskin > Fourth World Media Corporation > Developer of WebMerge 2.2: Publish any database on any 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
Radical slowdown on one system
Of the many folks using my MC-base WebMerge product over the last two years, I've never had a support case like this one, and am hoping some of you may be able to offer some insight: When I run the WebMerge tutorial here on the slowest machine I have (Win 95, 300MHz), it generates the tutoprial pages in 3.9 seconds. I have a customer running Win98 on a 1.7GHz maxchine and the same files take 4 minutes to process.(!) Most of what WebMerge does is parsing and concatenating text, and of course creating files. Not particularly atom-splitting stuff, and I've never seen a performance disparity even close to this. I've verified that we're using the same fles, have the same version of WebMerge (using the MC 2.4.2 engine), and in all other respects his system is far superior to the one I've been testing on. Any clues? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.2: Publish any database on any 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: Checking drives (was Re: Disk serial numbers)
Boy, that's weird, Richard... I have both a CD-ROM and CD/RW (two separate drives) in the "D:" and "E:" positions, and I don't get the XP error dialog coming up when I do a shell(). I'm wondering why *you* get one... I'm running XP with Service Pack 1... perhaps that's part of the key? 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: Friday, March 14, 2003 2:17 AM > To: [EMAIL PROTECTED] > Subject: Checking drives (was Re: Disk serial numbers) > > > Ken Ray wrote: > > > Hey, Richard! You have something there... if you do a shell > to switch > > to a drive (like "D:") and there's no media in the drive, > it's return > > "The device not ready." under XP, and it DOESN'T throw up a > dialog box > > in your face! > > Not so fast: I'm finding mixed results with "shell()" > > Here's a matrix of results: > > Drive typeFunction call result > --- > Hard disk partition shell("C:") no err > > Hard disk partition shell("D:") no err > > Memory stick shell("E:") XP err dialog > > DVD drive shell("F:") no err > > CD-ROM drive shell("G:") XP err dialog > > Removable memory card shell("I:") XP err dialog > > > Questions: > > 1. Is there a way to query a drive that doesn't require > low-level calls to the API in XP that won't throw an error > requiring user interaction? > > 2. Am I correct in assuming that this will affect thousands > of applications and an uncountable number of DOS batch > scripts worldwide? > > 3. Is Microsoft familiar with the term "backwardly compatible"? > > > -- > Richard Gaskin > Fourth World Media Corporation > Developer of WebMerge 2.2: Publish any database on any 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: Checking drives (was Re: Disk serial numbers)
3. Is Microsoft familiar with the term "backwardly compatible"? -- Richard Gaskin Oh Richard, I needed a good laugh this morning! :-) -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: Using Windows DLLs
Larry, Damn great! im on it tomorrow! Xavier > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 17:24 > To: [EMAIL PROTECTED] > Subject: RE: Using Windows DLLs > > > > Subject: Using Windows DLLs > > > Hello scripters, > > > > After pounding the web and mailists to find "HOW TO" use > > DLL's, and finding > > where to put them in MC, it seems there is no way to handle > > Windows DLLs as > > provided by the WINNT OS. Im wondering if anyone has had any success > > building a NTtoMCdllbridge.dll or how else to do this? FYI, using > > SHELL+Rundll32 doesn't return info so it's useless. > > > > With MC+Shell+reskit on NT, after a few hundred calls coming from MC > > shell(), user32.dll returns errors for each call (cacls or > > rmtshare for > > example) and then just cannot be used again without having a > > pop-up error > > complaining - I can't reboot the server every hour either... > > > > Naturally, this only happens on MC, never elsewhere ( i.e. > > *.cmd batch - > > even 20 simultaneous batches dont do this...)... If someone has a > > solution/reason for this... Possibly handles not being > > released by MC though > > they are not visible in servermanager... > > > > Im interested in calling c:\winnt\system32\user32.dll > > directly from MC in > > winnt4 sp6... This would also avoid Shell slow-speed problems. > > > > Thanks to anyone who can answer this! > > > > Cheers > > Xavier > > >From my experience you can't call Windows DLL functions directly. > > I believe the only way to do it is to write your own DLL in C/C++ that > serves as an interface between your MC app and the various > Windows API calls > (which are located in the DLL files). Your DLL would take data > from your MC > app and make the calls to your desired Windows API functions in a standard > C/C++ style. Your DLL would then pass data back to your MC app either via > parameters or even MC objects. You would put _your_ DLL into the folder > with your MC app. Leave the Windows DLL's where they are. > > Take a look at the samples provided with MC. My MC app called my own DLL > which in turn did the actual Windows API calls. When you use the > API calls > in C/C++ you don't really care which DLL is needed - Windows and your > compiler takes care of that. This is a very fast method and there are no > command windows popping up to handle. > > I hope this helps. > > Larry Huisingh > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard > ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Checking drives (was Re: Disk serial numbers)
Ken Ray wrote: > Hey, Richard! You have something there... if you do a shell to switch to > a drive (like "D:") and there's no media in the drive, it's return "The > device not ready." under XP, and it DOESN'T throw up a dialog box in > your face! Not so fast: I'm finding mixed results with "shell()" Here's a matrix of results: Drive typeFunction call result --- Hard disk partition shell("C:") no err Hard disk partition shell("D:") no err Memory stick shell("E:") XP err dialog DVD drive shell("F:") no err CD-ROM drive shell("G:") XP err dialog Removable memory card shell("I:") XP err dialog Questions: 1. Is there a way to query a drive that doesn't require low-level calls to the API in XP that won't throw an error requiring user interaction? 2. Am I correct in assuming that this will affect thousands of applications and an uncountable number of DOS batch scripts worldwide? 3. Is Microsoft familiar with the term "backwardly compatible"? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge 2.2: Publish any database on any 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