Re: Go to card has become slow

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

Great test set, Neville. Thanks for posting that link.

The hardware on my Linux and Win boxes is so different I don't have a 
strong opinion there. But I did modify your main test script to see what 
I might learn from isolating the file I/O from the stack serialization:


on mouseUp
  put word 2 of the long name of stack "data" into fName
  replace quote with "" in fName
  if the shiftKey is "up" then
put the long seconds into t0
save stack "data"
put the long seconds - t0 into t1
put "saving data took " && t1 && "seconds" into fld "timeInfo"
put 0.01*(the length of URL ("file:" & fName)) && "MB" into fld 
"lengthInfo"

  else
put url ("binfile:") into tData
put the long seconds into t
put tData into url ("binfile:"& fName)
put the long seconds - t
  end if
end mouseUp

So I ran your tool, making a stack with 300 cards, which produces a file 
a bit over 8MB.  These are my times:


Ubuntu 18.04 w/SSD
Stack: 0.097182
File:  0.008475

Windows 10 w/HDD
Stack: 8.183708
File:  0.014

Even with the differences in the hardware, it looks like the bottleneck 
is in the stack serialization, and the file I/O seems good.


Anyone here in a position to run Neville's test with this modification 
on similarly-configured systems but different OSes?


--
 Richard Gaskin
 Fourth World Systems


Neville Smythe wrote:


Richard

Here is a link to the test stack for testing the speed of save stack

https://www.dropbox.com/sh/cb2r9jbohxqv6bp/AAAQ1weLLlzrKYQ21yn1apf9a?dl=0

I don’t know why the test stacks I supplied disappeared from the QC bug report.

You need the SlowSave.livecode and the data.livecode stacks. They are both 
small, but SlowSave creates a large stack with 300 cards and the lorem ipsum 
text data to build an 8 MB stack, and displays the timing for saving. On my 
MacBook Air it takes 0.13 seconds to save; on Windows 10 installations I have 
seen times from 3 seconds to 10 seconds.

In this test, the stack has just 300 cards, 1 field on each, and lots of ascii 
text (so there should be no problems converting to utf-8 before saving in the 
unlikely event that is happening, and in any case would happen on all 
platforms). I haven’t tested stacks with large numbers of controls or large 
images rather than large text data.

Other apps on Windows 10 certainly don’t display this behaviour, which  
indicates it is a LC problem not a Windows problem. Antivirus software and 
Defender were off during the test. I was under the impression that saving files 
from LC, rather than stacks, was not slower than normal, but Bob’s recently 
experience with saving data to a database may contradict that.

Some people have had trouble verifying my observations (other LC Forum users have confirmed). QC originally could not confirm the bug until they tried it “on an older PC”. However one of my users recently updated to a *very* fast HP box; it cut the save time down significantly but was still at least 20 times slower than on a typical Mac, ie almost usable. So maybe it has something to do with the Windows installation, though the ones I used were stock standard. I can’t see how fonts could be involved, for example. 


Neville



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


Make video call

2020-04-07 Thread Riko Abadi via use-livecode
Hello,

in theory is it possible we can make a video call application like zoom
with livecode? 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: Go to card has become slow

2020-04-07 Thread Neville Smythe via use-livecode
Richard

Here is a link to the test stack for testing the speed of save stack

https://www.dropbox.com/sh/cb2r9jbohxqv6bp/AAAQ1weLLlzrKYQ21yn1apf9a?dl=0

I don’t know why the test stacks I supplied disappeared from the QC bug report.

You need the SlowSave.livecode and the data.livecode stacks. They are both 
small, but SlowSave creates a large stack with 300 cards and the lorem ipsum 
text data to build an 8 MB stack, and displays the timing for saving. On my 
MacBook Air it takes 0.13 seconds to save; on Windows 10 installations I have 
seen times from 3 seconds to 10 seconds.

In this test, the stack has just 300 cards, 1 field on each, and lots of ascii 
text (so there should be no problems converting to utf-8 before saving in the 
unlikely event that is happening, and in any case would happen on all 
platforms). I haven’t tested stacks with large numbers of controls or large 
images rather than large text data.

Other apps on Windows 10 certainly don’t display this behaviour, which  
indicates it is a LC problem not a Windows problem. Antivirus software and 
Defender were off during the test. I was under the impression that saving files 
from LC, rather than stacks, was not slower than normal, but Bob’s recently 
experience with saving data to a database may contradict that.

