Re: Writing Extensions

2017-05-26 Thread JB via use-livecode
That is nice, thanks.

JB


> On May 25, 2017, at 11:51 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 05/25/2017 08:07 PM, JB via use-livecode wrote:
>> Hi Mark,
>> Your way is much better!
>> I just started learning Java a few
>> days ago so the reason I did it
>> wrong was because I did not
>> know what I was doing.
>> THANK YOU!
> 
> Nothing wrong with your java code.
> Your LC script was calling the java app without passing the arguments to it, 
> and then printing the arguments, so it looked like everything was working.
> 
> Try changing the java code to this to see the difference:
> 
> System.out.println(args[i] + " is arg " + (i+1));
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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: Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread Mike Bonner via use-livecode
I keep hoping for a server wide upgrade myself. I don't use the service all
that much so its not really a critical issue for me, but the one site that
IS actually up, and commercial and useful could be improved with an
alternate version.  I'll see if I can get the .htaccess example working ok,
and if so, then I'l think about potential changes.

Thanks for the previously working example.  Hopefully it will return to
being a currently working example.

On Fri, May 26, 2017 at 1:23 PM, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Mike,
>
> i just noticed that my lc server installation on TIO is not working
> anymore :(
>
> Tio is running LC Version 7.1  and that version always shows an empty
> $_post array when the posted data was formated with libUrlMultipartFormData
> I asked support for a server wide upgrade to a version which is able to
> handle that kind of posted data, but w/o success.
>
> So i installed LC DP6 on the 29th April, which is able to handle that kind
> of data,  and it worked w/o problems so far. I am not sure for how long it
> is not working anymore , but im pretty sure it worked at at least until
> last week.
>
> I really do not know what´s the problem is now, but i am really  peeved. I
> have really no time and no desire to check every day if it is still working.
>
> I think i have to move that domain also to HostM. Better and quicker
> support. Normal support requests are answered and solved within a few
> hours. The longest time for a reply was about  4 hours, the shortest 30
> minutes. Very good ticket system, so you can see all previous tickets in
> your customer account. And and and…
>
> Btw, if a customer can proof the purchase of a current commercial LC
> license they install  a version of choice of a commercial license  of LC
> server account wide. No need to install it for every domain / domain folder.
>
> Matthias
>
>
> > Am 26.05.2017 um 20:12 schrieb Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com >:
> >
> > Thank you!!
> >
> >
> > On Fri, May 26, 2017 at 11:39 AM, Matthias Rebbe via use-livecode <
> > use-livecode@lists.runrev.com >
> wrote:
> >
> >> Mike,
> >>
> >> i have successfully intalled LC 9 DP6 on Tio Server using the .htaccess
> >> method.
> >>
> >> This is the content of my .htaccess
> >>
> >>Directory index index.lc
> >>
> >>Options -Indexes
> >>Options ExecCGI
> >>
> >>AddHandler livecode-script .rev .lc9 .lc
> >>Action livecode-script /cgi-bin/livecode-server-9_0_0_dp_6
> >>
> >>
> >> Please note that you need to add this to each .htaccess file for each
> >> domain/domain folder.
> >>
> >> So if you use public_html for your main domain, e.g. mike.on-rev.com <
> http://mike.on-rev.com/> <
> >> http://mike.on-rev.com/ >,  and for an
> additional addon  domain, e.g.
> >> mikebonner.com   http://mikebonner.com/>>, a separate folder, e.g.
> >> /public_html/mikebonner
> >>
> >> then you need to place the .htaccess file and the lcserver binaries into
> >> public_html and also into the "2nd domain” folder
> /public_html/mikebonner.
> >>
> >> So if you have 50 addon domains and each  in its own folder and you want
> >> to use your own LC Server binaries for all 50 domains, then you have to
> >> copy .htaccess and LC Server into
> >> each of the 50 folders.
> >>
> >> Please find a screenshot of the permssions i´ve set for each file here:
> >> https://dl.webfactory.onl/permssions_lcserver.png <
> https://dl.webfactory.onl/permssions_lcserver.png> <
> >> https://dl.webfactory.onl/permssions_lcserver.png <
> https://dl.webfactory.onl/permssions_lcserver.png>>
> >>
> >> HTH,
> >>
> >> Matthias
> >>
> >>
> >> Matthias Rebbe
> >> +49 5741 31
> >> ‌matthiasrebbe.eu   >‌
> >>
> >>
> >>
> >>> Am 26.05.2017 um 18:52 schrieb Mike Bonner via use-livecode <
> >> use-livecode@lists.runrev.com 
>  runrev.com>>>:
> >>>
> >>> Theres another issue with on-rev.  Even if you set the sessionSavePath,
> >> it
> >>> won't work due to the default version of LC on on-rev.  You need to
> >>> override the version using an .htaccess file, but i've not managed to
> >>> actually get that to work for me.  Looking for the link that tells you
> >> how
> >>> to do this. If you actually get it to work please let me know how!
> >>>
> >>> http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose- <
> http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose->
> >> which-livecode-server-engine-to-use-with-on-rev <
> >> http://lessons.livecode.com/m/4070/l/41105-how-do-i- <
> http://lessons.livecode.com/m/4070/l/41105-how-do-i->
> >> choose-which-livecode-server-engine-to-use-with-on-rev>

Re: Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread Matthias Rebbe via use-livecode
Mike,

i just noticed that my lc server installation on TIO is not working anymore :(

Tio is running LC Version 7.1  and that version always shows an empty $_post 
array when the posted data was formated with libUrlMultipartFormData
I asked support for a server wide upgrade to a version which is able to handle 
that kind of posted data, but w/o success.

So i installed LC DP6 on the 29th April, which is able to handle that kind of 
data,  and it worked w/o problems so far. I am not sure for how long it is not 
working anymore , but im pretty sure it worked at at least until last week.

I really do not know what´s the problem is now, but i am really  peeved. I have 
really no time and no desire to check every day if it is still working. 

I think i have to move that domain also to HostM. Better and quicker support. 
Normal support requests are answered and solved within a few hours. The longest 
time for a reply was about  4 hours, the shortest 30 minutes. Very good ticket 
system, so you can see all previous tickets in your customer account. And and 
and…

Btw, if a customer can proof the purchase of a current commercial LC license 
they install  a version of choice of a commercial license  of LC server account 
wide. No need to install it for every domain / domain folder.

Matthias


> Am 26.05.2017 um 20:12 schrieb Mike Bonner via use-livecode 
> >:
> 
> Thank you!!
> 
> 
> On Fri, May 26, 2017 at 11:39 AM, Matthias Rebbe via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> Mike,
>> 
>> i have successfully intalled LC 9 DP6 on Tio Server using the .htaccess
>> method.
>> 
>> This is the content of my .htaccess
>> 
>>Directory index index.lc
>> 
>>Options -Indexes
>>Options ExecCGI
>> 
>>AddHandler livecode-script .rev .lc9 .lc
>>Action livecode-script /cgi-bin/livecode-server-9_0_0_dp_6
>> 
>> 
>> Please note that you need to add this to each .htaccess file for each
>> domain/domain folder.
>> 
>> So if you use public_html for your main domain, e.g. mike.on-rev.com 
>>  <
>> http://mike.on-rev.com/ >,  and for an additional 
>> addon  domain, e.g.
>> mikebonner.com  > >, a separate folder, e.g.
>> /public_html/mikebonner
>> 
>> then you need to place the .htaccess file and the lcserver binaries into
>> public_html and also into the "2nd domain” folder /public_html/mikebonner.
>> 
>> So if you have 50 addon domains and each  in its own folder and you want
>> to use your own LC Server binaries for all 50 domains, then you have to
>> copy .htaccess and LC Server into
>> each of the 50 folders.
>> 
>> Please find a screenshot of the permssions i´ve set for each file here:
>> https://dl.webfactory.onl/permssions_lcserver.png 
>>  <
>> https://dl.webfactory.onl/permssions_lcserver.png 
>> >
>> 
>> HTH,
>> 
>> Matthias
>> 
>> 
>> Matthias Rebbe
>> +49 5741 31
>> ‌matthiasrebbe.eu  > >‌
>> 
>> 
>> 
>>> Am 26.05.2017 um 18:52 schrieb Mike Bonner via use-livecode <
>> use-livecode@lists.runrev.com  
>> > >>:
>>> 
>>> Theres another issue with on-rev.  Even if you set the sessionSavePath,
>> it
>>> won't work due to the default version of LC on on-rev.  You need to
>>> override the version using an .htaccess file, but i've not managed to
>>> actually get that to work for me.  Looking for the link that tells you
>> how
>>> to do this. If you actually get it to work please let me know how!
>>> 
>>> http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose- 
>>> 
>> which-livecode-server-engine-to-use-with-on-rev <
>> http://lessons.livecode.com/m/4070/l/41105-how-do-i- 
>> 
>> choose-which-livecode-server-engine-to-use-with-on-rev>
>>> 
>>> Unless they've updated the default version for .lc files, you'll need to
>>> switch to a more recent version of the server to get sessions to work.
>>> 
>>> On Fri, May 26, 2017 at 10:15 AM, JOHN PATTEN via use-livecode <
>>> use-livecode@lists.runrev.com >
>> wrote:
>>> 
 I think I figured out the issue based on an old post by Sturgis…
 
 Apparently you have to set the sessionSavePath before you call the
>> “start
 session.”
 
 set the sessionSavePath to the defaultfolder
 
 Forum discussion here:
 
 http://forums.livecode.com/viewtopic.php?f=15=10787= <
>> http://forums.livecode.com/viewtopic.php?f=15=10787=>

Raspberry Pi help needed soon

2017-05-26 Thread Richard Gaskin via use-livecode

From this morning's news:

  Raspberry Pi is merging with a coding foundation
  Together, Raspberry Pi and CoderDojo hope to reach 185,000 young
  people in more than 100 countries all over the planet.


This is a great move for both orgs and their audiences, but implies a 
risk for LiveCode platform adoption in further consolidation of 
entrenched support for Scratch and Python.


This suggests that the sooner we can get an updated functional build of 
LiveCode for Raspberry Pi, the better for both our beloved platform and 
RPi users everywhere who currently have to struggle with the gap between 
Scratch and Python.


A LC user on the Glitter channel mentioned working on a new build of LC 
v9 for RPi, but requests for more info have not met with a reply.


We have a forum set up for coordinating these efforts but the two people 
there who've expressed an interest in setting up a build system have run 
into snags with compilation, and support from the LC core dev team has 
not yet materialized:

http://forums.livecode.com/viewtopic.php?f=76=27912

If any of you know your way around a compiler and may be able to lend a 
hand, it would be very valuable for the LiveCode platform to be able to 
run well on Raspberry Pi as soon as practical.


--
 Richard Gaskin
 LiveCode Community Liaison
 rich...@livecode.org

___
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: Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread Mike Bonner via use-livecode
Thank you!!


On Fri, May 26, 2017 at 11:39 AM, Matthias Rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Mike,
>
> i have successfully intalled LC 9 DP6 on Tio Server using the .htaccess
> method.
>
> This is the content of my .htaccess
>
> Directory index index.lc
>
> Options -Indexes
> Options ExecCGI
>
> AddHandler livecode-script .rev .lc9 .lc
> Action livecode-script /cgi-bin/livecode-server-9_0_0_dp_6
>
>
> Please note that you need to add this to each .htaccess file for each
> domain/domain folder.
>
> So if you use public_html for your main domain, e.g. mike.on-rev.com <
> http://mike.on-rev.com/>,  and for an additional addon  domain, e.g.
> mikebonner.com , a separate folder, e.g.
> /public_html/mikebonner
>
> then you need to place the .htaccess file and the lcserver binaries into
> public_html and also into the "2nd domain” folder /public_html/mikebonner.
>
> So if you have 50 addon domains and each  in its own folder and you want
> to use your own LC Server binaries for all 50 domains, then you have to
> copy .htaccess and LC Server into
> each of the 50 folders.
>
> Please find a screenshot of the permssions i´ve set for each file here:
> https://dl.webfactory.onl/permssions_lcserver.png <
> https://dl.webfactory.onl/permssions_lcserver.png>
>
> HTH,
>
> Matthias
>
>
> Matthias Rebbe
> +49 5741 31
> ‌matthiasrebbe.eu ‌
>
>
>
> > Am 26.05.2017 um 18:52 schrieb Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com >:
> >
> > Theres another issue with on-rev.  Even if you set the sessionSavePath,
> it
> > won't work due to the default version of LC on on-rev.  You need to
> > override the version using an .htaccess file, but i've not managed to
> > actually get that to work for me.  Looking for the link that tells you
> how
> > to do this. If you actually get it to work please let me know how!
> >
> > http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose-
> which-livecode-server-engine-to-use-with-on-rev <
> http://lessons.livecode.com/m/4070/l/41105-how-do-i-
> choose-which-livecode-server-engine-to-use-with-on-rev>
> >
> > Unless they've updated the default version for .lc files, you'll need to
> > switch to a more recent version of the server to get sessions to work.
> >
> > On Fri, May 26, 2017 at 10:15 AM, JOHN PATTEN via use-livecode <
> > use-livecode@lists.runrev.com >
> wrote:
> >
> >> I think I figured out the issue based on an old post by Sturgis…
> >>
> >> Apparently you have to set the sessionSavePath before you call the
> “start
> >> session.”
> >>
> >> set the sessionSavePath to the defaultfolder
> >>
> >> Forum discussion here:
> >>
> >> http://forums.livecode.com/viewtopic.php?f=15=10787= <
> http://forums.livecode.com/viewtopic.php?f=15=10787=>
> >> 50056=session#p50034  http://forums.livecode.com/>
> >> viewtopic.php?f=15=10787=50056=session#p50034>
> >>
> >> Cheers!
> >>
> >>
> >>> On May 26, 2017, at 8:39 AM, JOHN PATTEN via use-livecode <
> >> use-livecode@lists.runrev.com >
> wrote:
> >>>
> >>> Hello!
> >>>
> >>> Thanks for those that answered about the problem I was having with FTP.
> >> It was the URLEncode issue that was tripping me up.
> >>>
> >>> However, I’m changing gears as I hadn’t realized that I could not ftp
> >> directly into a htmlpublic directory on On-Rev. Ultimately I am trying
> to
> >> just create a little iOS app that will allow me upload and image and
> create
> >> a simple html page to display the image.
> >>>
> >>> I have been using the LiveCode tutorial here: “How do I use LiveCode
> >> graphics features server-side?” (http://lessons.livecode.com/ <
> http://lessons.livecode.com/>
> >> m/15262/l/156710-how-do-i-use-livecode-graphics-features-server-side <
> >> http://lessons.livecode.com/m/15262/l/156710-how-do-i-use- <
> http://lessons.livecode.com/m/15262/l/156710-how-do-i-use->
> >> livecode-graphics-features-server-side>)
> >>>
> >>> I can’t get this to work the “start session” included in the script?
> >>>
> >>> The example starts:
> >>> ---
> >>>  >>> start session
> >>> ## enter the image file into our $_SESSION if one's just been uploaded
> >>> if $_FILES["imagefile"] is not empty then
> >>> put url("binfile:" & $_FILES["imagefile"]["filename"]) into
> >> $_SESSION["imagedata"]
> >>> end if
> >>> if $_SESSION["imagedata"] is empty then
> >>> printForm ## no image has been uploaded so display the form to
> >> upload one
> >>> else
> >>> create image “myImage” …
> >>>
> >>> 
> >>>
> >>> If I take the “start session” out, the server script works, sort of…as
> I
> >> think it will upload the image, but because there is no session, you
> can’t
> >> manipulate the image.
> >>>
> >>> Has anybody got this example to work? I have tried 

Re: Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread Matthias Rebbe via use-livecode
Mike,

i have successfully intalled LC 9 DP6 on Tio Server using the .htaccess method.

This is the content of my .htaccess

Directory index index.lc

Options -Indexes
Options ExecCGI

AddHandler livecode-script .rev .lc9 .lc
Action livecode-script /cgi-bin/livecode-server-9_0_0_dp_6


Please note that you need to add this to each .htaccess file for each 
domain/domain folder.

So if you use public_html for your main domain, e.g. mike.on-rev.com 
,  and for an additional addon  domain, e.g. 
mikebonner.com , a separate folder, e.g. 
/public_html/mikebonner

then you need to place the .htaccess file and the lcserver binaries into 
public_html and also into the "2nd domain” folder /public_html/mikebonner.

So if you have 50 addon domains and each  in its own folder and you want to use 
your own LC Server binaries for all 50 domains, then you have to copy .htaccess 
and LC Server into
each of the 50 folders.

Please find a screenshot of the permssions i´ve set for each file here:
https://dl.webfactory.onl/permssions_lcserver.png 


HTH,

Matthias


Matthias Rebbe
+49 5741 31
‌matthiasrebbe.eu ‌



> Am 26.05.2017 um 18:52 schrieb Mike Bonner via use-livecode 
> >:
> 
> Theres another issue with on-rev.  Even if you set the sessionSavePath, it
> won't work due to the default version of LC on on-rev.  You need to
> override the version using an .htaccess file, but i've not managed to
> actually get that to work for me.  Looking for the link that tells you how
> to do this. If you actually get it to work please let me know how!
> 
> http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose-which-livecode-server-engine-to-use-with-on-rev
>  
> 
> 
> Unless they've updated the default version for .lc files, you'll need to
> switch to a more recent version of the server to get sessions to work.
> 
> On Fri, May 26, 2017 at 10:15 AM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com > wrote:
> 
>> I think I figured out the issue based on an old post by Sturgis…
>> 
>> Apparently you have to set the sessionSavePath before you call the “start
>> session.”
>> 
>> set the sessionSavePath to the defaultfolder
>> 
>> Forum discussion here:
>> 
>> http://forums.livecode.com/viewtopic.php?f=15=10787= 
>> 
>> 50056=session#p50034 > 
>> viewtopic.php?f=15=10787=50056=session#p50034>
>> 
>> Cheers!
>> 
>> 
>>> On May 26, 2017, at 8:39 AM, JOHN PATTEN via use-livecode <
>> use-livecode@lists.runrev.com > wrote:
>>> 
>>> Hello!
>>> 
>>> Thanks for those that answered about the problem I was having with FTP.
>> It was the URLEncode issue that was tripping me up.
>>> 
>>> However, I’m changing gears as I hadn’t realized that I could not ftp
>> directly into a htmlpublic directory on On-Rev. Ultimately I am trying to
>> just create a little iOS app that will allow me upload and image and create
>> a simple html page to display the image.
>>> 
>>> I have been using the LiveCode tutorial here: “How do I use LiveCode
>> graphics features server-side?” (http://lessons.livecode.com/ 
>> 
>> m/15262/l/156710-how-do-i-use-livecode-graphics-features-server-side <
>> http://lessons.livecode.com/m/15262/l/156710-how-do-i-use- 
>> 
>> livecode-graphics-features-server-side>)
>>> 
>>> I can’t get this to work the “start session” included in the script?
>>> 
>>> The example starts:
>>> ---
>>> >> start session
>>> ## enter the image file into our $_SESSION if one's just been uploaded
>>> if $_FILES["imagefile"] is not empty then
>>> put url("binfile:" & $_FILES["imagefile"]["filename"]) into
>> $_SESSION["imagedata"]
>>> end if
>>> if $_SESSION["imagedata"] is empty then
>>> printForm ## no image has been uploaded so display the form to
>> upload one
>>> else
>>> create image “myImage” …
>>> 
>>> 
>>> 
>>> If I take the “start session” out, the server script works, sort of…as I
>> think it will upload the image, but because there is no session, you can’t
>> manipulate the image.
>>> 
>>> Has anybody got this example to work? I have tried moving the “start
>> session” around to different areas of the server script, but that does not
>> seem to work either.
>>> 
>>> Thank you!
>>> John Patten
>>> SUSD
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, 

Re: Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread Mike Bonner via use-livecode
Interesting, it sounds like the version has been updated for on-rev then.
(because a few weeks back it just was NOT working, session variables not
being kept at all)  glad to hear its working for you!

On Fri, May 26, 2017 at 11:01 AM, JOHN PATTEN via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Mike,
>
> It appears to be working for me now, and I did not have to override the
> version editing the .htaccess file.
>
> What I’d like to do now is keep the script from naming the new image with
> a random number. :)
>
> Cheers!
>
>
>
>
> > On May 26, 2017, at 9:52 AM, Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Theres another issue with on-rev.  Even if you set the sessionSavePath,
> it
> > won't work due to the default version of LC on on-rev.  You need to
> > override the version using an .htaccess file, but i've not managed to
> > actually get that to work for me.  Looking for the link that tells you
> how
> > to do this. If you actually get it to work please let me know how!
> >
> > http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose-
> which-livecode-server-engine-to-use-with-on-rev
> >
> > Unless they've updated the default version for .lc files, you'll need to
> > switch to a more recent version of the server to get sessions to work.
> >
> > On Fri, May 26, 2017 at 10:15 AM, JOHN PATTEN via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> I think I figured out the issue based on an old post by Sturgis…
> >>
> >> Apparently you have to set the sessionSavePath before you call the
> “start
> >> session.”
> >>
> >> set the sessionSavePath to the defaultfolder
> >>
> >> Forum discussion here:
> >>
> >> http://forums.livecode.com/viewtopic.php?f=15=10787=
> >> 50056=session#p50034  >> viewtopic.php?f=15=10787=50056=session#p50034>
> >>
> >> Cheers!
> >>
> >>
> >>> On May 26, 2017, at 8:39 AM, JOHN PATTEN via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> Hello!
> >>>
> >>> Thanks for those that answered about the problem I was having with FTP.
> >> It was the URLEncode issue that was tripping me up.
> >>>
> >>> However, I’m changing gears as I hadn’t realized that I could not ftp
> >> directly into a htmlpublic directory on On-Rev. Ultimately I am trying
> to
> >> just create a little iOS app that will allow me upload and image and
> create
> >> a simple html page to display the image.
> >>>
> >>> I have been using the LiveCode tutorial here: “How do I use LiveCode
> >> graphics features server-side?” (http://lessons.livecode.com/
> >> m/15262/l/156710-how-do-i-use-livecode-graphics-features-server-side <
> >> http://lessons.livecode.com/m/15262/l/156710-how-do-i-use-
> >> livecode-graphics-features-server-side>)
> >>>
> >>> I can’t get this to work the “start session” included in the script?
> >>>
> >>> The example starts:
> >>> ---
> >>>  >>> start session
> >>> ## enter the image file into our $_SESSION if one's just been uploaded
> >>> if $_FILES["imagefile"] is not empty then
> >>> put url("binfile:" & $_FILES["imagefile"]["filename"]) into
> >> $_SESSION["imagedata"]
> >>> end if
> >>> if $_SESSION["imagedata"] is empty then
> >>> printForm ## no image has been uploaded so display the form to
> >> upload one
> >>> else
> >>> create image “myImage” …
> >>>
> >>> 
> >>>
> >>> If I take the “start session” out, the server script works, sort of…as
> I
> >> think it will upload the image, but because there is no session, you
> can’t
> >> manipulate the image.
> >>>
> >>> Has anybody got this example to work? I have tried moving the “start
> >> session” around to different areas of the server script, but that does
> not
> >> seem to work either.
> >>>
> >>> 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
> >>
> > ___
> > 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: Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread JOHN PATTEN via use-livecode
Hi Mike,

It appears to be working for me now, and I did not have to override the version 
editing the .htaccess file. 

What I’d like to do now is keep the script from naming the new image with a 
random number. :)

Cheers!




> On May 26, 2017, at 9:52 AM, Mike Bonner via use-livecode 
>  wrote:
> 
> Theres another issue with on-rev.  Even if you set the sessionSavePath, it
> won't work due to the default version of LC on on-rev.  You need to
> override the version using an .htaccess file, but i've not managed to
> actually get that to work for me.  Looking for the link that tells you how
> to do this. If you actually get it to work please let me know how!
> 
> http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose-which-livecode-server-engine-to-use-with-on-rev
> 
> Unless they've updated the default version for .lc files, you'll need to
> switch to a more recent version of the server to get sessions to work.
> 
> On Fri, May 26, 2017 at 10:15 AM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I think I figured out the issue based on an old post by Sturgis…
>> 
>> Apparently you have to set the sessionSavePath before you call the “start
>> session.”
>> 
>> set the sessionSavePath to the defaultfolder
>> 
>> Forum discussion here:
>> 
>> http://forums.livecode.com/viewtopic.php?f=15=10787=
>> 50056=session#p50034 > viewtopic.php?f=15=10787=50056=session#p50034>
>> 
>> Cheers!
>> 
>> 
>>> On May 26, 2017, at 8:39 AM, JOHN PATTEN via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hello!
>>> 
>>> Thanks for those that answered about the problem I was having with FTP.
>> It was the URLEncode issue that was tripping me up.
>>> 
>>> However, I’m changing gears as I hadn’t realized that I could not ftp
>> directly into a htmlpublic directory on On-Rev. Ultimately I am trying to
>> just create a little iOS app that will allow me upload and image and create
>> a simple html page to display the image.
>>> 
>>> I have been using the LiveCode tutorial here: “How do I use LiveCode
>> graphics features server-side?” (http://lessons.livecode.com/
>> m/15262/l/156710-how-do-i-use-livecode-graphics-features-server-side <
>> http://lessons.livecode.com/m/15262/l/156710-how-do-i-use-
>> livecode-graphics-features-server-side>)
>>> 
>>> I can’t get this to work the “start session” included in the script?
>>> 
>>> The example starts:
>>> ---
>>> >> start session
>>> ## enter the image file into our $_SESSION if one's just been uploaded
>>> if $_FILES["imagefile"] is not empty then
>>> put url("binfile:" & $_FILES["imagefile"]["filename"]) into
>> $_SESSION["imagedata"]
>>> end if
>>> if $_SESSION["imagedata"] is empty then
>>> printForm ## no image has been uploaded so display the form to
>> upload one
>>> else
>>> create image “myImage” …
>>> 
>>> 
>>> 
>>> If I take the “start session” out, the server script works, sort of…as I
>> think it will upload the image, but because there is no session, you can’t
>> manipulate the image.
>>> 
>>> Has anybody got this example to work? I have tried moving the “start
>> session” around to different areas of the server script, but that does not
>> seem to work either.
>>> 
>>> 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
>> 
> ___
> 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: Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread Mike Bonner via use-livecode
Theres another issue with on-rev.  Even if you set the sessionSavePath, it
won't work due to the default version of LC on on-rev.  You need to
override the version using an .htaccess file, but i've not managed to
actually get that to work for me.  Looking for the link that tells you how
to do this. If you actually get it to work please let me know how!

http://lessons.livecode.com/m/4070/l/41105-how-do-i-choose-which-livecode-server-engine-to-use-with-on-rev

Unless they've updated the default version for .lc files, you'll need to
switch to a more recent version of the server to get sessions to work.

On Fri, May 26, 2017 at 10:15 AM, JOHN PATTEN via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I think I figured out the issue based on an old post by Sturgis…
>
> Apparently you have to set the sessionSavePath before you call the “start
> session.”
>
> set the sessionSavePath to the defaultfolder
>
> Forum discussion here:
>
> http://forums.livecode.com/viewtopic.php?f=15=10787=
> 50056=session#p50034  viewtopic.php?f=15=10787=50056=session#p50034>
>
> Cheers!
>
>
> > On May 26, 2017, at 8:39 AM, JOHN PATTEN via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hello!
> >
> > Thanks for those that answered about the problem I was having with FTP.
> It was the URLEncode issue that was tripping me up.
> >
> > However, I’m changing gears as I hadn’t realized that I could not ftp
> directly into a htmlpublic directory on On-Rev. Ultimately I am trying to
> just create a little iOS app that will allow me upload and image and create
> a simple html page to display the image.
> >
> > I have been using the LiveCode tutorial here: “How do I use LiveCode
> graphics features server-side?” (http://lessons.livecode.com/
> m/15262/l/156710-how-do-i-use-livecode-graphics-features-server-side <
> http://lessons.livecode.com/m/15262/l/156710-how-do-i-use-
> livecode-graphics-features-server-side>)
> >
> > I can’t get this to work the “start session” included in the script?
> >
> > The example starts:
> > ---
> >  > start session
> > ## enter the image file into our $_SESSION if one's just been uploaded
> > if $_FILES["imagefile"] is not empty then
> >  put url("binfile:" & $_FILES["imagefile"]["filename"]) into
> $_SESSION["imagedata"]
> > end if
> > if $_SESSION["imagedata"] is empty then
> >  printForm ## no image has been uploaded so display the form to
> upload one
> > else
> >  create image “myImage” …
> >
> > 
> >
> > If I take the “start session” out, the server script works, sort of…as I
> think it will upload the image, but because there is no session, you can’t
> manipulate the image.
> >
> > Has anybody got this example to work? I have tried moving the “start
> session” around to different areas of the server script, but that does not
> seem to work either.
> >
> > 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
>
___
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: Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
Thank you Devin :)

Sent from my iPhone

> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
>  wrote:
> 
> Jonathan,
> 
> I worked it out for my class. Here’s a sample app that takes you through the 
> main points.
> 
> http://livecode.byu.edu/mobile/sensorExercise.php
> 
> Devin
> 
> On May 26, 2017, at 9:30 AM, Jonathan Lynch via use-livecode 
> > wrote:
> 
> Never mind - I see
> 
> It works after you turn on mobileSensorStartTracking, and appears to return 
> an array on my device
> 
> Sent from my iPhone
> 
> On May 26, 2017, at 10:56 AM, Jonathan Lynch 
> > wrote:
> 
> 
> I put a button on my app and put the app on my iPhone.
> 
> The button had the following script:
> 
> 
> on mouseUp
> 
> put MobileSensorReading("location",true) into tReading
> 
> answer the Keys of tReading
> 
> answer tReading
> 
> end mouseUp
> 
> 
> I figured this would tell me if the function was supposed to return an array 
> or a variable, since I had read both online.
> 
> Interestingly, it returned empty for both.
> 
> 
> 
> --
> Do all things with love
> ___
> 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
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> 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: Does MobileSensorReading work?

2017-05-26 Thread Devin Asay via use-livecode
Jonathan,

I worked it out for my class. Here’s a sample app that takes you through the 
main points.

http://livecode.byu.edu/mobile/sensorExercise.php

Devin

On May 26, 2017, at 9:30 AM, Jonathan Lynch via use-livecode 
> wrote:

Never mind - I see

It works after you turn on mobileSensorStartTracking, and appears to return an 
array on my device

Sent from my iPhone

On May 26, 2017, at 10:56 AM, Jonathan Lynch 
> wrote:


I put a button on my app and put the app on my iPhone.

The button had the following script:


on mouseUp

put MobileSensorReading("location",true) into tReading

answer the Keys of tReading

answer tReading

end mouseUp


I figured this would tell me if the function was supposed to return an array or 
a variable, since I had read both online.

Interestingly, it returned empty for both.



--
Do all things with love
___
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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Funny pricing policy

2017-05-26 Thread ** Clarence P Martin ** via use-livecode
The one thing that makes an application development that is great is the 
userbase. I enjoy the "use LiveCode" and the "LiveCode forum" because of the 
great questions and the even greater response from users to help each other.
I use both tools on a regular basis. We have a society that has fallen into a 
selfish mode -and thankfully not the Livecode community.

Sincerely,

Clarence Martin
Email: chi...@themartinz.com
Cell: 626 6965561

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Richard Gaskin via use-livecode
Sent: Friday, May 26, 2017 9:02 AM
To: How to use LiveCode 
Cc: Richard Gaskin 
Subject: Re: Funny pricing policy

Dan Brown wrote:

> Developer conferences nowadays are more often than not available 
> online, for free http://pyvideo.org and are utilised to showcase ideas 
> and concepts to a wider audience. They're a great marketing asset, 
> especially keynotes

FWIW I requested that my Community session for the LiveCode online conference 
be made publicly available for free, and they have supported that request.

Everything I volunteer for with the LiveCode Community is for the benefit of 
everyone, those who might enjoy learning about LiveCode and those who benefit 
from growing the platform.


One thing worth noting about PyCon and many other conferences for open source 
platforms is that those are community efforts, organized by and for the 
community.

Björnke von Gierke used to run a weekly series of video conferences called 
LiveCode TV. Todd Fabacher has run several live webinars, and he and others 
have expressed an interest in making those a regular thing.

With Google On Air freely available for everyone (Mac, Windows, Linux), the 
tools to making and sharing live presentations have only gotten better.

--
  Richard Gaskin
  LiveCode Community Liaison
  rich...@livecode.org

___
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: Funny pricing policy

2017-05-26 Thread ** Clarence P Martin ** via use-livecode
Here, Here Richard!

Sincerely,

Clarence Martin
Email: chi...@themartinz.com
Cell: 626 6965561

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Richard Gaskin via use-livecode
Sent: Friday, May 26, 2017 9:02 AM
To: How to use LiveCode 
Cc: Richard Gaskin 
Subject: Re: Funny pricing policy

Dan Brown wrote:

> Developer conferences nowadays are more often than not available 
> online, for free http://pyvideo.org and are utilised to showcase ideas 
> and concepts to a wider audience. They're a great marketing asset, 
> especially keynotes

FWIW I requested that my Community session for the LiveCode online conference 
be made publicly available for free, and they have supported that request.

Everything I volunteer for with the LiveCode Community is for the benefit of 
everyone, those who might enjoy learning about LiveCode and those who benefit 
from growing the platform.


One thing worth noting about PyCon and many other conferences for open source 
platforms is that those are community efforts, organized by and for the 
community.

Björnke von Gierke used to run a weekly series of video conferences called 
LiveCode TV. Todd Fabacher has run several live webinars, and he and others 
have expressed an interest in making those a regular thing.

With Google On Air freely available for everyone (Mac, Windows, Linux), the 
tools to making and sharing live presentations have only gotten better.

--
  Richard Gaskin
  LiveCode Community Liaison
  rich...@livecode.org

___
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: Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread JOHN PATTEN via use-livecode
I think I figured out the issue based on an old post by Sturgis…

Apparently you have to set the sessionSavePath before you call the “start 
session.”

set the sessionSavePath to the defaultfolder

Forum discussion here:

http://forums.livecode.com/viewtopic.php?f=15=10787=50056=session#p50034
 


Cheers!


> On May 26, 2017, at 8:39 AM, JOHN PATTEN via use-livecode 
>  wrote:
> 
> Hello!
> 
> Thanks for those that answered about the problem I was having with FTP. It 
> was the URLEncode issue that was tripping me up. 
> 
> However, I’m changing gears as I hadn’t realized that I could not ftp 
> directly into a htmlpublic directory on On-Rev. Ultimately I am trying to 
> just create a little iOS app that will allow me upload and image and create a 
> simple html page to display the image.
> 
> I have been using the LiveCode tutorial here: “How do I use LiveCode graphics 
> features server-side?” 
> (http://lessons.livecode.com/m/15262/l/156710-how-do-i-use-livecode-graphics-features-server-side
>  
> )
>  
> 
> I can’t get this to work the “start session” included in the script?
> 
> The example starts:
> ---
>  start session
> ## enter the image file into our $_SESSION if one's just been uploaded
> if $_FILES["imagefile"] is not empty then
>  put url("binfile:" & $_FILES["imagefile"]["filename"]) into 
> $_SESSION["imagedata"]
> end if
> if $_SESSION["imagedata"] is empty then
>  printForm ## no image has been uploaded so display the form to 
> upload one
> else
>  create image “myImage” …
> 
> 
> 
> If I take the “start session” out, the server script works, sort of…as I 
> think it will upload the image, but because there is no session, you can’t 
> manipulate the image.
> 
> Has anybody got this example to work? I have tried moving the “start session” 
> around to different areas of the server script, but that does not seem to 
> work either.
> 
> 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: Funny pricing policy

2017-05-26 Thread Richard Gaskin via use-livecode

Dan Brown wrote:


Developer conferences nowadays are more often than not available
online, for free http://pyvideo.org and are utilised to showcase ideas
and concepts to a wider audience. They're a great marketing asset,
especially keynotes


FWIW I requested that my Community session for the LiveCode online 
conference be made publicly available for free, and they have supported 
that request.


Everything I volunteer for with the LiveCode Community is for the 
benefit of everyone, those who might enjoy learning about LiveCode and 
those who benefit from growing the platform.



One thing worth noting about PyCon and many other conferences for open 
source platforms is that those are community efforts, organized by and 
for the community.


Björnke von Gierke used to run a weekly series of video conferences 
called LiveCode TV. Todd Fabacher has run several live webinars, and he 
and others have expressed an interest in making those a regular thing.


With Google On Air freely available for everyone (Mac, Windows, Linux), 
the tools to making and sharing live presentations have only gotten better.


--
 Richard Gaskin
 LiveCode Community Liaison
 rich...@livecode.org

___
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

Uploading Image - Livecode Tutorial Example? Sessions?

2017-05-26 Thread JOHN PATTEN via use-livecode
Hello!

Thanks for those that answered about the problem I was having with FTP. It was 
the URLEncode issue that was tripping me up. 

However, I’m changing gears as I hadn’t realized that I could not ftp directly 
into a htmlpublic directory on On-Rev. Ultimately I am trying to just create a 
little iOS app that will allow me upload and image and create a simple html 
page to display the image.

I have been using the LiveCode tutorial here: “How do I use LiveCode graphics 
features server-side?” 
(http://lessons.livecode.com/m/15262/l/156710-how-do-i-use-livecode-graphics-features-server-side
 
)
 

I can’t get this to work the “start session” included in the script?

The example starts:
---
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-26 Thread Jonathan Lynch via use-livecode
Hi Ralph,

It is working just fine. Thanks!



Sent from my iPhone

> On May 25, 2017, at 6:45 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> It works for me on OSX 10.11.6
> 
> 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 Mike Kerner via use-livecode
> Sent: Wednesday, May 24, 2017 10:04 PM
> To: How to use LiveCode
> Cc: Mike Kerner
> Subject: Re: Is there any way at all to have a mobile app simply resume
> rather than restart?
> 
> I'm pretty sure you can't do it while it's still in the applications folder.
> You have to command-drag it out of the applications folder, first, before
> you modify it - at least I do, anyway.
> 
> On Wed, May 24, 2017 at 5:57 PM, Jonathan Lynch via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> This is great Ralph
>> 
>> Thank you
>> 
>> I wonder if this can open up other possibilities as well
>> 
>> Sent from my iPhone
>> 
>>> On May 24, 2017, at 5:17 PM, Ralph DiMola 
>>> 
>> wrote:
>>> 
>>> 1) Go to the Applications folder
>>> 2) Right click on the LC app you are using and select "Show Package 
>>> Contents"
>>> 3) Navigate to the "Tools/Runtime/iOS" folder
>>> 4) Right click on all the device/simulator folders one at a time and
>> select
>>> "Get Info"
>>> 5) At the bottom click on the "Read only" to the right of your 
>>> account
>> name
>>> and select "Read & Write"
>>> 6) Repeat 5 for all device/simulator folders
>>> 7) In each of the device/simulator folders edit the setting.plist file.
>>> 8) To edit... right click the setting.plist file and select "Open With"
>> and
>>> then "Other..." and select "TextEdit.app".
>>> 9) You will get a warning that the file is locked. Choose the Unlock
>> option.
>>> 
>>> 10) Either change UIApplicationExitsOnSuspend key value to "False" 
>>> or
>> like I
>>> do delete the key all together(2 lines)
>>> 11) repeat 8-10 for setting.plist in each of the device/simulator
>> folders.
>>> 12) Fire up LC and make an iOS app.
>>> 
>>> 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 Jonathan Lynch via use-livecode
>>> Sent: Wednesday, May 24, 2017 4:37 PM
>>> To: How to use LiveCode
>>> Cc: jonathandly...@gmail.com
>>> Subject: Re: Is there any way at all to have a mobile app simply 
>>> resume rather than restart?
>>> 
>>> I don't actually know how to do any of the steps for this - would be
>> easy on
>>> a pc. Researching it now.
>>> 
>>> Sent from my iPhone
>>> 
 On May 24, 2017, at 4:27 PM, jonathandly...@gmail.com wrote:
 
 I read that on the forums, but I defer to Ralph on this.
 
 I am playing with the hack now.
 
 I think I could also have a legitimate reason for playing audio -
>> changing
>>> the music as a user gets closer to a marker - but that would be a 
>>> lot of trouble to set up right now.
 
 Sent from my iPhone
 
> On May 24, 2017, at 4:07 PM, Mike Kerner via use-livecode
>>>  wrote:
> 
> Are you sure?  I'm pretty sure I have at least a couple of apps I 
> built in
> 8 that still use the hack.
> 
> On Wed, May 24, 2017 at 3:54 PM, Jonathan Lynch via use-livecode < 
> use-livecode@lists.runrev.com> wrote:
> 
>> It looks like the plist hack is not available in version 8.
>> 
>> Choosing background audio works - but that means I need to have a 
>> plausible reason for having background audio or Apple reviewers 
>> might ding the app.
>> 
>> What a pain - why not just allow it to work the way other apps work?
>> 
>> Sent from my iPhone
>> 
>>> On May 24, 2017, at 3:43 PM, jonathandly...@gmail.com wrote:
>>> 
>>> Thank you!
>>> 
>>> Sent from my iPhone
>>> 
 On May 24, 2017, at 3:34 PM, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
 
 If you're referring to ios, look up "plist hack", here.  The 
 only thing
>> to
 remember is that for each version of LC, you have to perform 
 the hack, again, until Edinburgh gives us a Standalone Settings
> option.
 
 On Wed, May 24, 2017 at 3:22 PM, Jonathan Lynch via 
 use-livecode < use-livecode@lists.runrev.com> wrote:
 
> Having to restart the app from scratch sucks. I can store the 
> current state, but my users would have to wait for the map 
> widget to reload
>> every
> time they came back from another app.
> 
> Sent from my iPhone
> ___
> use-livecode mailing list
> 

Re: Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
Never mind - I see

It works after you turn on mobileSensorStartTracking, and appears to return an 
array on my device

Sent from my iPhone

> On May 26, 2017, at 10:56 AM, Jonathan Lynch  wrote:
> 
> 
> I put a button on my app and put the app on my iPhone.
> 
> The button had the following script:
> 
> 
> on mouseUp
> 
> put MobileSensorReading("location",true) into tReading
> 
> answer the Keys of tReading
> 
> answer tReading
> 
> end mouseUp
> 
> 
> I figured this would tell me if the function was supposed to return an array 
> or a variable, since I had read both online.
> 
> Interestingly, it returned empty for both.
> 
> 
> 
> -- 
> Do all things with love
___
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: Funny pricing policy

2017-05-26 Thread Heather Laine via use-livecode
Dear Hermann (and Richmond),

I've responded to your email to support, I trust we can resolve all this 
amicably and become friends again. 

I have now added a note to the survey page to say that if you purchased a 
conference ticket already, and want your free tshirt, just email us. We should 
of course have thought of doing this at the time, but hindsight is 20/20. 

Richmond... the image you have painted in my mind of the entire team doing 
their presentations topless is going to take a while to erase from my mind... 

Warm Regards,

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.com



> On 26 May 2017, at 15:44, hh via use-livecode  
> wrote:
> 
>> Richmond M. wrote
>> ... become even more the court jester than I ever intended to be ...
> 
> Court jesters were, from my point of view, always very influent and honoured 
> people.
> A nobody was ever able to make a fool out of them.
> 
> But I'm sorry about having written my 'donation' in public and not asking you 
> before that, was not polite, sorry for that.
> 
> I already wrote to support, so I'll write a second time, donate to another 
> person.
> 
> 
> ___
> 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: Does MobileSensorReading work?

2017-05-26 Thread John Dixon via use-livecode
You must start the 'sensor' first... usually done in your openStack handler... 
as in :-


on openStack

if environment() = "mobile" then


  mobileStartTrackingSensor "location", false

end if

end openStack


on locationChanged latitude, longitude

   set the theCurrentLocation of this stack to latitude & comma & longitude

end locationChanged


then as your location changes, the locationChanged message will give you the 
new lat/long 


Dixie


From: use-livecode  on behalf of 
Jonathan Lynch via use-livecode 
Sent: 26 May 2017 15:56
To: How to use LiveCode
Cc: Jonathan Lynch
Subject: Does MobileSensorReading work?

I put a button on my app and put the app on my iPhone.

The button had the following script:


on mouseUp

put MobileSensorReading("location",true) into tReading

answer the Keys of tReading

answer tReading

end mouseUp

I figured this would tell me if the function was supposed to return an
array or a variable, since I had read both online.

Interestingly, it returned empty for both.



--
Do all things with love
___
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
Runtime Revolution - use-livecode Mailing 
List
lists.runrev.com
This mailing list is intended for discussion relating to using LiveCode. To see 
the collection of prior postings to the list, visit the use-livecode Archives


___
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

Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
I put a button on my app and put the app on my iPhone.

The button had the following script:


on mouseUp

put MobileSensorReading("location",true) into tReading

answer the Keys of tReading

answer tReading

end mouseUp

I figured this would tell me if the function was supposed to return an
array or a variable, since I had read both online.

Interestingly, it returned empty for both.



-- 
Do all things with love
___
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: Funny pricing policy

2017-05-26 Thread hh via use-livecode
> Richmond M. wrote
> ... become even more the court jester than I ever intended to be ...

Court jesters were, from my point of view, always very influent and honoured 
people.
A nobody was ever able to make a fool out of them.

But I'm sorry about having written my 'donation' in public and not asking you 
before that, was not polite, sorry for that.

I already wrote to support, so I'll write a second time, donate to another 
person.


___
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: Funny pricing policy

2017-05-26 Thread Richmond Mathewson via use-livecode
Well, this is very kind of you, although I do feel rather "funny" about 
the whole thing.


I was donated something else a while back in a similar sort of 'rebound' 
reaction, and

have obviously become even more the court jester than I ever intended to be.

The only reason that I would consider accepting the T-shirt (if it is, 
indeed, available) is that
it might do some good were I to wear it when teaching my summer LiveCode 
classes in June-July.


"to watch speakers in T-shirts"

Well, frankly I'd much prefer to watch speakers in T-shirts than 
speakers without T-shirts as topless programming
does not really excite me (although, admittedly, in the hot summer 
weather I have been known to do some

LiveCode programming in just my underpants in the privacy of my own room).

Richmond.

On 5/26/17 2:56 pm, hh via use-livecode wrote:

It is exactly as funny as I said, no confusion:

If you purchased the ticket before the first discount, didn't buy a T-shirt for 
100%, and took the survey after that all, you get no discount.
But you get an extra email that you get a free T-shirt if you sign up (now) for 
the conference. What a logic!

I booked very early but I'm no longer interested in the conference, to watch 
speakers in T-shirts after such a pricing policy. No thank you.

Richmond, I'll donate you my ticket, for free. No fun. Write to support, you 
should get also a free T-shirt now. Because 'your ticket' now answered the 
survey twice...

Hermann.
___
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: Funny pricing policy

2017-05-26 Thread hh via use-livecode
It is exactly as funny as I said, no confusion:

If you purchased the ticket before the first discount, didn't buy a T-shirt for 
100%, and took the survey after that all, you get no discount.
But you get an extra email that you get a free T-shirt if you sign up (now) for 
the conference. What a logic!

I booked very early but I'm no longer interested in the conference, to watch 
speakers in T-shirts after such a pricing policy. No thank you.

Richmond, I'll donate you my ticket, for free. No fun. Write to support, you 
should get also a free T-shirt now. Because 'your ticket' now answered the 
survey twice...

Hermann.
___
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


Pinch and zoom images with the widget browser ?

2017-05-26 Thread Ludovic THEBAULT via use-livecode
Hello,

It is possible to pinch and zoom « natively » images  with the widget browser 
as it is possible to do it with the « classic » browser : 
http://forums.livecode.com/viewtopic.php?f=49=11229


I’ve tried with the url of the picture but nothing is displayed on the web 
page, of with an basic html page but pinch and zoom doesn’t work.

Thanks !

Ludovic
___
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: Is there any way at all to have a mobile app simply resume rather than restart?

2017-05-26 Thread Mark Waddingham via use-livecode

On 2017-05-24 21:34, Mike Kerner via use-livecode wrote:
If you're referring to ios, look up "plist hack", here.  The only thing 
to

remember is that for each version of LC, you have to perform the hack,
again, until Edinburgh gives us a Standalone Settings option.


Like this:

  https://github.com/livecode/livecode/pull/5515

Alex is also working on adding all the options for 'background 
execution' too.


Both of these should appear in the next 9 DP (7), which will appear when 
we've
finally got everything working again (after updating Skia, toolchains 
etc.) -
the latter has been causing us significant headaches for quite a 
while...


Warmest Regards,

Mark.

P.S. Yes it took a long time to add this - a slight case of 
ball-dropping amongst

a vast variety of other things!

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: Funny pricing policy

2017-05-26 Thread Richmond Mathewson via use-livecode

Ah, Well, it was worth a try :)

Richmond.

