Re: LC on Raspberry Pi3

2017-09-02 Thread Richard Gaskin via use-livecode

hh wrote:


No, vice versa. ImageJIT (= LC as GUI + luajit via shell) on Raspberry 3 is
faster as 'LC with LCS only' on the 3 GHZ CPU (a linux box).

The Raspi app lets do the core processing of the raw imageData by luajit
and the 'LC with LCS only' is running with my fastest LC Scripts.

Doing both on the 3 GHZ:
ImageJIT runs in average 50 times faster than the fastest LC scripts I know
(and I know a lot, incl. Bernd's and Wilhelm's scripts). ImageJIT is without
a decent GPU about as fast as running the image processing by javascript in
a browser widget using a decent GPU.

I built last year standalones using LC 6 for Mac/Win/linux.
** Just try yourself. Then you will believe what I claimed at top of this post.
As these are "beta"-versions, the code is not yet available. I#ll share it when finished 
is already again in my "top-ten-to-do".

The standalones hopefully run on all machines that are able to run LC 6.5.
More info and download available here (luajit binaries from the ufo project
by "malkia" are included).

Using a FFI: hhImageJIT
http://forums.livecode.com/viewtopic.php?p=143932#p143932

p.s. lua (without JIT compiler of Mike Pall) does image processing at about
the same speed as LC Script.


Thanks.  Good to know.  It would be nice if we had some JIT-like option 
for getting closer to machine code.


--
 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: LC on Raspberry Pi3

2017-09-02 Thread hh via use-livecode
No, vice versa. ImageJIT (= LC as GUI + luajit via shell) on Raspberry 3 is
faster as 'LC with LCS only' on the 3 GHZ CPU (a linux box).

The Raspi app lets do the core processing of the raw imageData by luajit
and the 'LC with LCS only' is running with my fastest LC Scripts.

Doing both on the 3 GHZ:
ImageJIT runs in average 50 times faster than the fastest LC scripts I know
(and I know a lot, incl. Bernd's and Wilhelm's scripts). ImageJIT is without
a decent GPU about as fast as running the image processing by javascript in
a browser widget using a decent GPU.

I built last year standalones using LC 6 for Mac/Win/linux.
** Just try yourself. Then you will believe what I claimed at top of this post.
As these are "beta"-versions, the code is not yet available. I#ll share it when 
finished is already again in my "top-ten-to-do".

The standalones hopefully run on all machines that are able to run LC 6.5.
More info and download available here (luajit binaries from the ufo project
by "malkia" are included).

Using a FFI: hhImageJIT
http://forums.livecode.com/viewtopic.php?p=143932#p143932

p.s. lua (without JIT compiler of Mike Pall) does image processing at about
the same speed as LC Script.
___
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: TSNet error 6

2017-09-02 Thread J. Landman Gay via use-livecode
It happens to other users in other places, but only occasionally -- 
though we haven't got a whole lot of users yet, mostly just the client 
and some testers. The reason we started looking into this is because the 
client was giving a demo and it totally failed (ouch. He was trying to 
sell it.) So we started trying to reproduce the problem. None of us had 
any trouble on our home networks. One of us went to a coffee shop and 
could reproduce it there. The client had the problem at the location of 
his demo, went home and still had the problem, then suddenly at home it 
started working again. Up until that day he'd had no issues on his home 
network (I wonder if it was storing the DNS from the demo site. Is that 
a thing?)


It is always the same error and is unpredictable. We're sending the 
tester back to the coffee shop on Monday so we can experiment with 
turning off https.


On 9/2/17 8:39 AM, Ralph DiMola wrote:

I would zero in on the https thing. If the user can get to an https web-site 
via Safari/Chrome on the same server as your DB then tsNet should work unless 
there is a bug in tsNet. The slack also problem has me concerned with the 
router. If we eliminate the tin-foil-hat possibilities then could there be a 
router issue in the coffee shop? Does this happen with other users in other 
places? I've seen routers do some strange things until a re-boot. The age of 
the router(or a pending firmware update) could also be in play. It's just so 
hard when you have no/zero/nada control over network connectivity.



