Re: CGI / Binary Read
<< There is, effectively, a small trouble with the mc 2.32 "POST"s headers (not seen, for yet, if the problem is solved in mc 2.4.x). Trey the way i use to catch it, successfully : >> Thanks... but I'm not using POST from Metacard- just a Metatalk script which is processing a file upload POST'ed from a plain ol' browser. I'll try looking at it as a Apache problem, and see what httpd sees. Does anyone have a file upload script that works with Apache in any old language that I can test? Then I could isolate it as a Metacard issue. Regards, Brian ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: CGI / Binary Read
[EMAIL PROTECTED] a écrit : > > << But how do you upload them? >> > > Oh, right =). I forgot the list members aren't telepathic! > I'm just using a plain ol' HTML form with Internet Explorer. That is ("[" > substituted in my HTML so it doesn't jumble email readers): > > [FORM ENCTYPE='multipart/form-data' ACCEPT="image/gif, image/jpeg" > METHOD=POST] > [INPUT TYPE=FILE] > [INPUT TYPE=SUBMIT] > > Just the simplest of HTML file upload forms. > But no matter what I tinker with, I seem to get an unreasonable > content-length and nothing to read. Maybe it's an apache/cgi issue? > > Brian > > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard Hi Brian, There is, effectively, a small trouble with the mc 2.32 "POST"s headers (not seen, for yet, if the problem is solved in mc 2.4.x). Trey the way i use to catch it, successfully : >> on PostedbyMC >> global DBParsed >> put "test1=1&test2=2&test3=3&test4=4" into DBParsed >> repeat 22 >>put "z" after DBParsed >> end repeat >> set httpheaders to "Content-Type: application/x-www-form-urlencoded" & cr & >"Content-Length:" && the length of DBParsed & cr & cr # Apache :needed ; IIS : >unneeded >> post DBParsed to url "http://localhost/wmc4.xml"; >> put line 3 of it into DBParsed >> answer DBParsed >> end PostedbyMC See the "wmc4.xml" .php script attachement, forgotten in the previous mail... Best Regards, Pierre Sahores WEB & VPN applications & databases servers Inspection académique de Seine-Saint-Denis Qualifier & produire l'avantage compétitif Title: ERROR: File Not Found File Not Found". "The file you have requested does not exist on this server.\n"); ?>
A different analog clock
I made a clock (using Rev) a while ago to encourage my young son to read "real" time rather than digital. I made use of standard trigonometry and it works nicely. Here are the working bits (without needing to sort out a download strategy!). In a button: on mouseUp global gClockRunning if the label of me is "Stop" then put false into gClockRunning cancel the tickMessageID of group "clock" set the label of me to "Start" else if the optionKey is down then --set the clock to computer time set the itemDelimiter to ":" put item 1 of the long time into theHour put item 2 of the long time into theMin put word 1 of item 3 of the long time into theSec set the clockTime of group "clock" to (theHour*3600 + theMin*60 + theSec) end if send "runClock" to group "clock" set the label of me to "Stop" end if end mouseUp In the group that has three clock hands and a circle called spindle at the centre: on oneTick global gClockRunning if gClockRunning then send "oneTick" to me in 500 milliseconds set the tickMessageID of me to the result --seconds put the secondHandLength of group "clock" into L put the clockTime of group "clock" + 1 into currentTime put the long time into theTime convert theTime to dateItems put item 6 of theTime into mySec add item 5 of theTime*60 to mySec add item 4 of theTime*3600 to mySec put -pi/2 +mySec*2*pi/60 into theta put round(L*sin(theta)) into y put round(L*cos(theta)) into x put the loc of graphic "spindle" into myPoint add x to item 1 of myPoint add y to item 2 of myPoint put the loc of graphic "spindle" & return & myPoint into handPoints set the points of graphic "secondHand" to handPoints --minutes (do only every 6 seconds) if currentTime mod 6 = 0 then put the minuteHandLength of group "clock" into L put -pi/2 +mySec*2*pi/3600 into theta put round(L*sin(theta)) into y put round(L*cos(theta)) into x put the loc of graphic "spindle" into myPoint add x to item 1 of myPoint add y to item 2 of myPoint put the loc of graphic "spindle" & return & myPoint into handPoints set the points of graphic "minuteHand" to handPoints end if --hours (do only every 60 seconds) if currentTime mod 60 = 0 then put the hourHandLength of group "clock" into L put -pi/2 +mySec*2*pi/(12*60*60) into theta put round(L*sin(theta)) into y put round(L*cos(theta)) into x put the loc of graphic "spindle" into myPoint add x to item 1 of myPoint add y to item 2 of myPoint put the loc of graphic "spindle" & return & myPoint into handPoints set the points of graphic "hourHand" to handPoints end if end oneTick on runClock global gClockRunning put true into gClockRunning oneTick end runClock Regards, -- Michael J. Lew Senior Lecturer Department of Pharmacology The University of Melbourne Parkville 3010 Victoria Australia Phone +613 8344 8304 ** New email address: [EMAIL PROTECTED] ** ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: CGI / Binary Read
[EMAIL PROTECTED] a écrit : > > << But how do you upload them? >> > > Oh, right =). I forgot the list members aren't telepathic! > I'm just using a plain ol' HTML form with Internet Explorer. That is ("[" > substituted in my HTML so it doesn't jumble email readers): > > [FORM ENCTYPE='multipart/form-data' ACCEPT="image/gif, image/jpeg" > METHOD=POST] > [INPUT TYPE=FILE] > [INPUT TYPE=SUBMIT] > > Just the simplest of HTML file upload forms. > But no matter what I tinker with, I seem to get an unreasonable > content-length and nothing to read. Maybe it's an apache/cgi issue? > > Brian > > ___ > metacard mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/metacard Hi Brian, There is, effectively, a small trouble with the mc 2.32 "POST"s headers (not seen, for yet, if the problem is solved in mc 2.4.x). Trey the way i use to catch it, successfully : >> on PostedbyMC >> global DBParsed >> put "test1=1&test2=2&test3=3&test4=4" into DBParsed >> repeat 22 >>put "z" after DBParsed >> end repeat >> set httpheaders to "Content-Type: application/x-www-form-urlencoded" & cr & >"Content-Length:" && the length of DBParsed & cr & cr # Apache :needed ; IIS : >unneeded >> post DBParsed to url "http://localhost/wmc4.xml"; >> put line 3 of it into DBParsed >> answer DBParsed >> end PostedbyMC Best Regards, Pierre Sahores WEB & VPN applications & databases servers Inspection académique de Seine-Saint-Denis Qualifier & produire l'avantage compétitif ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: CGI / Binary Read
<< But how do you upload them? >> Oh, right =). I forgot the list members aren't telepathic! I'm just using a plain ol' HTML form with Internet Explorer. That is ("[" substituted in my HTML so it doesn't jumble email readers): [FORM ENCTYPE='multipart/form-data' ACCEPT="image/gif, image/jpeg" METHOD=POST] [INPUT TYPE=FILE] [INPUT TYPE=SUBMIT] Just the simplest of HTML file upload forms. But no matter what I tinker with, I seem to get an unreasonable content-length and nothing to read. Maybe it's an apache/cgi issue? Brian ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard