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:
Separate SSL Server (1997)
Banners (1997)
sorting dates (1999)
Problems getting parameters passed into email. (1997)
Web Catalog vs. ICAT (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
Opinion: [input] should be called [output] ... (1997)
[WebDNA] Height, width of images (2013)
Test (2002)
Odd Cart Behavior (1997)
WebCat2.0 [format thousands .0f] no go (1997)
WebCat2 - many [carts] on one template page? (1997)
[WebDNA] Liked WebDNA, Went to PHP, split brain is good! (2008)
Question re: FlushDatabases (1997)
WC2b15 File Corruption (1997)
[OT] KeepItUp for Windows (2003)
Error:Too many nested [xxx] contexts (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Hiding a character (2001)
Plugin or CGI or both (1997)