Re: [WebDNA] Data Type Bool

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103148
interpreted = N
texte = --Apple-Mail-10-602977443 Content-Type: multipart/alternative; boundary=Apple-Mail-9-602977347 --Apple-Mail-9-602977347 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I'm sorry - you can't just use [showif [something]] There needs to be some setup work to make this possible. [math show=F&multi=T]a=1&b=2[/math] [text show=F]compare=[raw][a]<[b][/raw][/text] [text show=F]result=[interpret][terd][/interpret][/text] [showif [result]]toyboat[/showif] On Aug 5, 2009, at 12:00 PM, Terry Wilson wrote: > Yeah, you're right of course. Can't believe I didn't see that when I > wrote it out. Anyway, Marc's solution of two searches is what I'd do > too. > > Terry > > p.s so you're saying that [showif anyvalue] will resolve to true? No > comparison needed? This is the first I'm hearing about this, and I'm > a pretty faithful and long-time reader of the list. > > On Wed, 5 Aug 2009 10:40:07 -0500 > Patrick McCormick wrote: > > Terry & Ki, > > > > I don't think that will work because [instock] is only > >evaluated within the [founditems] loop > > > > You need: > > > > [search stuff...] > > [founditems] > > [hideif [instock]] > > [item fields] > > [/hideif] > > [/founditems] > > [/search] > > > > BOOL is a really cool part of WebDNA. Anything greater > >than zero is true and anything 0 or less is false. That > >means that even random strings of text are, technically > >true. You need to avoid bad code practice, but there > >are some really clever and graceful things you can do. > > > > Be aware that something like [showif [instock]=1] is > >the same as [showif [instock]] as long as [instock] is > >greater than zero when an item is actually in stock. It > >helps make the code a little bit more readable, too. > > > > > > > > > > On Aug 4, 2009, at 1:39 PM, Terry Wilson wrote: > > > >> So you would have two founditems loops within your > >>search: > >> > >> [search stuff...] > >> > >> [hideif [instock]=0] > >> [founditems] > >> ... > >> [/founditems] > >> [/hideif] > >> > >> [showif [instock]=0] > >> [founditems] > >> ... > >> [/founditems] > >> [/showif] > >> > >> [/search] > >> > >> (sort by sku, not instock) > >> > >> Terry > >> > >> Essentially, we want our product listing page to do the > >>following: > >> > >> Group all the items that are in stock first, out of > >>stock second. > >> Within the in stock items, we want to sort by SKU. > >> > >> Right now, since in stock is the actual number in stock, > >>it is > >> sorting by actual number, not just by what is in stock > >>and not in > >> stock. > >> > >> ----------- > >> Ki Song > >> > >> On Tue, Aug 4, 2009 at 2:13 PM, Govinda > >>< >> >govinda.webdnatalk@gmail.com> wrote: > >> > >> Ki, > >> > >> I don't think so. > >> > >> But with webdna you don't need it either. If you are > >>not able to do > >> what you want, then post the problem, someone will > >>surely guide you > >> to the solution. > >> > >> > >> On Aug 4, 2009, at 12:07 PM, Ki Song - Knifecenter.com > >>wrote: > >> > >> Is something like this possible in a search context: > >> > >> &asSKUsort=2&deON HANDsort=1&ON HANDtype=bool > >> > >> Can a data type be type boolean in a search context? > >> > >> ----------- > >> Ki Song > >> > >> > >> ------------ > >> John Butler (Govinda) > >> govinda.webdnatalk@gmail.com > >> > >> > >> > >> --------------------------------------------------------- > >> This message is sent to you because you are subscribed > >>to > >> the mailing list > >><talk@webdna.us>. > >> To unsubscribe, E-mail to: > >><talk-leave@webdna.us > >> > > >> archives: > >>http://mail.webdna.us/list/talk@webdna.us > >> old archives: > >>http://dev.webdna.us/TalkListArchive/ > >> > >> > >> -- > >> Terry Wilson | terry@terryfic.com | http://terryfic.com > >> http://WhosComing.com - a simplified, affordable online > >>reservation > >> system > >> http://TightJacket.com -- stylish protection for your > >>laptop > >> > -------------------------------------------------------------------------- > >> Attitude is the only difference between ordeal and > >>adventure. > >> --------------------------------------------------------- > >> This message is sent to you because you are subscribed > >>to > >> the mailing list . > >> To unsubscribe, E-mail to: > >> archives: http://mail.webdna.us/list/talk@webdna.us > >> old archives: http://dev.webdna.us/TalkListArchive/ > > > > --Apple-Mail-9-602977347 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
I'm sorry - you can't = just use [showif [something]] There needs to be = some setup work to make this possible.
=

