Re: Yertle the Turtle

2017-01-30 Thread Colin Holgate via use-livecode
It is, as you said, going to need sin and cos. The X movement would be 30 * 
cos(37/180 * Pi), and the Y movement would be 30 * sin(37/180 * Pi), in your 
example case.


> On Jan 30, 2017, at 11:14 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> The problem is not with drawing the line.
> 
> The problem is how, when the turtle's "nose" is pointing at, say, 37 degrees 
> from the vertical
> one can get it to move FORWARD for 30 units.
> 
> Richmond.
> 
> On 1/30/17 11:46 pm, Tore Nilsen via use-livecode wrote:
>>> 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode 
>>> :
>>> 
>>> 2.2. I wonder how my turtle will be seen to draw a pen line from the two 
>>> ends of the "line".
>> If you would like the “turtle” to move to the points of the line then, lock 
>> screen, draw the line, hide the line and unlock the screen before you start 
>> moving the “turtle”. Then no-one will ever see the line and you can delete 
>> last graphic once the turtle has stopped moving.
>> 
>> Regards
>> Tore Nilsen
>> ___
>> 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: Yertle the Turtle

2017-01-30 Thread Mike Bonner via use-livecode
K heres the required parts..

*## takes length and the angle in radians and returns vector as x,y offsets*
function aLenToVector pLen pAngle
return pLen * sin(pAngle),pLen * cos(pAngle)
end aLenToVector

*## takes degrees and changes to radians*
function dToRadians pDegrees
 return pDegrees / 180 * pi
end dToRadians

With those 2 things, you should be able to move your turtle.


On Mon, Jan 30, 2017 at 11:16 PM, Mike Bonner  wrote:

> Yeah. Thats what my (as yet unrediscovered) library can help with.
>
> On Mon, Jan 30, 2017 at 11:14 PM, Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> The problem is not with drawing the line.
>>
>> The problem is how, when the turtle's "nose" is pointing at, say, 37
>> degrees from the vertical
>> one can get it to move FORWARD for 30 units.
>>
>> Richmond.
>>
>>
>> On 1/30/17 11:46 pm, Tore Nilsen via use-livecode wrote:
>>
>>> 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode <
 use-livecode@lists.runrev.com>:

 2.2. I wonder how my turtle will be seen to draw a pen line from the
 two ends of the "line".

>>> If you would like the “turtle” to move to the points of the line then,
>>> lock screen, draw the line, hide the line and unlock the screen before you
>>> start moving the “turtle”. Then no-one will ever see the line and you can
>>> delete last graphic once the turtle has stopped moving.
>>>
>>> Regards
>>> Tore Nilsen
>>> ___
>>> 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: Yertle the Turtle

2017-01-30 Thread Mike Bonner via use-livecode
Yeah. Thats what my (as yet unrediscovered) library can help with.

On Mon, Jan 30, 2017 at 11:14 PM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> The problem is not with drawing the line.
>
> The problem is how, when the turtle's "nose" is pointing at, say, 37
> degrees from the vertical
> one can get it to move FORWARD for 30 units.
>
> Richmond.
>
>
> On 1/30/17 11:46 pm, Tore Nilsen via use-livecode wrote:
>
>> 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode <
>>> use-livecode@lists.runrev.com>:
>>>
>>> 2.2. I wonder how my turtle will be seen to draw a pen line from the two
>>> ends of the "line".
>>>
>> If you would like the “turtle” to move to the points of the line then,
>> lock screen, draw the line, hide the line and unlock the screen before you
>> start moving the “turtle”. Then no-one will ever see the line and you can
>> delete last graphic once the turtle has stopped moving.
>>
>> Regards
>> Tore Nilsen
>> ___
>> 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: Yertle the Turtle

2017-01-30 Thread Richmond Mathewson via use-livecode

The problem is not with drawing the line.

The problem is how, when the turtle's "nose" is pointing at, say, 37 
degrees from the vertical

one can get it to move FORWARD for 30 units.

Richmond.

On 1/30/17 11:46 pm, Tore Nilsen via use-livecode wrote:

30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode 
:

2.2. I wonder how my turtle will be seen to draw a pen line from the two ends of the 
"line".

If you would like the “turtle” to move to the points of the line then, lock 
screen, draw the line, hide the line and unlock the screen before you start 
moving the “turtle”. Then no-one will ever see the line and you can delete last 
graphic once the turtle has stopped moving.

Regards
Tore Nilsen
___
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

fontLanguage()

2017-01-30 Thread Phil Davis via use-livecode

Hi folks,

In LC 8.1.2 I have checked 'the fontLanguage' of all my installed fonts 
and get nothing but 'ansi', even for my Arabic fonts. In some previous 
version of LC my experience was different - guess I'll go digging and 
see what I find.


Does anyone have different outcomes with fontLanguage() in 8.1.2?

Thanks -
Phil Davis

--
Phil Davis


___
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: Launch URL with LInk Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
Glad it worked out for you. Apple has never said a word. I've been using it for 
4 years. I think you run into trouble if you have any timers or call backs when 
the app is in the background.


Ralph DiMola
IT Director
Evergreen Information Services



 Original message From: Sannyasin 
Brahmanathaswami via use-livecode  
Date:01/30/2017  22:18  (GMT-05:00) To: How to use 
LiveCode  Cc: Sannyasin 
Brahmanathaswami  Subject: Re: Launch URL with 
LInk Back to LC App 
Ralph

Thanks, hacking the pList definitely works!

I guess Apple doesn't care, right?





On 1/30/17, 10:18 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

