Re: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Monte Goulding

> On 29 Jul 2016, at 10:53 PM, Alex Tweedly  wrote:
> 
> 
> 
> On 29/07/2016 17:14, panagiotis merakos wrote:
>> Dear list members,
>> We are pleased to announce the release of LiveCode 8.1.0-dp-3, a
>> development preview of LiveCode 8.1.
> 
>> tsNet external
>> --
>> LiveCode Indy and Business Editions now include the Tech Strategies tsNet
>> external!
>> * Faster than libURL (like, way faster... WAY FASTER)
>> * Multiple simultaneous asynchronous requests to the same server
>> * SFTP, SMTP, and SMTPS support (synchronous in Indy, async in Business)
>> * SFTP key-based authentication (Business-only)
>> * Seamless integration
>> 
>> 
> What is tsNet ?

A curl external we have licensed from Tech Strategies

> Does it just happen ?

Yes

> Or do I need to do something to use it ?
>   If so, what ?

No, you don’t need to do anything unless you are explicitly selecting 
inclusions during the standalone build. Then if you don’t have the internet 
library (libURL) included you need to include it as an extra inclusion. tsNet 
is resolved as a dependency of libURL. At the moment we don’t have a facility 
for turning tsNet off in the event you want to use libURL (not really sure why 
you would want that but I guess it’s possible). You can turn tsNet off if you 
want to with `dispatch “revUnloadLibrary" to stack “tsNetLibURL”`

> 
> Where is it documented ?

In the documentation stack.

Cheers

Monte

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


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

Re: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Charles Warwick


On 30/07/2016 6:38 pm, Monte Goulding wrote

What is tsNet ?

A curl external we have licensed from Tech Strategies


Does it just happen ?

Yes


Or do I need to do something to use it ?
   If so, what ?

No, you don’t need to do anything unless you are explicitly selecting inclusions 
during the standalone build. Then if you don’t have the internet library (libURL) 
included you need to include it as an extra inclusion. tsNet is resolved as a 
dependency of libURL. At the moment we don’t have a facility for turning tsNet off 
in the event you want to use libURL (not really sure why you would want that but I 
guess it’s possible). You can turn tsNet off if you want to with `dispatch 
“revUnloadLibrary" to stack “tsNetLibURL”`


To add to what Monte has said, the tsNet external wraps around the 
existing libURL library as well as providing its own set of commands and 
functions.  This provides two ways of using the external.


Using the standard networking commands (put x into URL y, post x to URL 
y, load URL x, etc... ) will now automatically use the tsNet external in 
DP3 when using the internet library.


There are a quite a number of benefits of tsNet, however the four most 
obvious benefits you will see by using it in this fashion are:


1.  you can use SFTP URLs in the format of 
"sftp://user:p...@host.domain.com";.
2.  multiple asynchronous requests to the same server (for example when 
using "load URL x" commands) are processed immediately rather than 
sequentially as would happen previously
3.  a significant performance improvement particularly noticeable on 
large file transfers, or when executing multiple requests to the same 
server one after another
4.  all processing of data is offloaded to the external, improving 
responsive of the LC application to other tasks during transfers (for 
example, other handlers being triggered)


However, this only gives you access to a subset of the features of the 
tsNet external.


There are a range of commands and functions available in the tsNet 
external, all starting with "tsNet", that can be found in the LC 
dictionary.  These give you access to the additional features like 
sending e-mails via SMTP(S) and comprehensive asynchronous request types 
that are not available using the standard internet library (for example, 
firing off multiple HTTP POST requests asynchronously).


I will be adding more documentation and examples over the coming weeks 
to assist with using this external.  In the mean time, I have uploaded a 
very simple sample stack that demonstrates how to send multiple HTTP 
POST requests in an asynchronous manner here:


https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode

Hope that helps,

Regards,

Charles




Where is it documented ?

In the documentation stack.

Cheers

Monte


Thanks
Alex.

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


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



___
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: styles for lines in a list

2016-07-30 Thread [-hh]
What you wish for chunks of a field may be partially intended to
develop with the 'text-field-extension' of the last pledging.

The possible 'bug':

Did you check the threeD setting (true) of the field, that is
*conditional* for the field's bottomColor to be affected?

It's similar with the borderColor of a field to become affected,
what has also the threeD setting (false) as conditional.


Sannyasin Brahmanathaswami wrote
> With no expectation but just in the off chance the dictionary entry for
> graphic effects was incomplete or out of date with respect to what objects
> can receive graphic effects:
> 
> I tried
> 
> on mouseup
>   set the dropshadow["color"] of word 1 of line 1 of fld
> "testGraphicEffects to "255,0,0"
> end mouseup
> 
> of course it failed…a word or a line of a field is not an "object" subject
> to graphicEffects…  silent error, no syntax wrong flag in the script
> editor either.
> 
> Are the foreground and background colors (hilite for list behavior fields)
> the only "decorations" we have available for text in fields? beyond the
> textstyles.
> 
> Use case:  if you use buttons for a navigation list, you have all sorts of
> graphic effects options for those on rollover, mousedown etc… but if you
> are calling for example a JSON file from the server that you want to turn
> into a clickable tree/outline/navigation index , you won't have those
> "lovely" options.
> 
> Just curious if anyone has found ways to do more decorations with text in
> fields/lists?
> 
> I found possibly a bug while checking to see if the threeDBox style could
> be of service:
> 
> 
> on mouseUp
> 
> set the bottomColor of fld "test3d" to "255,0,0"
> 
> #result: red border top and left of field
> 
> set the textStyle of line 1 of fld "test3d" to threeDbox
> 
> # result: line one has red border right and bottom
> 
> end mouseUp
> 
> But the dictionary indicates the bottomColor should be applied to the box
> round the line on the top/left borders, just like the field itself…Can
> anyone confirm?  Why BottomColor is applied to top/left is unintuitive…
> that seems backward… in this case it would seem like we have both a
> dictionary issue and engine issue: if Bottomcolor is applied to bottom and
> right border of a text chunk.. that makes sense and the dictionary should
> say so, and then setting the bottom color of a field should also set the
> bottom andright borders as well.  Am I missing something?
> BR





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/styles-for-lines-in-a-list-tp4707093p4707100.html
Sent from the Revolution - User mailing list archive at Nabble.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: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Roger Eller
> * SFTP, SMTP, and SMTPS support (synchronous in Indy, async in Business)
> * SFTP key-based authentication (Business-only)