--
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: TSNet error 6

2017-09-02 Thread Jim Lambert via use-livecode
RalphM wrote:
> The first thing I do before any network access is to ping my server with a
> https request to a LC backend server script that returns "OK". I set the
> timeout for 2 seconds. If the returned data is not "OK" or take more than 2
> seconds then I put the app into off-line mode.


On IOS this is a bit easier.

See 

reachabilityChanged
iphoneReachabilityTarget
iphoneSetReachabilityTarget

 in LC’s dictionary.

"The network connection on iOS devices is generally more transient than normal 
network connections and can change between wireless and wide-area wireless 
(GPRS, 3G, EDGE etc.) transport as it moves, and indeed be lost entirely. As 
the behavior of an application may vary depending on what kind of network 
connection is present it is useful to be able to monitor a given server for the 
type of connection the device currently has to it."

Jim Lambert
___
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: LC and OneSignal

2017-09-02 Thread Richard Gaskin via use-livecode

Todd Fabacher wrote:

> I think we can find a solution. *Richard*, this sounds like the
> perfect open source community project. What do you think?? We
> can host the stuff on GitHub, but create an interface within the
> IDE with an online DB that can be queried. we could slap a simple
> RestAPI on it and people could query it to get helpful code
> snippets and usage examples and complete App examples.

Yes indeed.

A central index for all components, regardless of type or license, is 
essential for platform growth and for serious development.


For open source projects, IMO GitHub is an ideal location.  But it isn't 
the only such service, and there are good projects on many services, so 
probably best not to limit the index to those hosted on only one.


For proprietary projects the range of share locations may be even 
broader, since there's no requirement that the location provide 
collaboration tools supporting public contribution.


There may be many good reasons why a developer might prefer to share a 
resource through any number of other sites, or even their own.  As long 
as the resource is check-summed and the domain is ensured with a good 
SSL cert, I don't have a lot of opinions about where a shared resource 
physically resides.


Beyond basic file and domain integrity, it seems to me it doesn't matter 
so much where the file lives, as long as an index exists in one 
well-known location to be able to find it from.


An ideal index could allow good searching via a minimum of these fields:
- Resource name
- Category and perhaps subcategory of functionality
- Resource Type (external, widget, library, template, etc.)
- Author/Publisher/domain
- Date of first release
- Date of most recent release
- Minimum compatible LC version required
- License type (GPLv3, GPLv2, MIT, BSD, proprietary, etc.)
- Keywords in full text of title/name and description
- Vendor-supplied tags
- Crowd-sourced tags that any registered user of the system can add to

It needs to be API-driven, so we can build a UI for use in the IDE, 
write our own ad hoc tools for finding and updating components, and 
enjoy the SEM benefits of having the index also available in the web.


With that I could, for example, easily search for an image filter 
library made available under GPL-compatible license and instantly find 
Tom Bodine's excellent toolkit in one move.



Background
--
Many of us saw a need for resource sharing, and the ease of delivering 
that right in the IDE, from the moment we saw the old MC Examples stack, 
before the turn of the century.


I found that download-n-go very inspiring, and eventually I made the 
time to deliver the first publicly-sharable index in the modest Stacks 
section of RevNet in Dec 2003 (since renamed as "LiveNet").


The following year RunRev Ltd. made RevOnline as a more complete 
solution for our community, to share not only stack files but also 
externals and code snippets.  (To support the goal of a single index and 
also relieve myself of potential security concerns, after RevOnline 
premiered I restricted and later removed the ability for public 
additions to RevNet.)


Later on RevOnline's upload went out of commission for a few years, and 
in response several community efforts sprung up, including a nice 
index-focused offering from Shao Sean.


