Re: extract by delimiter

2010-12-28 Thread Jan Schenkel
--- On Tue, 12/28/10, Thomas McGrath III wrote: > > put url "http://weather.yahooapis.com/forecastrss?w=22664069&u=f"; > into field 1 > > gets an xml like page of data. So I just extracted the > yweather: info I needed: > > example: > region="PA"   country="United States"/> > > Then I replace

Re: extract by delimiter

2010-12-28 Thread Jeffrey Massung
Salt Lake City, UT of all places. Been to Jersey once, never want to revisit that experience if I can help it. I miss PA. ;-) On Dec 28, 2010, at 8:58 PM, Thomas McGrath III wrote: > Jeff, That's awesome. I live there now. Where do you live now? (Don't tell me > NJ ? I grew up in Jersey 30 year

Re: extract by delimiter

2010-12-28 Thread Thomas McGrath III
Chris, I was doing just that. Testing Yahoo and then Google's api. I will check into the NOAA next. Thanks for the heads up. It puts out a lot of data over the others. I like the raw lat/long concept. It won't be more than once an hour, so that's ok. I did find the way to skip the WOEIDs and g

Re: extract by delimiter

2010-12-28 Thread Thomas McGrath III
Very nice Jim. Thanks for the tips. I still get hung up sometimes with the 1 to -1 . It's like my mind says isn't that like 0? Ha, and then I laugh and put it in anyway, but it is not the first thing that comes to mind. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On De

Re: extract by delimiter

2010-12-28 Thread Jim Ault
To remove leading and trailing white space (space, tab...) repeat with x = 1 to the number of lines in tTemp put word 1 to -1 of line x of tTemp into line x of tTemp end repeat if line x of tTemp is quote then delete line x of tTemp [use]filter tTemp without quote

Re: extract by delimiter

2010-12-28 Thread Nonsanity
I've tested both Yahoo and Google's (undocumented) REST APIs for weather, but settled on NOAA's: http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdXMLclient.php?lat=38.99&lon=-77.01&product=glance&begin=2010-12-28T00:00:00&end=2011-01-03T00:00:00<%20http://www.weather.gov/

Re: URL(tUrl) inconsitencies in iOS Simulator

2010-12-28 Thread RevList
How to use LiveCode on December 28, 2010 at 8:26 PM -0800 wrote: >Also check the letter case since iOS is case sensitive. Yes, I am aware of that and have checked all cases. Strange that it works once and not again. Perhaps it does have something to do with a missing API key. I will investigate

Re: URL(tUrl) inconsitencies in iOS Simulator

2010-12-28 Thread RevList
How to use LiveCode on December 28, 2010 at 6:32 PM -0800 wrote: >Are you using your Google Maps API key? The query will work in a browser, >or I guess from the message box, but I think that for it to be from an >application you would need to be using the key that you were given in >some way. I di

Re: URL(tUrl) inconsitencies in iOS Simulator

2010-12-28 Thread Thomas McGrath III
Also check the letter case since iOS is case sensitive. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Dec 28, 2010, at 9:32 PM, Colin Holgate wrote: > Are you using your Google Maps API key? The query will work in a browser, or > I guess from the message box, but I thin

Re: extract by delimiter

2010-12-28 Thread Thomas McGrath III
By the way I tried all of the examples posted to better see what I was missing. I'm a visual oriented person and so I went with steps I could see. Only one problem in removing leading spaces, I took the lazy way out after getting confused again with multiple repeat loops etc. So here is what I

Re: extract by delimiter

2010-12-28 Thread Thomas McGrath III
Jeff, That's awesome. I live there now. Where do you live now? (Don't tell me NJ ? I grew up in Jersey 30 years ago) -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Dec 28, 2010, at 7:47 PM, Jeffrey Massung wrote: > > On Dec 28, 2010, at 3:58 PM, Thomas McGrath III wrot

Re: extract by delimiter

2010-12-28 Thread Thomas McGrath III
YES, that did extract what I needed and I can easily clean up the spaces and extra data. I had to read thru that five times before I saw the pattern and why it was working. At first it was like magic Now I have what I need: location city="Bethel Park" region="PA" country="United States" unit

Re: extract by delimiter

