Re: Move command on iOS

2018-08-03 Thread J. Landman Gay via use-livecode
I jumped the gun and sent a download link to both of you. But you're 
hours ahead of him so you have time to intercept. :)


On 8/3/18 10:25 PM, Monte Goulding via use-livecode wrote:

Hmm… feel free to send through to me as I’m intrigued. I will send the stack to 
Panos if I can’t figure out what is going on so he can put it wherever private 
test stacks go.


On 4 Aug 2018, at 1:05 pm, J. Landman Gay via use-livecode 
 wrote:

Skip the test, it works fine in isolation. Bug report is here:
https://quality.livecode.com/show_bug.cgi?id=21461

But there must be something else going on so I should send the real stack to 
either you or Panos I guess.

On 8/3/18 9:27 PM, J. Landman Gay via use-livecode wrote:

Here's the relevant part of the script. There's only one "move" command:
 put the long id of grp "iOSPicker" into tGrp
 get the height of tGrp div 2
 put the height of this cd - it into tDestV
 show tGrp -- before updating text
 wait 1 millisecond with messages
 move tGrp to (item 1 of the loc of me),tDestV in 500 milliseconds
I put the wait command in there to see if it made any difference but it doesn't.
If the above isn't enough, it would be quicker if I could just send you my 
client's stack privately. Is that okay? I'll put in a bug report regardless.
On 8/3/18 8:27 PM, Monte Goulding via use-livecode wrote:

@Jacque I’ve had a look around the engine… would be interested to know if you 
are moving without waiting or not (if that makes a difference).

It looks like the most likely cause of what you are seeing is multiple calls to 
`move` the object to a location. The second of which will look like the first 
just ended because a second move ends the first and then the object is already 
at the location. Perhaps log when you are doing it?




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


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



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




--
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: Move command on iOS

2018-08-03 Thread Monte Goulding via use-livecode
Hmm… feel free to send through to me as I’m intrigued. I will send the stack to 
Panos if I can’t figure out what is going on so he can put it wherever private 
test stacks go.

> On 4 Aug 2018, at 1:05 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> Skip the test, it works fine in isolation. Bug report is here:
> https://quality.livecode.com/show_bug.cgi?id=21461
> 
> But there must be something else going on so I should send the real stack to 
> either you or Panos I guess.
> 
> On 8/3/18 9:27 PM, J. Landman Gay via use-livecode wrote:
>> Here's the relevant part of the script. There's only one "move" command:
>> put the long id of grp "iOSPicker" into tGrp
>> get the height of tGrp div 2
>> put the height of this cd - it into tDestV
>> show tGrp -- before updating text
>> wait 1 millisecond with messages
>> move tGrp to (item 1 of the loc of me),tDestV in 500 milliseconds
>> I put the wait command in there to see if it made any difference but it 
>> doesn't.
>> If the above isn't enough, it would be quicker if I could just send you my 
>> client's stack privately. Is that okay? I'll put in a bug report regardless.
>> On 8/3/18 8:27 PM, Monte Goulding via use-livecode wrote:
>>> @Jacque I’ve had a look around the engine… would be interested to know if 
>>> you are moving without waiting or not (if that makes a difference).
>>> 
>>> It looks like the most likely cause of what you are seeing is multiple 
>>> calls to `move` the object to a location. The second of which will look 
>>> like the first just ended because a second move ends the first and then the 
>>> object is already at the location. Perhaps log when you are doing it?
>>> 
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Move command on iOS

2018-08-03 Thread J. Landman Gay via use-livecode

Skip the test, it works fine in isolation. Bug report is here:
https://quality.livecode.com/show_bug.cgi?id=21461

But there must be something else going on so I should send the real 
stack to either you or Panos I guess.


On 8/3/18 9:27 PM, J. Landman Gay via use-livecode wrote:

Here's the relevant part of the script. There's only one "move" command:

     put the long id of grp "iOSPicker" into tGrp
     get the height of tGrp div 2
     put the height of this cd - it into tDestV
     show tGrp -- before updating text
     wait 1 millisecond with messages
     move tGrp to (item 1 of the loc of me),tDestV in 500 milliseconds

I put the wait command in there to see if it made any difference but it 
doesn't.


If the above isn't enough, it would be quicker if I could just send you 
my client's stack privately. Is that okay? I'll put in a bug report 
regardless.



On 8/3/18 8:27 PM, Monte Goulding via use-livecode wrote:
@Jacque I’ve had a look around the engine… would be interested to know 
if you are moving without waiting or not (if that makes a difference).


It looks like the most likely cause of what you are seeing is multiple 
calls to `move` the object to a location. The second of which will 
look like the first just ended because a second move ends the first 
and then the object is already at the location. Perhaps log when you 
are doing it?








--
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: A poor man's app updater

2018-08-03 Thread J. Landman Gay via use-livecode
On Android, "documents" is sandboxed with the app, so isn't accessible 
unless the device is rooted.


On 8/3/18 8:59 PM, Brian Milby via use-livecode wrote:

Yes, specialFolderPath would be good to use.  On a desktop, I'm not sure
that I'd want non-user facing data stored in the documents location unless
you configure it to be hidden.  Windows and Mac both have "support" folders
defined.  "library" would be the place on iOS.  Android doesn't have one
that makes sense off hand (other than "documents").  Linux doesn't have one
specified either, but you have access to the entire user's home directory
("home").

On Fri, Aug 3, 2018 at 8:05 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:


With the increasing use of sandboxing on Operating Systems (i.e. very
limited access on iOS and Android that will eventually be included in
desktop OSes), I might suggest using specialFolderPath("documents") and
creating a directory structure in there, say of the form
// and whatever else you need. Documents is
becoming the one and only place where a user has guaranteed permissions
to access the contents for both read and write.



On 8/3/2018 8:29 PM, Peter Bogdanoff via use-livecode wrote:

So, to store and access LC stacks and other files used by myApp that

must be periodically updated, does it make sense to put them into


macOS—Library/Application Support/myApp
Win—user/AppData/myApp

rather than in Applications or Program Files?

Are there any restrictions or downside to this?

Peter


On Aug 3, 2018, at 5:14 AM, Paul Dupuis via use-livecode <

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


On 8/3/2018 2:32 AM, Peter Bogdanoff via use-livecode wrote:

Hi,

To raise the issue again of updating Mac and Windows apps, I’m

referencing this thread between Graham and Jacqueline...


Can existing files in the user’s application directory be

saved/modified/replaced by my application?



The accurate answer is that it all depends upon the permissions of the
account running the software. Typically for most personal or home
computers, the user has administrative privs, but that is increasingly
not the case on university or company owned computers. On these, they
may not have permission to alter files in the Program Files (Win) or
Applications (OSX) folders.

In some cases, again depending on OS and permissions, you can alter the
folders contents directly. In others you application must launch a
process (another app) with elevated privs, where the OS asks the user
for permissions for the elevated privs, and then that app (if allowed)
can make changes.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your

subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your

subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




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


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




--
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: Move command on iOS

2018-08-03 Thread J. Landman Gay via use-livecode

Here's the relevant part of the script. There's only one "move" command:

put the long id of grp "iOSPicker" into tGrp
get the height of tGrp div 2
put the height of this cd - it into tDestV
show tGrp -- before updating text
wait 1 millisecond with messages
move tGrp to (item 1 of the loc of me),tDestV in 500 milliseconds

I put the wait command in there to see if it made any difference but it 
doesn't.


If the above isn't enough, it would be quicker if I could just send you 
my client's stack privately. Is that okay? I'll put in a bug report 
regardless.



On 8/3/18 8:27 PM, Monte Goulding via use-livecode wrote:

@Jacque I’ve had a look around the engine… would be interested to know if you 
are moving without waiting or not (if that makes a difference).

It looks like the most likely cause of what you are seeing is multiple calls to 
`move` the object to a location. The second of which will look like the first 
just ended because a second move ends the first and then the object is already 
at the location. Perhaps log when you are doing it?




--
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: valueDiff for arrays?

2018-08-03 Thread Brian Milby via use-livecode
Other than the fact that coding is fun :)

On Fri, Aug 3, 2018 at 8:15 PM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 08/03/2018 05:16 PM, Brian Milby via use-livecode wrote:
>
> Of course, then we have to figure out what to name the beast too...
>>
>
> LOL.
>
> But again, considering how easy it is to code this in LCS and how many
> different use cases there might be to take care of, I doubt it's worth
> fiddling with the engine code for this.
>
>
> --
>  Mark Wieder
>  ahsoftw...@gmail.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: A poor man's app updater

2018-08-03 Thread Brian Milby via use-livecode
Yes, specialFolderPath would be good to use.  On a desktop, I'm not sure
that I'd want non-user facing data stored in the documents location unless
you configure it to be hidden.  Windows and Mac both have "support" folders
defined.  "library" would be the place on iOS.  Android doesn't have one
that makes sense off hand (other than "documents").  Linux doesn't have one
specified either, but you have access to the entire user's home directory
("home").