[math = show=3DF&multi=3DT]a=3D1&b=3D2[/math]
[text = show=3DF]compare=3D[raw][a]<[b][/raw][/text]
[text = show=3DF]result=3D[interpret][terd][/interpret][/text]
[showif = [result]]toyboat[/showif]


&n= bsp;On Aug 5, 2009, at 12:00 PM, Terry Wilson wrote:

Yeah, you're right of course. Can't believe = I didn't see that when I wrote it out. Anyway, Marc's solution of = two searches is what I'd do too.

Terry

p.s so you're saying that [showif anyvalue] will resolve = to true? No comparison needed? This is the first I'm hearing about this, = and I'm a pretty faithful and long-time reader of the list.

On Wed, 5 Aug 2009 10:40:07 -0500
Patrick = McCormick <pm@webdna.us> = wrote:
> Terry & Ki,
>
> I don't think that will = work because [instock] is only
>evaluated within the = [founditems] loop
>
> You need:
>
> [search = stuff...]
> [founditems]
> [hideif = [instock]]
> [item fields]
> = [/hideif]
> [/founditems]
> [/search]
>
> = BOOL is a really cool part of WebDNA. Anything greater
>than = zero is true and anything 0 or less is false. That
>means that = even random strings of text are, technically
>true. You need to = avoid bad code practice, but there
>are some really clever and = graceful things you can do.
>
> Be aware that something = like [showif [instock]=3D1] is
>the same as [showif [instock]] = as long as [instock] is
>greater than zero when an item is = actually in stock. It
>helps make the code a little bit more = readable, too.
>
>
>
>
> On Aug 4, = 2009, at 1:39 PM, Terry Wilson wrote:
>
>> So you would = have two founditems loops within your =
>>search:
>>
>> [search = stuff...]
>>
>> [hideif [instock]=3D0]
>> = [founditems]
>> ...
>> [/founditems]
>> = [/hideif]
>>
>> [showif [instock]=3D0]
>> = [founditems]
>> ...
>> [/founditems]
>> = [/showif]
>>
>> [/search]
>>
>> = (sort by sku, not instock)
>>
>> = Terry
>>
>> Essentially, we want our product listing = page to do the
>>following:
>>
>> Group all = the items that are in stock first, out of
>>stock = second.
>> Within the in stock items, we want to sort by = SKU.
>>
>> Right now, since in stock is the actual = number in stock,
>>it is
>> sorting by actual = number, not just by what is in stock
>>and not in =
>> stock.
>>
>> -----------
>> Ki = Song
>>
>> On Tue, Aug 4, 2009 at 2:13 PM, Govinda =
>><<mailto:govinda.webdnatalk@gma= il.com
>> >govinda.webdnatalk@gmail.com<= /a>> wrote:
>>
>> Ki,
>>
>> I = don't think so.
>>
>> But with webdna you don't need = it either. If you are
>>not able to do
>> what you = want, then post the problem, someone will
>>surely guide you =
>> to the solution.
>>
>>
>> On Aug = 4, 2009, at 12:07 PM, Ki Song - Knifecenter.com =
>>wrote:
>>
>> Is something like this = possible in a search context:
>>
>> = &asSKUsort=3D2&deON HANDsort=3D1&ON = HANDtype=3Dbool
>>
>> Can a data type be type boolean = in a search context?
>>
>> -----------
>> Ki = Song
>>
>>
>> ------------
>> John = Butler (Govinda)
>> <
mailto:govinda.webdnatalk@gma= il.com>govinda.webdnatalk@gmail.com<= /a>
>>
>>
>>
>> = ---------------------------------------------------------
>> = This message is sent to you because you are subscribed =
>>to
>> the mailing list
>><<
mailto:talk@webdna.us>talk@webdna.us>.
>> To = unsubscribe, E-mail to:
>><<mailto:talk-leave@webdna.us>talk-leave@webdna.us =
>> >
>> archives:
>><http://mail.webdna.us/l= ist/talk@webdna.us>http://mail.webdna.us/l= ist/talk@webdna.us
>> old archives:
>><http://dev.webdna.us/TalkLi= stArchive/>http://dev.webdna.us/TalkLi= stArchive/
>>
>>
>> --
>> Terry = Wilson | terry@terryfic.com | http://terryfic.com
>> http://WhosComing.com - a simplified, = affordable online
>>reservation
>> = system
>> http://TightJacket.com -- stylish = protection for your
>>laptop
>> = --------------------------------------------------------------------------=
>> Attitude is the only difference between ordeal and =
>>adventure.
>> = ---------------------------------------------------------
>> = This message is sent to you because you are subscribed =
>>to
>> the mailing list <talk@webdna.us>.
>> To = unsubscribe, E-mail to: <talk-leave@webdna.us>
>&= gt; archives: http://mail.webdna.us/l= ist/talk@webdna.us
>> old archives: http://dev.webdna.us/TalkLi= stArchive/
>

 
=