Why handicap the performance for all but the high-rollers?
What does the open-source version get; the old half-baked libUrl?
Was there no open-source FTP libs out in the expanse of the interwebs that
could benefit all LC users?

~Roger
On Jul 29, 2016 12:15 PM, "panagiotis merakos" 
wrote:

> Dear list members,
> We are pleased to announce the release of LiveCode 8.1.0-dp-3, a
> development preview of LiveCode 8.1.
>
> Developer Preview Release
> =
> Warning: this is not a stable release.  Please ensure that you back up your
> stacks before testing them.
>
> Getting the Release
> ===
> You can get the release at https://downloads.livecode.com/livecode/#8_1_0
> or via the automatic updater.
>
> Release Contents
> 
> Full release notes:
> https://downloads.livecode.com/livecode/8_1_0/LiveCodeNotes-8_1_0_dp_3.pdf
>
> tsNet external
> --
> LiveCode Indy and Business Editions now include the Tech Strategies tsNet
> external!
> * Faster than libURL (like, way faster... WAY FASTER)
> * Multiple simultaneous asynchronous requests to the same server
> * SFTP, SMTP, and SMTPS support (synchronous in Indy, async in Business)
> * SFTP key-based authentication (Business-only)
> * Seamless integration
>
> files() and folders() functions take an argument
> 
> Avoid setting "the defaultFolder" by using "files()".
>
> LiveCode "Infinite" improvements to LCB
> ---
> * The deprecated "undefined" keyword has been "nothing"-ed.
>
> Graph widget upgrades
> -
> * Show points as well (or instead of) lines
> * Choose a variety of exciting point markers (circles, squares, etc.)
>
> More!
> -
> * Support for field paragraphs with > 32767 characters
> * New "tokenOffset()" function finds the offset of tokens
> * 26 LiveCode 8.1-specific bugs fixed
>
> Known issues
> 
> * HTML5 standalones don't obey standalone builder settings (bug 18103)
> * HTML5 standalones do not currently work when they contain extensions with
> dependencies
> * 64-bit standalones for Mac OS X do not have support for audio recording
> or the revVideoGrabber external
> * The default video is in .mov format which is not supported by the new
> Windows player (bug 17696)
>
> Feedback
> 
> Please report any bugs encountered either to our support team <
> supp...@livecode.com> or on our Bugzilla at http://quality.livecode.com/
>
> Have fun!
> The LiveCode Team
> ___
> 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: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Kevin Miller
The new URL library is licensed with per-user costs so it can¹t go into
OSS. There are libraries out there. The platform is open source. That
means that you can add any one you choose free of charge.

Kind regards,

Kevin

Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




On 30/07/2016, 13:50, "use-livecode on behalf of Roger Eller"
 wrote:

>> * SFTP, SMTP, and SMTPS support (synchronous in Indy, async in Business)
>> * SFTP key-based authentication (Business-only)
>
>Why handicap the performance for all but the high-rollers?
>What does the open-source version get; the old half-baked libUrl?
>Was there no open-source FTP libs out in the expanse of the interwebs that
>could benefit all LC users?
>
>~Roger
>On Jul 29, 2016 12:15 PM, "panagiotis merakos"
>
>wrote:
>
>> Dear list members,
>> We are pleased to announce the release of LiveCode 8.1.0-dp-3, a
>> development preview of LiveCode 8.1.
>>
>> Developer Preview Release
>> =
>> Warning: this is not a stable release.  Please ensure that you back up
>>your
>> stacks before testing them.
>>
>> Getting the Release
>> ===
>> You can get the release at
>>https://downloads.livecode.com/livecode/#8_1_0
>> or via the automatic updater.
>>
>> Release Contents
>> 
>> Full release notes:
>> 
>>https://downloads.livecode.com/livecode/8_1_0/LiveCodeNotes-8_1_0_dp_3.pd
>>f
>>
>> tsNet external
>> --
>> LiveCode Indy and Business Editions now include the Tech Strategies
>>tsNet
>> external!
>> * Faster than libURL (like, way faster... WAY FASTER)
>> * Multiple simultaneous asynchronous requests to the same server
>> * SFTP, SMTP, and SMTPS support (synchronous in Indy, async in Business)
>> * SFTP key-based authentication (Business-only)
>> * Seamless integration
>>
>> files() and folders() functions take an argument
>> 
>> Avoid setting "the defaultFolder" by using "files()".
>>
>> LiveCode "Infinite" improvements to LCB
>> ---
>> * The deprecated "undefined" keyword has been "nothing"-ed.
>>
>> Graph widget upgrades
>> -
>> * Show points as well (or instead of) lines
>> * Choose a variety of exciting point markers (circles, squares, etc.)
>>
>> More!
>> -
>> * Support for field paragraphs with > 32767 characters
>> * New "tokenOffset()" function finds the offset of tokens
>> * 26 LiveCode 8.1-specific bugs fixed
>>
>> Known issues
>> 
>> * HTML5 standalones don't obey standalone builder settings (bug 18103)
>> * HTML5 standalones do not currently work when they contain extensions
>>with
>> dependencies
>> * 64-bit standalones for Mac OS X do not have support for audio
>>recording
>> or the revVideoGrabber external
>> * The default video is in .mov format which is not supported by the new
>> Windows player (bug 17696)
>>
>> Feedback
>> 
>> Please report any bugs encountered either to our support team <
>> supp...@livecode.com> or on our Bugzilla at http://quality.livecode.com/
>>
>> Have fun!
>> The LiveCode Team
>> ___
>> 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


typo

2016-07-30 Thread Matt Maier
It's off topic, but in the spirit of wanting Livecode to be as good as it
can be, this sentence shouldn't have an "a" in it.

https://livecode.com/services/

"Let us run the recruitment process to help you hire a the right new
LiveCode developers onto your team"
___
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: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Matthias Rebbe
Charles,

is FTP with TLS/SSL (AUTH TLS - Explicit) also supported by your external?

If so, could you add an example for that also, please?

Regards,
Matthias



> Am 30.07.2016 um 12:13 schrieb Charles Warwick  >:
> 
> 
> To add to what Monte has said, the tsNet external wraps around the existing 
> libURL library as well as providing its own set of commands and functions.  
> This provides two ways of using the external.
> 
> Using the standard networking commands (put x into URL y, post x to URL y, 
> load URL x, etc... ) will now automatically use the tsNet external in DP3 
> when using the internet library.
> 
> There are a quite a number of benefits of tsNet, however the four most 
> obvious benefits you will see by using it in this fashion are:
> 
> 1.  you can use SFTP URLs in the format of "sftp://user:p...@host.domain.com 
> ftp://user:p...@host.domain.com>".
> 2.  multiple asynchronous requests to the same server (for example when using 
> "load URL x" commands) are processed immediately rather than sequentially as 
> would happen previously
> 3.  a significant performance improvement particularly noticeable on large 
> file transfers, or when executing multiple requests to the same server one 
> after another
> 4.  all processing of data is offloaded to the external, improving responsive 
> of the LC application to other tasks during transfers (for example, other 
> handlers being triggered)
> 
> However, this only gives you access to a subset of the features of the tsNet 
> external.
> 
> There are a range of commands and functions available in the tsNet external, 
> all starting with "tsNet", that can be found in the LC dictionary.  These 
> give you access to the additional features like sending e-mails via SMTP(S) 
> and comprehensive asynchronous request types that are not available using the 
> standard internet library (for example, firing off multiple HTTP POST 
> requests asynchronously).
> 
> I will be adding more documentation and examples over the coming weeks to 
> assist with using this external.  In the mean time, I have uploaded a very 
> simple sample stack that demonstrates how to send multiple HTTP POST requests 
> in an asynchronous manner here:
> 
> https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode 
> 
> 
> Hope that helps,
> 
> Regards,
> 
> Charles
> 
___
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: typo

2016-07-30 Thread Richmond

Well, I would also take issue with 'onto' and replace it with 'for'.

Richmond.


On 30.07.2016 16:22, Matt Maier wrote:

It's off topic, but in the spirit of wanting Livecode to be as good as it
can be, this sentence shouldn't have an "a" in it.

https://livecode.com/services/

"Let us run the recruitment process to help you hire a the right new
LiveCode developers onto your team"
___
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: typo

2016-07-30 Thread Peter Bogdanoff
It's Scots. Or maybe Scotch.

> On Jul 30, 2016, at 7:49 AM, Richmond  wrote:
> 
> Well, I would also take issue with 'onto' and replace it with 'for'.
> 
> Richmond.
> 
> 
>> On 30.07.2016 16:22, Matt Maier wrote:
>> It's off topic, but in the spirit of wanting Livecode to be as good as it
>> can be, this sentence shouldn't have an "a" in it.
>> 
>> https://livecode.com/services/
>> 
>> "Let us run the recruitment process to help you hire a the right new
>> LiveCode developers onto your team"
>> ___
>> 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: typo

2016-07-30 Thread Dr. Hawkins
On Sat, Jul 30, 2016 at 8:15 AM, Peter Bogdanoff  wrote:

> It's Scots. Or maybe Scotch.


For that matter, it could have been caused by bourbon to tequila . . .

:)


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: typo

2016-07-30 Thread [-hh]
[1] As to the sentence you cite: 
Why should have "your team" no "a"?
Or: What means "your tem?"

[2] The sentence you cite is not there. 
https://livecode.com/services/


Matt Maier wrote
> It's off topic, but in the spirit of wanting Livecode to be as good as it
> can be, this sentence shouldn't have an "a" in it.
> 
> https://livecode.com/services/
> 
> "Let us run the recruitment process to help you hire a the right new
> LiveCode developers onto your team"
> ___





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/typo-tp4707103p4707108.html
Sent from the Revolution - User mailing list archive at Nabble.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: typo

2016-07-30 Thread Klaus major-k
Hi Hermann,

> Am 30.07.2016 um 17:00 schrieb [-hh] :
> 
> [1] As to the sentence you cite: 
> Why should have "your team" no "a"?
> Or: What means "your tem?"

there is an "a" too much right after "hire":

>> ...to help you hire a the right new LiveCode developer...


> [2] The sentence you cite is not there. 
> https://livecode.com/services/

It is! Just copied this paragraph from that webpage:
...
Developer Recruitment Support
Do you need more LiveCode developers on your team? 
Let us run the recruitment process to help you hire a the right new LiveCode 
developers 
onto your team. We can also provide optional training to the new developers.
...

> Matt Maier wrote
>> It's off topic, but in the spirit of wanting Livecode to be as good as it
>> can be, this sentence shouldn't have an "a" in it.
>> 
>> https://livecode.com/services/
>> 
>> "Let us run the recruitment process to help you hire a the right new
>> LiveCode developers onto your team"

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


Re: typo

2016-07-30 Thread Dr. Hawkins
On Sat, Jul 30, 2016 at 8:00 AM, [-hh]  wrote:

