Re: BasicGeoLib_v100

2019-09-12 Thread William Prothero via use-livecode
Nice contribution. 
Thanks!
Bill

> On Sep 12, 2019, at 1:16 PM, hh via use-livecode 
>  wrote:
> 
> Some specialists may be interested in the following, please report if you 
> have any problem with the stack.
> 
> BasicGeoLib is a collection of very basic functions for using geoPoints.
> 


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


LC Server UT08 Encode Error

2019-09-12 Thread Rick Harrison via use-livecode
I am having a problem with LC Server
posting data to my Postgresql database.
(LC Server version 9.0.4)

If I type into a form field such as for
a field named “description”, and submit
the field, it goes into the database without
any problems whatsoever.

If I compose a description in an application
such as Apple’s Pages or in Text Edit, and
then copy and paste the text into the
description field.  It throws an error.

ERROR: invalid byte sequence for
encoding "UTF8": 0xca 0x59 (0)

Of course due to this error the
record never gets written out to
the database.

I know this error is due to gremlins
in the text because if I zap gremlins 
with BBEdit and then copy and
paste into the field, everything
works fine!

I’m sure that other users will
probably use a copy and paste
method at some point, so I need
to scrub the data somehow to
prevent the error from occurring.

Or is this an encoding/decoding
problem requiring some other
solution?

Suggestions?

Rick
___
use-livecode mailing list
use-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: Browser selections

2019-09-12 Thread hh via use-livecode
Perhaps you wish to select the text (not getting the selected text
what is more difficult) of a textarea with id='j1" then you can do:

on mouseUp
   put 10 into selStart; put 20 into selEnd
   do "document.getElementById('j1')." & \
   "setSelectionRange("& selStart,selEnd &");" in widget "browser"
end mouseUp

p.s. My 'native' HTML5 field works also in a browser widget (it's more
difficult to realize because the widget has not as much features
available as a browser). I have it ready soon, may be in a few days.

___
use-livecode mailing list
use-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: Browser selections

2019-09-12 Thread J. Landman Gay via use-livecode

On 9/12/19 5:01 PM, hh via use-livecode wrote:

JLG wrote:
Is there a way select text by script in a browser widget? I thought I'd
done that before but I don't see a command for it now.



You certainly didn't that without javascript.

Here is a demostack that shows how to do that, only a few lines are
needed for using a javascriptHandler:

http://forums.livecode.com/viewtopic.php?p=174936#p174936


Thanks Hermann. I may have been thinking of a native field, it was a 
long time ago. I'll take a look at your example.


--
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: Browser selections

2019-09-12 Thread hh via use-livecode
> JLG wrote:
> Is there a way select text by script in a browser widget? I thought I'd 
> done that before but I don't see a command for it now.


You certainly didn't that without javascript.

Here is a demostack that shows how to do that, only a few lines are
needed for using a javascriptHandler:

http://forums.livecode.com/viewtopic.php?p=174936#p174936



___
use-livecode mailing list
use-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: BasicGeoLib_v100

2019-09-12 Thread Mark Talluto via use-livecode
Thank for this. :)


Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.com 


> On Sep 12, 2019, at 1:16 PM, hh via use-livecode 
>  wrote:
> 
> Some specialists may be interested in the following, please report if you 
> have any problem with the stack.
> 
> BasicGeoLib is a collection of very basic functions for using geoPoints.
> 
> The points have to be in the format: longitude,latitude in that order,
> as decimal numbers, as in GeoJSON, NOT in Google.
> That is the first item (longitude) is a decimal in range -180 to 180,
> the second item (latitude) is a decimal in range -90 to 90.
> And the third item is, if needed, a time in seconds (not an elevation
> value).
> 
> Credits: Two core functions are based on the js-lib
> ## https://github.com/manuelbieh/geolib (MIT licensed)
> and ported to LiveCode.
> 
> Supported functions (all in group "geoAction", rightClick an action
> button to edit the script):
> 
> * getDistance(point1,point2)
> * getSpeed(point1,startSecs,point2,endSecs)
> * isPointWithinRadius(centerPoint,radius,listOfPoints)
> * orderByDistance(toPoint,fromList)
> * getDistanceFromLine(point1,point2,fromList)
> * getBoundsAndLoc(linesOfPoints)
> * getPathLength(linesOfPoints)
> * sexagesimalToDecimal(linesOfPoints)
> * decimalToSexagesimal(linesOfPoints)
> 
> I found no time to prepare the stack as library, please just copy the
> functions you need or make your own library.
> 
> 
> ___
> use-livecode mailing list
> use-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