= --Apple-Mail-9-602977347-- --Apple-Mail-10-602977443 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHA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Mail-10-602977443-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Data Type Bool (John Butler 2009)
  2. Re: [WebDNA] Data Type Bool (Patrick McCormick 2009)
  3. Re: [WebDNA] Data Type Bool (Brian Fries 2009)
  4. Re: [WebDNA] Data Type Bool (Patrick McCormick 2009)
  5. Re: [WebDNA] Data Type Bool (Govinda 2009)
  6. Re: [WebDNA] Data Type Bool ("Terry Wilson" 2009)
  7. Re: [WebDNA] Data Type Bool (Patrick McCormick 2009)
  8. Re: [WebDNA] Data Type Bool ("Ki Song - Knifecenter.com" 2009)
  9. Re: [WebDNA] Data Type Bool ("Terry Wilson" 2009)
  10. Re: [WebDNA] Data Type Bool (Patrick McCormick 2009)
  11. Re: [WebDNA] Data Type Bool (Donovan Brooke 2009)
  12. Re: [WebDNA] Data Type Bool (Marc Thompson 2009)
  13. Re: [WebDNA] Data Type Bool (Patrick McCormick 2009)
  14. Re: [WebDNA] Data Type Bool (Marc Thompson 2009)
  15. Re: [WebDNA] Data Type Bool (Patrick McCormick 2009)
  16. Re: [WebDNA] Data Type Bool (Terry Wilson 2009)
  17. Re: [WebDNA] Data Type Bool ("Ki Song - Knifecenter.com" 2009)
  18. Re: [WebDNA] Data Type Bool (Govinda 2009)
  19. [WebDNA] Data Type Bool ("Ki Song - Knifecenter.com" 2009)
