Bug in random search - MacOS v4.5 plugin ...

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45440
interpreted = N
texte = I found a bug in version 4.5's random sorting capability. It starts repeating the same series of search/sorts instead of performing truly random (or even pseudo-random) searches/sorts.I never intended to do this as a test, I actually *need* to perform a series of random sorts -- so I can keep generating two-character strings that I can compare to previously generated strings -- until I find one that's not in the previous list.I wrote the db file and the template below. The template displays unique values in black and repeated values in red. If anyone has some time, please run this test for me, then let me know if you have the same bad results as I do.Here's one of the bad results I was referring to:fu rr wr ss tz qb gr hg it xu yn ow dy vp oq le md hd of zp vx sl jr ll hn dp ci nj ed vi on ih ou dg ti xh mi ah ms pg lz vi od ji uh zj lx qg fk dd kj oo uw vw qz dd eu po od bq ti xz kw wb py kq gg ii os yu ju pv pn df cd ey ol dc pg km ih ow yg jd pz gx ja ib ul oc iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sbAbout halfway through this list you can see that the results -- which are composed of two-character strings -- begin to repeat in sets of three:iy sb ilThis result is repeated until the end of the test, which makes it look like webdna is stuck in a loop that prevents it from performing any more random searches. A result like this would be impossible if webdna were retrieving or sorting randomly like it is supposed to:SMSI, I think that everything you need is here for you to perform the same tests. If you have any additional questions, please ask me. Maybe you can explain why this code stops performing random search/sorts and begins to repeat itself.Thanks.P.S. if there's a flaw in my logic or my approach, please excuse my mistakes.abc.db file: letter a b c d e f g h i j k l m n o p q r s t u v w x y z .tpl page: [text]twoletterlist=[/text][loop start=1&end=200][search db=abc.db&neletterdatarq=[blank]&allhit=1&ralettersort=1&max=1] [text]firstLetter=[founditems][letter][/founditems][/text] [/search][search db=abc.db&neletterdatarq=[blank]&allhit=1&ralettersort=1&max=1] [text]secondLetter=[founditems][letter][/founditems][/text] [/search][showif [url][twoletterlist][/url]^[url][firstLetter][secondLetter][/url]] [text]twoletterlist=[twoletterlist][firstLetter][secondLetter] [/text] [/showif][hideif [url][twoletterlist][/url]^[url][firstLetter][secondLetter][/url]] [text]twoletterlist=[twoletterlist][firstLetter][secondLetter] [/text] [/hideif][/loop][twoletterlist]Sincerely, Kenneth Grome------------------------------------------------------------- Kenneth Grome & Associates US-Asian Business Specialists Philippine Business Office +63 (32) 255-6921 Primary Email Address owner@kengrome.com Alternate Email Address kengrome@webdna.net -------------------------------------------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Bug in random search - MacOS v4.5 plugin ... (Kenneth Grome 2002)
  2. Re: Bug in random search - MacOS v4.5 plugin ... (Frank Nordberg 2002)
  3. Re: Bug in random search - MacOS v4.5 plugin ... (Kenneth Grome 2002)
  4. Re: Bug in random search - MacOS v4.5 plugin ... (Brian Fries 2002)
  5. Re: Bug in random search - MacOS v4.5 plugin ... (Kenneth Grome 2002)
  6. Bug in random search - MacOS v4.5 plugin ... (Kenneth Grome 2002)
I found a bug in version 4.5's random sorting capability. It starts repeating the same series of search/sorts instead of performing truly random (or even pseudo-random) searches/sorts.I never intended to do this as a test, I actually *need* to perform a series of random sorts -- so I can keep generating two-character strings that I can compare to previously generated strings -- until I find one that's not in the previous list.I wrote the db file and the template below. The template displays unique values in black and repeated values in red. If anyone has some time, please run this test for me, then let me know if you have the same bad results as I do.Here's one of the bad results I was referring to:fu rr wr ss tz qb gr hg it xu yn ow dy vp oq le md hd of zp vx sl jr ll hn dp ci nj ed vi on ih ou dg ti xh mi ah ms pg lz vi od ji uh zj lx qg fk dd kj oo uw vw qz dd eu po od bq ti xz kw wb py kq gg ii os yu ju pv pn df cd ey ol dc pg km ih ow yg jd pz gx ja ib ul oc iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sb il iy sbAbout halfway through this list you can see that the results -- which are composed of two-character strings -- begin to repeat in sets of three:iy sb ilThis result is repeated until the end of the test, which makes it look like webdna is stuck in a loop that prevents it from performing any more random searches. A result like this would be impossible if webdna were retrieving or sorting randomly like it is supposed to:SMSI, I think that everything you need is here for you to perform the same tests. If you have any additional questions, please ask me. Maybe you can explain why this code stops performing random search/sorts and begins to repeat itself.Thanks.P.S. if there's a flaw in my logic or my approach, please excuse my mistakes.abc.db file: letter a b c d e f g h i j k l m n o p q r s t u v w x y z .tpl page: [text]twoletterlist=[/text][loop start=1&end=200][search db=abc.db&neletterdatarq=[blank]&allhit=1&ralettersort=1&max=1] [text]firstLetter=[founditems][letter][/founditems][/text] [/search][search db=abc.db&neletterdatarq=[blank]&allhit=1&ralettersort=1&max=1] [text]secondLetter=[founditems][letter][/founditems][/text] [/search][showif [url][twoletterlist][/url]^[url][firstLetter][secondLetter][/url]] [text]twoletterlist=[twoletterlist][firstLetter][secondLetter] [/text] [/showif][hideif [url][twoletterlist][/url]^[url][firstLetter][secondLetter][/url]] [text]twoletterlist=[twoletterlist][firstLetter][secondLetter] [/text] [/hideif][/loop][twoletterlist]Sincerely, Kenneth Grome------------------------------------------------------------- Kenneth Grome & Associates US-Asian Business Specialists Philippine Business Office +63 (32) 255-6921 Primary Email Address owner@kengrome.com Alternate Email Address kengrome@webdna.net -------------------------------------------------------------------------------------------------------------------------- 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://search.smithmicro.com/ Kenneth Grome

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:

changing order number (1998) RE: Answer: WebDelivery downloads alias, not original ? (1997) Protecting a folder (2000) NEW NetProfessional Revealed (1998) Authorize.Net and AIM (2004) SwitchNotFoundDEFAULT (2003) Is [thisurl] http or https? (1998) showif with math? (2000) [OT] Happy Turkey Day! (2003) How to Display text in empty fields (1997) Euro WebDNA Conference (2004) Looking for a Manual (1997) serial number dishing (1997) [WebDNA] Emailer and Comcast.net (2008) Web Catalog 2 demo (1997) Server slowing down. (1997) [OT] (waaaay OT) (2004) Renaming textA (1998) CMS - Formatting Content (2004) Opinion: [input] should be called [output] ... (1997)