Re: Random bug, OSX 10.04
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38778
interpreted = N
texte = Thanks for your reply John,You are correct in your assumption that I am only using it in a shownext. Myoriginal code before I tried a few different ways was with a number that Iset and it still did not work.Even this shows me different results upon clicking next and previous:[Search db=/database.db&group1field=field1+field2+field3&wagroup1datarq=[keyword]&group1word=ww&max=10&GROUP1sort=1&GROUP1sdir=ra&randseed=25]Any ideas what I should do to report this (if you agree it is a bug).I will copy this to Smith Micro.Paul> Paul Fowler wrote:>> >> I am running WebCat 4.0.2rc2a with OSX 10.0.4 and the latest iTools.>> >> Any ideas why after moving this search to an OSX server the random search>> stopped working, and when the [shownext] is hit a couple of times the>> [lastrandom] turns into a scientific notation mess.> > There have been platform specific problems with random search before.> It is dependent on the O/S for the underlying random numbers. I would> set up a page with a loop containing [random] and [lastrandom] and see> if it looks like the numbers returned are random.> >> >> I tried setting a text variable and using that as the randseed, but the>> search was still different every time. The sort was ignoring the randseed>> and returning different orders every time.> > To quote the docs:> > You can force the randomizer to return items in the same> order if you add another parameter RandSeed=879 (or any other> integer number).> ^^^^^^^^^^^^^^>> >> Could this be a random bug in the OSX version...>> >> This worked fine on a OS9, WebTen WebCat 3.8 machine.>> >> My search below.>> >> [Search>> db=/database.db&group1field=field1+field2+field3&wagroup1datarq=[keyword]&gr>> oup1word=ww&max=10&GROUP1sort=1&GROUP1sdir=ra&randseed=[lastrandom]]> > You are using this strictly in a [shownext] situation aren't you? I> can't think of another reason why you would want to force a specific> random order. And you do understand that [lastrandom] is only the last> [random] from that page, don't you? If you move this between more> than one page, you must either pass the [lastrandom] as a form var> or use [SearchString].> > HTH> > John|--------------------------------------|| Paul Fowler| Zgtec, Inc.| P.O. Box 11199| Aspen, CO 81612| paul@zgtec.com| http://www.zgtec.com|--------------------------------------|-------------------------------------------------------------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:
Thanks for your reply John,You are correct in your assumption that I am only using it in a shownext. Myoriginal code before I tried a few different ways was with a number that Iset and it still did not work.Even this shows me different results upon clicking next and previous:[Search db=/database.db&group1field=field1+field2+field3&wagroup1datarq=[keyword]&group1word=ww&max=10&GROUP1sort=1&GROUP1sdir=ra&randseed=25]Any ideas what I should do to report this (if you agree it is a bug).I will copy this to Smith Micro.Paul> Paul Fowler wrote:>> >> I am running WebCat 4.0.2rc2a with OSX 10.0.4 and the latest iTools.>> >> Any ideas why after moving this search to an OSX server the random search>> stopped working, and when the [shownext] is hit a couple of times the>> [lastrandom] turns into a scientific notation mess.> > There have been platform specific problems with random search before.> It is dependent on the O/S for the underlying random numbers. I would> set up a page with a loop containing [random] and [lastrandom] and see> if it looks like the numbers returned are random.> >> >> I tried setting a text variable and using that as the randseed, but the>> search was still different every time. The sort was ignoring the randseed>> and returning different orders every time.> > To quote the docs:> > You can force the randomizer to return items in the same> order if you add another parameter RandSeed=879 (or any other> integer number).> ^^^^^^^^^^^^^^>> >> Could this be a random bug in the OSX version...>> >> This worked fine on a OS9, WebTen WebCat 3.8 machine.>> >> My search below.>> >> [Search>> db=/database.db&group1field=field1+field2+field3&wagroup1datarq=[keyword]&gr>> oup1word=ww&max=10&GROUP1sort=1&GROUP1sdir=ra&randseed=[lastrandom]]> > You are using this strictly in a [shownext] situation aren't you? I> can't think of another reason why you would want to force a specific> random order. And you do understand that [lastrandom] is only the last> [random] from that page, don't you? If you move this between more> than one page, you must either pass the [lastrandom] as a form var> or use [SearchString].> > HTH> > John|--------------------------------------|| Paul Fowler| Zgtec, Inc.| P.O. Box 11199| Aspen, CO 81612| paul@zgtec.com| http://www.zgtec.com|--------------------------------------|-------------------------------------------------------------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/
Paul Fowler
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:
[WebDNA] Help with ReplaceFoundItems (2009)
Using Plug-In while running 1.6.1 (1997)
Resetting a Formvariable (2000)
Database cloning- will the real -oRiGiNaL- please stand up (2003)
Re[2]: Enhancement Request for WebCatalog-NT (1996)
Max Record length restated as maybe bug (1997)
HTML encoding in URLs (1997)
HELP WITH DATES (1997)
[WebDNA] WebDNA future (2010)
rename a file (1997)
Email Formatting and Encryption (1998)
WebCat2 - [SendNews] (1997)
Separate SSL Server (1997)
SSL problems (1998)
separate by mont (search) (2002)
WebCat editing, SiteGuard & SiteEdit (1997)
Running _every_ page through WebCat ? (1997)
Bad cookie (1998)
CloseDataBase vs CommitDataBase (2007)
WebCat b13 CGI -shownext- (1997)