Some people have had trouble verifying my observations (other LC Forum users 
have confirmed). QC originally could not confirm the bug until they tried it 
“on an older PC”. However one of my users recently updated to a *very* fast HP 
box; it cut the save time down significantly but was still at least 20 times 
slower than on a typical Mac, ie almost usable. So maybe it has something to do 
with the Windows installation, though the ones I used were stock standard. I 
can’t see how fonts could be involved, for example. 

Neville
___
use-livecode mailing list
use-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: Problems locating Android SDK

2020-04-07 Thread Sannyasin Brahmanathaswami via use-livecode
Well, second, related problem. Android appears installed

On OSX Catalina, I am having trouble getting my device to appear... 

/Library/Android/sdk/build-tools/29.0.1

Android --  from terminal, appear normal

% ./adb 
%./adb kill-server
%./adb start-server

* daemon started successfully
%  ./adb devices

List of devices attached
[nothing,"nada"]

But I have not gotten my MotoG6 to  device to appear...(developer enabled, USB 
debugging enabled)  it did last week, not these past few days I tried 
everything, reboot my Mac, restarting the phone, connecting directly into the 
computer instead of a dongle...Nothing works

BR


 Richard Gaskin wrote:

Well, turning it off and then turning it back on again is the universal 
IT fix, so I'll do a resinstall and see how it goes.

___
use-livecode mailing list
use-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: Who else doesn't want auto-select when opening a card?

2020-04-07 Thread Trevor DeVore via use-livecode
On Mon, Apr 6, 2020 at 1:39 PM J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> This makes me crazy. I almost never want the first field selected when I
> go to a card,
> particularly on mobile. And god forbid the first field is a list field,
> where the first line is
> hilited whenever the stack resumes focus, even if the hilitedline was 0.


Agreed. Focusing on a field if you need to is simple and can be achieved
using one line of code. Plus, by coding it you don’t have to worry about
the wrong field obtaining focus if you change the layering order of
controls later on.

- -
Trevor DeVore
ScreenSteps

>
___
use-livecode mailing list
use-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: Who else doesn't want auto-select when opening a card?

2020-04-07 Thread Bob Sneidar via use-livecode
I think about 30% of my coding is one workaround or another. :-)

Bob S


> On Apr 7, 2020, at 3:53 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I have workarounds, I just don't want to have to use them. Selecting nothing 
> or setting the hilitedline, either one, you still have to set up some 
> handlers to do it. They don't work in an openCard handler, you have to reset 
> after that.


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


Re: Who else doesn't want auto-select when opening a card?

2020-04-07 Thread J. Landman Gay via use-livecode
I have workarounds, I just don't want to have to use them. Selecting nothing or setting the 
hilitedline, either one, you still have to set up some handlers to do it. They don't work in an 
openCard handler, you have to reset after that.


On 4/6/20 2:38 PM, Bob Sneidar via use-livecode wrote:

I ALWAYS want that. Nevertheless, have you tried select nothing in after 
OpenCard?

Bob S


On Apr 6, 2020, at 11:39 AM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

This makes me crazy. I almost never want the first field selected when I go to 
a card, particularly on mobile. And god forbid the first field is a list field, 
where the first line is hilited whenever the stack resumes focus, even if the 
hilitedline was 0.

The workaround is tedious: on preOpenCard, set traversalOn to false, send a 
message to turn it back on after the card is displayed, include a handler that 
will catch the message and do the deed.

I want a property or setting that lets me turn off this default behavior. It's 
annoying and disruptive, and has been there since day one.

--
Jacqueline Landman Gay | 
jac...@hyperactivesw.com
HyperActive Software   | 
http://www.hyperactivesw.com

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




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: Building a Board Game

2020-04-07 Thread Roger Guay via use-livecode
Thanks to Tore, Bob and Devin for your suggestions. You have pushed back my 
frontiers of ignorance!

Cheers,
Roger

> On Apr 7, 2020, at 12:24 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Hi all, 
> 
> I know there must be a simple way to do this but it is escaping me at the 
> moment. How can I move an object (grab me on mouseDown) and have it snap to a 
> grid (square on a board game) on mouseUp?
> 
> Thanks much,
> 
> Roger
> ___
> use-livecode mailing list
> use-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-07 Thread Alex Tweedly via use-livecode
Thanks. Can’t think of a better place to be locked in!
I’m sure Google thinks of what3words as a competitor, but also I suspect w3w 
keeps their mapping very close to their chest as a proprietary asset.

Alex .


Sent from my iPad

