Re: OT (?): Bookmarking GPS coords

2017-04-10 Thread Alan via use-livecode
Hi Alex

It's pretty straightforward to record current location on mobile - using 
mobileStartTrackingSensor, mobileSensorReading (when you want to grab current 
location) and so on.

Just make sure you start tracking when the user starts your app to give the GPS 
system time to get going and you might also want to check the horizontal 
accuracy of your reading(s) to ensure that it's within a reasonable threshold 
and not eg. 1000m. Reasonable = 3-10m probably.

I've done a few location apps so what you're wanting to do is quite possible. 
Good luck and have fun! :-)

cheers

Alan
___
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: manipulating attributes of text in fields from scripts

2017-04-10 Thread Richard Gaskin via use-livecode

To clear all styles, links, etc.:

  put field "Whatever" into field "Whatever"

To clear only bold and leave everything else:

  set the textStyle["bold"] of char 1 to -1 of fld "Whatever" to false

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: manipulating attributes of text in fields from scripts

2017-04-10 Thread Jonathan Lynch via use-livecode
Also - to affect the field by id you need to say this:

Set the textstyle of char 1 to -1 of field id tgtg to empty

There is a difference between bolded chars and a bolded field. So, you would 
need to know which is the source of bolding, or just fix them both.

Sent from my iPhone

> On Apr 10, 2017, at 8:43 PM, jonathandly...@gmail.com wrote:
> 
> Try
> 
> Set the textstyle of char 1 to -1 of field "my field" to empty
> 
> 
> You can also do this:
> Put field "my field" into field "my field"
> 
> That will put the text - without formatting - into the field content
> 
> Sent from my iPhone
> 
>> On Apr 10, 2017, at 8:29 PM, Dr. Hawkins via use-livecode 
>>  wrote:
>> 
>> I have a number of label fields which inadvertently have bold text in them.
>> I can identify these in a loop from their text, and put the long id of
>> the field into tgTg.
>> 
>> Shouldn't one of
>> 
>> *set* the textStyle of tgTg to "plain"
>> 
>> or
>> 
>> *set* the textStyle of char 1 to -1 of the text of tgTg to "plain"
>> 
>> 
>> 
>> do this?
>> 
>> I'm trying to completely obliterate any bold settings, and there may be
>> bits of boldoff-boldon between characters(?) of the pdf source I paste.
>> -- 
>> 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


Re: manipulating attributes of text in fields from scripts

2017-04-10 Thread Jonathan Lynch via use-livecode
Try

Set the textstyle of char 1 to -1 of field "my field" to empty


You can also do this:
Put field "my field" into field "my field"

That will put the text - without formatting - into the field content

Sent from my iPhone

> On Apr 10, 2017, at 8:29 PM, Dr. Hawkins via use-livecode 
>  wrote:
> 
> I have a number of label fields which inadvertently have bold text in them.
>  I can identify these in a loop from their text, and put the long id of
> the field into tgTg.
> 
> Shouldn't one of
> 
> *set* the textStyle of tgTg to "plain"
> 
> or
> 
> *set* the textStyle of char 1 to -1 of the text of tgTg to "plain"
> 
> 
> 
> do this?
> 
> I'm trying to completely obliterate any bold settings, and there may be
> bits of boldoff-boldon between characters(?) of the pdf source I paste.
> -- 
> 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


Re: OT (?): Bookmarking GPS coords

2017-04-10 Thread Jonathan Lynch via use-livecode
Rather than travel physically, could you just move in the map, and program it 
to record your click locations in a map?

Sent from my iPhone