Browser selections

2019-09-12 Thread J. Landman Gay via use-livecode
Is there a way select text by script in a browser widget? I thought I'd 
done that before but I don't see a command for it now.


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

2019-09-12 Thread hh via use-livecode
Forgot the link.
BasicGeoLib is available on "SampleStacks" or here:

http://livecodeshare.runrev.com/stack/949/basicGeoLib

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


BasicGeoLib_v100

2019-09-12 Thread hh via use-livecode
Some specialists may be interested in the following, please report if you have 
any problem with the stack.

BasicGeoLib is a collection of very basic functions for using geoPoints.

The points have to be in the format: longitude,latitude in that order,
as decimal numbers, as in GeoJSON, NOT in Google.
That is the first item (longitude) is a decimal in range -180 to 180,
the second item (latitude) is a decimal in range -90 to 90.
And the third item is, if needed, a time in seconds (not an elevation
value).

Credits: Two core functions are based on the js-lib
## https://github.com/manuelbieh/geolib (MIT licensed)
and ported to LiveCode.

Supported functions (all in group "geoAction", rightClick an action
button to edit the script):

* getDistance(point1,point2)
* getSpeed(point1,startSecs,point2,endSecs)
* isPointWithinRadius(centerPoint,radius,listOfPoints)
* orderByDistance(toPoint,fromList)
* getDistanceFromLine(point1,point2,fromList)
* getBoundsAndLoc(linesOfPoints)
* getPathLength(linesOfPoints)
* sexagesimalToDecimal(linesOfPoints)
* decimalToSexagesimal(linesOfPoints)

I found no time to prepare the stack as library, please just copy the
functions you need or make your own library.


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


Re: OT: Catalina - the end of ad hoc & in-house development?

2019-09-12 Thread JB via use-livecode
I am still on macOS 10.11.6  so I don’t know much about what
is happening but I was wondering if you transferred the file with
a secure connection like CyberDuck does the download bit get
changed?  Another question that might be a work around is if
you zip the file and then zip the zip of that file does it change
the download bit?

JB

> On Sep 12, 2019, at 1:19 AM, Phil Jimmieson via use-livecode 
>  wrote:
> 
> From experiments that I’ve done, it’s the downloading bit which flags an App 
> as needing special treatment by the OS. If you build it and transfer it via a 
> USB stick (or CD), then it’s ok. It’s when you download it - either as the 
> app itself, or as a zipped version. I think the zip file is flagged as 
> potentially dangerous, and when unzipped, it’s contents similarly flagged. If 
> you share it via a shared Dropbox folder, that also works (but not 
> downloading it from a Dropbox link).
> 
> 
>> On 12 Sep 2019, at 08:26, Richmond via use-livecode 
>>  wrote:
>> 
>> I wonder if downloading-qua-downloading is the problem?
>> 
>> Possibly downloading some sort of compressed file (.zip, .7zx, other type) 
>> and
>> then decompressing it on the target machine will allow installation?
>> 
>> Richmond.
>> 
>> On 12.09.19 8:05, Rick Harrison via use-livecode wrote:
>>> That behavior does not sound any different from
>>> what we have experienced in older versions of
>>> macOS such as High Sierra.  Perhaps it won’t
>>> get worse until later versions of Catalina?
>>> 
>>> Thanks for the test Marty!
>>> 
>>> Rick
>>> 
 On Sep 11, 2019, at 8:43 PM, Marty Knapp via use-livecode 
  wrote:
 
 Just tried my previous tests with non-signed, non-notarized apps with the 
 Catalina beta 8 (just released today) with the same result as beta 7. I 
 also  zipped an app, transferred it to the Catalina machine via thumb 
 drive, then unzipped and ran without complaint or warning. So it would 
 appear that  downloaded apps are what triggers the warning.
 
 Marty
