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:
uploads (2000)
A Global Variable (1997)
[WriteFile] problems (1997)
4.0 send email ticks. . (2000)
August 15th WebDNA Chat Transcript (2002)
Spell Check (2000)
[WebDNA] WebDNA 8.6 announced - New features (2018)
Tcp connect (2002)
[WebDNA] Emailer breaking format (2015)
Date or time comparisons have bugs ... (1998)
2.0Beta Command Ref (can't find this instruction) (1997)
Serial Number Question (1997)
WebCat 3.0 Serial Numbers (1999)
To Err or Not Custom Error (1999)
WebCat2: Items xx to xx shown, etc. (1997)
SQL statements (2002)
Formating found categories (1997)
Version 2.0 and 1.6 simultaneous (1997)
Q: for those who use Cookies for sessions? (2004)
Status of variable hierarchy changes? (2000)