2010-12-28 Thread Thomas McGrath III
put url "http://weather.yahooapis.com/forecastrss?w=22664069&u=f"; into field 1 gets an xml like page of data. So I just extracted the yweather: info I needed: example: Then I replace "<" with "" in field 1 etc till I got the data that I was left with before -- Tom McGrath III http://lazyriv

Re: URL(tUrl) inconsitencies in iOS Simulator

2010-12-28 Thread Colin Holgate
Are you using your Google Maps API key? The query will work in a browser, or I guess from the message box, but I think that for it to be from an application you would need to be using the key that you were given in some way. ___ use-livecode mailing

URL(tUrl) inconsitencies in iOS Simulator

2010-12-28 Thread RevList
I am working on an application for tracking mileage. In my app I determine the longitude and latitude of a site and then calclulate the driving distance between them using the GoogleMaps API. A snippet of the code is like this, with a populated pOrigin and pDestination This works 100% of the time

Update Your Megabundle 2009 - Limited Time Offer

2010-12-28 Thread Lynn Fredricks
Hello all, If you participated in the Megabundle 2009 and didn't get our heads up note, well, take note :-) We are running a special offer on franklin3d.com to do the following, which includes 12 months of updates for each product: - Update Your Valentina for LiveCode to ADK+. This adds Valentin

Re: extract by delimiter

2010-12-28 Thread Mark Wieder
Jeff- Tuesday, December 28, 2010, 4:47:02 PM, you wrote: > So, most others have sent you excellent suggestions. I just find > it funny that the little town you mention just happened to be the > place I was born. ;-) You could probably save Tom a lot of trouble if you just tell him what the weath

Re: extract by delimiter

2010-12-28 Thread Jeffrey Massung
On Dec 28, 2010, at 3:58 PM, Thomas McGrath III wrote: > I am stuck. I've been trying to extract text from an RSS feed and so far I > have the information I need but am stuck at extracting it into a better > format. Here is what I have so far: > > location city="Bethel Park" region="PA" coun

Re: extract by delimiter

2010-12-28 Thread Mike Bonner
Wow, 300 replies while I was typing! On Tue, Dec 28, 2010 at 5:11 PM, Mike Bonner wrote: > Its not pretty, but will this help? > >put field 1 into tText -- where I put your sample data >put "=" & quote into tReplace >replace tReplace with "=" in tText >replace quote with cr in tT

Re: extract by delimiter

2010-12-28 Thread Mike Bonner
Its not pretty, but will this help? put field 1 into tText -- where I put your sample data put "=" & quote into tReplace replace tReplace with "=" in tText replace quote with cr in tText filter tText without empty if the last char of tText is cr then delete the last char of tText

Re: extract by delimiter

2010-12-28 Thread Jim Ault
Try this approach, since this is an XML-like format that you need to unwind to database style. every line begins with word 1 as a category then a string of attributes as attrib="string with spaces" - working code --- on parseToArray put fld 1 into block --your data

Re: extract by delimiter

2010-12-28 Thread Nonsanity
If that's the block of text you have to work with, set itemdel to quote and use the odd items (delete last char) for the keys of an array, and the even items as the values. set itemdel to quote repeat with a = 1 to the number of items in mydata step 2 put word 1 to -1 of item a of myda

Re: extract by delimiter

2010-12-28 Thread Colin Holgate
Try this as a starting point: replace quote&space with quote&return in fld 1 Now, with = as the itemdelimiter, the first item on each line is the label, and the second item is the value. ___ use-livecode mailing list use-livecode@lists.runrev.com Ple

Re: extract by delimiter

2010-12-28 Thread Mark Wieder
Colin- Tuesday, December 28, 2010, 3:41:51 PM, you wrote: > On Dec 28, 2010, at 6:35 PM, dunb...@aol.com wrote: >> You get your data parsed with colons. I tried to parse it with Colins, but >> that feature is not yet supported. > Being not so tall, I'm a semicolin. If you were supported you'd

Re: extract by delimiter

2010-12-28 Thread DunbarX
I see that more items need to be extracted in some lines. I see that leading spaces in some of the colon delimited items need to be removed. But the question is this: What is the best way to attack? The fun data crunching LC way, or trying, as almost everyone else has suggested, looking at the