> On Apr 10, 2017, at 7:41 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> Thanks - lots of useful info there.
> 
> The big issue in this approach is (as you say)
>>  I would
>> think it would be relatively simple to define a procedure (less simple
>> to have the kids actually follow it) where the kids send you an email
> In my case, I have a large number of addresses to define (say, 500) and a 
> small number of volunteers (say 2 or 3) - so I'm not able to distribute the 
> initial data gathering very well. The level of manual effort involved in 
> copy/paste URL, type name, type address would be OK for each Scout doing one 
> of them - but asking my volunteers to do a couple of hundred each is, um, 
> challenging :-)
> 
> Also, I do have the addresses already collected - so I am hoping to import 
> that into Google maps (or other mapping system)  ready for some human 
> interaction to define where each on is - and ideally to then require only one 
> click (or equivalent) to capture enough info for me to process it.
> 
> A kmz file might be usable - but I'd need to generate it on the fly, because 
> I want to only show one (or at most a handful) of addresses - there's already 
> a lot of local concern about putting anything like this on the internet.
> 
> Currently I have system (LC + revBrowser) working to define locations, though 
> I'd like to make it a bit smarter.
> And a (very) initial display system - see 
> https://www.kilmelford.com/igniter.lc/basic/findaddress
>   (good examples to try for the search string are "glen", or "cuil" or "cuil 
> cottage" or 
> 
> This might work for me because one of my volunteers has access to a 
> high-definition map of part of the area, with house names already shown;  but 
> for the other part I will probably need to do the GPS app for phone/tablet 
> and have them walk/cycle around.
> 
> So - off to experiment with kmz files ... thanks !!
> -- Alex.
> 
> 
>> On 11/04/2017 00:12, Kay C Lan via use-livecode wrote:
>> On Sun, Apr 9, 2017 at 10:58 AM, Alex Tweedly via use-livecode
>>  wrote:
>>> I'm looking for any help or suggestions for existing apps that can do
>>> (something like) what I want to do - could even be a clever way to use a
>>> feature I've not found in Google maps, or pple maps, or ...
>>> 
>> Hi Alex, I'm not exactly sure what you are trying to achieve but here
>> is a scenario that might address some of your needs:
>> 
>> You have a local Scout group and you want all the children in the
>> group to know where all the other kids and group leaders live so you
>> want to produce a map with place markers that can be easily shared.
>> 
>> So I'd get all the kids to go home, get onto Google Maps and find
>> their own home using Street View. Once they've found their home, they
>> take a copy of the URL and have them email it to you. The entire URL
>> will look like this:
>> 
>> https://www.google.com.au/maps/@52.7810059,-1.7254772,3a,75y,38.54h,87.5t,358.22r/data=!3m6!1e1!3m4!1sNB14D3D9SvOQvL8Efe9h8w!2e0!7i13312!8i6656!6m1!1e1
>> 
>> The format is pretty straight forward to decipher, the two numbers
>> directly after the @ is the latitude and longitude. It would be easy
>> to write an LC utility to strip the address to just the Lat and Long.
>> 
>> Take this Lat and Long and paste it into Google Earth. Note I started
>> out in "Maps" because of Street View - it is much easier to find your
>> own home in Maps vs Earth. Obviously pasting the Lat Long into Earth
>> will take you to exactly the same spot. In Earth you can then place
>> multiple 'Placemarkers' and give them appropriate names and
>> descriptions - that are like pop up tooltips. I'd name the
>> Placemarkers after the kid's name, and for the description enter their
>> proper address.
>> 
>> Once you've entered all the Placemarker details, you can scale your
>> view to cover just the area that includes all your Placemarkers. You
>> can then save this as a .kmz file and send it out to everyone. When
>> anyone opens the file they'll see exactly what you saw when you saved
>> it; but it doesn't preclude them from zooming in and out or panning
>> around.
>> 
>> Google Earth is available on all the popular desktop and mobile OSes
>> and is free.
>> 
>> Lastly, .kmz files are basically an xml file as defined by Google.
>> Again the format is pretty simple to decipher - or you could look it
>> up on the internet and have it precisely described to you. I would
>> think it would be relatively simple to define a procedure (less simple
>> to have the kids actually follow it) where the kids send you an email
>> with the body is in a format like:
>> 
>> URL: qerpoqueoruqweouqeoruqoru
>> Your fullname: oiu lh mnbmb
>> Your Full address: 765 hohjjkl jhgjgh ouyiuy UYT 432 FHG
>> 
>> and then have LC read 

manipulating attributes of text in fields from scripts

2017-04-10 Thread Dr. Hawkins via use-livecode
I have a number of label fields which inadvertently have bold text in them.
  I can identify these in a loop from their text, and put the long id of
the field into tgTg.

Shouldn't one of

*set* the textStyle of tgTg to "plain"

or

*set* the textStyle of char 1 to -1 of the text of tgTg to "plain"



do this?

I'm trying to completely obliterate any bold settings, and there may be
bits of boldoff-boldon between characters(?) of the pdf source I paste.
-- 
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: OT (?): Bookmarking GPS coords

2017-04-10 Thread Alex Tweedly via use-livecode

Thanks - lots of useful info there.

The big issue in this approach is (as you say)

  I would
think it would be relatively simple to define a procedure (less simple
to have the kids actually follow it) where the kids send you an email
In my case, I have a large number of addresses to define (say, 500) and 
a small number of volunteers (say 2 or 3) - so I'm not able to 
distribute the initial data gathering very well. The level of manual 
effort involved in copy/paste URL, type name, type address would be OK 
for each Scout doing one of them - but asking my volunteers to do a 
couple of hundred each is, um, challenging :-)


