Re: Help test please? GoLiveNet in v9

2017-03-15 Thread Mike Bonner via use-livecode
If you're using a proxy, can you temporarily turn it off and test again?

On Wed, Mar 15, 2017 at 7:52 PM, Stephen MacLean via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Works fine in LC 8.13 and 9.0 DP6 Business on Windows 7 x64 and Mac OS X
> 10.12.3
>
> Best,
>
> Steve MacLean
>
> ___
> 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: Help test please? GoLiveNet in v9

2017-03-15 Thread Stephen MacLean via use-livecode
Works fine in LC 8.13 and 9.0 DP6 Business on Windows 7 x64 and Mac OS X 10.12.3

Best,

Steve MacLean

___
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: Help test please? GoLiveNet in v9

2017-03-15 Thread Jim Lambert via use-livecode
Fine in 
LC 9.0.0 dp6
OSX 10.12.3

Jim Lambert

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


Re: Help test please? GoLiveNet in v9

2017-03-15 Thread Jerry Jensen via use-livecode
OK on LC 8.1.3 Indy Mac OSX 10.12.3
Jerry

> On Mar 15, 2017, at 2:07 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Hello gang -
> 
> I'm having a tough time figuring out why the GoLiveNet plugin shipping with 
> LC isn't working well for me (BZ#19026).
> 
> If you're using v8 or v9, could you please run this recipe and email me if it 
> doesn't work:
> 
> 1. In the IDE, choose Development -> Plugins - GoLiveNet
> 
> That's it.  When it's working you'll briefly see a progress bar, and then the 
> LiveNet window appears.
> 
> If it doesn't work you'll see an error note in that plugin window.
> 
> Curious what you find. Thanks -
> 
> -- 
> 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


___
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: Help test please? GoLiveNet in v9

2017-03-15 Thread Ralph DiMola via use-livecode
Whoops... also OK using LC 9.0(dp5)
OK here on Win 10 Pro VM LC 8.1.3 Business

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

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Richard Gaskin via use-livecode
Sent: Wednesday, March 15, 2017 5:07 PM
To: How to use LiveCode
Cc: Richard Gaskin
Subject: Help test please? GoLiveNet in v9

Hello gang -

I'm having a tough time figuring out why the GoLiveNet plugin shipping with
LC isn't working well for me (BZ#19026).

If you're using v8 or v9, could you please run this recipe and email me if
it doesn't work:

1. In the IDE, choose Development -> Plugins - GoLiveNet

That's it.  When it's working you'll briefly see a progress bar, and then
the LiveNet window appears.

If it doesn't work you'll see an error note in that plugin window.

Curious what you find. Thanks -

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


___
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: Translating escape sequences

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/15/17 4:03 PM, Mike Bonner via use-livecode wrote:

does this mean one could replace /u with 0x and then replace uls with empty
and end up with the correct end result?


Aha. Now I know what's been wrong with my scripts. I've been replacing 
*nulls* with empty.


--
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: Help test please? GoLiveNet in v9

2017-03-15 Thread Ralph DiMola via use-livecode
OK here on Win 10 Pro VM LC 8.1.3 Business

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

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Richard Gaskin via use-livecode
Sent: Wednesday, March 15, 2017 5:07 PM
To: How to use LiveCode
Cc: Richard Gaskin
Subject: Help test please? GoLiveNet in v9

Hello gang -

I'm having a tough time figuring out why the GoLiveNet plugin shipping with
LC isn't working well for me (BZ#19026).

If you're using v8 or v9, could you please run this recipe and email me if
it doesn't work:

1. In the IDE, choose Development -> Plugins - GoLiveNet

That's it.  When it's working you'll briefly see a progress bar, and then
the LiveNet window appears.

If it doesn't work you'll see an error note in that plugin window.

Curious what you find. Thanks -

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


___
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: Help test please? GoLiveNet in v9

2017-03-15 Thread Matthias Rebbe via use-livecode

Hi,


LC 8.1.2, Win 10-> works
LC 9.0DP6, Win 10   -> works

LC 8.1.3, Mac Os X 10.12.3  -> works
LC 9.0DP6, Mac Os X 10.12.3 -> works


Regards,
Matthias

> Am 15.03.2017 um 22:07 schrieb Richard Gaskin via use-livecode 
> >:
> 
> Hello gang -
> 
> I'm having a tough time figuring out why the GoLiveNet plugin shipping with 
> LC isn't working well for me (BZ#19026).
> 
> If you're using v8 or v9, could you please run this recipe and email me if it 
> doesn't work:
> 
> 1. In the IDE, choose Development -> Plugins - GoLiveNet
> 
> That's it.  When it's working you'll briefly see a progress bar, and then the 
> LiveNet window appears.
> 
> If it doesn't work you'll see an error note in that plugin window.
> 
> Curious what you find. Thanks -
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com 
> http://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

Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
___
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: Help test please? GoLiveNet in v9

2017-03-15 Thread Klaus major-k via use-livecode
Hi Richard,

> Am 15.03.2017 um 22:07 schrieb Richard Gaskin via use-livecode 
> :
> 
> Hello gang -
> 
> I'm having a tough time figuring out why the GoLiveNet plugin shipping with 
> LC isn't working well for me (BZ#19026).
> If you're using v8 or v9, could you please run this recipe and email me if it 
> doesn't work:
> 1. In the IDE, choose Development -> Plugins - GoLiveNet
> That's it.  When it's working you'll briefly see a progress bar, and then the 
> LiveNet window appears.
> If it doesn't work you'll see an error note in that plugin window.
> Curious what you find. Thanks -

works fine for me with LC 9 dp6 on macOS 10.12.3!

> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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


Help test please? GoLiveNet in v9

2017-03-15 Thread Richard Gaskin via use-livecode

Hello gang -

I'm having a tough time figuring out why the GoLiveNet plugin shipping 
with LC isn't working well for me (BZ#19026).


If you're using v8 or v9, could you please run this recipe and email me 
if it doesn't work:


1. In the IDE, choose Development -> Plugins - GoLiveNet

That's it.  When it's working you'll briefly see a progress bar, and 
then the LiveNet window appears.


If it doesn't work you'll see an error note in that plugin window.

Curious what you find. Thanks -

--
 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: Translating escape sequences

2017-03-15 Thread Mike Bonner via use-livecode
does this mean one could replace /u with 0x and then replace uls with empty
and end up with the correct end result?

On Wed, Mar 15, 2017 at 2:16 PM, Richmond Mathewson via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Just knock off the last 3, and what is left is what you want.
>
> Richmond.
>
> On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote:
>
>> The problem with the pseudo code is that there's no clear indication of
>> how many characters at the end to preserve. I'm not sure how the libraries
>> deal with that.
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>>
>>
>>
>> On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>> No; it won't always be 4 characters, here's an admittedly extremely
>>> obscure ancient Sinhala number;
>>> 0x111F4.
>>>
>>> Of course the chances of encountering whacky characters like that is
>>> small, but you'll have to make sure you
>>> can cope with them should they crop up.
>>>
>>> If you look at Eduardo Ba\u00f1uls you will have to strip what comes
>>> after the '\' of the prefix 'u'
>>> and the suffix 'uls' and then you can cope with whatever is left:
>>>
>>> Reasonably pseudo-code following:
>>>
>>> set the item delimiter to \
>>> put what's after the item delimiter into HOLDER
>>> delete char 1 of HOLDER
>>> delete the last char of HOLDER
>>> delete the last char of HOLDER
>>> delete the last char of HOLDER
>>> put "0x" & HOLDER into NUNUM
>>>
>>> at this point "NUNUM" could be alost any length, but that should not
>>> matter unduly.
>>>
>>> Richmond.
>>>
>>> On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:
>>>
 I'm dealing with non-English languages, and JSON data retrieved from a
 database comes in with unicode escape sequences like this: Eduardo
 Ba\u00f1uls.

 I need to translate those. I can do it by replacing the "\u" with "0x"
 and then using numToCodepoint() to get the UTF16 character. But there
 could be many of these in the same string, so I'm looking for a
 one-shot command that might just do them all. I don't think we have one.

 The alternative is to loop through all the text, getting an offset for
 each "\u" and then calculating the number of characters after that to
 use with numToCodepoint(). But will it always be 4 characters in any
 language?

 Or is there an easier way?


