Re: Random bug, OSX 10.04

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38774
interpreted = N
texte = 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].HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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: Random bug, OSX 10.04 (John Peacock 2001)
  2. Re: Random bug, OSX 10.04 (Paul Fowler 2001)
  3. Re: Random bug, OSX 10.04 (John Peacock 2001)
  4. Random bug, OSX 10.04 (Paul Fowler 2001)
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].HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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/ John Peacock

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:

Reversed words (1997) Extended [ConvertChars] (1997) Sku numbers (1997) Followup question re: checksum for credit cards? (1997) color and size options (1997) cookies and DNS (2000) Solution help needed (1998) Threaded Discussion (1998) Error: Missing c in orderfile???? (2005) strange math (2004) Beta and new version questions? (1998) authorize.net CC processing (was WC on Mac OS X or Mac OS (2001) Frames and cart values (1998) Hello??? (1997) Separate server for jpg/gif files (1998) [sendmail] and [formvariables] (1997) [WebDNA] configuring 5.1 with apache 2? (2008) WebCat and Phantom (2000) WebCatalog stalls (1998) Artwork (1997)