On Fri, Aug 3, 2018 at 8:05 PM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> With the increasing use of sandboxing on Operating Systems (i.e. very
> limited access on iOS and Android that will eventually be included in
> desktop OSes), I might suggest using specialFolderPath("documents") and
> creating a directory structure in there, say of the form
> // and whatever else you need. Documents is
> becoming the one and only place where a user has guaranteed permissions
> to access the contents for both read and write.
>
>
>
> On 8/3/2018 8:29 PM, Peter Bogdanoff via use-livecode wrote:
> > So, to store and access LC stacks and other files used by myApp that
> must be periodically updated, does it make sense to put them into
> >
> > macOS—Library/Application Support/myApp
> > Win—user/AppData/myApp
> >
> > rather than in Applications or Program Files?
> >
> > Are there any restrictions or downside to this?
> >
> > Peter
> >
> >> On Aug 3, 2018, at 5:14 AM, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>
> >> On 8/3/2018 2:32 AM, Peter Bogdanoff via use-livecode wrote:
> >>> Hi,
> >>>
> >>> To raise the issue again of updating Mac and Windows apps, I’m
> referencing this thread between Graham and Jacqueline...
> >>>
> >>> Can existing files in the user’s application directory be
> saved/modified/replaced by my application?
> >>>
> >> The accurate answer is that it all depends upon the permissions of the
> >> account running the software. Typically for most personal or home
> >> computers, the user has administrative privs, but that is increasingly
> >> not the case on university or company owned computers. On these, they
> >> may not have permission to alter files in the Program Files (Win) or
> >> Applications (OSX) folders.
> >>
> >> In some cases, again depending on OS and permissions, you can alter the
> >> folders contents directly. In others you application must launch a
> >> process (another app) with elevated privs, where the OS asks the user
> >> for permissions for the elevated privs, and then that app (if allowed)
> >> can make changes.
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Move command on iOS

2018-08-03 Thread J. Landman Gay via use-livecode
I'm not using visual effects so it probably isn't that bug. I'll put in a 
report when I can get a test stack together. The simulator I'm using is set 
up for 11.4 so the problem is in at least iOS 11 and 12 both.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 3, 2018 7:42:31 PM Monte Goulding via use-livecode 
 wrote:


@Jacque there was this one also but that is visual effects only 
https://quality.livecode.com/show_bug.cgi?id=21434 



On 4 Aug 2018, at 10:18 am, Monte Goulding via use-livecode 
 wrote:


Hmm… I patched the crash at startup when not in acceleratedRendering mode 
for iOS 12. I don’t think it will have much to do with the move command in 
acceleratedRendering mode. I did recently fix something in 
acceleratedRendering mode in a stack that had a group coming in from the 
side that was doing some relayering… Oh… it’s possibly feasible that this 
is a manifestation of the redraw issue that Brahma found with groups. Could 
someone open a report with a sample stack and I can check if it’s working...


On 4 Aug 2018, at 9:49 am, MWCM via use-livecode 
 wrote:


Are you testing in iOS 12? This is the exact problem I’m having (that Monte 
just patched today).


Sounds like it should be fixed in 9.0.1.rc2


___
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: A poor man's app updater

2018-08-03 Thread J. Landman Gay via use-livecode
Apple specifies that apps should store their app-related data in their own 
folder inside Application Support, where you will always have permissions. 
You can also store prefs in the Preferences folder but it's discouraged in 
favor of App Support. LC has specialFolderPath("support") for that which 
works for both Mac and Windows. It would match what you suggested.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 3, 2018 7:31:18 PM Peter Bogdanoff via use-livecode 
 wrote:


So, to store and access LC stacks and other files used by myApp that must 
be periodically updated, does it make sense to put them into


macOS—Library/Application Support/myApp
Win—user/AppData/myApp

rather than in Applications or Program Files?

Are there any restrictions or downside to this?

Peter

On Aug 3, 2018, at 5:14 AM, Paul Dupuis via use-livecode 
 wrote:


On 8/3/2018 2:32 AM, Peter Bogdanoff via use-livecode wrote:

Hi,

To raise the issue again of updating Mac and Windows apps, I’m referencing 
this thread between Graham and Jacqueline...


Can existing files in the user’s application directory be 
saved/modified/replaced by my application?


The accurate answer is that it all depends upon the permissions of the
account running the software. Typically for most personal or home
computers, the user has administrative privs, but that is increasingly
not the case on university or company owned computers. On these, they
may not have permission to alter files in the Program Files (Win) or
Applications (OSX) folders.

In some cases, again depending on OS and permissions, you can alter the
folders contents directly. In others you application must launch a
process (another app) with elevated privs, where the OS asks the user
for permissions for the elevated privs, and then that app (if allowed)
can make changes.


___
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: Move command on iOS

2018-08-03 Thread Monte Goulding via use-livecode
@Jacque I’ve had a look around the engine… would be interested to know if you 
are moving without waiting or not (if that makes a difference).

It looks like the most likely cause of what you are seeing is multiple calls to 
`move` the object to a location. The second of which will look like the first 
just ended because a second move ends the first and then the object is already 
at the location. Perhaps log when you are doing it?

> On 4 Aug 2018, at 10:40 am, Monte Goulding via use-livecode 
>  wrote:
> 
> @Jacque there was this one also but that is visual effects only 
> https://quality.livecode.com/show_bug.cgi?id=21434 
> 
> 
>> On 4 Aug 2018, at 10:18 am, Monte Goulding via use-livecode 
>>  wrote:
>> 
>> Hmm… I patched the crash at startup when not in acceleratedRendering mode 
>> for iOS 12. I don’t think it will have much to do with the move command in 
>> acceleratedRendering mode. I did recently fix something in 
>> acceleratedRendering mode in a stack that had a group coming in from the 
>> side that was doing some relayering… Oh… it’s possibly feasible that this is 
>> a manifestation of the redraw issue that Brahma found with groups. Could 
>> someone open a report with a sample stack and I can check if it’s working...
>> 
>>> On 4 Aug 2018, at 9:49 am, MWCM via use-livecode 
>>>  wrote:
>>> 
>>> Are you testing in iOS 12? This is the exact problem I’m having (that Monte 
>>> just patched today). 
>>> 
>>> Sounds like it should be fixed in 9.0.1.rc2
>> 
>> ___
>> 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: valueDiff for arrays?

2018-08-03 Thread Mark Wieder via use-livecode

On 08/03/2018 05:16 PM, Brian Milby via use-livecode wrote:


Of course, then we have to figure out what to name the beast too...


LOL.

But again, considering how easy it is to code this in LCS and how many 
different use cases there might be to take care of, I doubt it's worth 
fiddling with the engine code for this.


--
 Mark Wieder
 ahsoftw...@gmail.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: A poor man's app updater

2018-08-03 Thread Paul Dupuis via use-livecode
With the increasing use of sandboxing on Operating Systems (i.e. very
limited access on iOS and Android that will eventually be included in
desktop OSes), I might suggest using specialFolderPath("documents") and
creating a directory structure in there, say of the form
// and whatever else you need. Documents is
becoming the one and only place where a user has guaranteed permissions
to access the contents for both read and write.



On 8/3/2018 8:29 PM, Peter Bogdanoff via use-livecode wrote:
> So, to store and access LC stacks and other files used by myApp that must be 
> periodically updated, does it make sense to put them into
>
> macOS—Library/Application Support/myApp
> Win—user/AppData/myApp
>
> rather than in Applications or Program Files?
>
> Are there any restrictions or downside to this?
>
> Peter
>
>> On Aug 3, 2018, at 5:14 AM, Paul Dupuis via use-livecode 
>>  wrote:
>>
>> On 8/3/2018 2:32 AM, Peter Bogdanoff via use-livecode wrote:
>>> Hi,
>>>
>>> To raise the issue again of updating Mac and Windows apps, I’m referencing 
>>> this thread between Graham and Jacqueline...
>>>
>>> Can existing files in the user’s application directory be 
>>> saved/modified/replaced by my application?
>>>
>> The accurate answer is that it all depends upon the permissions of the
>> account running the software. Typically for most personal or home
>> computers, the user has administrative privs, but that is increasingly
>> not the case on university or company owned computers. On these, they
>> may not have permission to alter files in the Program Files (Win) or
>> Applications (OSX) folders.
>>
>> In some cases, again depending on OS and permissions, you can alter the
>> folders contents directly. In others you application must launch a
>> process (another app) with elevated privs, where the OS asks the user
>> for permissions for the elevated privs, and then that app (if allowed)
>> can make changes.
>>
>>
>> ___
>> 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: A poor man's app updater

2018-08-03 Thread Brian Milby via use-livecode
/Library is going to have the same permission issue, but
/Users/username/Library... would be fine.

The down side is that the user can accidentally or intentionally mess with
stuff stored there more easily that something built into the app or stored
in the Applications/Program Files directories (although the Finder does
hide the Library folder in the go menu unless to hold down the option
key).  If it is more data related, then I think it is a great option.  For
code updates, I'll let others more experienced comment.

Brian

On Fri, Aug 3, 2018 at 7:29 PM, Peter Bogdanoff via use-livecode <
use-livecode@lists.runrev.com> wrote:

> So, to store and access LC stacks and other files used by myApp that must
> be periodically updated, does it make sense to put them into
>
> macOS—Library/Application Support/myApp
> Win—user/AppData/myApp
>
> rather than in Applications or Program Files?
>
> Are there any restrictions or downside to this?
>
> Peter
>
> > On Aug 3, 2018, at 5:14 AM, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > On 8/3/2018 2:32 AM, Peter Bogdanoff via use-livecode wrote:
> >> Hi,
> >>
> >> To raise the issue again of updating Mac and Windows apps, I’m
> referencing this thread between Graham and Jacqueline...
> >>
> >> Can existing files in the user’s application directory be
> saved/modified/replaced by my application?
> >>
> >
> > The accurate answer is that it all depends upon the permissions of the
> > account running the software. Typically for most personal or home
> > computers, the user has administrative privs, but that is increasingly
> > not the case on university or company owned computers. On these, they
> > may not have permission to alter files in the Program Files (Win) or
> > Applications (OSX) folders.
> >
> > In some cases, again depending on OS and permissions, you can alter the
> > folders contents directly. In others you application must launch a
> > process (another app) with elevated privs, where the OS asks the user
> > for permissions for the elevated privs, and then that app (if allowed)
> > can make changes.
> >
> >
> > ___
> > 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: Move command on iOS