Also, I do have the addresses already collected - so I am hoping to 
import that into Google maps (or other mapping system)  ready for some 
human interaction to define where each on is - and ideally to then 
require only one click (or equivalent) to capture enough info for me to 
process it.


A kmz file might be usable - but I'd need to generate it on the fly, 
because I want to only show one (or at most a handful) of addresses - 
there's already a lot of local concern about putting anything like this 
on the internet.


Currently I have system (LC + revBrowser) working to define locations, 
though I'd like to make it a bit smarter.
And a (very) initial display system - see 
https://www.kilmelford.com/igniter.lc/basic/findaddress
   (good examples to try for the search string are "glen", or "cuil" or 
"cuil cottage" or 


This might work for me because one of my volunteers has access to a 
high-definition map of part of the area, with house names already 
shown;  but for the other part I will probably need to do the GPS app 
for phone/tablet and have them walk/cycle around.


So - off to experiment with kmz files ... thanks !!
-- Alex.


On 11/04/2017 00:12, Kay C Lan via use-livecode wrote:

On Sun, Apr 9, 2017 at 10:58 AM, Alex Tweedly via use-livecode
 wrote:

I'm looking for any help or suggestions for existing apps that can do
(something like) what I want to do - could even be a clever way to use a
feature I've not found in Google maps, or pple maps, or ...


Hi Alex, I'm not exactly sure what you are trying to achieve but here
is a scenario that might address some of your needs:

You have a local Scout group and you want all the children in the
group to know where all the other kids and group leaders live so you
want to produce a map with place markers that can be easily shared.

So I'd get all the kids to go home, get onto Google Maps and find
their own home using Street View. Once they've found their home, they
take a copy of the URL and have them email it to you. The entire URL
will look like this:

https://www.google.com.au/maps/@52.7810059,-1.7254772,3a,75y,38.54h,87.5t,358.22r/data=!3m6!1e1!3m4!1sNB14D3D9SvOQvL8Efe9h8w!2e0!7i13312!8i6656!6m1!1e1

The format is pretty straight forward to decipher, the two numbers
directly after the @ is the latitude and longitude. It would be easy
to write an LC utility to strip the address to just the Lat and Long.

Take this Lat and Long and paste it into Google Earth. Note I started
out in "Maps" because of Street View - it is much easier to find your
own home in Maps vs Earth. Obviously pasting the Lat Long into Earth
will take you to exactly the same spot. In Earth you can then place
multiple 'Placemarkers' and give them appropriate names and
descriptions - that are like pop up tooltips. I'd name the
Placemarkers after the kid's name, and for the description enter their
proper address.

Once you've entered all the Placemarker details, you can scale your
view to cover just the area that includes all your Placemarkers. You
can then save this as a .kmz file and send it out to everyone. When
anyone opens the file they'll see exactly what you saw when you saved
it; but it doesn't preclude them from zooming in and out or panning
around.

Google Earth is available on all the popular desktop and mobile OSes
and is free.

Lastly, .kmz files are basically an xml file as defined by Google.
Again the format is pretty simple to decipher - or you could look it
up on the internet and have it precisely described to you. I would
think it would be relatively simple to define a procedure (less simple
to have the kids actually follow it) where the kids send you an email
with the body is in a format like:

URL: qerpoqueoruqweouqeoruqoru
Your fullname: oiu lh mnbmb
Your Full address: 765 hohjjkl jhgjgh ouyiuy UYT 432 FHG

and then have LC read the email, extract the relevant data and then
automatically add the Placemarker data into the .kmz file. One problem
I see is that someone might join who lives outside the original zoomed
level of your custom kmz map so with each update to the kmz file you
would have to actually open it and look at it in Google Earth and
determine that the zoom level is correct to ensure that everyone is
still within the bounds of display; before saving the file and sending
it out as an update to 

Re: OT (?): Bookmarking GPS coords

2017-04-10 Thread Kay C Lan via use-livecode
On Sun, Apr 9, 2017 at 10:58 AM, Alex Tweedly via use-livecode
 wrote:
> I'm looking for any help or suggestions for existing apps that can do
> (something like) what I want to do - could even be a clever way to use a
> feature I've not found in Google maps, or pple maps, or ...
>
Hi Alex, I'm not exactly sure what you are trying to achieve but here
is a scenario that might address some of your needs:

You have a local Scout group and you want all the children in the
group to know where all the other kids and group leaders live so you
want to produce a map with place markers that can be easily shared.

So I'd get all the kids to go home, get onto Google Maps and find
their own home using Street View. Once they've found their home, they
take a copy of the URL and have them email it to you. The entire URL
will look like this:

https://www.google.com.au/maps/@52.7810059,-1.7254772,3a,75y,38.54h,87.5t,358.22r/data=!3m6!1e1!3m4!1sNB14D3D9SvOQvL8Efe9h8w!2e0!7i13312!8i6656!6m1!1e1

The format is pretty straight forward to decipher, the two numbers
directly after the @ is the latitude and longitude. It would be easy
to write an LC utility to strip the address to just the Lat and Long.

Take this Lat and Long and paste it into Google Earth. Note I started
out in "Maps" because of Street View - it is much easier to find your
own home in Maps vs Earth. Obviously pasting the Lat Long into Earth
will take you to exactly the same spot. In Earth you can then place
multiple 'Placemarkers' and give them appropriate names and
descriptions - that are like pop up tooltips. I'd name the
Placemarkers after the kid's name, and for the description enter their
proper address.

Once you've entered all the Placemarker details, you can scale your
view to cover just the area that includes all your Placemarkers. You
can then save this as a .kmz file and send it out to everyone. When
anyone opens the file they'll see exactly what you saw when you saved
it; but it doesn't preclude them from zooming in and out or panning
around.

Google Earth is available on all the popular desktop and mobile OSes
and is free.

Lastly, .kmz files are basically an xml file as defined by Google.
Again the format is pretty simple to decipher - or you could look it
up on the internet and have it precisely described to you. I would
think it would be relatively simple to define a procedure (less simple
to have the kids actually follow it) where the kids send you an email
with the body is in a format like:

URL: qerpoqueoruqweouqeoruqoru
Your fullname: oiu lh mnbmb
Your Full address: 765 hohjjkl jhgjgh ouyiuy UYT 432 FHG

and then have LC read the email, extract the relevant data and then
automatically add the Placemarker data into the .kmz file. One problem
I see is that someone might join who lives outside the original zoomed
level of your custom kmz map so with each update to the kmz file you
would have to actually open it and look at it in Google Earth and
determine that the zoom level is correct to ensure that everyone is
still within the bounds of display; before saving the file and sending
it out as an update to everyone.

Also, Google Earth allows you to create your own 'Tracks' that can be
saved and shared. So for instance, you could save a Scout hiking trip
and share it and so parents would know where to drop kids off and pick
them up, and theoretically the kids can't get too lost on the route in
between;-)