> [2] The sentence you cite is not there.
> https://livecode.com/services/
>
>
Were it Ireland instead of Scotland, I'd suggest the wee folk had taken
care of it . . .



-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: typo

2016-07-30 Thread [-hh]
Hi Klus and Dr.Hwkins,

sorry, searched without "a".
But off topic is off topic, so I'll insist on that:

Matt writes:
'.. this sentence shouldn't have an "a" in it.'
And this sentence(*) has two "a" in it.

He could have written
'.. this sentence shouldn't have an "a " in it.'

Else we have two spaces (one too much) there and
also the word "tem".

Perhaps "onto your tem" makes sense? A hidden message?
If we scramble the chars we get "to mentor you" ...

(*)The sentence:
"Let us run the recruitment process to help you hire a the
right new LiveCode developers onto your team"

Regrds, Hermnn
Klaus major-k wrote
> Hi Hermann,
> 
>> Am 30.07.2016 um 17:00 schrieb [-hh] <

> hh@.on-rev

> >:
>> 
>> [1] As to the sentence you cite: 
>> Why should have "your team" no "a"?
>> Or: What means "your tem?"
> 
> there is an "a" too much right after "hire":
> 
>>> ...to help you hire a the right new LiveCode developer...
> 
> 
>> [2] The sentence you cite is not there. 
>> https://livecode.com/services/
> 
> It is! Just copied this paragraph from that webpage:
> ...
> Developer Recruitment Support
> Do you need more LiveCode developers on your team? 
> Let us run the recruitment process to help you hire a the right new
> LiveCode developers 
> onto your team. We can also provide optional training to the new
> developers.
> ...
> 
>> Matt Maier wrote
>>> It's off topic, but in the spirit of wanting Livecode to be as good as
>>> it
>>> can be, this sentence shouldn't have an "a" in it.
>>> 
>>> https://livecode.com/services/
>>> 
>>> "Let us run the recruitment process to help you hire a the right new
>>> LiveCode developers onto your team"
> 
> Best
> 
> Klaus
> --
> Klaus Major
> http://www.major-k.de

> klaus@

> 
> 
> ___
> use-livecode mailing list

> use-livecode@.runrev

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





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/typo-tp4707103p4707111.html
Sent from the Revolution - User mailing list archive at Nabble.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: LCB

2016-07-30 Thread Mike Kerner
The thing I don't have my brain wrapped around, yet, is why one would use
the LCB library-building functionality instead of building a library
stack.  I'm interested in what you're doing, Trevor, and how you're using
LCB, as I have ideas on how to make adopting LCB easier, for me, anyway.

On Fri, Jul 29, 2016 at 6:43 PM, Trevor DeVore 
wrote:

> On Friday, July 29, 2016, Mike Kerner  wrote:
>
> > Is anybody doing anything significant with LCB, yet?
> >
>
> I'm doing a lot of UI work with it. For custom controls I think widgets are
> fantastic (although I wish the team would get event messaging sorted
> out). I've experimented some with libraries in the last but the language
> wasn't quite mature enough to make it worth it. I ended up calling out to
> LCS to do a lot of things.
>
> --
> Trevor DeVore
> ScreenSteps
> ___
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: LCB

2016-07-30 Thread Peter TB Brett

On 30/07/2016 17:52, Mike Kerner wrote:

The thing I don't have my brain wrapped around, yet, is why one would use
the LCB library-building functionality instead of building a library
stack.  I'm interested in what you're doing, Trevor, and how you're using
LCB, as I have ideas on how to make adopting LCB easier, for me, anyway.


I prefer writing libraries in LCB because:

- LCB libraries aren't in the message path; they get selected for 
dispatch in the same way that engine commands do


- I find LCB libraries easier to test (built in unit test syntax)

- LCB has block scoped, strongly-typed variables

- LCB lets you pass handlers around as values

- LCB has lists

 Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

LiveCode 2016 Conference https://livecode.com/edinburgh-2016/

___
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: typo

2016-07-30 Thread Matt Maier
Wasn't planning to make a habit out of this, but here's another one. Unles
"variabable" was a punny easter egg. Maybe some kind of Freudian slip.
http://samples.on-rev.com/get.irev

"...added with the following syntax:

http://www.yoururl.com?variabableName1=value&...";


I'll stop if someone can point me towards a comprehensive explanation of
how to connect Livecode scripts on all of the different platforms to each
other.

On Sat, Jul 30, 2016 at 6:41 PM, [-hh]  wrote:

> Hi Klus and Dr.Hwkins,
>
> sorry, searched without "a".
> But off topic is off topic, so I'll insist on that:
>
> Matt writes:
> '.. this sentence shouldn't have an "a" in it.'
> And this sentence(*) has two "a" in it.
>
> He could have written
> '.. this sentence shouldn't have an "a " in it.'
>
> Else we have two spaces (one too much) there and
> also the word "tem".
>
> Perhaps "onto your tem" makes sense? A hidden message?
> If we scramble the chars we get "to mentor you" ...
>
> (*)The sentence:
> "Let us run the recruitment process to help you hire a the
> right new LiveCode developers onto your team"
>
> Regrds, Hermnn
> Klaus major-k wrote
> > Hi Hermann,
> >
> >> Am 30.07.2016 um 17:00 schrieb [-hh] <
>
> > hh@.on-rev
>
> > >:
> >>
> >> [1] As to the sentence you cite:
> >> Why should have "your team" no "a"?
> >> Or: What means "your tem?"
> >
> > there is an "a" too much right after "hire":
> >
> >>> ...to help you hire a the right new LiveCode developer...
> >
> >
> >> [2] The sentence you cite is not there.
> >> https://livecode.com/services/
> >
> > It is! Just copied this paragraph from that webpage:
> > ...
> > Developer Recruitment Support
> > Do you need more LiveCode developers on your team?
> > Let us run the recruitment process to help you hire a the right new
> > LiveCode developers
> > onto your team. We can also provide optional training to the new
> > developers.
> > ...
> >
> >> Matt Maier wrote
> >>> It's off topic, but in the spirit of wanting Livecode to be as good as
> >>> it
> >>> can be, this sentence shouldn't have an "a" in it.
> >>>
> >>> https://livecode.com/services/
> >>>
> >>> "Let us run the recruitment process to help you hire a the right new
> >>> LiveCode developers onto your team"
> >
> > Best
> >
> > Klaus
> > --
> > Klaus Major
> > http://www.major-k.de
>
> > klaus@
>
> >
> >
> > ___
> > use-livecode mailing list
>
> > use-livecode@.runrev
>
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
>
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/typo-tp4707103p4707111.html
> Sent from the Revolution - User mailing list archive at Nabble.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: LCB