2018-08-03 Thread Monte Goulding via use-livecode
@Jacque there was this one also but that is visual effects only 
https://quality.livecode.com/show_bug.cgi?id=21434 


> On 4 Aug 2018, at 10:18 am, Monte Goulding via use-livecode 
>  wrote:
> 
> Hmm… I patched the crash at startup when not in acceleratedRendering mode for 
> iOS 12. I don’t think it will have much to do with the move command in 
> acceleratedRendering mode. I did recently fix something in 
> acceleratedRendering mode in a stack that had a group coming in from the side 
> that was doing some relayering… Oh… it’s possibly feasible that this is a 
> manifestation of the redraw issue that Brahma found with groups. Could 
> someone open a report with a sample stack and I can check if it’s working...
> 
>> On 4 Aug 2018, at 9:49 am, MWCM via use-livecode 
>>  wrote:
>> 
>> Are you testing in iOS 12? This is the exact problem I’m having (that Monte 
>> just patched today). 
>> 
>> Sounds like it should be fixed in 9.0.1.rc2
> 
> ___
> 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: A poor man's app updater

2018-08-03 Thread Peter Bogdanoff via use-livecode
So, to store and access LC stacks and other files used by myApp that must be 
periodically updated, does it make sense to put them into

macOS—Library/Application Support/myApp
Win—user/AppData/myApp

rather than in Applications or Program Files?

Are there any restrictions or downside to this?

Peter

> On Aug 3, 2018, at 5:14 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 8/3/2018 2:32 AM, Peter Bogdanoff via use-livecode wrote:
>> Hi,
>> 
>> To raise the issue again of updating Mac and Windows apps, I’m referencing 
>> this thread between Graham and Jacqueline...
>> 
>> Can existing files in the user’s application directory be 
>> saved/modified/replaced by my application?
>> 
> 
> The accurate answer is that it all depends upon the permissions of the
> account running the software. Typically for most personal or home
> computers, the user has administrative privs, but that is increasingly
> not the case on university or company owned computers. On these, they
> may not have permission to alter files in the Program Files (Win) or
> Applications (OSX) folders.
> 
> In some cases, again depending on OS and permissions, you can alter the
> folders contents directly. In others you application must launch a
> process (another app) with elevated privs, where the OS asks the user
> for permissions for the elevated privs, and then that app (if allowed)
> can make changes.
> 
> 
> ___
> 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: Move command on iOS

2018-08-03 Thread Monte Goulding via use-livecode
Hmm… I patched the crash at startup when not in acceleratedRendering mode for 
iOS 12. I don’t think it will have much to do with the move command in 
acceleratedRendering mode. I did recently fix something in acceleratedRendering 
mode in a stack that had a group coming in from the side that was doing some 
relayering… Oh… it’s possibly feasible that this is a manifestation of the 
redraw issue that Brahma found with groups. Could someone open a report with a 
sample stack and I can check if it’s working...

> On 4 Aug 2018, at 9:49 am, MWCM via use-livecode 
>  wrote:
> 
> Are you testing in iOS 12? This is the exact problem I’m having (that Monte 
> just patched today). 
> 
> Sounds like it should be fixed in 9.0.1.rc2

___
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: valueDiff for arrays?

2018-08-03 Thread Brian Milby via use-livecode
I was kind of thinking along those lines too - if the values were wanted.

Looking at "MCArraysDoUnion" in exec-array.cpp, it would be pretty simple
to add code that would do a modified union.  The only thing removed would
be matching keys with matching values.  That is only if you want to keep
the pLeft values though.  If you need to preserve both values or indicate
which keys had differing values, then it is more complicated.  The code to
add the syntax and other stuff isn't something I know off hand, but
wouldn't be too difficult.

Of course, then we have to figure out what to name the beast too...

On Fri, Aug 3, 2018 at 6:54 PM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 08/03/2018 04:26 PM, Brian Milby via use-livecode wrote:
>
>> "symmetric difference" will get you the first part (unique keys)
>>
>
> Nice. One-stop shopping.
>
>
>> You could shorten the compare loop by using "intersect" (to get common
>> keys)
>>
>>
>> function getKeys pLeft, pRight
>> local tIntersect, tResult
>>
>> intersect pLeft with pRight into tIntersect
>> repeat for each key tKey in tIntersect
>>if pLeft[tKey] is not pRight[tKey] then
>>   delete variable pRight[tKey]
>>end if
>> end repeat
>>
>> symmetric difference pLeft with pRight into tResult
>> return the keys of tResult
>> end getKeys
>>
>
> I think Richard was aiming for (if I can put words in his mouth here) the
> set of just the elements with duplicate keys but different values. Here's
> my take on that, returning an array with two subarrays:
>
> function getKeys pLeft, pRight
>local tIntersect, tResult
>
>intersect pLeft with pRight into tIntersect
>repeat for each key tKey in tIntersect
>   if pLeft[tKey] is pRight[tKey] then
>  delete variable pRight[tKey]
>   end if
>end repeat
>put tIntersect into tResult["left"]
>intersect pRight with tIntersect into tResult["right"]
>return tResult
> end getKeys
>
>
>
> --
>  Mark Wieder
>  ahsoftw...@gmail.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Drag Drop State of Affairs

2018-08-03 Thread J. Landman Gay via use-livecode

Try checking the topstack, that's another one that sometimes resets.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 3, 2018 5:22:36 PM Bob Sneidar via use-livecode 
 wrote:


No tamalies Jacque. With the stack unresponsive, I type "put the short name 
of the defaultStack" into the message box and it's correct.


Bob S


On Aug 3, 2018, at 14:56 , Bob Sneidar via use-livecode 
 wrote:


I'll check that. I'll put the defaultStack before the operation and then 
after and see if it changes.


Bob S



___
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: valueDiff for arrays?

2018-08-03 Thread Mark Wieder via use-livecode

On 08/03/2018 04:26 PM, Brian Milby via use-livecode wrote:

"symmetric difference" will get you the first part (unique keys)


Nice. One-stop shopping.



You could shorten the compare loop by using "intersect" (to get common keys)


function getKeys pLeft, pRight
local tIntersect, tResult

intersect pLeft with pRight into tIntersect
repeat for each key tKey in tIntersect
   if pLeft[tKey] is not pRight[tKey] then
  delete variable pRight[tKey]
   end if
end repeat

symmetric difference pLeft with pRight into tResult
return the keys of tResult
end getKeys


I think Richard was aiming for (if I can put words in his mouth here) 
the set of just the elements with duplicate keys but different values. 
Here's my take on that, returning an array with two subarrays:


function getKeys pLeft, pRight
   local tIntersect, tResult

   intersect pLeft with pRight into tIntersect
   repeat for each key tKey in tIntersect
  if pLeft[tKey] is pRight[tKey] then
 delete variable pRight[tKey]
  end if
   end repeat
   put tIntersect into tResult["left"]
   intersect pRight with tIntersect into tResult["right"]
   return tResult
end getKeys


--
 Mark Wieder
 ahsoftw...@gmail.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: Move command on iOS

2018-08-03 Thread MWCM via use-livecode
Are you testing in iOS 12? This is the exact problem I’m having (that Monte 
just patched today). 

Sounds like it should be fixed in 9.0.1.rc2

--Andrew Bell
--Sent from my iPhone

>>> 
> From: "J. Landman Gay" 
> To: LiveCode Mailing List 
> Subject: Move command on iOS
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Anyone else having trouble with the move command on iOS? I'm sliding a 
> group into view, which works the first time, and after that it starts to 
> move and then immediately jumps to its destination without any 
> animation. It works fine in the IDE.
> 
> AccleratedRendering is true and the group layermode is "dynamic". I 
> don't have an actual phone to try it on, so maybe this is a simulator 
> problem?
> 
> -- 
> 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: valueDiff for arrays?

2018-08-03 Thread Brian Milby via use-livecode
(As Mark said, if the values are different, which value would you want in
the array?)
___
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: valueDiff for arrays?

2018-08-03 Thread Brian Milby via use-livecode
"symmetric difference" will get you the first part (unique keys)

You could shorten the compare loop by using "intersect" (to get common keys)


function getKeys pLeft, pRight
   local tIntersect, tResult

   intersect pLeft with pRight into tIntersect
   repeat for each key tKey in tIntersect
  if pLeft[tKey] is not pRight[tKey] then
 delete variable pRight[tKey]
  end if
   end repeat

   symmetric difference pLeft with pRight into tResult
   return the keys of tResult
end getKeys

On Fri, Aug 3, 2018 at 5:54 PM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 08/03/2018 10:40 AM, Richard Gaskin via use-livecode wrote:
>
>> We have a command for obtaining the difference between arrays, where
>> "difference" is defined as having different keys.
>>
>> What I could use at the moment is a means of obtaining an array which is
>> the difference is both keys present in one but not in the other, and values
>> that are different for those elements where they keys are present in both.
>>
>
> Considering how easy the first part is to code, I doubt a feature request
> would get a second glance.
>
> function arrayDifferences pArray1, pArray2
>local tDiff1, tDiff2, tDiffs
>
>difference pArray1 with pArray2 into tDiff1
>difference pArray2 with pArray1 into tDiff2
>union tDiff1 with tDiff2 into tDiffs
>return tDiffs
> end arrayDifferences
>
> For the second part, I'm not sure what the output would look like... do
> you want an array with duplicate keys? A multidimensional array with the
> same keys in each but different values? What's the use case?
>
> --
>  Mark Wieder
>  ahsoftw...@gmail.com
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: CEF browser question

2018-08-03 Thread Monte Goulding via use-livecode


> On 4 Aug 2018, at 2:35 am, prothero--- via use-livecode 
>  wrote:
> 
> As I was working on and testing the browser widget, which seemed to fail when 
> tested on my iPhone, I thought the problem was with the browser widget, but 
> it turned out to be that I was trying to link to a web site that wouldn’t let 
> me load it because I was using a vpn on my iPhone. The vpn wouldn’t let them 
> load their tracker. Nasty.

As Ralph mentioned you are likely hitting ATS issues so try disabling that. Not 
sure who’s tracker you are referring to.
> 
> So, I thought it was a browser problem and looked into using the CEF browser. 
> Docs say it is no longer supported in LC9 versions, but I see the entry in 
> the inclusions. Is there a reason this inclusion is relevant, or am I missing 
> something?

CEF is no longer supported in revBrowser or the browser widget on mac but is 
still used for the browser widget on windows and linux. It has never been used 
on iOS and I don’t think ever will be.

Cheers

Monte
___
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: valueDiff for arrays?

2018-08-03 Thread Mark Wieder via use-livecode

On 08/03/2018 10:40 AM, Richard Gaskin via use-livecode wrote:
We have a command for obtaining the difference between arrays, where 
"difference" is defined as having different keys.


What I could use at the moment is a means of obtaining an array which is 
the difference is both keys present in one but not in the other, and 
values that are different for those elements where they keys are present 
in both.


Considering how easy the first part is to code, I doubt a feature 
request would get a second glance.


function arrayDifferences pArray1, pArray2
   local tDiff1, tDiff2, tDiffs

   difference pArray1 with pArray2 into tDiff1
   difference pArray2 with pArray1 into tDiff2
   union tDiff1 with tDiff2 into tDiffs
   return tDiffs
end arrayDifferences

For the second part, I'm not sure what the output would look like... do 
you want an array with duplicate keys? A multidimensional array with the 
same keys in each but different values? What's the use case?


--
 Mark Wieder
 ahsoftw...@gmail.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: Drag Drop State of Affairs

2018-08-03 Thread Bob Sneidar via use-livecode
No tamalies Jacque. With the stack unresponsive, I type "put the short name of 
the defaultStack" into the message box and it's correct. 

Bob S


> On Aug 3, 2018, at 14:56 , Bob Sneidar via use-livecode 
>  wrote:
> 
> I'll check that. I'll put the defaultStack before the operation and then 
> after and see if it changes. 
> 
> Bob S


___
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: Using the $_POST global in LiveCode server

2018-08-03 Thread Mike Bonner via use-livecode
Still haven't got a test set up.  So trying the quicker easier way.. Hey
everyone, in which versions of server are sessions not broken?

On Thu, Aug 2, 2018 at 6:17 PM Mike Bonner  wrote:

> Version 7.1.0 doesn't seem to work.  (the version used by on-rev.)  Pretty
> sure its been in this non-working condition for a while.  (again, my faulty
> memory might be wrong)   I'll try and set up a test for later versions, but
> pretty sure things were still working in the 6.x range of server engines.
>
> On Thu, Aug 2, 2018 at 6:03 PM Mike Bonner  wrote:
>
>> Its been a while since I messed with sessions, but that looks right.  I
>> seem to vaguely remember that there is some version of LC server where
>> sessions is broken, but I can't recall for sure.  What version of server
>> are you running?   (IIRC sessions was implemented some time around 4.6.3?
>> And a later version was broken and later fixed)  I'll see if I can relocate
>> the info.
>>
>> On Thu, Aug 2, 2018 at 5:53 PM Tim Selander via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> Thanks, Mike.
>>>
>>> This seemed like a good hint/possible solution.
>>> > Another though has just occurred to me also..  If you use session
>>> > variables, you can store the search term in the session, and since the
>>> > browser will re-post on reload, if $_POST and your session variable
>>> contain
>>> > the same search term, its possible (likely?) that it was a reload
>>> rather
>>> > than a new search, then don't do the search. Not sure if this is
>>> helpful,
>>> However, when I tried
>>> >> start session
>>> put "test" into $_SESSION["keyword"]
>>> put $_SESSION[keyword]
>>> stop session
>>> ?>
>>> and the server returned the error
>>>
>>> file "/home/pba/public_html/lifelinesearch.lc"
>>>row 2, col 1:
>>>
>>> This snippet is at the very top of the page, so row 2 is "start session."
>>>
>>> Am I misundertanding the syntax of 'session'?
>>>
>>> Thanks,
>>>
>>> Tim
>>>
>>>
>>>
>>> ___
>>> 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: Drag Drop State of Affairs

2018-08-03 Thread Bob Sneidar via use-livecode
I'll check that. I'll put the defaultStack before the operation and then after 
and see if it changes. 

Bob S


> On Aug 3, 2018, at 11:42 , J. Landman Gay via use-livecode 
>  wrote:
> 
> Could the defaultstack have changed? It sounds a bit like that.


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


Move command on iOS

2018-08-03 Thread J. Landman Gay via use-livecode
Anyone else having trouble with the move command on iOS? I'm sliding a 
group into view, which works the first time, and after that it starts to 
move and then immediately jumps to its destination without any 
animation. It works fine in the IDE.


AccleratedRendering is true and the group layermode is "dynamic". I 
don't have an actual phone to try it on, so maybe this is a simulator 
problem?


--
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: put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode
While *verified* encryption may be “required” by the major browsers and others 
for preventing "Man In the Middle” attacks, it’s still a hair ball that a lot 
of sites still haven’t figured out properly… and THAT is the big problem. 

Cost, expertise, hosting, maintenance of certs, etc. all contribute to it not 
being the standard that folks would like it to be. Free certs and tools to make 
it easier to implement are helping, but there is a long way to go. I’m sure it 
will get there at some point.

I am glad to see that LC is supporting the verification of certs, good stuff. A 
few years ago, I ran into an issue where it couldn’t verify a valid, verified 
cert from a major vendor.

I do like your idea though;)

Steve

> On Aug 3, 2018, at 4:51 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> When working with web servers, encryption is in fact ALWAYS required, because 
> if someone can get at your web server they can plant drive by malware. 
> Anything exposed to the internet requires modern encryption, and it can be 
> argued that anything exposed to ANY network requires it. 
> 
> The alternative would have been to form an international squad of specialized 
> assasins to hunt down every known hacker and purveyor of malware, and leave 
> their tortured maimed bodies on the steps of the capital buildings of 
> wherever they are from, so everyone gets the message. Unfortunately, the 
> legal ramifications would have been too much to overcome. 
> 
> Bob S
> 
> 
>> On Aug 3, 2018, at 13:45 , Stephen MacLean via use-livecode 
>>  wrote:
>> 
>> Yes, what a nightmare!
>> 
>> This is going to be a nightmare for years to come… I understand the desire 
>> for secure communications, but it’s not always required or even beneficial.
>> 
>> Just as those astronauts had better have a fall back plan, so should we:)
>> 
>> Steve
> 
> ___
> 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: put URL oddity

2018-08-03 Thread Bob Sneidar via use-livecode
When working with web servers, encryption is in fact ALWAYS required, because 
if someone can get at your web server they can plant drive by malware. Anything 
exposed to the internet requires modern encryption, and it can be argued that 
anything exposed to ANY network requires it. 

The alternative would have been to form an international squad of specialized 
assasins to hunt down every known hacker and purveyor of malware, and leave 
their tortured maimed bodies on the steps of the capital buildings of wherever 
they are from, so everyone gets the message. Unfortunately, the legal 
ramifications would have been too much to overcome. 

Bob S


> On Aug 3, 2018, at 13:45 , Stephen MacLean via use-livecode 
>  wrote:
> 
> Yes, what a nightmare!
> 
> This is going to be a nightmare for years to come… I understand the desire 
> for secure communications, but it’s not always required or even beneficial.
> 
> Just as those astronauts had better have a fall back plan, so should we:)
> 
> Steve

___
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: put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode
Yes, what a nightmare!

This is going to be a nightmare for years to come… I understand the desire for 
secure communications, but it’s not always required or even beneficial.

Just as those astronauts had better have a fall back plan, so should we:)

Steve

> On Aug 3, 2018, at 4:40 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> And we want to send men to another solar system! Can you imagine 8 years out, 
> you need to make a minor course adjustment, but the computer keeps saying the 
> certificate is expired??
> 
> Bob S
> 
> 
>> On Aug 3, 2018, at 13:23 , Stephen MacLean via use-livecode 
>>  wrote:
>> 
>> Ok, found it! In this case, you must set:
>> 
>> libURLSetSSLVerification true
>> 
>> Otherwise you get that error, and in my case, nothing is returned, not even 
>> the error, at least with out using that tool.
>> 
>> Grrr!!! In a world where not everyone is using SSL even today, or using it 
>> properly, this is always going to be a problem… Ah well!
>> 
>> Thanks for all the help everyone!!!
>> 
>> Best,
>> 
>> Steve
> 
> ___
> 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: put URL oddity

2018-08-03 Thread Bob Sneidar via use-livecode
And we want to send men to another solar system! Can you imagine 8 years out, 
you need to make a minor course adjustment, but the computer keeps saying the 
certificate is expired??

Bob S