HTH

___
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: LC crashing when trying to save a standalone

2017-04-10 Thread Jonathan Lynch via use-livecode
As both Monte and Tom have suggested, moving to 8.1.4 rc 1 fixed the
problem for me. I am usually wary of using rc versions, but if you are
going to use a browser widget, it is probably a good idea.

On Mon, Apr 10, 2017 at 10:22 AM, Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:

> there was a bug in that version...try 8.14...I had the same issue...solved
> now.
>
> On Mon, Apr 10, 2017 at 5:20 AM, Jonathan Lynch via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hi Swami,
> >
> > Does your app have a browser widget?
> >
> > Sent from my iPhone
> >
> > > On Apr 10, 2017, at 12:41 AM, Sannyasin Brahmanathaswami via
> > use-livecode  wrote:
> > >
> > > interesting I was having exactly this problem this week… slightly
> > different scenario, but smells like the same fishy business.
> > >
> > > I was working in our branch "nightly" in 9 dp 5  and did something
> > stupid broke stuff… I will spare you the story.
> > >
> > > I thought "hmm I had this working in 8.1.3"  so I check out a commit
> > from March 17th, as a new branch and went to work in 8.3.1
> > >
> > > but my main stack refused to be accepted by xCode when I tried to put
> it
> > on my phone…invalide entitlements. four days spinning wheels and
> testing..
> > changing my provisionig profile, checking entitlements from the cmd line…
> > etc.  I could find nothing wrong.
> > >
> > > Anyway, while mucking around in the old commit I discover where I had
> > gone wrong later… it was not a big thing, so I when back to my "future"
> > branch "nightly" in 9dp5.. and now, guess what.. the mainMyApp.livecode
> > stack… I could now build the SA and xCode was happy with it..
> > >
> > > but, and this is the mysterious part: the entitlements of my app as
> > output by codesign an security cms… were exactly the same as the stack
> from
> > the earlier commit that I was deploy with the SA in 8.1.3.
> > >
> > > I could only assume that the myMainStack.livecode was corrupt some how,
> > and yes, I went through the whole thing deleting my settings and even
> > manually wiped cRevStandaloneSettings on the "bad stack" and rebuilt the
> SA
> > settings from ground zero… nothing helped.
> > >
> > > On 4/9/17, 2:58 PM, "use-livecode on behalf of Jonathan Lynch via
> > use-livecode"  > use-livecode@lists.runrev.com> wrote:
> > >
> > >One more update - an earlier version of the app will save to a
> > standalone.
> > >So, definitely something wrong with the stack. Going to try cloning
> > the stack or something like that.
> > >
> > >Sent from my iPhone
> > >
> > > ___
> > > 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
> >
>
>
>
> --
> *Tom Glod*
>
> CEO @ *MakeShyft R.D.A* - www.makeshyft.com
>
>
>
> Developer of *U.M.P* - www.IamUMP.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
>