2016-07-30 Thread Mike Kerner
What I read is that you are saying that you prefer LCB because it is more
of a traditional language.  I am completely the other way.  Traditional
languages turn me off.  So, for someone who can choose any tool there is,
but chooses LC, why LCB for libraries over LCS?

On Sat, Jul 30, 2016 at 12:59 PM, Peter TB Brett 
wrote:

> On 30/07/2016 17:52, Mike Kerner wrote:
>
>> The thing I don't have my brain wrapped around, yet, is why one would use
>> the LCB library-building functionality instead of building a library
>> stack.  I'm interested in what you're doing, Trevor, and how you're using
>> LCB, as I have ideas on how to make adopting LCB easier, for me, anyway.
>>
>
> I prefer writing libraries in LCB because:
>
> - LCB libraries aren't in the message path; they get selected for dispatch
> in the same way that engine commands do
>
> - I find LCB libraries easier to test (built in unit test syntax)
>
> - LCB has block scoped, strongly-typed variables
>
> - LCB lets you pass handlers around as values
>
> - LCB has lists
>
>  Peter
>
> --
> Dr Peter Brett 
> LiveCode Technical Project Manager
>
> LiveCode 2016 Conference https://livecode.com/edinburgh-2016/
>
> ___
> 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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: styles for lines in a list

2016-07-30 Thread J. Landman Gay

Sannyasin Brahmanathaswami wrote:

Why BottomColor is applied to top/left is unintuitive…
that seems backward…


It does on first glance, but it's clear after you know what it's doing. 
TopColor and bottomColor only apply to 3D fields. The effect is like 
light shining onto a 3D frame, where the edges are hilighted on the 
parts that are "sticking out" and there are shadows underneath. The 
default light source is at the top left, which is the corner that will 
show hilighting effects. The bottom right corner will show an opposite 
effect; the "inside" of the frame will catch the light and the lower 
edge will be in shadow.


The topColor is the hilighted color, the bottomColor is the shadow color.

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

2016-07-30 Thread J. Landman Gay
I agree with Mike, this hard going for me. I don't know any other 
language besides xtalk, in which I am fluent. Declaring variable types 
is foreign, to me a "list" is a sequence of delimited text, I don't know 
what "block scoped" or "passing handlers as values" means. I'll reserve 
judgement on "easier to test"; my experience so far is that error 
messages are opaque and vague, but that may be because I was testing in 
the wrong LC version.


I think my inexperience makes me the ideal candidate for testing the 
lessons, but I could write a LCS library in a fraction of the time it 
would take me to write something in LCB. I will probably learn it but it 
will be a long journey. The "eureka" moments are rewarding though.


People who are coming to LC from other languages would likely share 
Peter's view.


On 7/30/2016 1:45 PM, Mike Kerner wrote:

What I read is that you are saying that you prefer LCB because it is more
of a traditional language.  I am completely the other way.  Traditional
languages turn me off.  So, for someone who can choose any tool there is,
but chooses LC, why LCB for libraries over LCS?

On Sat, Jul 30, 2016 at 12:59 PM, Peter TB Brett 
wrote:


On 30/07/2016 17:52, Mike Kerner wrote:


The thing I don't have my brain wrapped around, yet, is why one would use
the LCB library-building functionality instead of building a library
stack.  I'm interested in what you're doing, Trevor, and how you're using
LCB, as I have ideas on how to make adopting LCB easier, for me, anyway.



I prefer writing libraries in LCB because:

- LCB libraries aren't in the message path; they get selected for dispatch
in the same way that engine commands do

- I find LCB libraries easier to test (built in unit test syntax)

- LCB has block scoped, strongly-typed variables

- LCB lets you pass handlers around as values

- LCB has lists

 Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

LiveCode 2016 Conference https://livecode.com/edinburgh-2016/

___
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: LCB

2016-07-30 Thread J. Landman Gay

On 7/30/2016 11:59 AM, Peter TB Brett wrote:


- LCB libraries aren't in the message path; they get selected for
dispatch in the same way that engine commands do


I'm not seeing that. I have the "sayHello" lesson library loaded, and I 
put this script into a button in a new stack:


on mouseUp
  put sayHello("jacque,peter") into tArray
  breakpoint
end mouseUp

function sayHello pNames
  put "Card function hit"
end sayHello


The function in the button script triggers and the message box shows 
"Card function hit." The tArray variable in the mouseUp handler is 
empty. The same thing happens if I put the sayHello LCS handler into the 
card script.


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


Create and Delete Browser Widget?

2016-07-30 Thread Sannyasin Brahmanathaswami
still struggling with "destroying" the browser widget on mobile.

Go in Window, (where stack A with browser is closed and you go stack B in 
window)  recommended by Mark, does not work. The browser persists on top of the 
screen even as the new stack is opened.

Next attempt is to delete and create dynamically.

what is the syntax to create a widget object? the dictionary
create [invisible] objectType [objectName] [in group]

does not list the different widgets under object types, so how do you refer to 
it?


on mouseUp

   create browser "candy"

end mouseUp"
does not work (nor various other forms I tried…)