--Apple-Mail-10-602977443 Content-Type: multipart/alternative; boundary=Apple-Mail-9-602977347 --Apple-Mail-9-602977347 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I'm sorry - you can't just use [showif [something]] There needs to be some setup work to make this possible. [math show=F&multi=T]a=1&b=2[/math] [text show=F]compare=[raw][a]<[b][/raw][/text] [text show=F]result=[interpret][terd][/interpret][/text] [showif [result]]toyboat[/showif] On Aug 5, 2009, at 12:00 PM, Terry Wilson wrote: > Yeah, you're right of course. Can't believe I didn't see that when I > wrote it out. Anyway, Marc's solution of two searches is what I'd do > too. > > Terry > > p.s so you're saying that [showif anyvalue] will resolve to true? No > comparison needed? This is the first I'm hearing about this, and I'm > a pretty faithful and long-time reader of the list. > > On Wed, 5 Aug 2009 10:40:07 -0500 > Patrick McCormick wrote: > > Terry & Ki, > > > > I don't think that will work because [instock] is only > >evaluated within the [founditems] loop > > > > You need: > > > > [search stuff...] > > [founditems] > > [hideif [instock]] > > [item fields] > > [/hideif] > > [/founditems] > > [/search] > > > > BOOL is a really cool part of WebDNA. Anything greater > >than zero is true and anything 0 or less is false. That > >means that even random strings of text are, technically > >true. You need to avoid bad code practice, but there > >are some really clever and graceful things you can do. > > > > Be aware that something like [showif [instock]=1] is > >the same as [showif [instock]] as long as [instock] is > >greater than zero when an item is actually in stock. It > >helps make the code a little bit more readable, too. > > > > > > > > > > On Aug 4, 2009, at 1:39 PM, Terry Wilson wrote: > > > >> So you would have two founditems loops within your > >>search: > >> > >> [search stuff...] > >> > >> [hideif [instock]=0] > >> [founditems] > >> ... > >> [/founditems] > >> [/hideif] > >> > >> [showif [instock]=0] > >> [founditems] > >> ... > >> [/founditems] > >> [/showif] > >> > >> [/search] > >> > >> (sort by sku, not instock) > >> > >> Terry > >> > >> Essentially, we want our product listing page to do the > >>following: > >> > >> Group all the items that are in stock first, out of > >>stock second. > >> Within the in stock items, we want to sort by SKU. > >> > >> Right now, since in stock is the actual number in stock, > >>it is > >> sorting by actual number, not just by what is in stock > >>and not in > >> stock. > >> > >> ----------- > >> Ki Song > >> > >> On Tue, Aug 4, 2009 at 2:13 PM, Govinda > >>< >> >govinda.webdnatalk@gmail.com> wrote: > >> > >> Ki, > >> > >> I don't think so. > >> > >> But with webdna you don't need it either. If you are > >>not able to do > >> what you want, then post the problem, someone will > >>surely guide you > >> to the solution. > >> > >> > >> On Aug 4, 2009, at 12:07 PM, Ki Song - Knifecenter.com > >>wrote: > >> > >> Is something like this possible in a search context: > >> > >> &asSKUsort=2&deON HANDsort=1&ON HANDtype=bool > >> > >> Can a data type be type boolean in a search context? > >> > >> ----------- > >> Ki Song > >> > >> > >> ------------ > >> John Butler (Govinda) > >> govinda.webdnatalk@gmail.com > >> > >> > >> > >> --------------------------------------------------------- > >> This message is sent to you because you are subscribed > >>to > >> the mailing list > >><talk@webdna.us>. > >> To unsubscribe, E-mail to: > >><talk-leave@webdna.us > >> > > >> archives: > >>http://mail.webdna.us/list/talk@webdna.us > >> old archives: > >>http://dev.webdna.us/TalkListArchive/ > >> > >> > >> -- > >> Terry Wilson | terry@terryfic.com | http://terryfic.com > >> http://WhosComing.com - a simplified, affordable online > >>reservation > >> system > >> http://TightJacket.com -- stylish protection for your > >>laptop > >> > -------------------------------------------------------------------------- > >> Attitude is the only difference between ordeal and > >>adventure. > >> --------------------------------------------------------- > >> This message is sent to you because you are subscribed > >>to > >> the mailing list . > >> To unsubscribe, E-mail to: > >> archives: http://mail.webdna.us/list/talk@webdna.us > >> old archives: http://dev.webdna.us/TalkListArchive/ > > > > --Apple-Mail-9-602977347 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
I'm sorry - you can't = just use [showif [something]] There needs to be = some setup work to make this possible.
=

