--- 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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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"
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
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
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
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
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
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
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
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
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
39 matches
Mail list logo