Thinking the unthinkable.

2013-02-04 Thread Richmond
What happens if, at the end of February, the Kickstart fund has not 
reached its target?


Does that mean that all the hype, thought and advertising about an O-S 
Livecode variant

goes down the toilet?

Or are we to expect an extension of the date at which the target should 
be fulfilled?


Richmond.

___
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


Re: Open source, LC server and revigniter

2013-02-04 Thread David Bovill
Not quite true the
GPLv3http://www.gnu.org/licenses/quick-guide-gplv3.htmlincludes the

affero http://en.wikipedia.org/wiki/Affero_General_Public_License clause
- this is designed to include the more modern concept of web apps. That is
hosting a publicly available web service using GPLv3 licences code is
considered equivalent to physically distributing the code and therefore you
must release any other code linked to your service under the amse GPLv3
license.

On 3 February 2013 11:50, Monte Goulding mo...@sweattechnologies.comwrote:

 Unless you are distributing you web app code with LC Server then it won't
 be under GPL as far as I know. Just like using MySQL for your server db.

___
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


Re: Open source, LC server and revigniter

2013-02-04 Thread Kevin Miller
We're not using the AGPL. It is optional and we're not using it.

Kind regards,

Kevin

Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/
LiveCode: Unleash Your Killer App




On 04/02/2013 12:44, David Bovill da...@vaudevillecourt.tv wrote:

Not quite true the
GPLv3http://www.gnu.org/licenses/quick-guide-gplv3.htmlincludes the

affero http://en.wikipedia.org/wiki/Affero_General_Public_License
clause
- this is designed to include the more modern concept of web apps. That is
hosting a publicly available web service using GPLv3 licences code is
considered equivalent to physically distributing the code and therefore
you
must release any other code linked to your service under the amse GPLv3
license.

On 3 February 2013 11:50, Monte Goulding
mo...@sweattechnologies.comwrote:

Unless you are distributing you web app code with LC Server then it won't
be under GPL as far as I know. Just like using MySQL for your server db.

___
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




___
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


Re: Java, Apple and Pork Pies.

2013-02-04 Thread Colin Holgate
That article refers to a Mac OS version that is about 10 versions ago. It 
naturally has a different situation with Java.


On Feb 4, 2013, at 12:49 AM, Richmond richmondmathew...@gmail.com wrote:

 Supposedly Java is out for Apple; and this update would seem to bely that.

___
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


Re: Open source, LC server and revigniter

2013-02-04 Thread David Bovill
Ah good to know - my bad. Doesn't immediately strike me as in your
interests - though I can see some companies demanding this - still why you
don't simply require them to pay up for a commercial license on the server
like seems at odds with the overall strategy, and less likely to promote
open code on the server side?


On 4 February 2013 12:50, Kevin Miller ke...@runrev.com wrote:

 We're not using the AGPL. It is optional and we're not using it.

 Kind regards,

 Kevin

___
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


Re: Trying to make economic sense of open sourcing livecode

2013-02-04 Thread Dr. Hawkins
On Sun, Feb 3, 2013 at 2:38 AM, Peter Alcibiades
palcibiades-fi...@yahoo.co.uk wrote:
 It also has the potential to remove the Hypercard danger - that of being
 stuck in an orphaned product.  If its open sourced that can never happen.

The OSS branch can never get orphaned.  The commercial branch can, however . . .

Now I'm musing about ways to deal with that; perhaps an exception that
allows the proprietary standalone to be built if certain events occur?
 a cod escrow?


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462

___
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


Re: Open source, LC server and revigniter

2013-02-04 Thread Dave Kilroy2
Yes I agree, I don't see how RunRev will get any reward for having a server
version - and if they don't get any reward for it then it may be less likely
to be developed on an on-going basis.

I use TextMate to write code and upload to a server (whether I use
revigniter or not) - I'm not building a standalone or even uploading a stack
- so as far as I can see it will make no difference whether I use the
commercial or GPL version.

If I create and upload some stacks I guess I'll still be OK with the GPL
version as I'm not building a standalone?

If I build a standalone and upload that only then will need a commercial
licence (unless I also make source code available) 

Or maybe RunRev are happy to have the server version as a loss-leader?

Dave



Ah good to know - my bad. Doesn't immediately strike me as in your
interests - though I can see some companies demanding this - still why you
don't simply require them to pay up for a commercial license on the server
like seems at odds with the overall strategy, and less likely to promote
open code on the server side?




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Open-source-LC-server-and-revigniter-tp4660146p4660180.html
Sent from the Revolution - User mailing list archive at Nabble.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


filter with a tab character

2013-02-04 Thread FlexibleLearning.com
I have tab-delimited list and am trying to filter lines.


Q1. How do we include a TAB character in the expression? Using filter with
*\tsomeText fails.

Q2. How do we specify a maximum numeric value? Using filter with *[18]
fails.


Have tried reading up on Bourne Shell but am totally confused!

Thanks.

Hugh Senior
FLCo


___
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


Re: filter with a tab character

2013-02-04 Thread Klaus on-rev
Hi Hugh,

Am 04.02.2013 um 18:04 schrieb FlexibleLearning.com 
ad...@flexiblelearning.com:

 I have tab-delimited list and am trying to filter lines.
 
 
 Q1. How do we include a TAB character in the expression? Using filter with
 *\tsomeText fails.