>>> ___
>>> 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: Translating escape sequences

2017-03-15 Thread J. Landman Gay via use-livecode

What if the user name has seven characters after the escape sequence?

On 3/15/17 3:16 PM, Richmond Mathewson via use-livecode wrote:

Just knock off the last 3, and what is left is what you want.

Richmond.

On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote:

The problem with the pseudo code is that there's no clear indication
of how many characters at the end to preserve. I'm not sure how the
libraries deal with that.

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



On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode
 wrote:


No; it won't always be 4 characters, here's an admittedly extremely
obscure ancient Sinhala number;
0x111F4.

Of course the chances of encountering whacky characters like that is
small, but you'll have to make sure you
can cope with them should they crop up.

If you look at Eduardo Ba\u00f1uls you will have to strip what comes
after the '\' of the prefix 'u'
and the suffix 'uls' and then you can cope with whatever is left:

Reasonably pseudo-code following:

set the item delimiter to \
put what's after the item delimiter into HOLDER
delete char 1 of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
put "0x" & HOLDER into NUNUM

at this point "NUNUM" could be alost any length, but that should not
matter unduly.

Richmond.

On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:

I'm dealing with non-English languages, and JSON data retrieved from a
database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with "0x"
and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a
one-shot command that might just do them all. I don't think we have
one.

The alternative is to loop through all the text, getting an offset for
each "\u" and then calculating the number of characters after that to
use with numToCodepoint(). But will it always be 4 characters in any
language?

Or is there an easier way?



___
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: Translating escape sequences

2017-03-15 Thread Bob Sneidar via use-livecode
Sounds like a mob hit. :-)

Bob S


> On Mar 15, 2017, at 13:16 , Richmond Mathewson via use-livecode 
>  wrote:
> 
> Just knock off the last 3, and what is left is what you want.
> 
> Richmond.


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


Re: Translating escape sequences

2017-03-15 Thread Richmond Mathewson via use-livecode

Just knock off the last 3, and what is left is what you want.

Richmond.

On 3/15/17 6:43 pm, J. Landman Gay via use-livecode wrote:
The problem with the pseudo code is that there's no clear indication 
of how many characters at the end to preserve. I'm not sure how the 
libraries deal with that.


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



On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode 
 wrote:



No; it won't always be 4 characters, here's an admittedly extremely
obscure ancient Sinhala number;
0x111F4.

Of course the chances of encountering whacky characters like that is
small, but you'll have to make sure you
can cope with them should they crop up.

If you look at Eduardo Ba\u00f1uls you will have to strip what comes
after the '\' of the prefix 'u'
and the suffix 'uls' and then you can cope with whatever is left:

Reasonably pseudo-code following:

set the item delimiter to \
put what's after the item delimiter into HOLDER
delete char 1 of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
put "0x" & HOLDER into NUNUM

at this point "NUNUM" could be alost any length, but that should not
matter unduly.

Richmond.

On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:

I'm dealing with non-English languages, and JSON data retrieved from a
database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with "0x"
and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a
one-shot command that might just do them all. I don't think we have 
one.


The alternative is to loop through all the text, getting an offset for
each "\u" and then calculating the number of characters after that to
use with numToCodepoint(). But will it always be 4 characters in any
language?

Or is there an easier way?



___
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: SFTP with .PPK file

2017-03-15 Thread Stephen MacLean via use-livecode
Well, still no luck in getting it to work, but getting closer…

I found a sample file linked to on livecode.com . 
Modifying it to use the key file, I have:

on mouseUp
   local tHeaders, tResult, tSettings
   put “" into tSettings["username"]
   put URL "binfile:D:\private.ppk" into tPrivKey
   put tPrivKey into tSettings["ssh_priv_key"]
   tsNetInit
   put tsNetGet("1", "sftp://secure..us/;, tHeaders, 
"transferComplete", tSettings) into tResult
end mouseUp

However, it returns:

 tsneterr: (67) Authentication failure

Again, I can access the sftp site with no problems using the WinSCP ftp client 
and the key file.

Any suggestions??

Thanks,

Steve MacLean

> On Mar 15, 2017, at 9:38 AM, Stephen MacLean via use-livecode 
>  wrote:
> 
> Hi All,
> 
> Looking to use tsNet to connect to a SFTP server that uses username and a 
> private key instead of a password. The private key is contained in a file.
> 
> I use WinSCP and can link the connection to the file and can connect fine.
> 
> In LC, I’ve set the CABundle to the file, but am not sure this is how it’s 
> supposed to work. Getting an auth error when doing tsNetGet.
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Steve MacLean
> 
> PS: Running 9.0 dp6 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

Re: Translating escape sequences

2017-03-15 Thread J. Landman Gay via use-livecode
The problem with the pseudo code is that there's no clear indication of how 
many characters at the end to preserve. I'm not sure how the libraries deal 
with that.


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



On March 15, 2017 2:28:57 AM Richmond Mathewson via use-livecode 
 wrote:



No; it won't always be 4 characters, here's an admittedly extremely
obscure ancient Sinhala number;
0x111F4.

Of course the chances of encountering whacky characters like that is
small, but you'll have to make sure you
can cope with them should they crop up.

If you look at Eduardo Ba\u00f1uls you will have to strip what comes
after the '\' of the prefix 'u'
and the suffix 'uls' and then you can cope with whatever is left:

Reasonably pseudo-code following:

set the item delimiter to \
put what's after the item delimiter into HOLDER
delete char 1 of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
put "0x" & HOLDER into NUNUM

at this point "NUNUM" could be alost any length, but that should not
matter unduly.

Richmond.

On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:

I'm dealing with non-English languages, and JSON data retrieved from a
database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with "0x"
and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a
one-shot command that might just do them all. I don't think we have one.

The alternative is to loop through all the text, getting an offset for
each "\u" and then calculating the number of characters after that to
use with numToCodepoint(). But will it always be 4 characters in any
language?

Or is there an easier way?



___
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


AW: tsneterr: (6) could not resolve host

2017-03-15 Thread Tiemo Hollmann TB via use-livecode
Forgot to say: Windows 10

-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Tiemo Hollmann TB via use-livecode
Gesendet: Mittwoch, 15. März 2017 16:00
An: LiveCode User Liste senden 
Cc: Tiemo Hollmann TB 
Betreff: tsneterr: (6) could not resolve host

Hello,

using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host:
public" when trying to access a file in a web server directory with user and
password protection

put URL "http://public:myPW@www.myHost/mypath/my.txt; into tResult

when opening the same file in a not pw protected directory, everything is
fine and I get the content of the file

Testing the same with 8.1 or 9.0 dp 4 it works also with the pw protected
dir, like it should.

Is this a known issue with tsnet? Any workarounds?

Thanks

Tiemo

 

 

 

 

___
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


tsneterr: (6) could not resolve host

2017-03-15 Thread Tiemo Hollmann TB via use-livecode
Hello,

using LC 8.1.2 / 8.1.3 I get an "tsneterr: (6) could not resolve host:
public" when trying to access a file in a web server directory with user and
password protection