None of the community-driven repositories or indexes ever really gained 
critical mass, because during that span of years there were periodic 
announcements from RunRev Ltd. (now renamed LiveCode Ltd.) that they 
were going to complete RevOnline to restore its upload capability, 
refine its listing (e.g., it isn't sortable), and expand its 
functionality to include more resource types (first externals and now 
widgets).


RevOnline's account management and upload features were eventually 
restored.  But during that time it also became renamed, rather 
variously, so that today few people can piece together that "RevOnline", 
"Sample Stacks", and "LiveCode Share" are all more or less the same 
thing (further muddied by that repo containing script snippets, yet a 
different facility named "Sample Scripts" is entirely separate from 
"RevOnline"/"Sample Stacks"/"LiveCode Share").


In addition to picking one name and sticking with it, as reported 
earlier in this thread apparently the file upload feature needs further 
refinement.  And at a minimum it should probably be enhanced to include 
indexed fields for license type and to support widgets.


Meanwhile, other tools have demonstrated the value of a central index 
with things like NPMJS for Node, PyPy for Python, CPAN for Perl, CRAN 
for R, the listings of modules, themes and plugins for Wordpress and 
Drupal, and others.


Many of those repositories are maintained by their respective communities.


Options Going Forward
-
There's no question of the need or the value.  The only question seems 
to be:  should this be a community project, or one created and 
maintained by 

Subject: Re: LC and OneSignal

2017-09-02 Thread Alejandro Tejada via use-livecode
I have read many great ideas for this project.

Could I contribute another?

This repository could include an index of
LiveCode properties, commands and functions
used within these stacks and handlers.

Klaus Major already published a handler
that saves all stack scripts as a text file.
Could this handler run automatically from
LiveCode server?

Using this index of properties, functions
and commands, all developers could find
easily many practical examples that show
how to use LiveCode API.

And now that we are talking about indexes
Could we have statistics and a few charts
about this content too?

 Al
___
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: LC on Raspberry Pi3

2017-09-02 Thread Richard Gaskin via use-livecode

hh wrote:

> I also made an app "ImageJIT" that uses LC as a GUI and does most of
> its work with Luajit via shell. Runs faster as image processing with
> pure LC Script from IDE on a 3 GHZ linux box!

Interesting.  If I read that correctly, you've found an equivalent test 
in both Lua and LC in which LC is much faster?


That might make a good guest article for the LC blog.

--
 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: TSNet error 6

2017-09-02 Thread Ralph DiMola via use-livecode
Another Gotch ya... If you connect to a MySql DB (although https to back-end 
server is preferred) every time you do a query of some sort first do something 
simple like "SELECT 'I am Here'" or list the tables and see if you get back a 
number for the record set or a list of tables. If not then close the 
connection(found this keeps things from going sideways) and then re-connect to 
the MySql server.

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 
Sannyasin Brahmanathaswami via use-livecode
Sent: Saturday, September 02, 2017 12:22 AM
To: How to use LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Re: TSNet error 6

Ralph

I'm just about to implement this in our new app.

I was only checking  on init and some other navigation points in the app, but 
it's clear now we have to check *everytime* we call the server. because, as you 
say, use can walk from his desk (wifi) to outside (drop to bad 3G) and then out 
into the open (suddenly gets 3 bars LTE) and the to the café (back up with 5 
bar wifi)

all in a 10 minute walk!

how do you "see if…( it is)  fast enough"

is the assumption  that if you get something in under 2000 milliseconds than 
things should work OK, or are you tracking some packet stream?

Also why not just put a text file on the server 

https://www.mydomain.com/ping.text

with the word "true"

Apple does this this… but their little static page just has the word "success" 
returned.

does your script give some advantage?

Brahmanathswami

 

On 9/1/17, 11:10 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

The first thing I do before any network access is to ping my server with a
https request to a LC backend server script that returns "OK". I set the
timeout for 2 seconds. If the returned data is not "OK" or take more than 2
seconds then I put the app into off-line mode. I try to ping the server
every time the users does "x" or the user's action again need network access
and see if the network is back online or fast enough.

___
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] Hello World