Re: extract by delimiter

2010-12-28 Thread Colin Holgate
On Dec 28, 2010, at 6:35 PM, dunb...@aol.com wrote: > You get your data parsed with colons. I tried to parse it with Colins, but > that feature is not yet supported. Being not so tall, I'm a semicolin. ___ use-livecode mailing list use-livecode@lis

Re: extract by delimiter

2010-12-28 Thread DunbarX
Tony, If you have a field "data" with your text, and a fld "accum", then in a button somewhere: on mouseUp put fld "data" into temp set the itemdelimiter to quote repeat with y = 1 to the number of lines of temp put item 1 to 2 of line y of temp & ":" & item 3 to 4 of line

Re: glx2

2010-12-28 Thread Thunder
Some Info : http://runrev.com/newsletter/november/issue37/newsletter4.php http://runrev.com/newsletter/october/issue35/newsletter2.php http://runrev.com/newsletter/september/issue33/newsletter1.php -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/glx2-tp3082801p

Re: extract by delimiter

2010-12-28 Thread Colin Holgate
Can you say where the RSS feed is located? It almost looks like the problem could have been fixed at an earlier stage. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscrip

Re: extract by delimiter

2010-12-28 Thread Warren Samples
On Tue, 2010-12-28 at 17:58 -0500, Thomas McGrath III wrote: > I am stuck. I've been trying to extract text from an RSS feed and so far I > have the information I need but am stuck at extracting it into a better > format. Here is what I have so far: > > location city="Bethel Park" region="PA"

Re: extract by delimiter

2010-12-28 Thread DunbarX
Tony. Isnt every complex "item" here delimited by the second quote? I t seems you could parse the data that way. Craig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscript

Re: extract by delimiter

2010-12-28 Thread Pierre Sahores
Tom, Did you try to open your RSS feed source in using TextWrangler (free) and test what can be seen in picking the "show tab stops" and "show invisibles" items from the "text options" menu item ? There is certainly something used as an (invisible?) delimiter by the RSS readers... HTH Pierre

extract by delimiter

2010-12-28 Thread Thomas McGrath III
I am stuck. I've been trying to extract text from an RSS feed and so far I have the information I need but am stuck at extracting it into a better format. Here is what I have so far: location city="Bethel Park" region="PA" country="United States" units temperature="F" distance="mi" pressure="i

Re: Was: revMail and Bcc - now: How do you contact the mothership?

2010-12-28 Thread Sarah Reichelt
The new command to use instead of revGoURL is launch URL. Try this with a mailto link and see if it does what you heed. Cheers, Sarah Sent from my iPad On 28/12/2010, at 10:38 PM, william humphrey wrote: > I was thinking about my problem with the livecode command revmail not having > the abil

Re: Was: revMail and Bcc - now: How do you contact the mothership?

2010-12-28 Thread william humphrey
Thanks. I've never tried it. I'll send them a suggestion for the revMail function to be more useful. On Tue, Dec 28, 2010 at 1:50 PM, Shao Sean wrote: > supp...@runrev.com > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please vis

Re: Join many PDF into one

2010-12-28 Thread Jim Schaubeck
Nice app...I could *really* use that capability (to combine scans) but my stores are Windows :-) __ jim schaubeck 714-321-4499 On 12/27/2010 3:07 PM, Mark Schonewille wrote: Hi, I have a little app created with Automator. It runs as a standalone app

Was: revMail and Bcc - now: How do you contact the mothership?

2010-12-28 Thread Shao Sean
supp...@runrev.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Was: revMail and Bcc - now: How do you contact the mothership?

2010-12-28 Thread william humphrey
I was thinking about my problem with the livecode command revmail not having the ability to "BCC" and the livecode command revGOURL which it says in the dictionary that we shouldn't use and my question is how do you contact the mother ship? How do you let the people who we bought livecode from know

RevOnline: New version of Shell Command Help

2010-12-28 Thread Phil Davis
Hi folks, I just uploaded a new version of the Shell() Command Help plugin. New features: - Search for words in the displayed help text. - Print the displayed help text. - Use arrow keys to retrieve previous commands (like the LC message box). Enjoy! -- Phil Davis PDS Labs Professional Softwar