> On 7 Apr 2020, at 16:58, Ben Rubinstein via use-livecode 
>  wrote:
> 
> What a beautiful view you have! Interesting that Google Maps doesn't accept 
> what3words yet - possibly viewed as a competitor.
> 
>> On 04/04/2020 01:49, Alex Tweedly via use-livecode wrote:
>> 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


___
use-livecode mailing list
use-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: Building a Board Game

2020-04-07 Thread Devin Asay via use-livecode
Roger,

Rather than moving an object, think about using button icons.  This is the 
basic process:

- on mouseDown: check the icon of the target, set the icon of a hidden, moving 
button to the same icon, set the icon of the target to 0, set a 
flag—isDragging--to true, show the hidden button

- on mouseMove: if isDragging is true, set the loc of the moving button to the 
mouseLoc

- on mouseUp: figure out which square you’re over, set the icon of that button 
to the icon of the moving button, hide moving button, set isDragging to false.

I made a rudimentary chess game that uses this technique, check it out here:

http://dight310.byu.edu/lesson_materials/07-arrays/chessGame-final-key.livecode

Click the Clear Board and Setup Game buttons first to set up the game board 
array. Game state handlers are in the card script; game piece moving handlers 
are in the game board group script.

Hope this helps.

Devin


On Apr 7, 2020, at 1:24 PM, Roger Guay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi all,

I know there must be a simple way to do this but it is escaping me at the 
moment. How can I move an object (grab me on mouseDown) and have it snap to a 
grid (square on a board game) on mouseUp?

Thanks much,

Roger
___
use-livecode mailing list
use-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: Building a Board Game

2020-04-07 Thread Bob Sneidar via use-livecode
Just brainstorming, you would have to intercept mouseMove and then have a 
tolerance of points to your grid. Say three points. Assuming your grid starts 
at the top left of the window, you would div the top of the object with the 
vertical grid width, check for tolerance above and below, then set the object’s 
top to the nearest gridline. You will also need to set the mouseLoc by the same 
amount, or else capture the mouseLoc on mouseDown, record the distance from the 
top left of the object, then after setting the top left of the object, opined 
the mouseLoc to the object again. Do the same with left, and also with bottom 
and right if need be. 

Bob S


> On Apr 7, 2020, at 12:24 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Hi all, 
> 
> I know there must be a simple way to do this but it is escaping me at the 
> moment. How can I move an object (grab me on mouseDown) and have it snap to a 
> grid (square on a board game) on mouseUp?
> 
> Thanks much,
> 
> Roger

___
use-livecode mailing list
use-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: Building a Board Game

2020-04-07 Thread Tore Nilsen via use-livecode
What I do is to make a grid of named rectangles (they may or may not be 
visible). I put the names of these into a variable or an array. On mouseUp I 
traverse the variabel/array to check if the mouseLoc is within any of the 
rectangles. When there is a match I set the loc of the grabbed control to the 
loc of the matching rectangle. 


Regards
Tore Nilsen
> 7. apr. 2020 kl. 21:24 skrev Roger Guay via use-livecode 
> :
> 
> Hi all, 
> 
> I know there must be a simple way to do this but it is escaping me at the 
> moment. How can I move an object (grab me on mouseDown) and have it snap to a 
> grid (square on a board game) on mouseUp?
> 
> Thanks much,
> 
> Roger
> ___
> use-livecode mailing list
> use-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: HilitedItem of a navbar

2020-04-07 Thread Ralph DiMola via use-livecode
Brian,

Thanks for getting that into the next release!
I will put in a pull request after the release for adding the iconFill property 
now that is does not change the default behavior. I know it's been asked and 
answered but... How do I get started to do a PR? If I could get this procedure 
nailed down I would like to try and address some of the simpler outstanding 
bugs/enhancements.

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 
Brian Milby via use-livecode
Sent: Tuesday, April 07, 2020 1:44 PM
To: How to use LiveCode
Cc: Brian Milby
Subject: RE: HilitedItem of a navbar

The PR is now merged into develop and will be in the next DP.  It only adds the 
option of selecting nothing but does not make it the default.  We could now 
work up a PR for the other piece, but I’m not sure about how that one works 
without downloading and testing (sounds like an option to hide the label on 
some of the items and shift the icon down).