use the contant TAB:
...
filter tList with (*  TAB  whatever)
...

 Q2. How do we specify a maximum numeric value? Using filter with *[18]
 fails.

Sorry, no idea. 
Maybe with some RegeEx?

 Have tried reading up on Bourne Shell but am totally confused!
 
 Thanks.
 
 Hugh Senior
 FLCo

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Re: Open source, LC server and revigniter

2013-02-04 Thread Richard Gaskin

Dave Kilroy2 wrote:

Yes I agree, I don't see how RunRev will get any reward for having a server
version - and if they don't get any reward for it then it may be less likely
to be developed on an on-going basis.


When you think about it, LiveCode Server isn't much different from the 
main engine:  the merge function is extended and implicit, and the GUI 
handling is turned off automatically so you don't need to pass -ui to it.


With the if-defs they use to compile it already set up, I can't imagine 
it's much work to maintain it going forward.




Or maybe RunRev are happy to have the server version as a loss-leader?


Yes.

The AGPL was created for one fairly recent project, Affero (the A in 
AGPL) in 2007.


It's useful if that's what you need, but it's one of the least commonly 
used licenses around, often considered too strict for most projects. 
I'd be surprised if as many as a dozen other projects have adopted it 
thus far.


Meanwhile, MySQL has flourished under GPL.  Most of us use it for free, 
but when you need to bundle your app with it then you get to have a 
conversation with Oracle's licensing department; same with LiveCode Server.


LiveCode is nearly unmatched for making multi-platform GUI apps, but 
LiveCode server doesn't have nearly the competitive advantages over 
readily-available alternatives.


PHP, for example, has a vast community, uncountable libraries, books, 
and tutorials available, and is already both multi-threaded and 64-bit 
compatible.  Moreover, PHP is available for free under the very 
permissive PHP License, and is pre-installed on most commercial hosting 
systems.


LiveCode's syntax has some nice conveniences, but for serious work its 
main benefit is for those who need to share code used also in 
LiveCode-based GUI apps, or to rely on coding skills acquired from using 
LiveCode in GUIs.


As a for-fee product, LiveCode Server is a hard sell.  But available for 
free use under GPL, it would at last have a chance to enchant newcomers 
with its unusually inviting syntax.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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


Re: filter with a tab character

2013-02-04 Thread Richard Gaskin

Klaus wrote:

Am 04.02.2013 um 18:04 schrieb FlexibleLearning.com:


I have tab-delimited list and am trying to filter lines.

Q1. How do we include a TAB character in the expression? Using filter with
*\tsomeText fails.


use the contant TAB:
...
filter tList with (*  TAB  whatever)



While the filter command is seductively simple to use, if your rows have 
many columns and you're filtering on one several columns in, you may 
find repeat for each will be more efficient:


http://article.gmane.org/gmane.comp.ide.revolution.user/72192/match=filter+tab+gaskin


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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


Re: just for fun: pop quiz

2013-02-04 Thread Mark Wieder
Jerry Jensen jhj@... writes:

  On 2/3/13 3:08 PM, Mark Wieder wrote:
  Yeah, interesting point. I'm not sure what EOF means in that case
  either. Is that I received an EOF char from the port?
 
 I don't think EOF is meaningful with a serial driver. The closest character is
Ctrl-D, EOT, end of transmission.

Thanks. Yes, I meant EOT. If EOF for a file stream means you've gotten to the
end then possibly EOF for a serial stream could mean you've received an EOT 
char.

-- 
 Mark Wieder
 mwie...@ahsoftware.net





___
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


Re: to find the first numeric line?

2013-02-04 Thread Richard Gaskin

Bravo.

Most xTalk binary search algos depend on line-counting, which still 
requires considerable under-the-hood effort as the engine needs to 
traverse chunks to count CRs, over and over again.


Your byte-based algo us much better - thanks for posting that.

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys


Alex Tweedly wrote:

So I went back, did the thinking, eliminated kBrute (and thankfully the
need for an unnecessary assumption/requirement to limit line length).  I
also changed it so that when we are about to test, we always have a
complete line identified - and so it is much easier to adapt the code
for other purposes.

And - I changed the problem definition from
 Return the line number of the first line with a leading numeric
to
 return the character number of the first character of the first
line with a leading numeric

This is much more efficient to use outside the function, as well as more
efficient inside the function. The caller can now do something like

 put getCharacterPosition(myData) into tPos
 repeat for each line L in (char tPos to -1 of myData)
...

instead of
put getLinePosition(myData) into tLPos
repeat for each line L in (line tLPos to -1 of myData)
...

or
put line 1 of (char tPos to -1 of myData) into temp
rather than
   put line tLPos of Mydata into temp

Both of these are much more efficient (will save 10s or 100s of
millisecs in large data sets).

With these changes, the binary search can now do 10M lines of input in
typically 1 msec
Even the worst case I can think of (all 300 Million characters are in a
single line, no CRs anywhere), it gets a result in 1800 msec.

So - here's the code for anyone who needs an efficient binary search of
large string data.
-- Alex.


function f3 @pD
   local theResult
   local tLower, tUpper, tMid, c, t

   -- NB we are always going to maintain theResult as a feasible answer
   -- if there is no 'leading numeric' line, we answer with a number