JLM, Thanks for the clarification. BR, Another way to do this without using
the un-supported plist hack is to save the state of your app before you
launch the browser and then restore the app to the saved state when it
restarts.



___
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: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Mike Kerner via use-livecode
What's the type of db, and did you try sending a pragma to pull the table
names to doublecheck?

On Mon, Jan 30, 2017 at 10:54 PM, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'm at a loss then.
>
> On Mon, Jan 30, 2017 at 8:06 PM, Dr. Hawkins via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > On Mon, Jan 30, 2017 at 7:03 PM, Dr. Hawkins  wrote:
> >
> > > theRes holds "dhbk_lcnsees", as it should.  The name was created, found
> > in revDatabaseTableNames,
> > > and filtered to the sole line of theRes.
> > >
> >
> > I just checked with 7.1.4 rc and got the same behavior.
> >
> >
> >
> >
> > --
> > 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
> >
> ___
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: JavaScript, Browser Object, VR with Hotspots?

2017-01-30 Thread Mike Bonner via use-livecode
Depending on what version of LC you're using,k and if you're using the
widget, or openrevbrowser
look at revBrowserAddJavascriptHandler in the dictionary.

If using the widget, use the dropdown to select the browser widget in the
dictionary and look at the javascripthandlers property.



On Mon, Jan 30, 2017 at 8:22 PM, JOHN PATTEN via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi All,
>
> I’m not sure if this is possible with Livecode, but I thought I’d ask
> anyways.
>
> I have a html5 panorama I created in a trial version of Pano2VR. I posted
> it up here: http://jpatten.on-rev.com/vrjs/index.html <
> http://jpatten.on-rev.com/vrjs/index.html>
>
> This pano has one hot spot that just throws a JavaScript alert, “Hello
> World.”  So I know I can create a Javascript inside a hotspot in the pano
> using the Pano2VR app.
>
> Here are my questions.
>
> 1. Can Livecode intercept the Javascript result in the browser object and
> act on it?  If it can, I’m guessing I could have it return text and then
> have Livecode run an action. Something like…  if varText = “picture 1”
> then, show picture one … else/switch if vartex = "picture 2" then open
> "picture 2", etc. etc. etc.
>
>
> 2. I would like to have hotspots in a panoramic image run JavaScripts that
> LiveCode intercepts, and then act on what it catches to runs scripts in the
> stack. One hot spot might open and image. Another might open a substack,
> etc. etc. all within the LiveCode project. The Browser Object is used only
> to present the panoramic image, and the pano image acts as s pseudo
> navigation object for additional content.
>
> Anybody have a simple example of what the Javascript in the pano might
> look like, as opposed to just an alert? What scripts would I use to capture
> and act on the Javascript in the browser object?
>
> Or, maybe this is not possible…?
>
> Thank you!
>
> John Patten
> SUSD
>
>
>
>
>
> ___
> 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: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Mike Bonner via use-livecode
I'm at a loss then.

On Mon, Jan 30, 2017 at 8:06 PM, Dr. Hawkins via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On Mon, Jan 30, 2017 at 7:03 PM, Dr. Hawkins  wrote:
>
> > theRes holds "dhbk_lcnsees", as it should.  The name was created, found
> in revDatabaseTableNames,
> > and filtered to the sole line of theRes.
> >
>
> I just checked with 7.1.4 rc and got the same behavior.
>
>
>
>
> --
> 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
>
___
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


JavaScript, Browser Object, VR with Hotspots?

2017-01-30 Thread JOHN PATTEN via use-livecode
Hi All,

I’m not sure if this is possible with Livecode, but I thought I’d ask anyways. 

I have a html5 panorama I created in a trial version of Pano2VR. I posted it up 
here: http://jpatten.on-rev.com/vrjs/index.html 


This pano has one hot spot that just throws a JavaScript alert, “Hello World.”  
So I know I can create a Javascript inside a hotspot in the pano using the 
Pano2VR app.

Here are my questions.

1. Can Livecode intercept the Javascript result in the browser object and act 
on it?  If it can, I’m guessing I could have it return text and then have 
Livecode run an action. Something like…  if varText = “picture 1” then, show 
picture one … else/switch if vartex = "picture 2" then open "picture 2", etc. 
etc. etc.


2. I would like to have hotspots in a panoramic image run JavaScripts that 
LiveCode intercepts, and then act on what it catches to runs scripts in the 
stack. One hot spot might open and image. Another might open a substack, etc. 
etc. all within the LiveCode project. The Browser Object is used only to 
present the panoramic image, and the pano image acts as s pseudo navigation 
object for additional content.

Anybody have a simple example of what the Javascript in the pano might look 
like, as opposed to just an alert? What scripts would I use to capture and act 
on the Javascript in the browser object?

Or, maybe this is not possible…?

Thank you!

John Patten
SUSD





___
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: Launch URL with LInk Back to LC App

2017-01-30 Thread Sannyasin Brahmanathaswami via use-livecode
Ralph

Thanks, hacking the pList definitely works!

I guess Apple doesn't care, right?



 

On 1/30/17, 10:18 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

JLM, Thanks for the clarification. BR, Another way to do this without using
the un-supported plist hack is to save the state of your app before you
launch the browser and then restore the app to the saved state when it
restarts.



___
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: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Dr. Hawkins via use-livecode
On Mon, Jan 30, 2017 at 7:03 PM, Dr. Hawkins  wrote:

> theRes holds "dhbk_lcnsees", as it should.  The name was created, found in 
> revDatabaseTableNames,
> and filtered to the sole line of theRes.
>

I just checked with 7.1.4 rc and got the same behavior.




-- 
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: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Dr. Hawkins via use-livecode
On Mon, Jan 30, 2017 at 6:41 PM, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Most likely thing I can think of is that on opening the database, something
> is wrong with the path so it created a new and empty database.. somewhere..
> Just to test, I would "put theRes" and see whats actually in there.
>

theRes holds "dhbk_lcnsees", as it should.  The name was created,
found in revDatabaseTableNames,
and filtered to the sole line of theRes.


-- 
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: revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Mike Bonner via use-livecode
Most likely thing I can think of is that on opening the database, something
is wrong with the path so it created a new and empty database.. somewhere..
Just to test, I would "put theRes" and see whats actually in there.

On Mon, Jan 30, 2017 at 7:29 PM, Dr. Hawkins via use-livecode <
use-livecode@lists.runrev.com> wrote:

> After opening a database, I check for the names of a table
>
> *put* revDatabaseTableNames(licMkrDb) into theRes
>
> *filter* theRes with "dhbk_*"
>
> ck char -1 of theRes
>
> *put* revDatabaseColumnNames(licMkrDb,theRes) into clmNms
>
> at this point, clmNms contains
>
> revdberr,invalid table name
>
> Uhm, how can this possibly be?
>
>
> --
> 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
>
___
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


revDatabaseColumnNames fails to recognize table

2017-01-30 Thread Dr. Hawkins via use-livecode
After opening a database, I check for the names of a table

*put* revDatabaseTableNames(licMkrDb) into theRes

*filter* theRes with "dhbk_*"

ck char -1 of theRes

*put* revDatabaseColumnNames(licMkrDb,theRes) into clmNms

at this point, clmNms contains

revdberr,invalid table name

Uhm, how can this possibly be?


-- 
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: Community Dictionary (was Re: Delete element from array)

2017-01-30 Thread Mike Kerner via use-livecode
Also, over there, I have included a list of bug reports that I found that
seem to be relevant.  If you have submitted a bug report for *the way the
dictionary works*  (not for an entry being incorrect or requiring
modification, because that is a separate, but eventually related project),
please weigh in so we can add it to the list.

On Mon, Jan 30, 2017 at 12:00 PM, Mike Kerner 
wrote:

> Do me a favor, please, and post to the thread I already started on the
> forum.
> http://forums.livecode.com/viewtopic.php?f=67=28731
>
> I also have a bug report that I started on this, that I suppose you could
> contribute to, but I would think that first the forum would be the place to
> go, until we have some firm things, so The Team doesn't have even more
> stuff to read when they should be writing.
>
> On Sat, Jan 28, 2017 at 12:03 AM, Sannyasin Brahmanathaswami via
> use-livecode  wrote:
>
>> Richard Gaskin wrote:
>>
>> /Documentation/resources/data/api/api.sqlite
>>
>> Oh boy, gonna have fun with that!
>>
>> BR
>>
>> ___
>> 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
>>
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Dirty HTTP Launch

2017-01-30 Thread Bob Sneidar via use-livecode
Try replacing the variable holding the URL (let's assume it's tVar) with word 1 
to -1 of tVar. 

As in put word 1 to -1 of tVar into tVar

Bob S


> On Jan 30, 2017, at 10:34 , Tom Glod via use-livecode 
>  wrote:
> 
> the URL is read as an ITEM from a line in a file that was generated by PHP
> (which is I am sure where the cr comes from)
> 
> PHP code just concatnates label "HTTP Link, item delimiter "=" and the URL
> starting with HTTP.
> 
> I think I will just write a little repeat loop to rewrite the URL before I
> send it off to the launch command.   Gonna try format function too
> 
> 
> 
> On Mon, Jan 30, 2017 at 1:24 PM, Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Mind posting the code that you use to build the url?
>> 
>> On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> I will try to clean it somehow as nothing (no cr) appears at the end
>> until
>>> i run the launch url command i guess i can just rewrite the variable
>>> somehow.  Thanks
>>> 
>>> On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 Most likely you have an extraneous cr at the end of the url, and its
 showing as html encoded.  If thats the case, before you
 encode/launch/whatever, remove the cr and it should go away.
 
 
 On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
> Hi Livecoders,
> 
> I have a license file generated by PHP and when I bring it into LC I
 parse
> it for data. should be easy right?
> 
> So I parse an http link and upon the using launch url command, I
>>> realize
> there is garbage at the end of the URL... the end of line "%0d"
>> garbage
 to
> be exact.
> 
> Anyone know how to clean this? it doesn't apprear at the end of the
> variable that i am using to store the http URL...just appears after
>> the
> launch url command.
> 
> Thanks for any help on this
> 
> Tom
> ___
> 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
>>> 
>> ___
>> 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: Built-in JSON functions not working in standalone

2017-01-30 Thread Monte Goulding via use-livecode
Hmm… yes the new support library for mergJSON should be now be included in 
standalones if you include mergJSON. Please open a bug report if that’s not the 
case so we can sort the issue out. Note that it will *not* be included via 
search for inclusions.

Cheers

Monte

> On 31 Jan 2017, at 9:04 am, pink via use-livecode 
>  wrote:
> 
> JSONToArray and ArrayToJSON are both in the dictionary, if these functions
> don't do what they're advertised to do, then someone needs to revise the
> dictionary
> 
> from the Livecode Dictionary:
> 
> JSONToArray
> 
> Type  function
> Syntax  JSONToArray(pJSON)
> Associationsws.goulding.script-library.mergjson
> 
> Summary
> Parse JSON to a LiveCode array
> 
> 
> 
> Trevor DeVore via use-livecode wrote
>> To my knowledge, the functions are not built into Livecode. You may have a
>> stack loaded and part of the message path that has those functions there
>> already. You will need to add the functions to your project in order to
>> parse/encode JSON.
>> 
>> Bob
>> 
>>> On Jan 30, 2017, at 4:12 PM, pink via use-livecode 
> 
>> use-livecode@.runrev
> 
>>  wrote:
>>> 
>>> The JSONToArray and ArrayToJSON functions are built into Livecode now.
>>> Again, they work fine in the IDE, it is just in the standalone that it
>>> fails.
>> 
>> ___
>> use-livecode mailing list
> 
>> use-livecode@.runrev
> 
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> 
> -
> ---
> Greg (pink) Miller
> mad, pink and dangerous to code
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045p4712064.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