2017-09-02 Thread Richmond Mathewson via use-livecode

71

Richmond.

On 9/2/17 10:39 am, Mark Schonewille via use-livecode wrote:

Which page?

Kind regards,

Mark Schonewille
http://economy-x-talk.com
https://www.facebook.com/marksch

Buy the most extensive book on the
LiveCode language:
http://livecodebeginner.economy-x-talk.com

Op 02-Sep-17 om 00:18 schreef Jim Lambert via use-livecode:

Richmond,

Congratulations on your Hello World article.
Very nice.

Jim Lambert

___
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: Missing things in the holidays

2017-09-02 Thread Richmond Mathewson via use-livecode

Thank you very much, Thierry.

Richmond.

On 9/2/17 9:52 am, Thierry Douez via use-livecode wrote:

Here is the reason:


On Aug 31, 2017, at 3:42 AM, panagiotis merakos via use-livecode <

use-livecode@lists.runrev.com> wrote:

Hi all,

Since the week beginning 21st August 2017, LiveCode iOS apps are being
rejected by iTunes Connect due to 'invalid binary'. It turns out that

Apple

have upgraded the tools they use to analyse binaries, and this has shown

an

error in the Mach-O structure of the 64-bit slice. The version of otool
with Xcode 6.x (on 10.9) does not show a problem, but newer versions do.

For this reason, we have built a new version of LiveCode 8.1.6 that
addresses this issue.

So if you have already installed the original LiveCode 8.1.6 and are
affected by this issue, please visit now

http://downloads.livecode.com/livecode/

and download the latest 8.1.6 (STABLE), released on the 31st of August.

Best regards,
The LiveCode Team



2017-09-02 8:46 GMT+02:00 Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com>:


I did:

Came back and found a second version of the 'stable' 8.1.6 . . .

But could not find out why, what and so on . . .

Richmond.
___
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: TSNet error 6

2017-09-02 Thread Ralph DiMola via use-livecode
B,

Yes I assume that if I get a response in 2000 ms the link is fast enough. The 
text file should work but seeing I need the backend server for app 
functionality this test also makes sure that there is good connectivity and the 
web server/LC server is functioning in one test.

In one of my apps the user can save notes about each location retrieved from a 
static local DB. These notes a saved in a second local DB and also uploaded to 
the server for backup. So... I need to keep "last update" dates on both the 
device and the server and resolve this with every transaction and also on app 
startup just in case the user lost connectivity and saved a note locally to the 
device. I try to deal with all combination but I'm sure there some obscure race 
conditions that I am not handling, but it's not moving money, air traffic 
control or launching the space shuttle.

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 
Sannyasin Brahmanathaswami via use-livecode
Sent: Saturday, September 02, 2017 12:22 AM
To: How to use LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Re: TSNet error 6

Ralph

I'm just about to implement this in our new app.

I was only checking  on init and some other navigation points in the app, but 
it's clear now we have to check *everytime* we call the server. because, as you 
say, use can walk from his desk (wifi) to outside (drop to bad 3G) and then out 
into the open (suddenly gets 3 bars LTE) and the to the café (back up with 5 
bar wifi)

all in a 10 minute walk!

how do you "see if…( it is)  fast enough"

is the assumption  that if you get something in under 2000 milliseconds than 
things should work OK, or are you tracking some packet stream?

Also why not just put a text file on the server 

https://www.mydomain.com/ping.text

with the word "true"

Apple does this this… but their little static page just has the word "success" 
returned.

does your script give some advantage?

Brahmanathswami

 

On 9/1/17, 11:10 AM, "use-livecode on behalf of Ralph DiMola via use-livecode" 
 wrote:

The first thing I do before any network access is to ping my server with a
https request to a LC backend server script that returns "OK". I set the
timeout for 2 seconds. If the returned data is not "OK" or take more than 2
seconds then I put the app into off-line mode. I try to ping the server
every time the users does "x" or the user's action again need network access
and see if the network is back online or fast enough.

___
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: TSNet error 6

2017-09-02 Thread Ralph DiMola via use-livecode
One other note. My banking app(RBS) on my phone sometimes(rarely) does not work 
even when I have connectivity while on the road. It honks that it can't get a 
secure connection. Then I move to another cell tower(I presume) and it works. 
Secure mobile communication requires a ton of app error checking and might not 
function in all circumstances.

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


-Original Message-
From: J. Landman Gay [mailto:jlandman...@gmail.com] On Behalf Of J. Landman Gay
Sent: Friday, September 01, 2017 11:21 PM
To: rdim...@evergreeninfo.net
Subject: Re: TSNet error 6

In today's episode, the user was in a coffee house using the free wifi (it was 
one of my testers, there on purpose for testing). The app could not resolve the 
host though the connection would have been constant. 
When he tests from his own home everything works, as it does for all of us on 
the team.

We're wondering if https has anything to do with it. He could connect to 
anything with Chrome but both my app and Slack would not work using https. 
Could that be a factor?

We need to keep testing to see if https is really the cause, we're not quite 
sure yet.

On 9/1/17 4:10 PM, Ralph DiMola wrote:
> J,
> 
> I have run into many network issues on mobile. The chance that the 
> user might have a weak cell/wifi signal, move from cellular==>wifi or 
> wifi==>cellular is higher than one would think. This would be my first 
> guess. I always ask the user if Safari/Chrome is serving up pages. 99% 
> of the time network funnies are caused by weak/changing network 
> access. The amount of error checking and combinations thereof has been very 
> challenging.
> The first thing I do before any network access is to ping my server 
> with a https request to a LC backend server script that returns "OK". 
> I set the timeout for 2 seconds. If the returned data is not "OK" or 
> take more than 2 seconds then I put the app into off-line mode. I try 
> to ping the server every time the users does "x" or the user's action 
> again need network access and see if the network is back online or fast 
> enough.
> 
> 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: Friday, September 01, 2017 4:42 PM
> To: Bob Sneidar via use-livecode
> Cc: J. Landman Gay
> Subject: Re: TSNet error 6
> 
> This is for an Android app that can be run from anywhere, so I don't 
> have control over the routers or servers. (And yeah, I didn't quite 
> get everything you were talking about, I'm a network novice.)
> 
> The apps run fine for most people and only get this error with a few users.
> I think you're basically saying there's no cure, right?
> 
> If the web site has a static IP and the Android app uses that instead 
> of a domain name, will that fix it? The app is communicating with a 
> database on the web server.
> 
> 
> On 9/1/17 12:12 PM, Bob Sneidar via use-livecode wrote:
>> That is a DNS error. If referring to a host, you can use the NetBIOS 
>> name
> locally, the FQDN locally or remotely, or the IP number (which might 
> change so that is always a bad idea).
>>
>> Now if the host name is NetBIOS, a number of things can go wrong in a
> non-domain environment. With a domain server acting as your local DNS, 
> it will resolve NetBIOS names to their FQDN equivalents via the WINS service.
> Barring that, NetBIOS name resolution falls back on an election 
> process, where some windows computer is elected as the Master Browser, 
> which is then responsible for tracing all devices on the network and 
> their current IP addresses.
>>
>> If it happens to be a regular workstation, and it is set to go to 
>> sleep
> after a certain amount of time, well another device has to become the 
> master browser, and it won't know about the  server in question until 
> it requests the current master browser and it might not do that for 
> some time. See the problem?
>>
>> So there are a couple ways around that. First you can configure the 
>> local
> router with a static DNS entry, and make sure the primary DNS server 
> listed is that router. Alternately you can edit the hosts file on each 
> workstatino and make a static entry there. The latter is probably 
> going to be the most reliable, but starting with windows 7 I think 
> that file is locked, so it requires elevated privileges.
>>
>> Sucks huh? The best thing is to have a real DNS server locally (every
> router these days does this but not everyone configures their routers
> correctly) and then via the command line you *should* be able to 
> register with the DNS server, but I'm not sure how.
>>
>> Hope that is not too much.
>>
>> Bob S
>>
>>
>>> On Sep 1, 2017, at 09:40 , J. Landman Gay via use-livecode
>  wrote:
>>>
>>> I have two apps that 

RE: TSNet error 6

2017-09-02 Thread Ralph DiMola via use-livecode
I would zero in on the https thing. If the user can get to an https web-site 
via Safari/Chrome on the same server as your DB then tsNet should work unless 
there is a bug in tsNet. The slack also problem has me concerned with the 
router. If we eliminate the tin-foil-hat possibilities then could there be a 
router issue in the coffee shop? Does this happen with other users in other 
places? I've seen routers do some strange things until a re-boot. The age of 
the router(or a pending firmware update) could also be in play. It's just so 
hard when you have no/zero/nada control over network connectivity.

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


-Original Message-
From: J. Landman Gay [mailto:jlandman...@gmail.com] On Behalf Of J. Landman Gay
Sent: Friday, September 01, 2017 11:21 PM
To: rdim...@evergreeninfo.net
Subject: Re: TSNet error 6

In today's episode, the user was in a coffee house using the free wifi (it was 
one of my testers, there on purpose for testing). The app could not resolve the 
host though the connection would have been constant. 
When he tests from his own home everything works, as it does for all of us on 
the team.