put URL "http://public:myPW@www.myHost/mypath/my.txt; into tResult

when opening the same file in a not pw protected directory, everything is
fine and I get the content of the file

Testing the same with 8.1 or 9.0 dp 4 it works also with the pw protected
dir, like it should.

Is this a known issue with tsnet? Any workarounds?

Thanks

Tiemo

 

 

 

 

___
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: OSX module file error when building standalone with LC 8 on mac

2017-03-15 Thread Bob Sneidar via use-livecode
I dunno, but I do notice that when compiling (I call creating a standalone 
"compiling" because it takes less effort to type) the standalone builder 
"actually opens" stack files. I know this because I have handlers which, upon 
opening the mainstack for the first time, opens a substack I use for logging 
into the database. This stack is opened modally by script. The stack is NOT set 
to float above everything itself. 

This means that when the standalone builder opens stacks THEY ARE ACTUALLY 
running the handlers! This did NOT happen with version 8.0.x so far as I can 
tell. Also try manually setting your inclusions instead of letting the builder 
automatically figure it out. Thirdly, check your standalone settings and stack 
files in the mainstack to make sure that the builder did not modify these! If 
you build for more than one OS at a time, these can get modified to use 
inclusions IN THE STANDALONE FOLDER of another versions build! 

I know you are saying, "That is crazy mad sh*t! Whe the H**l would they do 
that? At least that is what I have been saying. 

Bob S


> On Mar 14, 2017, at 22:48 , James Hale via use-livecode 
>  wrote:
> 
> I just went to recompile a little utility I have and came across this error.
> 
> The stack is simple and just gets the user to select file(s) or a folder or a 
> text list to create folders somewhere else.
> 
> I had compiled a standalone before but now am unable to with LC8.
> 
> It gets all the way to building MacOS components and then...
> 
> "There was an error while saving the
> standalone application
> Build failed for MacOSX x86-32: could not
> open module file"
> 
> I originally was compiling 64 bit, then I tried both, then just 32 bit.
> Same error in each case.
> 
> Has anyone else experienced this?
> Does anyone know what it means?
> 
> Tried with 
> 8.1.3 indy and business
> 8.1.0 Indy
> 
> Then tried with a couple of the 9DPs
> These all worked!
> 
> So it seems to be only with the LC 8s that I have.
> 
> James


___
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


SFTP with .PPK file

2017-03-15 Thread Stephen MacLean via use-livecode
Hi All,

Looking to use tsNet to connect to a SFTP server that uses username and a 
private key instead of a password. The private key is contained in a file.

I use WinSCP and can link the connection to the file and can connect fine.

In LC, I’ve set the CABundle to the file, but am not sure this is how it’s 
supposed to work. Getting an auth error when doing tsNetGet.

Any help would be appreciated.

Thanks,

Steve MacLean

PS: Running 9.0 dp6 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: how to remove black title bar in browser widget when showing a pdf?

2017-03-15 Thread Tom Glod via use-livecode
This is the built in PDF viewer in Chrome, I don't think the option exists
in an embedded browser.  Hope I'm wrong, cuz I'd like to tweak some stuff
there too.

On Tue, Mar 14, 2017 at 5:30 AM, Tiemo Hollmann TB via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hello,
>
> LC 8.1.3, Windows 10: When I am displaying a pdf (local or web) in the
> browser widget, there is a black title bar on top of the pdf, which
> occupies
> the top 45 pixels of the browser widget. When hovering over the widget, the
> name of the pdf is shown within this black title bar.
>
> I didn't found any option to not show this title bar within the browser
> widget. Do I have to live with it or is there an option or a trick I
> haven't
> found yet?
>
> Thanks
>
> Tiemo
>
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
*Tom Glod*

CEO @ *MakeShyft R.D.A* - www.makeshyft.com