beyond the input data
   put (the number of chars in pD) + 1 into theResult

   put 1 into tLower
   put theResult into tUpper
   put trunc( (tUpper + tlower ) / 2) into tMid

   repeat 1 times
  -- check for a CR in the upper half
  put the offset(CR, char tMid to tUpper of pD) into t
  if t = 0 or tMid + t = tUpper then
 -- there is no CR in upper half
 -- move tUpper down to near tMid.
 -- Can't just move it down to exactly tMid because of the
corner case
 -- where tMid to tUpper exactly spans the last line
 put tMid+1 into tUpper
  else
 -- there is a CR in this upper half, move tMid to just beyond it
 add t to tMid
 -- now tMid points to the start of a line
 -- do the test here - easy to adapt
 put char tMid of pD into c
 if c is a number then
put tMid into tUpper
put tMid into theResult
 else   --
put tMid into tLower
 end if
  end if

  put trunc( (tUpper + tLower ) / 2) into tMid
  if tMid = tLower then
 -- we're done, just decide if this single remaining line is a
candidate for the answer
 if char tMid of pD is a number then  -- do the test again !!
put tMid into theResult
 end if
 exit repeat
  end if

  if tMid = tLower+1 then
 -- tLower must point to the first char of an empty lie, so we
can increment over it
 put tMid into tLower
  end if
   end repeat

   return theResult

end f3





___
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


Re: filter with a tab character

2013-02-04 Thread Mike Bonner
I think you could also use \t to signify a tab char.

As for the matching a range of numbers you'd probably be better served to
have lc handle whatever is leftover. However, barring that, you might look
at this page: http://www.regular-expressions.info/numericranges.html for an
explanation of how to get it done.


On Mon, Feb 4, 2013 at 10:09 AM, Klaus on-rev kl...@major.on-rev.comwrote:

 Hi Hugh,

 Am 04.02.2013 um 18:04 schrieb FlexibleLearning.com
 ad...@flexiblelearning.com:

  I have tab-delimited list and am trying to filter lines.
 
 
  Q1. How do we include a TAB character in the expression? Using filter
 with
  *\tsomeText fails.

 use the contant TAB:
 ...
 filter tList with (*  TAB  whatever)
 ...

  Q2. How do we specify a maximum numeric value? Using filter with *[18]
  fails.

 Sorry, no idea.
 Maybe with some RegeEx?

  Have tried reading up on Bourne Shell but am totally confused!
 
  Thanks.
 
  Hugh Senior
  FLCo

 Best

 Klaus

 --
 Klaus Major
 http://www.major-k.de
 kl...@major.on-rev.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

___
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


issue PUT html command

2013-02-04 Thread Chris Sheffield
I'm not even sure that's the right terminology. This is kind of related to my 
last post about push notifications. I found a neat web site (urbanairship.com) 
that has a server set up for sending push notifications to mobile devices. As 
far as I can tell, it's free to use. I'm still researching the details. Does 
anyone know anything about them?

Anyway, they have an html api that allows for issuing certain commands, 
including registering device tokens, via PUT and GET. How do I do this with 
LiveCode? I haven't really done much of this kind of thing before. I'm sure 
it's easy, and will probably be obvious, but I'm not finding anything in the 
docs.

Can anyone help?

Thanks,
Chris


___
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


Re: Open source, LC server and revigniter

2013-02-04 Thread Kevin Miller
This is it exactly. When selecting the license we looked very closely at
the competitive landscape. GPL will play nicely given our competitive
strengths as a desktop/mobile framework. But to do AGPL with the server
version would be a mistake. We have a bigger hill to climb there and so we
need to attract the framework writers etc who will really make that
platform sing. If that can happen its good for the platform/language as a
whole.

The server version now its done isn't so hard to maintain. It doesn't need
much added and where it does that tends to overlap with the other
versions. For example, it needs the ability to draw objects and take
snapshots of stacks but that's something that will be enabled by other
work happening on the graphics stuff as part of the platform rework for
non-server platforms anyway.

Kind regards,

Kevin

Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/
LiveCode: Unleash Your Killer App




On 04/02/2013 17:17, Richard Gaskin ambassa...@fourthworld.com wrote:

LiveCode is nearly unmatched for making multi-platform GUI apps, but
LiveCode server doesn't have nearly the competitive advantages over
readily-available alternatives.

PHP, for example, has a vast community, uncountable libraries, books,
and tutorials available, and is already both multi-threaded and 64-bit
compatible.  Moreover, PHP is available for free under the very
permissive PHP License, and is pre-installed on most commercial hosting
systems.

LiveCode's syntax has some nice conveniences, but for serious work its
main benefit is for those who need to share code used also in
LiveCode-based GUI apps, or to rely on coding skills acquired from using
LiveCode in GUIs.

As a for-fee product, LiveCode Server is a hard sell.  But available for
free use under GPL, it would at last have a chance to enchant newcomers
with its unusually inviting syntax.




___
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


Re: Trying to make economic sense of open sourcing livecode

2013-02-04 Thread Mark Wieder
Dr. Hawkins dochawk@... writes:

 The OSS branch can never get orphaned.  The commercial branch can, however ...
 
 Now I'm musing about ways to deal with that; perhaps an exception that
 allows the proprietary standalone to be built if certain events occur?
  a cod escrow?

Thank you. I've been waiting for someone to notice this.

One of the obstacles to LiveCode's acceptance in the Real World is that there's
a single point of failure: what happens if something happens to RunRev? They go
out of business (now it's *me* thinking the unthinkable), they get acquired by
Larry Ellison, they do the HyperCard thing and just disappear...

With a closed source engine and no code escrow we're all out of luck. And that's
a serious impediment for any company that's thinking about investing their
future in LiveCode as a platform. By open-sourcing the engine we've got several
options. The community can take it forward, the code can get forked, our
investment is future-proof. The only things that wouldn't be covered are the
parts that you would need a commercial license for: stack protection, etc, and
that's the same situation we have today. It would be nice if a code escrow
arrangement could be worked out for those, but first things first.

-- 
 Mark Wieder
 mwie...@ahsoftware.net

...now that I've seen cod escrow I can't unsee it...




___
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


Re: Trying to make economic sense of open sourcing livecode

2013-02-04 Thread Kevin Miller
The stack protection code will not be in the GPL version and will not be
released. Stacks without protection will be interchangeable between GPL
and commercial, but the GPL version won't even be able to open stacks with
password protection.

Kind regards,

Kevin

Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/
LiveCode: Unleash Your Killer App




On 02/02/2013 00:44, Glen Bojsza gboj...@gmail.com wrote:

So given Kevin has said the stack protection code will be under GPL will
you stop using it?




___
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


Re: filter with a tab character

2013-02-04 Thread Paul Hibbert
filter searches for a pattern, not a value, so this can work to filter anything 
'less than 18', but would work to filter results with the chars , 1 or 8.

Paul

On 2013-02-04, at 9:04 AM, FlexibleLearning.com wrote:

 Q2. How do we specify a maximum numeric value? Using filter with *[18]
 fails.


___
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


Re: filter with a tab character

2013-02-04 Thread Paul Hibbert
Sorry, that should have read can't work not can work.

On 2013-02-04, at 9:48 AM, Paul Hibbert wrote:

 filter searches for a pattern, not a value, so this can work to filter 
 anything 'less than 18', but would work to filter results with the chars , 
 1 or 8.
 
 Paul
 
 On 2013-02-04, at 9:04 AM, FlexibleLearning.com wrote:
 
 Q2. How do we specify a maximum numeric value? Using filter with *[18]
 fails.
 
 
 ___
 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


___
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


Re: Open source, LC server and revigniter

2013-02-04 Thread Dave Kilroy2
Thanks all, I understand now :)


This is it exactly. 



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Open-source-LC-server-and-revigniter-tp4660146p4660194.html
Sent from the Revolution - User mailing list archive at Nabble.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


Re: issue PUT html command

2013-02-04 Thread Bernard Devlin
Have you seen this?  I got the Android version working.
http://lessons.runrev.com/m/4069/l/59312

At the time when I was looking at it (last summer, I think) it seemed that
the iOS version was more common (more worked out).

Bernard


On Mon, Feb 4, 2013 at 5:42 PM, Chris Sheffield cmsheffi...@icloud.comwrote:

 I'm not even sure that's the right terminology. This is kind of related to
 my last post about push notifications. I found a neat web site (
 urbanairship.com) that has a server set up for sending push notifications
 to mobile devices. As far as I can tell, it's free to use. I'm still
 researching the details. Does anyone know anything about them?

 Anyway, they have an html api that allows for issuing certain commands,
 including registering device tokens, via PUT and GET. How do I do this with
 LiveCode? I haven't really done much of this kind of thing before. I'm sure
 it's easy, and will probably be obvious, but I'm not finding anything in
 the docs.

 Can anyone help?

 Thanks,
 Chris


 ___
 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

___
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


Re: Open source, LC server and revigniter

2013-02-04 Thread Richard Gaskin

Kevin Miller wrote:

For example, it needs the ability to draw objects and take snapshots of
stacks but that's something that will be enabled by other work happening
on the graphics stuff as part of the platform rework for non-server
platforms anyway.


Wow.  So cool.  That'll obviate a lot of need for imagemagick, opening 
up many new doors for LC Server.


Will that be available next Tuesday?  :)

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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


Re: Open source, LC server and revigniter

2013-02-04 Thread Kevin Miller
Depends how much you pledge :)

In all seriousness though, there is an ongoing project on this front which
is definitely getting there now.

Kind regards,

Kevin

Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/
LiveCode: Unleash Your Killer App




On 04/02/2013 17:58, Richard Gaskin ambassa...@fourthworld.com wrote:

Kevin Miller wrote:
 For example, it needs the ability to draw objects and take snapshots of
 stacks but that's something that will be enabled by other work happening
 on the graphics stuff as part of the platform rework for non-server
 platforms anyway.

Wow.  So cool.  That'll obviate a lot of need for imagemagick, opening
up many new doors for LC Server.

Will that be available next Tuesday?  :)

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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



___
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


Re: issue PUT html command

2013-02-04 Thread Chris Sheffield
Bernard,

Yes, thank you. Actually, I've been looking at the one for iOS.

It talks about setting up your own server, but I don't have the know-how nor 
the resources right now to do that. So when I found Urban Airship I was happy. 
So I just need to figure out how to send this command and I should be good. Or, 
I could possibly create an external that wraps their Obj-C api instead. The bad 
thing is, I really only need one function, and that's the one that registers a 
device. So I thought an external might be overkill, since they have this other 
method.