We're wondering if https has anything to do with it. He could connect to 
anything with Chrome but both my app and Slack would not work using https. 
Could that be a factor?

We need to keep testing to see if https is really the cause, we're not quite 
sure yet.

On 9/1/17 4:10 PM, Ralph DiMola wrote:
> J,
> 
> I have run into many network issues on mobile. The chance that the 
> user might have a weak cell/wifi signal, move from cellular==>wifi or 
> wifi==>cellular is higher than one would think. This would be my first 
> guess. I always ask the user if Safari/Chrome is serving up pages. 99% 
> of the time network funnies are caused by weak/changing network 
> access. The amount of error checking and combinations thereof has been very 
> challenging.
> The first thing I do before any network access is to ping my server 
> with a https request to a LC backend server script that returns "OK". 
> I set the timeout for 2 seconds. If the returned data is not "OK" or 
> take more than 2 seconds then I put the app into off-line mode. I try 
> to ping the server every time the users does "x" or the user's action 
> again need network access and see if the network is back online or fast 
> enough.
> 
> 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: Friday, September 01, 2017 4:42 PM
> To: Bob Sneidar via use-livecode
> Cc: J. Landman Gay
> Subject: Re: TSNet error 6
> 
> This is for an Android app that can be run from anywhere, so I don't 
> have control over the routers or servers. (And yeah, I didn't quite 
> get everything you were talking about, I'm a network novice.)
> 
> The apps run fine for most people and only get this error with a few users.
> I think you're basically saying there's no cure, right?
> 
> If the web site has a static IP and the Android app uses that instead 
> of a domain name, will that fix it? The app is communicating with a 
> database on the web server.
> 
> 
> On 9/1/17 12:12 PM, Bob Sneidar via use-livecode wrote:
>> That is a DNS error. If referring to a host, you can use the NetBIOS 
>> name
> locally, the FQDN locally or remotely, or the IP number (which might 
> change so that is always a bad idea).
>>
>> Now if the host name is NetBIOS, a number of things can go wrong in a
> non-domain environment. With a domain server acting as your local DNS, 
> it will resolve NetBIOS names to their FQDN equivalents via the WINS service.
> Barring that, NetBIOS name resolution falls back on an election 
> process, where some windows computer is elected as the Master Browser, 
> which is then responsible for tracing all devices on the network and 
> their current IP addresses.
>>
>> If it happens to be a regular workstation, and it is set to go to 
>> sleep
> after a certain amount of time, well another device has to become the 
> master browser, and it won't know about the  server in question until 
> it requests the current master browser and it might not do that for 
> some time. See the problem?
>>
>> So there are a couple ways around that. First you can configure the 
>> local
> router with a static DNS entry, and make sure the primary DNS server 
> listed is that router. Alternately you can edit the hosts file on each 
> workstatino and make a static entry there. The latter is probably 
> going to be the most reliable, but starting with windows 7 I think 
> that file is locked, so it requires elevated privileges.
>>
>> Sucks huh? The best thing is to have a real DNS server locally (every
> router these days does this but not everyone configures their routers
> correctly) and then via the command line you 

Re: use-livecode Digest, Vol 168, Issue 5

2017-09-02 Thread Todd Fabacher via use-livecode
Thanks...Andy, Alex & Mark!!

I think we can find a solution. *Richard*, this sounds like the perfect
open source community project. What do you think?? We can host the stuff on
GitHub, but create an interface within the IDE with an online DB that can
be queried. we could slap a simple RestAPI on it and people could query it
to get helpful code snippets and usage examples and complete App examples.

Digital Pomegranate could host the DB, or better would be LC. They have to
just drop a MariaDB or Postgre SQL [sice mySQL is not an open source
favorite anymore] and we can create a simple API to post or pull from it.


What do you think??? That is another thing off the core coder's plate so
they can focus. We coul deven to the RestAPI in LC script as an example of
how to setup an API using LC on the server??? - Nice!!

--Todd


On 01/09/2017 22:44, AndyP via use-livecode wrote:
> Enhancement Requests added to the Quality Center for Sample Stacks
>
>
Good ideas !
___
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] Hello World