Developer of *U.M.P* - www.IamUMP.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: where does the standalonebuilder saves the substacks in an Mac OS App?

2017-03-15 Thread Matthias Rebbe via use-livecode
Hi Jacqueline,

thanks for that hint. Seems i have missed that part..

Regards,

Matthias


> Am 15.03.2017 um 07:44 schrieb J. Landman Gay via use-livecode 
> >:
> 
> On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote:
>> is it correct when the standalone settings of an stack are set to
>> move substacks into individual stack files that under Mac OS X the
>> substacks in an compiled app (e.g. test.app) are stored
>> 
>> in 'test.app/Contents/Resources/_MacOS/‘ instead of being stored in
>> 'test.app/Contents/MacOS/'
> 
> Yes, Apple required that change a while ago.
> 
>> And if this is correct, how do i open them? At the moment my button
>> script (go stack …) , which works for Windows does not open the
>> substacks in MacOS X. If i move the substacks manually to
>> 'test.app/Contents/MacOS/' then of course my scripts can open them
>> w/o modification.
> 
> Apple doesn't want anything in the folder except the executable now. The best 
> way to handle the files is to use specialFolderPath("resources") as the 
> directory. That will alway point to the correct location on any OS. On Mac, 
> it specifies the Resources folder (and is a synonym for the engine folder for 
> legacy stacks.) So your path should be:
> 
> specialFolderPath("resources") & "/stackname.livecode"
> 
> It will work on Windows too.
> 
> -- 
> 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 
> 


Matthias Rebbe
Bramkampsieke 13
32312 Lübbecke
Tel +49 5741 31
+49 160 5504462
Fax: +49 5741 310002
eMail: matth...@m-r-d.de 

BR5 Konverter - BR5 -> MP3 
___
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: Translating escape sequences

2017-03-15 Thread Peter TB Brett via use-livecode



On 14/03/2017 21:26, J. Landman Gay via use-livecode wrote:

I'm dealing with non-English languages, and JSON data retrieved from a
database comes in with unicode escape sequences like this: Eduardo
Ba\u00f1uls.

I need to translate those. I can do it by replacing the "\u" with "0x"
and then using numToCodepoint() to get the UTF16 character. But there
could be many of these in the same string, so I'm looking for a one-shot
command that might just do them all. I don't think we have one.

The alternative is to loop through all the text, getting an offset for
each "\u" and then calculating the number of characters after that to
use with numToCodepoint(). But will it always be 4 characters in any
language?

Or is there an easier way?


JsonImport() should handle those automatically.  Please let me know if 
it doesn't!


Peter

--
Dr Peter Brett 

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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: Translating escape sequences

2017-03-15 Thread Richmond Mathewson via use-livecode
No; it won't always be 4 characters, here's an admittedly extremely 
obscure ancient Sinhala number;

0x111F4.

Of course the chances of encountering whacky characters like that is 
small, but you'll have to make sure you

can cope with them should they crop up.

If you look at Eduardo Ba\u00f1uls you will have to strip what comes 
after the '\' of the prefix 'u'

and the suffix 'uls' and then you can cope with whatever is left:

Reasonably pseudo-code following:

set the item delimiter to \
put what's after the item delimiter into HOLDER
delete char 1 of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
delete the last char of HOLDER
put "0x" & HOLDER into NUNUM

at this point "NUNUM" could be alost any length, but that should not 
matter unduly.


Richmond.

On 3/14/17 11:26 pm, J. Landman Gay via use-livecode wrote:
I'm dealing with non-English languages, and JSON data retrieved from a 
database comes in with unicode escape sequences like this: Eduardo 
Ba\u00f1uls.


I need to translate those. I can do it by replacing the "\u" with "0x" 
and then using numToCodepoint() to get the UTF16 character. But there 
could be many of these in the same string, so I'm looking for a 
one-shot command that might just do them all. I don't think we have one.


