Re: how do I get geoLocation on a Mac?

2021-03-01 Thread Paul Hibbert via use-livecode
I’m no Javascript expert, so I can’t answer the question about the error, but 
my best guess is that code needs to be run within a browser. 

However, considering that you need to be connected to the internet to access 
your geolocation on desktop, if you sign up for a free API with 
https://ipgeolocation.io (for unto 30K non commercial Requests Per Month), then 
it’s pretty easy to parse the Lat/Long from the returned data with a couple of 
lines of of simple code, e.g.

   put url(https://api.ipgeolocation.io/ipgeo?apiKey=) into tResult 
-- Replace  with your unique key

   put item 12 of tResult && item 13 of tResult into tGeoLocation

The result = "latitude":"50.12345" "longitude":"-125.67890”

It’s not quite as accurate as GPS, but it’s close, plus you have the advantage 
of lots more data returned should you need it and no messing with Javascript.

Paul



> On 1Mar, 2021, at 10:34 AM, kee nethery via use-livecode 
>  wrote:
> 
> How do I get latitude & longitude within a macOS LiveCode script?
> 
> ———   
> 
> I know iOS has a way to tell you latitude & longitude. It appears that 
> capability is not available on macOS.
> 
> I know that macOS browsers, with WiFi on and connected, can determine 
> lat/long with a javascript command. At this URL:
>   https://www.w3schools.com/html/html5_geolocation.asp
> I found this example:
> 
> 
> var x = document.getElementById("demo");
> function getLocation() {
>  if (navigator.geolocation) {
>navigator.geolocation.getCurrentPosition(showPosition);
>  } else {
>x.innerHTML = "Geolocation is not supported by this browser.";
>  }
> }
> 
> function showPosition(position) {
>  x.innerHTML = "Latitude: " + position.coords.latitude + 
>  "
Longitude: " + position.coords.longitude; > } > > > > I know that macOS can: > do

Re: Version 1.2 of the mail stack

2021-03-01 Thread matthias rebbe via use-livecode
Hi Rick,

if i recall it correctly i used the templatefield for that in LC server.

So set the text of the templatefield and then use that in the 
mimeEncodeFieldAsMIMEMultipartDocument.

e.g.
put "test" into the templatefield
put mimeEncodeFieldAsMIMEMultipartDocument(the long id of the templatefield) 
into tBody


LC Server does not include the Mime library, so you'll need to copy the 
complete Mime library script to your web server and include it in your script.

It's late here and i am off for some sleep now. So do not wonder when i reply 
later.

-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 02.03.2021 um 00:33 schrieb Rick Harrison via use-livecode 
> :
> 
> Hi Matthias,
> 
> I tried it out and the stack works fine.
> 
> Now I am in the process of trying to convert it
> so I can use the process directly in my LC Server.
> 
> Of course field values now become variable values.
> 
> Everything seems fine except:
> 
> put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field 
> "email_message") into tBody
> 
> How do I get he long id of my VariableEmailMessage into tBody?
> 
> Ideas?
> 
> Rick
> 
> 
>> On Mar 1, 2021, at 12:38 PM, matthias rebbe via use-livecode 
>>  wrote:
>> 
>> Rick,
>> 
>> do you mean the stack lcMailAndFtp.livecode?
>> 
>> The original stack was created by Charles Warwick, the developer of the 
>> tsNet externals.
>> If i remember correctly, i added the FTP part or so and put that modified 
>> stack as lcMailAndFtp.livecode online.
>> 
>> You could look here for a newer version (1.2) of Charles mail sample stack.
>> https://www.techstrategies.com.au/tsnet-resources/
>> 
>> Although the version 1.2 of the mail stack is more current then the one from 
>> my site, it still is a little bit "outdated".
>> There is a new command in LC available called mimeEncodeAsMIMEEmail which 
>> would make some of the code in the sample stack obsolete if it would be 
>> used. But the sample stack from Techstrategies should still work.
>> 
> 
> ___
> 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


Version 1.2 of the mail stack

2021-03-01 Thread Rick Harrison via use-livecode
Hi Matthias,

I tried it out and the stack works fine.

Now I am in the process of trying to convert it
so I can use the process directly in my LC Server.

Of course field values now become variable values.

Everything seems fine except:

put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field 
"email_message") into tBody

How do I get he long id of my VariableEmailMessage into tBody?

Ideas?

Rick


> On Mar 1, 2021, at 12:38 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Rick,
> 
> do you mean the stack lcMailAndFtp.livecode?
> 
> The original stack was created by Charles Warwick, the developer of the tsNet 
> externals.
> If i remember correctly, i added the FTP part or so and put that modified 
> stack as lcMailAndFtp.livecode online.
> 
> You could look here for a newer version (1.2) of Charles mail sample stack.
> https://www.techstrategies.com.au/tsnet-resources/
> 
> Although the version 1.2 of the mail stack is more current then the one from 
> my site, it still is a little bit "outdated".
> There is a new command in LC available called mimeEncodeAsMIMEEmail which 
> would make some of the code in the sample stack obsolete if it would be used. 
> But the sample stack from Techstrategies should still work.
> 

___
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: S3 API vs AWS

2021-03-01 Thread Tom Glod via use-livecode
Hi Mark,

I appreciate your interest in this.
I agree that it would be interesting to have minio directly inside LC via
widgets,
What advantage would there be to that vs updating the aws library to work?
Interested to hear your thoughts.

Thanks,

Tom


On Sun, Feb 28, 2021 at 1:35 PM Mark Clark via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Since I posted the enhancement request for a non-AWS S3 endpoint, thought
> I might chime in a bit on S3. I worked with AB and Harsha (founders of
> Minio) in a past life when they were at Gluster (acquired by RedHat) and I
> was at a company called Compellent (acquired by DELL). Knowing those two I
> believed their notion of a developer-centric open source object store was a
> winning idea.
>
> Kevin and everyone at LiveCode get a *lot* of people pulling at them for
> attention. I’m in awe of their ability to do so much with relatively few
> resources. Back in 2016 they were tremendously busy, which is still true
> for 2021:)
>
> Currently I use Minio in a production environment and since LiveCode
> doesn’t natively support it, I wrote a simple server back end to handle
> client requests that require object. LiveCode is not what we use to build
> our products, but it sure has come in handy for prototyping our UI and
> doing IT style apps in the back office.
>
> In retrospect I should have banged the drums with the whole community and
> pushed this idea of putting some money behind the request. But those darn
> day jobs get in the way, sometimes.
>
> Minio + LC = Goodness, even if you have to use shell and mc under the
> hood:)
>
> Mark
>
> From: Mark Clark 
> Subject: 500 Dollar Pledge: Livecode plus S3 API (object storage)
> Date: May 26, 2016 at 9:33:30 AM CDT
> To: Kevin Miller 
>
> Sorry if this is seemingly off topic to LiveCode, but it does help
> illustrate cloud storage opportunities for LC with the planned/eventual
> improved networking. Minio libraries are FOSS drop in replacements for S3
> so no issues for LC in paid or open source versions. Files must go to
> object to overcome limits of RAID and filesystems, so how amazing would it
> be for LiveCode to include s3 (which for better or worse is now the defacto
> standard for object storage) native commands for getting and putting data
> to the cloud? LC is a perfect visual means of tying together various
> complicated sub-systems to generate a new generation of rich GUI web apps.
>
>
> https://blog.minio.io/object-storage-in-practice-creating-a-reliable-data-store-9b424a22e8e#.5nyuf9by9
> <
> https://blog.minio.io/object-storage-in-practice-creating-a-reliable-data-store-9b424a22e8e#.5nyuf9by9
> >
>
> I have been happy to support each campaign along the way and will continue
> to believe in your vision for LiveCode. But I sometimes wonder if failing
> to support or at least post a vision for cloud scale data storage for app
> developers is a bit similar to not putting a network piece into Hypercard.
> Would you consider a campaign of say 10k to support a set of minio widgets
> for LiveCode? I would happily pay $500.00 towards such a project if you
> felt it worthwhile to put forward.
>
> Minio has three main components: a client and client libraries for
> accessing objects via S3; a single instance micro server for S3 (how cool
> if this were placed with LiveCode Server); and an XL version (still under
> heavy dev) which is a fully distributed and erasure encoded object storage
> server.
>
>
> Respectfully,
>
> Mark Clark
>
> >
> ___
> 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: Parsing properties in Link- and Internet Shortcut files

2021-03-01 Thread Rick Harrison via use-livecode
Hi Matthias,

Yes, I meant lcMailAndFtp.livecode.

I’m looking at https://www.techstrategies.com.au/tsnet-resources/ 
 now.

I’ll get back to you later after absorbing what I can understand.

Thanks!

Rick



> On Mar 1, 2021, at 12:38 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Rick,
> 
> do you mean the stack lcMailAndFtp.livecode?
> 
> The original stack was created by Charles Warwick, the developer of the tsNet 
> externals.
> If i remember correctly, i added the FTP part or so and put that modified 
> stack as lcMailAndFtp.livecode online.
> 
> You could look here for a newer version (1.2) of Charles mail sample stack.
> https://www.techstrategies.com.au/tsnet-resources/
> 
> Although the version 1.2 of the mail stack is more current then the one from 
> my site, it still is a little bit "outdated".
> There is a new command in LC available called mimeEncodeAsMIMEEmail which 
> would make some of the code in the sample stack obsolete if it would be used. 
> But the sample stack from Techstrategies should still work.
> 
> If you still have problems you can contact me also directly at   matthias 
> (at) m-r-d.de
> 
> Regards,
> 
> Matthias
> 
>> Am 01.03.2021 um 17:49 schrieb Rick Harrison via use-livecode 
>> :
>> 
>> Hi Matthias,
>> 
>> I ran into your send email stack with TSNet
>> yesterday while looking for a solution to
>> some of my livecode email problems.  
>> After filling in the test fields to send a message
>> and hitting the send button, it told me the
>> message was sent, but upon checking my
>> email it was clear that it never got sent.
>> 
>> I know you put that stack together in 2017
>> so some things have changed since then
>> including macOS.  
>> 
>> Have you tested the stack recently at all 
>> and do you know if it still works?  
>> 
>> If so, the other possibility is that I have 
>> somehow not filled in one of the fields properly.  
>> Could you supply a better example using 
>> gmail smtp settings or something similar,
>> or update the documentation?
>> 
>> Thanks,
>> 
>> Rick
>> 
>> 
>>> On Feb 26, 2021, at 10:26 AM, matthias rebbe via use-livecode 
>>>  wrote:
>>> 
>>> 
>>> 
>>> I tried here to find an "empty" .url file, but w/o success. My .url files i 
>>> have collected over the years on my Windows VM are all textfiles. If you 
>>> could provide a link to such an empty one, i would be really interested to 
>>> see that.
>>> 
>>> Regarding the .lnk files, which seem to be in a binary form, did you 
>>> already see this discussion here?
>>> https://stackoverflow.com/questions/397125/reading-the-target-of-a-lnk-file-in-python
>>> 
>>> Someone posted a Python script there which is able to read the target of an 
>>> .lnk file.
>>> May be that is an alternative.
>>> 
>>> Matthias
>>> 
>>> 
>> 
>> 
>> ___
>> 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

___
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


how do I get geoLocation on a Mac?

2021-03-01 Thread kee nethery via use-livecode
How do I get latitude & longitude within a macOS LiveCode script?

——— 

I know iOS has a way to tell you latitude & longitude. It appears that 
capability is not available on macOS.

I know that macOS browsers, with WiFi on and connected, can determine lat/long 
with a javascript command. At this URL:
https://www.w3schools.com/html/html5_geolocation.asp
I found this example:


var x = document.getElementById("demo");
function getLocation() {
  if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
  } else {
x.innerHTML = "Geolocation is not supported by this browser.";
  }
}

