Re: Digest metacard.v004.n161
How do you transfer XCMDs from a HyperCard stack to a MetaCard stack mike 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], not this list.
Basic Maths
Type this in the message box... put 5.45 - 1 = 4.45 TRUE put 5.45 - 2 = 3.45 TRUE put 5.45 - 3 = 2.45 TRUE but... put 5.45 - 4 = 1.45 FALSE Huh? This is not helping my sanity, nor writing a finance checking routine that answers false instead of true! Any answers out there? /H Hugh Senior The Flexible Learning Company Consultant Programming Software Solutions Fax/Voice: +44 (0)1483.27 87 27 Email: [EMAIL PROTECTED] Web: www.flexibleLearning.com 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], not this list.
RE: Announcing MetaCard 2.3.2 for Darwin/Mac OS X
OK, I don't understand how you would do that. I'm only learining at this stage. Primarily how does Apache communicate with your long running process or do the clients communicate directly. This seems like a good plan saving mc to just handle cgi. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Pierre Sahores Sent: Sunday, 28 January 2001 1:36 AM To: [EMAIL PROTECTED] Subject: Re: Announcing MetaCard 2.3.2 for Darwin/Mac OS X Monte Goulding a crit : Hi I've been reading the latest thread and some old archives about CGI in MC and I have a quick question. It seems to me that it is being suggested that the best, quickest and easiest way to run sripts with MCHTTPd is to use the stacks-bin and thus not startUp a new process. Ok, about this. This may be a stipid question but what happens if there are two clients wanting the same thing at the same time? As it's the same process wouldn't MCHTTPd need to wait untill the last script is finnished before it can do anything? This is the central point. It's to avoid this kind of problems, nor to have to do with cgi sort running processes (unable to update and read inside big vars, waiting in ram for the next queries, as stored in a long running console or x-display .mc stack or standalone process) that i use personnaly not MCHTTPd but only mc-based web/vpn applications servers, running beside Apache (unixes, Linux for yet), leeting the httpd manage the requests queue jobs. -- snip -- Regards, Pierre Sahores WEB VPN applications and databases servers Inspection acadmique de la Seine-Saint-Denis Penser la part du rve et produire l'avantage 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], not this list. 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], not this list.
Re: statistics
--- [EMAIL PROTECTED] wrote: I want to determine the correlation (relationship) between 2 groups ie. lines of data in 2 separate fields. - Can you describe your goal in statistical (or better yet) mathematical terms? Michael Kann, [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ 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], not this list.
Re: Basic Maths
Hugh Senior wrote: Type this in the message box... put 5.45 - 1 = 4.45 TRUE put 5.45 - 2 = 3.45 TRUE put 5.45 - 3 = 2.45 TRUE but... put 5.45 - 4 = 1.45 FALSE Huh? This is not helping my sanity, nor writing a finance checking routine that answers false instead of true! Any answers out there? On the surface, it appears to me that this is an interesting example of how roundoff errors in computer calculations can cause programming headaches if your logic is testing for absolute equality. As a further test, I did the subtractions Hugh did, and then went on to substract the supposed difference, which logically ought to produce 0. The tests worked out this way: put (5.45 - 1) - 4.45 = 0 TRUE put (5.45 - 2) - 3.45 = 0 TRUE put (5.45 - 3) - 2.45 = 0 TRUE put (5.45 - 4) - 1.45 = 0 FALSE These results are consistent with Hugh's. Now focussing on the last case, let us test this differece which ought to be equal to zero but which the computer says is not zero to see how small the computer agrees that it is in absolute value. These were my results with MetaCard: put abs((5.45 - 4) - 1.45) 0.0001 FALSE put abs((5.45 - 4) - 1.45) 0.001 TRUE Thus, it appears that the roundoff error that occurs when substracting 4 from 5.45, and then further subtracting 1.45 from that is in the 16th decimal place. The moral of the story is to never build logic into numberical programs that relies on recognizing precise equality of two floating point numbers. You can count on precision, however, with integer arithmetic, provided you do not get so large as to produce overflow errors. For example, if we multiply Hugh's example by 100 to get all the numbers being integers, MetaCard says: put 545 - 400 = 145 TRUE Pardon me if this may be more detailed than some readers of this list may care to see. It's the math prof in me. Since this is my first post, let me introduce myself. I am a professor of mathematics at Northern Michigan University. I am interested in MetaCard because it is allowing me to upgrade and make more broadly available some permutation puzzles that I developed in HyperCard for use in teaching one of my courses some years ago. I ported them over to MetaCard over a year ago, and did some improvements on them at the time. Now I am doing a more intensive upgrade. I have found reading this list to be very helpful over the past year that I have been getting it. Now that I am getting more into working with MetaCard, you may hear from me with questions from time to time. Don't look for answers from here that have to do with the hard core computer programming, however. I am a reluctant programmer, doing it only when I have a project that wouldn't get done otherwise. John Kiltinen John Kiltinen ([EMAIL PROTECTED])Home Office Professor, Dept. of Math. CS Tel.(906) 228-8035 or (906) 227-1600 Northern Michigan University Fax (906) 228-4667 or (906) 2272010 Marquette, MI 49855 USA 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], not this list.