>>> ___
>>> use-livecode mailing list
>>> use-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
> 
> --
> Phil Jimmieson  p...@liverpool.ac.uk  (UK) 0151 795 4236  (Mobile) 07976 
> 983164
> Computer Science Dept., Liverpool University, Ashton Building, Ashton Street
> Liverpool L69 3BX  http://intranet.csc.liv.ac.uk/~phil/
> I used to sit on a special medical board... ...but now I use this ointment.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: OT: Catalina - the end of ad hoc & in-house development?

2019-09-12 Thread Keith Martin via use-livecode

On 11 Sep 2019, at 16:21, Dar Scott Consulting via use-livecode wrote:

At one time one could get past OSs, but I don't think it is the case 
now


If a past OS has been downloaded through one's standard Mac/me/iCloud 
account in the past it can be downloaded and installed again. It can 
also be downloaded to install on a different Mac or to archive the 
installer yourself, although this takes a tiny bit of hoop-jumping as it 
is set up to 'download-run-install' with minimal user management 
required.


k

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


Re: OT: Catalina - the end of ad hoc & in-house development?

2019-09-12 Thread Phil Jimmieson via use-livecode
From experiments that I’ve done, it’s the downloading bit which flags an App as 
needing special treatment by the OS. If you build it and transfer it via a USB 
stick (or CD), then it’s ok. It’s when you download it - either as the app 
itself, or as a zipped version. I think the zip file is flagged as potentially 
dangerous, and when unzipped, it’s contents similarly flagged. If you share it 
via a shared Dropbox folder, that also works (but not downloading it from a 
Dropbox link).


> On 12 Sep 2019, at 08:26, Richmond via use-livecode 
>  wrote:
> 
> I wonder if downloading-qua-downloading is the problem?
> 
> Possibly downloading some sort of compressed file (.zip, .7zx, other type) and
> then decompressing it on the target machine will allow installation?
> 
> Richmond.
> 
> On 12.09.19 8:05, Rick Harrison via use-livecode wrote:
>> That behavior does not sound any different from
>> what we have experienced in older versions of
>> macOS such as High Sierra.  Perhaps it won’t
>> get worse until later versions of Catalina?
>> 
>> Thanks for the test Marty!
>> 
>> Rick
>> 
>>> On Sep 11, 2019, at 8:43 PM, Marty Knapp via use-livecode 
>>>  wrote:
>>> 
>>> Just tried my previous tests with non-signed, non-notarized apps with the 
>>> Catalina beta 8 (just released today) with the same result as beta 7. I 
>>> also  zipped an app, transferred it to the Catalina machine via thumb 
>>> drive, then unzipped and ran without complaint or warning. So it would 
>>> appear that  downloaded apps are what triggers the warning.
>>> 
>>> Marty
>> ___
>> use-livecode mailing list
>> use-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

--
Phil Jimmieson  p...@liverpool.ac.uk  (UK) 0151 795 4236  (Mobile) 07976 983164
Computer Science Dept., Liverpool University, Ashton Building, Ashton Street
Liverpool L69 3BX  http://intranet.csc.liv.ac.uk/~phil/
I used to sit on a special medical board... ...but now I use this ointment.


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


Re: OT: Catalina - the end of ad hoc & in-house development?

2019-09-12 Thread Richmond via use-livecode

I wonder if downloading-qua-downloading is the problem?

Possibly downloading some sort of compressed file (.zip, .7zx, other 
type) and

then decompressing it on the target machine will allow installation?

Richmond.

On 12.09.19 8:05, Rick Harrison via use-livecode wrote:

That behavior does not sound any different from
what we have experienced in older versions of
macOS such as High Sierra.  Perhaps it won’t
get worse until later versions of Catalina?

Thanks for the test Marty!

Rick


On Sep 11, 2019, at 8:43 PM, Marty Knapp via use-livecode 
 wrote:

Just tried my previous tests with non-signed, non-notarized apps with the 
Catalina beta 8 (just released today) with the same result as beta 7. I also  
zipped an app, transferred it to the Catalina machine via thumb drive, then 
unzipped and ran without complaint or warning. So it would appear that  
downloaded apps are what triggers the warning.

Marty

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



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


Re: OT: Catalina - the end of ad hoc & in-house development?

2019-09-12 Thread Richmond via use-livecode

That sounds as if "things" are possible.
I have run off a very simple standalone (one card, one button, one field)
and uploaded it to Dropbox, and would be most grateful if you can try to 
get it to run.


https://www.dropbox.com/s/518kxvml2si3xic/ISLAND.zip?dl=0