-- 
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: [ANN] This Week in LiveCode 78

2017-04-10 Thread Richard Gaskin via use-livecode

Peter TB Brett wrote:

> On 10/04/2017 16:10, Richard Gaskin via use-livecode wrote:
>> Thank you, Panos.
>>
>> This item was particularly interesting:
>>
>>Add a new script library implementing unified diff generation and
>>patch application: Expected in LiveCode 9.0 DP-7
>>
>>
>> It wasn't immediately clear to me from the notes in that PR what that
>> does, but the description sounds enticing.
>>
>> Can you offer a little background on that?
>
> It's exactly what it says on the tin: a library that implements an
> algorithm for finding a minimal line-based edit script between two
> input texts, along with the ability to turn that into a unified diff.
>
> Go have a look at the source code, which contains inline
> documentation:
> 
https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/diff.livecodescript

>
> You could also have a look at the tests:
> 
https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/test

>
> Its development was sponsored by David Simpson.

Thanks, Peter.  These things may seem obvious to you, but it seemed a 
bit of an edge-case feature vis a vis others in the queue, so the 
background you provided is very helpful.


And thanks, David.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Passing Variables in a non-CGI LC Server?

2017-04-10 Thread Rick Harrison via use-livecode
Hi Mike,

Thanks, I’ll check it out!

Rick

> On Apr 10, 2017, at 1:22 PM, Mike Bonner via use-livecode 
>  wrote:
> 
> If you're interested in trying session variables again, I got word back
> that the issue I was having is fixed in 8.1.4 rc1 and it does indeed solve
> it. (hoping on-rev updates soon)  The newer version also solves the error
> you were having (which required using sessionsavepath as a workaround)
> I have a very simple page set up on digitalocea (short term) at
> http://104.236.179.13/test.lc if you want to see it working.
> 
> The script i'm using is:
> 
>  
> start session
> 
> if $_SESSION["counter"] is empty then
>   put 1 into $_SESSION["counter"]
> end if
> 
> 
> put "Session counter=" & $_SESSION["counter"] & ""
> -- same here, puts the current counter
> 
>  add 1 to $_SESSION["counter"]
>  put "Incrementing Session counter:" & $_SESSION["counter"]
> -- increments and displays the future counter
> put " The session id is " & the sessionid
> stop session
> 
> put "" & the version
> put "" & shell("uname -a")
> 
> ?>
> 


___
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: Passing Variables in a non-CGI LC Server?

2017-04-10 Thread Mike Bonner via use-livecode
If you're interested in trying session variables again, I got word back
that the issue I was having is fixed in 8.1.4 rc1 and it does indeed solve
it. (hoping on-rev updates soon)  The newer version also solves the error
you were having (which required using sessionsavepath as a workaround)
I have a very simple page set up on digitalocea (short term) at
http://104.236.179.13/test.lc if you want to see it working.

The script i'm using is:

"
-- same here, puts the current counter

  add 1 to $_SESSION["counter"]
  put "Incrementing Session counter:" & $_SESSION["counter"]
-- increments and displays the future counter
put " The session id is " & the sessionid
stop session

put "" & the version
put "" & shell("uname -a")

?>


On Fri, Apr 7, 2017 at 1:10 PM, Mike Bonner  wrote:

> Yep. We're suffering from different soup flavors (The permission problem
> you're running into.. the need to set the sessionsavepath) vs my soup (it
> won't actually load the session variables) but inedible is inedible, no
> matter the cause. *sigh*
>
> On Fri, Apr 7, 2017 at 12:54 PM, Rick Harrison via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Hi Mike,
>>
>> Well I’m glad to see I’m not alone here in not
>> being able to get “start session” to work.
>> Now we can enjoy being in the soup together!  LOL
>>
>> Rick
>>
>> > On Apr 7, 2017, at 1:50 PM, Mike Bonner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > Ok. The problem with "start session" is most likely trying to write the
>> > session file to a place without write permissions.  Make sure you set
>> the
>> > sessionsavepath to a place you can write to.
>> >
>> > Having said that.. I can't make it work.  I can get past start session,
>> all
>> > the way to stop session, no trouble, but the session variables aren't
>> > populated on start session.  (this is with on-rev most recent installed
>> > version of lc server I assume)
>> > No errors, just.. doesn't work.  The session file is created, I can grab
>> > the sessionid etc, but the session array isn't actually loaded.
>> >
>> > I simplified as much as possible to try and figure out WHY it won't work
>> > now. If anyone have ideas, i'd appreciate a pointer.
>> >
>> > Heres the code...
>> >
>> > > > set the sessionSavePath to the defaultfolder -- saving session stuff to
>> the
>> > same dir as the .lc
>> >
>> > start session
>> > -- start the session. If you don't do this BEFORE your if check,
>> > $_SESSION["counter"] will always be empty
>> > if $_SESSION["counter"] is empty then
>> >   put 1 into $_SESSION["counter"] -- give initial value if necessary
>> > end if
>> >
>> > put "Session counter=" & $_SESSION["counter"] & ""
>> >
>> >  add 1 to $_SESSION["counter"]
>> >  put "Incrementing Session counter:" & $_SESSION["counter"]
>> > -- increments and displays the future counter
>> >
>> > stop session
>> >
>> > ?>
>> >
>> >
>> > On each load, it should increment the current session. So the first hit
>> it
>> > should say 1, and 2 for the future. Then 2 and 3, 3 and 4 4 and 5...
>> > As I said the sessionid file is created as expected (with 4 bytes in it)
>> > but the counter value doesn't appear in the session variables upon start
>> > using like it should.
>> >
>> > On Fri, Apr 7, 2017 at 10:58 AM, Matthias Rebbe via use-livecode <
>> > use-livecode@lists.runrev.com> wrote:
>> >
>> >>
>> >>
>> >>> Am 07.04.2017 um 18:21 schrieb Rick Harrison via use-livecode <
>> >> use-livecode@lists.runrev.com >:
>> >>>
>> >>> Hi Matthias,
>> >>>
>> >>> Yes, I want to output some information to the user, and other
>> >>> information remains hidden - where some data is adjusted,
>> >>> modified, on the third webpage.
>> >>>
>> >>> No, I’m not looking to redirect to another webpage, although
>> >>> I have used that technique in the past on other types of
>> >>> webservers.
>> >>>
>> >>
>> >> So then you could post the parameters from 2nd script/webpage  to the
>> 3rd
>> >> webpage/script (post myData to URL destinationURL) and  then output the
>> >> result or what ever the 3rd script/webpage returns.
>> >>
>> >> This way you do not need to pass the parameters to the url.
>> >>
>> >>> I’d rather not have the parameters put into the URL where
>> >>> the user can see it if possible for security reasons, but
>> >>> if that’s the only way I suppose I could encrypt it before
>> >>> passing it through that way.
>> >>
>> >>>
>> >>> Thank you for your input!
>> >>>
>> >>> Rick
>> >>>
>> >>>
>>  On Apr 7, 2017, at 2:03 AM, Matthias Rebbe via use-livecode <
>> >> use-livecode@lists.runrev.com >
>> >> wrote:
>> 
>>  is the third website just for further processing w/o an output to the
>> >> user or do you also want to output some information to the user?
>> 
>>  case 1
>>  You could use the http post or get method to pass the parametesr to
>> the
>> >> 3rd script/website from the 2nd script and 

LiveCode Android Demo

2017-04-10 Thread Alejandro Tejada via use-livecode
Hi All,

Where I could download an .APK that demonstrate (with user interaction)
all LiveCode features available for Android Platform?

For example, check this Interactive OpenCV Demo (for Win32 platforms)
http://www.tsdconseil.fr/log/opencv/demo/index-en.html
This interactive OpenCV demo allows the user to load their own images
to test the algorithms.

Thanks in advance!

Al
___
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: [ANN] This Week in LiveCode 78

2017-04-10 Thread Peter TB Brett via use-livecode



On 10/04/2017 16:10, Richard Gaskin via use-livecode wrote:

Thank you, Panos.

This item was particularly interesting:

   Add a new script library implementing unified diff generation and
   patch application: Expected in LiveCode 9.0 DP-7
   