[math = show=3DF&multi=3DT]a=3D1&b=3D2[/math]
[text = show=3DF]compare=3D[raw][a]<[b][/raw][/text]
[text = show=3DF]result=3D[interpret][terd][/interpret][/text]
[showif = [result]]toyboat[/showif]


&n= bsp;On Aug 5, 2009, at 12:00 PM, Terry Wilson wrote:

Yeah, you're right of course. Can't believe = I didn't see that when I wrote it out. Anyway, Marc's solution of = two searches is what I'd do too.

Terry

p.s so you're saying that [showif anyvalue] will resolve = to true? No comparison needed? This is the first I'm hearing about this, = and I'm a pretty faithful and long-time reader of the list.

On Wed, 5 Aug 2009 10:40:07 -0500
Patrick = McCormick <pm@webdna.us> = wrote:
> Terry & Ki,
>
> I don't think that will = work because [instock] is only
>evaluated within the = [founditems] loop
>
> You need:
>
> [search = stuff...]
> [founditems]
> [hideif = [instock]]
> [item fields]
> = [/hideif]
> [/founditems]
> [/search]
>
> = BOOL is a really cool part of WebDNA. Anything greater
>than = zero is true and anything 0 or less is false. That
>means that = even random strings of text are, technically
>true. You need to = avoid bad code practice, but there
>are some really clever and = graceful things you can do.
>
> Be aware that something = like [showif [instock]=3D1] is
>the same as [showif [instock]] = as long as [instock] is
>greater than zero when an item is = actually in stock. It
>helps make the code a little bit more = readable, too.
>
>
>
>
> On Aug 4, = 2009, at 1:39 PM, Terry Wilson wrote:
>
>> So you would = have two founditems loops within your =
>>search:
>>
>> [search = stuff...]
>>
>> [hideif [instock]=3D0]
>> = [founditems]
>> ...
>> [/founditems]
>> = [/hideif]
>>
>> [showif [instock]=3D0]
>> = [founditems]
>> ...
>> [/founditems]
>> = [/showif]
>>
>> [/search]
>>
>> = (sort by sku, not instock)
>>
>> = Terry
>>
>> Essentially, we want our product listing = page to do the
>>following:
>>
>> Group all = the items that are in stock first, out of
>>stock = second.
>> Within the in stock items, we want to sort by = SKU.
>>
>> Right now, since in stock is the actual = number in stock,
>>it is
>> sorting by actual = number, not just by what is in stock
>>and not in =
>> stock.
>>
>> -----------
>> Ki = Song
>>
>> On Tue, Aug 4, 2009 at 2:13 PM, Govinda =
>><<mailto:govinda.webdnatalk@gma= il.com
>> >govinda.webdnatalk@gmail.com<= /a>> wrote:
>>
>> Ki,
>>
>> I = don't think so.
>>
>> But with webdna you don't need = it either. If you are
>>not able to do
>> what you = want, then post the problem, someone will
>>surely guide you =
>> to the solution.
>>
>>
>> On Aug = 4, 2009, at 12:07 PM, Ki Song - Knifecenter.com =
>>wrote:
>>
>> Is something like this = possible in a search context:
>>
>> = &asSKUsort=3D2&deON HANDsort=3D1&ON = HANDtype=3Dbool
>>
>> Can a data type be type boolean = in a search context?
>>
>> -----------
>> Ki = Song
>>
>>
>> ------------
>> John = Butler (Govinda)
>> <
mailto:govinda.webdnatalk@gma= il.com>govinda.webdnatalk@gmail.com<= /a>
>>
>>
>>
>> = ---------------------------------------------------------
>> = This message is sent to you because you are subscribed =
>>to
>> the mailing list
>><<
mailto:talk@webdna.us>talk@webdna.us>.
>> To = unsubscribe, E-mail to:
>><<mailto:talk-leave@webdna.us>talk-leave@webdna.us =
>> >
>> archives:
>><http://mail.webdna.us/l= ist/talk@webdna.us>http://mail.webdna.us/l= ist/talk@webdna.us
>> old archives:
>><http://dev.webdna.us/TalkLi= stArchive/>http://dev.webdna.us/TalkLi= stArchive/
>>
>>
>> --
>> Terry = Wilson | terry@terryfic.com | http://terryfic.com
>> http://WhosComing.com - a simplified, = affordable online
>>reservation
>> = system
>> http://TightJacket.com -- stylish = protection for your
>>laptop
>> = --------------------------------------------------------------------------=
>> Attitude is the only difference between ordeal and =
>>adventure.
>> = ---------------------------------------------------------
>> = This message is sent to you because you are subscribed =
>>to
>> the mailing list <talk@webdna.us>.
>> To = unsubscribe, E-mail to: <talk-leave@webdna.us>
>&= gt; archives: http://mail.webdna.us/l= ist/talk@webdna.us
>> old archives: http://dev.webdna.us/TalkLi= stArchive/
>

 
=