The previous revBrowser language syntax options  where robust and useful, these 
two in particular for this use case (moving from one stack to another)

revBrowserOpen   RevBrowserClose

side note: Dictionary deprecates XBrowser…

but says nothing about the relative merit or use cases for the new browser 
widget vs RevBrowser…

Insights anyone?

BR






___
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: Create and Delete Browser Widget?

2016-07-30 Thread panagiotis merakos
See the [create widget] command in the dictionary. You can do:

create widget "MyBrowser" as "com.livecode.widget.browser"

Maybe worth trying first to set the "visible" of the browser widget to
false/true when you close/open the card that has the browser widget. If
this does not work then try to delete/create the widget

On Sat, Jul 30, 2016 at 11:51 PM, Sannyasin Brahmanathaswami <
bra...@hindu.org> wrote:

> still struggling with "destroying" the browser widget on mobile.
>
> Go in Window, (where stack A with browser is closed and you go stack B in
> window)  recommended by Mark, does not work. The browser persists on top of
> the screen even as the new stack is opened.
>
> Next attempt is to delete and create dynamically.
>
> what is the syntax to create a widget object? the dictionary
> create [invisible] objectType [objectName] [in group]
>
> does not list the different widgets under object types, so how do you
> refer to it?
>
>
> on mouseUp
>
>create browser "candy"
>
> end mouseUp"
> does not work (nor various other forms I tried…)
>
> The previous revBrowser language syntax options  where robust and useful,
> these two in particular for this use case (moving from one stack to another)
>
> revBrowserOpen   RevBrowserClose
>
> side note: Dictionary deprecates XBrowser…
>
> but says nothing about the relative merit or use cases for the new browser
> widget vs RevBrowser…
>
> Insights anyone?
>
> BR
>
>
>
>
>
>
> ___
> 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: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Alex Tweedly

Thanks Monte - but more questions open up 

On 30/07/2016 09:38, Monte Goulding wrote:

Or do I need to do something to use it ?

   If so, what ?

No, you don’t need to do anything unless you are explicitly selecting inclusions 
during the standalone build. Then if you don’t have the internet library (libURL) 
included you need to include it as an extra inclusion. tsNet is resolved as a 
dependency of libURL. At the moment we don’t have a facility for turning tsNet off 
in the event you want to use libURL (not really sure why you would want that but I 
guess it’s possible). You can turn tsNet off if you want to with `dispatch 
“revUnloadLibrary" to stack “tsNetLibURL”`

Q. Why would I want to turn it off ?
A. for testing.
If I have a stack that uses libURL, and I want it to be usable with 
either Indy or Commercial version, then I *should* (IMO) test it with 
both tsNet and straight libURL. I do not have the Community version on 
any of my machines, and never will so long as that puts me at risk of 
unintentionally exposing my stacks to GPL - so I would need a way to 
turn off tsNet to allow such testing.


If I do use some of the tsNet handlers, and then someone else downloads 
that stack and runs it in the Community version, do these calls simply 
fail, or are there 'stub' versions included in the community version ?


Are there already other features that work in both versions, but do so 
differently ?

Where is it documented ?

In the documentation stack.

Ooops - got to stop looking in8.1 DP2 dictionry for DP3 features :-)


Thanks
-- Alex.


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

Re: Customize Tree Lists/Indexes

2016-07-30 Thread Sannyasin Brahmanathaswami
RE:

rTree2 (at the extensions shop) 

tapir.com seems dead. Email to developer Mal Walstrand (sp?) )  is bouncing as 
non-existent…  (click on the site contact email address with attention to him) 
Only Ganesha knows if that thing is compatible with LC 8… or not… and there is 
no way to get a trial.

So… back to designing our own. Perhaps a worthy widget for community funding?

Requirements are not that complicated. Could almost take the project browser 
and tweak such that it could even serve on mobile. or advance the existing tree 
widget to the next level?

Properties to expose:

-- text style(s) per level
-- indents space (none | px ) per indent level
-- icon assignments. 
-- default fold state "collapsed |uncollapsed"
-- elements count for next level below (at end of parent level-line)
-- alternate line colors
-- node level separators (horizontal rules between top level nodes only, second 
level, third level) color of separator.
-- lines wrap yes | no

Am I the only one thinking we need this?

On 7/29/16, 8:37 PM, "use-livecode on behalf of Erik Beugelaar" 
 wrote:

https://livecode.com/products/extensions

Regards,
Erik



___
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: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Sannyasin Brahmanathaswami
TS NET:

Awesome! thank you… my begging bowl was out for this for s long!

Monte Goulding wrote:
> Or do I need to do something to use it ?
>>If so, what ?
> No, you don’t need to do anything unless you are explicitly selecting 
inclusions during the standalone build. Then if you don’t have the internet 
library (libURL) included you need to include it as an extra inclusion. tsNet 
is resolved as a dependency of libURL

More examples would help.. 

a simple "naïve" test for starters (assumes all works under the hood) was

put url "sftp://tUser:tPwd@mydomainIP/home/mydomain/public_html/";

returns no error for syntax in the script editor… result is empty and "it" is 
empty.



1) neither libURL nor TSNet has any command that explicitly contains "SFTP"  if 
the URL we issue is (I assume this is the required form)

 "sftp://tUSER:t...@www.mydomain.com/public_html/cool_pix";

is SFTP automatically implemented? transparently handled?

2) does TSnet get fired transparently whenever libURL does it's job?  

OR

3) do we use one or the other?

4)  what command do we issue which returns the pConnectionID that we see for 
all subsequent requests to the server.  We see lots of cmds that require 
pConnectionID, but none that opens a connection are returns that value for 
subsequent use.

one expects to see a function call like

tsNetOpen  # returns connection ID

Maybe someone can post here a simple session example of script that does:

-- open a remote directory by SFTP
-- returns  a directory listing
-- upload/upload a file to that directory