Thanks,
Brian
On Apr 5, 2020, 9:41 AM -0400, Ralph DiMola via use-livecode 
, wrote:
> Matts,
> No problem brother. I shared this with the list on January 10th. I was warned 
> that changing default behaviors is a Bozo no no. Here it is again:
>
> I made 4 changes to the navbar widget.
>
> 1) The hiliteditem can be set to zero so no item is hilited
> 2) The default is no item hilited (hiliteditem = 0)
> 3) The inspector allows you to decrement the select item index to zero.
> 4) If the label of an item is a single space then the icon is centered 
> vertically. I will see how to add this feature more elegantly as a property.
>
> If you need any of these features the link to the lcb source file is 
> here ==> https://www.dropbox.com/s/3emxyjx487xp9j2/navbar.lcb?dl=0
> The compiled version is here ==> 
> https://www.dropbox.com/s/bp6bg2zjn5x9kks/navbar.zip?dl=0 rename the original 
> files in the bundle(mac) or program files(windows) to a save folder and move 
> these in.
>
> 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 Matthias Rebbe via use-livecode
> Sent: Sunday, April 05, 2020 4:56 AM
> To: How to use LiveCode
> Cc: Matthias Rebbe
> Subject: Re: HilitedItem of a navbar
>
> Hi Ralph,
>
> Iteould be really great, if you could share it not only with Jacque. 
> ;)
>
> I am also very interested in your version.
>
> Matthias
>
> Von meinem iPhone gesendet
>
> > Am 05.04.2020 um 00:08 schrieb Ralph DiMola via use-livecode 
> > :
> >
> > I have a version that will let you set it to zero and also if the 
> > label is a single space the icon will expand to the full height. I 
> > can send it to you is you like.
> >
> > Ralph DiMola
> > IT Director
> > Evergreen Information Services
> > rdim...@evergreeninfo.net
> >
> >
> > -Original Message-
> > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> > Behalf Of J. Landman Gay via use-livecode
> > Sent: Saturday, April 04, 2020 3:31 PM
> > To: LiveCode Mailing List
> > Cc: J. Landman Gay
> > Subject: HilitedItem of a navbar
> >
> > I can't set this to 0? I need to.
> >
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive 
> > Software | http://www.hyperactivesw.com
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription
> > preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-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:

Building a Board Game

2020-04-07 Thread Roger Guay via use-livecode
Hi all, 

I know there must be a simple way to do this but it is escaping me at the 
moment. How can I move an object (grab me on mouseDown) and have it snap to a 
grid (square on a board game) on mouseUp?

Thanks much,

Roger
___
use-livecode mailing list
use-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: Old Fossil seeks fast track assistance

2020-04-07 Thread Graham Samuel via use-livecode
Devin I am overdue to thank you for this. Up to now, apart from the numerous 
tasks involved in just keeping going, I have been looking at the functionality 
of my proposed app - I have already used some of your material on location 
tracking! However for the deployment side, your links are gold dust to me. 
Thanks so much.

Graham

> On 6 Apr 2020, at 16:55, Devin Asay via use-livecode 
>  wrote:
> 
> Graham,
> 
> I’ve just been through this gauntlet with my students. I provided some links 
> and lessons for them at http://livecode.byu.edu/mobile/test-deploy-links.php. 
> I found the process for setting up Android a little fraught with pitfalls, so 
> I created an expanded instruction sheet for Android setup, linked to that 
> page.
> 
> I’m staying with the latest Stable version of LiveCode for my class, 9.5.1. 
> I’m running on Mac OS 10.14 Mojave. With this setup I have to use Xcode 10.1.
> 
> As a refresher, on developer.apple.com, you need 
> to create your iOS developer certificate, register all of the UDIDs for your 
> iOS devices, then create a wildcard provisioning profile for testing your 
> apps. The provisioning profile must include all devices you want to test on.
> 
> A collection of links of instructions for distributing mobile apps: 
> http://livecode.byu.edu/mobile/mobileAppDistribution.php.
> 
> I hope this will all help jog your memory. I find mine needs to be jogged 
> every time I come back to this mobile stuff after a long time away.
> 
> Cheers,
> 
> Devin
> 
> 
> 
> On Apr 4, 2020, at 2:38 AM, Graham Samuel via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Hi All - sorry this is a bit long, but I need help.
> 
> I’m a long term LC developer who more or less retired from development a 
> couple of years ago, but I’ve kept on lurking in this list and trying rather 
> hopelessly to remain up to date. My experience has been mostly on desktop 
> apps, with a little iOS work. I haven’t ever done much on Android. I have 
> just about retained my credentials as an Apple developer.
> 
> Now I find I really want to develop a mobile app at speed, and deploy it.
> 
> I don’t anticipate all that much difficulty in creating my app in the sense 
> of designing and coding it - this can call on my own quite extensive 
> experience of the past, the LC documentation and this invaluable list. I can 
> reasonable hope to create a prototype in a few days. However there is a 
> massive gap: testing and deployment.
> 
> I don’t have access to my most recent development machine (it’s in another 
> country and I’m self-isolating), so I am working with an iMac that can only 
> run MacOS High Sierra (and Windows 10 via Parallels, but I was hoping not to 
> go there for this project). Now, I clearly need to organise the right version 
> of XCode and the right SDK for my iOS development, and I need to do the 
> equivalent thing for Android - and I don’t know how to do it.
> 
> For iOS, I THINK I need XCode 10.2, which I’m trying to download to replace 
> the copy of 9.2 already on my machine. I obviously need to work with a 
> compatible SDK. For Android, I don’t know where to start, so for now I am 
> putting this on the back burner, but I will have to return to it eventually. 
> Even when I’ve lined all this up (if indeed it’s feasible), I then need to 
> remind myself how to test via simulators (I used to be good at this, so maybe 
> that is not so scary, but I am not at all up to date) and then I need to get 
> the app onto real hardware - starting with iPhones, as I’ve got a few of 
> these. I really don’t know how to do this for testing, and more so I don’t 
> know how to distribute a test version to a small population of testers, 
> although I know this is feasible. The whole project may crash and burn at 
> this beta testing stage, so actually getting it into the App Store can wait a 
> bit.
> 
> Obviously I am not expecting people on this list to hold my hand at every 
> step. My main concern is to be guided through the body of LC notes etc to get 
> absolutely practical advice and recipes as to what to do at each stage. If I 
> study the LC stuff long enough, I will get there, but I would dearly love 
> help to fast-track it all.
> 
> Thanks
> 
> 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, 