= --Apple-Mail-9-602977347-- --Apple-Mail-10-602977443 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGGTCCAtIw ggI7oAMCAQICEBmvvAg5L6PclE8ruwo/gMYwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MDkyNzAxMTg1M1oXDTA5MDkyNzAxMTg1 M1owPjEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEbMBkGCSqGSIb3DQEJARYMcG1A d2ViZG5hLnVzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtb7ZYYJV7sbgqxdgpBU/ qCRsIJYGN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3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECEBmvvAg5L6PclE8ruwo/gMYwgYcGCyqG SIb3DQEJEAILMXigdjBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcg KFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EC EBmvvAg5L6PclE8ruwo/gMYwDQYJKoZIhvcNAQEBBQAEggEAUjrkVf1zbrC2gDhIwnnGLBOGwp4n ZFr813ZFOFR2sEvzr7I6iOuYp4P2Skcx731XkQmLB7MaaYU+ZGdEz4WwRMg2b0Vt84B+vfQYaZHq 96u2r2D7mY5sIpqXgTh3eXyfd1o0LCOE1BUmmLYUHGZNxdvXg5Rr8rrYJ5bIAL/LeGGMd4NlJ/zZ H3uGBFbhTYLZMwk6yG+uu1rXMKh0EsSZuEvInFwbIsdkNlLQ5tID2v32QZke9EKrK0ySa26/OXOE IqCQhdOSInZIPcgGgOWUG9hTL+cwNJkfXUEUIn4Uo9BEj5ZgRffGuEG85F5eHsoQ8Dm7bNyQE3KW J33Pdqk26gAAAAAAAA== --Apple-Mail-10-602977443-- Patrick McCormick

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:

Tech question about web dna actions (1998) [Request] - SQL Search (2000) any idea (2004) Same Database needed on two machines (2002) SKU lookup (1997) Re(2): MASTER_STORE revision (2002) Webcatalog, Webstar and Crasharama (1999) OS X permissions to write to Globals directory (2003) Location of Browser Info.txt file (1997) [OT] Merchant Accounts (2007) Opinion: [input] should be called [output] ... (1997) BUG in [showif] using ^ (contains) (1997) Webcatalog, Webstar and Crasharama (1999) Calendar (1997) Trouble with formula.db + more explanation (1997) Problems with v4.01 email (2000) lookup (1998) .eml files (2001) HELP! Search finding too much! (1998) [WebDNA] OT: PHP on lighttpd (2013)