slow CGI with open socket
OK list, here is a problem that I have no answer for the last 2 days. I am working on Linux based MetaCard CGI, everything went smoothly by far except when I was trying to use "open socket". When a "open socket" command is used, the script took unreadably longer time to exit, even without any problem. I've tried to run the script under Apache as CGI and directly from the shell, both yield the same result. You may cut the following script and save it as your .mt file in your server to tryout. Remember to modify the first line of the script to your real MC runtime engine. Thanks. script start - #!/home/mc/mc on startup # any local http server will do, if you have one put "www.yahoo.com:80" into thesock put the long ticks into startTicks open socket thesock close socket thesock put the long ticks - startTicks into ticksTaken put "Content-Type: text/plain"& crlf & crlf put "Ticks taken for this CGI to excute: "& ticksTaken end startup script end - ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Multiple Platform Release info
Well, you can use the specialFolderPath() function to get the Temp directory (but that is prone to be cleaned up), or you can write to the Windows directory. Keep in mind that from a Windows perspective, this is "bad form", as very few applications keep their data in files. (BTW - why do you need to keep your preference data in a file?) put specialFolderPath("system") into myWindowsDir (BTW: There is a System and a System 32 directory on Win32 systems... why is the parameter to get the Windows directory for specialFolderPath called "system"? Shouldn't it be called "windows"?) Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web site: http://www.sonsothunder.com/ - Original Message - From: "Shari" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 24, 2002 8:13 PM Subject: Re: Multiple Platform Release info > >The Windows equivalent of the Preferences folder is the Registry. It is a > >single file that holds all the preference settings for all programs on the > >PC. You can use 'setRegistry' and 'queryRegistry' commands in MC to set and > >get preferences. > > > >Ken Ray > >Sons of Thunder Software > > No good. Need something where you can put a actual file, such as a > text file. Surely there is a place in Windows? > > -- > --Shareware Games for the Mac-- > http://www.gypsyware.com > ___ > 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: Multiple Platform Release info
>The Windows equivalent of the Preferences folder is the Registry. It is a >single file that holds all the preference settings for all programs on the >PC. You can use 'setRegistry' and 'queryRegistry' commands in MC to set and >get preferences. > >Ken Ray >Sons of Thunder Software No good. Need something where you can put a actual file, such as a text file. Surely there is a place in Windows? -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Multiple Platform Release info
> > Re: Revolution... I actually downloaded both Metacard and >> Revolution, and started out using Revolution. Word on the 'net was >> that Revolution was cheaper and had more features, but used the same >> engine. Good selling points. But Revolution crashed every few >> minutes, literally, during development. And I had to adopt the habit >> of copying EVERY SINGLE code change, addition, etc. to a SimpleText >> file, so that when it crashed and burned, I did not lose whatever >> code I had just written. > >Why not just save? > >Unlike other xTalks, the MC file format is not prone to corruption. Crashes >can cause you to lose unsaved work, but in nearly five years I've never seen >a corrupted stack file. Revolution was the culprit, not Metacard. -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Multiple Platform Release info
Shari, > And is it necessary to create an installer for Windows? Can't you > just Zip the file instead of binhex it, and distribute it that way? You can, but it depends on how much "stuff" you need. For example, if your applications has documents, you need to update the Windows Registry so that the document type is displayed properly. Although MC can do this, it is better served through an installer. > Also, what is the Windows equivalent of a Preferences folder? If the > program creates a file, that you don't want in the same folder as the > program itself, that would normally go in the Mac Preferences file... > where to put on Windows? The Windows equivalent of the Preferences folder is the Registry. It is a single file that holds all the preference settings for all programs on the PC. You can use 'setRegistry' and 'queryRegistry' commands in MC to set and get preferences. Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web site: http://www.sonsothunder.com/ ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Multiple Platform Release info
Shari wrote: > Re: Revolution... I actually downloaded both Metacard and > Revolution, and started out using Revolution. Word on the 'net was > that Revolution was cheaper and had more features, but used the same > engine. Good selling points. But Revolution crashed every few > minutes, literally, during development. And I had to adopt the habit > of copying EVERY SINGLE code change, addition, etc. to a SimpleText > file, so that when it crashed and burned, I did not lose whatever > code I had just written. Why not just save? Unlike other xTalks, the MC file format is not prone to corruption. Crashes can cause you to lose unsaved work, but in nearly five years I've never seen a corrupted stack file. -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: 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: Multiple Platform Release info
>It's easy up until just after creating the standalone. After that, you've >got type and creator issues, icon differences, memory allocation (OS 9), and >on Windows creating an installer for the app (got that one covered, >actually.) But a nice tutorial on the three platforms would be great, if >someone's already done it. If not, I'd be willing to collaborate and host a >web page, or just collaborate. > >Is it my imagination, or has this list gotten a lot smaller since Revolution >was released? AND is it just me, or are the questions and issues here more >"hardcore" in general now? I'm wondering if all the newbies went to >Revolution, leaving us hardcores here to discuss cgi and xml... > >:) >Richard MacLemale Hmm... I plan to handle the type and creator issues exactly as I did in Hypercard. I spent a lot of time in my resource fork before releasing, so I should be able to handle that part just fine :-) But what is this memory allocation for OS9, and how is that implemented? And is it necessary to create an installer for Windows? Can't you just Zip the file instead of binhex it, and distribute it that way? Also, what is the Windows equivalent of a Preferences folder? If the program creates a file, that you don't want in the same folder as the program itself, that would normally go in the Mac Preferences file... where to put on Windows? Re: Revolution... I actually downloaded both Metacard and Revolution, and started out using Revolution. Word on the 'net was that Revolution was cheaper and had more features, but used the same engine. Good selling points. But Revolution crashed every few minutes, literally, during development. And I had to adopt the habit of copying EVERY SINGLE code change, addition, etc. to a SimpleText file, so that when it crashed and burned, I did not lose whatever code I had just written. And the crashes required hard restarts of my computer... every single time. The annoy factor was 120%. And I wondered about putting out a program with such an unstable tool. I decided it wasn't worth the risk. And as far as I knew, both programs had the same features as far as what you could do with them, just the interface was different. So I chose Metacard, for its stability. For its long track record of stability and support. Shari C -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Multiple Platform Release info
I'm in the process of releasing software for Windows, Mac OS 9, and Mac OS X simultaneously. Aside from some bizarro printing differences betweeen OS 9 and OS X, I think I'm about done. But I was wondering if anyone has posted any "how to" web pages for creating full fledged standalone apps for the three platforms I mentioned (or any one of them.) I've done final apps for all 3 before, but remembering how I handled icons for Windows, for example, is tough... It's easy up until just after creating the standalone. After that, you've got type and creator issues, icon differences, memory allocation (OS 9), and on Windows creating an installer for the app (got that one covered, actually.) But a nice tutorial on the three platforms would be great, if someone's already done it. If not, I'd be willing to collaborate and host a web page, or just collaborate. Is it my imagination, or has this list gotten a lot smaller since Revolution was released? AND is it just me, or are the questions and issues here more "hardcore" in general now? I'm wondering if all the newbies went to Revolution, leaving us hardcores here to discuss cgi and xml... :) Richard MacLemale Instructional Technology Specialist James W. Mitchell High School http://mitchellonline.pasco.k12.fl.us ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard