Re: source of a socket error message

2019-07-17 Thread Tom Glod via use-livecode
That answer is probably bang on

...and a solution to top it off.

* slow clap *

On Wed, Jul 17, 2019 at 9:51 PM Dar Scott via use-livecode <
use-livecode@lists.runrev.com> wrote:

> This is very likely a loss of network availability and of that a loss of
> Internet availability.
>
> The library will first look up the URI to get an IP address. The IP
> address is used to make a connection to the server.  The computer has (or
> can get) an IP address to use for making that look up.  Since that this the
> first operation, a loss of Internet will show up with that error.
>
> If you are sure there is access to the Internet, then it might be that the
> DNS server is down. That seems unlikely, but possible. If the server IP is
> fixed, then use a cached version of the IP. Use hostNameToAddress() to get
> the IP address, save that on success, use the saved address on failure.
>
>
> > On Jul 17, 2019, at 6:27 PM, Douglas Ruisaard via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Let me start this off by stating that the information I am seeking IS
> NOT due to an *issue* with LC.  Hopefully, I can make it clear why I am
> asking for assistance from this group in regard to the situation I am
> trying to deal with and why I need the LC expertise of this group as a
> resource.
> >
> > In a portion of a large application, which has been distributed to a
> large number (5,000+) of remote/external sites, I have a call to a TCP
> socket:
> >
> > on OpenCard
> > ...
> > put ftp_server & ":" & tcp_port into temp1
> > open socket to temp1 with message "NewConnection"
> > wait for messages
> > end OpenCard
> >
> > Then there are a variety of "call-backs" based on when happens after I
> open the socket.  One of these call-backs is "socketError":
> >
> > on socketError theID, theError
> > close socket theID
> > do_log " " & sftp_account && "file: " & "There is a problem with the
> TCP connection: " & theError, "connect", 3
> >   ...
> > end socketError
> >
> > This works PERFECTLY 99.999% of the time.  However, occasionally I get a
> "mass" of errors (50 or 60) within a 1 hour period of time from a large
> variety of different external sites (I get all of the remote site's logs)
> ... i.e. many different sites connecting in from many different locations
> around the province of Ontario ... a very large place!
> >
> > The error returned is: "can't resolve hostname"... returned in the
> "theError" parameter of the socketError function.
> >
> > Here's where I need help.  I need to find out, with as great a level of
> detail as possible, EXACTLY what (from LC's "point-of-view") triggers this
> error, what part(s) of the LC engine are involved with generating this
> error and if there is more than the obvious cause of the remote site's DNS
> server (via their ISP or internal server(s)) not being able to "see" the
> hostname that could produce this error.
> >
> > Although this "error" appears to be "common" from a variety of sources
> (none of which are written in LC, as far as I can tell)... I cannot find
> any "standard" by  which a DNS generates this specific message.  NSLOOKUP
> would be the closest candidate but even it doesn't produce this specific
> error of being "unable to resolve the hostname"... so that leaves LC with
> the responsibility of the content of the error.
> >
> > I REALLY want to emphasize that, as far as I am concerned, this is not a
> problem with LC, in any manner... but I need to find out where and why LC
> generates this message.
> >
> > I am not sure what or where to search for this error or what generates
> it from with the LC components but if someone could help me "find" a
> starting point, I should be able to reverse-engineer the logic.
> >
> > The overall situation is fairly complex but I'd be very open to
> providing more details if anyone feels it is warranted.
> >
> > Whatever help could be provided will be very, very appreciated!
> >
> > Douglas Ruisaard
> > Trilogy Software
> > (250) 573-3935
> >
> >
> >
> >
> > ___
> > 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: source of a socket error message

2019-07-17 Thread Dar Scott via use-livecode
This is very likely a loss of network availability and of that a loss of 
Internet availability.

The library will first look up the URI to get an IP address. The IP address is 
used to make a connection to the server.  The computer has (or can get) an IP 
address to use for making that look up.  Since that this the first operation, a 
loss of Internet will show up with that error.

If you are sure there is access to the Internet, then it might be that the DNS 
server is down. That seems unlikely, but possible. If the server IP is fixed, 
then use a cached version of the IP. Use hostNameToAddress() to get the IP 
address, save that on success, use the saved address on failure.


> On Jul 17, 2019, at 6:27 PM, Douglas Ruisaard via use-livecode 
>  wrote:
> 
> Let me start this off by stating that the information I am seeking IS NOT due 
> to an *issue* with LC.  Hopefully, I can make it clear why I am asking for 
> assistance from this group in regard to the situation I am trying to deal 
> with and why I need the LC expertise of this group as a resource.
> 
> In a portion of a large application, which has been distributed to a large 
> number (5,000+) of remote/external sites, I have a call to a TCP socket:
> 
> on OpenCard 
> ...
> put ftp_server & ":" & tcp_port into temp1
> open socket to temp1 with message "NewConnection"
> wait for messages  
> end OpenCard
> 
> Then there are a variety of "call-backs" based on when happens after I open 
> the socket.  One of these call-backs is "socketError":
> 
> on socketError theID, theError
> close socket theID
> do_log " " & sftp_account && "file: " & "There is a problem with the TCP 
> connection: " & theError, "connect", 3
>   ...
> end socketError
> 
> This works PERFECTLY 99.999% of the time.  However, occasionally I get a 
> "mass" of errors (50 or 60) within a 1 hour period of time from a large 
> variety of different external sites (I get all of the remote site's logs) ... 
> i.e. many different sites connecting in from many different locations around 
> the province of Ontario ... a very large place!
> 
> The error returned is: "can't resolve hostname"... returned in the "theError" 
> parameter of the socketError function.
> 
> Here's where I need help.  I need to find out, with as great a level of 
> detail as possible, EXACTLY what (from LC's "point-of-view") triggers this 
> error, what part(s) of the LC engine are involved with generating this error 
> and if there is more than the obvious cause of the remote site's DNS server 
> (via their ISP or internal server(s)) not being able to "see" the hostname 
> that could produce this error.
> 
> Although this "error" appears to be "common" from a variety of sources (none 
> of which are written in LC, as far as I can tell)... I cannot find any 
> "standard" by  which a DNS generates this specific message.  NSLOOKUP would 
> be the closest candidate but even it doesn't produce this specific error of 
> being "unable to resolve the hostname"... so that leaves LC with the 
> responsibility of the content of the error.
> 
> I REALLY want to emphasize that, as far as I am concerned, this is not a 
> problem with LC, in any manner... but I need to find out where and why LC 
> generates this message.
> 
> I am not sure what or where to search for this error or what generates it 
> from with the LC components but if someone could help me "find" a starting 
> point, I should be able to reverse-engineer the logic.
> 
> The overall situation is fairly complex but I'd be very open to providing 
> more details if anyone feels it is warranted.
> 
> Whatever help could be provided will be very, very appreciated!
> 
> Douglas Ruisaard
> Trilogy Software
> (250) 573-3935
> 
> 
> 
> 
> ___
> 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


source of a socket error message

2019-07-17 Thread Douglas Ruisaard via use-livecode
Let me start this off by stating that the information I am seeking IS NOT due 
to an *issue* with LC.  Hopefully, I can make it clear why I am asking for 
assistance from this group in regard to the situation I am trying to deal with 
and why I need the LC expertise of this group as a resource.

In a portion of a large application, which has been distributed to a large 
number (5,000+) of remote/external sites, I have a call to a TCP socket:

on OpenCard 
...
 put ftp_server & ":" & tcp_port into temp1
 open socket to temp1 with message "NewConnection"
 wait for messages  
end OpenCard

Then there are a variety of "call-backs" based on when happens after I open the 
socket.  One of these call-backs is "socketError":

on socketError theID, theError
 close socket theID
 do_log " " & sftp_account && "file: " & "There is a problem with the TCP 
connection: " & theError, "connect", 3
...
end socketError

This works PERFECTLY 99.999% of the time.  However, occasionally I get a "mass" 
of errors (50 or 60) within a 1 hour period of time from a large variety of 
different external sites (I get all of the remote site's logs) ... i.e. many 
different sites connecting in from many different locations around the province 
of Ontario ... a very large place!

The error returned is: "can't resolve hostname"... returned in the "theError" 
parameter of the socketError function.

Here's where I need help.  I need to find out, with as great a level of detail 
as possible, EXACTLY what (from LC's "point-of-view") triggers this error, what 
part(s) of the LC engine are involved with generating this error and if there 
is more than the obvious cause of the remote site's DNS server (via their ISP 
or internal server(s)) not being able to "see" the hostname that could produce 
this error.

Although this "error" appears to be "common" from a variety of sources (none of 
which are written in LC, as far as I can tell)... I cannot find any "standard" 
by  which a DNS generates this specific message.  NSLOOKUP would be the closest 
candidate but even it doesn't produce this specific error of being "unable to 
resolve the hostname"... so that leaves LC with the responsibility of the 
content of the error.

I REALLY want to emphasize that, as far as I am concerned, this is not a 
problem with LC, in any manner... but I need to find out where and why LC 
generates this message.

I am not sure what or where to search for this error or what generates it from 
with the LC components but if someone could help me "find" a starting point, I 
should be able to reverse-engineer the logic.

The overall situation is fairly complex but I'd be very open to providing more 
details if anyone feels it is warranted.

Whatever help could be provided will be very, very appreciated!

Douglas Ruisaard
Trilogy Software
(250) 573-3935




___
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: Livecode Hosting (was: On-Rev) future??

2019-07-17 Thread Medard via use-livecode
Matthias Rebbe via use-livecode  wrote:

> Do you have a Livecode Hosting subscription or do you have 
> a free lifetime hosting account which was offered when On-Rev was introduced?

Yes, I am a On-Rev "funder"

___
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: Best Temp Pass Autoresponder?

2019-07-17 Thread Bob Sneidar via use-livecode
Okay I thought I might be on to something. FYI for those who struggle with 
Gmail there are certain security settings that must be in place for free Gmail 
or hosted Google account to receive SMTP traffic: Two factor authentication 
must be off for the sending account, Access for less secure apps must be ON 
(this is optionally per account or domain wide for hosted accounts) and when 
sending from a public IP address for the first time, the device may need to be 
approved. 

Bob S


> On Jul 17, 2019, at 09:44 , Bob Sneidar  wrote:
> 
>> So although I'm sure it is Google/gmail getting in the way, I think it's not 
>> something as specific as the from & to addresses matching.
>> 
>> Alex.


___
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: Best Temp Pass Autoresponder?

2019-07-17 Thread Bob Sneidar via use-livecode
Great info Ralph. 

Bob S

> On Jul 17, 2019, at 10:47 , Ralph DiMola via use-livecode 
>  wrote:
> 
> I spoof email "from" address all the time(legitimately) using LC server
> using on-rev account. When testing I found out a few things
> 1) you must put "mailFrom:" in the email internet header. Example "Mailfrom:
> xx...@y.on-rev.com" This is not seen by email clients. They see the
> "From" but "mailFrom" will be in the header.
>  a) xx...@y.on-rev.com must be a valid email address
>  b) y.on-rev.com must have valid ssl certificate.
> 2) setup SPF, DKIM, and DMARC DNS Records. This can be done via cPanel. SPF
> is essential DKIM and DMARK increases your deliverability. 
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net

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


iOS cameraControl microphone permission bug

2019-07-17 Thread Paul Kocsis via use-livecode
Does anyone know if there is an iOS workaround for an app that uses a
cameraControl but does not need or use audio?  The bug is that iOS asks for
microphone permission even though I'm setting the audioDevice to empty.
Here is the bug report:

https://quality.livecode.com/show_bug.cgi?id=21438

I can't get an app accepted that uses cameraControl for stills because iOS
asks for microphone permission when its not actually needed.  Thanks to
anyone that can help!
___
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: Livecode Hosting (was: On-Rev) future??

2019-07-17 Thread Heather Laine via use-livecode
Hello Medard, I'll be happy to assist you with this in support, contact me on 
supp...@livecode.com. I'm not sure that the list is the best place to get 
specific advice on your situation.

Best Regards,

Heather

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



> On 17 Jul 2019, at 18:43, Medard via use-livecode 
>  wrote:
> 
> Hi!
> 
> I received a mail from Heather Laine, asking for choosing an option to
> continue -- or not! the server...
> 
> As an hobbyist, I am not interested in a full option 
> - But I do have some 'dormant' web sites -- and the mail!
> 
> Which is your situation?  
> 
> ___
> 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: Livecode Hosting (was: On-Rev) future??

2019-07-17 Thread Matthias Rebbe via use-livecode
Hm, i donĀ“t get it.

Do you have a Livecode Hosting subscription or do you have a free lifetime 
hosting account which was offered when On-Rev was introduced?

Regards,
Matthias

Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 
> Am 17.07.2019 um 19:43 schrieb Medard via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> Hi!
> 
> I received a mail from Heather Laine, asking for choosing an option to
> continue -- or not! the server...
> 
> As an hobbyist, I am not interested in a full option 
> - But I do have some 'dormant' web sites -- and the mail!
> 
> Which is your situation?  
> 
> ___
> 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: Best Temp Pass Autoresponder?

2019-07-17 Thread Ralph DiMola via use-livecode
I spoof email "from" address all the time(legitimately) using LC server
using on-rev account. When testing I found out a few things
1) you must put "mailFrom:" in the email internet header. Example "Mailfrom:
xx...@y.on-rev.com" This is not seen by email clients. They see the
"From" but "mailFrom" will be in the header.
  a) xx...@y.on-rev.com must be a valid email address
  b) y.on-rev.com must have valid ssl certificate.
2) setup SPF, DKIM, and DMARC DNS Records. This can be done via cPanel. SPF
is essential DKIM and DMARK increases your deliverability. 

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


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


Livecode Hosting (was: On-Rev) future??

2019-07-17 Thread Medard via use-livecode
Hi!

I received a mail from Heather Laine, asking for choosing an option to
continue -- or not! the server...

As an hobbyist, I am not interested in a full option 
- But I do have some 'dormant' web sites -- and the mail!

Which is your situation?  

___
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: Best Temp Pass Autoresponder?

2019-07-17 Thread Rick Harrison via use-livecode
I own both email addresses. Therefore I was sending it to myself.  
Sorry for any confusion.

Thanks,

Rick

> On Jul 17, 2019, at 12:44 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> What did he mean by sending to himself then?
> 
> Bob S
> 
> 
>> On Jul 17, 2019, at 09:17 , Alex Tweedly via use-livecode 
>>  wrote:
>> 
>> Uh, that wasn't the case in Rick\s testing; he was sending to himself, but 
>> not at the
>> 
>> He already posted this to the list, so it's ok for me to reveal the email 
>> addresses again :
>> 
>>   put"harri...@all-auctions.com"  into pVarEmailAddressToCustomer
>> put"supp...@innovative-introductions.com"  into pFromAddress
>> 
>> 
>> So although I'm sure it is Google/gmail getting in the way, I think it's not 
>> something as specific as the from & to addresses matching.
>> 
>> Alex.
> 
> 
> ___
> 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: Best Temp Pass Autoresponder?