On 5/26/17 2:02 pm, Mark Waddingham via use-livecode wrote:

On 2017-05-26 12:58, Richmond Mathewson via use-livecode wrote:

Ah: so as I took the survey, but am not signing up for the conference
I should be getting a T-shirt . . . .


No - if you took the survey, then you get a coupon giving you a free 
t-shirt *if*

you sign up for the conference.

If you just took the survey, and do not sign up, you'll still be 
entered into

the gift voucher prize draw.

Warmest Regards,

Mark.



___
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: English Like?

2017-05-26 Thread Richmond Mathewson via use-livecode
"The Colonies" . . . err . . . Scotland, Wales, Northern Ireland, the 
Falklands, Gibraltar and St. Helena . . .


Or do you mean the erstwhile colonies? And how erstwhile do you mean?

The North American Colonies . . . um.

As LiveCode is made in a current English Colony (Scotland) but seems to 
adhere to English usage according
to an erstwhile colony (USA), somewhere, somehow this argument doesn't 
hold water at all.


Probably what is needed is a colonoscopy.

Richmond.


On 5/26/17 1:42 pm, Roger Eller via use-livecode wrote:

I do not profess to be a professor of English, Mike.  I must say though, I
have never felt felt that felt as soft as the felt at Mr. Felt's felt
factory.

On May 25, 2017 9:41 PM, "Mike Kerner via use-livecode" <
use-livecode@lists.runrev.com> wrote:


NO!  NO!  NO!  NO!  NO!  NO!
I understand that inside the Colonies, the punctuation goes inside the
quotation marks, and outside the Colonies, the punctuation goes outside the
quotation marks.  Just because this thread is being read and replied to
from both inside and outside the Colonies does not give you the right to
put the punctuation in both places.  You, Sir, are guilty of the worst
foible of all.  You may not have it both ways.

On Thu, May 25, 2017 at 9:23 PM, Roger Eller via use-livecode <
use-livecode@lists.runrev.com> wrote:


Were would you use "box" as a synonym (if it were one)?  Is it the same

as

"rectangle" or "ask/answer".  End users often tell me, "a box popped up

on

my screen.", not a prompt, or a message.  Next, they proceed to tell me
what it said.

ME: "You're telling me, there was a _talking box_ on your screen?".

~Roger

On May 24, 2017 5:49 PM, "Mark Wieder via use-livecode" <
use-livecode@lists.runrev.com> wrote:

On 05/24/2017 05:43 AM, Mike Kerner via use-livecode wrote:


One of the other things that the xtalk languages have that makes them

more

appealing is synonyms




--
  Mark Wieder
  ahsoftw...@gmail.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




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


___
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: Funny pricing policy

2017-05-26 Thread Mark Waddingham via use-livecode

On 2017-05-26 12:58, Richmond Mathewson via use-livecode wrote:

Ah: so as I took the survey, but am not signing up for the conference
I should be getting a T-shirt . . . .


No - if you took the survey, then you get a coupon giving you a free 
t-shirt *if*

you sign up for the conference.

If you just took the survey, and do not sign up, you'll still be entered 
into

the gift voucher prize draw.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: Funny pricing policy

2017-05-26 Thread Richmond Mathewson via use-livecode
Ah: so as I took the survey, but am not signing up for the conference I 
should be getting a T-shirt . . . .


Richmond.

On 5/26/17 1:18 pm, Heather Laine via use-livecode wrote:

Folks, sorry for any confusion. The free t-shirt is a reward for taking the 
survey. We thought it would be a nice little extra surprise. However if you 
took the survey and already purchased a t-shirt with your LiveCode Global 
ticket, just let us know and we'll give you a coupon to the value. Or an extra 
t-shirt, free :). Note that the coupon for your free t is time limited, it 
expires on 30th May.

Best regards,

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.com




On 25 May 2017, at 17:02, hh via use-livecode  
wrote:


Mike K. wrote:
Or, you can email support and magically get the discount applied,
retroactively.

That's even a bit more funny.
Email support after each new discount to get the discount applied,
retroactively? Why not the future discounts?

;-)


___
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: English Like?

2017-05-26 Thread Roger Eller via use-livecode
I do not profess to be a professor of English, Mike.  I must say though, I
have never felt felt that felt as soft as the felt at Mr. Felt's felt
factory.

On May 25, 2017 9:41 PM, "Mike Kerner via use-livecode" <
use-livecode@lists.runrev.com> wrote:

> NO!  NO!  NO!  NO!  NO!  NO!
> I understand that inside the Colonies, the punctuation goes inside the
> quotation marks, and outside the Colonies, the punctuation goes outside the
> quotation marks.  Just because this thread is being read and replied to
> from both inside and outside the Colonies does not give you the right to
> put the punctuation in both places.  You, Sir, are guilty of the worst
> foible of all.  You may not have it both ways.
>
> On Thu, May 25, 2017 at 9:23 PM, Roger Eller via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Were would you use "box" as a synonym (if it were one)?  Is it the same
> as
> > "rectangle" or "ask/answer".  End users often tell me, "a box popped up
> on
> > my screen.", not a prompt, or a message.  Next, they proceed to tell me
> > what it said.
> >
> > ME: "You're telling me, there was a _talking box_ on your screen?".
> >
> > ~Roger
> >
> > On May 24, 2017 5:49 PM, "Mark Wieder via use-livecode" <
> > use-livecode@lists.runrev.com> wrote:
> >
> > On 05/24/2017 05:43 AM, Mike Kerner via use-livecode wrote:
> >
> > > One of the other things that the xtalk languages have that makes them
> > more
> > > appealing is synonyms
> > >
> >
> > 
> >
> > --
> >  Mark Wieder
> >  ahsoftw...@gmail.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
> >
>
>
>
> --
> 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
>
___
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: Funny pricing policy

2017-05-26 Thread Heather Laine via use-livecode
Folks, sorry for any confusion. The free t-shirt is a reward for taking the 
survey. We thought it would be a nice little extra surprise. However if you 
took the survey and already purchased a t-shirt with your LiveCode Global 
ticket, just let us know and we'll give you a coupon to the value. Or an extra 
t-shirt, free :). Note that the coupon for your free t is time limited, it 
expires on 30th May.

Best regards,

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.com



> On 25 May 2017, at 17:02, hh via use-livecode  
> wrote:
> 
>> Mike K. wrote:
>> Or, you can email support and magically get the discount applied,
>> retroactively.
> 
> That's even a bit more funny.
> Email support after each new discount to get the discount applied,
> retroactively? Why not the future discounts?
> 
> ;-)
> 
> 
> ___
> 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: Writing Extensions

2017-05-26 Thread Mark Wieder via use-livecode

On 05/25/2017 08:07 PM, JB via use-livecode wrote:

Hi Mark,

Your way is much better!

I just started learning Java a few
days ago so the reason I did it
wrong was because I did not
know what I was doing.

THANK YOU!


Nothing wrong with your java code.
Your LC script was calling the java app without passing the arguments to 
it, and then printing the arguments, so it looked like everything was 
working.


Try changing the java code to this to see the difference:

System.out.println(args[i] + " is arg " + (i+1));

--
 Mark Wieder
 ahsoftw...@gmail.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