___
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: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
JSONToArray and ArrayToJSON are both in the dictionary, if these functions
don't do what they're advertised to do, then someone needs to revise the
dictionary

from the Livecode Dictionary:

JSONToArray

Type  function
Syntax  JSONToArray(pJSON)
Associationsws.goulding.script-library.mergjson

Summary
Parse JSON to a LiveCode array



Trevor DeVore via use-livecode wrote
> To my knowledge, the functions are not built into Livecode. You may have a
> stack loaded and part of the message path that has those functions there
> already. You will need to add the functions to your project in order to
> parse/encode JSON.
> 
> Bob
> 
>> On Jan 30, 2017, at 4:12 PM, pink via use-livecode 

> use-livecode@.runrev

>  wrote:
>> 
>> The JSONToArray and ArrayToJSON functions are built into Livecode now.
>> Again, they work fine in the IDE, it is just in the standalone that it
>> fails.
> 
> ___
> use-livecode mailing list

> use-livecode@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045p4712064.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: Yertle the Turtle

2017-01-30 Thread Mike Bonner via use-livecode
Somewhere around here I have a library that should help with your turtle
moving.  Will see if I can dig it up.

On Mon, Jan 30, 2017 at 2:46 PM, Tore Nilsen via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> > 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > 2.2. I wonder how my turtle will be seen to draw a pen line from the two
> ends of the "line".
>
> If you would like the “turtle” to move to the points of the line then,
> lock screen, draw the line, hide the line and unlock the screen before you
> start moving the “turtle”. Then no-one will ever see the line and you can
> delete last graphic once the turtle has stopped moving.
>
> Regards
> Tore Nilsen
> ___
> 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: Built-in JSON functions not working in standalone

2017-01-30 Thread Bob Hall via use-livecode
To my knowledge, the functions are not built into Livecode. You may have a 
stack loaded and part of the message path that has those functions there 
already. You will need to add the functions to your project in order to 
parse/encode JSON.

Bob

> On Jan 30, 2017, at 4:12 PM, pink via use-livecode 
>  wrote:
> 
> The JSONToArray and ArrayToJSON functions are built into Livecode now.
> Again, they work fine in the IDE, it is just in the standalone that it
> 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: Yertle the Turtle

2017-01-30 Thread Tore Nilsen via use-livecode

> 30. jan. 2017 kl. 21.20 skrev Richmond Mathewson via use-livecode 
> :
> 
> 2.2. I wonder how my turtle will be seen to draw a pen line from the two ends 
> of the "line".

If you would like the “turtle” to move to the points of the line then, lock 
screen, draw the line, hide the line and unlock the screen before you start 
moving the “turtle”. Then no-one will ever see the line and you can delete last 
graphic once the turtle has stopped moving.

Regards
Tore Nilsen
___
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: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
I'm basing my comments on what I see in the Livecode Dictionary:

"The mergJSON external itself can not parse JSON to and from
multi-dimensional arrays. This is achieved through JSONToArray and
ArrayToJSON script functions provided in this library. The implementations
in this library are intented to be generally useful in addition to providing
a basis for implementations focussed on edge cases such as ArrayToJSON that
forces a known element to be an object."

The JSONToArray and ArrayToJSON functions are built into Livecode now.
Again, they work fine in the IDE, it is just in the standalone that it
fails.



Trevor DeVore via use-livecode wrote
> On Mon, Jan 30, 2017 at 11:53 AM, pink via use-livecode <

> use-livecode@.runrev

>> wrote:
> 
>> JSON Library is the LCB library with the command JsonImport and
>> JsonExport.
>>
>> Those are not the commands that I am using.
>>
>> I am using JSONToArray which is part of the mergjson external. I've
>> included
>> it in builds and I am still stuck.
> 
> 
> JSONToArray isn't part of mergJSON. It is a handler that you add to a
> stack
> in the message path. See the README:
> 
> https://github.com/montegoulding/mergJSON
> 
> -- 
> Trevor DeVore
> Outcome & ScreenSteps
> www.outcomeapp.io - www.screensteps.com
> ___
> use-livecode mailing list

> use-livecode@.runrev

> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045p4712060.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


Yertle the Turtle

2017-01-30 Thread Richmond Mathewson via use-livecode

Having imported an SVG image of a tortoise into a stack . . .

Being a fan of Seymour Papert . . .

I thought I'd try and implement turtle graphics in Livecode.

But came up against something awkward . . .

[As a caveat, I should like to point out I don't know how the following 
is implemented

in any other languages either]

1. Rotating my turtle widget is easy.

2. But telling the turtle to move forwards or backwards is not easy at all:

In LOGO one can tell the turtle to turn left by, say, 30 degrees, and 
then move forward 20 units.


But in LiveCode, as far as I know, one can either move an object by 
setting 2 coordinates,

or by 'set the loc'.

2.1. Now if I want my turtle, rotated at 30 degrees to move forward by 
20 units I will have to mess
around with SINE and COSINE and probably not end up with the turtle 
moving exactly 20 units at 30