function showPosition(position) {
  x.innerHTML = "Latitude: " + position.coords.latitude + 
  "
Longitude: " + position.coords.longitude; } I know that macOS can: do

xAPI in LiveCode Week #5

2021-03-01 Thread Brian K. Duck via use-livecode
Based on the feedback received last week, we’re scheduled for our second 
regular meeting:
Mar 3, 2021 03:30 PM - 5:30 PM EST

Topic: xAPI in LiveCode Week #5 Zoom Meeting, Session #1
Time: Mar 3, 2021 03:30 PM America/Detroit

Join Zoom Meeting
https://us04web.zoom.us/j/8855545478?pwd=aDJrRmxtcXVLTDNycjhoU3plaDBDQT09

Meeting ID: 885 554 5478
Passcode: 6nUvZN


Please block this time on your calendar moving forward.


Brian
___
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: Parsing properties in Link- and Internet Shortcut files

2021-03-01 Thread matthias rebbe via use-livecode
Rick,

do you mean the stack lcMailAndFtp.livecode?

The original stack was created by Charles Warwick, the developer of the tsNet 
externals.
If i remember correctly, i added the FTP part or so and put that modified stack 
as lcMailAndFtp.livecode online.

You could look here for a newer version (1.2) of Charles mail sample stack.
https://www.techstrategies.com.au/tsnet-resources/

Although the version 1.2 of the mail stack is more current then the one from my 
site, it still is a little bit "outdated".
There is a new command in LC available called mimeEncodeAsMIMEEmail which would 
make some of the code in the sample stack obsolete if it would be used. But the 
sample stack from Techstrategies should still work.

If you still have problems you can contact me also directly at   matthias (at) 
m-r-d.de

Regards,

Matthias

> Am 01.03.2021 um 17:49 schrieb Rick Harrison via use-livecode 
> :
> 
> Hi Matthias,
> 
> I ran into your send email stack with TSNet
> yesterday while looking for a solution to
> some of my livecode email problems.  
> After filling in the test fields to send a message
> and hitting the send button, it told me the
> message was sent, but upon checking my
> email it was clear that it never got sent.
> 
> I know you put that stack together in 2017
> so some things have changed since then
> including macOS.  
> 
> Have you tested the stack recently at all 
> and do you know if it still works?  
> 
> If so, the other possibility is that I have 
> somehow not filled in one of the fields properly.  
> Could you supply a better example using 
> gmail smtp settings or something similar,
> or update the documentation?
> 
> Thanks,
> 
> Rick
> 
> 
>> On Feb 26, 2021, at 10:26 AM, matthias rebbe via use-livecode 
>>  wrote:
>> 
>> 
>> 
>> I tried here to find an "empty" .url file, but w/o success. My .url files i 
>> have collected over the years on my Windows VM are all textfiles. If you 
>> could provide a link to such an empty one, i would be really interested to 
>> see that.
>> 
>> Regarding the .lnk files, which seem to be in a binary form, did you already 
>> see this discussion here?
>> https://stackoverflow.com/questions/397125/reading-the-target-of-a-lnk-file-in-python
>> 
>> Someone posted a Python script there which is able to read the target of an 
>> .lnk file.
>> May be that is an alternative.
>> 
>> Matthias
>> 
>> 
> 
> 
> ___
> 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


[ANN] This Week in LiveCode 256

2021-03-01 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #256 here: http://bit.ly/3sGecjE

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to your e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.



-- 
Panagiotis Merakos 
LiveCode Software Developer

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


Re: Parsing properties in Link- and Internet Shortcut files

2021-03-01 Thread matthias rebbe via use-livecode
Hi Matthias,

I ran into your send email stack with TSNet
yesterday while looking for a solution to
some of my livecode email problems.  
After filling in the test fields to send a message
and hitting the send button, it told me the
message was sent, but upon checking my
email it was clear that it never got sent.

I know you put that stack together in 2017
so some things have changed since then
including macOS.  

Have you tested the stack recently at all 
and do you know if it still works?  

If so, the other possibility is that I have 
somehow not filled in one of the fields properly.  
Could you supply a better example using 
gmail smtp settings or something similar,
or update the documentation?

Thanks,

Rick


> On Feb 26, 2021, at 10:26 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> 
> 
> I tried here to find an "empty" .url file, but w/o success. My .url files i 
> have collected over the years on my Windows VM are all textfiles. If you 
> could provide a link to such an empty one, i would be really interested to 
> see that.
> 
> Regarding the .lnk files, which seem to be in a binary form, did you already 
> see this discussion here?
> https://stackoverflow.com/questions/397125/reading-the-target-of-a-lnk-file-in-python
> 
> Someone posted a Python script there which is able to read the target of an 
> .lnk file.
> May be that is an alternative.
> 
> Matthias
> 
> 


___
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: Parsing properties in Link- and Internet Shortcut files

2021-03-01 Thread Rick Harrison via use-livecode
Hi Matthias,

I ran into your send email stack with TSNet
yesterday while looking for a solution to
some of my livecode email problems.  
After filling in the test fields to send a message
and hitting the send button, it told me the
message was sent, but upon checking my
email it was clear that it never got sent.

I know you put that stack together in 2017
so some things have changed since then
including macOS.  

Have you tested the stack recently at all 
and do you know if it still works?  

If so, the other possibility is that I have 
somehow not filled in one of the fields properly.  
Could you supply a better example using 
gmail smtp settings or something similar,
or update the documentation?

Thanks,

Rick


> On Feb 26, 2021, at 10:26 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> 
> 
> I tried here to find an "empty" .url file, but w/o success. My .url files i 
> have collected over the years on my Windows VM are all textfiles. If you 
> could provide a link to such an empty one, i would be really interested to 
> see that.
> 
> Regarding the .lnk files, which seem to be in a binary form, did you already 
> see this discussion here?
> https://stackoverflow.com/questions/397125/reading-the-target-of-a-lnk-file-in-python
> 
> Someone posted a Python script there which is able to read the target of an 
> .lnk file.
> May be that is an alternative.
> 
> Matthias
> 
> 


___
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: iOS App just shows Splash Screen the quits

2021-03-01 Thread panagiotis merakos via use-livecode
Hello Matthias,

Did you find the solution to this? If not, could you file a bug report, and
attach (or send to us directly) a sample stack?

Kind regards,
Panos
--

On Tue, 16 Feb 2021 at 19:16, matthias rebbe via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Forgot to mention. I tried with LC 9.6.2 RC 1 & 2 and LC 9.6.1
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
>
> > Am 16.02.2021 um 17:43 schrieb matthias rebbe via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Hi,
> >
> > i am working on an app which ran without problems on iOS14.2 on the iPad
> of a customer.. Now the customer updated his iPad to iOS 14.4 and now the
> app crashes after showing up the splash screen.
> > Even a simple app only shows the splash screen at start and the quits.
> >
> > I tried to build the app for iOS13 and 12. Both did not work.
> >
> > Does anyone have an idea what might be wrong?
> >
> > I am working with macOS 10.14.6 and xCode 11.3.
> >
> >
> >
> >
> > -
> > 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
>
>
> ___
> 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