Re: HilitedItem of a navbar

2020-04-07 Thread matthias rebbe via use-livecode
Thank you very much!

Matthias

> Am 05.04.2020 um 15:44 schrieb Ralph DiMola via use-livecode 
> :
> 
> Matts,
> No problem brother. I shared this with the list on January 10th. I was warned 
> that changing default behaviors is a Bozo no no. Here it is again:
> 
> I made 4 changes to the navbar widget.
> 
> 1) The hiliteditem can be set to zero so no item is hilited
> 2) The default is no item hilited (hiliteditem = 0)
> 3) The inspector allows you to decrement the select item index to zero.
> 4) If the label of an item is a single space then the icon is centered 
> vertically. I will see how to add this feature more elegantly as a property.
> 
> If you need any of these features the link to the lcb source file is here ==> 
> https://www.dropbox.com/s/3emxyjx487xp9j2/navbar.lcb?dl=0
> The compiled version is here ==> 
> https://www.dropbox.com/s/bp6bg2zjn5x9kks/navbar.zip?dl=0 rename the original 
> files in the bundle(mac) or program files(windows) to a save folder and move 
> these in.
> 
> 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 Matthias Rebbe via use-livecode
> Sent: Sunday, April 05, 2020 4:56 AM
> To: How to use LiveCode
> Cc: Matthias Rebbe
> Subject: Re: HilitedItem of a navbar
> 
> Hi Ralph,
> 
> Iteould be really great, if you could share it not only with Jacque. ;)
> 
> I am also very interested in your version. 
> 
> Matthias 
> 
> Von meinem iPhone gesendet
> 
>> Am 05.04.2020 um 00:08 schrieb Ralph DiMola via use-livecode 
>> :
>> 
>> I have a version that will let you set it to zero and also if the 
>> label is a single space the icon will expand to the full height. I can 
>> send it to you is you like.
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
>> Behalf Of J. Landman Gay via use-livecode
>> Sent: Saturday, April 04, 2020 3:31 PM
>> To: LiveCode Mailing List
>> Cc: J. Landman Gay
>> Subject: HilitedItem of a navbar
>> 
>> I can't set this to 0? I need to.
>> 
>> 
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-
Matthias Rebbe
Life Is Too Short For Boring Code


___
use-livecode mailing list
use-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: HilitedItem of a navbar

2020-04-07 Thread Ralph DiMola via use-livecode
I have changed my version to leave the selected it default to 1. This will not 
change the original behavior but allow you to set it to 0 by script or in the 
PI. Of course one can set it to zero in a preopencard handler so it initially 
displays with no item selected.
I added a property call iconFill that is defaulted to off so the widget will 
still retain the original behavior. If this property is set to true by script 
or ticked in the PI then the icon will fill the height of the widget if the 
label is set to empty. So...

1) The hiliteditem can be set to zero so no item is highlighted
2) The default hiliteditem has not been changed.
3) The PI allows you to decrement the select item index to zero.
4) If the label of an item is empty and the iconFill property is set to true 
then the icon is centered vertically and fills the height the same as when 
"icon only" is selected.