degrees from the vertical.

2.2. I wonder how my turtle will be seen to draw a pen line from the two 
ends of the "line".


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: Launch URL with LInk Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
JLM, Thanks for the clarification. BR, Another way to do this without using
the un-supported plist hack is to save the state of your app before you
launch the browser and then restore the app to the saved state when it
restarts.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Monday, January 30, 2017 1:58 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: Launch URL with LInk Back to LC App

On 1/29/17 9:24 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
> Is there a way to ensure that the "back button" on any device's web 
> app, goes back to the card in the stack from which it was invoked by 
> the "launch ulr" command?

This has to do with the default behavior of LC and the OS it runs on. By
default, LC mobile apps quit when they are not frontmost. The behavior after
that depends on the OS.

On Android, the LC app will remain in RAM until the OS needs the memory, at
which point it will quit. If the user goes back to the LC app before it has
been removed from memory, the user will return to the place it last left
off. If the app has been removed, it re-launches to its opening screen.

On iOS the app is not retained in RAM, it always quits. Ralph provided the
work-around that allows the app to run in the background. It is not
supported and can fail depending on what the app does. If you use it, test
to make sure it works reliably.

-- 
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: Built-in JSON functions not working in standalone

2017-01-30 Thread Trevor DeVore via use-livecode
On Mon, Jan 30, 2017 at 11:53 AM, pink via use-livecode <
use-livecode@lists.runrev.com> wrote:

> JSON Library is the LCB library with the command JsonImport and JsonExport.
>
> Those are not the commands that I am using.
>
> I am using JSONToArray which is part of the mergjson external. I've
> included
> it in builds and I am still stuck.


JSONToArray isn't part of mergJSON. It is a handler that you add to a stack
in the message path. See the README:

https://github.com/montegoulding/mergJSON

-- 
Trevor DeVore
Outcome & ScreenSteps
www.outcomeapp.io - www.screensteps.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: Launch URL with LInk Back to LC App

2017-01-30 Thread J. Landman Gay via use-livecode

On 1/29/17 9:24 PM, Sannyasin Brahmanathaswami via use-livecode wrote:

Is there a way to ensure that the "back button" on any device's web
app, goes back to the card in the stack from which it was invoked by
the "launch ulr" command?


This has to do with the default behavior of LC and the OS it runs on. By 
default, LC mobile apps quit when they are not frontmost. The behavior 
after that depends on the OS.


On Android, the LC app will remain in RAM until the OS needs the memory, 
at which point it will quit. If the user goes back to the LC app before 
it has been removed from memory, the user will return to the place it 
last left off. If the app has been removed, it re-launches to its 
opening screen.


On iOS the app is not retained in RAM, it always quits. Ralph provided 
the work-around that allows the app to run in the background. It is not 
supported and can fail depending on what the app does. If you use it, 
test to make sure it works reliably.


--
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: Dirty HTTP Launch

2017-01-30 Thread Tom Glod via use-livecode
lol..too easywill try that thanks.

On Mon, Jan 30, 2017 at 1:38 PM, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Yw.
>  Sounds like an easy enough fix.  (or instead of rewriting the thing, you
> might be able to read in the item and "replace cr with empty" which I
> guess is rewriting, so nevermind!)
>
> On Mon, Jan 30, 2017 at 11:35 AM, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > thanks for your help Mike.
> >
> > On Mon, Jan 30, 2017 at 1:34 PM, Tom Glod  wrote:
> >
> > > the URL is read as an ITEM from a line in a file that was generated by
> > PHP
> > > (which is I am sure where the cr comes from)
> > >
> > > PHP code just concatnates label "HTTP Link, item delimiter "=" and the
> > URL
> > > starting with HTTP.
> > >
> > > I think I will just write a little repeat loop to rewrite the URL
> before
> > I
> > > send it off to the launch command.   Gonna try format function too
> > >
> > >
> > >
> > > On Mon, Jan 30, 2017 at 1:24 PM, Mike Bonner via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > >> Mind posting the code that you use to build the url?
> > >>
> > >> On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>
> > >> > I will try to clean it somehow as nothing (no cr) appears at the end
> > >> until
> > >> > i run the launch url command i guess i can just rewrite the
> > variable
> > >> > somehow.  Thanks
> > >> >
> > >> > On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
> > >> > use-livecode@lists.runrev.com> wrote:
> > >> >
> > >> > > Most likely you have an extraneous cr at the end of the url, and
> its
> > >> > > showing as html encoded.  If thats the case, before you
> > >> > > encode/launch/whatever, remove the cr and it should go away.
> > >> > >
> > >> > >
> > >> > > On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
> > >> > > use-livecode@lists.runrev.com> wrote:
> > >> > >
> > >> > > > Hi Livecoders,
> > >> > > >
> > >> > > > I have a license file generated by PHP and when I bring it into
> > LC I
> > >> > > parse
> > >> > > > it for data. should be easy right?
> > >> > > >
> > >> > > > So I parse an http link and upon the using launch url command, I
> > >> > realize
> > >> > > > there is garbage at the end of the URL... the end of line "%0d"
> > >> garbage
> > >> > > to
> > >> > > > be exact.
> > >> > > >
> > >> > > > Anyone know how to clean this? it doesn't apprear at the end of
> > the
> > >> > > > variable that i am using to store the http URL...just appears
> > after
> > >> the
> > >> > > > launch url command.
> > >> > > >
> > >> > > > Thanks for any help on this
> > >> > > >
> > >> > > > Tom
> > >> > > > ___
> > >> > > > 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
> > >> >
> > >> ___
> > >> 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
>
___
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: Dirty HTTP Launch