> On Aug 3, 2018, at 13:23 , Stephen MacLean via use-livecode 
>  wrote:
> 
> Ok, found it! In this case, you must set:
> 
> libURLSetSSLVerification true
> 
> Otherwise you get that error, and in my case, nothing is returned, not even 
> the error, at least with out using that tool.
> 
> Grrr!!! In a world where not everyone is using SSL even today, or using it 
> properly, this is always going to be a problem… Ah well!
> 
> Thanks for all the help everyone!!!
> 
> Best,
> 
> Steve

___
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: put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode
On Aug 3, 2018, at 4:12 PM, Stephen MacLean via use-livecode 
 wrote:
> 
> 
>> On Aug 3, 2018, at 3:54 PM, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> On 08/03/2018 10:07 AM, Stephen MacLean via use-livecode wrote:
>>> Hi All,
>>> I’m experiencing at put URL oddity:
>>> Entering: put URL "https://www.google.com” into the message box returns the 
>>> HtML for the google home page, which is what I expect.
>>> Entering: put URL "https://www.milfordmirror.com/“ returns absolutely 
>>> nothing, no errors, no content whatsoever. Just empty. Not what I expect.
>> 
>> Using Chrome's developer tools I can see no redirection going on here.
>> 
>> Watch your use of double quotes there. Your final character is a 'smart' 
>> quote (%E2). If I fix that then the put statement works fine.
>> 
> 
> Thanks Mark, but that quote here is a regular quote. And I get nothing, even 
> if I type the whole thing into the message box, which is what I’ve been doing 
> to test.
> 
> Using Charles W’s neat little tools for debugging requests 
> (https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode 
> ) I get 
> that error:
> 
> _proxyForURL_proxyForURL end with none foundProxy for URL:
> Rebuilt URL to: https://www.milfordmirror.com/
> 
> Hostname www.milfordmirror.com was found in DNS cache
> 
> Trying 104.31.78.67...
> 
> TCP_NODELAY set
> 
> Connected to www.milfordmirror.com (104.31.78.67) port 443 (#50)
> 
> WARNING: disabling hostname validation also disables SNI.
> 
> SSL re-using session ID
> 
> SSL peer handshake failed, the server most likely requires a client 
> certificate to connect
> 
> Closing connection 50
> 
> Using his tool for TS Net 
> (https://downloads.techstrategies.com.au/tsnet/sample_sync_stack.livecode) I 
> get:
> 
> tsneterr: (35) SSL peer handshake failed, the server most likely requires a 
> client certificate to connect
> 
> I’m all for figuring this out, but something seems to be very different 
> between our results.
> 
> Quitting LC has no effect as well.
> 
> I’m running MacOS 10.12.6
> 
> 


Ok, found it! In this case, you must set:

 libURLSetSSLVerification true

Otherwise you get that error, and in my case, nothing is returned, not even the 
error, at least with out using that tool.

Grrr!!! In a world where not everyone is using SSL even today, or using it 
properly, this is always going to be a problem… Ah well!

Thanks for all the help everyone!!!

Best,

Steve

___
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: put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode

> On Aug 3, 2018, at 3:54 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 08/03/2018 10:07 AM, Stephen MacLean via use-livecode wrote:
>> Hi All,
>> I’m experiencing at put URL oddity:
>> Entering: put URL "https://www.google.com” into the message box returns the 
>> HtML for the google home page, which is what I expect.
>> Entering: put URL "https://www.milfordmirror.com/“ returns absolutely 
>> nothing, no errors, no content whatsoever. Just empty. Not what I expect.
> 
> Using Chrome's developer tools I can see no redirection going on here.
> 
> Watch your use of double quotes there. Your final character is a 'smart' 
> quote (%E2). If I fix that then the put statement works fine.
> 

Thanks Mark, but that quote here is a regular quote. And I get nothing, even if 
I type the whole thing into the message box, which is what I’ve been doing to 
test.

Using Charles W’s neat little tools for debugging requests 
(https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode 
) I get 
that error:

_proxyForURL_proxyForURL end with none foundProxy for URL:
Rebuilt URL to: https://www.milfordmirror.com/

Hostname www.milfordmirror.com was found in DNS cache

Trying 104.31.78.67...

TCP_NODELAY set

Connected to www.milfordmirror.com (104.31.78.67) port 443 (#50)

WARNING: disabling hostname validation also disables SNI.

SSL re-using session ID

SSL peer handshake failed, the server most likely requires a client certificate 
to connect

Closing connection 50

Using his tool for TS Net 
(https://downloads.techstrategies.com.au/tsnet/sample_sync_stack.livecode) I 
get:

tsneterr: (35) SSL peer handshake failed, the server most likely requires a 
client certificate to connect

I’m all for figuring this out, but something seems to be very different between 
our results.

Quitting LC has no effect as well.

I’m running MacOS 10.12.6

Thanks,

Steve


___
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: put URL oddity

2018-08-03 Thread Mark Wieder via use-livecode

On 08/03/2018 10:07 AM, Stephen MacLean via use-livecode wrote:

Hi All,

I’m experiencing at put URL oddity:

Entering: put URL "https://www.google.com” into the message box returns the 
HtML for the google home page, which is what I expect.

Entering: put URL "https://www.milfordmirror.com/“ returns absolutely nothing, 
no errors, no content whatsoever. Just empty. Not what I expect.


Using Chrome's developer tools I can see no redirection going on here.

Watch your use of double quotes there. Your final character is a 'smart' 
quote (%E2). If I fix that then the put statement works fine.


--
 Mark Wieder
 ahsoftw...@gmail.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: put URL oddity

2018-08-03 Thread Brian Milby via use-livecode
Pretty strange as I do get a response from both http and https
On Aug 3, 2018, 2:13 PM -0500, Stephen MacLean via use-livecode 
, wrote:
> Thanks Tom, it defaults to true, but even setting it, still nothing returned 
> :(
>
> > On Aug 3, 2018, at 2:49 PM, Tom Glod via use-livecode 
> >  wrote:
> >
> > i should have mentioned in you original reply... check out
> > libURLFollowHttpRedirects in dictionary ... never had to use it but i
> > suppose thats what its for.
> >
> >
> > On Fri, Aug 3, 2018 at 2:46 PM, Stephen MacLean via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > Thanks, I think that it is as Tom mentioned a re-direct. That site is
> > built using wordpress, and that’s most of what WP does.
> > >
> > > So that begs the question, how do I get the put URL command to follow a
> > redirect?
> > >
> > > Thanks,
> > >
> > > Steve
> > >
> > > > On Aug 3, 2018, at 2:41 PM, Peter Bogdanoff via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > > >
> > > > For what it’s worth:
> > > >
> > > > Using the URLs of the other affiliated newspaper sites at the bottom of
> > the Milford Mirror page also don’t return anything in the message box.
> > > >
> > > > Peter
> > > >
> > > > > On Aug 3, 2018, at 11:24 AM, Tom Glod via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > > > >
> > > > > maybe the url is a redirect and your request is not following it.
> > > > >
> > > > > On Fri, Aug 3, 2018 at 1:49 PM, Stephen MacLean via use-livecode <
> > > > > use-livecode@lists.runrev.com> wrote:
> > > > >
> > > > > > Hi Brian,
> > > > > >
> > > > > > Thanks for the reply, but I’m confused… the protocol is there:
> > https://
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Steve
> > > > > >
> > > > > > > On Aug 3, 2018, at 1:18 PM, Brian Milby via use-livecode <
> > > > > > use-livecode@lists.runrev.com> wrote:
> > > > > > >
> > > > > > > For me I have to include the protocol. So the “http://“ needs to 
> > > > > > > be
> > > > > > there to get any output.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Brian
> > > > > > > On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode <
> > > > > > use-livecode@lists.runrev.com>, wrote:
> > > > > > > > Hi All,
> > > > > > > >
> > > > > > > > I’m experiencing at put URL oddity:
> > > > > > > >
> > > > > > > > Entering: put URL "https://www.google.com” into the message box
> > > > > > returns the HtML for the google home page, which is what I expect.
> > > > > > > >
> > > > > > > > Entering: put URL "https://www.milfordmirror.com/“ returns
> > absolutely
> > > > > > nothing, no errors, no content whatsoever. Just empty. Not what I
> > expect.
> > > > > > > >
> > > > > > > > The URL is valid, put it into a browser and you get a page.
> > > > > > > >
> > > > > > > > Set the url of a browser widget and you get the page.
> > > > > > > >
> > > > > > > > I’m wondering if I need to set httpHeaders to get this to return
> > > > > > something, but have no idea what that might be.
> > > > > > > >
> > > > > > > > Has anyone experienced this before and if so, how did you work
> > around
> > > > > > it?
> > > > > > > >
> > > > > > > > TIA,
> > > > > > > >
> > > > > > > > Steve MacLean
> > > > > > > >
> > > > > > > > LC 9.0.1 RC1 Business
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ___
> > > > > > > > use-livecode mailing list
> > > > > > > > use-livecode@lists.runrev.com
> > > > > > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > > > subscription preferences:
> > > > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > > > > > ___
> > > > > > > use-livecode mailing list
> > > > > > > use-livecode@lists.runrev.com
> > > > > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > > > subscription preferences:
> > > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > > > >
> > > > > >
> > > > > >
> > > > > > ___
> > > > > > use-livecode mailing list
> > > > > > use-livecode@lists.runrev.com
> > > > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > > > subscription preferences:
> > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > > > >
> > > > > ___
> > > > > use-livecode mailing list
> > > > > use-livecode@lists.runrev.com
> > > > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > >
> > > >
> > > > ___
> > > > use-livecode mailing list
> > > > use-livecode@lists.runrev.com
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > >
> > >
> > > 

Re: put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode
Ok, so dug a bit deeper into this using TSNet.

the result I’m getting back is:

tsneterr: (35) SSL peer handshake failed, the server most likely requires a 
client certificate to connect

So it looks like the connection itself is being rejected.

Some googling came across some of the same issues with CURL, which IRC, TSNet 
uses??

Adding tsNetVerifySSLPeer false to disable SSL peer verification doesn’t help 
either.

Doesn’t solve the problem either.

Help from Charles W or someone else would be greatly appreciated.

Thanks,

Steve MacLean

> On Aug 3, 2018, at 3:13 PM, Stephen MacLean via use-livecode 
>  wrote:
> 
> Thanks Tom, it defaults to true, but even setting it, still nothing returned 
> :(
> 
>> On Aug 3, 2018, at 2:49 PM, Tom Glod via use-livecode 
>>  wrote:
>> 
>> i should have mentioned in you original reply... check out
>> libURLFollowHttpRedirects in dictionary ... never had to use it but i
>> suppose thats what its for.
>> 
>> 
>> 
 Hi All,
 
 I’m experiencing at put URL oddity:
 
 Entering: put URL "https://www.google.com” into the message box
>> returns the HtML for the google home page, which is what I expect.
 
 Entering: put URL "https://www.milfordmirror.com/“ returns
>> absolutely
>> nothing, no errors, no content whatsoever. Just empty. Not what I
>> expect.
 
 The URL is valid, put it into a browser and you get a page.
 
 Set the url of a browser widget and you get the page.
 
 I’m wondering if I need to set httpHeaders to get this to return
>> something, but have no idea what that might be.
 
 Has anyone experienced this before and if so, how did you work
>> around
>> it?
 
 TIA,
 
 Steve MacLean
 
 LC 9.0.1 RC1 Business
 

___
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: put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode
Thanks Tom, it defaults to true, but even setting it, still nothing returned :(

> On Aug 3, 2018, at 2:49 PM, Tom Glod via use-livecode 
>  wrote:
> 
> i should have mentioned in you original reply... check out
> libURLFollowHttpRedirects in dictionary ... never had to use it but i
> suppose thats what its for.
> 
> 
> On Fri, Aug 3, 2018 at 2:46 PM, Stephen MacLean via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>> 
>> Thanks, I think that it is as Tom mentioned a re-direct. That site is
> built using wordpress, and that’s most of what WP does.
>> 
>> So that begs the question, how do I get the  put URL command to follow a
> redirect?
>> 
>> Thanks,
>> 
>> Steve
>> 
>>> On Aug 3, 2018, at 2:41 PM, Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>>> 
>>> For what it’s worth:
>>> 
>>> Using the URLs of the other affiliated newspaper sites at the bottom of
> the Milford Mirror page also don’t return anything in the message box.
>>> 
>>> Peter
>>> 
 On Aug 3, 2018, at 11:24 AM, Tom Glod via use-livecode <
> use-livecode@lists.runrev.com> wrote:
 
 maybe the url is a redirect and your request is not following it.
 
 On Fri, Aug 3, 2018 at 1:49 PM, Stephen MacLean via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
> Hi Brian,
> 
> Thanks for the reply, but I’m confused… the protocol is there:
> https://
> 
> Thanks,
> 
> Steve
> 
>> On Aug 3, 2018, at 1:18 PM, Brian Milby via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>> 
>> For me I have to include the protocol. So the “http://“ needs to be
> there to get any output.
>> 
>> Thanks,
>> Brian
>> On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
>>> Hi All,
>>> 
>>> I’m experiencing at put URL oddity:
>>> 
>>> Entering: put URL "https://www.google.com” into the message box
> returns the HtML for the google home page, which is what I expect.
>>> 
>>> Entering: put URL "https://www.milfordmirror.com/“ returns
> absolutely
> nothing, no errors, no content whatsoever. Just empty. Not what I
> expect.
>>> 
>>> The URL is valid, put it into a browser and you get a page.
>>> 
>>> Set the url of a browser widget and you get the page.
>>> 
>>> I’m wondering if I need to set httpHeaders to get this to return
> something, but have no idea what that might be.
>>> 
>>> Has anyone experienced this before and if so, how did you work
> around
> it?
>>> 
>>> TIA,
>>> 
>>> Steve MacLean
>>> 
>>> LC 9.0.1 RC1 Business
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>> 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: put URL oddity

2018-08-03 Thread Tom Glod via use-livecode
i should have mentioned in you original reply... check out
libURLFollowHttpRedirects in dictionary ... never had to use it but i
suppose thats what its for.


On Fri, Aug 3, 2018 at 2:46 PM, Stephen MacLean via use-livecode <
use-livecode@lists.runrev.com> wrote:
>
> Thanks, I think that it is as Tom mentioned a re-direct. That site is
built using wordpress, and that’s most of what WP does.
>
> So that begs the question, how do I get the  put URL command to follow a
redirect?
>
> Thanks,
>
> Steve
>
> > On Aug 3, 2018, at 2:41 PM, Peter Bogdanoff via use-livecode <
use-livecode@lists.runrev.com> wrote:
> >
> > For what it’s worth:
> >
> > Using the URLs of the other affiliated newspaper sites at the bottom of
the Milford Mirror page also don’t return anything in the message box.
> >
> > Peter
> >
> >> On Aug 3, 2018, at 11:24 AM, Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:
> >>
> >> maybe the url is a redirect and your request is not following it.
> >>
> >> On Fri, Aug 3, 2018 at 1:49 PM, Stephen MacLean via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> Hi Brian,
> >>>
> >>> Thanks for the reply, but I’m confused… the protocol is there:
https://
> >>>
> >>> Thanks,
> >>>
> >>> Steve
> >>>
>  On Aug 3, 2018, at 1:18 PM, Brian Milby via use-livecode <
> >>> use-livecode@lists.runrev.com> wrote:
> 
>  For me I have to include the protocol. So the “http://“ needs to be
> >>> there to get any output.
> 
>  Thanks,
>  Brian
>  On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode <
> >>> use-livecode@lists.runrev.com>, wrote:
> > Hi All,
> >
> > I’m experiencing at put URL oddity:
> >
> > Entering: put URL "https://www.google.com” into the message box
> >>> returns the HtML for the google home page, which is what I expect.
> >
> > Entering: put URL "https://www.milfordmirror.com/“ returns
absolutely
> >>> nothing, no errors, no content whatsoever. Just empty. Not what I
expect.
> >
> > The URL is valid, put it into a browser and you get a page.
> >
> > Set the url of a browser widget and you get the page.
> >
> > I’m wondering if I need to set httpHeaders to get this to return
> >>> something, but have no idea what that might be.
> >
> > Has anyone experienced this before and if so, how did you work
around
> >>> it?
> >
> > TIA,
> >
> > Steve MacLean
> >
> > LC 9.0.1 RC1 Business
> >
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>  ___
>  use-livecode mailing list
>  use-livecode@lists.runrev.com
>  Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
>  http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >>>
> >>>
> >>> ___
> >>> use-livecode mailing list
> >>> use-livecode@lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> 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: put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode
Thanks, I think that it is as Tom mentioned a re-direct. That site is built 
using wordpress, and that’s most of what WP does.

So that begs the question, how do I get the  put URL command to follow a 
redirect?

Thanks,

Steve

> On Aug 3, 2018, at 2:41 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> For what it’s worth:
> 
> Using the URLs of the other affiliated newspaper sites at the bottom of the 
> Milford Mirror page also don’t return anything in the message box.
> 
> Peter
> 
>> On Aug 3, 2018, at 11:24 AM, Tom Glod via use-livecode 
>>  wrote:
>> 
>> maybe the url is a redirect and your request is not following it.
>> 
>> On Fri, Aug 3, 2018 at 1:49 PM, Stephen MacLean via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Hi Brian,
>>> 
>>> Thanks for the reply, but I’m confused… the protocol is there: https://
>>> 
>>> Thanks,
>>> 
>>> Steve
>>> 
 On Aug 3, 2018, at 1:18 PM, Brian Milby via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
 
 For me I have to include the protocol. So the “http://“ needs to be
>>> there to get any output.
 
 Thanks,
 Brian
 On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode <
>>> use-livecode@lists.runrev.com>, wrote:
> Hi All,
> 
> I’m experiencing at put URL oddity:
> 
> Entering: put URL "https://www.google.com” into the message box
>>> returns the HtML for the google home page, which is what I expect.
> 
> Entering: put URL "https://www.milfordmirror.com/“ returns absolutely
>>> nothing, no errors, no content whatsoever. Just empty. Not what I expect.
> 
> The URL is valid, put it into a browser and you get a page.
> 
> Set the url of a browser widget and you get the page.
> 
> I’m wondering if I need to set httpHeaders to get this to return
>>> something, but have no idea what that might be.
> 
> Has anyone experienced this before and if so, how did you work around
>>> it?
> 
> TIA,
> 
> Steve MacLean
> 
> LC 9.0.1 RC1 Business
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



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

Re: Drag Drop State of Affairs

2018-08-03 Thread J. Landman Gay via use-livecode

Could the defaultstack have changed? It sounds a bit like that.

On 8/3/18 1:13 PM, Knapp Martin via use-livecode wrote:

I’ve had the same issue. FWIW I’ve found that after a drag and drop, if I move 
my mouse into the LC toolbar and back (with no clicking) it returns to normal.
Marty


On Aug 3, 2018, at 10:58 AM, Bob Sneidar via use-livecode 
 wrote:

Hi all.

I've mentioned before that on a Mac current OS latest LC (and prior) I have 
some drag/drop operations, where I will process text dropped onto a field. The 
actual process works, but afterwards, the controls in the window will be 
unresponsive, until I click the window title bar, after which all works as 
normal again.

It's not critical, but it is a nuisance especially I am constantly 
drag/dropping data from installation requests into my app for the sake of 
convenience and data consistency. It gets to the point where every drag/drop 
operation has to be followd by a click on the title bar.

I suppose I could simply click at the location of the title bar, but I'd really like to know if 
there is a way to make sure that any drag/drop operations are "flushed" so to speak. And 
since I am almost certain that LC interacts with the OS to accomplish this, my suspicion is that 
the OS has not received any "termination" for the drag/drop operation, and must time out 
at some point.

The reason I think this is because it seems that when I first begin drag/dropping data, 
it works for a bit without the issue, but after a time I get the loss of control issue, 
and from then on all drag drop operations exhibit this "anomaly". But if I wait 
for a time, things seem to be restored again for a bit.

So I am hoping that maybe there is some system message that gets sent that causes LC to 
"clean up" after a grag drop operation.

Bob S



--
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: put URL oddity

2018-08-03 Thread Peter Bogdanoff via use-livecode
For what it’s worth:

Using the URLs of the other affiliated newspaper sites at the bottom of the 
Milford Mirror page also don’t return anything in the message box.

Peter

> On Aug 3, 2018, at 11:24 AM, Tom Glod via use-livecode 
>  wrote:
> 
> maybe the url is a redirect and your request is not following it.
> 
> On Fri, Aug 3, 2018 at 1:49 PM, Stephen MacLean via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Hi Brian,
>> 
>> Thanks for the reply, but I’m confused… the protocol is there: https://
>> 
>> Thanks,
>> 
>> Steve
>> 
>>> On Aug 3, 2018, at 1:18 PM, Brian Milby via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> For me I have to include the protocol. So the “http://“ needs to be
>> there to get any output.
>>> 
>>> Thanks,
>>> Brian
>>> On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode <
>> use-livecode@lists.runrev.com>, wrote:
 Hi All,
 
 I’m experiencing at put URL oddity:
 
 Entering: put URL "https://www.google.com” into the message box
>> returns the HtML for the google home page, which is what I expect.
 
 Entering: put URL "https://www.milfordmirror.com/“ returns absolutely
>> nothing, no errors, no content whatsoever. Just empty. Not what I expect.
 
 The URL is valid, put it into a browser and you get a page.
 
 Set the url of a browser widget and you get the page.
 
 I’m wondering if I need to set httpHeaders to get this to return
>> something, but have no idea what that might be.
 
 Has anyone experienced this before and if so, how did you work around
>> it?
 
 TIA,
 
 Steve MacLean
 
 LC 9.0.1 RC1 Business
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Drag Drop State of Affairs

2018-08-03 Thread Bob Sneidar via use-livecode
Thanks for the confirmation Marty. My suspicion is that for whatever reason the 
IDE is not "focused" on the current card after the drop, but only sometimes. I 
have been unable after much trial and error to produce a reliable formula for 
reproducing the effect. 

Bob S


> On Aug 3, 2018, at 11:13 , Knapp Martin via use-livecode 
>  wrote:
> 
> I’ve had the same issue. FWIW I’ve found that after a drag and drop, if I 
> move my mouse into the LC toolbar and back (with no clicking) it returns to 
> normal.
> 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

Re: put URL oddity

2018-08-03 Thread Tom Glod via use-livecode
maybe the url is a redirect and your request is not following it.

On Fri, Aug 3, 2018 at 1:49 PM, Stephen MacLean via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi Brian,
>
> Thanks for the reply, but I’m confused… the protocol is there: https://
>
> Thanks,
>
> Steve
>
> > On Aug 3, 2018, at 1:18 PM, Brian Milby via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > For me I have to include the protocol. So the “http://“ needs to be
> there to get any output.
> >
> > Thanks,
> > Brian
> > On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> >> Hi All,
> >>
> >> I’m experiencing at put URL oddity:
> >>
> >> Entering: put URL "https://www.google.com” into the message box
> returns the HtML for the google home page, which is what I expect.
> >>
> >> Entering: put URL "https://www.milfordmirror.com/“ returns absolutely
> nothing, no errors, no content whatsoever. Just empty. Not what I expect.
> >>
> >> The URL is valid, put it into a browser and you get a page.
> >>
> >> Set the url of a browser widget and you get the page.
> >>
> >> I’m wondering if I need to set httpHeaders to get this to return
> something, but have no idea what that might be.
> >>
> >> Has anyone experienced this before and if so, how did you work around
> it?
> >>
> >> TIA,
> >>
> >> Steve MacLean
> >>
> >> LC 9.0.1 RC1 Business
> >>
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Drag Drop State of Affairs

2018-08-03 Thread Knapp Martin via use-livecode
I’ve had the same issue. FWIW I’ve found that after a drag and drop, if I move 
my mouse into the LC toolbar and back (with no clicking) it returns to normal.
Marty

> On Aug 3, 2018, at 10:58 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> I've mentioned before that on a Mac current OS latest LC (and prior) I have 
> some drag/drop operations, where I will process text dropped onto a field. 
> The actual process works, but afterwards, the controls in the window will be 
> unresponsive, until I click the window title bar, after which all works as 
> normal again. 
> 
> It's not critical, but it is a nuisance especially I am constantly 
> drag/dropping data from installation requests into my app for the sake of 
> convenience and data consistency. It gets to the point where every drag/drop 
> operation has to be followd by a click on the title bar. 
> 
> I suppose I could simply click at the location of the title bar, but I'd 
> really like to know if there is a way to make sure that any drag/drop 
> operations are "flushed" so to speak. And since I am almost certain that LC 
> interacts with the OS to accomplish this, my suspicion is that the OS has not 
> received any "termination" for the drag/drop operation, and must time out at 
> some point. 
> 
> The reason I think this is because it seems that when I first begin 
> drag/dropping data, it works for a bit without the issue, but after a time I 
> get the loss of control issue, and from then on all drag drop operations 
> exhibit this "anomaly". But if I wait for a time, things seem to be restored 
> again for a bit. 
> 
> So I am hoping that maybe there is some system message that gets sent that 
> causes LC to "clean up" after a grag drop operation. 
> 
> Bob S
> 


___
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

Drag Drop State of Affairs

2018-08-03 Thread Bob Sneidar via use-livecode
Hi all. 

I've mentioned before that on a Mac current OS latest LC (and prior) I have 
some drag/drop operations, where I will process text dropped onto a field. The 
actual process works, but afterwards, the controls in the window will be 
unresponsive, until I click the window title bar, after which all works as 
normal again. 

It's not critical, but it is a nuisance especially I am constantly 
drag/dropping data from installation requests into my app for the sake of 
convenience and data consistency. It gets to the point where every drag/drop 
operation has to be followd by a click on the title bar. 

I suppose I could simply click at the location of the title bar, but I'd really 
like to know if there is a way to make sure that any drag/drop operations are 
"flushed" so to speak. And since I am almost certain that LC interacts with the 
OS to accomplish this, my suspicion is that the OS has not received any 
"termination" for the drag/drop operation, and must time out at some point. 

The reason I think this is because it seems that when I first begin 
drag/dropping data, it works for a bit without the issue, but after a time I 
get the loss of control issue, and from then on all drag drop operations 
exhibit this "anomaly". But if I wait for a time, things seem to be restored 
again for a bit. 

So I am hoping that maybe there is some system message that gets sent that 
causes LC to "clean up" after a grag drop operation. 

Bob S


___
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: put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode
Hi Brian,

Thanks for the reply, but I’m confused… the protocol is there: https://

Thanks,

Steve

> On Aug 3, 2018, at 1:18 PM, Brian Milby via use-livecode 
>  wrote:
> 
> For me I have to include the protocol. So the “http://“ needs to be there to 
> get any output.
> 
> Thanks,
> Brian
> On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode 
> , wrote:
>> Hi All,
>> 
>> I’m experiencing at put URL oddity:
>> 
>> Entering: put URL "https://www.google.com” into the message box returns the 
>> HtML for the google home page, which is what I expect.
>> 
>> Entering: put URL "https://www.milfordmirror.com/“ returns absolutely 
>> nothing, no errors, no content whatsoever. Just empty. Not what I expect.
>> 
>> The URL is valid, put it into a browser and you get a page.
>> 
>> Set the url of a browser widget and you get the page.
>> 
>> I’m wondering if I need to set httpHeaders to get this to return something, 
>> but have no idea what that might be.
>> 
>> Has anyone experienced this before and if so, how did you work around it?
>> 
>> TIA,
>> 
>> Steve MacLean
>> 
>> LC 9.0.1 RC1 Business
>> 
>> 
>> 
>> ___
>> 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: valueDiff for arrays?

2018-08-03 Thread Bob Sneidar via use-livecode
Not to beat a dead horse, but this would be a perfect application for moving 
the arrays to memory databases, and running queries against them, then 
converting back to arrays again. I can have a go at it if I have a couple JSON 
arrays to work with. Are  they typical 2 dimensional arrays like datagrids use, 
or are there embedded arrays? 

Bob S

> On Aug 3, 2018, at 10:40 , Richard Gaskin via use-livecode 
>  wrote:
> 
> We have a command for obtaining the difference between arrays, where 
> "difference" is defined as having different keys.
> 
> What I could use at the moment is a means of obtaining an array which is the 
> difference is both keys present in one but not in the other, and values that 
> are different for those elements where they keys are present in both.
> 
> I can write a loop for that, but it seems like it would be useful for others 
> so I thought I'd ask if anyone here knows of a feature request in the DB for 
> this.  If not I'll add one.
> 
> -- 
> Richard Gaskin


___
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: CEF browser question

2018-08-03 Thread Ralph DiMola via use-livecode
Bill,

Are getting bit by iOS App Transport Security (ATS) for non https sites? Try 
disabling ATS on the iOS standalone settings pane.

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

Folks,
As I was working on and testing the browser widget, which seemed to fail when 
tested on my iPhone, I thought the problem was with the browser widget, but it 
turned out to be that I was trying to link to a web site that wouldn’t let me 
load it because I was using a vpn on my iPhone. The vpn wouldn’t let them load 
their tracker. Nasty.

So, I thought it was a browser problem and looked into using the CEF browser. 
Docs say it is no longer supported in LC9 versions, but I see the entry in the 
inclusions. Is there a reason this inclusion is relevant, or am I missing 
something?

Best,
Bill

William Prothero
http://es.earthednet.org



___
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

valueDiff for arrays?

2018-08-03 Thread Richard Gaskin via use-livecode
We have a command for obtaining the difference between arrays, where 
"difference" is defined as having different keys.


What I could use at the moment is a means of obtaining an array which is 
the difference is both keys present in one but not in the other, and 
values that are different for those elements where they keys are present 
in both.


I can write a loop for that, but it seems like it would be useful for 
others so I thought I'd ask if anyone here knows of a feature request in 
the DB for this.  If not I'll add one.


--
 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: Browser persistence from card to card

2018-08-03 Thread Brian Milby via use-livecode
I have not tried this, but have you considered a background group for the 
browser widget? You could hide and unhide it possibly?

Thanks,
Brian
On Aug 3, 2018, 8:45 AM -0500, Tom Glod via use-livecode 
, wrote:
> Hi folks, I don't know the reasoning behind this, but...
>
> when using the browser widget, and changing cards, the browser cef process
> is killed and restated each time you close and open the card with the
> browser on it. and it doesn't remember where you were scrolling wise.
>
> I could have sworn that this was not always so . is there a property or
> a way to avoid this behavior? it really limits how we can use the browser
> and it seems like its unnecessary  or at least should be optional.
>
> is there any way to avoid this behavior?
> ___
> 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: put URL oddity

2018-08-03 Thread Brian Milby via use-livecode
For me I have to include the protocol. So the “http://“ needs to be there to 
get any output.

Thanks,
Brian
On Aug 3, 2018, 12:08 PM -0500, Stephen MacLean via use-livecode 
, wrote:
> Hi All,
>
> I’m experiencing at put URL oddity:
>
> Entering: put URL "https://www.google.com” into the message box returns the 
> HtML for the google home page, which is what I expect.
>
> Entering: put URL "https://www.milfordmirror.com/“ returns absolutely 
> nothing, no errors, no content whatsoever. Just empty. Not what I expect.
>
> The URL is valid, put it into a browser and you get a page.
>
> Set the url of a browser widget and you get the page.
>
> I’m wondering if I need to set httpHeaders to get this to return something, 
> but have no idea what that might be.
>
> Has anyone experienced this before and if so, how did you work around it?
>
> TIA,
>
> Steve MacLean
>
> LC 9.0.1 RC1 Business
>
>
>
> ___
> 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

put URL oddity

2018-08-03 Thread Stephen MacLean via use-livecode
Hi All,

I’m experiencing at put URL oddity:

Entering: put URL "https://www.google.com” into the message box returns the 
HtML for the google home page, which is what I expect.

Entering: put URL "https://www.milfordmirror.com/“ returns absolutely nothing, 
no errors, no content whatsoever. Just empty. Not what I expect.

The URL is valid, put it into a browser and you get a page.

Set the url of a browser widget and you get the page.

I’m wondering if I need to set httpHeaders to get this to return something, but 
have no idea what that might be.

Has anyone experienced this before and if so, how did you work around it?

TIA,

Steve MacLean

LC 9.0.1 RC1 Business



___
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

CEF browser question

2018-08-03 Thread prothero--- via use-livecode
Folks,
As I was working on and testing the browser widget, which seemed to fail when 
tested on my iPhone, I thought the problem was with the browser widget, but it 
turned out to be that I was trying to link to a web site that wouldn’t let me 
load it because I was using a vpn on my iPhone. The vpn wouldn’t let them load 
their tracker. Nasty.

So, I thought it was a browser problem and looked into using the CEF browser. 
Docs say it is no longer supported in LC9 versions, but I see the entry in the 
inclusions. Is there a reason this inclusion is relevant, or am I missing 
something?

Best,
Bill

William Prothero
http://es.earthednet.org

> On Aug 3, 2018, at 6:44 AM, Tom Glod via use-livecode 
>  wrote:
> 
> Hi folks, I don't know the reasoning behind this, but...
> 
> when using the browser widget,  and changing cards, the browser cef process
> is killed and restated each time you close and open the card with the
> browser on it. and it doesn't remember where you were scrolling wise.
> 
> I could have sworn that this was not always so . is there a property or
> a way to avoid this behavior? it really limits how we can use the browser
> and it seems like its unnecessary  or at least should be optional.
> 
> is there any way to avoid this behavior?
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Getting Started with DataGrid

2018-08-03 Thread Bob Sneidar via use-livecode
In that case, call me Obi Wan. Not after the Star Wars Jedi of fame, but after 
the name of the restaurant Indiana Jones flees from in Temple of Doom. 

Bob S


> On Aug 2, 2018, at 22:07 , Stephen Barncard via use-livecode 
>  wrote:
> 
> Names are merely abstractions.


___
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 persistence from card to card

2018-08-03 Thread Tom Glod via use-livecode
Hi folks, I don't know the reasoning behind this, but...

when using the browser widget,  and changing cards, the browser cef process
is killed and restated each time you close and open the card with the
browser on it. and it doesn't remember where you were scrolling wise.

I could have sworn that this was not always so . is there a property or
a way to avoid this behavior? it really limits how we can use the browser
and it seems like its unnecessary  or at least should be optional.

is there any way to avoid this behavior?
___
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: A poor man's app updater

2018-08-03 Thread Paul Dupuis via use-livecode
On 8/3/2018 2:32 AM, Peter Bogdanoff via use-livecode wrote:
> Hi,
>
> To raise the issue again of updating Mac and Windows apps, I’m referencing 
> this thread between Graham and Jacqueline...
>
> Can existing files in the user’s application directory be 
> saved/modified/replaced by my application?
>

The accurate answer is that it all depends upon the permissions of the
account running the software. Typically for most personal or home
computers, the user has administrative privs, but that is increasingly
not the case on university or company owned computers. On these, they
may not have permission to alter files in the Program Files (Win) or
Applications (OSX) folders.

In some cases, again depending on OS and permissions, you can alter the
folders contents directly. In others you application must launch a
process (another app) with elevated privs, where the OS asks the user
for permissions for the elevated privs, and then that app (if allowed)
can make changes.


___
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: A poor man's app updater

2018-08-03 Thread Peter Bogdanoff via use-livecode
Hi,

To raise the issue again of updating Mac and Windows apps, I’m referencing this 
thread between Graham and Jacqueline...

Can existing files in the user’s application directory be 
saved/modified/replaced by my application?

> On Mar 18, 2018, at 12:57 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
>> - delete the current version using the facilities of the OS (just trash it 
>> from the Applications folder on a Mac, or use the Control Panel on Windows): 
>> there is no reliable way of doing this from within an LC standalone, AFAIK;
> 
> I think you'd benefit from distributing some type of installer. When the user 
> clicks the "OK" button, launch the URL of your web site where they can 
> download it. Matthias' LC installer is ready (and the signing version is 
> close to ready) so you could use that while staying within the LC 
> environment. It does all the work for you.


Can Livecode download a file and replace an existing file in the user’s 
Application package (Mac) or Program Files folder (Win), or does the OS block 
that? 

I understand that the application itself would need to be replaced by a new 
installation, but can supporting files in the same installation directory be 
replaced while the parent LC standalone is still running without then having to 
later be restarted?

Is there any news on "Matthias' LC installer”?

> 
> Users know how to use installers and many Windows users don't understand 
> anything else. There are more users than you think who don't know how to find 
> a file or where apps are stored on their drive. The OS and/or the installer 
> will manage older versions so you don't have to.
> 
>> - download and run a special “Uninstall Helper” program that gets rid of the 
>> Working Stack in the writeable area, plus preference files and the like - I 
>> don’t see any way of making this happen automatically, since logically it 
>> needs to be done **after** the main program is deleted;
> 
> Instead of a helper, I'd put some logic into your app itself. The working 
> stack would have a custom property with its current version number. The 
> standalone would check on launch if the working stack exists, and if so, if 
> its custom version property matches the one it expects. If not, overwrite the 
> existing one with the new one. The new one could either be downloaded from 
> the internet on demand, or stored as a binary in a custom property of the 
> standalone. Either way, overwriting is just a matter of putting the binary 
> content into the existing stack file path on disk.

Does this answer my updating files question? 



> 
>> - use the information given at the time of purchase to download the 
>> appropriate installer from the server;
>> - reinstall the program and input the registration data from the original 
>> purchase.
> 
> So, it sounds like you are already using an installer. If so, they're mostly 
> done. I wouldn't remove the user registration file or preferences; unless 
> it's changed there's no reason to make the user find their registration info 
> again (and many will lose or misplace it, which will increase support 
> requests.)
> 
> The short summary: The user only has to click "OK", the app quits, and the 
> user is taken to a web site to download the update installer. Once they 
> launch that and run the install, everything else is automatic. On first 
> launch, the app replaces any necessary files.
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com

Peter Bogdanoff
___
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