It wasn't immediately clear to me from the notes in that PR what that
does, but the description sounds enticing.

Can you offer a little background on that?


It's exactly what it says on the tin: a library that implements an 
algorithm for finding a minimal line-based edit script between two input 
texts, along with the ability to turn that into a unified diff.


Go have a look at the source code, which contains inline documentation:
https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/diff.livecodescript

You could also have a look at the tests:
https://github.com/livecode/livecode/blob/develop/extensions/script-libraries/diff/test

Its development was sponsored by David Simpson.  Check out FMProMigrator. :)

  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


Re: [ANN] This Week in LiveCode 78

2017-04-10 Thread Richard Gaskin via use-livecode

Thank you, Panos.

This item was particularly interesting:

   Add a new script library implementing unified diff generation and
   patch application: Expected in LiveCode 9.0 DP-7
   

It wasn't immediately clear to me from the notes in that PR what that 
does, but the description sounds enticing.


Can you offer a little background on that?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: this stack gets every closeStack message

2017-04-10 Thread Matt Maier via use-livecode
I think I figured it out. Thanks for the ideas about troubleshooting but
none of those rabbit holes were particularly informative.

Eventually while doing something else I went back through the dictionary
entries for the various commands that make use of external stacks. It
finally dawned on me that I had mindlessly listed this actual stack in the
same "start using" list as all of my script only library stacks. Then I was
also using "go to stack" when the user actually opened it.

So that makes sense, right? The reason it was getting every message like a
library stack is that I told Livecode to use it as a library stack. I think
I understand the different options a little better now. All I need is "go
to stack" with the file path at the moment I need the mainstack; I don't
have to include it previously or anything.

On Wed, Apr 5, 2017 at 9:29 AM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> the executionContexts
> Bob S
>
> On Apr 4, 2017, at 19:22 , Matt Maier via use-livecode <
> use-livecode@lists.runrev.com>
> wrote:
>
> I'm not aware of a way to "trace" where a message has been and the keywords
> I can think of aren't turning up anything promising in the dictionary or
> google.
>
> ___
> 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: LC crashing when trying to save a standalone

2017-04-10 Thread Tom Glod via use-livecode
there was a bug in that version...try 8.14...I had the same issue...solved
now.

On Mon, Apr 10, 2017 at 5:20 AM, Jonathan Lynch via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Swami,
>
> Does your app have a browser widget?
>
> Sent from my iPhone
>
> > On Apr 10, 2017, at 12:41 AM, Sannyasin Brahmanathaswami via
> use-livecode  wrote:
> >
> > interesting I was having exactly this problem this week… slightly
> different scenario, but smells like the same fishy business.
> >
> > I was working in our branch "nightly" in 9 dp 5  and did something
> stupid broke stuff… I will spare you the story.
> >
> > I thought "hmm I had this working in 8.1.3"  so I check out a commit
> from March 17th, as a new branch and went to work in 8.3.1
> >
> > but my main stack refused to be accepted by xCode when I tried to put it
> on my phone…invalide entitlements. four days spinning wheels and testing..
> changing my provisionig profile, checking entitlements from the cmd line…
> etc.  I could find nothing wrong.
> >
> > Anyway, while mucking around in the old commit I discover where I had
> gone wrong later… it was not a big thing, so I when back to my "future"
> branch "nightly" in 9dp5.. and now, guess what.. the mainMyApp.livecode
> stack… I could now build the SA and xCode was happy with it..
> >
> > but, and this is the mysterious part: the entitlements of my app as
> output by codesign an security cms… were exactly the same as the stack from
> the earlier commit that I was deploy with the SA in 8.1.3.
> >
> > I could only assume that the myMainStack.livecode was corrupt some how,
> and yes, I went through the whole thing deleting my settings and even
> manually wiped cRevStandaloneSettings on the "bad stack" and rebuilt the SA
> settings from ground zero… nothing helped.
> >
> > On 4/9/17, 2:58 PM, "use-livecode on behalf of Jonathan Lynch via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> >
> >One more update - an earlier version of the app will save to a
> standalone.
> >So, definitely something wrong with the stack. Going to try cloning
> the stack or something like that.
> >
> >Sent from my iPhone
> >
> > ___
> > 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
>



-- 
*Tom Glod*

CEO @ *MakeShyft R.D.A* - www.makeshyft.com



Developer of *U.M.P* - www.IamUMP.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: Sort on two sortTypes

2017-04-10 Thread dunbarx via use-livecode
Ah.

Then you will have to do what, I think, Jacque suggested and sort by two
functions:

sort yourData by functionA() & functionB().

This because once you set the sortStyle (sort numeric, sort dateTime,...)
that must hold through the entirety of the "multiSortKey" method. 

This may be more unnecessarily complicated that simply sorting twice.

Craig



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sort-on-two-sortTypes-tp4713821p4713858.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: any secrets printing only a section from a card?

2017-04-10 Thread dunbarx via use-livecode
A couple of things you can try.

You can print into a specified "pageRect". See the dictionary.

You can also set the "printScale" to a value other than 1. See the
dictionary.

Craig Newman



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/any-secrets-printing-only-a-section-from-a-card-tp4713853p4713857.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: Sort on two sortTypes

2017-04-10 Thread Randy Hengst via use-livecode
Hi Craig,

Yes, I was able to sort in the way you described… the problem I ran into was... 
where to place the dateTime sortType when using a multiple sort when one 
sortKey was date time and the other text.



be well,
randy

Randy Hengst
www.classroomFocusedSoftware.com


> On Apr 10, 2017, at 8:23 AM, dunbarx via use-livecode 
>  wrote:
> 
> Since HC days, you have been able to:
> 
> sort yourData by sortKey1 & sortKey2 & 
> 
> sort yourData by item 1 of each & item 2 of each
> 
> Craig Newman
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Sort-on-two-sortTypes-tp4713821p4713855.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: Sort on two sortTypes

2017-04-10 Thread dunbarx via use-livecode
Since HC days, you have been able to:

sort yourData by sortKey1 & sortKey2 & 

sort yourData by item 1 of each & item 2 of each

Craig Newman



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sort-on-two-sortTypes-tp4713821p4713855.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


[ANN] This Week in LiveCode 78

2017-04-10 Thread panagiotis merakos 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 #78 here: https://goo.gl/s78DY5

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.


-- 
Panagiotis Merakos 
LiveCode Software Developer

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


any secrets printing only a section from a card?

2017-04-10 Thread Tiemo Hollmann TB via use-livecode
Hello,

LC 8.1.4, Win 10. (Same with LC 6-9) When printing a whole card with just
"print card" everything of the card is being printed fine, only stretched to
the papersize.

But when trying to print only a part of the  card by "print card from
myLeftTop to myRightBottom into page Rect" I never get the wanted rectangle
being printed into the pageRect. It is always clipped somewhere and only a
small part of the wanted rectangle is being printed. I have also tried to
set the printpapersize and printmargins and fiddled around with different
rectangle sizes, but didn't got the wanted section.

Are there any secret conversion factors, when printing "from to"?

Thanks for any hint

Tiemo

 

 

 

___
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: LC crashing when trying to save a standalone

2017-04-10 Thread Jonathan Lynch via use-livecode
Hi Swami, 

Does your app have a browser widget?

Sent from my iPhone

> On Apr 10, 2017, at 12:41 AM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> interesting I was having exactly this problem this week… slightly different 
> scenario, but smells like the same fishy business.
> 
> I was working in our branch "nightly" in 9 dp 5  and did something stupid 
> broke stuff… I will spare you the story.
> 
> I thought "hmm I had this working in 8.1.3"  so I check out a commit from 
> March 17th, as a new branch and went to work in 8.3.1
> 
> but my main stack refused to be accepted by xCode when I tried to put it on 
> my phone…invalide entitlements. four days spinning wheels and testing.. 
> changing my provisionig profile, checking entitlements from the cmd line… 
> etc.  I could find nothing wrong. 
> 
> Anyway, while mucking around in the old commit I discover where I had gone 
> wrong later… it was not a big thing, so I when back to my "future" branch 
> "nightly" in 9dp5.. and now, guess what.. the mainMyApp.livecode stack… I 
> could now build the SA and xCode was happy with it..
> 
> but, and this is the mysterious part: the entitlements of my app as output by 
> codesign an security cms… were exactly the same as the stack from the earlier 
> commit that I was deploy with the SA in 8.1.3.  
> 
> I could only assume that the myMainStack.livecode was corrupt some how, and 
> yes, I went through the whole thing deleting my settings and even manually 
> wiped cRevStandaloneSettings on the "bad stack" and rebuilt the SA settings 
> from ground zero… nothing helped.  
> 
> On 4/9/17, 2:58 PM, "use-livecode on behalf of Jonathan Lynch via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> 
>One more update - an earlier version of the app will save to a standalone.
>So, definitely something wrong with the stack. Going to try cloning the 
> stack or something like that.
> 
>Sent from my iPhone
> 
> ___
> 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