Re: Our first Community Zoom Session

2020-04-03 Thread Richard Gaskin via use-livecode

Mark Wieder wrote:

> I'm *very* impressed with Zoom's engineering team, rolling out a new
> version to quash this vulnerability asap. I got prompted to install
> the new version this morning. Upgrading was painless. Not only is
> Zoom being super-responsive about this (and given the publicity lately
> it stands to  reason that they would) but they're being upfront about
> the issues and backtracking and patching in public in real time. You
> don't often see companies with this size a customer base turn on a
> dime like this.

+1

I knew nothing about Zoom until a few weeks ago, but everything I've 
read since is impressive.


And as both technologists and citizens, in addition to what Zoom is, 
also valuable is what they're not: not Google Hangouts, not Apple 
FaceTime, not Microsoft Teams, etc.  A startup this successful outside 
the Big Five is helpful for everyone, and devs in particular. Developers 
thrive in diverse and fluid ecosystems.


And did you notice Zoom's API docs?
https://marketplace.zoom.us/docs/guides/tools-resources/zoom-apis

I've only started reading them, but the functionality seems like a very 
empowering compliment to LC's GUI capabilities, esp. for integrating 
with other services an organization may need.


--
 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: Our first Community Zoom Session

2020-04-03 Thread Pi Digital via use-livecode
The proper security fixes come on April 5th I’m told. Today’s fixes were just a 
whole bunch of usability and feature fixes. But, even so, it ‘is’ very quick. 
I’m guessing their super happy people hooked onto them over the last two weeks. 
To the point that people everywhere are using Zoom as a verb in place of Skype. 
Almost to the same level as google!

Sean Cole
Pi Digital


> On 4 Apr 2020, at 03:45, Mark Wieder via use-livecode 
>  wrote:
> 
> On 4/2/20 5:43 PM, Mark Wieder via use-livecode wrote:
> 
>> I'd be more concerned about this vuln if I were running Windows.
>> Luckily there's a simple group policy or registry fix.
>> 
>>  
> 
> I'm *very* impressed with Zoom's engineering team, rolling out a new version 
> to quash this vulnerability asap. I got prompted to install the new version 
> this morning. Upgrading was painless. Not only is Zoom being super-responsive 
> about this (and given the publicity lately it stands to reason that they 
> would) but they're being upfront about the issues and backtracking and 
> patching in public in real time. You don't often see companies with this size 
> a customer base turn on a dime like this.
> 
> -- 
> 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: Our first Community Zoom Session

2020-04-03 Thread Mark Wieder via use-livecode

On 4/2/20 5:43 PM, Mark Wieder via use-livecode wrote:


I'd be more concerned about this vuln if I were running Windows.
Luckily there's a simple group policy or registry fix.

 



I'm *very* impressed with Zoom's engineering team, rolling out a new 
version to quash this vulnerability asap. I got prompted to install the 
new version this morning. Upgrading was painless. Not only is Zoom being 
super-responsive about this (and given the publicity lately it stands to 
reason that they would) but they're being upfront about the issues and 
backtracking and patching in public in real time. You don't often see 
companies with this size a customer base turn on a dime like this.


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


Re: Getting started with geographical coordinates

2020-04-03 Thread Alex Tweedly via use-livecode
And I'm at plump.magpie.tightest (sorry, no calculated height available, 
not even in annoying feet - but I'd guess somewhere around 2 or 3 metres).


Alex.

On 03/04/2020 23:07, Graham Samuel via use-livecode wrote:

A long way from me at 43°16′43″N 2°09′36″E 

 - and much higher (I’m about 130m). Sorry not to be quite so accurate!

Thanks

Graham

On 3 Apr 2020, at 22:28, Devin Asay via use-livecode 
 wrote:

Graham,

You get back lat and long in degrees and fractions of degrees, as a decimal 
numeral. For instance, I get latitude: 40.248676 and longitude: -111.651062, 
and for good measure altitude in meters at 1398.380493. Wow, now you all know 
exactly where I am!

Devin




On Apr 3, 2020, at 1:49 PM, Graham Samuel via use-livecode 
 wrote:

This is cheeky but I can’t run up my mobile simulation today - can someone tell 
me the format of the geographical coordinates produced by mobileSensorReading 
et al. I mean, is say latitude just one integer showing seconds, or is it deg, 
min, sec - and are fractional seconds returned (so, floating point)? I shall 
find out for myself eventually but it would help a little to know now. AFAIKS 
there’s nothing in the LC documentation about it.

Graham

___
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


___
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: Hide stack change focus not supported 64bit

2020-04-03 Thread Bill Vlahos via use-livecode
Bob,

What file(s) do I need to add?

When I try adding to Stack Properties it won’t let me select macOStools.lcb.

I can add other files in the standalone builder I still don’t see 
macOStools.lcb in the Inclusions and it doesn’t hide.

I think I need more complete instructions.

Thank you,
Bill


> On Apr 3, 2020, at 8:13 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Open Stack Properties, add to the stackfiles. Also in the standalone builder 
> you can add other files and folders that are not stack files.
> 
> Bob S
> 
> 
> On Apr 2, 2020, at 9:33 PM, Bill Vlahos via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> I don’t see it in the inclusions tab.
> 
> How do I install your library?
> 
> Thanks,

___
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: Getting started with geographical coordinates

2020-04-03 Thread Andrew at MidWest Coast Media via use-livecode
I feel that Calculate Distance script has been shared before, because it looks 
strikingly similar to one that I use in my mobile app (and is WAY better 
written than I ever could have done), so thank you.

Recently I was tasked by my cousin to come up with a delivery system for his 
brewery since they can only serve carryout during COVID. I did this using 
LiveCode server (https://midwestcoastmedia.com/beta_ltd/delivery.html 
) with Google Maps (and 
Untappd) APIs. Your post made me realize that I can update my current basic 
mobileLocation usage from just the “you are this far away” model to a “here’s 
how to get here” system. 

So thanks EVERYONE on this refresher! 
Here is the relevant code if anyone else finds it of interest. I was using 
$_POST values from an HTML form but you could easily modify the origin and 
destination to a number of formats:
## https://developers.google.com/maps/documentation/directions/start
put urlEncode("12365 N Dumont Way, Littleton, CO 80125, USA") 
into tOrigin // his brewery
put 
"https://maps.googleapis.com/maps/api/directions/json?origin=; & tOrigin & 
"=" into tAPIurl
put urlEncode(tAddress1 & COMMA && tCity & COMMA && "CO" && 
tZip & COMMA && "USA") into tDestination
put tDestination after tAPIurl
put "=WHATEVERYOURAPIKEYISGOESHERE" after tAPIurl
put url tAPIurl into tJSON