2017-01-30 Thread Mike Bonner via use-livecode
Yw.
 Sounds like an easy enough fix.  (or instead of rewriting the thing, you
might be able to read in the item and "replace cr with empty" which I
guess is rewriting, so nevermind!)

On Mon, Jan 30, 2017 at 11:35 AM, Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> thanks for your help Mike.
>
> On Mon, Jan 30, 2017 at 1:34 PM, Tom Glod  wrote:
>
> > the URL is read as an ITEM from a line in a file that was generated by
> PHP
> > (which is I am sure where the cr comes from)
> >
> > PHP code just concatnates label "HTTP Link, item delimiter "=" and the
> URL
> > starting with HTTP.
> >
> > I think I will just write a little repeat loop to rewrite the URL before
> I
> > send it off to the launch command.   Gonna try format function too
> >
> >
> >
> > On Mon, Jan 30, 2017 at 1:24 PM, Mike Bonner via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Mind posting the code that you use to build the url?
> >>
> >> On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >> > I will try to clean it somehow as nothing (no cr) appears at the end
> >> until
> >> > i run the launch url command i guess i can just rewrite the
> variable
> >> > somehow.  Thanks
> >> >
> >> > On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
> >> > use-livecode@lists.runrev.com> wrote:
> >> >
> >> > > Most likely you have an extraneous cr at the end of the url, and its
> >> > > showing as html encoded.  If thats the case, before you
> >> > > encode/launch/whatever, remove the cr and it should go away.
> >> > >
> >> > >
> >> > > On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
> >> > > use-livecode@lists.runrev.com> wrote:
> >> > >
> >> > > > Hi Livecoders,
> >> > > >
> >> > > > I have a license file generated by PHP and when I bring it into
> LC I
> >> > > parse
> >> > > > it for data. should be easy right?
> >> > > >
> >> > > > So I parse an http link and upon the using launch url command, I
> >> > realize
> >> > > > there is garbage at the end of the URL... the end of line "%0d"
> >> garbage
> >> > > to
> >> > > > be exact.
> >> > > >
> >> > > > Anyone know how to clean this? it doesn't apprear at the end of
> the
> >> > > > variable that i am using to store the http URL...just appears
> after
> >> the
> >> > > > launch url command.
> >> > > >
> >> > > > Thanks for any help on this
> >> > > >
> >> > > > Tom
> >> > > > ___
> >> > > > 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
> >> >
> >> ___
> >> 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: Dirty HTTP Launch

2017-01-30 Thread Tom Glod via use-livecode
thanks for your help Mike.

On Mon, Jan 30, 2017 at 1:34 PM, Tom Glod  wrote:

> the URL is read as an ITEM from a line in a file that was generated by PHP
> (which is I am sure where the cr comes from)
>
> PHP code just concatnates label "HTTP Link, item delimiter "=" and the URL
> starting with HTTP.
>
> I think I will just write a little repeat loop to rewrite the URL before I
> send it off to the launch command.   Gonna try format function too
>
>
>
> On Mon, Jan 30, 2017 at 1:24 PM, Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Mind posting the code that you use to build the url?
>>
>> On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>> > I will try to clean it somehow as nothing (no cr) appears at the end
>> until
>> > i run the launch url command i guess i can just rewrite the variable
>> > somehow.  Thanks
>> >
>> > On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
>> > use-livecode@lists.runrev.com> wrote:
>> >
>> > > Most likely you have an extraneous cr at the end of the url, and its
>> > > showing as html encoded.  If thats the case, before you
>> > > encode/launch/whatever, remove the cr and it should go away.
>> > >
>> > >
>> > > On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
>> > > use-livecode@lists.runrev.com> wrote:
>> > >
>> > > > Hi Livecoders,
>> > > >
>> > > > I have a license file generated by PHP and when I bring it into LC I
>> > > parse
>> > > > it for data. should be easy right?
>> > > >
>> > > > So I parse an http link and upon the using launch url command, I
>> > realize
>> > > > there is garbage at the end of the URL... the end of line "%0d"
>> garbage
>> > > to
>> > > > be exact.
>> > > >
>> > > > Anyone know how to clean this? it doesn't apprear at the end of the
>> > > > variable that i am using to store the http URL...just appears after
>> the
>> > > > launch url command.
>> > > >
>> > > > Thanks for any help on this
>> > > >
>> > > > Tom
>> > > > ___
>> > > > 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
>> >
>> ___
>> 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: Dirty HTTP Launch

2017-01-30 Thread Tom Glod via use-livecode
the URL is read as an ITEM from a line in a file that was generated by PHP
(which is I am sure where the cr comes from)

PHP code just concatnates label "HTTP Link, item delimiter "=" and the URL
starting with HTTP.

I think I will just write a little repeat loop to rewrite the URL before I
send it off to the launch command.   Gonna try format function too



On Mon, Jan 30, 2017 at 1:24 PM, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Mind posting the code that you use to build the url?
>
> On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > I will try to clean it somehow as nothing (no cr) appears at the end
> until
> > i run the launch url command i guess i can just rewrite the variable
> > somehow.  Thanks
> >
> > On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Most likely you have an extraneous cr at the end of the url, and its
> > > showing as html encoded.  If thats the case, before you
> > > encode/launch/whatever, remove the cr and it should go away.
> > >
> > >
> > > On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > >
> > > > Hi Livecoders,
> > > >
> > > > I have a license file generated by PHP and when I bring it into LC I
> > > parse
> > > > it for data. should be easy right?
> > > >
> > > > So I parse an http link and upon the using launch url command, I
> > realize
> > > > there is garbage at the end of the URL... the end of line "%0d"
> garbage
> > > to
> > > > be exact.
> > > >
> > > > Anyone know how to clean this? it doesn't apprear at the end of the
> > > > variable that i am using to store the http URL...just appears after
> the
> > > > launch url command.
> > > >
> > > > Thanks for any help on this
> > > >
> > > > Tom
> > > > ___
> > > > 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
> >
> ___
> 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: Dirty HTTP Launch