New version is available for evaluation at:
Source: https://www.dropbox.com/s/3emxyjx487xp9j2/navbar.lcb?dl=0
Compiled: https://www.dropbox.com/s/bp6bg2zjn5x9kks/navbar.zip?dl=0


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 
Brian Milby via use-livecode
Sent: Tuesday, April 07, 2020 1:44 PM
To: How to use LiveCode
Cc: Brian Milby
Subject: RE: HilitedItem of a navbar

The PR is now merged into develop and will be in the next DP.  It only adds the 
option of selecting nothing but does not make it the default.  We could now 
work up a PR for the other piece, but I’m not sure about how that one works 
without downloading and testing (sounds like an option to hide the label on 
some of the items and shift the icon down).

Thanks,
Brian
On Apr 5, 2020, 9:41 AM -0400, Ralph DiMola via use-livecode 
, wrote:
> Matts,
> No problem brother. I shared this with the list on January 10th. I was warned 
> that changing default behaviors is a Bozo no no. Here it is again:
>
> I made 4 changes to the navbar widget.
>
> 1) The hiliteditem can be set to zero so no item is hilited
> 2) The default is no item hilited (hiliteditem = 0)
> 3) The inspector allows you to decrement the select item index to zero.
> 4) If the label of an item is a single space then the icon is centered 
> vertically. I will see how to add this feature more elegantly as a property.
>
> If you need any of these features the link to the lcb source file is 
> here ==> https://www.dropbox.com/s/3emxyjx487xp9j2/navbar.lcb?dl=0
> The compiled version is here ==> 
> https://www.dropbox.com/s/bp6bg2zjn5x9kks/navbar.zip?dl=0 rename the original 
> files in the bundle(mac) or program files(windows) to a save folder and move 
> these in.
>
> 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 Matthias Rebbe via use-livecode
> Sent: Sunday, April 05, 2020 4:56 AM
> To: How to use LiveCode
> Cc: Matthias Rebbe
> Subject: Re: HilitedItem of a navbar
>
> Hi Ralph,
>
> Iteould be really great, if you could share it not only with Jacque. 
> ;)
>
> I am also very interested in your version.
>
> Matthias
>
> Von meinem iPhone gesendet
>
> > Am 05.04.2020 um 00:08 schrieb Ralph DiMola via use-livecode 
> > :
> >
> > I have a version that will let you set it to zero and also if the 
> > label is a single space the icon will expand to the full height. I 
> > can send it to you is you like.
> >
> > Ralph DiMola
> > IT Director
> > Evergreen Information Services
> > rdim...@evergreeninfo.net
> >
> >
> > -Original Message-
> > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> > Behalf Of J. Landman Gay via use-livecode
> > Sent: Saturday, April 04, 2020 3:31 PM
> > To: LiveCode Mailing List
> > Cc: J. Landman Gay
> > Subject: HilitedItem of a navbar
> >
> > I can't set this to 0? I need to.
> >
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive 
> > Software | http://www.hyperactivesw.com
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription
> > preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> 

RE: HilitedItem of a navbar

2020-04-07 Thread Brian Milby via use-livecode
The PR is now merged into develop and will be in the next DP.  It only adds the 
option of selecting nothing but does not make it the default.  We could now 
work up a PR for the other piece, but I’m not sure about how that one works 
without downloading and testing (sounds like an option to hide the label on 
some of the items and shift the icon down).