I think once we see one of these we can probably grok the rest.

Again thanks to Kevin for this acquisition!

BR









___
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

Polygon Smoothing

2016-07-30 Thread Roger Guay
I thought this would be easy but I need help. Anybody know a good algorithm for 
smoothing polygons?

Thanks,

Roger

___
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: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Charles Warwick


On 31/07/2016 9:53 am, Alex Tweedly wrote:
No, you don’t need to do anything unless you are explicitly selecting 
inclusions during the standalone build. Then if you don’t have the 
internet library (libURL) included you need to include it as an extra 
inclusion. tsNet is resolved as a dependency of libURL. At the moment 
we don’t have a facility for turning tsNet off in the event you want 
to use libURL (not really sure why you would want that but I guess 
it’s possible). You can turn tsNet off if you want to with `dispatch 
“revUnloadLibrary" to stack “tsNetLibURL”`

Q. Why would I want to turn it off ?
A. for testing.
If I have a stack that uses libURL, and I want it to be usable with 
either Indy or Commercial version, then I *should* (IMO) test it with 
both tsNet and straight libURL. I do not have the Community version on 
any of my machines, and never will so long as that puts me at risk of 
unintentionally exposing my stacks to GPL - so I would need a way to 
turn off tsNet to allow such testing.


I assume you mean "either Indy or Community version" above :-)

To clarify Monte's comment above, if you include libURL in your 
standalone application, the tsNet external will automatically get 
included in the build.  There is currently no way from within the 
"standalone application settings" to disable the use of tsNet with libURL.


However, if you do need to completely disable the use of the tsNet 
libURL driver so that your standard networking calls which utilise 
libURL won't invoke the tsNet commands, you can issue the "dispatch" 
command Monte mentioned above.


This also removes the dependancy links between tsNet and libURL, so that 
the tsNet external will not get included in any standalone build unless 
you manually select it (for example, if you just wanted to use it via 
the tsNet commands).


Alternatively, if you just want disable the use of the tsNet libURL 
driver for testing purposes, but don't want to remove the dependancies 
themselves, you can simply issue:


libUrlSetDriver ""

Note that you can still use the tsNet commands directly (provided you 
include the external if you are building externals) even if you do this.




If I do use some of the tsNet handlers, and then someone else 
downloads that stack and runs it in the Community version, do these 
calls simply fail, or are there 'stub' versions included in the 
community version ?


Like any other external that is provided in the commercial versions 
only, the handler calls will fail.


Regards,

Charles

___
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: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Charles Warwick

On 31/07/2016 12:01 am, Matthias Rebbe wrote:

Charles,

is FTP with TLS/SSL (AUTH TLS - Explicit) also supported by your external?


Yes, FTPS is supported by the external, though you have to use the tsNet 
commands directly, rather than the standard libUrl calls.


For explicit FTPS transfers, you can do something like this:

local tEmptyHeaderVar, tData, tResultHeaders, tSettings
put true into tSettings["use_ssl"]
put "some data to upload" into tData
put tsNetUploadSync("ftp://ftp.domain.com/path/to/file.dat";, 
tEmptyHeaderVar, tData, tResultHeaders, tSettings) into tResult


If you want to use the less common implicit transfers, you can do this 
instead:


local tEmptyHeaderVar, tData, tResultHeaders, tSettings
put "some data to upload" into tData
put tsNetUploadSync("ftps://ftp.domain.com/path/to/file.dat", 
tEmptyHeaderVar, tData, tResultHeaders, tSettings) into tResult


Hope that helps,

Regards,

Charles


If so, could you add an example for that also, please?

Regards,
Matthias




Am 30.07.2016 um 12:13 schrieb Charles Warwick mailto:char...@techstrategies.com.au>>:


To add to what Monte has said, the tsNet external wraps around the existing 
libURL library as well as providing its own set of commands and functions.  
This provides two ways of using the external.

Using the standard networking commands (put x into URL y, post x to URL y, load 
URL x, etc... ) will now automatically use the tsNet external in DP3 when using 
the internet library.

There are a quite a number of benefits of tsNet, however the four most obvious 
benefits you will see by using it in this fashion are:

1.  you can use SFTP URLs in the format of "sftp://user:p...@host.domain.com 
ftp://user:p...@host.domain.com>".
2.  multiple asynchronous requests to the same server (for example when using "load 
URL x" commands) are processed immediately rather than sequentially as would happen 
previously
3.  a significant performance improvement particularly noticeable on large file 
transfers, or when executing multiple requests to the same server one after 
another
4.  all processing of data is offloaded to the external, improving responsive 
of the LC application to other tasks during transfers (for example, other 
handlers being triggered)

However, this only gives you access to a subset of the features of the tsNet 
external.

There are a range of commands and functions available in the tsNet external, all starting 
with "tsNet", that can be found in the LC dictionary.  These give you access to 
the additional features like sending e-mails via SMTP(S) and comprehensive asynchronous 
request types that are not available using the standard internet library (for example, 
firing off multiple HTTP POST requests asynchronously).

I will be adding more documentation and examples over the coming weeks to 
assist with using this external.  In the mean time, I have uploaded a very 
simple sample stack that demonstrates how to send multiple HTTP POST requests 
in an asynchronous manner here:

https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode 


Hope that helps,

Regards,

Charles


___
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: Create and Delete Browser Widget?

2016-07-30 Thread Sannyasin Brahmanathaswami
Thks for the tips.

Results:

Stack A  
has a mobileScroller on  card 1
 the group that scrolls has links, some to out to another stack that has 
the browser widget.

Stack B The Browser Stack
   runs landscape… I pull a URL from our web server… runs beautifully.
   has button to go back to cd 1 of stack A

If I set the now to vis = false… (hide) 

When we arrive back at stack A  we don't see the browser occupying the space 
any more, at least visually. But the mobileScroller now is failing. I cannot 
scroll the group on the screen. 

I suspected that the invisible browser may still be trapping the touch events.

OK… so then next test:

on stack B, Delete browser on close and create browser on open.
  result: 1st problem is geometry… the stack is set to landscape… and when I 
create the browser as invisible and set the rect of the browser to 50,30,the 
width of this card, the height of this card after creating it… it fails and is 
drawn in the lower corner in a rect that is about 200px square in the lower 
left of the card.  OK, setting that aside, on mobile, I can start the video, on 
iOS it expands (youtube behavior) to take the full screen and when I click DONE 
it drops back to my card view (with browser stuck in the lower left area)…

So now I set the navigation in the behavior that is attached to the stack to 
delete the browers on exiting that card/stack and issue go recent.

So now we are back at Stack A… I can see in the project browser ondesktop 
(which is now runtime responsive in 8.1 dp3 YAY!) that the browser object is 
indeed being created and deleted… BUT

the scroller region on CD 1 of Stack A is still non responsive… I have to leave 
that stack, go to another stack and then back again… *now* the scroller is 
responsive.

So, this is a bit tricky eating up a lot of time going no where…

BR
 

On 7/30/16, 11:27 AM, "use-livecode on behalf of panagiotis merakos" 
 wrote:

See the [create widget] command in the dictionary. You can do:

create widget "MyBrowser" as "com.livecode.widget.browser"

Maybe worth trying first to set the "visible" of the browser widget to
false/true when you close/open the card that has the browser widget. If
this does not work then try to delete/create the widget

___
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: [ ANN ] Release 8.1.0 DP-3

2016-07-30 Thread Charles Warwick

On 31/07/2016 11:02 am, Sannyasin Brahmanathaswami wrote:

TS NET:

> No, you don’t need to do anything unless you are explicitly selecting 
inclusions during the standalone build. Then if you don’t have the internet 
library (libURL) included you need to include it as an extra inclusion. tsNet is 
resolved as a dependency of libURL

More examples would help..


Some more examples will be along soon :-)


a simple "naïve" test for starters (assumes all works under the hood) was

put url "sftp://tUser:tPwd@mydomainIP/home/mydomain/public_html/";

returns no error for syntax in the script editor… result is empty and "it" is 
empty.

hmmm... that should work and does here.

I have uploaded a very simple "debug" stack that you can run along side 
any stack in the IDE which will capture all header data sent and 
received using libUrl (just makes a simple call to libUrlSetLogField).


https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode

If you download that, click "start debug", and then try your "put" 
command again, it would good to see the output.




1) neither libURL nor TSNet has any command that explicitly contains "SFTP"  if 
the URL we issue is (I assume this is the required form)

  "sftp://tUSER:t...@www.mydomain.com/public_html/cool_pix";

is SFTP automatically implemented? transparently handled?


Yes, SFTP is automatically implemented.  Using libUrl, simply using a 
URL in the format you mentioned should work.


All of the tsNet commands/functions determine which protocol to use from 
the URL as well.



2) does TSnet get fired transparently whenever libURL does it's job?

OR

3) do we use one or the other?


tsNet gets fired transparently whenever libUrl does its job unless you 
choose to disable it.



4)  what command do we issue which returns the pConnectionID that we see for 
all subsequent requests to the server.  We see lots of cmds that require 
pConnectionID, but none that opens a connection are returns that value for 
subsequent use.

one expects to see a function call like

tsNetOpen  # returns connection ID


My apologies here.  There are some documentation updates that I have 
been working on that unfortunately didn't make it into DP3.  This will 
be clearer in the next release.


The value of the pConnectionID parameter is specified by the user 
whenever an asynchronous request is made (e.g. as the first parameter to 
the tsNetUpload function).  The idea here was to make it easier to 
identify the individual connection by using a label that makes sense for 
the particular application and transfer, rather than some arbitrary 
value returned by the external.


This is only relevant if you are using the tsNet handlers directly. An 
example of using asynchronous requests can be downloaded here:


https://downloads.techstrategies.com.au/tsnet/sample_async_post.livecode

This example uses HTTP POST requests, however the same concepts apply 
for all transfer types.



Maybe someone can post here a simple session example of script that does:

-- open a remote directory by SFTP
-- returns  a directory listing
-- upload/upload a file to that directory


If you are using standard libUrl commands, you would do:

local tData, tDirectoryListing, tInputFile, tData, tPath
put URL "sftp://user:p...@host.domain.com/directory/path/"; into 
tDirectoryListing

put specialFolderPath("documents") into tPath
put tPath & "/file.dat" into tInputFile
put URL ("binfile:///" & tInputFile) into tData
put tData into URL 
"sftp://user:p...@host.domain.com/directory/path/file.dat";


If you want to use the tsNet functions which provide direct access to 
more specific transfer details (number of bytes transferred, headers 
received from server, etc...) , this would be:


local tEmptyHeaderVar, tData, tResultHeaders, tResult, tBytes, 
tDirectoryListing, tInputFile, tPath
put tsNetGetSync("sftp://user:p...@host.domain.com/directory/path/";, 
tEmptyHeaderVar, tResultHeaders, tResult, tBytes) into tDirectoryListing

put specialFolderPath("documents") into tPath
put tPath & "/file.dat" into tInputFile
put tsNetUploadFileSync(tInputFile, 
"sftp://user:p...@host.domain.com/directory/path/file.dat";, 
tEmptyHeaderVar, tResultHeaders, tBytes) into tResult


In both cases, the tsNet external will use a single connection for the 
whole script.  It will not close and re-open the SFTP session for each 
request unless the server closes the session due to an inactivity 
timeout (or you force it to).


Hope that helps,

Regards,

Charles



I think once we see one of these we can probably grok the rest.

Again thanks to Kevin for this acquisition!

BR









___
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