I am currently running Mojave as am a bit reluctant to dive into the 
water round

the island just yet.

Richmond.

On 12.09.19 3:13, Marty Knapp via use-livecode wrote:

I just tried 2 apps that I built in LC 9.5 business. I have Catalina beta 7 
installed. Neither app was code signed or notarized. I moved the apps to that 
machine via a thumb drive and did not zip compress either one. They both 
launched on Catalina beta without complaint.

Next I zipped one of the apps and uploaded to my server and then downloaded it 
to the Catalina beta. This time when I tried to open, I got the message that it 
could not be opened because its integrity couldn’t be verified. The only 
options were “Move to trash” or “cancel”

I then right clicked and chose Open and again got the warning about not being 
able to verify but now had an additional option to open, which it did. I quit 
and opened again - this time with no warnings or trouble.

I did just get a notice that beta 8 is available. Will test when I get it 
installed.

Marty


On Sep 11, 2019, at 11:07 AM, Richmond via use-livecode 
 wrote:

The most telling test is if anyone who has a Catalina beta installed runs off a 
Macintosh
standalone and sees if they can run it themselves: wether from the Open Source 
version or
one of the commercial versions.

Richmond.

On 11.09.19 18:21, Dar Scott Consulting via use-livecode wrote:

Keeping a clear look at things... That $100/yr does include "beta OS releases, 
advanced app capabilities, technical support, and tools to develop, test, and distribute 
apps." At one time one could get past OSs, but I don't think it is the case now. And 
you could go down to the test warehouse and test on old machines.

On the Windows side, I have used MSDN Universal ($2200/yr) and MSDN Operating 
Systems ($700/yr) in the past. The latter might be comparable to the Apple 
Developer membership. Well, it was when you could get past OSes from Apple.

I have seen ads for codesigning certs that work for both Apple and Windows. I 
don't know what that means. And I don't know why the fees for 2nd and 3rd years 
are so high.

Dar

Senior Consultant
Dar Scott Consulting

Mad Scientist
darzLab


On Sep 11, 2019, at 2:38 AM, JJS via use-livecode 
 wrote:

The ratio of money asked from devs is also of course: (considered mobile)

Mobile Operating SystemsPercentage Market Share
Mobile Operating System Market Share Worldwide - August 2019
Android 76.23%
iOS 22.17%
KaiOS   0.59%
Unknown 0.26%
Samsung 0.21%
Windows 0.2%

So apple iOs is somewhat increasing this year, in 2018 it was 15% worldwide.

Apple asks 100$ yearly --iOs/ (and macOS)

Google ask 25$ one time fee -- Android

Amazon is FREE ! (for the time being) -- Kindle which is just Android

You can also use other platforms for free like Fdroid

Beats me why Apple charges so much yearly while the gain i think is to lower 
that cost as they earn money from your sales anyway.

Is there an alternative platform for iOs/macOs ?


Op 11-9-2019 om 07:57 schreef Peter Reid via use-livecode:

I've been reading the responses to my original posting with interest. My 
thoughts are as follows:

1. Matthias Rebbe's tutorial and helper stack seem to be excellent and appear 
to be the best way of complying with Apple's requirements, for now. Let's hope 
that Matthias can maintain this as Apple move the goalposts over time! If 
Matthias is unable to sustain these aids I'd hope that the LC mothership would 
adopt them.

2. A lot of the apps I develop are used by immediate friends and family (and a 
tiny circle of customers). They are private developments for use in closed 
communities. Apple have no right to be involved in these and the extended 
development cycle caused by their involvement is just unnecessary pain.

3. If Apple's measures really did provide bullet-proof protection the pain 
could be justified given the gain. However we know that this protection process 
is continuous and it becomes more and more onerous over time whilst still 
providing partial protection for a limited time.

4. If the Apple measures were a simple switchable setting I could switch them 
off whilst I check the user experience for a new user. Then I could switch the 
features back on to see the fully Apple-ised experience. As it is now, using 
the current Catalina beta on my development Mac, I see no blocking or warnings. 
So I've no way of testing the user experience on my development Mac. I have to 
find another Mac to act as my newbie user. Even then if such a Mac has been a 
previous newbie, how do you neutralise it to relive the newbie experience?

5. The $100 charge each year is inexcusable. Basically Apple are saying