—Andrew Bell


> 
> Ralph, this is brilliant. I remember trying to do something similar years 
> ago, and giving up because I didn't know how to do the math. I suck at math, 
> or rather I am too lazy and impatient to work the problem. 
> 
> Bob S
> 
>> On Apr 3, 2020, at 14:27 , Ralph DiMola via use-livecode 
>>  wrote:
>> 
>> Graham,
>> 
>> This my distance calculation for what it's worth.
>> 
>> Function distance lat1, lon1, lat2, lon2, unit
>>  -- Calculate Distance between to points
>>  --
>>  --lat1, lon1, lat2, lon2 are in deg.fractionalDegrees
>>  -- Unit
>>  -- if empty then miles
>>  -- K = kilometers
>>  -- N = nautical miles
>>  local theta
>>  local dist
>> 
>>  Put lon1 - lon2 into theta
>>  put Sin(deg2rad(lat1)) * Sin(deg2rad(lat2)) + Cos(deg2rad(lat1)) * 
>> Cos(deg2rad(lat2)) * Cos(deg2rad(theta)) into dist
>> 
>>  put Acos(dist) into dist
>>  put rad2deg(dist) into dist
>>  put dist * 60 * 1.1515 into dist
>> 
>>  switch unit
>> case "K"
>>put dist * 1.609344 into dist
>> case "N"
>>put dist * 0.8684 into dist
>>  end switch
>> 
>>  Return dist
>> 
>> End distance
>> 
>> 
>> Function rad2deg rad
>>  Return rad / PI * 180.0
>> end rad2deg
>> 
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
> 
> 
> 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
A long way from me at 43°16′43″N 2°09′36″E 

 - and much higher (I’m about 130m). Sorry not to be quite so accurate!

Thanks

Graham 
> On 3 Apr 2020, at 22:28, Devin Asay via use-livecode 
>  wrote:
> 
> Graham,
> 
> You get back lat and long in degrees and fractions of degrees, as a decimal 
> numeral. For instance, I get latitude: 40.248676 and longitude: -111.651062, 
> and for good measure altitude in meters at 1398.380493. Wow, now you all know 
> exactly where I am!
> 
> Devin
> 
> 
> 
>> On Apr 3, 2020, at 1:49 PM, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> This is cheeky but I can’t run up my mobile simulation today - can someone 
>> tell me the format of the geographical coordinates produced by 
>> mobileSensorReading et al. I mean, is say latitude just one integer showing 
>> seconds, or is it deg, min, sec - and are fractional seconds returned (so, 
>> floating point)? I shall find out for myself eventually but it would help a 
>> little to know now. AFAIKS there’s nothing in the LC documentation about it.
>> 
>> Graham
>> 
>> ___
>> 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:

2020-04-03 Thread Graham Samuel via use-livecode
Ralph, thanks very much. It’s late here, but this will get my full attention 
shortly! 
 
Graham

> On 3 Apr 2020, at 23:27, Ralph DiMola via use-livecode 
>  wrote:
> 
> Graham,
> 
> This my distance calculation for what it's worth.
> 
> Function distance lat1, lon1, lat2, lon2, unit
>   -- Calculate Distance between to points
>   --
>   --lat1, lon1, lat2, lon2 are in deg.fractionalDegrees
>   -- Unit
>   -- if empty then miles
>   -- K = kilometers
>   -- N = nautical miles
>   local theta
>   local dist
> 
>   Put lon1 - lon2 into theta
>   put Sin(deg2rad(lat1)) * Sin(deg2rad(lat2)) + Cos(deg2rad(lat1)) * 
> Cos(deg2rad(lat2)) * Cos(deg2rad(theta)) into dist
> 
>   put Acos(dist) into dist
>   put rad2deg(dist) into dist
>   put dist * 60 * 1.1515 into dist
> 
>   switch unit
>  case "K"
> put dist * 1.609344 into dist
>  case "N"
> put dist * 0.8684 into dist
>   end switch
> 
>   Return dist
> 
> End distance
> 
> 
> Function rad2deg rad
>   Return rad / PI * 180.0
> end rad2deg
> 
> 
> 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 Graham Samuel via use-livecode
> Sent: Friday, April 03, 2020 3:49 PM
> To: How to use LiveCode
> Cc: Graham Samuel
> Subject: Re: Getting started with geographical coordinates
> 
> This is cheeky but I can’t run up my mobile simulation today - can someone 
> tell me the format of the geographical coordinates produced by 
> mobileSensorReading et al. I mean, is say latitude just one integer showing 
> seconds, or is it deg, min, sec - and are fractional seconds returned (so, 
> floating point)? I shall find out for myself eventually but it would help a 
> little to know now. AFAIKS there’s nothing in the LC documentation about it.
> 
> Graham
> 
> ___
> 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: Getting started with geographical coordinates

2020-04-03 Thread Ralph DiMola via use-livecode
Thanks Bob.

Whoops... I forgot to include this:


Function deg2rad deg
   Return (deg * PI / 180.0)
end deg2rad


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 Bob Sneidar via use-livecode
Sent: Friday, April 03, 2020 5:31 PM
To: How to use LiveCode
Cc: Bob Sneidar
Subject: Re: 

Ralph, this is brilliant. I remember trying to do something similar years
ago, and giving up because I didn't know how to do the math. I suck at math,
or rather I am too lazy and impatient to work the problem. 

Bob S

> On Apr 3, 2020, at 14:27 , Ralph DiMola via use-livecode
 wrote:
> 
> Graham,
> 
> This my distance calculation for what it's worth.
> 
> Function distance lat1, lon1, lat2, lon2, unit
>   -- Calculate Distance between to points
>   --
>   --lat1, lon1, lat2, lon2 are in deg.fractionalDegrees
>   -- Unit
>   -- if empty then miles
>   -- K = kilometers
>   -- N = nautical miles
>   local theta
>   local dist
> 
>   Put lon1 - lon2 into theta
>   put Sin(deg2rad(lat1)) * Sin(deg2rad(lat2)) + Cos(deg2rad(lat1)) *
Cos(deg2rad(lat2)) * Cos(deg2rad(theta)) into dist
> 
>   put Acos(dist) into dist
>   put rad2deg(dist) into dist
>   put dist * 60 * 1.1515 into dist
> 
>   switch unit
>  case "K"
> put dist * 1.609344 into dist
>  case "N"
> put dist * 0.8684 into dist
>   end switch
> 
>   Return dist
> 
> End distance
> 
> 
> Function rad2deg rad
>   Return rad / PI * 180.0
> end rad2deg
> 
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net


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


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

2020-04-03 Thread Bob Sneidar via use-livecode
Ralph, this is brilliant. I remember trying to do something similar years ago, 
and giving up because I didn't know how to do the math. I suck at math, or 
rather I am too lazy and impatient to work the problem. 

Bob S

> On Apr 3, 2020, at 14:27 , Ralph DiMola via use-livecode 
>  wrote:
> 
> Graham,
> 
> This my distance calculation for what it's worth.
> 
> Function distance lat1, lon1, lat2, lon2, unit
>   -- Calculate Distance between to points
>   --
>   --lat1, lon1, lat2, lon2 are in deg.fractionalDegrees
>   -- Unit
>   -- if empty then miles
>   -- K = kilometers
>   -- N = nautical miles
>   local theta
>   local dist
> 
>   Put lon1 - lon2 into theta
>   put Sin(deg2rad(lat1)) * Sin(deg2rad(lat2)) + Cos(deg2rad(lat1)) * 
> Cos(deg2rad(lat2)) * Cos(deg2rad(theta)) into dist
> 
>   put Acos(dist) into dist
>   put rad2deg(dist) into dist
>   put dist * 60 * 1.1515 into dist
> 
>   switch unit
>  case "K"
> put dist * 1.609344 into dist
>  case "N"
> put dist * 0.8684 into dist
>   end switch
> 
>   Return dist
> 
> End distance
> 
> 
> Function rad2deg rad
>   Return rad / PI * 180.0
> end rad2deg
> 
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net


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


[no subject]

2020-04-03 Thread Ralph DiMola via use-livecode
Graham,

This my distance calculation for what it's worth.

Function distance lat1, lon1, lat2, lon2, unit
   -- Calculate Distance between to points
   --
   --lat1, lon1, lat2, lon2 are in deg.fractionalDegrees
   -- Unit
   -- if empty then miles
   -- K = kilometers
   -- N = nautical miles
   local theta
   local dist
   
   Put lon1 - lon2 into theta
   put Sin(deg2rad(lat1)) * Sin(deg2rad(lat2)) + Cos(deg2rad(lat1)) * 
Cos(deg2rad(lat2)) * Cos(deg2rad(theta)) into dist
   
   put Acos(dist) into dist
   put rad2deg(dist) into dist
   put dist * 60 * 1.1515 into dist
   
   switch unit
  case "K"
 put dist * 1.609344 into dist
  case "N"
 put dist * 0.8684 into dist
   end switch
   
   Return dist

End distance


Function rad2deg rad
   Return rad / PI * 180.0
end rad2deg


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 
Graham Samuel via use-livecode
Sent: Friday, April 03, 2020 3:49 PM
To: How to use LiveCode
Cc: Graham Samuel
Subject: Re: Getting started with geographical coordinates

This is cheeky but I can’t run up my mobile simulation today - can someone tell 
me the format of the geographical coordinates produced by mobileSensorReading 
et al. I mean, is say latitude just one integer showing seconds, or is it deg, 
min, sec - and are fractional seconds returned (so, floating point)? I shall 
find out for myself eventually but it would help a little to know now. AFAIKS 
there’s nothing in the LC documentation about it.

Graham

___
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: Getting started with geographical coordinates

2020-04-03 Thread Ralph DiMola via use-livecode
Graham,

If Detailed is specified then an array with these 8 keys are returned. Example 
values are actual from an Android device.

"Altitude" integer in annoying meters. Ex: 88
"course" floating point in degrees Ex: 321.5 (I was walking due north)
"horizontal accuracy" integer also in annoying meters Ex: 12.136
"latitude" floating point in deg.fractionalDegrees Ex: 44.28052
"longitude floating point in deg.fractionalDegrees Ex: -74.681128
"Speed" in equally annoying KPH Ex: 1.28
"Timestamp" floating point in seconds Ex: 1585948616.576009
"Vertical accuracy" in ? but I would guess meters(cough) ex: 0  I don't believe 
this number. I don't know if this a limitation of Android, this device or 
Livecode.

Hope this helps.

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

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Graham Samuel via use-livecode
Sent: Friday, April 03, 2020 3:49 PM
To: How to use LiveCode
Cc: Graham Samuel
Subject: Re: Getting started with geographical coordinates

This is cheeky but I can’t run up my mobile simulation today - can someone tell 
me the format of the geographical coordinates produced by mobileSensorReading 
et al. I mean, is say latitude just one integer showing seconds, or is it deg, 
min, sec - and are fractional seconds returned (so, floating point)? I shall 
find out for myself eventually but it would help a little to know now. AFAIKS 
there’s nothing in the LC documentation about it.

Graham

___
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: Strange times, amazing projects

2020-04-03 Thread Devin Asay via use-livecode
Skip, have you tried the Google geocoding web service? Give it an address or 
landmark, and get back latitude/longitude coordinates.

https://developers.google.com/maps/documentation/geocoding/start

Fairly simple to get into, a snap to implement in LiveCode, and free until you 
exceed a certain number of accesses.

Devin



On Apr 3, 2020, at 12:50 PM, Skip Kimpel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Good afternoon LC'ers (evening to some),

Enjoyed the Zoom chat today and it was good to see all of your faces
again.  It has been way too long.

Over the past couple of years I have been sidetracked from LC as I have not
had the need to be as hands on as I once was.  Now, however, I am forced to
pull out skill sets and take on projects / challenges that I have not done
in quite some time.  Actually, it is quite exhilarating.

I won't get into details about the project as a whole right now (but I
can't wait to share it with you all when it is done) but I have a challenge
that involves mapping and coordinates and I am trying to wrap my head
around how to accomplish it.

I have delivery zones built in Google Earth and I have delivery addresses.
I need to run through the list of delivery addresses to determine which
delivery zone they fall in.  Sounds simple (or maybe not) but I can't
figure out how to work out the coordinates of the address and filter it
within the perimeter coordinates of the zone.  Hopefully I explained this
clearly.

I realize I will probably have to first run the delivery addresses against
some database that will give me GPS coordinates which I can then use
against my delivery zone kml data.

Has anybody done this before?  Any suggestions?

As always, your input is GREATLY appreciated :)

Best regards,

SKIP KIMPEL
___
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: Ready to go

2020-04-03 Thread Dr. Hawkins via use-livecode