2017-09-02 Thread Mark Schonewille via use-livecode

Which page?

Kind regards,

Mark Schonewille
http://economy-x-talk.com
https://www.facebook.com/marksch

Buy the most extensive book on the
LiveCode language:
http://livecodebeginner.economy-x-talk.com

Op 02-Sep-17 om 00:18 schreef Jim Lambert via use-livecode:

Richmond,

Congratulations on your Hello World article.
Very nice.

Jim Lambert

___
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: Missing things in the holidays

2017-09-02 Thread Thierry Douez via use-livecode
Here is the reason:

> On Aug 31, 2017, at 3:42 AM, panagiotis merakos via use-livecode <
use-livecode@lists.runrev.com> wrote:
>
> Hi all,
>
> Since the week beginning 21st August 2017, LiveCode iOS apps are being
> rejected by iTunes Connect due to 'invalid binary'. It turns out that
Apple
> have upgraded the tools they use to analyse binaries, and this has shown
an
> error in the Mach-O structure of the 64-bit slice. The version of otool
> with Xcode 6.x (on 10.9) does not show a problem, but newer versions do.
>
> For this reason, we have built a new version of LiveCode 8.1.6 that
> addresses this issue.
>
> So if you have already installed the original LiveCode 8.1.6 and are
> affected by this issue, please visit now
>
> http://downloads.livecode.com/livecode/
>
> and download the latest 8.1.6 (STABLE), released on the 31st of August.
>
> Best regards,
> The LiveCode Team



2017-09-02 8:46 GMT+02:00 Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com>:

> I did:
>
> Came back and found a second version of the 'stable' 8.1.6 . . .
>
> But could not find out why, what and so on . . .
>
> Richmond.
> ___
> 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
>



-- 

Thierry Douez - sunny-tdz.com
sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage
___
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


Missing things in the holidays

2017-09-02 Thread Richmond Mathewson via use-livecode

I did:

Came back and found a second version of the 'stable' 8.1.6 . . .

But could not find out why, what and so on . . .

Richmond.
___
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