Anyway, thanks for the link.

Chris


On Feb 4, 2013, at 10:53 AM, Bernard Devlin bdrun...@gmail.com wrote:

 Have you seen this?  I got the Android version working.
 http://lessons.runrev.com/m/4069/l/59312
 
 At the time when I was looking at it (last summer, I think) it seemed that
 the iOS version was more common (more worked out).
 
 Bernard
 
 
 On Mon, Feb 4, 2013 at 5:42 PM, Chris Sheffield cmsheffi...@icloud.comwrote:
 
 I'm not even sure that's the right terminology. This is kind of related to
 my last post about push notifications. I found a neat web site (
 urbanairship.com) that has a server set up for sending push notifications
 to mobile devices. As far as I can tell, it's free to use. I'm still
 researching the details. Does anyone know anything about them?
 
 Anyway, they have an html api that allows for issuing certain commands,
 including registering device tokens, via PUT and GET. How do I do this with
 LiveCode? I haven't really done much of this kind of thing before. I'm sure
 it's easy, and will probably be obvious, but I'm not finding anything in
 the docs.
 
 Can anyone help?
 
 Thanks,
 Chris
 
 
 ___
 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
 
 ___
 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


___
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


Re: filter with a tab character

2013-02-04 Thread Thierry Douez
2013/2/4 FlexibleLearning.com ad...@flexiblelearning.com

 I have tab-delimited list and am trying to filter lines.

 Q1. How do we include a TAB character in the expression? Using filter with
 *\tsomeText fails.


see \s below



 Q2. How do we specify a maximum numeric value? Using filter with *[18]
 fails.



on mouseUp
   local tmp
   put fld 1 into tList
   -- \s match space and tab
   -- get \s[0-9]\s -- any 0 to 9 single number
   -- get \s[1-4][0-9]\s -- accept  10 to 49
   -- get \s[1-4]\d\s -- accept  10 to 49
   -- get \s[1-4]?\d\s -- accept  0 to 49
   get \s[1-4]?(\d){1,3}\s -- accept  0 to 4999
   repeat for each line L in tList
  if matchText( L, IT ) then put L cr after tmp
   end repeat
   put tmp
end mouseUp

Forget about filter; it doesn't play with regex, just sort of...

my fld test contains:

hjkdf sdfsdflkj 987dsf sdf sdf
fgffg gf gf4998 fd ddf ddfd
fgffg gf gf5000 fd ddf ddfd
ere e re 1234567890e
gfgjfkgf dfglwer 0 fdfsla sdfsdf
gfgjfkgf dfglwer 42fdfsla sdfsdf
try tytry retert  41dfsdffdsd
sdflk; asdf 33dfdfdfsa dsfsdff
kjklj jlkjlk 7ljlkj lkjkjlkj jljljkl


And it's fast.

HTH,

Thierry
___
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


Re: filter with a tab character

2013-02-04 Thread Thierry Douez
Forgot one  which maybe you need:

   get \s([1-3]?\d|[4][0-2])\s -- accept 0 to 42

Regards,

Thierry


2013/2/4 Thierry Douez th.do...@gmail.com


 2013/2/4 FlexibleLearning.com ad...@flexiblelearning.com

 I have tab-delimited list and am trying to filter lines.

 Q1. How do we include a TAB character in the expression? Using filter with
 *\tsomeText fails.


 see \s below



 Q2. How do we specify a maximum numeric value? Using filter with *[18]
 fails.



 on mouseUp
local tmp
put fld 1 into tList
-- \s match space and tab
-- get \s[0-9]\s -- any 0 to 9 single number
-- get \s[1-4][0-9]\s -- accept  10 to 49
-- get \s[1-4]\d\s -- accept  10 to 49
-- get \s[1-4]?\d\s -- accept  0 to 49
get \s[1-4]?(\d){1,3}\s -- accept  0 to 4999
repeat for each line L in tList
   if matchText( L, IT ) then put L cr after tmp
end repeat
put tmp
 end mouseUp

 Forget about filter; it doesn't play with regex, just sort of...

 my fld test contains:

 hjkdf sdfsdflkj 987dsf sdf sdf
 fgffg gf gf4998 fd ddf ddfd
 fgffg gf gf5000 fd ddf ddfd
 ere e re 1234567890e
 gfgjfkgf dfglwer 0 fdfsla sdfsdf
 gfgjfkgf dfglwer 42fdfsla sdfsdf
 try tytry retert  41dfsdffdsd
 sdflk; asdf 33dfdfdfsa dsfsdff
 kjklj jlkjlk 7ljlkj lkjkjlkj jljljkl


 And it's fast.

 HTH,

 Thierry


___
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


Re: filter with a tab character

2013-02-04 Thread FlexibleLearning.com
Thanks for the insights. Much appreciated.

The list to filter is not enormous, but the 'for each' option would also
handle any numeric evaluations, so both solutions will be valuable.

Hugh Senior
FLCo



Klaus wrote:
 Am 04.02.2013 um 18:04 schrieb FlexibleLearning.com:

 I have tab-delimited list and am trying to filter lines.

 Q1. How do we include a TAB character in the expression? Using filter
with
 *\tsomeText fails.

 use the contant TAB:
 ...
 filter tList with (*  TAB  whatever)