2017-01-30 Thread Mike Bonner via use-livecode
Mind posting the code that you use to build the url?

On Mon, Jan 30, 2017 at 11:16 AM, Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I will try to clean it somehow as nothing (no cr) appears at the end until
> i run the launch url command i guess i can just rewrite the variable
> somehow.  Thanks
>
> On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Most likely you have an extraneous cr at the end of the url, and its
> > showing as html encoded.  If thats the case, before you
> > encode/launch/whatever, remove the cr and it should go away.
> >
> >
> > On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > Hi Livecoders,
> > >
> > > I have a license file generated by PHP and when I bring it into LC I
> > parse
> > > it for data. should be easy right?
> > >
> > > So I parse an http link and upon the using launch url command, I
> realize
> > > there is garbage at the end of the URL... the end of line "%0d" garbage
> > to
> > > be exact.
> > >
> > > Anyone know how to clean this? it doesn't apprear at the end of the
> > > variable that i am using to store the http URL...just appears after the
> > > launch url command.
> > >
> > > Thanks for any help on this
> > >
> > > Tom
> > > ___
> > > 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
>
___
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: Dirty HTTP Launch

2017-01-30 Thread Tom Glod via use-livecode
I will try to clean it somehow as nothing (no cr) appears at the end until
i run the launch url command i guess i can just rewrite the variable
somehow.  Thanks

On Sun, Jan 29, 2017 at 8:16 PM, Mike Bonner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Most likely you have an extraneous cr at the end of the url, and its
> showing as html encoded.  If thats the case, before you
> encode/launch/whatever, remove the cr and it should go away.
>
>
> On Sun, Jan 29, 2017 at 5:58 PM, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hi Livecoders,
> >
> > I have a license file generated by PHP and when I bring it into LC I
> parse
> > it for data. should be easy right?
> >
> > So I parse an http link and upon the using launch url command, I realize
> > there is garbage at the end of the URL... the end of line "%0d" garbage
> to
> > be exact.
> >
> > Anyone know how to clean this? it doesn't apprear at the end of the
> > variable that i am using to store the http URL...just appears after the
> > launch url command.
> >
> > Thanks for any help on this
> >
> > Tom
> > ___
> > 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: Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
JSON Library is the LCB library with the command JsonImport and JsonExport.

Those are not the commands that I am using. 

I am using JSONToArray which is part of the mergjson external. I've included
it in builds and I am still stuck.



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045p4712049.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: Built-in JSON functions not working in standalone

2017-01-30 Thread Bob Hall via use-livecode
The Library needs to be on the inclusion list for it to work in a Standalone. 
In Standalone prefs click General->Select Inclusions for Standalone (note: I do 
not bank on the auto-include feature).

Then click the “Inclusions” icon and wait just a second as the inclusions 
render.

Look for JSON Library and include it. Should work then.

Bob Hall
___
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: Community Dictionary (was Re: Delete element from array)

2017-01-30 Thread Mike Kerner via use-livecode
Do me a favor, please, and post to the thread I already started on the
forum.
http://forums.livecode.com/viewtopic.php?f=67=28731

I also have a bug report that I started on this, that I suppose you could
contribute to, but I would think that first the forum would be the place to
go, until we have some firm things, so The Team doesn't have even more
stuff to read when they should be writing.

On Sat, Jan 28, 2017 at 12:03 AM, Sannyasin Brahmanathaswami via
use-livecode  wrote:

> Richard Gaskin wrote:
>
> /Documentation/resources/data/api/api.sqlite
>
> Oh boy, gonna have fun with that!
>
> BR
>
> ___
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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


Built-in JSON functions not working in standalone

2017-01-30 Thread pink via use-livecode
I made a single change in a program that has caused it to stop working:

I switched from using FastJSON  to using the built-in JSONToArray functions. 
To be clear, I'm not talking about JsonImport which I cannot use for other
reasons.

I built standalones for Windows and Linux using LC 8.1.2 Indy, and neither
work.
I've tried searching for inclusions, I'v tried manually selecting inclusions
and including mergJSON in the build.

When I say that they do not work, I mean that any observable instance where
data is retrieved and is then displayed in some manner, the program stops
doing whatever script I have it doing. Again, this is just in the
standalone, everything works fine in the IDE.

Did I miss a step in order to get these functions to work in my standalones?



-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Built-in-JSON-functions-not-working-in-standalone-tp4712045.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


Looking for advice on database syncing

2017-01-30 Thread pink via use-livecode
I am working on a new section of my CouchDB library to synchronize a Couch
database with a local array. Before I wade too far in, I wanted to get to
see if my plan makes sense..

I have two questions I'm hoping for input on:
1. Can anyone think of a scenario I am missing?
2. Is there anything missing from the conflict resolution options?

CouchDB uses revision numbers to keep track of changes, so I am trying to
map out all the possible scenarios that should exist.

quick definitions:
   localRev: revision number of the local document from last sync
   serverRev: revision number of the server document
   localDirty: boolean flag that says that the local document has been
edited since last sync  
   
Comparing each document's rev numbers, I envision the following scenarios:
   
1. document is unchanged
localRev = serverRev AND localDirty = false
action: ignore during sync

2. server document is newer
localRev < serverRev AND localDirty = false
action: download latest version