Thanks,
Brian
On Apr 5, 2020, 9:41 AM -0400, Ralph DiMola via use-livecode 
, wrote:
> Matts,
> No problem brother. I shared this with the list on January 10th. I was warned 
> that changing default behaviors is a Bozo no no. Here it is again:
>
> I made 4 changes to the navbar widget.
>
> 1) The hiliteditem can be set to zero so no item is hilited
> 2) The default is no item hilited (hiliteditem = 0)
> 3) The inspector allows you to decrement the select item index to zero.
> 4) If the label of an item is a single space then the icon is centered 
> vertically. I will see how to add this feature more elegantly as a property.
>
> If you need any of these features the link to the lcb source file is here ==> 
> https://www.dropbox.com/s/3emxyjx487xp9j2/navbar.lcb?dl=0
> The compiled version is here ==> 
> https://www.dropbox.com/s/bp6bg2zjn5x9kks/navbar.zip?dl=0 rename the original 
> files in the bundle(mac) or program files(windows) to a save folder and move 
> these in.
>
> 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 Matthias Rebbe via use-livecode
> Sent: Sunday, April 05, 2020 4:56 AM
> To: How to use LiveCode
> Cc: Matthias Rebbe
> Subject: Re: HilitedItem of a navbar
>
> Hi Ralph,
>
> Iteould be really great, if you could share it not only with Jacque. ;)
>
> I am also very interested in your version.
>
> Matthias
>
> Von meinem iPhone gesendet
>
> > Am 05.04.2020 um 00:08 schrieb Ralph DiMola via use-livecode 
> > :
> >
> > I have a version that will let you set it to zero and also if the
> > label is a single space the icon will expand to the full height. I can
> > send it to you is you like.
> >
> > Ralph DiMola
> > IT Director
> > Evergreen Information Services
> > rdim...@evergreeninfo.net
> >
> >
> > -Original Message-
> > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
> > Behalf Of J. Landman Gay via use-livecode
> > Sent: Saturday, April 04, 2020 3:31 PM
> > To: LiveCode Mailing List
> > Cc: J. Landman Gay
> > Subject: HilitedItem of a navbar
> >
> > I can't set this to 0? I need to.
> >
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software | http://www.hyperactivesw.com
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription
> > preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-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-07 Thread Bob Sneidar via use-livecode
Richard, I can verify that my mainStack is pretty big in terms of objects and 
code. When I create a standalone for Windows however, it breaks out all the 
substacks into individual stacks, and the saving just the mainStack in a 
Windows standalone still takes longer than saving the entire Mainstack with 
Substacks on the Mac. 

As a countermeasure, I suppose I can work on getting all the scripts I can 
moved into script only behaviors. I still make extensive use of Datagrids 
however which have a lot of objects. Most of my substacks have multiple grids 
and the main stack has 7. 

I will also say that I have seen a considerable speed difference between Mac 
and Windows when expanding a fairly large zip file contains lots of individual 
files and folders (copier firmware to be exact), so I do not thing the issue is 
with the LC engine, or at least not entirely. It’s so prevalent that I don’t 
even use windows to expand these files anymore. 

Bob S


> > Yes we see this. But as you know in 2018 I reported this slow saving
> > of stacks under Windows10, using LC timing of just the save handler
> > rather than the visual perception of the screen update, and it has
> > been confirmed as a bug.  bug 21305  > /show_bug.cgi?id=21305> The time to save is extreme for large stacks.
> > It took some time for QualityControl to confirm, because apparently
> > it doesn’t seem happen on every Windows 10 installation - just every
> > one  that I or my users have tried. It has not been fixed since 2018.
> 
> Thank you for the link to that report, Nevile.  While I have been a 
> subscriber to it I also follow many reports, so your link is very helpful.
> 
> I was eager to run the test stack there, but discovered there isn't one.  I 
> don't mind creating one, but it would be helpful to know what's required.
> 
> Have you seen any difference between a stack with little content but a large 
> number of objects vs one with a small number of objects but a lot of text or 
> images?
> 
> Once I can reproduce the test, I'll modify it to isolate the time devoted to 
> stack files separately from other file I/O for equivalently-sized files.
> 
> -- 
> 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

___
use-livecode mailing list
use-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-07 Thread Richard Gaskin via use-livecode

Neville Smythe wrote:
> Richard wrote
>> Bob Sneidar wrote:
>>
>>> In review, I tested saving stacks on a standalone Windows
>>> Workstation, a VMWARE VM on a very robust server host, a
>>> Parallels VM on a workstation and my Mac. As I am saving
>>> the stack, I am watching the folder the stack is in. I see
>>> the tilde version pop up and go away. On Mac it?s almost
>>> instantaneous. On Windows it can be 3 to 4 seconds.
>>
>> My messages don't seem to be getting through, because each time this
>> observation method of measuring write throughput comes up I post the
>> same reply, yet it keeps coming up.  Please confirm if you can see
>> this:
>
> Yes we see this. But as you know in 2018 I reported this slow saving
> of stacks under Windows10, using LC timing of just the save handler
> rather than the visual perception of the screen update, and it has
> been confirmed as a bug.  bug 21305  /show_bug.cgi?id=21305> The time to save is extreme for large stacks.
> It took some time for QualityControl to confirm, because apparently
> it doesn’t seem happen on every Windows 10 installation - just every
> one  that I or my users have tried. It has not been fixed since 2018.

Thank you for the link to that report, Nevile.  While I have been a 
subscriber to it I also follow many reports, so your link is very helpful.


I was eager to run the test stack there, but discovered there isn't one. 
 I don't mind creating one, but it would be helpful to know what's 