The alternative is to loop through all the text, getting an offset for 
each "\u" and then calculating the number of characters after that to 
use with numToCodepoint(). But will it always be 4 characters in any 
language?


Or is there an easier way?



___
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: where does the standalonebuilder saves the substacks in an Mac OS App?

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/14/17 6:58 PM, Matthias Rebbe via use-livecode wrote:

is it correct when the standalone settings of an stack are set to
move substacks into individual stack files that under Mac OS X the
substacks in an compiled app (e.g. test.app) are stored

in 'test.app/Contents/Resources/_MacOS/‘ instead of being stored in
'test.app/Contents/MacOS/'


Yes, Apple required that change a while ago.


And if this is correct, how do i open them? At the moment my button
script (go stack …) , which works for Windows does not open the
substacks in MacOS X. If i move the substacks manually to
'test.app/Contents/MacOS/' then of course my scripts can open them
w/o modification.


Apple doesn't want anything in the folder except the executable now. The 
best way to handle the files is to use specialFolderPath("resources") as 
the directory. That will alway point to the correct location on any OS. 
On Mac, it specifies the Resources folder (and is a synonym for the 
engine folder for legacy stacks.) So your path should be:


 specialFolderPath("resources") & "/stackname.livecode"

It will work on Windows too.

--
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: Translating escape sequence

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/15/17 12:00 AM, Monte Goulding via use-livecode wrote:

 Try patching it like I have done here 
https://github.com/montegoulding/mergJSON/pull/8


Hey, I figured out how to patch and where they hid your libraries. It 
works! :)


--
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: Translating escape sequence

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/14/17 11:58 PM, Phil Davis via use-livecode wrote:

Maybe right after you import the JSON data, preprocess it with something
like this:

set the lineDelimiter to "\u"
repeat for each line tLine in tJsonData
put numToCodePoint("0x" & char 1 to 4 of tLine) & char 5 to -1 of
tLine after tNewData
end repeat
put tNewData into tJsonData

Then go on your merry way. Would that work?


Alas, no. I did something similar earlier this evening. If you replace 
the escaped sequences before running it through jsonToArray, the 
function throws [an error and gives] up. If you run jsonToArray first, 
there are no escapes to process, they are all converted to garbage by then.


But Monte has a fix in the pipes. I think he's been lurking here and 
fixing bugs before I can report them. He just wants us to think he's 
psychic.


I beat him to the bug in jsonImport though.

--
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: Translating escape sequence

2017-03-15 Thread Monte Goulding via use-livecode

> On 15 Mar 2017, at 5:08 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> Cool. :) I'd patch it if I knew how to do that but I don't know enough about 
> git to even start. But since you've put in a pull request, I can wait until 
> the next dp.

I meant you could patch it in your copy of LC. Just edit the script of stack 
“ws.goulding.script-library.mergjson”. You may need to mess with the 
permissions of the app bundle if you want to save on Mac.
> 
> Thanks much, Monte. I owe you another sandwich.

;-)
___
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: Translating escape sequence

2017-03-15 Thread J. Landman Gay via use-livecode

On 3/15/17 12:00 AM, Monte Goulding via use-livecode wrote:



On 15 Mar 2017, at 3:28 pm, J. Landman Gay via use-livecode
 wrote:

So I'm stuck, I don't see any way to deal with these. I'll put in a
bug report about jsonImport() but it will probably be a while
before it gets fixed.

I hope someone else has an idea.


I do -)

Jansson (the library that mergJSON uses) does actually handle all
escaped unicode codepoints just fine. There is, however, an issue
with the JSONToArray function. Try patching it like I have done here
https://github.com/montegoulding/mergJSON/pull/8


Cool. :) I'd patch it if I knew how to do that but I don't know enough 
about git to even start. But since you've put in a pull request, I can 
wait until the next dp.


Thanks much, Monte. I owe you another sandwich.

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