On Mar 31, 2020, at 12:13 PM, Tom Glod via use-livecode 
 wrote:
> 
> I know you guys just had a 30% sale to start the year...but Christmas
> killed us with customer missing in action  so I couldn't do it at the
> time. :(
> 

They don’t have much left to sell me but a lifetime upgrade from indy to 
business . . .


— 
Richard E. Hawkins, Esq.
The Hawkins Law Firm
3430 E. Flamingo Rd.
Suite 232
Las Vegas, NV  89121
(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: Getting started with geographical coordinates

2020-04-03 Thread Håkan Liljegren via use-livecode
Most of the mobileSomething are wrappers around the system functions so you can 
learn a lot by reading the ios developer documentation as most of the functions 
started there.
And reading the docs I can see that you probably get a CLLocationCoordinate2D 
from the system and that is in turn two doubles in the WGS 84 system. I.e. you 
get a float for longitude and latitude.

I have code for distance calculation somewhere, that I built for a Quiz walk 
app, that I made for my sons birthday party several years ago. If you are 
interested I can dig it up.

I remember that the biggest problem was not calculating the distance it was 
translating lat long to some meaningful x,y coordinate.

Håkan
On 3 Apr 2020, 21:50 +0200, Graham Samuel via use-livecode 
, wrote:
> This is cheeky but I can’t run up my mobile simulation today - can someone 
> tell me the format of the geographical coordinates produced by 
> mobileSensorReading et al. I mean, is say latitude just one integer showing 
> seconds, or is it deg, min, sec - and are fractional seconds returned (so, 
> floating point)? I shall find out for myself eventually but it would help a 
> little to know now. AFAIKS there’s nothing in the LC documentation about it.
>
> Graham
>
> ___
> 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: Getting started with geographical coordinates

2020-04-03 Thread Devin Asay via use-livecode
Graham,

You get back lat and long in degrees and fractions of degrees, as a decimal 
numeral. For instance, I get latitude: 40.248676 and longitude: -111.651062, 
and for good measure altitude in meters at 1398.380493. Wow, now you all know 
exactly where I am!

Devin



> On Apr 3, 2020, at 1:49 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> This is cheeky but I can’t run up my mobile simulation today - can someone 
> tell me the format of the geographical coordinates produced by 
> mobileSensorReading et al. I mean, is say latitude just one integer showing 
> seconds, or is it deg, min, sec - and are fractional seconds returned (so, 
> floating point)? I shall find out for myself eventually but it would help a 
> little to know now. AFAIKS there’s nothing in the LC documentation about it.
> 
> Graham
> 
> ___
> 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: Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
This is cheeky but I can’t run up my mobile simulation today - can someone tell 
me the format of the geographical coordinates produced by mobileSensorReading 
et al. I mean, is say latitude just one integer showing seconds, or is it deg, 
min, sec - and are fractional seconds returned (so, floating point)? I shall 
find out for myself eventually but it would help a little to know now. AFAIKS 
there’s nothing in the LC documentation about it.

Graham

___
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: DataGrid question: Suggestions for further enhancements

2020-04-03 Thread Niggemann, Bernd via use-livecode
Roland wrote Thu, 02 Apr 2020 04:08:51 -0700:

Thank you Roland for your detailed list of possible improvements to 
modTableField


> + Selecting columns:
> 
> marking selected columns

I will have to think about that

> + Dragging and dropping columns and rows

presently it is possible to drag line = rows if you set

put true into pBool
dispatch "mtfAllowLineDragging" to group "modTableField 1" with pBool

Or set it from the helper stack tab "data"

You have to press the optionKey while dragging

Whereas you can extract columns from the data field but you can not set them 
nor drag them.
Again I will have to experiment to see how to eventually implement this.



> + Freezing rows and/or columns:

I am not sure what that is. Are you talking about a spreadsheet like behavior 
with fixed left column and top row?


> + Field display formats

For sorting you can specify the sort.
However until now I felt that the developer is in control of the format of the 
data.
A predetermined format for a column would mean a lot of error checking on data 
input. I am not sure if it is not better to leave that to the developer.

If you plan to use modTableField in a project feel free to email me and I can 
see if we can work out some modification.

Kind regards
Bernd
___
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: Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
Thanks Ralph, that really helps, along with Devin’s tutorial as well I should 
be able to make progress.

Graham

> On 3 Apr 2020, at 18:14, Ralph DiMola via use-livecode 
>  wrote:
> 
> 
> mobileLocationAuthorizationStatus() will tell you if the OS app setting will 
> allow location tracking
> mobileSensorAvailable("location") will tell you if there is a location sensor
> mobileStartTrackingSensor "Location", [true|false] will start the tracking.
> 
> mobileSensorReading("location", [true|false]) will return an array of the 
> current location. If the latitude or longitude is zero then the GPS is not 
> yet locked
> 
> 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 Graham Samuel via use-livecode
> Sent: Friday, April 03, 2020 11:18 AM
> To: How to use LiveCode
> Cc: Graham Samuel
> Subject: Getting started with geographical coordinates
> 
> Hi
> 
> I am reviving my LiveCode skills in these troubled times, and I want to do 
> something that involves the location of a device using GPS. A very rapid 
> (obviously too rapid) search of the documentation finds commands like 
> iphoneStartTrackingLocation, but no link to a description of how one reads 
> the actual geographical coordinates or what form they take. There is a 
> reference to CoreLocation, but that hasn’t got a dictionary entry.
> 
> Can anyone point me in the right direction. Sorry if it’s obvious.
> 
> Thanks in advance
> 
> Graham
> ___
> 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: Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
Wow, Devin, that is luck! I shall look at it instantly. I have got a little 
further on my own but am rather disturbed that there seem to be iOS functions 
with no Android equivalent, e.g. mergCLDistanceBetween - but I am still totally 
ignorant really.

Thanks 

Graham

> On 3 Apr 2020, at 17:42, Devin Asay via use-livecode 
>  wrote:
> 
> Hi Graham,
> 
> As fate would have it I just created a video tutorial for my students on 
> reading mobile device sensors.
> 
> http://livecode.byu.edu/mobile/devicesensors-index.php
> 
> Hope you find these useful.
> 
> Devin
> 
> 
> On Apr 3, 2020, at 9:18 AM, Graham Samuel via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Hi
> 
> I am reviving my LiveCode skills in these troubled times, and I want to do 
> something that involves the location of a device using GPS. A very rapid 
> (obviously too rapid) search of the documentation finds commands like 
> iphoneStartTrackingLocation, but no link to a description of how one reads 
> the actual geographical coordinates or what form they take. There is a 
> reference to CoreLocation, but that hasn’t got a dictionary entry.
> 
> Can anyone point me in the right direction. Sorry if it’s obvious.
> 
> Thanks in advance
> 
> Graham
> ___
> 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: DataGrid question...

2020-04-03 Thread Niggemann, Bernd via use-livecode


> Bernard Devlin via use-livecode Fri, 03 Apr 2020 11:23:08 -0700
> Reminds me of the work of the late great Eric Chatonet


Thanks Bernhard for your kind words. But Eric is in my memory such a super 
coder and his code was crystal clear. Whereas my code is, um, less so.


> I see only one slight problem: after I click into a cell a trace of the I 
> beam is left behind on leaving the cell (this becomes visible on selecting 
> another row). I guess this is a LC bug. If I click away (e.g. on the 
> "examples" tabbed button) the trace vanishes. If I click on the column header 
> to sort and re-sort, the I beam trace is still there in the field in which I 
> clicked. If I click in the output field that also does not remove the I beam 
> vestige.


I am only using a Mac and I have never seen this. This must be something 
Windows 10 related. I do not have access to Windows 10.
I wonder if anyone has seen this on Windows 10?

Kind regards
Bernd
___
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


Strange times, amazing projects

2020-04-03 Thread Skip Kimpel via use-livecode
Good afternoon LC'ers (evening to some),

Enjoyed the Zoom chat today and it was good to see all of your faces
again.  It has been way too long.

Over the past couple of years I have been sidetracked from LC as I have not
had the need to be as hands on as I once was.  Now, however, I am forced to
pull out skill sets and take on projects / challenges that I have not done
in quite some time.  Actually, it is quite exhilarating.

I won't get into details about the project as a whole right now (but I
can't wait to share it with you all when it is done) but I have a challenge
that involves mapping and coordinates and I am trying to wrap my head
around how to accomplish it.

I have delivery zones built in Google Earth and I have delivery addresses.
I need to run through the list of delivery addresses to determine which
delivery zone they fall in.  Sounds simple (or maybe not) but I can't
figure out how to work out the coordinates of the address and filter it
within the perimeter coordinates of the zone.  Hopefully I explained this
clearly.

I realize I will probably have to first run the delivery addresses against
some database that will give me GPS coordinates which I can then use
against my delivery zone kml data.

Has anybody done this before?  Any suggestions?

As always, your input is GREATLY appreciated :)

Best regards,

SKIP KIMPEL
___
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: DataGrid question...

2020-04-03 Thread Bernard Devlin via use-livecode
Hi Bernd

Your modTableField is very impressive.  Reminds me of the work of the late,
great Eric Chatonet (author of many works on Hypercard).  I see only one
slight problem: after I click into a cell a trace of the I beam is left
behind on leaving the cell (this becomes visible on selecting another
row).  I guess this is a LC bug.  If I click away (e.g. on the "examples"
tabbed button) the trace vanishes.  If I click on the column header to sort
and re-sort, the I beam trace is still there in the field in which I
clicked. If I click in the output field that also does not remove the I
beam vestige.

But apart from that visual vestige, in 20 minutes of playing with mTF I was
very impressed.  BTW, in case you have not seen this yourself, this vestige
was visible for me with LC 9.5.1 on Windows 10.

Regards, Bernard

On Mon, Mar 30, 2020 at 10:44 PM Niggemann, Bernd via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> >Peter Bogdanoff wrote:
>
> >Does anyone have a link to obtain Bernd's modTableField ?
>
> Here is a link to the latest version of modifiedTableField
>
> berndniggemann.on-rev.com/mtf/modTableField.zip<
> http://berndniggemann.on-rev.com/mtf/modTableField.zip>
>
> there is a zip of a demo stack with a helper stack and a .rtf document
> with the API
>
> Use the demo stack to explore modTableField. Have a little patience to
> explore. It shows many options. Please have a look at the API document to
> get a feeling how to address and query modTableField.
>
> If you want to use modTableField in a project copy the group
> "modTableField 1" from the demo stack to your stack and use the API to work
> with it.
>
> This version is HTML5 safe. There was a superfluous wait in former
> versions. Hermann used tinyDict with his HTML5 demo of an IDE.
>
> tinyDictionary uses modTableField
>
> There are a couple of users that seem quite content with modTableField
> (thanks Jerry for mentioning it)
>
> I would be happy to know if anybody uses modTableField in a project.
> (aside from the people that mailed me before).
>
> If you have questions please feel free to email me.
>
> Kind regards
> Bernd
>
>
> ___
> 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: Our first Community Zoom Session

2020-04-03 Thread Heather Laine via use-livecode
Hmm. Think maybe some timezone confusion?

We started at 4pm UK time, its now 5.19pm...

Best 

Heather

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



> On 3 Apr 2020, at 17:14, Tom Glod via use-livecode 
>  wrote:
> 
> Is it already over ? its only 12:20 EST and its saying the start is at 11
> AM... if I am the host I should log in
> 
> Am I crazy to expect "Meeting is over". if its over?
> 
> On Fri, Apr 3, 2020 at 11:29 AM Mark Wieder via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> On 4/2/20 9:34 AM, doc hawk via use-livecode wrote:
>>> I think the that’s midnight PST . . .
>>> 
>>> Also, I would ask that you to *not* submit our email address to zoom,
>> but instead send the code to the lit, or by your own servers to our
>> email—it came out in the last couple of days that, just a zoom was nearing
>> a whole week without  a new security or privacy sue, that they’d globe
>> email in a way to make them accessible . . .
>> 
>> Register with a disposable email address / use a pen name.
>> https://10minutemail.com/
>> 
>> --
>>  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
>> 
> 
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Mobile:647.562.9411
> ___
> 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: Our first Community Zoom Session

2020-04-03 Thread Tom Glod via use-livecode
Is it already over ? its only 12:20 EST and its saying the start is at 11
AM... if I am the host I should log in

Am I crazy to expect "Meeting is over". if its over?

On Fri, Apr 3, 2020 at 11:29 AM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 4/2/20 9:34 AM, doc hawk via use-livecode wrote:
> > I think the that’s midnight PST . . .
> >
> > Also, I would ask that you to *not* submit our email address to zoom,
> but instead send the code to the lit, or by your own servers to our
> email—it came out in the last couple of days that, just a zoom was nearing
> a whole week without  a new security or privacy sue, that they’d globe
> email in a way to make them accessible . . .
>
> Register with a disposable email address / use a pen name.
> https://10minutemail.com/
>
> --
>   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
>


-- 
Tom Glod
Founder & Developer
MakeShyft R.D.A (www.makeshyft.com)
Mobile:647.562.9411
___
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: Getting started with geographical coordinates

2020-04-03 Thread Ralph DiMola via use-livecode

mobileLocationAuthorizationStatus() will tell you if the OS app setting will 
allow location tracking
mobileSensorAvailable("location") will tell you if there is a location sensor
mobileStartTrackingSensor "Location", [true|false] will start the tracking.

mobileSensorReading("location", [true|false]) will return an array of the 
current location. If the latitude or longitude is zero then the GPS is not yet 
locked

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 
Graham Samuel via use-livecode
Sent: Friday, April 03, 2020 11:18 AM
To: How to use LiveCode
Cc: Graham Samuel
Subject: Getting started with geographical coordinates

Hi

I am reviving my LiveCode skills in these troubled times, and I want to do 
something that involves the location of a device using GPS. A very rapid 
(obviously too rapid) search of the documentation finds commands like 
iphoneStartTrackingLocation, but no link to a description of how one reads the 
actual geographical coordinates or what form they take. There is a reference to 
CoreLocation, but that hasn’t got a dictionary entry.

Can anyone point me in the right direction. Sorry if it’s obvious.

Thanks in advance

Graham
___
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: Go to card has become slow

2020-04-03 Thread Bob Sneidar via use-livecode
Mark, you may have answered why it is my Forms Generator app is running so slow 
on Windows. I don’t use transactions and I make multiple queries for most 
transactions.

Bob S


On Apr 3, 2020, at 1:42 AM, Mark Waddingham via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 2020-04-03 09:25, Terence Heaford via use-livecode wrote:
Fortunately I have Time Machine running on my mac.
I have gone back to a previous copy from the 01 April 2020 and this
project is running at full speed.
I have made no modifications to the underlying functionality of this
project other than some modifications to SQLite
scripts to improve performance.
I will make those adjustments again and report on the outcome.
I do not believe it’s anything I have done.

I'd humbly  suggest that modifications to SQLite scripts constitute 
modifications ;)