2019-07-17 Thread Bob Sneidar via use-livecode
What did he mean by sending to himself then?

Bob S


> On Jul 17, 2019, at 09:17 , Alex Tweedly via use-livecode 
>  wrote:
> 
> Uh, that wasn't the case in Rick\s testing; he was sending to himself, but 
> not at the
> 
> He already posted this to the list, so it's ok for me to reveal the email 
> addresses again :
> 
>put"harri...@all-auctions.com"  into pVarEmailAddressToCustomer
>  put"supp...@innovative-introductions.com"  into pFromAddress
> 
> 
> So although I'm sure it is Google/gmail getting in the way, I think it's not 
> something as specific as the from & to addresses matching.
> 
> Alex.


___
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: Best Temp Pass Autoresponder?

2019-07-17 Thread Alex Tweedly via use-livecode
Uh, that wasn't the case in Rick\s testing; he was sending to himself, 
but not at the


He already posted this to the list, so it's ok for me to reveal the 
email addresses again :


  
  put"harri...@all-auctions.com"  into pVarEmailAddressToCustomer

  put"supp...@innovative-introductions.com"  into pFromAddress


So although I'm sure it is Google/gmail getting in the way, I think it's 
not something as specific as the from & to addresses matching.


Alex.

On 17/07/2019 15:41, Bob Sneidar via use-livecode wrote:

Oh, THAT is interesting! We test with free gmail accounts on copiers for 
customers who either do not know their email server settings, or those who 
don't have an email server. There are times we cannot figure out why they do 
not get the email! Very likely it's because the sender address is the one we 
are sending to!!!

Bob S



On Jul 16, 2019, at 18:40 , Rick Harrison via use-livecode 
 wrote:

Everything is fine now.  It turned out that
my google email account was filtering out
the emails I was sending to myself.
To test the theory, I sent emails to my
yahoo account, and the email showed
up just fine.  Thanks a lot Google! (NOT!)


___
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: Best Temp Pass Autoresponder?

2019-07-17 Thread Bob Sneidar via use-livecode
Oh, THAT is interesting! We test with free gmail accounts on copiers for 
customers who either do not know their email server settings, or those who 
don't have an email server. There are times we cannot figure out why they do 
not get the email! Very likely it's because the sender address is the one we 
are sending to!!!

Bob S


> On Jul 16, 2019, at 18:40 , Rick Harrison via use-livecode 
>  wrote:
> 
> Everything is fine now.  It turned out that
> my google email account was filtering out
> the emails I was sending to myself.
> To test the theory, I sent emails to my
> yahoo account, and the email showed
> up just fine.  Thanks a lot Google! (NOT!)


___
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