Richard wrote:
While the filter command is seductively simple to use, if your rows have
many columns and you're filtering on one several columns in, you may
find repeat for each will be more efficient:

http://article.gmane.org/gmane.comp.ide.revolution.user/72192/match=filter
+tab+gaskin


___
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


Re: issue PUT html command

2013-02-04 Thread Andrew Kluthe
put sVar into url https://urbanaisrship.com/apidealaddressthing;
--will accomplish a PUT

and

get url https://urbanaisrship.com/apidealaddressthing; --will accomplish a GET!

Isn't livecode grand?

On Mon, Feb 4, 2013 at 11:42 AM, Chris Sheffield cmsheffi...@icloud.com wrote:
 I'm not even sure that's the right terminology. This is kind of related to my 
 last post about push notifications. I found a neat web site 
 (urbanairship.com) that has a server set up for sending push notifications to 
 mobile devices. As far as I can tell, it's free to use. I'm still researching 
 the details. Does anyone know anything about them?

 Anyway, they have an html api that allows for issuing certain commands, 
 including registering device tokens, via PUT and GET. How do I do this with 
 LiveCode? I haven't really done much of this kind of thing before. I'm sure 
 it's easy, and will probably be obvious, but I'm not finding anything in the 
 docs.

 Can anyone help?

 Thanks,
 Chris


 ___
 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



-- 
Regards,

Andrew Kluthe
and...@ctech.me

___
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


Re: issue PUT html command

2013-02-04 Thread Chris Sheffield
Excellent! I figured it had to be easy, and I wondered if it was accomplished 
using the normal put and get commands, but wasn't totally sure.

Thanks for the tip.

I do have one more question though. In the dictionary, it says that this is a 
blocking operation, so if for some reason the site is not available there could 
be a delay while the app waits for a response. The dictionary says to use 
libURLftpUpload instead for a non-blocking operation. Does anyone know if this 
can be used in the same way to accomplish a PUT?

Thanks,
Chris


On Feb 4, 2013, at 12:13 PM, Andrew Kluthe and...@ctech.me wrote:

 put sVar into url https://urbanaisrship.com/apidealaddressthing;
 --will accomplish a PUT
 
 and
 
 get url https://urbanaisrship.com/apidealaddressthing; --will accomplish a 
 GET!
 
 Isn't livecode grand?
 
 On Mon, Feb 4, 2013 at 11:42 AM, Chris Sheffield cmsheffi...@icloud.com 
 wrote:
 I'm not even sure that's the right terminology. This is kind of related to 
 my last post about push notifications. I found a neat web site 
 (urbanairship.com) that has a server set up for sending push notifications 
 to mobile devices. As far as I can tell, it's free to use. I'm still 
 researching the details. Does anyone know anything about them?
 
 Anyway, they have an html api that allows for issuing certain commands, 
 including registering device tokens, via PUT and GET. How do I do this with 
 LiveCode? I haven't really done much of this kind of thing before. I'm sure 
 it's easy, and will probably be obvious, but I'm not finding anything in the 
 docs.
 
 Can anyone help?
 
 Thanks,
 Chris
 
 
 ___
 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
 
 
 
 -- 
 Regards,
 
 Andrew Kluthe
 and...@ctech.me
 
 ___
 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


___
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


Re: issue PUT html command