Have you modified the SQLite database in any way?

Like most db's SQLite is heavily dependent on indices to prevent operations 
being slow - if some have been removed which existing queries relied upon, or 
one hasn't been added to support a new/modified query then that could cause a 
heavy performance loss.

Similarly, SQLite is transactional, so if you do lots of mutation queries 
outside of one each individual query will take a lot longer (as each will be 
under its own transaction requiring a OS disk flush/sync after each) - if 
you've tweaked how you are doing such queries and not taken into account 
transactions that could also cause a heavy performance loss.

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: Go to card has become slow

2020-04-03 Thread Bob Sneidar via use-livecode
What may help in the future to eliminate possible script issues, is to use a 
text editor that has the capability of comparing two scripts and showing you 
the difference. Most of the code editors have addams that will do this.

Bob S


On Apr 3, 2020, at 1:25 AM, Terence Heaford via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Fortunately I have Time Machine running on my mac.

I have gone back to a previous copy from the 01 April 2020 and this project is 
running at full speed.

I have made no modifications to the underlying functionality of this project 
other than some modifications to SQLite
scripts to improve performance.

I will make those adjustments again and report on the outcome.

I do not believe it’s anything I have done.

I believe (no proof) that something within LC has corrupted the project.

I have looked at copying the old project into a new project but that within LC 
seems to be a nightmare scenario.

