Christer Pyyhtiä MindCrea Ltd Mobile: +358-400-410216 Skype: christerp1 chris...@mindcrea.com
> On 31.7.2016, at 13:00 , use-livecode-requ...@lists.runrev.com wrote: > > Send use-livecode mailing list submissions to > use-livecode@lists.runrev.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.runrev.com/mailman/listinfo/use-livecode > or, via email, send a message with subject or body 'help' to > use-livecode-requ...@lists.runrev.com > > You can reach the person managing the list at > use-livecode-ow...@lists.runrev.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of use-livecode digest..." > > > you can find the archives for this list at: > > http://lists.runrev.com/pipermail/use-livecode/ > > and search them using this link: > > http://www.google.com/advanced_search?q=site:lists.runrev.com > > Today's Topics: > > 1. Re: Customize Tree Lists/Indexes (Sannyasin Brahmanathaswami) > 2. Re: [ ANN ] Release 8.1.0 DP-3 (Sannyasin Brahmanathaswami) > 3. Polygon Smoothing (Roger Guay) > 4. Re: [ ANN ] Release 8.1.0 DP-3 (Charles Warwick) > 5. Re: [ ANN ] Release 8.1.0 DP-3 (Charles Warwick) > 6. Re: Create and Delete Browser Widget? (Sannyasin Brahmanathaswami) > 7. Re: [ ANN ] Release 8.1.0 DP-3 (Charles Warwick) > 8. Re: Polygon Smoothing (Richmond) > 9. Re: Polygon Smoothing (Scott Rossi) > 10. Re: Polygon Smoothing ([-hh]) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 31 Jul 2016 00:10:27 +0000 > From: Sannyasin Brahmanathaswami <bra...@hindu.org> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Re: Customize Tree Lists/Indexes > Message-ID: <9ea3d5f1-72e0-4c0c-85e3-1577e0219...@hindu.org> > Content-Type: text/plain; charset="utf-8" > > 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" > <use-livecode-boun...@lists.runrev.com on behalf of beugel...@solidit.nl> > wrote: > > https://livecode.com/products/extensions > > Regards, > Erik > > > > > ------------------------------ > > Message: 2 > Date: Sun, 31 Jul 2016 01:02:16 +0000 > From: Sannyasin Brahmanathaswami <bra...@hindu.org> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Re: [ ANN ] Release 8.1.0 DP-3 > Message-ID: <6ae03cad-cb4c-4c58-ab3d-43ce4c9bd...@hindu.org> > Content-Type: text/plain; charset="utf-8" > > TS NET: > > Awesome! thank you? my begging bowl was out for this for soooo 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 > > > > > > > > > > > ------------------------------ > > Message: 3 > Date: Sat, 30 Jul 2016 19:59:06 -0700 > From: Roger Guay <i...@mac.com> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Polygon Smoothing > Message-ID: <a500fd1e-fb3d-4bc1-835e-b3bd93fb8...@mac.com> > Content-Type: text/plain; charset=us-ascii > > I thought this would be easy but I need help. Anybody know a good algorithm > for smoothing polygons? > > Thanks, > > Roger > > > > ------------------------------ > > Message: 4 > Date: Sun, 31 Jul 2016 13:26:17 +1000 > From: Charles Warwick <char...@techstrategies.com.au> > To: use-livecode@lists.runrev.com > Subject: Re: [ ANN ] Release 8.1.0 DP-3 > Message-ID: > <366077bb-b7fd-114c-0173-c4569a71d...@techstrategies.com.au> > Content-Type: text/plain; charset=utf-8; format=flowed > > > 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 > > > > ------------------------------ > > Message: 5 > Date: Sun, 31 Jul 2016 13:37:34 +1000 > From: Charles Warwick <char...@techstrategies.com.au> > To: use-livecode@lists.runrev.com > Subject: Re: [ ANN ] Release 8.1.0 DP-3 > Message-ID: > <c0e2e16d-cc34-4e96-72c6-aa7fa013f...@techstrategies.com.au> > Content-Type: text/plain; charset=windows-1252; format=flowed > > 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 >>> <char...@techstrategies.com.au <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 <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 >>> <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 >> > > > > > ------------------------------ > > Message: 6 > Date: Sun, 31 Jul 2016 03:53:31 +0000 > From: Sannyasin Brahmanathaswami <bra...@hindu.org> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Re: Create and Delete Browser Widget? > Message-ID: <4355df29-097b-4e6d-90c8-3d6d9a5c4...@hindu.org> > Content-Type: text/plain; charset="utf-8" > > 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" > <use-livecode-boun...@lists.runrev.com on behalf of merak...@gmail.com> 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 > > > ------------------------------ > > Message: 7 > Date: Sun, 31 Jul 2016 14:30:09 +1000 > From: Charles Warwick <char...@techstrategies.com.au> > To: use-livecode@lists.runrev.com > Subject: Re: [ ANN ] Release 8.1.0 DP-3 > Message-ID: > <1f24dfda-bf58-e2fe-eb17-71f8b897a...@techstrategies.com.au> > Content-Type: text/plain; charset=utf-8; format=flowed > > 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 > > > > > ------------------------------ > > Message: 8 > Date: Sun, 31 Jul 2016 10:02:13 +0300 > From: Richmond <richmondmathew...@gmail.com> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Re: Polygon Smoothing > Message-ID: <ebe1aff1-e21a-83f6-2a40-39f0c1292...@gmail.com> > Content-Type: text/plain; charset=windows-1252; format=flowed > > "Polygon smoothing" ? > > Do you mean: > > 1. rounding corners? > > http://stackoverflow.com/questions/24771828/algorithm-for-creating-rounded-corners-in-a-polygon > > https://rechneronline.de/pi/round-corner.php > > 2. curving the straight bits outwards? > > Richmond. > > > On 31.07.2016 05:59, Roger Guay wrote: >> 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 > > > > > ------------------------------ > > Message: 9 > Date: Sun, 31 Jul 2016 00:21:00 -0700 > From: Scott Rossi <sc...@tactilemedia.com> > To: LiveCode Mail List <use-livecode@lists.runrev.com> > Subject: Re: Polygon Smoothing > Message-ID: <d3c2f446.94476%sc...@tactilemedia.com> > Content-Type: text/plain; charset="US-ASCII" > > Many years ago, Alejandro Tejada shared a demo stack for this. Doesn't > seem to run quite right under LC7, but you might be able to update or make > use of the algorithms. > > http://tactilemedia.com/download/Smooth_Polygon_Algorithms.rev.zip > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 7/30/16, 7:59 PM, "use-livecode on behalf of Roger Guay" > <use-livecode-boun...@lists.runrev.com on behalf of i...@mac.com> wrote: > >> 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 > > > > > > ------------------------------ > > Message: 10 > Date: Sun, 31 Jul 2016 01:55:10 -0700 (PDT) > From: "[-hh]" <h...@hh.on-rev.com> > To: use-revolut...@lists.runrev.com > Subject: Re: Polygon Smoothing > Message-ID: <1469955310164-4707131.p...@n4.nabble.com> > Content-Type: text/plain; charset=us-ascii > > Smoothing-(Bezier-)Algorithms. > the usability depends on what you want to do: > > [1] Smooth draw or > [2] approximate a few polygon lines by a smooth curve. > > HTML5 version (check "smoothing"). > http://hh.on-rev.com/html5/krikelKrakel2a-8.0.0-dp-15X.html > > Runs much faster in the IDE, see how to download the stack > in the HTML5 forum ("Successfull test"). > > Contains algorithms of Decasteljau (good for [1]) > and of Chaikin and Shemanarev (may better for [2]). > > [1] is even fast enough for Raspi > Raspi collection stack #30, runs also (faster) on all other > desktop platforms. > http://forums.livecode.com/viewtopic.php?p=104113#p104113 > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-0-DP-3-tp4707068p4707131.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-livecode > > ------------------------------ > > End of use-livecode Digest, Vol 154, Issue 55 > ********************************************* _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode