Re: [WebDNA] Middle Question

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112016
interpreted = N
texte = I might have more thoughts on the matter, but my suggestions the other day were just the ones that occurred to me at that time. Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Web Database Systems and Linux Server Management On 01/22/2015 03:49 PM, Christophe Billiottet wrote: > We are working with [middle] to give it more power. What would you > like to get in the next version? I took note of the "startbefore" > and "endafter" options suggested few days ago, but I am interested > if someone has more ideas. > > - Chris > > > > On 23 Jan 2015, at 00:36, Steve Craig > wrote: > > I’ve always wondered if startafter and endafter were valid options > but never got round to testing. [Middle] has never really done > what I thought it should. > > Cheers > ======================================== > Steve Craig - Asylum Interactive > Tel +44 1330 860550 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > >> On 22 Jan 2015, at 21:29, David Bastedo > > wrote: >> >> For EndBefore, the docs say: String of text characters to search >> for defining the end of the text to be returned. All following >> text (and the EndBefore text itself) will be ignored. --> this >> suggests that it should ignore everything after this, including >> the stop token itself. >> >> so, the block I am trying to remove: > content="Toronto Star copyeditor edits memo announcing the >> elimination of copyeditor jobs" /> >> >> by using : property="og:title" as my starting point >> and ideally, I want to use: " / as my end point. >> >> According to the docs, I should then get: content="Toronto Star >> copyeditor edits memo announcing the elimination of copyeditor jobs >> >> >> regardless, it isn't working and it is returning the rest of the >> page after the place where it is supposed to stop. It is not >> stopping. >> If I url the start and end, I get the same result - no stoppage. >> >> >> >> [text]theOutPut=[tcpconnect host=boingboing.net >> ][!] >> [/!][tcpsend skipheader=T]GET >> /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!] >> [/!][UnURL]%0D%0A[/Unurl]Host: boingboing.net >> [UnURL]%0D%0A%0D%0A[/UnURL][UnURL]%0D%0A[/Unurl][!] >> [/!][/tcpsend][/tcpconnect][/text] >> >> [text]myProp2=[middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]" >> /[/url]][theOutPut][/middle][/text] >> myProp2: [myProp2]
>> >> >> Theoretically, I should be able to stop middle on the first quot >> that it runs into, as opposed to " / and I'd take />, but this >> breaks middle: >> >> [middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]/>[/url]][theOutPut][/middle] >> >> this I get the same result : >> [middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]/[/url]][theOutPut][/middle] >> as >> >> [middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]" >> /[/url]][theOutPut][/middle] >> >> and >> [middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]"[/url]][theOutPut][/middle] >> >> >> none of these will stop anything past the endpoint from >> displaying.... any ideas? >> >> d. >> >> >> On Thu, Jan 22, 2015 at 2:24 PM, Kenneth Grome >> > wrote: >> >> endbefore works from the end of the specified text, thus you >> should expect this: >> >> content="Toronto Star copyeditor edits memo announcing the >> elimination of copyeditor jobs" /> >> >> > content="http://boingboing.net/2009/11/07/toronto-star-copyedi.html" >> /> >> > content="http://craphound.com/images/torstarsubsnit.jpeg" >> >> Regards, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> Web Database Systems and Linux Server Management >> >> >> On 01/22/2015 12:52 PM, David Bastedo wrote: >> > Is there somebody who can shed some light on the proper use of >> > [middle]. It's not behaving as I would expect. >> > >> > I am attempting to extract open graph meta data from html after >> > grabbing it via [tcpconnect] >> > >> > so here is a sample of what I want to extract: >> > >> > >> > >> > >> > >> > >> > >> > given this code: >> > [text]theOutPut=[tcpconnect host=boingboing.net >> > >][!] >> > [/!][tcpsend skipheader=T]GET /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!] >> > [/!][UnURL]%0D%0A[/Unurl]Host: boingboing.net >> > >[UnURL]%0D%0A%0D%0A[/UnURL][UnURL]%0D%0A[/Unurl][!] >> > [/!][/tcpsend][/tcpconnect][/text] >> > >> > [text]myProp=[middle startafter=property="og:title"&endbefore=" /][theOutPut][/middle][/text] >> > >> > myProp: [myProp]
>> > >> > I would expect MyPprop to return: content="Toronto Star copyeditor edits memo announcing the elimination of copyeditor jobs >> > >> > but, it is returning: myProp: content="Toronto Star copyeditor >> > edits memo announcing the elimination of copyeditor jobs" /> and >> > the rest of the page >> > >> > If I url everything, it doesn't work at all. Theoretically, middle >> > is built for exactly this purpose and I should be able to run a >> > series of Middles to extract specific og tags that I pre-describe. >> > >> > i'm using 6.2 >> > >> > Thanks in advance! >> > >> > d. >> > >> > >> > >> > --------------------------------------------------------- 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 Bug Reporting: >> > support@webdna.us >> --------------------------------------------------------- >> 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 >> Bug Reporting: support@webdna.us >> >> >> >> >> -- >> David Bastedo >> Ten Plus One Communications Inc. >> http://www.10plus1.com >> 416.277.4499 >> --------------------------------------------------------- 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 Bug Reporting: >> support@webdna.us > > --------------------------------------------------------- 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 Bug Reporting: > support@webdna.us > --------------------------------------------------------- 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 Bug Reporting: > support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  2. Re: [WebDNA] Middle Question (christophe.billiottet@webdna.us 2015)
  3. Re: [WebDNA] Middle Question (David Bastedo 2015)
  4. Re: [WebDNA] Middle Question (Tom Duke 2015)
  5. Re: [WebDNA] Middle Question (christophe.billiottet@webdna.us 2015)
  6. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  7. Re: [WebDNA] Middle Question (David Bastedo 2015)
  8. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  9. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  10. Re: [WebDNA] Middle Question (David Bastedo 2015)
  11. Re: [WebDNA] Middle Question (Terry Wilson 2015)
  12. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  13. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  14. Re: [WebDNA] Middle Question (David Bastedo 2015)
  15. Re: [WebDNA] Middle Question (David Bastedo 2015)
  16. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  17. Re: [WebDNA] Middle Question (Terry Wilson 2015)
  18. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  19. Re: [WebDNA] Middle Question (Chris 2015)
  20. Re: [WebDNA] Middle Question (Chris 2015)
  21. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  22. Re: [WebDNA] Middle Question (Steve Craig 2015)
  23. Re: [WebDNA] Middle Question (David Bastedo 2015)
  24. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  25. [WebDNA] Middle Question (David Bastedo 2015)
I might have more thoughts on the matter, but my suggestions the other day were just the ones that occurred to me at that time. Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Web Database Systems and Linux Server Management On 01/22/2015 03:49 PM, Christophe Billiottet wrote: > We are working with [middle] to give it more power. What would you > like to get in the next version? I took note of the "startbefore" > and "endafter" options suggested few days ago, but I am interested > if someone has more ideas. > > - Chris > > > > On 23 Jan 2015, at 00:36, Steve Craig > wrote: > > I’ve always wondered if startafter and endafter were valid options > but never got round to testing. [middle] has never really done > what I thought it should. > > Cheers > ======================================== > Steve Craig - Asylum Interactive > Tel +44 1330 860550 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > >> On 22 Jan 2015, at 21:29, David Bastedo > > wrote: >> >> For EndBefore, the docs say: String of text characters to search >> for defining the end of the text to be returned. All following >> text (and the EndBefore text itself) will be ignored. --> this >> suggests that it should ignore everything after this, including >> the stop token itself. >> >> so, the block I am trying to remove: > content="Toronto Star copyeditor edits memo announcing the >> elimination of copyeditor jobs" /> >> >> by using : property="og:title" as my starting point >> and ideally, I want to use: " / as my end point. >> >> According to the docs, I should then get: content="Toronto Star >> copyeditor edits memo announcing the elimination of copyeditor jobs >> >> >> regardless, it isn't working and it is returning the rest of the >> page after the place where it is supposed to stop. It is not >> stopping. >> If I url the start and end, I get the same result - no stoppage. >> >> >> >> [text]theOutPut=[tcpconnect host=boingboing.net >> ][!] >> [/!][tcpsend skipheader=T]GET >> /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!] >> [/!][unurl]%0D%0A[/Unurl]Host: boingboing.net >> [unurl]%0D%0A%0D%0A[/UnURL][unurl]%0D%0A[/Unurl][!] >> [/!][/tcpsend][/tcpconnect][/text] >> >> [text]myProp2=[middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]" >> /[/url]][theOutPut][/middle][/text] >> myProp2: [myProp2]
>> >> >> Theoretically, I should be able to stop middle on the first quot >> that it runs into, as opposed to " / and I'd take />, but this >> breaks middle: >> >> [middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]/>[/url]][theOutPut][/middle] >> >> this I get the same result : >> [middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]/[/url]][theOutPut][/middle] >> as >> >> [middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]" >> /[/url]][theOutPut][/middle] >> >> and >> [middle >> startafter=[url]property="og:image"[/url]&endbefore=[url]"[/url]][theOutPut][/middle] >> >> >> none of these will stop anything past the endpoint from >> displaying.... any ideas? >> >> d. >> >> >> On Thu, Jan 22, 2015 at 2:24 PM, Kenneth Grome >> > wrote: >> >> endbefore works from the end of the specified text, thus you >> should expect this: >> >> content="Toronto Star copyeditor edits memo announcing the >> elimination of copyeditor jobs" /> >> >> > content="http://boingboing.net/2009/11/07/toronto-star-copyedi.html" >> /> >> > content="http://craphound.com/images/torstarsubsnit.jpeg" >> >> Regards, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> Web Database Systems and Linux Server Management >> >> >> On 01/22/2015 12:52 PM, David Bastedo wrote: >> > Is there somebody who can shed some light on the proper use of >> > [middle]. It's not behaving as I would expect. >> > >> > I am attempting to extract open graph meta data from html after >> > grabbing it via [tcpconnect] >> > >> > so here is a sample of what I want to extract: >> > >> > >> > >> > >> > >> > >> > >> > given this code: >> > [text]theOutPut=[tcpconnect host=boingboing.net >> > >][!] >> > [/!][tcpsend skipheader=T]GET /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!] >> > [/!][unurl]%0D%0A[/Unurl]Host: boingboing.net >> > >[unurl]%0D%0A%0D%0A[/UnURL][unurl]%0D%0A[/Unurl][!] >> > [/!][/tcpsend][/tcpconnect][/text] >> > >> > [text]myProp=[middle startafter=property="og:title"&endbefore=" /][theOutPut][/middle][/text] >> > >> > myProp: [myProp]
>> > >> > I would expect MyPprop to return: content="Toronto Star copyeditor edits memo announcing the elimination of copyeditor jobs >> > >> > but, it is returning: myProp: content="Toronto Star copyeditor >> > edits memo announcing the elimination of copyeditor jobs" /> and >> > the rest of the page >> > >> > If I url everything, it doesn't work at all. Theoretically, middle >> > is built for exactly this purpose and I should be able to run a >> > series of Middles to extract specific og tags that I pre-describe. >> > >> > i'm using 6.2 >> > >> > Thanks in advance! >> > >> > d. >> > >> > >> > >> > --------------------------------------------------------- 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 Bug Reporting: >> > support@webdna.us >> --------------------------------------------------------- >> 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 >> Bug Reporting: support@webdna.us >> >> >> >> >> -- >> David Bastedo >> Ten Plus One Communications Inc. >> http://www.10plus1.com >> 416.277.4499 >> --------------------------------------------------------- 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 Bug Reporting: >> support@webdna.us > > --------------------------------------------------------- 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 Bug Reporting: > support@webdna.us > --------------------------------------------------------- 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 Bug Reporting: > support@webdna.us 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:

Associative lookup style? + bit more (1997) serial number generation (1997) Adding up line items. (2000) Emailer on NT not working. (1999) New Site WebCat (1997) extending webDNA (2004) IIS4b2 and WebCatalog b19 (1997) [OT] Who's got a cool link (2002) Using Cookie for client specific info? (1997) Can WC remember people? (1998) Sorting by date (1997) displaying New products (using [date]) (1997) ImageMagick (2003) But with European Dates? (2006) ShowIf & HideIf Question? (1998) Next X hits (1996) Tech question about web dna actions (1998) OT - royalty free images (2002) setting taxable to true (1997) Alpha List for Catagory (1998)