If that was easy and it worked it would be a future solution or if there was a 
livecode maintenance type project that could do this sort of thing that would 
be good.

All the best for now.

Will report back

Thanks

Terry

___
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: Getting started with geographical coordinates

2020-04-03 Thread Devin Asay via use-livecode
Hi Graham,

As fate would have it I just created a video tutorial for my students on 
reading mobile device sensors.

http://livecode.byu.edu/mobile/devicesensors-index.php

Hope you find these useful.

Devin


On Apr 3, 2020, at 9:18 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi

I am reviving my LiveCode skills in these troubled times, and I want to do 
something that involves the location of a device using GPS. A very rapid 
(obviously too rapid) search of the documentation finds commands like 
iphoneStartTrackingLocation, but no link to a description of how one reads the 
actual geographical coordinates or what form they take. There is a reference to 
CoreLocation, but that hasn’t got a dictionary entry.

Can anyone point me in the right direction. Sorry if it’s obvious.

Thanks in advance

Graham
___
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: DataGrid question: Suggestions for further enhancements (Bob Sneidar)

2020-04-03 Thread Bob Sneidar via use-livecode
:-) I wasn’t arguing, just pointing out that before the data grid, the 
community was practically begging RunRev for  some kind of robust table object, 
BECAUSE the table field was so unwieldy. That others have found ways in the 
interim to enhance the table field is nothing short of astounding, and is a 
testament to both the robust nature of Livecode’s language, and the ingenuity 
of the developers who use it.

Just the other day I attempted to use a table field to display one row of 
columns from a database, and a second row of values. The columns and their 
respective values needed to be added or deleted based on a user selecting or 
deselecting the column from another list field, and added column/values always 
appended to the end of the list. I also wanted the user to be able to edit the 
values, but NOT the column names.

After about two hours of trying to get it to work, and running into all kinds 
of problems jumping through hoops and running into more problems, I scrapped it 
and used a data grid instead. Within half an hour I got it working.

If all you want is to display tabular data without much formatting needed and 
little to no editing, a table field is just what you need. If you want to 
format, edit, store and retrieve that data in a database, sort, filter, etc. 
then it’s my opinion that using a table field is going to cause more headache 
than it’s worth.

Bob S


On Apr 3, 2020, at 3:11 AM, R.H. via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

@ Bob S

Sure, you are right that the DG data grid supports most of what users might
wish to have.

My point was that there is a nice enhancement to the table field from Bernd
Niggemann and that it could even be further enhanced -- without arguing
about DG vs table field. Even if that would only be an exercise.

Would yor argument not also mean that you simple could skip the table
field? I still use it.

For a long time I have been using Filemaker as a database and application
tool. The ease of use in just dragging all kinds of objects to the portal
(similar to the data grid row template) is compelling in terms of user
friendliness. But there is  a DataGrid helper...  by
https://www.aslugontheroad.com/

So, maybe we could then argue about how the DG could be improved? )

Roland

___
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: Our first Community Zoom Session

2020-04-03 Thread Mark Wieder via use-livecode