required.


Have you seen any difference between a stack with little content but a 
large number of objects vs one with a small number of objects but a lot 
of text or images?


Once I can reproduce the test, I'll modify it to isolate the time 
devoted to stack files separately from other file I/O for 
equivalently-sized files.


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

2020-04-07 Thread Ben Rubinstein via use-livecode
What a beautiful view you have! Interesting that Google Maps doesn't accept 
what3words yet - possibly viewed as a competitor.


On 04/04/2020 01:49, Alex Tweedly via use-livecode wrote:
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


Re: Getting started with geographical coordinates

2020-04-07 Thread Graham Samuel via use-livecode
Thanks for everyone who has helped with this so far. I have now looked at and 
tested LC scripts for three different functions for finding the distance - I 
left one well-known one out (Vincenty) as it’s very complex (it even includes 
iteration) and I think not justified by what I’m trying to do. As I’m concerned 
with relatively small distances (up to a few kilometres), I can include a 
Pythagoras calculation (officially called "Equirectangular approximation”), 
which doesn’t take account of the curvature of the Earth. My tests have 
involved real coordinates of places I’ve visited, so can be verified using 
local maps etc.

What I have found is that the different methods are all good for my purposes, 
but for me the very simple Pythagoras calculation which involves only two maths 
functions, gives results which are consistently less than one percent different 
from the far more complex Haversine and even Vincenty calculations. 
Incidentally I get differences in Haversine between my implementation (based on 
Ralph’s, thanks) and Chris Veness’s (movable-type)  Javascript version - I’m 
pretty sure this is due to differences in precision in the underlying maths 
functions, but I don’t plan to look any further into that!

Just FYI, here’s the Pythagoras method. The inputs are assumed to be numerical 
GPS-style coordinates, which is what one gets from interrogating a GPS-aware 
device in LC. The result is in kilometres.

constant R=6371 -- the radius of the earth in kilometres
constant k1 = 0.01745329 -- that's pi/180

function distancePythag lat1,lon1,lat2,lon2
-- Calculate Distance between to points using Equirectangular approximation
-- Assuming a (local) flat surface, using Pythagoras. Won't work when Earth's 
curvature is significant
   local x,y
   put k1*lat1 into lat1
   put k1*lat2 into lat2
   put k1*lon1 into lon1
   put k1*lon2 into lon2
   put (lon2-lon1) * cos((lat1+lat2)/2) into x
   put (lat2 - lat1) into y
   return sqrt(x*x+y*y)*R
end distancePythag

Graham


> On 5 Apr 2020, at 22:03, Graham Samuel via use-livecode 
>  wrote:
> 
> I’ve been trying these formulae out, and I’ve been using the info on 
> https://www.movable-type.co.uk/scripts/latlong.html - for my purposes 
> (distances from say 100 metres to up to a few kilometers) I think this works 
> as well as haversine, but maybe not for every kind of measurement. The 
> function gives a result in kilometres starting from coordinates in degrees. 
> Seems to work, but I need to do a bit more work on the (real) ground to 
> convince myself.
> 
> function distanceslc lat1,lon1,lat2,lon2
> 
> constant k1 = 0.017453 -- that's pi/180
> 
> -- This implements the spherical law of cosines, from movable-type.co.uk. 
> Confirmed with his javascript version
> 
> return acos(sin(lat1*k1) * sin(lat2*k1) + 
> cos(lat1*k1)*cos(lat2*k1)*cos(lon2*k1-lon1*k1))*6371
> 
> end distanceslc
> 
> 
> Graham
> 
>> On 4 Apr 2020, at 16:47, Ralph DiMola via use-livecode 
>>  wrote:
>> 
>> A friend of mine turned me on to this 10 years ago. This is the Haversine
>> formula. It assumes that the earth is sphere and is not very accurate for
>> very small distances. I have not tried to use the Vincenty's formula that
>> does better. For general purposes the HF should be sufficient.
>> 
>> Just give me the credit for LC implementation of a friends of mines routine.
>> Although I understand how it works the real credit goes to Don Josef de
>> Mendoza y Rios in 1796.
>> 
>> The girls and boys doing math in that period really set the stage. This
>> brought me back to my CGI days when I was patting myself on the back when I
>> self learned(with a friends help after reading the Kreyszig) how to move
>> points in space and calculate lighting.  I then self reflected and realized
>> that I was just putting together the pieces of math that these folks created
>> out of thin air. I still felt like I accomplished something but very much
>> smaller the scheme of things.
>> 
>> 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