Re: SMSI (Scott) clues?? Bug fixes for next WebDNA release
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62697
interpreted = N
texte = Scott Anderson wrote:> #4: The pre/post-parse scripts can be a powerful tool, and one must be very> careful when editing those files. I believe the documentation (or the> WebDNA lab tutorial) warns about the possibility of crippling all WebDNA> pages, if bad code is placed in those scripts. But if you have found that> valid code, used in either script file, causes problems, please send me a> copy of that code.Yes, I know of the possibilities for damadge with bad code. Thiswasn't bad code as far as I know. I simply copied/pasted thesame code to an include file and the problems went away...Here is the code that I moved to an include file:-----START[!] Euca Standard Function Defs, Rev.1 [/!][!] finds the domain name only of a caller [/!][function name=CALL_DOMAIN] [ListMIMEHeaders name=host&exact=F][url][value][/url][/ListMIMEHeaders][/function][!] lists characters backwards when given an "instring" [/!][function name=backwards][text]length=[countchars][instring][/countchars][/text][loop start=[length]&end=1&advance=-1][getchars start=[index]&end=[index]][instring][/getchars][/loop][/function][!] Call with: "DT_Sec_Stamp" This creates the date and time since epoch in seconds [/!][function name=DT_Sec_Stamp][math]((([math]{[date %m/%d/%Y]}[/math])-1)*86400)+([math]{[time]}[/math])[/math][/function][!] *BACK* call with: "DateBack stamp=
" This formats back the "DT_Sec_Stamp" to a human readable Date[/!][function name=DateBack][format days_to_date %m/%d/%Y][format .6d][math]([stamp]/86400)+1[/math][/format][/format][/function][!] *BACK* call with: "TimeBack stamp=" This formats back the "DT_Sec_Stamp" to a human readable Time[/!][function name=TimeBack][format seconds_to_time][math][stamp]-(86400*[format .6d][math]([stamp]/86400)[/math][/format])[/math][/format][/function]-----ENDYou may be able to cause some issues by taking this code and rewriting thepreparse script so that it contains it.Its been a long time since I corrected the issue and I can't recall exactly whatthe effects were... I think it was issuing an error [/functionspace] or something.. noton every "page" in the sandbox however.. just some..But like I said, its been a long time. If you still can't find anything,I will recreate the scenario at the wee hours for you on the live server andreport the error more exactly.Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Euca Design Center <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke Euca Design Center 1871 HWY MM Fitchburg, WI 53575 PH:> 1.608.835.2476 Web:> http://www.egg.bz http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Scott Anderson wrote:> #4: The pre/post-parse scripts can be a powerful tool, and one must be very> careful when editing those files. I believe the documentation (or the> WebDNA lab tutorial) warns about the possibility of crippling all WebDNA> pages, if bad code is placed in those scripts. But if you have found that> valid code, used in either script file, causes problems, please send me a> copy of that code.Yes, I know of the possibilities for damadge with bad code. Thiswasn't bad code as far as I know. I simply copied/pasted thesame code to an include file and the problems went away...Here is the code that I moved to an include file:-----START[!] Euca Standard Function Defs, Rev.1 [/!][!] finds the domain name only of a caller [/!][function name=CALL_DOMAIN] [ListMIMEHeaders name=host&exact=F][url][value][/url][/ListMIMEHeaders][/function][!] lists characters backwards when given an "instring" [/!][function name=backwards][text]length=[countchars][instring][/countchars][/text][loop start=[length]&end=1&advance=-1][getchars start=[index]&end=[index]][instring][/getchars][/loop][/function][!] Call with: "DT_Sec_Stamp" This creates the date and time since epoch in seconds [/!][function name=DT_Sec_Stamp][math]((([math]{[date %m/%d/%Y]}[/math])-1)*86400)+([math]{[time]}[/math])[/math][/function][!] *BACK* call with: "DateBack stamp=" This formats back the "DT_Sec_Stamp" to a human readable Date[/!][function name=DateBack][format days_to_date %m/%d/%Y][format .6d][math]([stamp]/86400)+1[/math][/format][/format][/function][!] *BACK* call with: "TimeBack stamp=" This formats back the "DT_Sec_Stamp" to a human readable Time[/!][function name=TimeBack][format seconds_to_time][math][stamp]-(86400*[format .6d][math]([stamp]/86400)[/math][/format])[/math][/format][/function]-----ENDYou may be able to cause some issues by taking this code and rewriting thepreparse script so that it contains it.Its been a long time since I corrected the issue and I can't recall exactly whatthe effects were... I think it was issuing an error [/functionspace] or something.. noton every "page" in the sandbox however.. just some..But like I said, its been a long time. If you still can't find anything,I will recreate the scenario at the wee hours for you on the live server andreport the error more exactly.Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Euca Design Center <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke Euca Design Center 1871 HWY MM Fitchburg, WI 53575 PH:> 1.608.835.2476 Web:> http://www.egg.bz http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
webcat (2000)
Strange intermittent WebDNA problems (2008)
BUG REPORT -- Refusing connections! (1999)
Limiting [FoundItems] (2000)
Wanted: Broader string manipulation functions (1997)
show all problem (1997)
Almost a there but..bye bye NetCloak (1997)
OT: Apache Question (2003)
WebCatalog2 Feature Feedback (1996)
I have troubles to send message out (1998)
Share Bulletin Board? (1998)
RequiredFields notes ... (1997)
[WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011)
ThreadMem ignored? (1998)
Showif, Hideif reverse logic ? (1997)
any idea (2004)
OT-JS why it does not run on Mac (2001)
error: Too many nested [xxx] contexts (1997)
Trouble with formula.db + more explanation (1997)
RE: E-mailer error codes (1997)