On 4/2/20 9:34 AM, doc hawk via use-livecode wrote:

I think the that’s midnight PST . . .

Also, I would ask that you to *not* submit our email address to zoom, but 
instead send the code to the lit, or by your own servers to our email—it came 
out in the last couple of days that, just a zoom was nearing a whole week 
without  a new security or privacy sue, that they’d globe email in a way to 
make them accessible . . .


Register with a disposable email address / use a pen name.
https://10minutemail.com/

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


Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
Hi

I am reviving my LiveCode skills in these troubled times, and I want to do 
something that involves the location of a device using GPS. A very rapid 
(obviously too rapid) search of the documentation finds commands like 
iphoneStartTrackingLocation, but no link to a description of how one reads the 
actual geographical coordinates or what form they take. There is a reference to 
CoreLocation, but that hasn’t got a dictionary entry.

Can anyone point me in the right direction. Sorry if it’s obvious.

Thanks in advance

Graham
___
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: How to find the column and row of a basic tableField

2020-04-03 Thread Bob Sneidar via use-livecode
Probably has to do with margins.

Bob S


On Apr 2, 2020, at 11:42 PM, Håkan Liljegren via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

It works for tables with or without date but doesn’t handle tables with 
variable row heights as that was not the case at the moment. To get it 
pixel-perfect I needed to compensate the row calculation with 5 pixels and the 
column with -2 as you can see in my code. Does anyone know why? Is it the same 
reason that if you set the margins of a field to 0 you often get the first line 
clipped?

Keep Safe!

:-Håkan

___
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: Hide stack change focus not supported 64bit

2020-04-03 Thread Bob Sneidar via use-livecode
Open Stack Properties, add to the stackfiles. Also in the standalone builder 
you can add other files and folders that are not stack files.

Bob S


On Apr 2, 2020, at 9:33 PM, Bill Vlahos via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I don’t see it in the inclusions tab.

How do I install your library?

Thanks,
Bill

___
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: Go to card has become slow

2020-04-03 Thread Ralph DiMola via use-livecode
On Windows I have seen a slow down on some but not all cards when the SE is 
open. Close the SE and everything speeds back up. 

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 
Terence Heaford via use-livecode
Sent: Friday, April 03, 2020 8:55 AM
To: How to use LiveCode
Cc: Terence Heaford
Subject: Re: Go to card has become slow

I have now copied the modified scripts from the project version that was slow 
and reapplied them to the previous version which was running fast.

Applying the modified scripts has not resulted in any slowdown of the version 
they have been applied to.

So, I cannot understand why the project slowed down in the first place but…

all is now well until it happens again.


Thanks

Terry

> On 3 Apr 2020, at 09:42, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2020-04-03 09:25, Terence Heaford via use-livecode wrote:
>> Fortunately I have Time Machine running on my mac.
>> I have gone back to a previous copy from the 01 April 2020 and this 
>> project is running at full speed.
>> I have made no modifications to the underlying functionality of this 
>> project other than some modifications to SQLite scripts to improve 
>> performance.
>> I will make those adjustments again and report on the outcome.
>> I do not believe it’s anything I have done.
> 
> I'd humbly  suggest that modifications to SQLite scripts constitute 
> modifications ;)
> 
> Have you modified the SQLite database in any way?
> 
> Like most db's SQLite is heavily dependent on indices to prevent operations 
> being slow - if some have been removed which existing queries relied upon, or 
> one hasn't been added to support a new/modified query then that could cause a 
> heavy performance loss.
> 
> Similarly, SQLite is transactional, so if you do lots of mutation queries 
> outside of one each individual query will take a lot longer (as each will be 
> under its own transaction requiring a OS disk flush/sync after each) - if 
> you've tweaked how you are doing such queries and not taken into account 
> transactions that could also cause a heavy performance loss.
> 
> 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


___
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: Go to card has become slow

2020-04-03 Thread Terence Heaford via use-livecode
I have now copied the modified scripts from the project version that was slow 
and reapplied them to the previous version which was running fast.

Applying the modified scripts has not resulted in any slowdown of the version 
they have been applied to.

So, I cannot understand why the project slowed down in the first place but…

all is now well until it happens again.


Thanks

Terry

> On 3 Apr 2020, at 09:42, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2020-04-03 09:25, Terence Heaford via use-livecode wrote:
>> Fortunately I have Time Machine running on my mac.
>> I have gone back to a previous copy from the 01 April 2020 and this
>> project is running at full speed.
>> I have made no modifications to the underlying functionality of this
>> project other than some modifications to SQLite
>> scripts to improve performance.
>> I will make those adjustments again and report on the outcome.
>> I do not believe it’s anything I have done.
> 
> I'd humbly  suggest that modifications to SQLite scripts constitute 
> modifications ;)
> 
> Have you modified the SQLite database in any way?
> 
> Like most db's SQLite is heavily dependent on indices to prevent operations 
> being slow - if some have been removed which existing queries relied upon, or 
> one hasn't been added to support a new/modified query then that could cause a 
> heavy performance loss.
> 
> Similarly, SQLite is transactional, so if you do lots of mutation queries 
> outside of one each individual query will take a lot longer (as each will be 
> under its own transaction requiring a OS disk flush/sync after each) - if 
> you've tweaked how you are doing such queries and not taken into account 
> transactions that could also cause a heavy performance loss.
> 
> 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


___
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: Answer Dialog in Stack now

2020-04-03 Thread Erik Beugelaar via use-livecode
Hi Bob,

Did you take into account the release notes (LiveCode 9.4) about Standalone 
Building?

StandaloneBuilding
The standalone builder has always needed to close the stacks it builds for 
reasons pretty deeplyin
grained in the code. 

However this causes a few problems, for example:
- values in script locals become empty
- behaviors are broken when the parent script is on / in a stack which closes

As an attempt to improve this situation, the code that locks messages when 
closing and openingstacks for standalone builds has been removed. 
This means that where previously mainstacks
would not receive any of the (pre)open* and close* messages (e.g. preOpenStack, 
openStack, openCard, closeStack etc) during standalone build, they now do.

If this causes problems for your stack, you can exit from the handler if 
standalone building is inprogress:

on closeStack
if the environment is "development" and \  
there is a stack "revStandaloneProgress" and \  
the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
end closeStack

LiveCode 9.0.4 Release Notes 5/10/192

Maybe this will help.

Kind regards,
Erik