3. document has been edited locally, local copy is the same as server
localRev = serverRev AND localDirty = true
action: upload new version

4. document has been edited locally, BUT server copy is newer
localRev < serverRev AND localDirty = true
action: depends on conflict resolution settings (see below)

5. local document doesn't exist
localRev = empty and serverRev > 0
action: download document

6. local document is new, doesn't exist on server yet
localRev > 0 and serverRev = empty
action: upload document

7. The revision number is generated by the server, so there should be no
reason why localRev > serverRev unless the user has switched to a different
server that has been replicating with the original, and is behind.
action: it's an unlikely scenario... upload local document

8. if the record is marked as deleted locally or on the server, it is
deleted everywhere

Conflict resolution:
These are the options I am planning on for conflict resolution, they will
get passed as a param in the sync function

local: in conflict, keep local, discard server
server: in conflict, keep server, discard local
localmerge: keep local document, insert server document as a subkey in local
document "conflict"
servermerge: keep server document, insert local document as a subkey in
local document "conflict"
keepboth: rename "_id" of local document and upload it, download server
version




-
---
Greg (pink) Miller
mad, pink and dangerous to code
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Looking-for-advice-on-database-syncing-tp4712046.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: Launch URL with Link Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
BR,

This has been described at the ol' "plist hack":
Look at the package contents of the LC.app version your using. Navigate to the 
Contents>Tools>Runtime>iOS folder and set the permissions for write access to 
the "Device-x_x" folders. Then edit the "Settings.plist" files and delete the 2 
lines.. UIApplicationExitsOnSuspend
${APPLICATION_EXITS_ON_SUSPEND}

Rebuild your app. The app will only close if you "Quit" it by LC script or the 
app window is not displayed and iOS needs the memory (although I have never had 
the latter happen)

Hope this helps...

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Sannyasin Brahmanathaswami via use-livecode
Sent: Sunday, January 29, 2017 10:24 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Launch URL with LInk Back to LC App

Use case is: multiple apps and the local  mobile browser, all in a navigable 
ecosystem on small devices.

on iOS, you can make an app that does this

1) Open to home screen
2) go to card "Virtual Tours"
3) click on "Gardens"
4) go to another card name "gardens" (just an example)
5) click a button that has a script like

On  mouseup
launch url http://www.kauai-botanical-gardens.com
end mouseup

Ok build, load and run on the iPhone…

if you click through in the app to card gardens and click on the link and it 
takes you to Safari on iPHone and Chrome on Android.

in iOS you will get a small "< MyApp" in the upper left corner of Safari. 
Android of course has it's default back button.

on iOS if you click that button  "

RE: Launch URL with Link Back to LC App

2017-01-30 Thread Ralph DiMola via use-livecode
BR,

This has been described at the ol' "plist hack":
Look at the package contents of the LC.app version your using. Navigate to the 
Contents>Tools>Runtime>iOS folder and set the permissions for write access to 
the "Device-x_x" folders. Then edit the "Settings.plist" files in those folders 
and delete the 2 lines.. UIApplicationExitsOnSuspend
${APPLICATION_EXITS_ON_SUSPEND}

Rebuild your app. The app will only close if you "Quit" it by LC script or the 
app window is not displayed and iOS needs the memory (although I have never had 
the latter happen)

Hope this helps...

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Sannyasin Brahmanathaswami via use-livecode
Sent: Sunday, January 29, 2017 10:24 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Launch URL with Link Back to LC App

Use case is: multiple apps and the local  mobile browser, all in a navigable 
ecosystem on small devices.

on iOS, you can make an app that does this

1) Open to home screen
2) go to card "Virtual Tours"
3) click on "Gardens"
4) go to another card name "gardens" (just an example)
5) click a button that has a script like

On  mouseup
launch url http://www.kauai-botanical-gardens.com
end mouseup

Ok build, load and run on the iPhone…

if you click through in the app to card gardens and click on the link and it 
takes you to Safari on iPHone and Chrome on Android.

in iOS you will get a small "< MyApp" in the upper left corner of Safari. 
Android of course has it's default back button.

on iOS if you click that button  "

Re: Browser Widget/HTML5/LC Integration

2017-01-30 Thread Alex Tweedly via use-livecode



On 29/01/2017 19:22, Richard Gaskin via use-livecode wrote:

HTML model: Natural Flow

HTML has something we don't:  "natural flow", a set of conventions for 
object placement that are implied and do not need to be specified in 
order to get some form of reasonably useful layout.


HTML also has something else - CSS, The object inheritance model in LC 
allows you to inherit properties (e.g. colour, margins, etc.) for your 
objects - but it doesn't have any easy way to classify together  (I 
wanted to say "group" but that would get confusing :-) a number of 
objects. So in the example here, there were a bunch of buttons ( 
entries) whose properties could be changed consistently by tweaking the 
CSS. I think we lack an equivalently easy way to do it in LC.


Not too long ago we added "behaviours" which allowed us to define a 
script behaviour and attach it to many objects. I think we could benefit 
from an equivalent  'parentAppearance' which would define the properties 
of the parent, and allow those properties to be inherited by the objects 
which specify that parent (over-riding, or rather adding to,  the 
default inheritance via the object / group / card path).


Maybe it's confusing to refer to this as 'appearance' - maybe it should 
simply be any inheritable property - I don't think those are all 
appearance related.


-- Alex.

___
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


[ANN] This Week in LiveCode 68

2017-01-30 Thread Peter TB Brett via use-livecode

Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #68 here: https://goo.gl/0co0Zb


This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project.  New issues will be
released weekly on Mondays.  We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.

 Peter

--
Dr Peter Brett 

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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