2013-02-04 Thread Andrew Kluthe
I have not had much success in using libURL for put requests that are
non-blocking. However, I have recently thought of taking most of my
'serious businesss' http calls to CURL. I have a libCURL library from
someone somewhere (the late mark smith's?).

On Mon, Feb 4, 2013 at 1:53 PM, Chris Sheffield cmsheffi...@icloud.com wrote:
 Excellent! I figured it had to be easy, and I wondered if it was accomplished 
 using the normal put and get commands, but wasn't totally sure.

 Thanks for the tip.

 I do have one more question though. In the dictionary, it says that this is a 
 blocking operation, so if for some reason the site is not available there 
 could be a delay while the app waits for a response. The dictionary says to 
 use libURLftpUpload instead for a non-blocking operation. Does anyone know if 
 this can be used in the same way to accomplish a PUT?

 Thanks,
 Chris


 On Feb 4, 2013, at 12:13 PM, Andrew Kluthe and...@ctech.me wrote:

 put sVar into url https://urbanaisrship.com/apidealaddressthing;
 --will accomplish a PUT

 and

 get url https://urbanaisrship.com/apidealaddressthing; --will accomplish a 
 GET!

 Isn't livecode grand?

 On Mon, Feb 4, 2013 at 11:42 AM, Chris Sheffield cmsheffi...@icloud.com 
 wrote:
 I'm not even sure that's the right terminology. This is kind of related to 
 my last post about push notifications. I found a neat web site 
 (urbanairship.com) that has a server set up for sending push notifications 
 to mobile devices. As far as I can tell, it's free to use. I'm still 
 researching the details. Does anyone know anything about them?

 Anyway, they have an html api that allows for issuing certain commands, 
 including registering device tokens, via PUT and GET. How do I do this with 
 LiveCode? I haven't really done much of this kind of thing before. I'm sure 
 it's easy, and will probably be obvious, but I'm not finding anything in 
 the docs.

 Can anyone help?

 Thanks,
 Chris


 ___
 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



 --
 Regards,

 Andrew Kluthe
 and...@ctech.me

 ___
 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


 ___
 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



-- 
Regards,

Andrew Kluthe
and...@ctech.me

___
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


Re: mobile push notifications how-to

2013-02-04 Thread Pierre Sahores
In response to your previous question :

1.- The client side HTTP REST POST LC-client-side app button :

 global DevicesList,MIAD
 
 on mouseUp
beep
if pm_length() = 138 then 
put Envoi du message Push à tous les prospects... into fld prompt
   set httpHeaders to Content-type: application/x-www-form-urlencoded  
 return
   get url MIAD
   post URLEncode(authentpostkey=  hexDigest(authentpostkeyvalue)  
 message=pushdevices=  DevicesList  badge=  trim(fld 
 message_badge)  \
 title=  trim(utf8encode(bslasher(fld message_title)))  
 abstract=  trim(utf8encode(bslasher(fld message_abstract  \
 payload=  trim(utf8encode(bslasher(fld message_payload))) 
 to URL MIAD
   put Aucun traitement en cours... into fld prompt
else answer Erreur : votre message comporte  pm_length()  pour une 
 limite APNS (Apple Push Notifications Server) supportée de 138 caractères. 
  \
  Merci de corriger votre message pour éviter qu'il ne soit 
 automatiquement rejeté par le serveur APNS de distribution de votre message 
 vers les devices iOS
 end mouseUp

where DevicesList contains the iOS and Android IDs of the devices you want to 
push the message too (out of a server-side SQL table you need to setup and 
interact with in HTTP REST POST for best results), MIAD targets the http path 
of the mobile push.lc script (see below) and function pm_length() verifies that 
the push message length don't exceeds the APNS practical allowed limit.

2.- mobile push.lc : the main server-side lc script to install in the cgi-bin 
directory (PostIn contains the client-side HTTP REST POST DATA) :

 split PostIn by  and =
 
 ### APNS maxi : 100 000 par envoi ### -- Apple Push Notification 
 Server
 put url (file:  local path to ipush.php) into tpushvar
 put tpushvar into tpushtmp
 put 0 into tcpteur
 repeat for each line l in PostIn[devices]
if length(l) is 64 then
   put $devices[  tcpteur  ] = '  l  ';  return 
 after lesdevices
   add 1 to tcpteur
end if
 end repeat
 replace ###devices### with $devices = Array();  return  
 trim(lesdevices) in tpushvar
 replace ###title### with $title = '  PostIn[title]  '; 
 in tpushvar
 replace ###abstract### with $abstract = '  
 PostIn[abstract]  '; in tpushvar
 replace ###payload### with $payload = '  PostIn[payload]  
 '; in tpushvar
 replace ###badge### with $badge =  PostIn[badge]  ; in 
 tpushvar
 replace ###authent### with $ck = 'path to your APNS private 
 key'; in tpushvar
 replace ###passwd### with $passphrase = 'your APNS 
 passphrase'; in tpushvar
 put tpushvar into url (file:  local path to ipush.php)
 get url (http path to ipush.php)
 put tpushtmp into url (file:  local path to ipush.php)
 put it into apnsreply
 
 ### GPNS maxi : 1000 par tranche envoyée ### -- Google Push 
 Notification Server
 put  into lesdevices
 put url (file:  local path to apush.php) into tpushvar
 put tpushvar into tpushtmp
 repeat for each line l in PostIn[devices]
if length(l) is not 64
then put setquote(l)  , after lesdevices
 end repeat
 put 1 into tranchenumber
 put 1 into tranchestart
 put  into devicestranche[1]
 if the num of items in lesdevices  1000 then
repeat with c = 1 to 1+(the num of items in lesdevices div 
 1000)
   put item tranchestart to 999+tranchestart of lesdevices 
 into devicestranche[tranchenumber]
   add 1 to tranchenumber
   add 1000 to tranchestart
end repeat
 end if
 if devicestranche[1] is  then
replace ###devices### with char 1 to -2 of lesdevices in 
 tpushvar
replace ###title### with PostIn[title] in tpushvar
replace ###abstract### with PostIn[abstract] in tpushvar
replace ###payload### with PostIn[payload] in tpushvar
replace ###badge### with PostIn[badge] in tpushvar
replace ###authent### with yourGPNSKey in tpushvar
put tpushvar into url (file:  local path to apush.php)
get url (http path to apush.php)
put tpushtmp into url (file:  local path to apush.php)
return it  return  apnsreply
 else
repeat with c = 1 to -1+tranchenumber
   replace ###devices### with devicestranche[c] in tpushvar
   replace ###title### with PostIn[title] in tpushvar
   replace ###abstract### with PostIn[abstract] in tpushvar
   

Re: issue PUT html command

2013-02-04 Thread Bernard Devlin
With regard to Android/Google, depending on where the data to be sent as
notifications originates, it is possible to just send the notifications
from your own PC to Google's server, and Google then routes them to the
devices.  I would hope it would be so simple with Apple.  I guess if it was
that simple with Apple, Urbanairship would not exist.

Bernard


On Mon, Feb 4, 2013 at 6:02 PM, Chris Sheffield cmsheffi...@icloud.comwrote:


 It talks about setting up your own server, but I don't have the know-how
 nor the resources right now to do that. So when I found Urban Airship I was
 happy.


___
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


Re: Trying to make economic sense of open sourcing livecode

2013-02-04 Thread Mark Wieder
Kevin-

Monday, February 4, 2013, 9:53:46 AM, you wrote:

 There will be a commercial code escrow option too, but that will be aimed
 at larger companies and be specific to their individual use of the
 platform.

Yay! That should plug that loophole.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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


Location via WiFi on Mobile?

2013-02-04 Thread Scott Rossi
Anyone know if the mobileSensorReading function works for location on iOS
devices through WiFi?  I can't seem to get any data from the function when
testing a simple stack on an iPad2 and iPod.

Using this script:

 get mobileSensorAvailable(location)

  if it is false then

 answer Unable to use location.

 exit mouseUp

  end if

  --

  mobileStartTrackingSensor location, true

  put mobileSensorReading(location, true) into geoData

  mobileStopTrackingSensor location

  answer geoData


Playing around with variations of this script, I either get true or empty
in the geoData variable.  Am I missing something?

Most every app that does anything with location works fine using WiFi on
these devices, so there's no issue with service.

Any suggestions?

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


___
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


Re: Location via WiFi on Mobile?

2013-02-04 Thread J. Landman Gay

On 2/4/13 11:43 PM, Scott Rossi wrote:

Anyone know if the mobileSensorReading function works for location on iOS
devices through WiFi?  I can't seem to get any data from the function when
testing a simple stack on an iPad2 and iPod.

Using this script:

  get mobileSensorAvailable(location)

   if it is false then

  answer Unable to use location.

  exit mouseUp

   end if

   --

   mobileStartTrackingSensor location, true

   put mobileSensorReading(location, true) into geoData

   mobileStopTrackingSensor location

   answer geoData


Playing around with variations of this script, I either get true or empty
in the geoData variable.  Am I missing something?


It looks like the detailed location (what you get when you specify 
true in the second param) will be an array, so after getting the 
geoData you'd need to parse out something like geoData[latitude] or 
geoData[timestamp].


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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


Re: Location via WiFi on Mobile?

2013-02-04 Thread Scott Rossi
[ forehead slap ]

Doh.  Thanks Jacque -- guess I wasn't reading the docs closely enough.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 2/4/13 9:52 PM, J. Landman Gay jac...@hyperactivesw.com wrote:

On 2/4/13 11:43 PM, Scott Rossi wrote:
 Anyone know if the mobileSensorReading function works for location on
iOS
 devices through WiFi?  I can't seem to get any data from the function
when
 testing a simple stack on an iPad2 and iPod.

 Using this script:

   get mobileSensorAvailable(location)

if it is false then

   answer Unable to use location.

   exit mouseUp

end if

--

mobileStartTrackingSensor location, true

put mobileSensorReading(location, true) into geoData

mobileStopTrackingSensor location

answer geoData


 Playing around with variations of this script, I either get true or
empty
 in the geoData variable.  Am I missing something?

It looks like the detailed location (what you get when you specify
true in the second param) will be an array, so after getting the
geoData you'd need to parse out something like geoData[latitude] or
geoData[timestamp].

-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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




___
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


Re: Location via WiFi on Mobile?

2013-02-04 Thread Scott Rossi
Hmm, maybe spoke too soon.  Still getting odd, inconsistent results.

I thought maybe if mobileStartTrackingSensor was started using 'true'
(non-accurate sources) that mobileSensorReading should be used with
'false' (not detailed). But trying each combination of booleans I still
don't get a reliable result.

This is weird.  On a few occasions, the expected values were answered, but
most of the time, I either get empty or the boolean used with
mobileSensorReading in the answer dialog.

Does it take time to start up location services?  Is it possible that the
device needs a few seconds of warm up time before it can return a
meaningful result?

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 2/4/13 9:56 PM, Scott Rossi sc...@tactilemedia.com wrote:

[ forehead slap ]

Doh.  Thanks Jacque -- guess I wasn't reading the docs closely enough.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design




On 2/4/13 9:52 PM, J. Landman Gay jac...@hyperactivesw.com wrote:

On 2/4/13 11:43 PM, Scott Rossi wrote:
 Anyone know if the mobileSensorReading function works for location on
iOS
 devices through WiFi?  I can't seem to get any data from the function
when
 testing a simple stack on an iPad2 and iPod.

 Using this script:

   get mobileSensorAvailable(location)

if it is false then

   answer Unable to use location.

   exit mouseUp

end if

--

mobileStartTrackingSensor location, true

put mobileSensorReading(location, true) into geoData

mobileStopTrackingSensor location

answer geoData


 Playing around with variations of this script, I either get true or
empty
 in the geoData variable.  Am I missing something?

It looks like the detailed location (what you get when you specify
true in the second param) will be an array, so after getting the
geoData you'd need to parse out something like geoData[latitude] or
geoData[timestamp].

-- 
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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




___
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




___
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


Re: Location via WiFi on Mobile?

2013-02-04 Thread Pierre Sahores
In my experience : instant accurate calculation under iOS and, yes, need of a 
few seconds to get the accurate calculation under Android.

Le 5 févr. 2013 à 07:40, Scott Rossi a écrit :

 Does it take time to start up location services?  Is it possible that the
 device needs a few seconds of warm up time before it can return a
 meaningful result?

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.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