-Original Message-
From: use-livecode  On Behalf Of Bob 
Sneidar via use-livecode
Sent: vrijdag 3 april 2020 00:16
To: How to use LiveCode 
Cc: Bob Sneidar 
Subject: Re: Answer Dialog in Stack now

Also, the standalone builder altered all the paths to my stackFiles as though 
they were in the same folder as the stack itself. They are not.

I’m just going on record here to say the standalone builder at present is 
completely unusable. I’ll file a support ticket.

Bob S


On Apr 2, 2020, at 3:01 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Okay crisis temporarily averted. For whatever reason the Standalone Builder 
copied several Livecode UI stacks as substacks of my Mainstack! THAT’S NOT 
SUPPOSED TO HAPPEN!

Bob S


On Apr 2, 2020, at 2:54 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>>
 wrote:

Hi all.

I just created a standalone for a new project for the first time. Now every 
time I open it, it complains that there is already and answer Dialog stack in 
memory! What’s worse, any time I use the form Answer Password I can see what I 
type!!! Livecode Devs, MAKE IT STOP!!! You cannot POSSIBLY expect new users to 
deal with this.

How do I “purge” my stack of the errant Answer Dialog?

Bob S


___
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: DataGrid question: Suggestions for further enhancements (Bob Sneidar)

2020-04-03 Thread R.H. via use-livecode
@ Bob S

Sure, you are right that the DG data grid supports most of what users might
wish to have.

My point was that there is a nice enhancement to the table field from Bernd
Niggemann and that it could even be further enhanced -- without arguing
about DG vs table field. Even if that would only be an exercise.

Would yor argument not also mean that you simple could skip the table
field? I still use it.

For a long time I have been using Filemaker as a database and application
tool. The ease of use in just dragging all kinds of objects to the portal
(similar to the data grid row template) is compelling in terms of user
friendliness. But there is  a DataGrid helper...  by
https://www.aslugontheroad.com/

So, maybe we could then argue about how the DG could be improved? )

Roland
___
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: Go to card has become slow

2020-04-03 Thread Mark Waddingham via use-livecode

On 2020-04-03 09:25, Terence Heaford via use-livecode wrote:

Fortunately I have Time Machine running on my mac.

I have gone back to a previous copy from the 01 April 2020 and this
project is running at full speed.

I have made no modifications to the underlying functionality of this
project other than some modifications to SQLite
scripts to improve performance.

I will make those adjustments again and report on the outcome.

I do not believe it’s anything I have done.


I'd humbly  suggest that modifications to SQLite scripts constitute 
modifications ;)


Have you modified the SQLite database in any way?

Like most db's SQLite is heavily dependent on indices to prevent 
operations being slow - if some have been removed which existing queries 
relied upon, or one hasn't been added to support a new/modified query 
then that could cause a heavy performance loss.


Similarly, SQLite is transactional, so if you do lots of mutation 
queries outside of one each individual query will take a lot longer (as 
each will be under its own transaction requiring a OS disk flush/sync 
after each) - if you've tweaked how you are doing such queries and not 
taken into account transactions that could also cause a heavy 
performance loss.


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: Go to card has become slow

2020-04-03 Thread Terence Heaford via use-livecode
Fortunately I have Time Machine running on my mac.

I have gone back to a previous copy from the 01 April 2020 and this project is 
running at full speed.

I have made no modifications to the underlying functionality of this project 
other than some modifications to SQLite
scripts to improve performance.

I will make those adjustments again and report on the outcome.

I do not believe it’s anything I have done.

I believe (no proof) that something within LC has corrupted the project.

I have looked at copying the old project into a new project but that within LC 
seems to be a nightmare scenario.

If that was easy and it worked it would be a future solution or if there was a 
livecode maintenance type project that could do this sort of thing that would 
be good.

All the best for now.

Will report back

Thanks

Terry


> On 2 Apr 2020, at 22:45, Devin Asay via use-livecode 
>  wrote:
> 
> I have seen delays when going to a card containing a large image with Resize 
> Quality set to “Best”. It was more of an issue on a mobile device, but it’s 
> worth looking into.
> 
> Devin
> 
>> On Apr 2, 2020, at 1:27 PM, Terence Heaford via use-livecode 
>>  wrote:
>> 
>> I have a project that opens at a particular card.
>> 
>> When I go to another card (any card) it’s very snappy.
>> 
>> When I return to the original card (from any card) I have noticed a second 
>> or two delay before it happens.
>> 
>> There would appear to be nothing in any script that would account for this.
>> 
>> Can anyone give some insight as to why this has happened?
>> 
>> I reinstalled LC to no avail.
>> 
>> Community 9.5.1
>> 
>> MacOS 10.15.4
>> 
>> I read something about font changes on the forum but that seemed to relate 
>> to iOS not MacOS.
>> 
>> I’m at a loss
>> 
>> 
>> Thanks
>> 
>> Terry
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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: How to find the column and row of a basic tableField

2020-04-03 Thread Håkan Liljegren via use-livecode
With risk of going slightly off-topic, but also showing yet another code 
example. I had exactly this problem some time ago and came up with the 
following solution:

getProp clickedRowCol
   # calc Row => TODO: Handle row with variable row heights
   put the clickV - the top of me - the borderWidth of me - the effective 
topMargin of me + 5 into tY
   put tY div the effective textHeight of me + 1 into tLine

   #Calc column : TODO : Handle other text aligns
   put the tabstops of me into tTabs
   put the number of items in tTabs into tNumCols
   put item -1 of tTabs into tLastTab
   put tLastTab - item -2 of tTabs into tTabWidth
   put the left of me + the borderWidth of me +the effective leftMargin of me - 
2 into tLeft
   if (the ClickH - tleft) > tLastTab then
      # Click right of last column
      return tLine, (the ClickH - tLastTab - tLeft) div tTabWidth + tNumCols + 1
   else
      put the ClickH - tLeft into tClickPos
      put "," & tClickPos after tTabs
      sort items of tTabs numeric ascending
      return tLine, itemOffset(tClickPos, tTabs)
   end if
end clickedRowCol

You can try it by adding the following mouseUp code:

on mouseUp
   answer "You clicked at " & the clickH, the clickV && "= (Row,Col)" && the 
clickedRowCol of me
end mouseUp

It works for tables with or without date but doesn’t handle tables with 
variable row heights as that was not the case at the moment. To get it 
pixel-perfect I needed to compensate the row calculation with 5 pixels and the 
column with -2 as you can see in my code. Does anyone know why? Is it the same 
reason that if you set the margins of a field to 0 you often get the first line 
clipped?

Keep Safe!

:-Håkan
___
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