From panos.merakos at livecode.com Mon Oct 1 08:25:40 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 1 Oct 2018 15:25:40 +0300 Subject: [ANN] This Week in LiveCode 148 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #148 here: https://goo.gl/aYTpe3 This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From bobsneidar at iotecdigital.com Mon Oct 1 10:33:44 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 14:33:44 +0000 Subject: Stacks whose names start with "rev" In-Reply-To: <58fb024d-9a37-d699-8943-e953d6518f3d@sonic.net> References: <50bf1b47-ee0e-69d4-9ea8-420aada62705@sonic.net> <58fb024d-9a37-d699-8943-e953d6518f3d@sonic.net> Message-ID: I like the idea of stack UUIDs. Bob S > On Sep 28, 2018, at 17:16 , Mark Wieder via use-livecode wrote: > > Of course, part of the IDE problem comes from dealing with stacks by short name only, and this has been the subject of a long-standing bug report. The engine itself has no problem with multiple stacks, just the IDE. And this could possibly be eliminated with stack UUIDs or if the IDE looked at filenames in addition to stack names. > > -- > Mark Wieder From bobsneidar at iotecdigital.com Mon Oct 1 10:36:00 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 14:36:00 +0000 Subject: Stacks whose names start with "rev" In-Reply-To: <564e8282-3f54-3560-f430-66b6f92e681b@hyperactivesw.com> References: <6d7bc399-a613-300d-e323-7407621404b6@hyperactivesw.com> <7c5c100c-2b6b-9115-20db-cadc15fe68a8@fourthworld.com> <564e8282-3f54-3560-f430-66b6f92e681b@hyperactivesw.com> Message-ID: Stack mode is read only. You set the style. Bob S > On Sep 29, 2018, at 15:33 , J. Landman Gay via use-livecode wrote: > > CantModify is false and stack mode is 2. I tried repeatedly to set it to 1 and wouldn't take. It's decided it's a 2 and there is no changing its mind. From bobsneidar at iotecdigital.com Mon Oct 1 10:42:13 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 14:42:13 +0000 Subject: [off] Do me a solid In-Reply-To: References: Message-ID: I wonder who has the monopoly on what color wires go where in bomb making? ;-) Bob S > On Sep 29, 2018, at 12:00 , Richmond via use-livecode wrote: > > Decentralizing control from any form of monopoly has always got to be good. > > However, the monopolists have probably got the internet so firmly "by the prawns" I wonder > if the man's plan will work. > > Richmond. From bobsneidar at iotecdigital.com Mon Oct 1 10:43:50 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 14:43:50 +0000 Subject: [off] Do me a solid In-Reply-To: References: <20180929193736.4863be34@poseidon> Message-ID: <4B44DDC4-A248-4130-A77D-B774353DDFDE@iotecdigital.com> Yeah, seems like the rebels just become the new dictator, like in that old Twilight Zone episode. Bob S > On Sep 29, 2018, at 16:20 , Stephen Barncard via use-livecode wrote: > > still.... they are depending on AWS? Amazon is "the man" now... > -- > Stephen Barncard - Sebastopol Ca. USA - From rdimola at evergreeninfo.net Mon Oct 1 10:58:34 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 1 Oct 2018 10:58:34 -0400 Subject: [off] Do me a solid In-Reply-To: <4B44DDC4-A248-4130-A77D-B774353DDFDE@iotecdigital.com> References: <20180929193736.4863be34@poseidon> <4B44DDC4-A248-4130-A77D-B774353DDFDE@iotecdigital.com> Message-ID: <001e01d45997$3cb5ace0$b62106a0$@net> As the philosopher Pete Townshend once said: Meet the new boss Same as the old boss Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Monday, October 01, 2018 10:44 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: [off] Do me a solid Yeah, seems like the rebels just become the new dictator, like in that old Twilight Zone episode. Bob S > On Sep 29, 2018, at 16:20 , Stephen Barncard via use-livecode wrote: > > still.... they are depending on AWS? Amazon is "the man" now... > -- > Stephen Barncard - Sebastopol Ca. USA - _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Mon Oct 1 11:38:55 2018 From: hh at hyperhh.de (hh) Date: Mon, 1 Oct 2018 17:38:55 +0200 Subject: SVGText89_v151 Message-ID: <0A09476B-8596-4E80-AD8E-31CE3CB6A70B@hyperhh.de> Updated SVGText to v1.5.1 Made this also to a "fat" widget (for LC 8 and 9) and gave a new name for the Tools palette. IMPORTANT: The kind of the widget has changed to "community.livecode.hermann.svgtext". You may have to adjust some of your scripts accordingly (sorry). SVGText is a widget for displaying short pieces of TEXT (one line) as svgPath (like svgIcon for symbols). Of course you can get the path and use it for the SVGIcon widget and now also vice versa. Fill ('background') and stroke ('foreground'/outline) can use color or pattern (images), see the sample stack. There is detailed documentation in the dictionary and the examples of the stack shall make several features clear. This sample stack contains buttons for installing/ uninstalling the widget to/ from LC 8 and 9. Download SVGText89_v151 from "Sample Stacks" or from http://livecodeshare.runrev.com/stack/905 The source code is included. The widget is free for non-commercial use. For commercial use, please give a (small) fee to the LC developer help fund. From hh at hyperhh.de Mon Oct 1 11:39:11 2018 From: hh at hyperhh.de (hh) Date: Mon, 1 Oct 2018 17:39:11 +0200 Subject: ClockAround89_v121 Message-ID: Made the ClockAround widget also to a "fat" widget (for LC 8 and 9) and renamed it for the Tools palette. The sample stack contains buttons for installing/ uninstalling the widget to/ from LC 8 and 9. There is also a substack to display the widget using its outline as windowshape. The widget is free for non-commercial use. For commercial use, please give a (small) fee to the LC developer help fund. The source code is included. Download ClockAroundA89_v121 from "Sample Stacks" or from http://livecodeshare.runrev.com/stack/906 From bornstein at designeq.com Mon Oct 1 16:13:32 2018 From: bornstein at designeq.com (Howard Bornstein) Date: Mon, 1 Oct 2018 13:13:32 -0700 Subject: mousemove doesn't recognize "shiftkey is down", but only under Windows In-Reply-To: References: Message-ID: I'm only using Parallels, so I don't know the answer to that. On Sat, Sep 29, 2018 at 8:47 PM Stephen Barncard via use-livecode < use-livecode at lists.runrev.com> wrote: > Does the same thing happen with VMware? > > not that I have any plans to develop anything in Windows. > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > > On Sat, Sep 29, 2018 at 8:16 PM Howard Bornstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I just wanted to mention that the problem detecting the shift-key being > > down seems to be entirely an issue with Parallels. My test, running under > > Windows 10 on a real PC had no trouble with my code that was looking for > > the shift-key being down. I'm glad to see this problem wasn't within > > LiveCode. There are so many layers where something can go wrong, it can > be > > a challenge identifying exactly where the problem is happening. It must > be > > a pretty specific issue with Parallels that only manifests by ignoring > the > > shift key. > > > > On Tue, Sep 25, 2018 at 10:02 PM Howard Bornstein < > bornstein at designeq.com> > > wrote: > > > > > > > > > > > On Sun, Sep 23, 2018 at 10:50 PM Curry Kenworthy via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > >> > > >> Howard: > > >> > > >> > All my test show that for the Shift key and the Option key, when > > >> > called within a mousemove handler, it doesn't register that the > > >> > keys are down unless the mouse button is clicked first. > > >> > > >> Hi Howard, I tested your code verbatim in the card script of a new > stack > > >> in LC 901 on native Windows 10 with a real PC laptop, Dell Intel i5. > > >> > > >> It works fine here. > > > > > > > > > Thanks for testing this out. > > > > > > > > >> I also noticed that since "shiftkey" only has two > > >> states, you don't really need to test it twice; you could cut out the > > >> second "if" statement. In fact, this yields similar results: > > >> > > >> on mousemove x,y > > >> put x,y && the shiftkey > > >> end mousemove > > >> > > > > > > Lol. Yeah, I wasn't trying for elegance. I was making sure the code and > > > results were absolutely clear. > > > > > > > > >> So, despite the very significant issues that LC 9 has on real Windows, > > >> including a barely-usable script editor, it seems likely that this is > > >> not one of them. That's good news! But obviously you do have a > problem. > > >> > > >> Have you tested your code in a brand new empty stack in a fresh and > > >> unmodded instance of LC, no extra plugins or scripts running? If so, > if > > >> it's just Parallels, I have to say that virtual Windows isn't quite > the > > >> same. Well, I guess an Intel Mac sporting a GUI that contradicts much > of > > >> Apple's original research isn't quite the same either; I'm a big > > >> original Mac guy! :) But some details are different. That's why I > always > > >> use real Mac and real Windows. > > >> > > > > > > I have friend with a real Windows machine that will test the code of > the > > > app where I applied this technique so, hopefully I'll be able to see if > > it > > > works on a real PC and if the problem is Parallels. I'm a Mac guy too > and > > > only use Windows to test apps built for both platforms. > > > > > > > > >> But if you get different results with a fresh stack and LC, if there > is > > >> something else going on and you would like me to test your actual > stack > > >> (on native Windows) or help solve your problem, feel free to contact > me > > >> off-list. Interesting. > > >> > > > > > > Thanks. I'll let you know what my friend turns up. > > > > > > > > >> (Meanwhile, hope we can get improvements for some of the real Windows > > >> problems that LC has. It's difficult to type in the LC 901 script > editor > > >> on Windows - that is a pretty huge issue. I have a WordLib update > coming > > >> out in a few days, pending final tests, and it never hurts to have a > > >> fully usable version of the latest LC IDE on both platforms!) > > >> > > > > > > I did work a little bit in the script editor under Windows and didn't > > > notice the awful problems you've been reporting, but again, it was just > > > some tweaks and code changes. I don't do most of my scripting under > > > Windows. I hope this gets fixed. > > > > > > > > >> > > >> Best wishes, > > >> > > >> Curry Kenworthy > > >> > > >> Custom Software Development > > >> "Better Methods, Better Results" > > >> LiveCode Training and Consulting > > >> http://livecodeconsulting.com/ > > >> > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at lists.runrev.com > > >> Please visit this url to subscribe, unsubscribe and manage your > > >> subscription preferences: > > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > >> > > > > > > > > > -- > > > Regards, > > > > > > Howard Bornstein > > > ----------------------- > > > www.designeq.com > > > > > > > > > -- > > Regards, > > > > Howard Bornstein > > ----------------------- > > www.designeq.com > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Regards, Howard Bornstein ----------------------- www.designeq.com From bobsneidar at iotecdigital.com Mon Oct 1 17:36:08 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 21:36:08 +0000 Subject: Move the Mouse Message-ID: Has this been asked before?? I'm trying to set the mouse location to the loc of a particulat button. The mouseLoc is read only. I cannot find a command for doing this! Am I having another senior moment?? Bob S From colinholgate at gmail.com Mon Oct 1 17:55:28 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 1 Oct 2018 14:55:28 -0700 Subject: Move the Mouse In-Reply-To: References: Message-ID: <2336719D-25A9-4F68-BF9D-13073F16B755@gmail.com> There is the screenMouseLoc, which is the cursor?s location on the whole screen. To move it to be on a button I guess you would add the left and top of the card window, to the x and y position you want to move to. > On Oct 1, 2018, at 2:36 PM, Bob Sneidar via use-livecode wrote: > > Has this been asked before?? I'm trying to set the mouse location to the loc of a particulat button. The mouseLoc is read only. I cannot find a command for doing this! Am I having another senior moment?? > > Bob S > From bobsneidar at iotecdigital.com Mon Oct 1 18:02:57 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 22:02:57 +0000 Subject: Move the Mouse In-Reply-To: <2336719D-25A9-4F68-BF9D-13073F16B755@gmail.com> References: <2336719D-25A9-4F68-BF9D-13073F16B755@gmail.com> Message-ID: <69D2D75E-E0B9-453D-BEE1-43898DD66CD4@iotecdigital.com> Thanks Colin. I discovered that right after I posted (as usual). :-) I have two buttons, an up and a down button, which move a line in a datagrid up or down respectively, and the buttons reposition themselves to be next to the hilitedLine whenever the datagrid gets a selectionChanged message. I wanted the mousePointer to advance with it so the user can progressively move a line up or down a number of times without having to reposition the mouse! I got it working just before you posted. Thanks. Bob S > On Oct 1, 2018, at 14:55 , Colin Holgate via use-livecode wrote: > > There is the screenMouseLoc, which is the cursor?s location on the whole screen. To move it to be on a button I guess you would add the left and top of the card window, to the x and y position you want to move to. From stephen at barncard.com Mon Oct 1 18:04:51 2018 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 1 Oct 2018 15:04:51 -0700 Subject: mousemove doesn't recognize "shiftkey is down", but only under Windows In-Reply-To: References: Message-ID: VMWare is about $70 I think. there's a free trial -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Oct 1, 2018 at 1:14 PM Howard Bornstein via use-livecode < use-livecode at lists.runrev.com> wrote: > I'm only using Parallels, so I don't know the answer to that. > > On Sat, Sep 29, 2018 at 8:47 PM Stephen Barncard via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Does the same thing happen with VMware? > > > > not that I have any plans to develop anything in Windows. > > -- > > Stephen Barncard - Sebastopol Ca. USA - > > mixstream.org > > > > > > On Sat, Sep 29, 2018 at 8:16 PM Howard Bornstein via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > I just wanted to mention that the problem detecting the shift-key being > > > down seems to be entirely an issue with Parallels. My test, running > under > > > Windows 10 on a real PC had no trouble with my code that was looking > for > > > the shift-key being down. I'm glad to see this problem wasn't within > > > LiveCode. There are so many layers where something can go wrong, it can > > be > > > a challenge identifying exactly where the problem is happening. It must > > be > > > a pretty specific issue with Parallels that only manifests by ignoring > > the > > > shift key. > > > > > > On Tue, Sep 25, 2018 at 10:02 PM Howard Bornstein < > > bornstein at designeq.com> > > > wrote: > > > > > > > > > > > > > > > On Sun, Sep 23, 2018 at 10:50 PM Curry Kenworthy via use-livecode < > > > > use-livecode at lists.runrev.com> wrote: > > > > > > > >> > > > >> Howard: > > > >> > > > >> > All my test show that for the Shift key and the Option key, when > > > >> > called within a mousemove handler, it doesn't register that the > > > >> > keys are down unless the mouse button is clicked first. > > > >> > > > >> Hi Howard, I tested your code verbatim in the card script of a new > > stack > > > >> in LC 901 on native Windows 10 with a real PC laptop, Dell Intel i5. > > > >> > > > >> It works fine here. > > > > > > > > > > > > Thanks for testing this out. > > > > > > > > > > > >> I also noticed that since "shiftkey" only has two > > > >> states, you don't really need to test it twice; you could cut out > the > > > >> second "if" statement. In fact, this yields similar results: > > > >> > > > >> on mousemove x,y > > > >> put x,y && the shiftkey > > > >> end mousemove > > > >> > > > > > > > > Lol. Yeah, I wasn't trying for elegance. I was making sure the code > and > > > > results were absolutely clear. > > > > > > > > > > > >> So, despite the very significant issues that LC 9 has on real > Windows, > > > >> including a barely-usable script editor, it seems likely that this > is > > > >> not one of them. That's good news! But obviously you do have a > > problem. > > > >> > > > >> Have you tested your code in a brand new empty stack in a fresh and > > > >> unmodded instance of LC, no extra plugins or scripts running? If so, > > if > > > >> it's just Parallels, I have to say that virtual Windows isn't quite > > the > > > >> same. Well, I guess an Intel Mac sporting a GUI that contradicts > much > > of > > > >> Apple's original research isn't quite the same either; I'm a big > > > >> original Mac guy! :) But some details are different. That's why I > > always > > > >> use real Mac and real Windows. > > > >> > > > > > > > > I have friend with a real Windows machine that will test the code of > > the > > > > app where I applied this technique so, hopefully I'll be able to see > if > > > it > > > > works on a real PC and if the problem is Parallels. I'm a Mac guy too > > and > > > > only use Windows to test apps built for both platforms. > > > > > > > > > > > >> But if you get different results with a fresh stack and LC, if there > > is > > > >> something else going on and you would like me to test your actual > > stack > > > >> (on native Windows) or help solve your problem, feel free to contact > > me > > > >> off-list. Interesting. > > > >> > > > > > > > > Thanks. I'll let you know what my friend turns up. > > > > > > > > > > > >> (Meanwhile, hope we can get improvements for some of the real > Windows > > > >> problems that LC has. It's difficult to type in the LC 901 script > > editor > > > >> on Windows - that is a pretty huge issue. I have a WordLib update > > coming > > > >> out in a few days, pending final tests, and it never hurts to have a > > > >> fully usable version of the latest LC IDE on both platforms!) > > > >> > > > > > > > > I did work a little bit in the script editor under Windows and didn't > > > > notice the awful problems you've been reporting, but again, it was > just > > > > some tweaks and code changes. I don't do most of my scripting under > > > > Windows. I hope this gets fixed. > > > > > > > > > > > >> > > > >> Best wishes, > > > >> > > > >> Curry Kenworthy > > > >> > > > >> Custom Software Development > > > >> "Better Methods, Better Results" > > > >> LiveCode Training and Consulting > > > >> http://livecodeconsulting.com/ > > > >> > > > >> _______________________________________________ > > > >> use-livecode mailing list > > > >> use-livecode at lists.runrev.com > > > >> Please visit this url to subscribe, unsubscribe and manage your > > > >> subscription preferences: > > > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > >> > > > > > > > > > > > > -- > > > > Regards, > > > > > > > > Howard Bornstein > > > > ----------------------- > > > > www.designeq.com > > > > > > > > > > > > > -- > > > Regards, > > > > > > Howard Bornstein > > > ----------------------- > > > www.designeq.com > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > -- > Regards, > > Howard Bornstein > ----------------------- > www.designeq.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Mon Oct 1 18:18:29 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 1 Oct 2018 15:18:29 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <87fc535b-9544-31a3-f03e-b223548d3499@hyperactivesw.com> References: <6d7bc399-a613-300d-e323-7407621404b6@hyperactivesw.com> <87fc535b-9544-31a3-f03e-b223548d3499@hyperactivesw.com> Message-ID: On Sat, Sep 29, 2018 at 3:52 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > The problems occured when trying > to drag or resize those controls, which were immune to any manipulation. > The stack was stubbornly set to mode 2 and wouldn't budge. We were able > to manipulate objects via the message box as long as we specified a long > path to the control. The property inspector was inconsistent in > recognizing the target stack. For the record, Navigator has built-in resize/move controls and property editors, and all of them work on any control anywhere, no matter what mode the stack is. I regularly edit the controls/layout of Navigator with Navigator itself -- sometimes by opening a second Navigator, but sometimes in the primary copy of Navigator itself, which can produce interesting results :-) I'm creating new documentation for Navigator . It's barebones so far, but the use case you're looking at is selecting what to display and resizing/moving controls . In bullet points: 1. Open Navigator. 2. Select "Show IDE Stacks" on the stack menu (second from left). -- this is so the Revelation stack will show in Navigator. 3. Select the Revelation stack in the stack menu. 4. If you want to work with a card other than the current card of stack "Revelation", select the card you want on the card menu (third from left). 5. Navigator's list will show all the controls on that card. Select whatever control(s) you want to modify. Standard list operators (shift-click to extend selections, command-click to toggle selections) work. Then: To resize or move the controls, select the Size/Location Editor... on the Properties menu (5th from right, the "P") To change the colors of the controls, select the Color Editor... (docs TBD) on the Properties menu. Both the Size/Location Editor and the Color Editor have revert options, so you can undo anything you have done since the last time you opened them; or the selection changed, if they're open as palettes. To edit the properties of the controls, select the Property Editor... on the Properties menu. If you have any questions just let me know. gc From gcanyon at gmail.com Mon Oct 1 18:21:22 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 1 Oct 2018 15:21:22 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: References: <50bf1b47-ee0e-69d4-9ea8-420aada62705@sonic.net> <58fb024d-9a37-d699-8943-e953d6518f3d@sonic.net> Message-ID: On Mon, Oct 1, 2018 at 7:34 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I like the idea of stack UUIDs. > One of the awesome things about FileMaker is that tables, fields/columns, and layouts all have underlying UUIDs. If you rename a table or column, no problem -- everything based on that, including layouts displaying values from the column, calculations based on the column, etc., automatically updates to the new name. Once you've used a system like that, it's hard to use anything else. gc From bobsneidar at iotecdigital.com Mon Oct 1 18:51:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 22:51:40 +0000 Subject: Stacks whose names start with "rev" In-Reply-To: References: <50bf1b47-ee0e-69d4-9ea8-420aada62705@sonic.net> <58fb024d-9a37-d699-8943-e953d6518f3d@sonic.net> Message-ID: <71254F66-47E4-49D4-BEE7-08727E2CB0BB@iotecdigital.com> I found it much easier to move away from Filemaker when I groked their licensing. Seems I had to pay a licensing fee for every copy of every app I distributed, even when it was for internal consumption. That and their idea of coding is filling in dialogs. In fact, I went looking for a hypercard alternative that was current because I had enough of filemaker. Bob S > On Oct 1, 2018, at 15:21 , Geoff Canyon via use-livecode wrote: > > On Mon, Oct 1, 2018 at 7:34 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I like the idea of stack UUIDs. >> > > One of the awesome things about FileMaker is that tables, fields/columns, > and layouts all have underlying UUIDs. If you rename a table or column, no > problem -- everything based on that, including layouts displaying values > from the column, calculations based on the column, etc., automatically > updates to the new name. Once you've used a system like that, it's hard to > use anything else. > > gc From ahsoftware at sonic.net Mon Oct 1 18:53:17 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 1 Oct 2018 15:53:17 -0700 Subject: Navigator 6.4 alpha 1 is out In-Reply-To: References: Message-ID: <7c6d8642-a85d-08e9-d976-113d69d16ec6@sonic.net> On 09/24/2018 08:19 PM, Geoff Canyon via use-livecode wrote: > As usual, you can get Navigator here > . Or grab it > from GitHub . Due to the huge number of behavior scripts (rev_b_*, rev_c_*, rev_f_*, rev_g_*, rev_i_*, rev_s_*...) I can't figure out how to fix this for you, so it's in your court: Getting the card list for a stack shows card "name_of_card_1" card "name_of_card_2" etc. Editing the properties to change the card name, the value is also card "name_of_card_1" rather than the short name. If I edit the name and save it, then refresh the card list (problem #1 is that the list should refresh automatically after the change is made), the card is named card "card "name_of_card_1"", adding another "card". So problem #2 is that the card list display shows a "card" identifier and this is erroneously copied into the the value field for the card name, compounded by the fact that when the new card name is saved extra quotes are added to the card name whether or not they're needed. And I verified that it actually does change the card name thusly, so it's not just a display issue. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Oct 1 18:55:08 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 22:55:08 +0000 Subject: Nested Datagrid Hack Broke App Building Message-ID: Looks like the hack I have in place for nesting datagrid behaviors has effectively broken the standalone app builder for my app. I can't use a prior version because all my datagrid behavoirs throughout my app are nested. I can't just use the community version of Livecode and have my technicians run the app in the IDE, because I would have to ALSO hack those version for nested datagrids. Does anyone know if nested datagrid behaviors made it into 9.0.1? Bob S From bobsneidar at iotecdigital.com Mon Oct 1 19:11:07 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 1 Oct 2018 23:11:07 +0000 Subject: Nested Datagrid Hack Broke App Building In-Reply-To: References: Message-ID: Never mind. Looks like this little bad boy is the problem. I put this in my openStack handler, forgetting that I initialize EVERYTHING in the openStack handler, so none of my libraries were loading. -- skip if building a standalone if the environment is "development" AND \ there is a stack "revStandaloneProgress" AND \ the mode of stack "revStandaloneProgress" > 0 then exit openStack end if GAKK! Bob S > On Oct 1, 2018, at 15:55 , Bob Sneidar via use-livecode wrote: > > Looks like the hack I have in place for nesting datagrid behaviors has effectively broken the standalone app builder for my app. I can't use a prior version because all my datagrid behavoirs throughout my app are nested. I can't just use the community version of Livecode and have my technicians run the app in the IDE, because I would have to ALSO hack those version for nested datagrids. > > Does anyone know if nested datagrid behaviors made it into 9.0.1? > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Mon Oct 1 19:13:38 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 1 Oct 2018 19:13:38 -0400 Subject: Nested Datagrid Hack Broke App Building In-Reply-To: References: Message-ID: https://github.com/livecode/livecode-ide/pull/1987 It has not been reviewed or merged yet. I wouldn?t expect it before 9.1 since it is kind of an enhancement though. Did you just edit the behavior in the IDE? I?ll test out my code in 9.0.1 and let you know what I find out. Thanks, Brian On Oct 1, 2018, 6:55 PM -0400, Bob Sneidar via use-livecode , wrote: > Looks like the hack I have in place for nesting datagrid behaviors has effectively broken the standalone app builder for my app. I can't use a prior version because all my datagrid behavoirs throughout my app are nested. I can't just use the community version of Livecode and have my technicians run the app in the IDE, because I would have to ALSO hack those version for nested datagrids. > > Does anyone know if nested datagrid behaviors made it into 9.0.1? > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Mon Oct 1 19:23:42 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 1 Oct 2018 16:23:42 -0700 Subject: Navigator 6.4 alpha 1 is out In-Reply-To: <7c6d8642-a85d-08e9-d976-113d69d16ec6@sonic.net> References: <7c6d8642-a85d-08e9-d976-113d69d16ec6@sonic.net> Message-ID: Yeah (sigh) it's down to the fact that you can *get* the short name of something, but you can't *set* the short name of something. So I need to special case that one property :-( It's been an annoyance forever, but I always put off fixing it because it offends me. But since you brought it up I'll go ahead and special case it. Any preference on whether I should call the property "name" but special case to display/edit the short name, or instead to call the property "short name" but set the name? I lean toward continuing to call the property "name" and special case the display, but I'm open to arguments. gc On Mon, Oct 1, 2018 at 3:54 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 09/24/2018 08:19 PM, Geoff Canyon via use-livecode wrote: > > As usual, you can get Navigator here > > . Or grab > it > > from GitHub . > > Due to the huge number of behavior scripts (rev_b_*, rev_c_*, rev_f_*, > rev_g_*, rev_i_*, rev_s_*...) I can't figure out how to fix this for > you, so it's in your court: > > Getting the card list for a stack shows > card "name_of_card_1" > card "name_of_card_2" > etc. > > Editing the properties to change the card name, the value is also > card "name_of_card_1" rather than the short name. If I edit the name and > save it, then refresh the card list (problem #1 is that the list should > refresh automatically after the change is made), the card is named > card "card "name_of_card_1"", adding another "card". > So problem #2 is that the card list display shows a "card" identifier > and this is erroneously copied into the the value field for the card > name, compounded by the fact that when the new card name is saved extra > quotes are added to the card name whether or not they're needed. > > And I verified that it actually does change the card name thusly, so > it's not just a display issue. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Mon Oct 1 19:25:06 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 1 Oct 2018 16:25:06 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <71254F66-47E4-49D4-BEE7-08727E2CB0BB@iotecdigital.com> References: <50bf1b47-ee0e-69d4-9ea8-420aada62705@sonic.net> <58fb024d-9a37-d699-8943-e953d6518f3d@sonic.net> <71254F66-47E4-49D4-BEE7-08727E2CB0BB@iotecdigital.com> Message-ID: Yep, FileMaker isn't perfect, but it does naming right, and almost nothing else does. Also, I'm pretty sure you can type to code now (and for some years). On Mon, Oct 1, 2018 at 3:52 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I found it much easier to move away from Filemaker when I groked their > licensing. Seems I had to pay a licensing fee for every copy of every app I > distributed, even when it was for internal consumption. That and their idea > of coding is filling in dialogs. In fact, I went looking for a hypercard > alternative that was current because I had enough of filemaker. > > Bob S > > > > On Oct 1, 2018, at 15:21 , Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > On Mon, Oct 1, 2018 at 7:34 AM Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I like the idea of stack UUIDs. > >> > > > > One of the awesome things about FileMaker is that tables, fields/columns, > > and layouts all have underlying UUIDs. If you rename a table or column, > no > > problem -- everything based on that, including layouts displaying values > > from the column, calculations based on the column, etc., automatically > > updates to the new name. Once you've used a system like that, it's hard > to > > use anything else. > > > > gc > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Mon Oct 1 20:28:13 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 1 Oct 2018 17:28:13 -0700 Subject: Navigator 6.4 alpha 1 is out In-Reply-To: References: <7c6d8642-a85d-08e9-d976-113d69d16ec6@sonic.net> Message-ID: I went ahead and fixed this. In my working copy of Navigator the property is displayed as being "name" but displays the short name. Editing it sets the name. I made some fundamental changes to the way Navigator works over the past few days so I'm going to use it for a bit before releasing it. gc On Mon, Oct 1, 2018 at 4:23 PM Geoff Canyon wrote: > Yeah (sigh) it's down to the fact that you can *get* the short name of > something, but you can't *set* the short name of something. So I need to > special case that one property :-( > > It's been an annoyance forever, but I always put off fixing it because it > offends me. > > But since you brought it up I'll go ahead and special case it. Any > preference on whether I should call the property "name" but special case to > display/edit the short name, or instead to call the property "short name" > but set the name? I lean toward continuing to call the property "name" and > special case the display, but I'm open to arguments. > > gc > > On Mon, Oct 1, 2018 at 3:54 PM Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 09/24/2018 08:19 PM, Geoff Canyon via use-livecode wrote: >> > As usual, you can get Navigator here >> > . Or >> grab it >> > from GitHub . >> >> Due to the huge number of behavior scripts (rev_b_*, rev_c_*, rev_f_*, >> rev_g_*, rev_i_*, rev_s_*...) I can't figure out how to fix this for >> you, so it's in your court: >> >> Getting the card list for a stack shows >> card "name_of_card_1" >> card "name_of_card_2" >> etc. >> >> Editing the properties to change the card name, the value is also >> card "name_of_card_1" rather than the short name. If I edit the name and >> save it, then refresh the card list (problem #1 is that the list should >> refresh automatically after the change is made), the card is named >> card "card "name_of_card_1"", adding another "card". >> So problem #2 is that the card list display shows a "card" identifier >> and this is erroneously copied into the the value field for the card >> name, compounded by the fact that when the new card name is saved extra >> quotes are added to the card name whether or not they're needed. >> >> And I verified that it actually does change the card name thusly, so >> it's not just a display issue. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From ahsoftware at sonic.net Mon Oct 1 20:53:38 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 1 Oct 2018 17:53:38 -0700 Subject: Navigator 6.4 alpha 1 is out In-Reply-To: References: <7c6d8642-a85d-08e9-d976-113d69d16ec6@sonic.net> Message-ID: <671801e7-a55d-998a-60d4-9a50bb086e7c@sonic.net> On 10/01/2018 05:28 PM, Geoff Canyon via use-livecode wrote: > I went ahead and fixed this. In my working copy of Navigator the property > is displayed as being "name" but displays the short name. Editing it sets > the name. I made some fundamental changes to the way Navigator works over > the past few days so I'm going to use it for a bit before releasing it. Yeah, to my thinking that's the way it should work. I think the only time I want the "name" of something rather than the "short name" is when I need to differentiate between different types of objects, such as when I'm iterating through the child controls of a group. Otherwise I just grab the short name, edit it, and put it back where I found it. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Mon Oct 1 21:00:27 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 1 Oct 2018 18:00:27 -0700 Subject: Navigator 6.4 alpha 1 is out In-Reply-To: <671801e7-a55d-998a-60d4-9a50bb086e7c@sonic.net> References: <7c6d8642-a85d-08e9-d976-113d69d16ec6@sonic.net> <671801e7-a55d-998a-60d4-9a50bb086e7c@sonic.net> Message-ID: Agreed. It's annoying that my code is now uglier because of this one special case -- although to be fair, Navigator is a fifteen-year-old plate of spaghetti. On Mon, Oct 1, 2018 at 5:54 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/01/2018 05:28 PM, Geoff Canyon via use-livecode wrote: > > I went ahead and fixed this. In my working copy of Navigator the property > > is displayed as being "name" but displays the short name. Editing it sets > > the name. I made some fundamental changes to the way Navigator works over > > the past few days so I'm going to use it for a bit before releasing it. > > Yeah, to my thinking that's the way it should work. I think the only > time I want the "name" of something rather than the "short name" is when > I need to differentiate between different types of objects, such as when > I'm iterating through the child controls of a group. Otherwise I just > grab the short name, edit it, and put it back where I found it. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Tue Oct 2 10:35:21 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Oct 2018 14:35:21 +0000 Subject: Stacks whose names start with "rev" In-Reply-To: References: <50bf1b47-ee0e-69d4-9ea8-420aada62705@sonic.net> <58fb024d-9a37-d699-8943-e953d6518f3d@sonic.net> <71254F66-47E4-49D4-BEE7-08727E2CB0BB@iotecdigital.com> Message-ID: <53FF45FF-8700-4E1B-AC55-1765C32A51CA@iotecdigital.com> Yeah it's been a long time since I worked with it. We had Filemaker Server running for a couple small apps, but each user who wanted to run the app had to buy a full client license. Bob S > On Oct 1, 2018, at 16:25 , Geoff Canyon via use-livecode wrote: > > Yep, FileMaker isn't perfect, but it does naming right, and almost nothing > else does. > > Also, I'm pretty sure you can type to code now (and for some years). From bobsneidar at iotecdigital.com Tue Oct 2 10:39:06 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Oct 2018 14:39:06 +0000 Subject: Navigator 6.4 alpha 1 is out In-Reply-To: References: <7c6d8642-a85d-08e9-d976-113d69d16ec6@sonic.net> <671801e7-a55d-998a-60d4-9a50bb086e7c@sonic.net> Message-ID: <94D636A4-87EE-4C6D-82B8-78BD52A0A66B@iotecdigital.com> > On Oct 1, 2018, at 18:00 , Geoff Canyon via use-livecode wrote: > > Agreed. It's annoying that my code is now uglier because of this one > special case -- although to be fair, Navigator is a fifteen-year-old plate > of spaghetti. And now you've added some cheese! WHOOPS! Sorry, off limits. Bob S From gcanyon at gmail.com Tue Oct 2 11:14:36 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 2 Oct 2018 08:14:36 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <53FF45FF-8700-4E1B-AC55-1765C32A51CA@iotecdigital.com> References: <50bf1b47-ee0e-69d4-9ea8-420aada62705@sonic.net> <58fb024d-9a37-d699-8943-e953d6518f3d@sonic.net> <71254F66-47E4-49D4-BEE7-08727E2CB0BB@iotecdigital.com> <53FF45FF-8700-4E1B-AC55-1765C32A51CA@iotecdigital.com> Message-ID: On Tue, Oct 2, 2018 at 7:35 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Yeah it's been a long time since I worked with it. We had Filemaker Server > running for a couple small apps, but each user who wanted to run the app > had to buy a full client license. > That part has changed (somewhat) as well. There's a robust web client; you can build a client (LC is emphasizing this); and a free iOS client. For all of those, there's no individual license, but some sort of limit on the total number of server connections. All of this is from having looked at the FM web site maybe twice in the last nine years, so ?\_(?)_/? From jonathandlynch at gmail.com Tue Oct 2 13:01:08 2018 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Tue, 2 Oct 2018 13:01:08 -0400 Subject: Android compass question In-Reply-To: References: <46969ace-3c91-82a6-2dfb-4677400070b2@hyperactivesw.com> Message-ID: <897ED60A-A6DA-49F9-A968-D868B4B10D39@gmail.com> Just following up on this - on my Android device the compass heading data from LC jumps around plus-or-minus 10 degrees while the phone is laying still, but the same data from the browser widget is stable. I was able to make it work in my app this way, but I wish the LC sensor data had also been stable. You have to be careful how you do it, though, because too much back and forth data flow between LC and the browser widget can cause a crash. Anyone, this solution works in case anyone has the same issue. Sent from my iPhone > On Aug 18, 2018, at 2:20 PM, Jonathan Lynch wrote: > > Just a quick addendum to my last comment - I found an html5 online compass demo that works well on the device. That means I might be able to use the browser widget that displays the map to read the compass from the device. If that works, I could reset the map heading inside the widget without having to get data from LC. > > That is actually a huge amount of work, and I hate to have to resort to that, but having the heading jump around so much is just unworkable. I am not sure how the browser can get a steady reading when LC is not getting a steady reading from the system. > >> On Sat, Aug 18, 2018 at 2:06 PM Jonathan Lynch wrote: >> Hi Jacqueline, >> >> Thank you for this reply. I keep working with this issue, but I still cannot resolve it. When I put the Android phone down on a table, to be still, the compass heading from LC jumps up and down by as much as 10 degrees - way too big of a range just to round. >> >> However, the compass app I downloaded on that same device is rock steady. >> >> I really wish it would just work, rather than having to massage the data from the device. >> >>> On Mon, Aug 13, 2018 at 4:24 PM J. Landman Gay via use-livecode wrote: >>> On 8/11/18 3:34 PM, Jonathan Lynch via use-livecode wrote: >>> > I have a new galaxy phone. When I read the mobile compass, both magnetic heading and true heading constantly change - even if the phone is laying down still. It changes up and down randomly by 5 degrees or so. Does anyone know if this is a problem with LC or with galaxy phones? My iPhone does not do this. >>> >>> My Galaxy S5 does the same thing with a LC compass I made. My guess is >>> that's the way Android reads GPS data. When it tries to find my house, >>> it does a whole bunch of hops around the circumference before settling >>> down on the center, and even then it still twitches as it tries for more >>> accuracy. >>> >>> A compass I downloaded from the Play Store does not do that on my Pixel. >>> I'd guess that the app is doing some rounding to the nearest integer, >>> since it doesn't display fractional values. >>> >>> Try downloading a few of the dozens of compasses on the Play Store and >>> see how they behave. It may be that LC is actually more precise than you >>> want it to be. I do know that LC is only reporting what the OS tells it. >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> -- >> Do all things with love > > > -- > Do all things with love From revolution at derbrill.de Tue Oct 2 13:20:57 2018 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Tue, 2 Oct 2018 19:20:57 +0200 Subject: [ANN] animationEngine is free now In-Reply-To: References: Message-ID: Hey all! Thanks for the kind words! And please excuse I did not reply earlier. Rather busy setting up the Promo stuff at the moment. I?ll surely keep lurking on the lists. :-) There still will be an OSS project I am stewarding using liveCode, so I'll be in the boat for a while. I just feel that I can not cope with the changed markets for end user software any more. End users expectations seem to be to receive everything at no or very low cost. I blame mobile devices for that. Add to that the permanent struggle with licenses and you have a mix that frustrates me perfectly. With the Kickstarter stuff I like to test the waters if the ?new times? still leave opportunities for niche developers, to at least break even on developing something that is not coded as a service / under contract. I hope you do not mind if I post under [OT] label once it goes live (Sunday). Cheers, Malte From sundown at pacifier.com Tue Oct 2 15:19:31 2018 From: sundown at pacifier.com (JB) Date: Tue, 2 Oct 2018 12:19:31 -0700 Subject: [ANN] animationEngine is free now In-Reply-To: References: Message-ID: <27A33A8C-F1BB-4B41-8088-29DDCFB89016@pacifier.com> Thanks for them many years of info, Malte. JB > On Oct 2, 2018, at 10:20 AM, Malte Pfaff-Brill via use-livecode wrote: > > Hey all! > > Thanks for the kind words! And please excuse I did not reply earlier. Rather busy setting up the Promo stuff at the moment. > > I?ll surely keep lurking on the lists. :-) There still will be an OSS project I am stewarding using liveCode, so I'll be in the boat for a while. I just feel that I can not cope with the changed markets for end user software any more. End users expectations seem to be to receive everything at no or very low cost. I blame mobile devices for that. Add to that the permanent struggle with licenses and you have a mix that frustrates me perfectly. With the Kickstarter stuff I like to test the waters if the ?new times? still leave opportunities for niche developers, to at least break even on developing something that is not coded as a service / under contract. I hope you do not mind if I post under [OT] label once it goes live (Sunday). > > Cheers, > > Malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bornstein at designeq.com Tue Oct 2 15:19:08 2018 From: bornstein at designeq.com (Howard Bornstein) Date: Tue, 2 Oct 2018 12:19:08 -0700 Subject: Where does LiveCode/Windows store specialFolderPath("Resources") data? Message-ID: I'm building a cross-platform app for Mac and Windows. I store a data file that is update by the user in specialFolderPath("Resources"). On the Mac, I know where this is and can even view it, using the Show Package command from the Finder. One thing that is clear with the Mac is that this data file is encapsulated with the app itself. If I run a separate instance of the app, the data file is completely separate and not influenced by the data file of the first app. This doesn't seem to be the case with Windows. I've built 3 separate standalones in Windows and have found, to my surprise, that if I change the data file in one of the standalones, it is reflected in the datafile of the others. Somehow it seems like the data file is stored externally from the app and that all versions have access to it (whether that is my intent or not). I've build special versions for each platform with the command "Put specialFolderPath("Resources") into fld "somefield" in the openstack handler. On the Mac it gives me the full path to the application along with "/Contents/Resources/_MacOS/". On the Windows version, the field is blank. So where does LC store files using specialFolderPath("Resources") under Windows? And why are they available to any app using specialFolderPath("Resources")? -- Regards, Howard Bornstein ----------------------- www.designeq.com From brian at milby7.com Tue Oct 2 15:58:37 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 2 Oct 2018 15:58:37 -0400 Subject: Where does LiveCode/Windows store specialFolderPath("Resources") data? In-Reply-To: References: Message-ID: <54c0a6e4-6564-458d-993e-af0484d9bb87@Spark> It should report the parent folder of the executable. I just built a test and it works as expected per the dictionary entry for specialFolderPath. Thanks, Brian On Oct 2, 2018, 3:20 PM -0400, Howard Bornstein via use-livecode , wrote: > I'm building a cross-platform app for Mac and Windows. I store a data file > that is update by the user in specialFolderPath("Resources"). On the Mac, I > know where this is and can even view it, using the Show Package command > from the Finder. > > One thing that is clear with the Mac is that this data file is encapsulated > with the app itself. If I run a separate instance of the app, the data file > is completely separate and not influenced by the data file of the first app. > > This doesn't seem to be the case with Windows. I've built 3 separate > standalones in Windows and have found, to my surprise, that if I change the > data file in one of the standalones, it is reflected in the datafile of the > others. > > Somehow it seems like the data file is stored externally from the app and > that all versions have access to it (whether that is my intent or not). > > I've build special versions for each platform with the command > "Put specialFolderPath("Resources") into fld "somefield" in the openstack > handler. On the Mac it gives me the full path to the application along with > "/Contents/Resources/_MacOS/". On the Windows version, the field is blank. > > So where does LC store files using specialFolderPath("Resources") under > Windows? And why are they available to any app using > specialFolderPath("Resources")? > > -- > Regards, > > Howard Bornstein > ----------------------- > www.designeq.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Oct 2 15:39:52 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 2 Oct 2018 12:39:52 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: References: Message-ID: <895a5cad-bafb-5ba7-28f9-e06fab382ad6@fourthworld.com> Geoff Canyon wrote: > Yep, FileMaker isn't perfect, but it does naming right, and almost > nothing else does. Been many years, but I thought names were user-settable. What does it actually do with names? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bornstein at designeq.com Tue Oct 2 16:34:19 2018 From: bornstein at designeq.com (Howard Bornstein) Date: Tue, 2 Oct 2018 13:34:19 -0700 Subject: Where does LiveCode/Windows store specialFolderPath("Resources") data? In-Reply-To: <54c0a6e4-6564-458d-993e-af0484d9bb87@Spark> References: <54c0a6e4-6564-458d-993e-af0484d9bb87@Spark> Message-ID: That's the result I get when I'm running in the LC environment. That didn't happen with a standalone. The dictionary describes where these files go: "In a standalone, the resources folder where files or folders specified in the Standalone Builder are located." It says your resources go in "the resources folder" where any files you've specified are located. This appears to be referring to the Copy Files tab of the Standalone Builder. Since my data file is created in the app, I don't have anything to put in the Copy Files tab. If this tab is empty, what is the default location? Is there some other place in the Standalone builder where you can point to files or folders? On the Mac, this definition is verifiable, since my data file *is* in the Resources folder (although a couple levels down) within the application bundle. Under Windows, is there actually a folder somewhere called Resources? Where is it? On Tue, Oct 2, 2018 at 12:59 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > It should report the parent folder of the executable. I just built a test > and it works as expected per the dictionary entry for specialFolderPath. > > Thanks, > Brian > On Oct 2, 2018, 3:20 PM -0400, Howard Bornstein via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > I'm building a cross-platform app for Mac and Windows. I store a data > file > > that is update by the user in specialFolderPath("Resources"). On the > Mac, I > > know where this is and can even view it, using the Show Package command > > from the Finder. > > > > One thing that is clear with the Mac is that this data file is > encapsulated > > with the app itself. If I run a separate instance of the app, the data > file > > is completely separate and not influenced by the data file of the first > app. > > > > This doesn't seem to be the case with Windows. I've built 3 separate > > standalones in Windows and have found, to my surprise, that if I change > the > > data file in one of the standalones, it is reflected in the datafile of > the > > others. > > > > Somehow it seems like the data file is stored externally from the app and > > that all versions have access to it (whether that is my intent or not). > > > > I've build special versions for each platform with the command > > "Put specialFolderPath("Resources") into fld "somefield" in the openstack > > handler. On the Mac it gives me the full path to the application along > with > > "/Contents/Resources/_MacOS/". On the Windows version, the field is > blank. > > > > So where does LC store files using specialFolderPath("Resources") under > > Windows? And why are they available to any app using > > specialFolderPath("Resources")? > > > > -- > > Regards, > > > > Howard Bornstein > > ----------------------- > > www.designeq.com > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Regards, Howard Bornstein ----------------------- www.designeq.com From gcanyon at gmail.com Tue Oct 2 18:30:12 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 2 Oct 2018 15:30:12 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <895a5cad-bafb-5ba7-28f9-e06fab382ad6@fourthworld.com> References: <895a5cad-bafb-5ba7-28f9-e06fab382ad6@fourthworld.com> Message-ID: The fact that there is an underlying permanent unique id for everything, completely abstracted from the user. So you can change the name of a column, or table, or layout, one time, in the database definition, and all references to that object in scripts, other layouts, etc. will automatically update -- or really, peeking behind the curtain, I'm guessing they don't have to update at all because they all reference the permanent unique id, and only render it into the name you know it by when they render themselves for you to edit them. So in LiveCode terms, imagine if you could rename a card, and any script that referenced that card, or controls on it, wouldn't break, but just automatically reflect the new name. Or rename a control, or a stack. gc On Tue, Oct 2, 2018 at 1:09 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Geoff Canyon wrote: > > > Yep, FileMaker isn't perfect, but it does naming right, and almost > > nothing else does. > > Been many years, but I thought names were user-settable. What does it > actually do with names? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Oct 2 19:03:48 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 2 Oct 2018 16:03:48 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: References: Message-ID: <95a478a3-06ae-c5a7-fac6-b8847135af96@fourthworld.com> Geoff Canyon wrote: > The fact that there is an underlying permanent unique id for everything, > completely abstracted from the user. So you can change the name of a > column, or table, or layout, one time, in the database definition, and all > references to that object in scripts, other layouts, etc. will > automatically update -- or really, peeking behind the curtain, I'm guessing > they don't have to update at all because they all reference the permanent > unique id, and only render it into the name you know it by when they render > themselves for you to edit them. > > So in LiveCode terms, imagine if you could rename a card, and any script > that referenced that card, or controls on it, wouldn't break, but just > automatically reflect the new name. Or rename a control, or a stack. Ah, thanks. I wonder how the name lookup for every element in the system affects performance. It sounds like in this regard LC is no worse off than MySQL, SQLite, and other systems where names are used directly. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brian at milby7.com Tue Oct 2 19:11:28 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 2 Oct 2018 19:11:28 -0400 Subject: Stacks whose names start with "rev" In-Reply-To: <95a478a3-06ae-c5a7-fac6-b8847135af96@fourthworld.com> References: <95a478a3-06ae-c5a7-fac6-b8847135af96@fourthworld.com> Message-ID: <098293e2-4dad-44d8-aadc-c3b936527642@Spark> Name lookups probably only happen in the development environment. My guess is that everything is stored/referenced using the ID. I?m not sure how this could translate to LC in general though. Thanks, Brian On Oct 2, 2018, 7:04 PM -0400, Richard Gaskin via use-livecode , wrote: > Geoff Canyon wrote: > > The fact that there is an underlying permanent unique id for everything, > > completely abstracted from the user. So you can change the name of a > > column, or table, or layout, one time, in the database definition, and all > > references to that object in scripts, other layouts, etc. will > > automatically update -- or really, peeking behind the curtain, I'm guessing > > they don't have to update at all because they all reference the permanent > > unique id, and only render it into the name you know it by when they render > > themselves for you to edit them. > > > > So in LiveCode terms, imagine if you could rename a card, and any script > > that referenced that card, or controls on it, wouldn't break, but just > > automatically reflect the new name. Or rename a control, or a stack. > > Ah, thanks. I wonder how the name lookup for every element in the > system affects performance. > > It sounds like in this regard LC is no worse off than MySQL, SQLite, and > other systems where names are used directly. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Oct 2 19:18:48 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 2 Oct 2018 16:18:48 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <95a478a3-06ae-c5a7-fac6-b8847135af96@fourthworld.com> References: <95a478a3-06ae-c5a7-fac6-b8847135af96@fourthworld.com> Message-ID: On Tue, Oct 2, 2018 at 4:04 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Geoff Canyon wrote: > > So in LiveCode terms, imagine if you could rename a card, and any script > > that referenced that card, or controls on it, wouldn't break, but just > > automatically reflect the new name. Or rename a control, or a stack. > > Ah, thanks. I wonder how the name lookup for every element in the > system affects performance. > > It sounds like in this regard LC is no worse off than MySQL, SQLite, and > other systems where names are used directly. > If they're doing it the way I think -- having everything based on the permanent ID and only using the map to parse to the human-applied name when necessary, then the performance hit is likely very limited and infrequent. Apart from development work, FileMaker doesn't present the control name often. As far as being no worse off, agreed -- I know of no other tool that does this. It's extraordinary that FileMaker has had this feature since something like the late 80s, and no other tools have recognized how awesome it is. It's like chunk expressions -- eye-opening. From gcanyon at gmail.com Tue Oct 2 19:20:50 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 2 Oct 2018 16:20:50 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <098293e2-4dad-44d8-aadc-c3b936527642@Spark> References: <95a478a3-06ae-c5a7-fac6-b8847135af96@fourthworld.com> <098293e2-4dad-44d8-aadc-c3b936527642@Spark> Message-ID: On Tue, Oct 2, 2018 at 4:12 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Name lookups probably only happen in the development environment. My guess > is that everything is stored/referenced using the ID. > > I?m not sure how this could translate to LC in general though. > I think you're correct on both points. I'm betting this feature would be hard to retro-fit to any environment. But it sure is nice. From scott at elementarysoftware.com Wed Oct 3 01:26:12 2018 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 2 Oct 2018 22:26:12 -0700 Subject: mergAV permission dialog Message-ID: <3E943DB1-C667-47BF-A822-2C5EDE80182F@elementarysoftware.com> Recently had an update to an existing app rejected because the app asked permission without explaining the purpose. I believe that the dialog is produced as a result of including mergAV in the build. An automatically generated dialog is handy? but in this case I agree with the reviewer. My app scans QR codes so I understand that it asks the user for permission to use the camera. And the reviewer probably would have thought that obvious enough. Unfortunately, in a separate dialog, it also asks for permission to use the microphone. (Which the app doesn?t use.) "This application requires access to the device?s microphone.? I imagine this is what triggered the rejection. Is there a way to edit this dialog so that I can get past the review? -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-800-615-0867 ------------------------------------------------------ From scott at elementarysoftware.com Wed Oct 3 02:32:22 2018 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 2 Oct 2018 23:32:22 -0700 Subject: mergAV permission dialog In-Reply-To: <3E943DB1-C667-47BF-A822-2C5EDE80182F@elementarysoftware.com> References: <3E943DB1-C667-47BF-A822-2C5EDE80182F@elementarysoftware.com> Message-ID: Answering my own question? I now see a note at the bottom of mergAVCamCreate that says "If only capturing barcodes or photos set the microphone to empty before calling mergAVCamCreate to avoid app store rejection.? So apparently my problem has a solution. At least as soon as I figure out how to set the microphone to ?empty? :- ) ?Scott Morrow > On Oct 2, 2018, at 10:26 PM, scott--- via use-livecode wrote: > > Recently had an update to an existing app rejected because the app asked permission without explaining the purpose. I believe that the dialog is produced as a result of including mergAV in the build. An automatically generated dialog is handy? but in this case I agree with the reviewer. My app scans QR codes so I understand that it asks the user for permission to use the camera. And the reviewer probably would have thought that obvious enough. Unfortunately, in a separate dialog, it also asks for permission to use the microphone. (Which the app doesn?t use.) > > "This application requires access to the device?s microphone.? > > I imagine this is what triggered the rejection. Is there a way to edit this dialog so that I can get past the review? > > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web http://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-800-615-0867 > ------------------------------------------------------ > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Wed Oct 3 02:51:18 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 3 Oct 2018 16:51:18 +1000 Subject: mergAV permission dialog In-Reply-To: References: <3E943DB1-C667-47BF-A822-2C5EDE80182F@elementarysoftware.com> Message-ID: <5FE6D2E2-C3B6-4768-8296-727DE34337BD@appisle.net> Should be: mergAVCamSet ?microphone?, empty You may also need to add a custom plist template with a more specific reason why you want video permission. See http://lessons.livecode.com/m/4069/l/881992-creating-a-custom-plist Cheers Monte > On 3 Oct 2018, at 4:32 pm, scott--- via use-livecode wrote: > > Answering my own question? I now see a note at the bottom of mergAVCamCreate that says > > "If only capturing barcodes or photos set the microphone to empty before calling mergAVCamCreate to avoid app store rejection.? > > So apparently my problem has a solution. At least as soon as I figure out how to set the microphone to ?empty? :- ) > > ?Scott Morrow From scott at elementarysoftware.com Wed Oct 3 03:14:23 2018 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 3 Oct 2018 00:14:23 -0700 Subject: mergAV permission dialog In-Reply-To: <5FE6D2E2-C3B6-4768-8296-727DE34337BD@appisle.net> References: <3E943DB1-C667-47BF-A822-2C5EDE80182F@elementarysoftware.com> <5FE6D2E2-C3B6-4768-8296-727DE34337BD@appisle.net> Message-ID: Thank you, Monte! I was missing that. ? Scott Morrow > On Oct 2, 2018, at 11:51 PM, Monte Goulding via use-livecode wrote: > > Should be: > > mergAVCamSet ?microphone?, empty > > You may also need to add a custom plist template with a more specific reason why you want video permission. See http://lessons.livecode.com/m/4069/l/881992-creating-a-custom-plist > > Cheers > > Monte > >> On 3 Oct 2018, at 4:32 pm, scott--- via use-livecode wrote: >> >> Answering my own question? I now see a note at the bottom of mergAVCamCreate that says >> >> "If only capturing barcodes or photos set the microphone to empty before calling mergAVCamCreate to avoid app store rejection.? >> >> So apparently my problem has a solution. At least as soon as I figure out how to set the microphone to ?empty? :- ) >> >> ?Scott Morrow > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From michael-kristensen at dsa-net.dk Wed Oct 3 06:42:32 2018 From: michael-kristensen at dsa-net.dk (Michael Kristensen) Date: Wed, 3 Oct 2018 12:42:32 +0200 Subject: Thanks to Hermann Hoch... Message-ID: <5EF5F101-9B81-4779-88D9-F08364D269D5@dsa-net.dk> ?for all the wonderful and wellcraftet stacks you share so generously with us! Michael From axwald at gmail.com Wed Oct 3 07:53:50 2018 From: axwald at gmail.com (axwald) Date: Wed, 3 Oct 2018 06:53:50 -0500 (CDT) Subject: Where does LiveCode/Windows store specialFolderPath("Resources") data? In-Reply-To: References: Message-ID: <1538567630063-0.post@n4.nabble.com> Tried in Win 10-64 pro (v1803), both with LC 9.0.1 and 6.7.10, both in IDE and StandAlone. SpecialFolderPath("resources") _is_always_ item 1 to -2 of the effective filename of this stack (assuming slash as itemdel). > I store a data file that is update by > the user in specialFolderPath("Resources") You may assume _not_ to have write permissions in the program folder (in modern OSses). For user data there is the SFPs "documents" and "temporary". Have fun, axwald (@ forums.livecode.com) ----- ? Livecode programming until the cat hits the fan ? -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From andrew at midwestcoastmedia.com Wed Oct 3 08:05:59 2018 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Wed, 03 Oct 2018 12:05:59 +0000 Subject: mergLA for Mac Message-ID: <20181003120559.Horde.EIyvWvXskWax2o3iAUTVPow@ua850258.serversignin.com> I created an admin backend app for a client so they can manage data for their frontend app. This backend, based off client request, is running on macOS/Windows/iOS. The desktop versions use a password for authenticating access but the iOS deployment uses Touch/Face ID for authentication via Monte's extremely easy to use mergLA external. Recently this client upgraded their laptop to a MacBook Pro that also supports Touch ID and asked if the same fingerprint technology could be implemented in the macOS build. I was blissfully unaware that this feature even existed on that platform, but apparently has been available since the 2016 model year. I know several of the other merg externals utilize the same/similar underlying framework so they work on both macOS and iOS. Is this just a matter of recompiling the external or is there a deeper change that would need to be made to unlock this? https://developer.apple.com/documentation/localauthentication --Andrew Bell From andre at andregarzia.com Wed Oct 3 08:19:35 2018 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 3 Oct 2018 13:19:35 +0100 Subject: Script Editor Unusable on Windows In-Reply-To: <026c9ad8-a937-7be6-7fcc-94a576694827@pair.com> References: <84F95D6F-8162-4843-A9FB-AC7B21C38B79@m-r-d.de> <026c9ad8-a937-7be6-7fcc-94a576694827@pair.com> Message-ID: Folks, I've been complaining about LC on Windows for ages to Brahmanathaswami and occasionally on this list as well. I have a feeling that most people on HQ must be using Macs because there is no way this is going unnoticed. I have disabled all I could in terms of auto suggestion and other live stuff from options menu and it is still slow. It is not only the editor though, it is all of LC IDE. Typing stuff inside the message box is so laggy that is unusable. Here, it takes seconds to catch up and I am a slow types that uses basically only two fingers to type. Dragging controls from the palettes, launching the inspectors. Everything hangs all the time. Just today, I lost an hour of work because LC crashed while I was accepting an script. Poof, the IDE went unresponsive and then I had to close it. This happens all the time. I don't have any plugins anymore. I've disabled everything. I don't have a recipe either because it affects the whole IDE here. My machine is pretty standard, it is a Surface Pro 4 with 8gb of RAM, 512 GB of HD and Windows 10 latest stuff. I almost miss my apple. On Thu, Sep 27, 2018 at 12:15 AM Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > > Thanks everyone! With all this info and so many people affected, we > should have a recipe pinned down soon. :) > > Best wishes, > > Curry K. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From brian at milby7.com Wed Oct 3 08:35:08 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 3 Oct 2018 08:35:08 -0400 Subject: Thanks to Hermann Hoch... In-Reply-To: <5EF5F101-9B81-4779-88D9-F08364D269D5@dsa-net.dk> References: <5EF5F101-9B81-4779-88D9-F08364D269D5@dsa-net.dk> Message-ID: <94de06f4-91b1-456e-ad93-deda7a126004@Spark> Couldn?t agree more. Lots of useful stacks and widgets that push the envelope of what is possible. Thanks, Brian On Oct 3, 2018, 6:43 AM -0400, Michael Kristensen via use-livecode , wrote: > ?for all the wonderful and wellcraftet stacks you share so generously with us! > > Michael > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Wed Oct 3 10:22:26 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 3 Oct 2018 10:22:26 -0400 Subject: Thanks to Hermann Hoch... In-Reply-To: <94de06f4-91b1-456e-ad93-deda7a126004@Spark> References: <5EF5F101-9B81-4779-88D9-F08364D269D5@dsa-net.dk> <94de06f4-91b1-456e-ad93-deda7a126004@Spark> Message-ID: Though I haven't used them yet, I agree...its great for the community. Thanks Hermann On Wed, Oct 3, 2018 at 8:35 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Couldn?t agree more. Lots of useful stacks and widgets that push the > envelope of what is possible. > > Thanks, > Brian > On Oct 3, 2018, 6:43 AM -0400, Michael Kristensen via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > ?for all the wonderful and wellcraftet stacks you share so generously > with us! > > > > Michael > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 3 11:33:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Oct 2018 15:33:53 +0000 Subject: Stacks whose names start with "rev" In-Reply-To: References: <895a5cad-bafb-5ba7-28f9-e06fab382ad6@fourthworld.com> Message-ID: <6A3B2237-27CE-4A26-98BE-11B5E225691F@iotecdigital.com> It would be easy enough. Just maintain an array in each card's custom properties with a pseudoname and the long id as keys, and call a function to retrieve them when you reference them. But then, why name objects at all? Why not just refer to them by their long ids in the scripts? Also there is the altid property which allows you to copy an object and still refer to it by it's altid wherever it is found. And, thinking about this a bit, whenever I get the chance I iterate through a series of objects either by using the number of in a repeat loop, or else by storing them in a property when I need them. I guess these are forms of abstraction. I went through all my code and "dereferenced" it in preparation for moving to behaviors. I store any objects I need to reference specifically in custom properties. For instance I have what I call a name tag field, which is a label indicating what the parent of a form is (the site a device belongs to, the customer a site belongs to etc.) So I store a custom property in the card or stack where the cNameTagField property is the name of the field. To avoid multiple calls to "get the of", I store all such properties in a single array, get the array one time and populate script local variables. Another form of abstraction. I guess the reason Filemaker has to have this automatic abstraction is because the database and underlying form objects are so closely linked. It really wouldn't work any other way. In livecode, the only link between a database column and a field or button is the code you write. Bob S > On Oct 2, 2018, at 15:30 , Geoff Canyon via use-livecode wrote: > > The fact that there is an underlying permanent unique id for everything, > completely abstracted from the user. So you can change the name of a > column, or table, or layout, one time, in the database definition, and all > references to that object in scripts, other layouts, etc. will > automatically update -- or really, peeking behind the curtain, I'm guessing > they don't have to update at all because they all reference the permanent > unique id, and only render it into the name you know it by when they render > themselves for you to edit them. > > So in LiveCode terms, imagine if you could rename a card, and any script > that referenced that card, or controls on it, wouldn't break, but just > automatically reflect the new name. Or rename a control, or a stack. > > gc From bobsneidar at iotecdigital.com Wed Oct 3 11:50:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Oct 2018 15:50:04 +0000 Subject: Script Editor Unusable on Windows In-Reply-To: References: <84F95D6F-8162-4843-A9FB-AC7B21C38B79@m-r-d.de> <026c9ad8-a937-7be6-7fcc-94a576694827@pair.com> Message-ID: <3CAA2699-E70E-45A0-B501-A8CEA8D05139@iotecdigital.com> Early on when LC was experiencing a CTD issue (this was around v6) I wrote code into my stacks that saved every time I closed a stack. I also save code incredibly frequently, sometimes every few line edits. I maintain local and offsite backups of what I do so I can revert, and I have a versioning local backup running automatically so I can recover a version earlier in the day, in case I completely bork my code, then save it. Still, this is a pain and needs to be sussed out, but as you say, producing a reliable recipe is nearly impossible, because by the time you notice it, it's about to go nuclear. Bob S > On Oct 3, 2018, at 05:19 , Andre Garzia via use-livecode wrote: > > Dragging controls from the palettes, launching the inspectors. Everything > hangs all the time. Just today, I lost an hour of work because LC crashed > while I was accepting an script. Poof, the IDE went unresponsive and then I > had to close it. This happens all the time. From chipsm at themartinz.com Wed Oct 3 12:18:17 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Wed, 3 Oct 2018 09:18:17 -0700 Subject: Script Editor Unusable on Windows In-Reply-To: <3CAA2699-E70E-45A0-B501-A8CEA8D05139@iotecdigital.com> References: <84F95D6F-8162-4843-A9FB-AC7B21C38B79@m-r-d.de> <026c9ad8-a937-7be6-7fcc-94a576694827@pair.com> <3CAA2699-E70E-45A0-B501-A8CEA8D05139@iotecdigital.com> Message-ID: <0c6801d45b34$b2033a50$1609aef0$@themartinz.com> You may want to look at The LCStackBrowser Plugin. It has the ability to save stacks automatically. I have used this for years now. There were some problems recently when the LiveCode version went from 7 to 8 but the author has fixed that. Sincerely, Clarence Martin Email: Chipsm at themartinz.com Cell: 626 696-5561 -----Original Message----- From: use-livecode On Behalf Of Bob Sneidar via use-livecode Sent: Wednesday, October 03, 2018 8:50 AM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: Script Editor Unusable on Windows Early on when LC was experiencing a CTD issue (this was around v6) I wrote code into my stacks that saved every time I closed a stack. I also save code incredibly frequently, sometimes every few line edits. I maintain local and offsite backups of what I do so I can revert, and I have a versioning local backup running automatically so I can recover a version earlier in the day, in case I completely bork my code, then save it. Still, this is a pain and needs to be sussed out, but as you say, producing a reliable recipe is nearly impossible, because by the time you notice it, it's about to go nuclear. Bob S > On Oct 3, 2018, at 05:19 , Andre Garzia via use-livecode wrote: > > Dragging controls from the palettes, launching the inspectors. > Everything hangs all the time. Just today, I lost an hour of work > because LC crashed while I was accepting an script. Poof, the IDE went > unresponsive and then I had to close it. This happens all the time. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 3 12:50:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Oct 2018 16:50:25 +0000 Subject: Nested Datagrid Hack Broke App Building In-Reply-To: References: Message-ID: <3157EBCF-26B1-4FA1-9013-A4D9B58EAE2F@iotecdigital.com> No it was the code I put in the openStack handler to exit openStack if building an app. Unfortunately, I initialize several libraries after that point. It will probably work if I put the code just after initializing the libs and before launching my modal login stack, which was the problem I was trying to solve in the first place. Bob S > On Oct 1, 2018, at 16:13 , Brian Milby via use-livecode wrote: > > https://github.com/livecode/livecode-ide/pull/1987 > > It has not been reviewed or merged yet. I wouldn?t expect it before 9.1 since it is kind of an enhancement though. > > Did you just edit the behavior in the IDE? I?ll test out my code in 9.0.1 and let you know what I find out. > > Thanks, > Brian > On Oct 1, 2018, 6:55 PM -0400, Bob Sneidar via use-livecode , wrote: >> Looks like the hack I have in place for nesting datagrid behaviors has effectively broken the standalone app builder for my app. I can't use a prior version because all my datagrid behavoirs throughout my app are nested. I can't just use the community version of Livecode and have my technicians run the app in the IDE, because I would have to ALSO hack those version for nested datagrids. >> >> Does anyone know if nested datagrid behaviors made it into 9.0.1? >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Oct 3 13:45:19 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 3 Oct 2018 10:45:19 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <6A3B2237-27CE-4A26-98BE-11B5E225691F@iotecdigital.com> References: <895a5cad-bafb-5ba7-28f9-e06fab382ad6@fourthworld.com> <6A3B2237-27CE-4A26-98BE-11B5E225691F@iotecdigital.com> Message-ID: FileMaker goes much deeper than this, and functionality like this would almost have to be part of the engine. Naming things is a way of making it easier to keep track of them for the developer. Who wants to write graphic id 5621 of group id 5619 of group id 5615 of group id 5605 of group id 1282 of card id 1002 of stack "/Users/gcanyon/Documents/My Livecode/Plugins/Navigator.rev" when you can just write graphic "topright in" So for starters, you'd need to parse every script as it was saved, find all the object references, and replace all object references with long IDs. Likewise, you'd need a reverse routine to turn scripts back into something readable when the developer wants to edit them. That's easier in FileMaker because there is only one way to reference a control, as opposed to the myriad of ways you can do it in LiveCode. You'd also need to find a way to make that robust against file name/path changes, which is a whole other can of worms. Also, I don't think FileMaker "has" to do it -- there are many database tools out there, and as far as I know, none of them do this. On Wed, Oct 3, 2018 at 8:34 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > It would be easy enough. Just maintain an array in each card's custom > properties with a pseudoname and the long id as keys, and call a function > to retrieve them when you reference them. But then, why name objects at > all? Why not just refer to them by their long ids in the scripts? Also > there is the altid property which allows you to copy an object and still > refer to it by it's altid wherever it is found. > > And, thinking about this a bit, whenever I get the chance I iterate > through a series of objects either by using the number of in a > repeat loop, or else by storing them in a property when I need them. I > guess these are forms of abstraction. I went through all my code and > "dereferenced" it in preparation for moving to behaviors. I store any > objects I need to reference specifically in custom properties. > > For instance I have what I call a name tag field, which is a label > indicating what the parent of a form is (the site a device belongs to, the > customer a site belongs to etc.) So I store a custom property in the card > or stack where the cNameTagField property is the name of the field. To > avoid multiple calls to "get the of", I store all such > properties in a single array, get the array one time and populate script > local variables. Another form of abstraction. > > I guess the reason Filemaker has to have this automatic abstraction is > because the database and underlying form objects are so closely linked. It > really wouldn't work any other way. In livecode, the only link between a > database column and a field or button is the code you write. > > Bob S > > > > On Oct 2, 2018, at 15:30 , Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > The fact that there is an underlying permanent unique id for everything, > > completely abstracted from the user. So you can change the name of a > > column, or table, or layout, one time, in the database definition, and > all > > references to that object in scripts, other layouts, etc. will > > automatically update -- or really, peeking behind the curtain, I'm > guessing > > they don't have to update at all because they all reference the permanent > > unique id, and only render it into the name you know it by when they > render > > themselves for you to edit them. > > > > So in LiveCode terms, imagine if you could rename a card, and any script > > that referenced that card, or controls on it, wouldn't break, but just > > automatically reflect the new name. Or rename a control, or a stack. > > > > gc > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Wed Oct 3 14:34:22 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Oct 2018 18:34:22 +0000 Subject: Stacks whose names start with "rev" In-Reply-To: References: <895a5cad-bafb-5ba7-28f9-e06fab382ad6@fourthworld.com> <6A3B2237-27CE-4A26-98BE-11B5E225691F@iotecdigital.com> Message-ID: <322E39E1-178E-4806-BC1F-4D8B16CF4D8F@iotecdigital.com> Point taken. But Livecode is not a database tool. :-) Bob S > On Oct 3, 2018, at 10:45 , Geoff Canyon via use-livecode wrote: > > Also, I don't think FileMaker "has" to do it -- there are many database > tools out there, and as far as I know, none of them do this. From lan.kc.macmail at gmail.com Wed Oct 3 16:59:15 2018 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 4 Oct 2018 06:59:15 +1000 Subject: Stacks whose names start with "rev" In-Reply-To: <82a675a6-e185-3bf8-c50d-d714ba615c63@hyperactivesw.com> References: <6d7bc399-a613-300d-e323-7407621404b6@hyperactivesw.com> <29bf28b6-ee63-9a27-bbab-6bb5a830c952@fourthworld.com> <82a675a6-e185-3bf8-c50d-d714ba615c63@hyperactivesw.com> Message-ID: On Fri, Sep 28, 2018 at 8:48 AM J. Landman Gay via use-livecode wrote: > > The reason the stack name can't be changed is because the whole > multi-stack system uses the stack name for internal display in dozens of > places (glossaries, gradebooks, student notes, reading history, lookups, > etc.) and I'd have to add exceptions everywhere to accomodate just a > couple of problem names. We only want to do an occasional edit without > upsetting the whole IDE. > I appreciate that this will not solve 'the problem' but would solve your 'current problem'; why not give the stack the correct name "The Revelation" *. That way ALL your glossaries, student notes and other references would show the correct title of the book. Please note there is no 's' at the end, and by adopting the correct name you may go some way in helping the students win trivia bets as to whether the last book of the Bible is called "Revelations". * At least in my copy of the King James Bible it's called "The Revelation - of St John the Divine"; other versions of the Bible may have colloquially translated that to Revelations. From ambassador at fourthworld.com Wed Oct 3 17:22:27 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 3 Oct 2018 14:22:27 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: References: Message-ID: <13c3661d-3a6d-ac16-c436-c4091507cd90@fourthworld.com> Kay C Lan wrote: > On Fri, Sep 28, 2018 at 8:48 AM J. Landman Gay wrote: >> >> The reason the stack name can't be changed is because the whole >> multi-stack system uses the stack name for internal display in dozens >> of places (glossaries, gradebooks, student notes, reading history, >> lookups, etc.) and I'd have to add exceptions everywhere to >> accomodate just a couple of problem names. We only want to do an >> occasional edit without upsetting the whole IDE. >> > I appreciate that this will not solve 'the problem' but would solve > your 'current problem'; why not give the stack the correct name "The > Revelation" *. I have seen even academic use without "the". But such considerations do not appear to be needed. What Jacque described is a set of circumstances that prevent even work on the IDE. This is either the most critical bug in the IDE's history and therefore likely to be resolved within days if it hasn't already, or just a minor error like attempting to set the stack's mode rather than its style (good catch, Bob). Either way, resolvable in short or order. It would be comforting to find how how she got back to work, but since she's not here I assume she's busy because she did. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From gcanyon at gmail.com Wed Oct 3 17:49:33 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 3 Oct 2018 14:49:33 -0700 Subject: Navigator 6.5 alpha 2 is out Message-ID: As usual, you can get Navigator here . Or grab it from GitHub . This is a major update to how Navigator handles what container to target. It also changes how Navigator handles list display, and several other things. Notes below. gc === NEW FEATURES === RECENT TARGETS The Card menu now stores the last 7 containers you've displayed in Navigator. So for me, this makes for super-fast switching between Navigator itself and test stacks I'm experimenting with. Let me know what you think about how many items to display here. Underlying the above (and the card menu fix below), the method for determining what to display has changed significantly (but not completely, still a work in progress). This means that a few of the more obscure features of Navigator have gone away as of this update. Specifically, it used to be possible to browse "card " or "card id " of the topstack -- meaning that if you switched between stacks that happened to have cards with identical names/ids, Navigator would happily switch with you. Now, when displaying a specific card or group, the stack reference is part of that identification, so switching to a different stack in LiveCode doesn't change anything. Meaning: the only display in Navigator that follows what you do in LiveCode is the "This Card" of "The topStack" display. CARD/BACKGROUND MENU SMARTER The Card menu and Background menu are now duplicate-name-safe. It's a small thing, but it used to be the case that the menus browsed based on the literal text in the menu, so if you had two cards with identical names, there was no way to browse the second card using the menu. (you could still do it by displaying the card list and then right-clicking either card in the list and selecting Browse Controls on the popup) The menu items will still have identical names, but selecting the second (or third...) item will correctly browse that card or group. SAVE ALL PROGRESS DISPLAY The "Save All" command for a stack, which was terribly broken by any missing stack references until the last version, now quickly displays all the files it's saving in Navigator's title bar, and then for 1 second it says how many files it saved, before reverting to the normal Navigator title display. CHANGED NAVIGATOR'S LIST FIELD TO FIXEDLINEHEIGHT This was a long-standing source of frustration: the showLines property, combined with fixedLineHeight, results in the text being displayed high in the lines (or the lines being displayed low, take your pick). This has been the case since as long as I can remember. Hence Navigator has struggled along with fixedLineHeight set to false for years (even though all the lines are the same height), and this caused all sorts of issues. This time around I changed that. This might (it doesn't for me, but fonts are weird) cause issues with text display in Navigator's list. If it does, let me know. The control for folding groups also changed, so if you see any anomalies there definitely let me know. FIXED NAVIGATOR COMMAND SAVING (and file IO in general). It is now possible to save Commands, and then use them later. One command that I use *all the time* when working on drag and drop, or in general: if tIndex = 1 then ask "Base Name:" if the result is not empty then exit to top put it into tName end if set the name of tID to tName && tIndex This lets you specify a text component, and then names all the selected controls with an index -- give it "test" and the controls will be named test 1, test 2, test 3, etc. NEW NAVIGATOR DOCUMENTATION I've started new Navigator documentation at https://gcanyon.wixsite.com/navigator It's not complete by any stretch, but what it does document is up to date. The original documentation is still available at https://gcanyon.wordpress.com/navigator-documentation/ FONT POPUP IN THE PROPERTY EDITOR What it says on the tin -- like other enumerated properties, if you click on the font name in the textFont property in Navigator's Property Editor, instead of editing the text, a menu will pop up with all available fontNames. RENAMING CONTROLS IN THE PROPERTY EDITOR FIXED Because of the name/short name weirdness, it used to be that if you edited the name of button "bob" you would literally get -- button "bob" -- to edit, and if you didn't change it to just -- bob -- the name would be set accordingly. This is, as far as I know, the only instance where you can: set the name of button "bob" to the name of button "bob" And change the value. And for the record, no, you can't set the short name of anything. So I finally broke down and special-cased the name, so despite being called name, it displays the short name, and then sets the name to whatever you enter. A BUNCH OF SMALL BUG FIXES THAT I OUGHT TO DOCUMENT BETTER... Yeah, sorry I don't have a list. From jacque at hyperactivesw.com Wed Oct 3 17:51:51 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 03 Oct 2018 16:51:51 -0500 Subject: Stacks whose names start with "rev" In-Reply-To: References: <6d7bc399-a613-300d-e323-7407621404b6@hyperactivesw.com> <29bf28b6-ee63-9a27-bbab-6bb5a830c952@fourthworld.com> <82a675a6-e185-3bf8-c50d-d714ba615c63@hyperactivesw.com> Message-ID: <1663bea6cd8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Yeah, we plan to change the name for the next release in January. The author of each courseware title names its sections and he named this one "Revelation as Apocalypse". It's currently in use by this semester's students, but he's agreed to a different name for next semester. The main thing I needed to know is whether there was an easier way to edit the stack than what we were doing. It seems there isn't. The edit was minor and was done via the message box. I think there's a bug in there somewhere but it isn't worth pursuing right now. The bizarre warning message was also particularly strange, and I'm curious where that came from. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 3, 2018 4:01:41 PM Kay C Lan via use-livecode wrote: > On Fri, Sep 28, 2018 at 8:48 AM J. Landman Gay via use-livecode > wrote: >> >> The reason the stack name can't be changed is because the whole >> multi-stack system uses the stack name for internal display in dozens of >> places (glossaries, gradebooks, student notes, reading history, lookups, >> etc.) and I'd have to add exceptions everywhere to accomodate just a >> couple of problem names. We only want to do an occasional edit without >> upsetting the whole IDE. >> > I appreciate that this will not solve 'the problem' but would solve > your 'current problem'; why not give the stack the correct name "The > Revelation" *. That way ALL your glossaries, student notes and other > references would show the correct title of the book. Please note there > is no 's' at the end, and by adopting the correct name you may go some > way in helping the students win trivia bets as to whether the last > book of the Bible is called "Revelations". > > * At least in my copy of the King James Bible it's called "The > Revelation - of St John the Divine"; other versions of the Bible may > have colloquially translated that to Revelations. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Oct 3 18:11:45 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 03 Oct 2018 17:11:45 -0500 Subject: Stacks whose names start with "rev" In-Reply-To: <13c3661d-3a6d-ac16-c436-c4091507cd90@fourthworld.com> References: <13c3661d-3a6d-ac16-c436-c4091507cd90@fourthworld.com> Message-ID: <1663bfc9548.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> We only needed to make a minor tweak, nothing big, and it didn't take long when we avoided use of the IDE itself. But we shouldn't have to do that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 3, 2018 4:51:20 PM Richard Gaskin via use-livecode wrote: > > It would be comforting to find how how she got back to work, but since > she's not here I assume she's busy because she did. From lan.kc.macmail at gmail.com Wed Oct 3 18:13:02 2018 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 4 Oct 2018 08:13:02 +1000 Subject: [ANN] animationEngine is free now In-Reply-To: <20180928182706.35f8b025@poseidon> References: <38CAB85D-6D13-4FA0-83B4-582D146F09FF@derbrill.de> <43ADCB87-AB26-4AE5-8898-DAC6CEBDB656@pidigital.co.uk> <20180928182706.35f8b025@poseidon> Message-ID: On Sat, Sep 29, 2018 at 7:27 AM John McKenzie via use-livecode wrote:> > You are right, if it is GPL it is so forever, but the original author > can also release/re-release it with another licence. THE GPL version > with all the terms that go with it still exists though. The original > author cannot make you pick one licence or the other. Users with the GPL > continue to have all the rights of the GPL. Those users can choose to > download a copy with the other licence if they want though, as long as > they obey the terms of that licence. Thank you John for expressing this so succinctly as strangely I don't think it's a concept LiveCode the company fully understands, or is happy that licensing is a generally confusing issue for Users. It has been expressed on the odd occasion that a couple of students can't each download the Community version of LC and develop a game and then one of them who has a rich Dad buy a Commercial version and then upload their App to the Apple Store; but this is perfectly legitimate if they jump through a few hoops. As long as all the students release all their code to the public under GPLv3 and then, maybe even via this List, release all their code under another license - I currently have a particular liking to the JSON license which is GPL incompatible but is AppStore compatible - then you, me, and Student No 3 with a Commercial license can take that code and do with it what we like. LiveCode can not prevent Malte from releasing his GPL code additionally to the Public Domain. The FOSS can not prevent any GPL code from also being released under another license. This is exactly how VLC was originally pulled from the Apple Store but eventually made it's way back because all the contributors who wanted VLC to be released without the restrictions of GPL, simply re-released their code under a different Apple compatible license (MIT I think). So it is legal for a group of impoverished developers (aren't they all;-) to all grab a copy of Community LC and develop away to their hearts content releasing all their code to the Public Domain (which is GPLv3 compatible but irritates certain FOSS zealots) and at some stage scrounge up enough money for a single Indy license and release their Killer App on the App Store. The company may wish all the contributing developers purchased an Indy license but there is no legal or practical way that they could enforce that desire. As long as the LC User abides by their License, and the Receiver abides by the License of the code they receive and the LC License they have, then you are good. From matthias_livecode_150811 at m-r-d.de Wed Oct 3 18:33:47 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 4 Oct 2018 00:33:47 +0200 Subject: OT our shipping software is finally finished Message-ID: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> Hi, with a little proud i am happy to say that after many weeks of "blood, sweat and tears" i?ve finally finished our Windows software for DHL and Trans-o-flex shipments. This software is used by our own and replaces a 3rd party software. There are several reasons, why we decided to replace the software. These are the main features: By entering the invoice number the software fetches the corresponding shipping address and some other additional information like cash on delivery amount (if applicable) from the database of our ERP software and creates a shipping label, which then is printed onto a thermal printer. For Trans-o-Flex the shipping labels (including a 1D barcode 2of5 interleaved and a qrCode) are completely built with the app. The qrCode is created with a slightly modified version of the Livecode qrCode library. The modified library allows to specify the version number the created qrCode should have. This is important, as the carrier Trans-o-Flex only allows version 14 qrCodes for their shipping labels. The original LC library selects the version according to the data the qrCode contains. If you are interested in the modified library, you?ll find it here I?ve attached it to ?bug? report 21428. The 1D barcode is created with a 3rd party Windows SDK from Tec-It . Currently the SDK is called from a .vbs script.The .vbs file is created dynamically. The future plan is to create a widget which calls the SDK. But due to my lack of knowledge about widget i had to choose the .vbs way for now. After successful printing, the shipping data is stored into a database. At the end of the day, the shipping data of all parcels and pallets is exported from database to an XML file, which is then uploaded to the sftp server of the shipment carrier. The tracking number of each shipment, the according invoice and customer number are exported also to our web server. This allows our customers to query the tracking numbers by entering their invoice and customer number. The software allows also the export a PDF of all shipments of a day. I?ve uploaded 3 screenshots of the app if you?re interested. Please don?t laugh about the user interface. The design does not match the current Windows design nor is it state of the art. Our users wanted it simple and ?readable? and no small buttons or text. https://mr.on-rev.com/menu.png https://mr.on-rev.com/shipping.png https://mr.on-rev.com/label.png This is by far the most extensive app i?ve created with Livecode so far and i am really happy that it was finally approved by Trans-o-Flex. Matthias From bobsneidar at iotecdigital.com Wed Oct 3 18:45:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Oct 2018 22:45:03 +0000 Subject: OT our shipping software is finally finished In-Reply-To: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> Message-ID: <1FCA392A-3A38-4FE2-B5F3-BE8A097EE656@iotecdigital.com> I'd be curious how you did the back end integration with your ERP sysetm. Do they provide an API? Bob S > On Oct 3, 2018, at 15:33 , Matthias Rebbe via use-livecode wrote: > > These are the main features: > By entering the invoice number the software fetches the corresponding shipping address and some other additional information like cash on delivery amount (if applicable) from the database of our ERP software and creates a shipping label, which then is printed onto a thermal printer. From matthias_livecode_150811 at m-r-d.de Wed Oct 3 18:57:19 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 4 Oct 2018 00:57:19 +0200 Subject: OT our shipping software is finally finished In-Reply-To: <1FCA392A-3A38-4FE2-B5F3-BE8A097EE656@iotecdigital.com> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <1FCA392A-3A38-4FE2-B5F3-BE8A097EE656@iotecdigital.com> Message-ID: <514F0FAE-B379-469A-9505-060406272C82@m-r-d.de> No, there is no api. We are fetching the data directly from the MSSQL database. But fortunately the developer of our ERP provided very detailed informations about the database and the structure of its tables. So at least i knew what table stored what information. I then ?just? had to find out how to fetch the needed information from which tables and to create the sql commands for it. To make it more complicated, the app does not just fetch shipping addresses for invoices, but also for orders,return shipments and return shipments with credit memo. They are all stored somewhere else. That?s one reason why i wrote ?blood,sweat and tears?. > Am 04.10.2018 um 00:45 schrieb Bob Sneidar via use-livecode : > > I'd be curious how you did the back end integration with your ERP sysetm. Do they provide an API? > > Bob S > > >> On Oct 3, 2018, at 15:33 , Matthias Rebbe via use-livecode wrote: >> >> These are the main features: >> By entering the invoice number the software fetches the corresponding shipping address and some other additional information like cash on delivery amount (if applicable) from the database of our ERP software and creates a shipping label, which then is printed onto a thermal printer. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 3 19:01:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Oct 2018 23:01:26 +0000 Subject: OT our shipping software is finally finished In-Reply-To: <514F0FAE-B379-469A-9505-060406272C82@m-r-d.de> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <1FCA392A-3A38-4FE2-B5F3-BE8A097EE656@iotecdigital.com> <514F0FAE-B379-469A-9505-060406272C82@m-r-d.de> Message-ID: Ah. So do you use an ODBC connector? If so, which did you use? We have an ARP I would like to at least create read connectors for into my Forms Generator, but I would have to have some kind of ODBC connector, unless direct connections are permitted now. Bob S > On Oct 3, 2018, at 15:57 , Matthias Rebbe via use-livecode wrote: > > No, there is no api. We are fetching the data directly from the MSSQL database. But fortunately the developer of our ERP provided very detailed informations about the database and the structure of its tables. From bobsneidar at iotecdigital.com Wed Oct 3 19:02:11 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Oct 2018 23:02:11 +0000 Subject: OT our shipping software is finally finished In-Reply-To: References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <1FCA392A-3A38-4FE2-B5F3-BE8A097EE656@iotecdigital.com> <514F0FAE-B379-469A-9505-060406272C82@m-r-d.de> Message-ID: And congratulations by the way. :-) Bob S > On Oct 3, 2018, at 16:01 , Bob Sneidar via use-livecode wrote: > > Ah. So do you use an ODBC connector? If so, which did you use? We have an ARP I would like to at least create read connectors for into my Forms Generator, but I would have to have some kind of ODBC connector, unless direct connections are permitted now. > > Bob S > > >> On Oct 3, 2018, at 15:57 , Matthias Rebbe via use-livecode wrote: >> >> No, there is no api. We are fetching the data directly from the MSSQL database. But fortunately the developer of our ERP provided very detailed informations about the database and the structure of its tables. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Oct 3 19:16:10 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 4 Oct 2018 01:16:10 +0200 Subject: OT our shipping software is finally finished In-Reply-To: References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <1FCA392A-3A38-4FE2-B5F3-BE8A097EE656@iotecdigital.com> <514F0FAE-B379-469A-9505-060406272C82@m-r-d.de> Message-ID: <38C15204-8133-45CC-BA1D-61B8B7B8C34D@m-r-d.de> As this runs only on Windows and we are fetching the data from a MSSQL database we are using the odbc driver ?SQL Server? which is included in Windows. Btw.: For connections from Mac to MSSQL server i have here Actualtech?s ODBC driver and also the Openlink SQL Server Lite driver. But i prefer the Actualtech one. Why? Because it?s cheaper and it?s easier to configure and Jonathan Monroe of Actualtech was always helpful when i requested support. Matthias > Am 04.10.2018 um 01:01 schrieb Bob Sneidar via use-livecode : > > Ah. So do you use an ODBC connector? If so, which did you use? We have an ARP I would like to at least create read connectors for into my Forms Generator, but I would have to have some kind of ODBC connector, unless direct connections are permitted now. > > Bob S > > >> On Oct 3, 2018, at 15:57 , Matthias Rebbe via use-livecode wrote: >> >> No, there is no api. We are fetching the data directly from the MSSQL database. But fortunately the developer of our ERP provided very detailed informations about the database and the structure of its tables. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Wed Oct 3 19:23:16 2018 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 4 Oct 2018 09:23:16 +1000 Subject: [off] Do me a solid In-Reply-To: <99a06e0c-38e7-7ad8-d23b-891390ddcd8d@sonic.net> References: <99a06e0c-38e7-7ad8-d23b-891390ddcd8d@sonic.net> Message-ID: On Sun, Sep 30, 2018 at 10:11 AM Mark Wieder via use-livecode wrote: > > > Is this the same Tim Berners-Lee who, in his capacity as Director of the > World Wide Web Consortium, a year ago overruled all objections and added > standardized DRM to the open web standards? Sided with trillions of > dollars worth of corporate muscle against accessibility groups, security > experts, browser startups, public interest groups, human rights groups, > archivists, research institutions, etc? > > Pass. Unfortunately I think the Free Software Foundation backed the wrong horse. Whilst it's mission to promote computer user freedom is commendable, doing it via OSS in a world where the Internet is driven by trillions of dollars, web search engines are driven by billions of dollars and both of these are influenced by media giants and governments with political agendas almost make the fact that you have OSS on your device irrelevant. I think individual freedom, let alone computer user freedom, would better be served if, like linux, there were a couple of versions of the WWW, some of which were truly Open Source. Although I use DuckDuckGo in deference to Google, I think we'd all be better off with a few viable OS Web Search Engines - the current ones are too small. I think in the future we'll look back and realise that having a purely open Search Engine and purely open Internet will be far more important to us than whether the code of the app we are using, to take advantage of what is available across the internet, is open or closed. From lists at mangomultimedia.com Wed Oct 3 19:32:12 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 3 Oct 2018 18:32:12 -0500 Subject: Leveraging LCB's Foreign Function Interface in Levure Message-ID: Hi all [sending again to the right list], I uploaded a screencast last night discussing how Levure is using LCB's Foreign Function Interface (FFI) that was introduced in LC9. https://www.youtube.com/watch?v=1TW5ArazTrc -- Trevor DeVore ScreenSteps www.screensteps.com From ambassador at fourthworld.com Wed Oct 3 19:42:50 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 3 Oct 2018 16:42:50 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <1663bea6cd8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1663bea6cd8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <11af97f7-ff7c-3bc4-bf44-a9c29cd5629f@fourthworld.com> J. Landman Gay wrote: > The main thing I needed to know is whether there was an easier way to > edit the stack than what we were doing. It seems there isn't. If "toplevel " doesn't work for you then it doesn't work for the folks at LC Ltd. I can understand if you don't have time to investigate this, but now I'm intrigued and wish we knew what made the stack you're working on so unusually difficult beyond the naming conventions. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ahsoftware at sonic.net Wed Oct 3 20:06:01 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 3 Oct 2018 17:06:01 -0700 Subject: OT our shipping software is finally finished In-Reply-To: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> Message-ID: <6bda9101-5457-c07a-e982-fe6ead240557@sonic.net> On 10/03/2018 03:33 PM, Matthias Rebbe via use-livecode wrote: > This is by far the most extensive app i?ve created with Livecode so far and i am really happy that it was finally approved by Trans-o-Flex. Congratulations. I know this has been a long rocky road. -- Mark Wieder ahsoftware at gmail.com From tom at makeshyft.com Wed Oct 3 20:11:46 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 3 Oct 2018 20:11:46 -0400 Subject: OT our shipping software is finally finished In-Reply-To: <6bda9101-5457-c07a-e982-fe6ead240557@sonic.net> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <6bda9101-5457-c07a-e982-fe6ead240557@sonic.net> Message-ID: Congratulations. Just wondering what the time frame was to start and complete this project? All the best and tons of sales. Cheers On Wed, Oct 3, 2018 at 8:07 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/03/2018 03:33 PM, Matthias Rebbe via use-livecode wrote: > > > This is by far the most extensive app i?ve created with Livecode so far > and i am really happy that it was finally approved by Trans-o-Flex. > > Congratulations. I know this has been a long rocky road. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Thu Oct 4 01:22:23 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 04 Oct 2018 14:22:23 +0900 Subject: Writing a UTF8 text file to server. Message-ID: <5BB5A38F.90406@tkf.att.ne.jp> I am using Livecode Server on Livecode's hosting plan. Taking my first stab at a web response form. I am getting the data from $_POST fine, and when I simply do something like: put $_POST[firstname] the UTF8/Kanji word shows up fine in the webpage. But I am unable to save the data to a file on the server encoded in UTF8 (simply trying to collect the submitted data). put "data.txt" into vfile open file vfile for utf8 text update put $_POST[firstname] & comma & $_POST[lastname] & comma & $_POST[country] & the time & return into vdata write vdata to file vfile at end close file vfile Data is getting saved, but in gibberish, not in kanji/utf8. Anyone see what I'm doing wrong? TIA Tim Selander Tokyo, Japan From jacque at hyperactivesw.com Thu Oct 4 01:27:18 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 04 Oct 2018 00:27:18 -0500 Subject: OT our shipping software is finally finished In-Reply-To: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> Message-ID: <1663d8b6308.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Congratulations! That's an impressive project and speaks well for both you and LiveCode. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 3, 2018 5:35:48 PM Matthias Rebbe via use-livecode wrote: > Hi, > > with a little proud i am happy to say that after many weeks of "blood, > sweat and tears" i?ve finally finished our Windows software for DHL and > Trans-o-flex shipments. This software is used by our own and replaces a 3rd > party software. There are several reasons, why we decided to replace the > software. > > These are the main features: > By entering the invoice number the software fetches the corresponding > shipping address and some other additional information like cash on > delivery amount (if applicable) from the database of our ERP software and > creates a shipping label, which then is printed onto a thermal printer. > > For Trans-o-Flex the shipping labels (including a 1D barcode 2of5 > interleaved and a qrCode) are completely built with the app. > The qrCode is created with a slightly modified version of the Livecode > qrCode library. The modified library allows to specify the version number > the created qrCode should have. This is important, as the carrier > Trans-o-Flex only allows version 14 qrCodes for their shipping labels. The > original LC library selects the version according to the data the qrCode > contains. If you are interested in the modified library, you?ll find it > here I?ve attached it > to ?bug? report 21428. > > The 1D barcode is created with a 3rd party Windows SDK from Tec-It > . > Currently the SDK is called from a .vbs script.The .vbs file is created > dynamically. The future plan is to create a widget which calls the SDK. But > due to my lack of knowledge about widget i had to choose the .vbs way for now. > > After successful printing, the shipping data is stored into a database. At > the end of the day, the shipping data of all parcels and pallets is > exported from database to an XML file, which is then uploaded to the sftp > server of the shipment carrier. The tracking number of each shipment, the > according invoice and customer number are exported also to our web server. > This allows our customers to query the tracking numbers by entering their > invoice and customer number. The software allows also the export a PDF of > all shipments of a day. > > I?ve uploaded 3 screenshots of the app if you?re interested. Please don?t > laugh about the user interface. The design does not match the current > Windows design nor is it state of the art. Our users wanted it simple and > ?readable? and no small buttons or text. > > https://mr.on-rev.com/menu.png > https://mr.on-rev.com/shipping.png > https://mr.on-rev.com/label.png > > This is by far the most extensive app i?ve created with Livecode so far and > i am really happy that it was finally approved by Trans-o-Flex. > > > Matthias > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Oct 4 01:32:26 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 04 Oct 2018 00:32:26 -0500 Subject: Stacks whose names start with "rev" In-Reply-To: <11af97f7-ff7c-3bc4-bf44-a9c29cd5629f@fourthworld.com> References: <1663bea6cd8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <11af97f7-ff7c-3bc4-bf44-a9c29cd5629f@fourthworld.com> Message-ID: <1663d901a10.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I won't be able to check it for a few days. The problem isn't so much that I couldn't change the stack but how it got assigned as mode two in the first place. It was a regular topstack when it was created back in LC 8. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 3, 2018 6:44:34 PM Richard Gaskin via use-livecode wrote: > J. Landman Gay wrote: > > The main thing I needed to know is whether there was an easier way to > > edit the stack than what we were doing. It seems there isn't. > > If "toplevel " doesn't work for you then it doesn't work for > the folks at LC Ltd. > > I can understand if you don't have time to investigate this, but now I'm > intrigued and wish we knew what made the stack you're working on so > unusually difficult beyond the naming conventions. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at elementarysoftware.com Thu Oct 4 02:08:38 2018 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 3 Oct 2018 23:08:38 -0700 Subject: Writing a UTF8 text file to server. In-Reply-To: <5BB5A38F.90406@tkf.att.ne.jp> References: <5BB5A38F.90406@tkf.att.ne.jp> Message-ID: <65A54F2C-8302-4BB1-9DA7-438D0562B009@elementarysoftware.com> Hello Tim, Did you look at the textEncode function? ? Scott Morrow > On Oct 3, 2018, at 10:22 PM, Tim Selander via use-livecode wrote: > > I am using Livecode Server on Livecode's hosting plan. > > Taking my first stab at a web response form. I am getting the data from $_POST fine, and when I simply do something like: > put $_POST[firstname] > > the UTF8/Kanji word shows up fine in the webpage. But I am unable to save the data to a file on the server encoded in UTF8 (simply trying to collect the submitted data). > > put "data.txt" into vfile > open file vfile for utf8 text update > put $_POST[firstname] & comma & $_POST[lastname] & comma & $_POST[country] & the time & return into vdata > write vdata to file vfile at end > close file vfile > > Data is getting saved, but in gibberish, not in kanji/utf8. > > Anyone see what I'm doing wrong? > > TIA > > Tim Selander > Tokyo, Japan > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Thu Oct 4 02:48:23 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 04 Oct 2018 15:48:23 +0900 Subject: Writing a UTF8 text file to server. In-Reply-To: <65A54F2C-8302-4BB1-9DA7-438D0562B009@elementarysoftware.com> References: <5BB5A38F.90406@tkf.att.ne.jp> <65A54F2C-8302-4BB1-9DA7-438D0562B009@elementarysoftware.com> Message-ID: <5BB5B7B7.8000102@tkf.att.ne.jp> Hi Scott, Added info; I have at the top of the web page source. Then, I only found outputTextEncoding in the dictionary. It said it only works with CGI (server), put when I put: set the outputTextEncoding to "utf-8" into the script before dealing with the $_POST array, it broke the Kanji on the web page itself. Googling turned up info on the textEncode function, but this script still results with a saved file of gibberish and not Kanji. Changed the script to this: put $_POST[firstname] --(Results in Kanji name to web page) put "data.txt" into vfile open file vfile for utf8 text update put textEncode($_POST[firstname], "UTF-8") into vdata write vdata to file vfile at end close file vfile but still get a file with broken kanji. Any hints? Tim On 2018/10/04 15:08, scott--- via use-livecode wrote: > Hello Tim, > > Did you look at the textEncode function? > > ? > Scott Morrow > >> On Oct 3, 2018, at 10:22 PM, Tim Selander via use-livecode wrote: >> >> I am using Livecode Server on Livecode's hosting plan. >> >> Taking my first stab at a web response form. I am getting the data from $_POST fine, and when I simply do something like: >> put $_POST[firstname] >> >> the UTF8/Kanji word shows up fine in the webpage. But I am unable to save the data to a file on the server encoded in UTF8 (simply trying to collect the submitted data). >> >> put "data.txt" into vfile >> open file vfile for utf8 text update >> put $_POST[firstname] & comma & $_POST[lastname] & comma & $_POST[country] & the time & return into vdata >> write vdata to file vfile at end >> close file vfile >> >> Data is getting saved, but in gibberish, not in kanji/utf8. >> >> Anyone see what I'm doing wrong? >> >> TIA >> >> Tim Selander >> Tokyo, Japan >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Oct 4 05:29:18 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 4 Oct 2018 11:29:18 +0200 Subject: OT our shipping software is finally finished In-Reply-To: References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <6bda9101-5457-c07a-e982-fe6ead240557@sonic.net> Message-ID: <88A65862-56CE-4572-9B4B-23F0BDD2895A@m-r-d.de> The complete project started in February this year. I?ve started with our DHL module in February and finished that at the end of March. The DHL part was easier, as the app does not have to create the label. The app fetches the shipping data the same way as the Trans-o-Flex module does, but then writes the shipping information as XML file into a folder which is monitored by a DHL polling software. This polling software is provided by DHL. The DHL polling software then transmits the data to DHL and if the shipment data is correct, then the software receives the shipping label from DHL as PDF and prints that out. At the end of the day the DHL polling software fetches the shipping data for all parcels and pallets from DHL and stores that information in our database. (We need that data for tracking and to export it to our webserver. I started with the Trans-o-Flex module early April. It began with studying the tech papers of Trans-o-Flex, fetching needed information and evaluating the needs of my colleagues. For Trans-o-Flex we used a separate program and I wanted to make the change from the old to the new app as easy as possible for them . Programming started late April. I worked on that app about 5 hours a day, sometimes more somtimes less. First shipments were done with the new app from the 18th of September. The complete switch from the old Trans-o-Flex app to the new app was around the 25th of September. Since the 18th we shipped about 739 Trans-o-Flex parcels/pallets with our new app. So all in all the complete app took about 8 month in research and development. Currently i am reviewing my comments in the scripts to make them more ?understandable? for others in case this is needed in the future. > Am 04.10.2018 um 02:11 schrieb Tom Glod via use-livecode : > > All the best and tons of sales. > Unfortunately it?s an in-house tool and there are no plans to sell it. Regards, Matthias > Cheers > > > > On Wed, Oct 3, 2018 at 8:07 PM Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 10/03/2018 03:33 PM, Matthias Rebbe via use-livecode wrote: >> >>> This is by far the most extensive app i?ve created with Livecode so far >> and i am really happy that it was finally approved by Trans-o-Flex. >> >> Congratulations. I know this has been a long rocky road. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Thu Oct 4 07:38:41 2018 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 4 Oct 2018 12:38:41 +0100 Subject: Script Editor Unusable on Windows In-Reply-To: <0c6801d45b34$b2033a50$1609aef0$@themartinz.com> References: <84F95D6F-8162-4843-A9FB-AC7B21C38B79@m-r-d.de> <026c9ad8-a937-7be6-7fcc-94a576694827@pair.com> <3CAA2699-E70E-45A0-B501-A8CEA8D05139@iotecdigital.com> <0c6801d45b34$b2033a50$1609aef0$@themartinz.com> Message-ID: Clarence, I wish I could but I am afraid of adding plugins and this becoming slow as molasses. :-( I just lost a little button on a card because I clicked another control, pressed delete, but there is a lag in the IDE so it missed me switching controls and deleted the wrong one. If I program really slowly (and I am a slow coder already) then it mostly works... best andre On Wed, Oct 3, 2018 at 5:19 PM Clarence Martin via use-livecode < use-livecode at lists.runrev.com> wrote: > You may want to look at The LCStackBrowser Plugin. It has the ability to > save stacks automatically. I have used this for years now. There were some > problems recently when the LiveCode version went from 7 to 8 but the author > has fixed that. > > Sincerely, > > Clarence Martin > Email: Chipsm at themartinz.com > Cell: 626 696-5561 > > -----Original Message----- > From: use-livecode On Behalf Of > Bob > Sneidar via use-livecode > Sent: Wednesday, October 03, 2018 8:50 AM > To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: Script Editor Unusable on Windows > > Early on when LC was experiencing a CTD issue (this was around v6) I wrote > code into my stacks that saved every time I closed a stack. I also save > code > incredibly frequently, sometimes every few line edits. I maintain local and > offsite backups of what I do so I can revert, and I have a versioning local > backup running automatically so I can recover a version earlier in the day, > in case I completely bork my code, then save it. > > Still, this is a pain and needs to be sussed out, but as you say, producing > a reliable recipe is nearly impossible, because by the time you notice it, > it's about to go nuclear. > > Bob S > > > > On Oct 3, 2018, at 05:19 , Andre Garzia via use-livecode > wrote: > > > > Dragging controls from the palettes, launching the inspectors. > > Everything hangs all the time. Just today, I lost an hour of work > > because LC crashed while I was accepting an script. Poof, the IDE went > > unresponsive and then I had to close it. This happens all the time. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From andre at andregarzia.com Thu Oct 4 07:45:59 2018 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 4 Oct 2018 12:45:59 +0100 Subject: OT our shipping software is finally finished In-Reply-To: <88A65862-56CE-4572-9B4B-23F0BDD2895A@m-r-d.de> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <6bda9101-5457-c07a-e982-fe6ead240557@sonic.net> <88A65862-56CE-4572-9B4B-23F0BDD2895A@m-r-d.de> Message-ID: Matthias, Congratulations on shipping a shipping software! I think that LiveCode is the best thing under the sun to build Desktop apps. I wish people were not so enthralled with mobile these days because Desktop stuff rocks. Best andre On Thu, Oct 4, 2018 at 10:30 AM Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > The complete project started in February this year. > I?ve started with our DHL module in February and finished that at the end > of March. The DHL part was easier, as the app does not have to create the > label. The app fetches the shipping data the same way as the Trans-o-Flex > module does, but then writes the shipping information as XML file into a > folder which is monitored by a DHL polling software. This polling software > is provided by DHL. The DHL polling software then transmits the data to DHL > and if the shipment data is correct, then the software receives the > shipping label from DHL as PDF and prints that out. At the end of the day > the DHL polling software fetches the shipping data for all parcels and > pallets from DHL and stores that information in our database. (We need that > data for tracking and to export it to our webserver. > > I started with the Trans-o-Flex module early April. It began with studying > the tech papers of Trans-o-Flex, fetching needed information and evaluating > the needs of my colleagues. For Trans-o-Flex we used a separate program > and I wanted to make the change from the old to the new app as easy as > possible for them . Programming started late April. I worked on that app > about 5 hours a day, sometimes more somtimes less. First shipments were > done with the new app from the 18th of September. The complete switch from > the old Trans-o-Flex app to the new app was around the 25th of September. > Since the 18th we shipped about 739 Trans-o-Flex parcels/pallets with our > new app. > > So all in all the complete app took about 8 month in research and > development. > Currently i am reviewing my comments in the scripts to make them more > ?understandable? for others in case this is needed in the future. > > > > Am 04.10.2018 um 02:11 schrieb Tom Glod via use-livecode < > use-livecode at lists.runrev.com>: > > > > All the best and tons of sales. > > > Unfortunately it?s an in-house tool and there are no plans to sell it. > > Regards, > > Matthias > > > > Cheers > > > > > > > > On Wed, Oct 3, 2018 at 8:07 PM Mark Wieder via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> On 10/03/2018 03:33 PM, Matthias Rebbe via use-livecode wrote: > >> > >>> This is by far the most extensive app i?ve created with Livecode so far > >> and i am really happy that it was finally approved by Trans-o-Flex. > >> > >> Congratulations. I know this has been a long rocky road. > >> > >> -- > >> Mark Wieder > >> ahsoftware at gmail.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From andre at andregarzia.com Thu Oct 4 07:59:51 2018 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 4 Oct 2018 12:59:51 +0100 Subject: [off] Do me a solid In-Reply-To: References: <99a06e0c-38e7-7ad8-d23b-891390ddcd8d@sonic.net> Message-ID: Friends, I have been silent for a while but I am now getting more active here again. I've recently moved to London so if people want to go to a Pub or organize an LC meetup, I am game. Now back to business, I am an active member of the decentralized web movement and more visible through my efforts on the Secure Scuttlebutt[1] community and the Mozilla experiment called Libdweb[2]. I was at the Decentralized Web Summit this year where Tim Berners-Lee was present promoting Solid. You can see all recorded sessions from the event[3] or jump straight to his video about solid[4]. BELOW YOU WILL READ SOME STRONG PERSONAL OPINIONS: In my humble opinion the dweb and dapp movement can be categorized into two large camps and most solutions/communities tend to fall under one or another, even though some span both camps. One camp is the "solution with economic incentives" and in this category we place all the cryptocurrency backed stuff, all those little blockchains with tokens, ICOs, DAGs, cryptolattice structure marvels that no-one uses but everyone hopes to get rich with. This is where the money is and most of the stuff is vaporware made to promote ICOs, foster speculation and make someone (who is usually not you) rich. Still, there is good stuff in here, bitcoin is pretty nice as a "currency", dogecoin is fun to play with but no one will get rich, ethereum has a nice momentum. The other much less visible camp, which is the one I am mostly interested in, is the "solution without economic incentive" where people are building stuff that not necessarily relies on blockchains or tokens or any form of currency. It is usually peer-to-peer stuff that, by design, prevents censorship, tracking and in some cases makes really hard to monetize anything. In this camp you'll find Secure Scuttlebutt, IPFS, Dat, Beaker Browser (which is DAT). Some solutions span both camps such as the offerings by protocol labs, where IPFS, libp2p, etc fall into the second camp but their filecoin fall into the first one, and that is OK. Or holochain which provides a platform for you to build your on decentralized stuff even with coins and tokens. During one of the online conferences we had for LiveCode Global this year, I presented a TOY version of a Scuttlebutt-like protocol that allowed people to build decentralized desktop apps with LiveCode. If the HQ accept, they could share this video with all the community, it gives a nice little toy intro to the concepts. Anyway, there is a ton of stuff happening in this space, solid is not the only game in town. Best Andre [1]: https://scuttlebutt.nz [2]: https://github.com/mozilla/libdweb [3]: https://decentralizedweb.net/videos/ [4]: https://decentralizedweb.net/videos/talk-solid-empowering-people-through-choice/ On Thu, Oct 4, 2018 at 12:24 AM Kay C Lan via use-livecode < use-livecode at lists.runrev.com> wrote: > On Sun, Sep 30, 2018 at 10:11 AM Mark Wieder via use-livecode > wrote: > > > > > > Is this the same Tim Berners-Lee who, in his capacity as Director of the > > World Wide Web Consortium, a year ago overruled all objections and added > > standardized DRM to the open web standards? Sided with trillions of > > dollars worth of corporate muscle against accessibility groups, security > > experts, browser startups, public interest groups, human rights groups, > > archivists, research institutions, etc? > > > > Pass. > Unfortunately I think the Free Software Foundation backed the wrong > horse. Whilst it's mission to promote computer user freedom is > commendable, doing it via OSS in a world where the Internet is driven > by trillions of dollars, web search engines are driven by billions of > dollars and both of these are influenced by media giants and > governments with political agendas almost make the fact that you have > OSS on your device irrelevant. I think individual freedom, let alone > computer user freedom, would better be served if, like linux, there > were a couple of versions of the WWW, some of which were truly Open > Source. Although I use DuckDuckGo in deference to Google, I think > we'd all be better off with a few viable OS Web Search Engines - the > current ones are too small. > > I think in the future we'll look back and realise that having a purely > open Search Engine and purely open Internet will be far more important > to us than whether the code of the app we are using, to take advantage > of what is available across the internet, is open or closed. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. From selander at tkf.att.ne.jp Thu Oct 4 08:46:12 2018 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 04 Oct 2018 21:46:12 +0900 Subject: Writing a UTF8 text file to server -- solved In-Reply-To: <5BB5B7B7.8000102@tkf.att.ne.jp> References: <5BB5A38F.90406@tkf.att.ne.jp> <65A54F2C-8302-4BB1-9DA7-438D0562B009@elementarysoftware.com> <5BB5B7B7.8000102@tkf.att.ne.jp> Message-ID: <5BB60B94.5030603@tkf.att.ne.jp> Just for posterity... Tried many combinations of various commands.... opening the file as a binfile instead of a text file solved my problem Changed: open file vfile for utf8 text update To: open file vfile for binary update At which point the same command: write vdata to file vfile at end properly saved the data as utf8/kanji to the file on the server. All's well that ends well. Tim Selander Tokyo, Japan On 2018.10.04 15:48, Tim Selander via use-livecode wrote: > Hi Scott, > > Added info; I have charset=UTF-8" ?> at the top of the web page source. > > Then, I only found outputTextEncoding in the dictionary. It said > it only works with CGI (server), put when I put: > set the outputTextEncoding to "utf-8" > > into the script before dealing with the $_POST array, it broke > the Kanji on the web page itself. > > Googling turned up info on the textEncode function, but this > script still results with a saved file of gibberish and not Kanji. > > Changed the script to this: > put $_POST[firstname] --(Results in Kanji name to web page) > put "data.txt" into vfile > open file vfile for utf8 text update > put textEncode($_POST[firstname], "UTF-8") into vdata > write vdata to file vfile at end > close file vfile > > but still get a file with broken kanji. > > Any hints? > > Tim > > > > > On 2018/10/04 15:08, scott--- via use-livecode wrote: >> Hello Tim, >> >> Did you look at the textEncode function? >> >> ? >> Scott Morrow >> >>> On Oct 3, 2018, at 10:22 PM, Tim Selander via use-livecode >>> wrote: >>> >>> I am using Livecode Server on Livecode's hosting plan. >>> >>> Taking my first stab at a web response form. I am getting the >>> data from $_POST fine, and when I simply do something like: >>> put $_POST[firstname] >>> >>> the UTF8/Kanji word shows up fine in the webpage. But I am >>> unable to save the data to a file on the server encoded in >>> UTF8 (simply trying to collect the submitted data). >>> >>> put "data.txt" into vfile >>> open file vfile for utf8 text update >>> put $_POST[firstname] & comma & $_POST[lastname] & comma & >>> $_POST[country] & the time & return into vdata >>> write vdata to file vfile at end >>> close file vfile >>> >>> Data is getting saved, but in gibberish, not in kanji/utf8. >>> >>> Anyone see what I'm doing wrong? >>> >>> TIA >>> >>> Tim Selander >>> Tokyo, Japan >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Thu Oct 4 09:21:05 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 4 Oct 2018 13:21:05 +0000 Subject: Modern Mobile Progress Bar Message-ID: Is there any way to get color to show on a native scrollbar (used as a progress bar for a download) on mobile? It show up with background fill black with barely visible thumbnail blue going across, changing the color in IDE has no effect on mobile. I think there is a mobile control, but as far I can tell , it always in relation to scrolling some other object, not a "standalone" progress bar. The native scroll bar it pretty "ugly" and I would like the make the UI bit close to what people are used to seeing. [Side note: My goodness! I am using a function from the days of Scott Raney, found in the first MetaCard IDE, 20 years ago... and it still works Ha! How's that for xTalk viability! ] But, how I would upgrade to modern UI? This was always so simple: *command*showProgress pURL, pStatus *-- this is the status callback message which gets called regularly during the download* *-- pStatus will show some initialisation messages, then* *-- loading,bytesReceived,bytesTotal* *-- using a graphical progress bar instead* *-- ths first time this is called, find the total number of bytes that are to be downloaded* *-- use this info to set the span of the progress bar* *-- wait until the download info is being received* *if* thenumberofitemsinpStatus = 3*then* *if* thevisibleofscrollbar"Progressbar"= false*then* *put*thelastitemofpStatus intotTotalBytes *set*thestartValueofscrollbar"Progressbar"to0 *set*theendValueofscrollbar"Progressbar"totTotalBytes *show*scrollbar"Progressbar" *end* *if* *set*thethumbPositionofscrollbar"Progressbar"toitem2ofpStatus *end* *if* *-- better text information* *if* thenumberofitemsinpStatus = 3*then* *put*item2ofpStatus intotBytesReceived *put*item3ofpStatus intotTotalBytes *-- this gives very large numbers that are not easily read, so convert to KB* *put*tBytesReceived div1024intotKBreceived *put*tTotalBytes div1024intotTotalKB *-- calculate speed* *put*theseconds- sDownloadStart intotElapsedSeconds *if* tElapsedSeconds = 0*then* *-- make sure we don't divide by zero at the start* *put*"unknown"intotKBperSecond *else* *put*round(tKBreceived / tElapsedSeconds, 1) intotKBperSecond *end* *if* *put*"Received (KB): "& tab& tKBreceived &cr& "Of Total (KB: "& tab& tTotalKB & cr&\ "At KB/sec: "& tab& tKBperSecond intofld"ProgressField" *end* *if* *end*showProgress BR From iphonelagi at gmail.com Thu Oct 4 10:01:00 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Thu, 4 Oct 2018 15:01:00 +0100 Subject: Thanks to Hermann Hoch... In-Reply-To: References: <5EF5F101-9B81-4779-88D9-F08364D269D5@dsa-net.dk> <94de06f4-91b1-456e-ad93-deda7a126004@Spark> Message-ID: I'll second that emotion .... they're Smokin (pun intended) Thanks Hermann. Lagi On Wed, 3 Oct 2018 at 15:23, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Though I haven't used them yet, I agree...its great for the community. > Thanks Hermann > > On Wed, Oct 3, 2018 at 8:35 AM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Couldn?t agree more. Lots of useful stacks and widgets that push the > > envelope of what is possible. > > > > Thanks, > > Brian > > On Oct 3, 2018, 6:43 AM -0400, Michael Kristensen via use-livecode < > > use-livecode at lists.runrev.com>, wrote: > > > ?for all the wonderful and wellcraftet stacks you share so generously > > with us! > > > > > > Michael > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Thu Oct 4 12:56:25 2018 From: paul at researchware.com (Paul Dupuis) Date: Thu, 4 Oct 2018 12:56:25 -0400 Subject: Window and screen management: windowBoundingRect Message-ID: I am writing some code to intelligently deal with a multi-window application for people with multiple monitors. These are things like remembering the last window position when quitting and if when starting up that position was on a secondary or more monitor, positioning the window to the main monitor. However, I am now trying to deal with window minimization or maximization. The windowBoundingRect global property controls the bounds of a window when maximized, but this (in LC9.0.1) is a singular property. Shouldn't there be a version called the windowBoundingRect[s] that lets you set the bounds on monitors other than the default or is it just assumed that on all monitors other than the default that the windowBoundingRect equals the screenRect for that monitor? Has anyone out there done a library for window management on multiple monitor setups? From tom at makeshyft.com Thu Oct 4 14:04:44 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 4 Oct 2018 14:04:44 -0400 Subject: Will it ever be possible place controls over browser widget? Message-ID: Hi, Ehh.....Does anyone know if it will ever be possible to place controls on layers above a browser widget? Thanks, Tom From bobsneidar at iotecdigital.com Thu Oct 4 14:07:48 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Oct 2018 18:07:48 +0000 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: Message-ID: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> I went through that a while back. I was trying to create a web based Kiosk app, that a hot-click could cancel, so we could get back to the desktop. I never got it to work. Once the browser object had control, nothing else would respond. Bob S > On Oct 4, 2018, at 11:04 , Tom Glod via use-livecode wrote: > > Hi, > > Ehh.....Does anyone know if it will ever be possible to place controls on > layers above a browser widget? > > Thanks, > > Tom From dunbarx at aol.com Thu Oct 4 14:25:49 2018 From: dunbarx at aol.com (dunbarxx) Date: Thu, 4 Oct 2018 13:25:49 -0500 (CDT) Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: Message-ID: <1538677549136-0.post@n4.nabble.com> Hi. Odd, I tried this with other widgets overlain by a button, and a mouseUp message was generated without issue anywhere I clicked on the button. But with a browser widget, the message is generated only if the extent of the button is outside the extent of the underlying widget. How do it know? Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From tom at makeshyft.com Thu Oct 4 14:26:14 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 4 Oct 2018 14:26:14 -0400 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> Message-ID: oh yeah i know that right now thats the case....i'm asking if anyone knows if thats a temporary or permanent situation. On Thu, Oct 4, 2018 at 2:08 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I went through that a while back. I was trying to create a web based Kiosk > app, that a hot-click could cancel, so we could get back to the desktop. I > never got it to work. Once the browser object had control, nothing else > would respond. > > Bob S > > > > On Oct 4, 2018, at 11:04 , Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, > > > > Ehh.....Does anyone know if it will ever be possible to place controls on > > layers above a browser widget? > > > > Thanks, > > > > Tom > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Thu Oct 4 15:00:52 2018 From: dunbarx at aol.com (dunbarxx) Date: Thu, 4 Oct 2018 14:00:52 -0500 (CDT) Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> Message-ID: <1538679652178-0.post@n4.nabble.com> "...But with a browser widget, the message is generated only if the extent of the button is outside the extent of the underlying widget. I may not have been clear. If I click on a portion of the overlying button that is outside the rect of the underlying widget, then a mouseUp message is generated. If I click on a portion of the button that is inside the widget rect, no message, Again, how do it know? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From matthias_livecode_150811 at m-r-d.de Thu Oct 4 15:49:28 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 4 Oct 2018 21:49:28 +0200 Subject: OT our shipping software is finally finished In-Reply-To: References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <6bda9101-5457-c07a-e982-fe6ead240557@sonic.net> <88A65862-56CE-4572-9B4B-23F0BDD2895A@m-r-d.de> Message-ID: > Am 04.10.2018 um 13:45 schrieb Andre Garzia >: > > I think that LiveCode is the best thing under the sun to build Desktop apps. I wish people were not so enthralled with mobile these days because Desktop stuff rocks. Andre, i second that. The possibility to create mobile apps with LC is nice and the progress from the beginning of revMobile to the current state is remarkable. But creating Desktop apps with LC and the Livecode Server stuff is awesome and by far the best and amazing thing i met in programming except mTropoplis, although that was buggy. But that?s an other story. Btw.: Your fon.nu site has a dead link to your fon.nu project at Bitbucket. Where is the new home of the project? Regards, Matthias From ahsoftware at sonic.net Thu Oct 4 16:04:10 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 4 Oct 2018 13:04:10 -0700 Subject: OT our shipping software is finally finished In-Reply-To: References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <6bda9101-5457-c07a-e982-fe6ead240557@sonic.net> <88A65862-56CE-4572-9B4B-23F0BDD2895A@m-r-d.de> Message-ID: <94d5c8ba-b4c7-633a-0774-96c09cd8b236@sonic.net> On 10/04/2018 04:45 AM, Andre Garzia via use-livecode wrote: > I think that LiveCode is > the best thing under the sun to build Desktop apps. I wish people were not > so enthralled with mobile these days because Desktop stuff rocks. Amen to that. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Thu Oct 4 16:06:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Oct 2018 20:06:41 +0000 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: <1538679652178-0.post@n4.nabble.com> References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> <1538679652178-0.post@n4.nabble.com> Message-ID: The browser object sits atop everything else, or rather it is "drawn" over everything else. Whatever it is not drawn over is still clickable. That is how it was explained to me some time back. Bob S > On Oct 4, 2018, at 12:00 , dunbarxx via use-livecode wrote: > > "...But with a browser widget, the message is generated only if the extent of > the button is outside the extent of the underlying widget. > > I may not have been clear. If I click on a portion of the overlying button > that is outside the rect of the underlying widget, then a mouseUp message is > generated. If I click on a portion of the button that is inside the widget > rect, no message, > > Again, how do it know? > > Craig From rdimola at evergreeninfo.net Thu Oct 4 16:13:04 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 4 Oct 2018 16:13:04 -0400 Subject: OT our shipping software is finally finished In-Reply-To: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> Message-ID: <005801d45c1e$ab409e20$01c1da60$@net> Congrats! Nice to see LC out in the field. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Matthias Rebbe via use-livecode Sent: Wednesday, October 03, 2018 6:34 PM To: How to use LiveCode Cc: Matthias Rebbe Subject: OT our shipping software is finally finished Hi, with a little proud i am happy to say that after many weeks of "blood, sweat and tears" i?ve finally finished our Windows software for DHL and Trans-o-flex shipments. This software is used by our own and replaces a 3rd party software. There are several reasons, why we decided to replace the software. These are the main features: By entering the invoice number the software fetches the corresponding shipping address and some other additional information like cash on delivery amount (if applicable) from the database of our ERP software and creates a shipping label, which then is printed onto a thermal printer. For Trans-o-Flex the shipping labels (including a 1D barcode 2of5 interleaved and a qrCode) are completely built with the app. The qrCode is created with a slightly modified version of the Livecode qrCode library. The modified library allows to specify the version number the created qrCode should have. This is important, as the carrier Trans-o-Flex only allows version 14 qrCodes for their shipping labels. The original LC library selects the version according to the data the qrCode contains. If you are interested in the modified library, you?ll find it here I?ve attached it to ?bug? report 21428. The 1D barcode is created with a 3rd party Windows SDK from Tec-It . Currently the SDK is called from a .vbs script.The .vbs file is created dynamically. The future plan is to create a widget which calls the SDK. But due to my lack of knowledge about widget i had to choose the .vbs way for now. After successful printing, the shipping data is stored into a database. At the end of the day, the shipping data of all parcels and pallets is exported from database to an XML file, which is then uploaded to the sftp server of the shipment carrier. The tracking number of each shipment, the according invoice and customer number are exported also to our web server. This allows our customers to query the tracking numbers by entering their invoice and customer number. The software allows also the export a PDF of all shipments of a day. I?ve uploaded 3 screenshots of the app if you?re interested. Please don?t laugh about the user interface. The design does not match the current Windows design nor is it state of the art. Our users wanted it simple and ?readable? and no small buttons or text. https://mr.on-rev.com/menu.png https://mr.on-rev.com/shipping.png https://mr.on-rev.com/label.png This is by far the most extensive app i?ve created with Livecode so far and i am really happy that it was finally approved by Trans-o-Flex. Matthias _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Thu Oct 4 16:14:16 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 4 Oct 2018 20:14:16 +0000 Subject: Exiting a repeat loop Message-ID: I have little game where the user runs a repeat loop. And I want to let the user stop at any time. So what I do set a local flag. Here is the simple logic ---------- local sStopFlag *on mouseup* * repeat* sCycles times * if* sStopFlag=1*then* * exit* *repeat* ** put "0" into sStopFlag # reinitialize in case they want to continue** * end* *if* * ** #SNIP -- Cool stuff happens on screen* *end mouseup* *#and another button that sets the flag* *# button "pause" * *on mouseup* * put 1 into sStopFlag* *end mouseup* *# but on mobile, the user can't exit repeat until she clicks the "pause" multiple time.* *What the secret on exit a running repeat loop?* *Do add a little idle time? * *BR * * * * * * * * * From brian at milby7.com Thu Oct 4 16:24:05 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 4 Oct 2018 16:24:05 -0400 Subject: Exiting a repeat loop In-Reply-To: References: Message-ID: <1f6ca891-fcd3-40d2-a8b8-a4ba558a20bf@Spark> Yes, probably need a wait with messages inside the loop. Also the reset probably needs to go above the exit. Thanks, Brian On Oct 4, 2018, 4:14 PM -0400, Sannyasin Brahmanathaswami via use-livecode , wrote: > I have little game where the user runs a repeat loop. And I want to let > the user stop at any time. So what I do set a local flag. > > Here is the simple logic > > ---------- > > local sStopFlag > > *on mouseup* > > * repeat* sCycles times > > * if* sStopFlag=1*then* > > * exit* *repeat* > > > ** put "0" into sStopFlag # reinitialize in case they want to > continue** > > * end* *if* > > * ** #SNIP -- Cool stuff happens on screen* > > *end mouseup* > > *#and another button that sets the flag* > > *# button "pause" > * > > *on mouseup* > > * put 1 into sStopFlag* > > *end mouseup* > > *# but on mobile, the user can't exit repeat until she clicks the > "pause" multiple time.* > > *What the secret on exit a running repeat loop?* > > *Do add a little idle time? > * > > *BR > * > > * > * > > * > * > > * > * > > * > * > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smaclean at madmansoft.com Thu Oct 4 16:33:11 2018 From: smaclean at madmansoft.com (Stephen MacLean) Date: Thu, 4 Oct 2018 16:33:11 -0400 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> Message-ID: If I remember correctly this is supposed to be ?change? at some point with infinite LC. In the mean time, you could overlay another html control over it and use it as a button. At least you used to be able to do that. Best, Steve > On Oct 4, 2018, at 2:26 PM, Tom Glod via use-livecode wrote: > > oh yeah i know that right now thats the case....i'm asking if anyone knows > if thats a temporary or permanent situation. > > On Thu, Oct 4, 2018 at 2:08 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I went through that a while back. I was trying to create a web based Kiosk >> app, that a hot-click could cancel, so we could get back to the desktop. I >> never got it to work. Once the browser object had control, nothing else >> would respond. >> >> Bob S >> >> >>> On Oct 4, 2018, at 11:04 , Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi, >>> >>> Ehh.....Does anyone know if it will ever be possible to place controls on >>> layers above a browser widget? >>> >>> Thanks, >>> >>> Tom >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Thu Oct 4 17:07:38 2018 From: dunbarx at aol.com (dunbarxx) Date: Thu, 4 Oct 2018 16:07:38 -0500 (CDT) Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> <1538679652178-0.post@n4.nabble.com> Message-ID: <1538687258411-0.post@n4.nabble.com> The browser object sits atop everything else, or rather it is "drawn" over everything else... Hmmm. OK,this even though the browser object sits in layer 1, and the overlying button sits in layer 2. So there is a breakdown in the layer paradigm? Messages are prevented from being generated if a browser widget rect encloses the clickLoc in any way. LC "knows" there is a widget there, eh? And reserves that rect against any and all messages. Hmmm. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From kee.nethery at elloco.com Thu Oct 4 17:17:00 2018 From: kee.nethery at elloco.com (kee nethery) Date: Thu, 4 Oct 2018 14:17:00 -0700 Subject: Exiting a repeat loop In-Reply-To: References: Message-ID: <9562EEBE-11A5-48F2-90BE-8ED3A516F23D@elloco.com> This might not work for you but, I put: if the optionkey is down then exit repeat end if So not trying to capture a specific event, just looking to see if a key is pressed down. What happens is that I put one of these within every repeat loop and when it hits one, it quickly dumps out of the repeat loop. Kee > On Oct 4, 2018, at 1:14 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > I have little game where the user runs a repeat loop. And I want to let > the user stop at any time. So what I do set a local flag. > > Here is the simple logic > > ---------- > > local sStopFlag > > *on mouseup* > > * repeat* sCycles times > > * if* sStopFlag=1*then* > > * exit* *repeat* > > > ** put "0" into sStopFlag # reinitialize in case they want to > continue** > > * end* *if* > > * ** #SNIP -- Cool stuff happens on screen* > > *end mouseup* > > *#and another button that sets the flag* > > *# button "pause" > * > > *on mouseup* > > * put 1 into sStopFlag* > > *end mouseup* > > *# but on mobile, the user can't exit repeat until she clicks the > "pause" multiple time.* > > *What the secret on exit a running repeat loop?* > > *Do add a little idle time? > * > > *BR > * > > * > * > > * > * > > * > * > > * > * > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 4 17:45:15 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Oct 2018 21:45:15 +0000 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: <1538687258411-0.post@n4.nabble.com> References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> <1538679652178-0.post@n4.nabble.com> <1538687258411-0.post@n4.nabble.com> Message-ID: <7135F6B1-8BCC-425F-9428-DD36AA2FA499@iotecdigital.com> I suspect all they did was take the old browser object and wrap it in a widget that it can respond to and send messages. The old browser was not on a layer per se. (Actually, nothing is, it's all smoke and mirrors). It would write or draw if you will to a rect on the screen, and once it did that, none of the "underlying" objects were accessible until the browser object was cleared. Bob S > On Oct 4, 2018, at 14:07 , dunbarxx via use-livecode wrote: > > The browser object sits atop everything else, or rather it is "drawn" over > everything else... > > Hmmm. > > OK,this even though the browser object sits in layer 1, and the overlying > button sits in layer 2. > So there is a breakdown in the layer paradigm? > > Messages are prevented from being generated if a browser widget rect > encloses the clickLoc in any way. LC "knows" there is a widget there, eh? > And reserves that rect against any and all messages. > > Hmmm. > > Craig From dunbarx at aol.com Thu Oct 4 18:04:56 2018 From: dunbarx at aol.com (dunbarxx) Date: Thu, 4 Oct 2018 17:04:56 -0500 (CDT) Subject: Will it ever be possible place controls over browser widget? In-Reply-To: <7135F6B1-8BCC-425F-9428-DD36AA2FA499@iotecdigital.com> References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> <1538679652178-0.post@n4.nabble.com> <1538687258411-0.post@n4.nabble.com> <7135F6B1-8BCC-425F-9428-DD36AA2FA499@iotecdigital.com> Message-ID: <1538690696908-0.post@n4.nabble.com> Bob. Overlying, no? And all objects are smoke and mirrors, in that they are chimeras that we "see", "drawn" on a "screen", when in reality they are just a list of certain transistors locked in a certain state. I get that widgets are different. But I do not like at all that they break fundamental rules. Who do they think they are, taking over real estate with air rights? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From brian at milby7.com Thu Oct 4 18:05:55 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 4 Oct 2018 18:05:55 -0400 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: <7135F6B1-8BCC-425F-9428-DD36AA2FA499@iotecdigital.com> References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> <1538679652178-0.post@n4.nabble.com> <1538687258411-0.post@n4.nabble.com> <7135F6B1-8BCC-425F-9428-DD36AA2FA499@iotecdigital.com> Message-ID: Native layers are drawn above all LC layers regardless of what layer the object is in. This would go for native buttons and other controls as well. An interesting experiment would be to try a native button over the browser widget. On desktop you can layer over the browser widget using a second stack that has transparency set appropriately and sits in front of the browser stack. Thanks, Brian On Oct 4, 2018, 5:45 PM -0400, Bob Sneidar via use-livecode , wrote: > I suspect all they did was take the old browser object and wrap it in a widget that it can respond to and send messages. The old browser was not on a layer per se. (Actually, nothing is, it's all smoke and mirrors). It would write or draw if you will to a rect on the screen, and once it did that, none of the "underlying" objects were accessible until the browser object was cleared. > > Bob S > > > > On Oct 4, 2018, at 14:07 , dunbarxx via use-livecode wrote: > > > > The browser object sits atop everything else, or rather it is "drawn" over > > everything else... > > > > Hmmm. > > > > OK,this even though the browser object sits in layer 1, and the overlying > > button sits in layer 2. > > So there is a breakdown in the layer paradigm? > > > > Messages are prevented from being generated if a browser widget rect > > encloses the clickLoc in any way. LC "knows" there is a widget there, eh? > > And reserves that rect against any and all messages. > > > > Hmmm. > > > > Craig > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Thu Oct 4 18:10:32 2018 From: jiml at netrin.com (Jim Lambert) Date: Thu, 4 Oct 2018 15:10:32 -0700 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: Message-ID: <23E9EF57-343D-4FA2-A5C6-04D0EB474473@netrin.com> > Does anyone know if it will ever be possible to place controls on > layers above a browser widget? I don?t know if that is in the works or when it may be available. But you might be able to kludge it now on desktop: 1- place the control (say, a button) that you want to position within the browser?s rect in a separate stack; 2- set the window shape of that stack to match the shape of the button; 3- position that ?button? stack on top of the browser widget that is in the underlain stack. I haven?t tried it but it may work. Jim Lambert From brahma at hindu.org Thu Oct 4 20:30:00 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 5 Oct 2018 00:30:00 +0000 Subject: Navigator 6.5 alpha 2 is out Message-ID: Just checking on installation: When you unzip, we get one folder. It has be to placed manually, like this ? /My Livecode /Plugin /Navigator_Behavior /Navigator Commands #inside Navigator_Behaviors rev_b_Actions.livecodescript Navigate.rev # if you don't get it right, the old 2.52. from LiveCode application folder loads. # About still shows 6.5. Alpha 1.... Do I have the right one? From hh at hyperhh.de Thu Oct 4 21:19:34 2018 From: hh at hyperhh.de (hh) Date: Fri, 5 Oct 2018 03:19:34 +0200 Subject: Will it ever be possible place controls over browser widget? Message-ID: <3B15FB1F-2BBF-45CB-A65D-22BE7FBDBB91@hyperhh.de> See my demo here: http://forums.livecode.com/viewtopic.php?p=152773#p152773 Overlays the widget while this plays a video. From hh at hyperhh.de Thu Oct 4 21:26:59 2018 From: hh at hyperhh.de (hh) Date: Fri, 5 Oct 2018 03:26:59 +0200 Subject: Exiting a repeat loop Message-ID: <4A4C18DC-E892-4BD1-856A-18740957D043@hyperhh.de> BR, you could try to "send in time" instead of a repeat loop. say use 32 millisecs. Then every action to stop has enough time to come in. From hh at hyperhh.de Thu Oct 4 21:46:56 2018 From: hh at hyperhh.de (hh) Date: Fri, 5 Oct 2018 03:46:56 +0200 Subject: Will it ever be possible place controls over browser widget? Message-ID: <6FEFB064-35A6-4A25-99F4-88550C0AE6D6@hyperhh.de> > Bob S. wrote: > I suspect all they did was take the old browser object and wrap > it in a widget that it can respond to and send messages. The widget is more than a simple wrapper. It is more comfortable and works (with the right settings) for most use cases too on linux. TMHO, it is one of the strongest tools available in LiveCode. By using JavaScript you have a FFI or, seen from the other side, a wonderful GUI to JavaScript of which others dream of. From tom at makeshyft.com Thu Oct 4 22:06:02 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 4 Oct 2018 22:06:02 -0400 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: <6FEFB064-35A6-4A25-99F4-88550C0AE6D6@hyperhh.de> References: <6FEFB064-35A6-4A25-99F4-88550C0AE6D6@hyperhh.de> Message-ID: HH .... that is the workaround I was going for.........thanks for the demo....proves my thesis and I feel great about going forward with that solution. On Thu, Oct 4, 2018 at 9:47 PM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Bob S. wrote: > > I suspect all they did was take the old browser object and wrap > > it in a widget that it can respond to and send messages. > > The widget is more than a simple wrapper. > > It is more comfortable and works (with the right settings) for > most use cases too on linux. > > TMHO, it is one of the strongest tools available in LiveCode. > By using JavaScript you have a FFI or, seen from the other side, > a wonderful GUI to JavaScript of which others dream of. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Thu Oct 4 23:00:43 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 4 Oct 2018 23:00:43 -0400 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: <6FEFB064-35A6-4A25-99F4-88550C0AE6D6@hyperhh.de> Message-ID: <0d1696bf-80f6-47f6-a302-64d7e6076884@Spark> Just tried a native Mac button over the browser widget. Clicks do get received, but the button is not drawn over the browser. The Mac native single line field will layer over/under the native button fine. And as expected, if you create a giant button and cover everything, then it is only responsive where it is not covered by a native layer control. -hh?s demo is the one I was remembering. Thanks, Brian On Oct 4, 2018, 10:06 PM -0400, Tom Glod via use-livecode , wrote: > HH .... that is the workaround I was going for.........thanks for the > demo....proves my thesis and I feel great about going forward with that > solution. > > > > On Thu, Oct 4, 2018 at 9:47 PM hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Bob S. wrote: > > > I suspect all they did was take the old browser object and wrap > > > it in a widget that it can respond to and send messages. > > > > The widget is more than a simple wrapper. > > > > It is more comfortable and works (with the right settings) for > > most use cases too on linux. > > > > TMHO, it is one of the strongest tools available in LiveCode. > > By using JavaScript you have a FFI or, seen from the other side, > > a wonderful GUI to JavaScript of which others dream of. > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Thu Oct 4 23:30:55 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 4 Oct 2018 20:30:55 -0700 Subject: Navigator 6.5 alpha 2 is out In-Reply-To: References: Message-ID: That looks like the correct file setup. And yes -- I forgot to update the splash screen in Navigator to say alpha 2. gc On Thu, Oct 4, 2018 at 5:30 PM Sannyasin Brahmanathaswami wrote: > Just checking on installation: > > When you unzip, we get one folder. > > It has be to placed manually, like this ? > > > /My Livecode > /Plugin > /Navigator_Behavior > /Navigator Commands #inside Navigator_Behaviors > rev_b_Actions.livecodescript > > Navigate.rev > > # if you don't get it right, the old 2.52. from LiveCode application > folder loads. > # About still shows 6.5. Alpha 1.... Do I have the right one? > > > > > > > > From harrison at all-auctions.com Fri Oct 5 09:21:48 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 5 Oct 2018 09:21:48 -0400 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: Message-ID: <1DA14B6A-301D-4CC9-A60B-B224BD81DB57@all-auctions.com> Hi Tom, How about dragging the widget off of the visible screen? You could create your own interface look for it, or for whatever you are trying to do, and have that send messages to the offscreen widget to process. Then send the results of the widget back to your graphic interface? It might be a good work around for you although it could be more work. Just my 2 cent ideas here. Rick > On Oct 4, 2018, at 2:04 PM, Tom Glod via use-livecode wrote: > > Hi, > > Ehh.....Does anyone know if it will ever be possible to place controls on > layers above a browser widget? > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Fri Oct 5 10:12:58 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 5 Oct 2018 14:12:58 +0000 Subject: Breakpoints Failing / Crashes Message-ID: breakpoint -- either entered by "red dot" or explicitly placed "breakpoint" in the code and frequently "non-observed" and just now had a crash are click the breakpoint dot (which was not working) and attempting to insert "breakpoint" anyone else having to trouble, Mac OS X , LC 9.0.1 stable (not really stable at all!) From dunbarx at aol.com Fri Oct 5 10:54:47 2018 From: dunbarx at aol.com (dunbarxx) Date: Fri, 5 Oct 2018 09:54:47 -0500 (CDT) Subject: Breakpoints Failing / Crashes In-Reply-To: References: Message-ID: <1538751287351-0.post@n4.nabble.com> Except that the "Red dot" breakpoints cannot be trusted at all, the "breakpoint" command has never failed in v8. or earlier. Must be a v9 issue, but I am surprised nobody has mentioned it till now. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From revolution at derbrill.de Fri Oct 5 13:32:15 2018 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Fri, 5 Oct 2018 19:32:15 +0200 Subject: [OT] My Kickstarter is live In-Reply-To: References: Message-ID: <8ED5E39C-40BE-4AB7-A610-C55137A0083B@derbrill.de> Hi list! As some of you have asked, here is the link to my Kickstarter campaign. https://www.kickstarter.com/projects/1283741654/puppet-prototyper If you go looking, you can see the fat man making a fool out of himself in the video as an instant gratification. :-) Cheers! Malte From jiml at netrin.com Fri Oct 5 17:30:01 2018 From: jiml at netrin.com (Jim Lambert) Date: Fri, 5 Oct 2018 14:30:01 -0700 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: Message-ID: > Herman wrote: > > See my demo here: > > http://forums.livecode.com/viewtopic.php?p=152773#p152773 > > Overlays the widget while this plays a video. So floating a second stack over the browser as I suggested does work and is beautifully demonstrated in Herman?s DemoVideoBack.livecode.zip. Jim Lambert From jiml at netrin.com Fri Oct 5 17:31:58 2018 From: jiml at netrin.com (Jim Lambert) Date: Fri, 5 Oct 2018 14:31:58 -0700 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: Message-ID: > Herman wrote: > > See my demo here: > > http://forums.livecode.com/viewtopic.php?p=152773#p152773 > > Overlays the widget while this plays a video. So floating a second stack over the browser as I suggested does work and is beautifully demonstrated in Herman?s DemoVideoBack.livecode.zip. Jim Lambert From tom at makeshyft.com Fri Oct 5 17:47:41 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 5 Oct 2018 17:47:41 -0400 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: Message-ID: Hi JIm, your suggestion could work but the floating window is quicker and does the job, thanks for giving it a whirl around. On Fri, Oct 5, 2018 at 5:32 PM Jim Lambert via use-livecode < use-livecode at lists.runrev.com> wrote: > > > Herman wrote: > > > > See my demo here: > > > > http://forums.livecode.com/viewtopic.php?p=152773#p152773 < > http://forums.livecode.com/viewtopic.php?p=152773#p152773> > > > > Overlays the widget while this plays a video. > > So floating a second stack over the browser as I suggested does work and > is beautifully demonstrated in Herman?s DemoVideoBack.livecode.zip. > > Jim Lambert > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Fri Oct 5 18:08:29 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 5 Oct 2018 15:08:29 -0700 Subject: "send" vs "dispatch" Message-ID: A word to the wise (mostly for IDE and extension developers): this will successfully compile: send "test" to button 1 with "ha" And then if the IDE is swallowing up your error messages (as it does for extensions like Navigator) it will even deliver the message "test" to button 1, just without any arguments, and then die silently. Outside of "rev" stacks, it will deliver the message without arguments and then throw an error saying there is no handler "with". I just checked, and amazingly this will work: on mouseUp send "test" to button 1 with "ha" end mouseUp on with answer "WTH?" end with But that's obviously unlikely. Far more likely if you're dealing with code you wrote before you became aware of "dispatch" (or maybe before "dispatch" was a thing -- I think Navigator predates LC 3.5) is that you decide to add an argument to a remote call and don't notice that it's a "send" rather than a "dispatch", and then spend half an hour trying to figure out why your arguments aren't passing through . From tom at makeshyft.com Fri Oct 5 18:15:19 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 5 Oct 2018 18:15:19 -0400 Subject: "send" vs "dispatch" In-Reply-To: References: Message-ID: I've written over 30 000 lines of code in livecode. used dispatch .... once. :) On Fri, Oct 5, 2018 at 6:09 PM Geoff Canyon via use-livecode < use-livecode at lists.runrev.com> wrote: > A word to the wise (mostly for IDE and extension developers): this will > successfully compile: > > send "test" to button 1 with "ha" > > And then if the IDE is swallowing up your error messages (as it does for > extensions like Navigator) it will even deliver the message "test" to > button 1, just without any arguments, and then die silently. > > Outside of "rev" stacks, it will deliver the message without arguments and > then throw an error saying there is no handler "with". I just checked, and > amazingly this will work: > > on mouseUp > send "test" to button 1 with "ha" > end mouseUp > > on with > answer "WTH?" > end with > > But that's obviously unlikely. Far more likely if you're dealing with > code you wrote before you became aware of "dispatch" (or maybe before > "dispatch" was a thing -- I think Navigator predates LC 3.5) is that you > decide to add an argument to a remote call and don't notice that it's a > "send" rather than a "dispatch", and then spend half an hour trying to > figure out why your arguments aren't passing through . > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bogdanoff at me.com Fri Oct 5 18:16:19 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 05 Oct 2018 15:16:19 -0700 Subject: "send" vs "dispatch" In-Reply-To: References: Message-ID: <503AA8D3-32AE-4048-BBFE-FAB64E08785C@me.com> I?m finding it?s best to do this when you ?send? and have a parameter: send ?test ha? to button 1 Peter Bogdanoff ArtsInteractive > On Oct 5, 2018, at 3:08 PM, Geoff Canyon via use-livecode wrote: > > A word to the wise (mostly for IDE and extension developers): this will > successfully compile: > > send "test" to button 1 with "ha" > > And then if the IDE is swallowing up your error messages (as it does for > extensions like Navigator) it will even deliver the message "test" to > button 1, just without any arguments, and then die silently. > > Outside of "rev" stacks, it will deliver the message without arguments and > then throw an error saying there is no handler "with". I just checked, and > amazingly this will work: > > on mouseUp > send "test" to button 1 with "ha" > end mouseUp > > on with > answer "WTH?" > end with > > But that's obviously unlikely. Far more likely if you're dealing with > code you wrote before you became aware of "dispatch" (or maybe before > "dispatch" was a thing -- I think Navigator predates LC 3.5) is that you > decide to add an argument to a remote call and don't notice that it's a > "send" rather than a "dispatch", and then spend half an hour trying to > figure out why your arguments aren't passing through . > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Fri Oct 5 18:16:23 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 5 Oct 2018 18:16:23 -0400 Subject: "send" vs "dispatch" In-Reply-To: References: Message-ID: <338c58e1-08d9-49a5-8031-676038757ca4@Spark> There is a PR to change this: https://github.com/livecode/livecode/pull/6479 Will add args to send and call. Thanks, Brian On Oct 5, 2018, 6:09 PM -0400, Geoff Canyon via use-livecode , wrote: > A word to the wise (mostly for IDE and extension developers): this will > successfully compile: > > send "test" to button 1 with "ha" > > And then if the IDE is swallowing up your error messages (as it does for > extensions like Navigator) it will even deliver the message "test" to > button 1, just without any arguments, and then die silently. > > Outside of "rev" stacks, it will deliver the message without arguments and > then throw an error saying there is no handler "with". I just checked, and > amazingly this will work: > > on mouseUp > send "test" to button 1 with "ha" > end mouseUp > > on with > answer "WTH?" > end with > > But that's obviously unlikely. Far more likely if you're dealing with > code you wrote before you became aware of "dispatch" (or maybe before > "dispatch" was a thing -- I think Navigator predates LC 3.5) is that you > decide to add an argument to a remote call and don't notice that it's a > "send" rather than a "dispatch", and then spend half an hour trying to > figure out why your arguments aren't passing through . > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Fri Oct 5 18:18:23 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 5 Oct 2018 18:18:23 -0400 Subject: "send" vs "dispatch" In-Reply-To: <338c58e1-08d9-49a5-8031-676038757ca4@Spark> References: <338c58e1-08d9-49a5-8031-676038757ca4@Spark> Message-ID: cooooooooool!!!! That is very useful indeed. On Fri, Oct 5, 2018 at 6:16 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > There is a PR to change this: > https://github.com/livecode/livecode/pull/6479 > > Will add args to send and call. > > Thanks, > Brian > On Oct 5, 2018, 6:09 PM -0400, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > A word to the wise (mostly for IDE and extension developers): this will > > successfully compile: > > > > send "test" to button 1 with "ha" > > > > And then if the IDE is swallowing up your error messages (as it does for > > extensions like Navigator) it will even deliver the message "test" to > > button 1, just without any arguments, and then die silently. > > > > Outside of "rev" stacks, it will deliver the message without arguments > and > > then throw an error saying there is no handler "with". I just checked, > and > > amazingly this will work: > > > > on mouseUp > > send "test" to button 1 with "ha" > > end mouseUp > > > > on with > > answer "WTH?" > > end with > > > > But that's obviously unlikely. Far more likely if you're dealing with > > code you wrote before you became aware of "dispatch" (or maybe before > > "dispatch" was a thing -- I think Navigator predates LC 3.5) is that you > > decide to add an argument to a remote call and don't notice that it's a > > "send" rather than a "dispatch", and then spend half an hour trying to > > figure out why your arguments aren't passing through . > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Fri Oct 5 19:16:49 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 5 Oct 2018 16:16:49 -0700 Subject: "send" vs "dispatch" In-Reply-To: References: Message-ID: On 10/05/2018 03:15 PM, Tom Glod via use-livecode wrote: > I've written over 30 000 lines of code in livecode. > > used dispatch .... once. :) Dispatch is awesome. The only time I use 'send' any more is when I need the 'in time' form. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Fri Oct 5 19:18:17 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 5 Oct 2018 16:18:17 -0700 Subject: "send" vs "dispatch" In-Reply-To: References: Message-ID: On 10/05/2018 03:08 PM, Geoff Canyon via use-livecode wrote: > on with > answer "WTH?" > end with I find that quite disturbing. But I quite agree with the answer -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Fri Oct 5 21:29:26 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 5 Oct 2018 18:29:26 -0700 Subject: "send" vs "dispatch" In-Reply-To: References: Message-ID: Ha -- there are about 7,000 lines of code in Navigator -- I think that means I've written about...70,000 lines of code? :-) But in any case, there are 80 instances of Dispatch and 63 instances of Send in Navigator. My next step I think is to learn more about how Sublime Text handles find and replace across multiple files, because every instance of Send that doesn't involve a time delay is going to become a dispatch. On Fri, Oct 5, 2018 at 3:15 PM Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > I've written over 30 000 lines of code in livecode. > > used dispatch .... once. :) > From gcanyon at gmail.com Fri Oct 5 21:31:03 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 5 Oct 2018 18:31:03 -0700 Subject: "send" vs "dispatch" In-Reply-To: <503AA8D3-32AE-4048-BBFE-FAB64E08785C@me.com> References: <503AA8D3-32AE-4048-BBFE-FAB64E08785C@me.com> Message-ID: If you have multiple parameters, dispatch is easier, cleaner, and safer. So even if I don't have parameters, unless I need a time delay I use dispatch. Also, you can use dispatch function to call functions. gc On Fri, Oct 5, 2018 at 3:16 PM Peter Bogdanoff via use-livecode < use-livecode at lists.runrev.com> wrote: > I?m finding it?s best to do this when you ?send? and have a parameter: > > send ?test ha? to button 1 > > > Peter Bogdanoff > ArtsInteractive > From gcanyon at gmail.com Fri Oct 5 21:35:43 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 5 Oct 2018 18:35:43 -0700 Subject: "send" vs "dispatch" In-Reply-To: <338c58e1-08d9-49a5-8031-676038757ca4@Spark> References: <338c58e1-08d9-49a5-8031-676038757ca4@Spark> Message-ID: Is there a benefit to adding parameters to send? Or does this just bring it into parity/redundancy with dispatch? On Fri, Oct 5, 2018 at 3:16 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > There is a PR to change this: > https://github.com/livecode/livecode/pull/6479 > > Will add args to send and call. > > Thanks, > Brian > On Oct 5, 2018, 6:09 PM -0400, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > A word to the wise (mostly for IDE and extension developers): this will > > successfully compile: > > > > send "test" to button 1 with "ha" > > > > And then if the IDE is swallowing up your error messages (as it does for > > extensions like Navigator) it will even deliver the message "test" to > > button 1, just without any arguments, and then die silently. > > > > Outside of "rev" stacks, it will deliver the message without arguments > and > > then throw an error saying there is no handler "with". I just checked, > and > > amazingly this will work: > > > > on mouseUp > > send "test" to button 1 with "ha" > > end mouseUp > > > > on with > > answer "WTH?" > > end with > > > > But that's obviously unlikely. Far more likely if you're dealing with > > code you wrote before you became aware of "dispatch" (or maybe before > > "dispatch" was a thing -- I think Navigator predates LC 3.5) is that you > > decide to add an argument to a remote call and don't notice that it's a > > "send" rather than a "dispatch", and then spend half an hour trying to > > figure out why your arguments aren't passing through . > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From brian at milby7.com Fri Oct 5 21:39:57 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 5 Oct 2018 21:39:57 -0400 Subject: "send" vs "dispatch" In-Reply-To: References: <338c58e1-08d9-49a5-8031-676038757ca4@Spark> Message-ID: Probably the ?in time? variant along with parity. The PR also opens up sending to widget handlers which is what I?m waiting for. Thanks, Brian On Oct 5, 2018, 9:36 PM -0400, Geoff Canyon via use-livecode , wrote: > Is there a benefit to adding parameters to send? Or does this just bring it > into parity/redundancy with dispatch? > > On Fri, Oct 5, 2018 at 3:16 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > There is a PR to change this: > > https://github.com/livecode/livecode/pull/6479 > > > > Will add args to send and call. > > > > Thanks, > > Brian > > On Oct 5, 2018, 6:09 PM -0400, Geoff Canyon via use-livecode < > > use-livecode at lists.runrev.com>, wrote: > > > A word to the wise (mostly for IDE and extension developers): this will > > > successfully compile: > > > > > > send "test" to button 1 with "ha" > > > > > > And then if the IDE is swallowing up your error messages (as it does for > > > extensions like Navigator) it will even deliver the message "test" to > > > button 1, just without any arguments, and then die silently. > > > > > > Outside of "rev" stacks, it will deliver the message without arguments > > and > > > then throw an error saying there is no handler "with". I just checked, > > and > > > amazingly this will work: > > > > > > on mouseUp > > > send "test" to button 1 with "ha" > > > end mouseUp > > > > > > on with > > > answer "WTH?" > > > end with > > > > > > But that's obviously unlikely. Far more likely if you're dealing with > > > code you wrote before you became aware of "dispatch" (or maybe before > > > "dispatch" was a thing -- I think Navigator predates LC 3.5) is that you > > > decide to add an argument to a remote call and don't notice that it's a > > > "send" rather than a "dispatch", and then spend half an hour trying to > > > figure out why your arguments aren't passing through . > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sat Oct 6 16:20:46 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 6 Oct 2018 20:20:46 +0000 Subject: Most Efficient Way To "Blink" Message-ID: I just crashed 9.0.1. stable with the first recursion error I had in a long time. I was playing with to "blinking" animation. using send "blinkStart true" to me in 500 milliseconds crashed the IDE. Now I have this, but color doesn't change. Anyone have a efficient recipe to "blink" any control? In this case I changed to backgroundcolor property, but it could be any property you want to turn off and on again until user takes action *command*blinkStart pBool # sent "true" when card opens; # send "false" when user clicks it * if* pBool istrue*then* * repeat* 10times * if* pBool is"false"*then* *exit* *repeat* * set*thebackgroundcolorofgrc"start"to"158,58,77" * wait*1secondswithmessages * set*thebackgroundcolorofgrc"start"to"220,220,220" * end* *repeat* *end* *if* * set*thebackgroundcolorofgrc"start"to"220,220,220" *end*blinkStart # to color does not change. From tom at makeshyft.com Sat Oct 6 16:23:08 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 6 Oct 2018 16:23:08 -0400 Subject: Most Efficient Way To "Blink" In-Reply-To: References: Message-ID: does this code crash it all the time or just one time? On Sat, Oct 6, 2018 at 4:21 PM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > I just crashed 9.0.1. stable with the first recursion error I had in a > long time. > > I was playing with to "blinking" animation. > > using > > send "blinkStart true" to me in 500 milliseconds > > crashed the IDE. > > Now I have this, but color doesn't change. > > Anyone have a efficient recipe to "blink" any control? > > In this case I changed to backgroundcolor property, but it could be any > property you want to turn off and on again until user takes action > > *command*blinkStart pBool > > # sent "true" when card opens; > > # send "false" when user clicks it > > * if* pBool istrue*then* > > * repeat* 10times > > * if* pBool is"false"*then* *exit* *repeat* > > * set*thebackgroundcolorofgrc"start"to"158,58,77" > > * wait*1secondswithmessages > > * set*thebackgroundcolorofgrc"start"to"220,220,220" > > * end* *repeat* > > *end* *if* > > * set*thebackgroundcolorofgrc"start"to"220,220,220" > > *end*blinkStart > > > # to color does not change. > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bogdanoff at me.com Sat Oct 6 16:44:10 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 06 Oct 2018 13:44:10 -0700 Subject: Callbacks in HTML5 Message-ID: <0BAD0EFC-C074-4C84-96EB-E1F8BD2737F9@me.com> Hi, Does anyone know the availability of callbacks in LC HTML5? Some time ago the Company said that callbacks weren?t there yet, and adding that would be ?expensive.? Has anything changed since? Peter Bogdanoff ArtsInteractive From ahsoftware at sonic.net Sat Oct 6 16:46:52 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 6 Oct 2018 13:46:52 -0700 Subject: Most Efficient Way To "Blink" In-Reply-To: References: Message-ID: <9ac8a173-cf78-7abd-3be8-2687b5b2e72d@sonic.net> On 10/06/2018 01:20 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > I just crashed 9.0.1. stable with the first recursion error I had in a > long time. After much editing (can you possibly post text instead of lots of asterisks?) I tried this and it works here, although if you really want to see the blink you need another wait statement after the second background color change. Otherwise you'll never see the second change. But no IDE crash here. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Sat Oct 6 19:16:15 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 6 Oct 2018 16:16:15 -0700 Subject: Sharing groups between stacks Message-ID: In Navigator, I implemented functionality that was previously just a group that I "show"ed and "hide"ed in the Navigator mainstack, as a palette substack of Navigator. To do this, I created a substack, and copied over the group. All scripts are behaviors, so the code isn't duplicated, but the control layout is, meaning if I want to update the tool layout I need to make the changes in two places. If I really wanted to I could write code to copy the group from the substack into the mainstack at runtime, but that seems weird to me. Am I missing some easier way to do this? gc From brahma at hindu.org Sat Oct 6 22:38:00 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 7 Oct 2018 02:38:00 +0000 Subject: Most Efficient Way To "Blink" References: <9ac8a173-cf78-7abd-3be8-2687b5b2e72d@sonic.net> Message-ID: On 10/6/18 10:47 AM, Mark Wieder via use-livecode wrote: > After much editing (can you possibly post text instead of lots of > asterisks?) I tried this and it works here, although if you really want > to see the blink you need another wait statement after the second > background color change. Otherwise you'll never see the second change. > > But no IDE crash here. I am recently switched to Thunderbird for mail, it is entering the asterisk in code. Sorry about that. I will try the second "wait" From brahma at hindu.org Sat Oct 6 22:47:01 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 7 Oct 2018 02:47:01 +0000 Subject: Callbacks in HTML5 References: <0BAD0EFC-C074-4C84-96EB-E1F8BD2737F9@me.com> Message-ID: Andre and I spend a long time tinkering with this last year. In the end I asked for a quote. It was ~$9,000.00 (or something like that) for the basic implementation. If you wanted the IDE to report errors/debug another $7K .... $16,000.00 I don't have a budget for just this feature If you like I can send my proposal and the response off list. It details the requirements. BR On 10/6/18 10:44 AM, Peter Bogdanoff via use-livecode wrote: > Hi, > > Does anyone know the availability of callbacks in LC HTML5? Some time ago the Company said that callbacks weren?t there yet, and adding that would be ?expensive.? > > Has anything changed since? > > Peter Bogdanoff > ArtsInteractive -- Svasti Astu, Be Well! Brahmanathaswami Get the SivaSiva app, it's free: https://www.himalayanacademy.com/apps/sivasiva From ahsoftware at sonic.net Sat Oct 6 22:57:30 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 6 Oct 2018 19:57:30 -0700 Subject: Most Efficient Way To "Blink" In-Reply-To: References: <9ac8a173-cf78-7abd-3be8-2687b5b2e72d@sonic.net> Message-ID: <348d7bcf-b4bc-7753-0b95-5659e083a02f@sonic.net> On 10/06/2018 07:38 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > I am recently switched to Thunderbird for mail, it is entering the > asterisk in code. Sorry about that. Look in TBird Preferences at Account Settings | Composition & Addressing and make sure 'Compose messages in HTML format' is unchecked. I think that should fix it. Or look at the Composition tab in File | Preferences and select the Send Options... button. Either check 'Send messages as plain text if possible' or add livecode.com to the Plain Text Domains panel. Otherwise idk... I've been using TBird for years without that problem. -- Mark Wieder ahsoftware at gmail.com From bogdanoff at me.com Sat Oct 6 23:54:18 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 06 Oct 2018 20:54:18 -0700 Subject: Callbacks in HTML5 In-Reply-To: References: <0BAD0EFC-C074-4C84-96EB-E1F8BD2737F9@me.com> Message-ID: <23A296FE-390C-43DC-9DDA-6B0F71F36FFE@me.com> Thanks, yes, please send me that info. Peter > On Oct 6, 2018, at 7:47 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > Andre and I spend a long time tinkering with this last year. > > In the end I asked for a quote. It was ~$9,000.00 (or something like > that) for the basic implementation. If you wanted the IDE to report > errors/debug another $7K .... $16,000.00 > > I don't have a budget for just this feature > > If you like I can send my proposal and the response off list. It details > the requirements. > > > BR > > On 10/6/18 10:44 AM, Peter Bogdanoff via use-livecode wrote: >> Hi, >> >> Does anyone know the availability of callbacks in LC HTML5? Some time ago the Company said that callbacks weren?t there yet, and adding that would be ?expensive.? >> >> Has anything changed since? >> >> Peter Bogdanoff >> ArtsInteractive > > > -- > Svasti Astu, Be Well! > Brahmanathaswami > > Get the SivaSiva app, it's free: > https://www.himalayanacademy.com/apps/sivasiva > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sun Oct 7 17:33:03 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 7 Oct 2018 17:33:03 -0400 Subject: OT our shipping software is finally finished In-Reply-To: <005801d45c1e$ab409e20$01c1da60$@net> References: <38ED7199-67E7-417E-9C91-164DE290CB10@m-r-d.de> <005801d45c1e$ab409e20$01c1da60$@net> Message-ID: Since we're talking about shipping software, I prefer to have our forklift operators having mobiles on their trucks instead of lappies, but we do have a bunch of desktop (and server, and mainframe) apps, it's just that most of them are written in tools other than LC. I will say that integrating our mobile apps into our ecosystem with the mainframes and the desktops has been pretty easy with LC. On Thu, Oct 4, 2018 at 4:10 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > Congrats! Nice to see LC out in the field. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf Of Matthias Rebbe via use-livecode > Sent: Wednesday, October 03, 2018 6:34 PM > To: How to use LiveCode > Cc: Matthias Rebbe > Subject: OT our shipping software is finally finished > > Hi, > > with a little proud i am happy to say that after many weeks of "blood, > sweat and tears" i?ve finally finished our Windows software for DHL and > Trans-o-flex shipments. This software is used by our own and replaces a 3rd > party software. There are several reasons, why we decided to replace the > software. > > These are the main features: > By entering the invoice number the software fetches the corresponding > shipping address and some other additional information like cash on > delivery amount (if applicable) from the database of our ERP software and > creates a shipping label, which then is printed onto a thermal printer. > > For Trans-o-Flex the shipping labels (including a 1D barcode 2of5 > interleaved and a qrCode) are completely built with the app. > The qrCode is created with a slightly modified version of the Livecode > qrCode library. The modified library allows to specify the version number > the created qrCode should have. This is important, as the carrier > Trans-o-Flex only allows version 14 qrCodes for their shipping labels. The > original LC library selects the version according to the data the qrCode > contains. If you are interested in the modified library, you?ll find it > here I?ve attached > it to ?bug? report 21428. > > The 1D barcode is created with a 3rd party Windows SDK from Tec-It < > https://www.tec-it.com/en/software/barcode-software/tbarcode/overview/Default.aspx > >. > Currently the SDK is called from a .vbs script.The .vbs file is created > dynamically. The future plan is to create a widget which calls the SDK. But > due to my lack of knowledge about widget i had to choose the .vbs way for > now. > > After successful printing, the shipping data is stored into a database. At > the end of the day, the shipping data of all parcels and pallets is > exported from database to an XML file, which is then uploaded to the sftp > server of the shipment carrier. The tracking number of each shipment, the > according invoice and customer number are exported also to our web server. > This allows our customers to query the tracking numbers by entering their > invoice and customer number. The software allows also the export a PDF of > all shipments of a day. > > I?ve uploaded 3 screenshots of the app if you?re interested. Please don?t > laugh about the user interface. The design does not match the current > Windows design nor is it state of the art. Our users wanted it simple and > ?readable? and no small buttons or text. > > https://mr.on-rev.com/menu.png > https://mr.on-rev.com/shipping.png > https://mr.on-rev.com/label.png > > This is by far the most extensive app i?ve created with Livecode so far > and i am really happy that it was finally approved by Trans-o-Flex. > > > Matthias > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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." From monte at appisle.net Sun Oct 7 17:53:34 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 8 Oct 2018 08:53:34 +1100 Subject: mergLA for Mac In-Reply-To: <20181003120559.Horde.EIyvWvXskWax2o3iAUTVPow@ua850258.serversignin.com> References: <20181003120559.Horde.EIyvWvXskWax2o3iAUTVPow@ua850258.serversignin.com> Message-ID: Hi Andrew There?s this hibernated enhancement request. You could contact support and request it be taken out of hibernation. https://quality.livecode.com/show_bug.cgi?id=18742 Cheers Monte > On 3 Oct 2018, at 10:05 pm, Andrew Bell via use-livecode wrote: > > I created an admin backend app for a client so they can manage data for their frontend app. This backend, based off client request, is running on macOS/Windows/iOS. The desktop versions use a password for authenticating access but the iOS deployment uses Touch/Face ID for authentication via Monte's extremely easy to use mergLA external. > > Recently this client upgraded their laptop to a MacBook Pro that also supports Touch ID and asked if the same fingerprint technology could be implemented in the macOS build. I was blissfully unaware that this feature even existed on that platform, but apparently has been available since the 2016 model year. > > I know several of the other merg externals utilize the same/similar underlying framework so they work on both macOS and iOS. Is this just a matter of recompiling the external or is there a deeper change that would need to be made to unlock this? > > https://developer.apple.com/documentation/localauthentication > > --Andrew Bell > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Oct 8 16:17:27 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 8 Oct 2018 15:17:27 -0500 Subject: Stacks whose names start with "rev" In-Reply-To: <1663d901a10.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1663bea6cd8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <11af97f7-ff7c-3bc4-bf44-a9c29cd5629f@fourthworld.com> <1663d901a10.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: I was able to look at this again today. The style of the stack is toplevel, it is visible and frontmost, but the mode is 2. This is true whether gRevDevelopment is true or false. Show IDE stacks in Lists is turned on. It's stuck that way. LC 9.0.1. On 10/4/18 12:32 AM, J. Landman Gay via use-livecode wrote: > I won't be able to check it for a few days. The problem isn't so much > that I couldn't change the stack but how it got assigned as mode two in > the first place. It was a regular topstack when it was created back in > LC 8. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On October 3, 2018 6:44:34 PM Richard Gaskin via use-livecode > wrote: > >> J. Landman Gay wrote: >> > The main thing I needed to know is whether there was an easier way to >> > edit the stack than what we were doing. It seems there isn't. >> >> If "toplevel " doesn't work for you then it doesn't work for >> the folks at LC Ltd. >> >> I can understand if you don't have time to investigate this, but now I'm >> intrigued and wish we knew what made the stack you're working on so >> unusually difficult beyond the naming conventions. >> >> -- >> ?Richard Gaskin >> ?Fourth World Systems >> ?Software Design and Development for the Desktop, Mobile, and the Web >> ?____________________________________________________________________ >> ?Ambassador at FourthWorld.com??????????????? http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Mon Oct 8 18:33:44 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 8 Oct 2018 15:33:44 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: References: Message-ID: <9cf0d8ee-6b36-c20b-a0e7-555d0f2c2eab@fourthworld.com> J. Landman Gay wrote: > I was able to look at this again today. The style of the stack is > toplevel, it is visible and frontmost, but the mode is 2. This is true > whether gRevDevelopment is true or false. Show IDE stacks in Lists is > turned on. > > It's stuck that way. LC 9.0.1. The style is the persistent property which governs mode when opened using "open" or "go"; the mode is the current actual mode, which can differ from the style if opened using a mode name as a command (e,g, "palette "). When the mode is 2 that usually means the cantEdit has been set. This may have been set somewhere in the IDE, thinking it's an IDE stack. What happens if you set the cantEdit of the stack to false? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Mon Oct 8 19:34:14 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Oct 2018 23:34:14 +0000 Subject: Most Efficient Way To "Blink" In-Reply-To: <348d7bcf-b4bc-7753-0b95-5659e083a02f@sonic.net> References: <9ac8a173-cf78-7abd-3be8-2687b5b2e72d@sonic.net> <348d7bcf-b4bc-7753-0b95-5659e083a02f@sonic.net> Message-ID: <14F1A91A-1E3F-40FD-850F-C82FDA754BAB@iotecdigital.com> Ooh that's cool! A per domain setting. I wonder if Apple Mail can do that?? Bob S > On Oct 6, 2018, at 19:57 , Mark Wieder via use-livecode wrote: > > On 10/06/2018 07:38 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > >> I am recently switched to Thunderbird for mail, it is entering the >> asterisk in code. Sorry about that. > > Look in TBird Preferences at Account Settings | Composition & Addressing and make sure 'Compose messages in HTML format' is unchecked. I think that should fix it. > > Or look at the Composition tab in File | Preferences and select the Send Options... button. Either check 'Send messages as plain text if possible' or add livecode.com to the Plain Text Domains panel. > > Otherwise idk... I've been using TBird for years without that problem. > > -- > Mark Wieder > ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Oct 8 19:41:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Oct 2018 23:41:26 +0000 Subject: "send" vs "dispatch" In-Reply-To: References: Message-ID: <7AA21530-AA29-4A75-92D0-36869739B2FF@iotecdigital.com> I like the dispatch form, separating parameters out from the command. The reason is given stepping into this code, send "test ha" to button 1 I cannot point to the variable "ha" and see the value it contains. But if, dispatch "test" to button 1 with ha I can. I only use send anymore when I need to send in time, otherwise everything is dispatch. Another nice feature of dispatch is that if the handler does not exist in the target, it will silently and gracefully fail, continuing to execute code after the call. This means I can use dispatch in a behavior, and then have the handler only in the targets that need it, without having to check for the existence of the handler, or wrapping the code in a try catch statement. Send will throw an error if the handler does not exist. Bob S > On Oct 5, 2018, at 15:15 , Tom Glod via use-livecode wrote: > > I've written over 30 000 lines of code in livecode. > > used dispatch .... once. :) > > > > > > On Fri, Oct 5, 2018 at 6:09 PM Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> A word to the wise (mostly for IDE and extension developers): this will >> successfully compile: >> >> send "test" to button 1 with "ha" >> >> And then if the IDE is swallowing up your error messages (as it does for >> extensions like Navigator) it will even deliver the message "test" to >> button 1, just without any arguments, and then die silently. >> >> Outside of "rev" stacks, it will deliver the message without arguments and >> then throw an error saying there is no handler "with". I just checked, and >> amazingly this will work: >> >> on mouseUp >> send "test" to button 1 with "ha" >> end mouseUp >> >> on with >> answer "WTH?" >> end with >> >> But that's obviously unlikely. Far more likely if you're dealing with >> code you wrote before you became aware of "dispatch" (or maybe before >> "dispatch" was a thing -- I think Navigator predates LC 3.5) is that you >> decide to add an argument to a remote call and don't notice that it's a >> "send" rather than a "dispatch", and then spend half an hour trying to >> figure out why your arguments aren't passing through . >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 8 19:43:55 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Oct 2018 23:43:55 +0000 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: Message-ID: Nice. I never thought to do that. DOH! Bob S > On Oct 5, 2018, at 14:30 , Jim Lambert via use-livecode wrote: > >> Herman wrote: >> >> See my demo here: >> >> http://forums.livecode.com/viewtopic.php?p=152773#p152773 >> >> Overlays the widget while this plays a video. > > So floating a second stack over the browser as I suggested does work and is beautifully demonstrated in Herman?s DemoVideoBack.livecode.zip. > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 8 19:46:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Oct 2018 23:46:33 +0000 Subject: Breakpoints Failing / Crashes In-Reply-To: References: Message-ID: <950919CF-5241-42A0-AFA2-5CC4E7770EEC@iotecdigital.com> Yes the dreaded red dot, fixed for a while, is now rearing it's ugly head again. If I use red dots, I remove and re-add after every compile (which I do often). Bob S > On Oct 5, 2018, at 07:12 , Sannyasin Brahmanathaswami via use-livecode wrote: > > breakpoint -- either entered by "red dot" or explicitly placed > "breakpoint" in the code and frequently "non-observed" and just now had > a crash are click the breakpoint dot (which was not working) and > attempting to insert "breakpoint" > > anyone else having to trouble, > > Mac OS X , LC 9.0.1 stable (not really stable at all!) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 8 19:49:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 8 Oct 2018 23:49:03 +0000 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: References: <7080438F-46C6-4E39-ABA2-634D73FA4D75@iotecdigital.com> <1538679652178-0.post@n4.nabble.com> <1538687258411-0.post@n4.nabble.com> <7135F6B1-8BCC-425F-9428-DD36AA2FA499@iotecdigital.com> Message-ID: <747CE251-F37B-4D3F-A1CB-93308ECF32F3@iotecdigital.com> Did that once long ago. Browser object (not widget) overlaid the button. I am saying I think the widget is just the browser object wrapped in a widget. Bob S > On Oct 4, 2018, at 15:05 , Brian Milby via use-livecode wrote: > > Native layers are drawn above all LC layers regardless of what layer the object is in. This would go for native buttons and other controls as well. An interesting experiment would be to try a native button over the browser widget. From jacque at hyperactivesw.com Mon Oct 8 19:58:48 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 08 Oct 2018 18:58:48 -0500 Subject: Stacks whose names start with "rev" In-Reply-To: <9cf0d8ee-6b36-c20b-a0e7-555d0f2c2eab@fourthworld.com> References: <9cf0d8ee-6b36-c20b-a0e7-555d0f2c2eab@fourthworld.com> Message-ID: <166561e72c0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I checked that early on and again today, cantEdit is false. The style was reported as toplevel but I set it again anyway in the message box. The command that opens the stack is a plain "go stack", the same as all the others in the suite that open normally. GRevDevolppment is true. The only difference between this stack and hundreds of others is the name, as far as I can see. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 8, 2018 5:35:27 PM Richard Gaskin via use-livecode wrote: > J. Landman Gay wrote: > > > I was able to look at this again today. The style of the stack is > > toplevel, it is visible and frontmost, but the mode is 2. This is true > > whether gRevDevelopment is true or false. Show IDE stacks in Lists is > > turned on. > > > > It's stuck that way. LC 9.0.1. > > The style is the persistent property which governs mode when opened > using "open" or "go"; the mode is the current actual mode, which can > differ from the style if opened using a mode name as a command (e,g, > "palette "). > > When the mode is 2 that usually means the cantEdit has been set. This > may have been set somewhere in the IDE, thinking it's an IDE stack. > > What happens if you set the cantEdit of the stack to false? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Oct 8 20:53:51 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 8 Oct 2018 17:53:51 -0700 Subject: "send" vs "dispatch" In-Reply-To: <7AA21530-AA29-4A75-92D0-36869739B2FF@iotecdigital.com> References: <7AA21530-AA29-4A75-92D0-36869739B2FF@iotecdigital.com> Message-ID: <4dbca67d-a975-7c71-0646-a0bc9782760f@sonic.net> On 10/08/2018 04:41 PM, Bob Sneidar via use-livecode wrote: Another nice feature of dispatch is that if the handler does not exist in the target, it will silently and gracefully fail, continuing to execute code after the call. Yeah, that's a double-edged doohickey, though. I *do* use it that way sometimes as well, but note that if you don't check the result then you won't know if the dispatch succeeded when you want it to. Sometimes silently failing is good, sometimes not so much. YMMV. -- Mark Wieder ahsoftware at gmail.com From lists at mangomultimedia.com Tue Oct 9 00:27:49 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 8 Oct 2018 23:27:49 -0500 Subject: Sandbox - a Levure Helper for working with files in the macOS sandbox Message-ID: Hi, I've posted a new Levure helper on GitHub called "sandbox". It adds support for working with file references across multiple app sessions in the macOS sandbox. It requires LiveCode 9 as it uses the Foreign Function Interface (aka FFI) to wrap Objective-C APIs. If you distribute your apps through the Mac App Store then it is required that you sandbox your application. When an application is sandboxed the user has to give you explicit permission to open any files that reside outside of your applications container. For example, a user can do this by selecting a file using the `answer file` dialog or dragging a file onto your application. Your application will then have permission to access that file for the rest of the app session. The next time your application launches, however, your application will not have permission to open the files again unless you implement security-scoped bookmarks and security-scoped urls. The helper uses an LCS library wrapped around an LCB extension to try and hide the complexity. To learn more visit the GitHub page: https://github.com/trevordevore/levurehelper-sandbox If you don't use Levure but are interested in the LCB FFI code here is a direct link to that file: https://github.com/trevordevore/levurehelper-sandbox/blob/master/macos_sandbox.lcb -- Trevor DeVore ScreenSteps www.screensteps.com From tom at makeshyft.com Tue Oct 9 01:23:44 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 9 Oct 2018 01:23:44 -0400 Subject: "send" vs "dispatch" In-Reply-To: <4dbca67d-a975-7c71-0646-a0bc9782760f@sonic.net> References: <7AA21530-AA29-4A75-92D0-36869739B2FF@iotecdigital.com> <4dbca67d-a975-7c71-0646-a0bc9782760f@sonic.net> Message-ID: ever since I learned that you can pass a whole array using the send command the dispatch doesn't seem that much more convenient at all..i do alot of in time commands so this is very convenient to my needs / style send "mymessage myarray" to this stack for years I thought using this form 'myarray' is sent as a string, but it is actually the whole array and all its data) ..no need to concatenate the variables. On Mon, Oct 8, 2018 at 8:54 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/08/2018 04:41 PM, Bob Sneidar via use-livecode wrote: > > Another nice feature of dispatch is that if the handler does not exist > in the target, it will silently and gracefully fail, continuing to > execute code after the call. > > Yeah, that's a double-edged doohickey, though. I *do* use it that way > sometimes as well, but note that if you don't check the result then you > won't know if the dispatch succeeded when you want it to. > > Sometimes silently failing is good, sometimes not so much. YMMV. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From monte at appisle.net Tue Oct 9 01:37:18 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 9 Oct 2018 16:37:18 +1100 Subject: "send" vs "dispatch" In-Reply-To: References: <7AA21530-AA29-4A75-92D0-36869739B2FF@iotecdigital.com> <4dbca67d-a975-7c71-0646-a0bc9782760f@sonic.net> Message-ID: <5C951213-4EA9-43E7-A1B6-B504293F120A@appisle.net> One of the main reasons I implemented send and call with params in the PR that has been mentioned is because it allows for referenced parameters. The following is an error: on mouseUp local tBar send ?foo tBar? to me answer tBar end mouseUp on foo @rBar put ?Howdy" into rBar end foo While this works: on mouseUp local tBar send ?foo? to me with tBar answer tBar // answers ?Howdy" end mouseUp Of course you can?t use referenced params like this using send in time form. From bobsneidar at iotecdigital.com Tue Oct 9 10:33:17 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 9 Oct 2018 14:33:17 +0000 Subject: "send" vs "dispatch" In-Reply-To: <4dbca67d-a975-7c71-0646-a0bc9782760f@sonic.net> References: <7AA21530-AA29-4A75-92D0-36869739B2FF@iotecdigital.com> <4dbca67d-a975-7c71-0646-a0bc9782760f@sonic.net> Message-ID: Yup. I groked that. So I always return empty for success and false if not. > On Oct 8, 2018, at 17:53 , Mark Wieder via use-livecode wrote: > > Another nice feature of dispatch is that if the handler does not exist in the target, it will silently and gracefully fail, continuing to execute code after the call. > > Yeah, that's a double-edged doohickey, though. I *do* use it that way sometimes as well, but note that if you don't check the result then you won't know if the dispatch succeeded when you want it to. > > Sometimes silently failing is good, sometimes not so much. YMMV. > > -- > Mark Wieder From ahsoftware at sonic.net Tue Oct 9 11:22:21 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 9 Oct 2018 08:22:21 -0700 Subject: "send" vs "dispatch" In-Reply-To: References: <7AA21530-AA29-4A75-92D0-36869739B2FF@iotecdigital.com> <4dbca67d-a975-7c71-0646-a0bc9782760f@sonic.net> Message-ID: <4f971617-c695-992c-820c-93135a1a9d9d@sonic.net> On 10/09/2018 07:33 AM, Bob Sneidar via use-livecode wrote: > Yup. I groked that. So I always return empty for success and false if not. Nice. -- Mark Wieder ahsoftware at gmail.com From brahma at hindu.org Tue Oct 9 14:05:22 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 9 Oct 2018 18:05:22 +0000 Subject: OT: Seven Ineffective Coding Habits of Many Programmers Message-ID: Watching Levure videos, contemplating more collaborative coding, I found this. ITT 2016 - Kevlin Henney - Seven Ineffective Coding Habits of Many Programmers https://www.youtube.com/watch?v=ZsHMHukIlJY 45 minutes long. If you need a break, it is both instructive and humorous I often struggle with naming conventions. This sheds so much light on the subject. BR From ambassador at fourthworld.com Tue Oct 9 14:16:34 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 9 Oct 2018 11:16:34 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <166561e72c0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <166561e72c0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: J. Landman Gay wrote: > I checked that early on and again today, cantEdit is false. The style > was reported as toplevel but I set it again anyway in the message box. > The command that opens the stack is a plain "go stack", the same as > all the others in the suite that open normally. GRevDevolppment is > true. If the cantEdit is false but the mode is reported as 2, that sounds like an engine bug. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Tue Oct 9 15:12:02 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 9 Oct 2018 14:12:02 -0500 Subject: Stacks whose names start with "rev" In-Reply-To: References: <166561e72c0.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <91d53b28-0411-75ac-0930-456e700f9c6f@hyperactivesw.com> On 10/9/18 1:16 PM, Richard Gaskin via use-livecode wrote: > If the cantEdit is false but the mode is reported as 2, that sounds like > an engine bug. Probably not so much a bug as a design decision. The engine seems to enforce mode 2 if it thinks the stack is an IDE stack. But that does raise the question (again) on how the LC team works on those. I'd like to see this convention removed, and have the engine check for a custom property or something similar. There are cases where a stack name does need to start with "rev", but even if it doesn't it is going to throw off new users. It's an artificial legacy limitation that doesn't have to exist. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Oct 9 15:22:58 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 9 Oct 2018 12:22:58 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <91d53b28-0411-75ac-0930-456e700f9c6f@hyperactivesw.com> References: <91d53b28-0411-75ac-0930-456e700f9c6f@hyperactivesw.com> Message-ID: <713dc7f1-ef83-426a-a6b3-c8e4228f3e37@fourthworld.com> J. Landman Gay wrote: > On 10/9/18 1:16 PM, Richard Gaskin via use-livecode wrote: >> If the cantEdit is false but the mode is reported as 2, that sounds >> like an engine bug. > > Probably not so much a bug as a design decision. The engine seems to > enforce mode 2 if it thinks the stack is an IDE stack. I don't believe that's an engine thing, likely an IDE thing. And if the team is able to work on their stacks, there must be a way you can work on yours. > I'd like to see this convention removed, and have the engine check for > a custom property or something similar. There are cases where a stack > name does need to start with "rev", but even if it doesn't it is going > to throw off new users. It's an artificial legacy limitation that > doesn't have to exist. Good call. A custom property seems much simpler for everyone. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From revdev at pdslabs.net Tue Oct 9 15:51:01 2018 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 9 Oct 2018 12:51:01 -0700 Subject: bizarre DG problem Message-ID: <9d112d9b-d58a-40d1-939d-7e67949d8560@pdslabs.net> Hi folks, My client just called me to report one of his customers' data grids in a very weird state. I've never seen this before and thought I should ask if anyone else has, and how to prevent it if possible. System: macOS 10.13.x - High Sierra LC 8.1.9 Community Background: This DG is automatically redefined regularly to display different sets of columns for Orders data, Clients data, Purchases data, etc., and is then loaded with data of that type. The redefinition/reloading happens when the customer clicks a button for that type of data. This has worked flawlessly for many years and I don't suspect it as the source of the problem. The DG is in a window that is not resizable. so it's rect is constant. DG properties: vScrollbar = true hScrollbar = auto Symptom: Inside the customer's DG, grp "dgList" is horizontally out of alignment with the hScroll of the DG. When the hScroll is 0, the left of grp "dgList" should be the left of the DG, but instead it's left is near the center of the DG. This prevents the display of all whole or partial columns that are to the left of the group's left edge. Fix: (realign the 'dgList' group with the hScroll of the DG) set the hScroll of the DG to 0 set the left of grp "dgList" of DG to the left of the DG refresh the DG Cause: ????? I'm trying to understand what caused it so I can prevent it in the future. Any ideas are welcome. Thanks - Phil Davis -- Phil Davis From General.2018 at outlook.com Tue Oct 9 16:44:31 2018 From: General.2018 at outlook.com (General 2018) Date: Tue, 9 Oct 2018 20:44:31 +0000 Subject: Open Driver on multi platform - show stopper Message-ID: Hi , Not wishing to write externals I need Livecode to deploy on different platforms with ease , for the most part it does this very well. But there is a serious weakness and have projects screaming for a solution for Android and MacOS , This being serial communication (VCP) via USB and Bluetooth support using open driver etc. USB / BT / Serial communication using LiveCode works perfectly on Windows but fails on MacOS and not available for Android. Hardware with USB / Bluetooth serial communication is commonly available for use on Windows , MacOS and Android but I cannot use Livecode for all 3. This is a show stopper until resolved. Fully understand that this is not an option for IOS as it requires apple certified hardware. Best Regards Camm -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of General 2018 via use-livecode Sent: 23 September 2018 22:41 To: use-livecode at lists.runrev.com Cc: General 2018 Subject: Open Driver on MacOS Hi , Livecode 9.0.1 MacOS High Sierra Open driver hangs on MacOS , tried Sarah's SerialTest stack which hangs also. Item 3 of the drivernames is correct but when open driver or file is attempted it hangs. Bug ? Regards Camm _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Tue Oct 9 17:13:52 2018 From: jbv at souslelogo.com (jbv) Date: Tue, 9 Oct 2018 23:13:52 +0200 Subject: semi-OT : mySQL oddities Message-ID: Hi list, I'm not 100% sure yet, but I think I'm experiencing some problems with mySQL 5.6.41 and LC server, the most annoying one being random duplicate entries in some tables, especially the biggest ones, for instance 71 Mb and nearly 140000 entries. I have searched the web for more info and have found a few posts on stackoverflow and some other blogs mentioning problems with autoincrement, but the symptoms are slightly different... I was wondering if anyone had experienced similar issues ? Thanks in advance. Best, jbv From bobsneidar at iotecdigital.com Tue Oct 9 17:50:07 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 9 Oct 2018 21:50:07 +0000 Subject: semi-OT : mySQL oddities In-Reply-To: References: Message-ID: I use mySQL 5.6 running on a Windows server. I do not have this issue. The only way LC will add a record is with the insert command. I suspect there is someplace in your code where you expect to update, and it's inserting instead. I wrap my database commands in a series of commands and functions, all of which put the current user name (I have a login system in place) and the datetime the update was made. Something like that might help you determine when the updates were made. Bob S > On Oct 9, 2018, at 14:13 , jbv via use-livecode wrote: > > Hi list, > I'm not 100% sure yet, but I think I'm experiencing some problems with > mySQL 5.6.41 and LC server, the most annoying one being random duplicate > entries in some tables, especially the biggest ones, for instance 71 Mb > and nearly 140000 entries. > I have searched the web for more info and have found a few posts on > stackoverflow and some other blogs mentioning problems with autoincrement, > but the symptoms are slightly different... > I was wondering if anyone had experienced similar issues ? > > Thanks in advance. > Best, > jbv From bobsneidar at iotecdigital.com Tue Oct 9 17:50:54 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 9 Oct 2018 21:50:54 +0000 Subject: semi-OT : mySQL oddities In-Reply-To: References: Message-ID: <8F651508-BF3F-4CAB-8D23-6A380739A6BF@iotecdigital.com> Oh BTW I use autoincrement on all my tables for the primary key. Bob S > On Oct 9, 2018, at 14:50 , Bob Sneidar wrote: > > I use mySQL 5.6 running on a Windows server. I do not have this issue. The only way LC will add a record is with the insert command. I suspect there is someplace in your code where you expect to update, and it's inserting instead. > > I wrap my database commands in a series of commands and functions, all of which put the current user name (I have a login system in place) and the datetime the update was made. Something like that might help you determine when the updates were made. > > Bob S > > >> On Oct 9, 2018, at 14:13 , jbv via use-livecode wrote: >> >> Hi list, >> I'm not 100% sure yet, but I think I'm experiencing some problems with >> mySQL 5.6.41 and LC server, the most annoying one being random duplicate >> entries in some tables, especially the biggest ones, for instance 71 Mb >> and nearly 140000 entries. >> I have searched the web for more info and have found a few posts on >> stackoverflow and some other blogs mentioning problems with autoincrement, >> but the symptoms are slightly different... >> I was wondering if anyone had experienced similar issues ? >> >> Thanks in advance. >> Best, >> jbv > From monte at appisle.net Tue Oct 9 18:32:01 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 10 Oct 2018 09:32:01 +1100 Subject: Stacks whose names start with "rev" In-Reply-To: <713dc7f1-ef83-426a-a6b3-c8e4228f3e37@fourthworld.com> References: <91d53b28-0411-75ac-0930-456e700f9c6f@hyperactivesw.com> <713dc7f1-ef83-426a-a6b3-c8e4228f3e37@fourthworld.com> Message-ID: <841902D0-D0DD-4044-A3B2-5BCE34C2F09D@appisle.net> Hi Jacque I?m sorry I haven?t been following this whole thread so forgive me if my responses have already been covered. > On 10 Oct 2018, at 6:22 am, Richard Gaskin via use-livecode wrote: > > >> If the cantEdit is false but the mode is reported as 2, that sounds > >> like an engine bug. Don't you mean cantModify here? toplevel stacks that are ide stacks are forced to toplevel locked (mode 2). We determine this through a stack custom property `ideOverride`. If that is true when loading the stack from disk then it is set as an IDE stack. Additionally there is a runtime property of stacks that you can set `_ideoverride` that can turn this behavior on and off. Jacque?s issue is we have an IDE script that dynamically sets these in revfrontsciptlibrary preOpenStack: if revIDEObjectIsOnIDEStack(tTarget) then # IM-2016-03-01: [[ Bug 16244 ]] IDE stacks should always hide invisible objects set the showInvisibles of stack tStack to false set the _ideoverride of stack tStack to true end if It all hinges on a function in revcommonlibrary: function revStackNameIsIDEStack pStackName if there is a stack pStackName and the _ideoverride of stack pStackName then return true else if pStackName is among the items of "message box,answer dialog,ask dialog,home" then return true else if pStackName begins with "com.livecode." then return true else if pStackName is among the lines of revInternal__ListLoadedLibraries() then return true else return pStackName begins with "rev" end if end revStackNameIsIDEStack We could look at changing that to ensure the filename of the stack is an IDE or plugin file path but in your case just patching that to set the caseSensitive to true just before checking for ?rev? would cover it. Cheers Monte From hh at hyperhh.de Wed Oct 10 05:48:29 2018 From: hh at hyperhh.de (hh) Date: Wed, 10 Oct 2018 11:48:29 +0200 Subject: Community widgets Message-ID: The following community widgets are now available as "fat" widgets, that is they are installed or removed for both LC 8 and 9 and they work identically in both. All widgets are available on "Sample Stacks" or via livecodeshare (as given below). An asterisk (*) indicates a new feature (and/or a removed bug). All rotatable widgets have the click-through-transparency property. [9] OrientedText v152 (published Oct 10, 2018) ... http://livecodeshare.runrev.com/stack/910 [8] Progress v130* (published Oct 10, 2018) ... http://livecodeshare.runrev.com/stack/909 [7] Polygon v121 (published Oct 10, 2018) ... http://livecodeshare.runrev.com/stack/908 [6] DigitClock v121 (published Oct 10, 2018) ... http://livecodeshare.runrev.com/stack/907 [5] ClockAround v122* (published Oct 10, 2018) ... http://livecodeshare.runrev.com/stack/906 [4] SVGText v152* (published Oct 10, 2018) ... http://livecodeshare.runrev.com/stack/905 [3] IconGrid v211 (published Oct 01, 2018) ... http://livecodeshare.runrev.com/stack/904 [2] DatePicker v109 (published Oct 01, 2018) ... http://livecodeshare.runrev.com/stack/903 [1] ColorPicker v102 (published Oct 01, 2018) ... http://livecodeshare.runrev.com/stack/901 The widgets above are free for non-commercial use and have the source code included. For commercial use please give a (small) fee to the LC developer help fund. From panos.merakos at livecode.com Wed Oct 10 07:15:00 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 10 Oct 2018 14:15:00 +0300 Subject: [ANN] This Week in LiveCode 149 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #149 here: https://goo.gl/KQUHv1 This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From preid at reidit.co.uk Wed Oct 10 10:44:53 2018 From: preid at reidit.co.uk (Peter Reid) Date: Wed, 10 Oct 2018 15:44:53 +0100 Subject: Reading PDF Form Data in LiveCode? Message-ID: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> Does anyone have any code or suggestions for reading the data from PDF forms? I have several hundred form fields in 5 different design forms in PDF format that I need to extract. The data is mainly text fields but may include a few checkboxes and radio buttons. Any thoughts please? Thanks Peter -- Peter Reid Loughborough, UK From stephen at barncard.com Wed Oct 10 11:03:08 2018 From: stephen at barncard.com (Stephen Barncard) Date: Wed, 10 Oct 2018 08:03:08 -0700 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> Message-ID: before wheel invention it might be prudent to see how the existing apps do this. especially if this is a one shot. https://pdf.wondershare.com/top-pdf-software/free-pdf-to-csv-converter.html -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Wed, Oct 10, 2018 at 7:45 AM Peter Reid via use-livecode < use-livecode at lists.runrev.com> wrote: > Does anyone have any code or suggestions for reading the data from PDF > forms? I have several hundred form fields in 5 different design forms in > PDF format that I need to extract. The data is mainly text fields but may > include a few checkboxes and radio buttons. Any thoughts please? > > Thanks > > Peter > -- > Peter Reid > Loughborough, UK > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Wed Oct 10 11:08:20 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 10 Oct 2018 11:08:20 -0400 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> Message-ID: That looks like an interesting list. We just started on a new app in LC for managing troves of scanned documents, and one of the tasks we were planning to add was connecting to an OCR service and a PDF-converter. On Wed, Oct 10, 2018 at 11:04 AM Stephen Barncard via use-livecode < use-livecode at lists.runrev.com> wrote: > before wheel invention it might be prudent to see how the existing apps do > this. > especially if this is a one shot. > > https://pdf.wondershare.com/top-pdf-software/free-pdf-to-csv-converter.html > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > > On Wed, Oct 10, 2018 at 7:45 AM Peter Reid via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Does anyone have any code or suggestions for reading the data from PDF > > forms? I have several hundred form fields in 5 different design forms in > > PDF format that I need to extract. The data is mainly text fields but may > > include a few checkboxes and radio buttons. Any thoughts please? > > > > Thanks > > > > Peter > > -- > > Peter Reid > > Loughborough, UK > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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." From bobsneidar at iotecdigital.com Wed Oct 10 11:16:46 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Oct 2018 15:16:46 +0000 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> Message-ID: <31D1CFE8-577A-4891-A657-494E4697C5CC@iotecdigital.com> Have you heard of my app? :-) What I do on a Mac is tell Acrobat (via Applescript) to create an fdf file which is an xml formatted file of all the values in the form controls. I then have a function that parses that file into a livecode array. Windows is trickier, because you cannot tell acrobat for windows to do anything from outisde without going through a C API that Adobe provides for that purpose. If however your workflow allows for a user interaction, then you can just create an action to run a javascript. Here's the code: this.exportAsFDF(true, true, null, false); Once you have that file, I can send you the code I use to parse it. Bob S > On Oct 10, 2018, at 08:03 , Stephen Barncard via use-livecode wrote: > > before wheel invention it might be prudent to see how the existing apps do > this. > especially if this is a one shot. > > https://pdf.wondershare.com/top-pdf-software/free-pdf-to-csv-converter.html > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > > On Wed, Oct 10, 2018 at 7:45 AM Peter Reid via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Does anyone have any code or suggestions for reading the data from PDF >> forms? I have several hundred form fields in 5 different design forms in >> PDF format that I need to extract. The data is mainly text fields but may >> include a few checkboxes and radio buttons. Any thoughts please? >> >> Thanks >> >> Peter >> -- >> Peter Reid >> Loughborough, UK From bobsneidar at iotecdigital.com Wed Oct 10 11:20:03 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Oct 2018 15:20:03 +0000 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> Message-ID: I didn't see in any of the descriptions a way to script or automate conversions. I suppose if any has a watch folder auto conversion feature that could work. Bob S > On Oct 10, 2018, at 08:08 , Mike Kerner via use-livecode wrote: > > That looks like an interesting list. > We just started on a new app in LC for managing troves of scanned > documents, and one of the tasks we were planning to add was connecting to > an OCR service and a PDF-converter. From bobsneidar at iotecdigital.com Wed Oct 10 11:21:16 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Oct 2018 15:21:16 +0000 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: <31D1CFE8-577A-4891-A657-494E4697C5CC@iotecdigital.com> References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> <31D1CFE8-577A-4891-A657-494E4697C5CC@iotecdigital.com> Message-ID: <914BA126-C13D-489A-8313-4FA2D5C44985@iotecdigital.com> I should have mentioned, you need Acrobat for this, Reader won't do it, and any Acrobat alternative would need to be able to run javascripts. Bob S > On Oct 10, 2018, at 08:16 , Bob Sneidar via use-livecode wrote: > > Have you heard of my app? :-) > > What I do on a Mac is tell Acrobat (via Applescript) to create an fdf file which is an xml formatted file of all the values in the form controls. I then have a function that parses that file into a livecode array. Windows is trickier, because you cannot tell acrobat for windows to do anything from outisde without going through a C API that Adobe provides for that purpose. > > If however your workflow allows for a user interaction, then you can just create an action to run a javascript. Here's the code: > > this.exportAsFDF(true, true, null, false); > > Once you have that file, I can send you the code I use to parse it. > > Bob S > > >> On Oct 10, 2018, at 08:03 , Stephen Barncard via use-livecode wrote: >> >> before wheel invention it might be prudent to see how the existing apps do >> this. >> especially if this is a one shot. >> >> https://pdf.wondershare.com/top-pdf-software/free-pdf-to-csv-converter.html >> -- >> Stephen Barncard - Sebastopol Ca. USA - >> mixstream.org >> >> >> On Wed, Oct 10, 2018 at 7:45 AM Peter Reid via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Does anyone have any code or suggestions for reading the data from PDF >>> forms? I have several hundred form fields in 5 different design forms in >>> PDF format that I need to extract. The data is mainly text fields but may >>> include a few checkboxes and radio buttons. Any thoughts please? >>> >>> Thanks >>> >>> Peter >>> -- >>> Peter Reid >>> Loughborough, UK > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ludovic.thebault at laposte.net Wed Oct 10 11:23:24 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Wed, 10 Oct 2018 17:23:24 +0200 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: <914BA126-C13D-489A-8313-4FA2D5C44985@iotecdigital.com> References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> <31D1CFE8-577A-4891-A657-494E4697C5CC@iotecdigital.com> <914BA126-C13D-489A-8313-4FA2D5C44985@iotecdigital.com> Message-ID: <75BDBAF5-68F5-48FC-AA32-61007C2E71ED@laposte.net> On macOS, try PDFzone (on the App Store). Great app. From paul at researchware.com Wed Oct 10 11:29:52 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Oct 2018 11:29:52 -0400 Subject: How to tell if a file path is just the path or includes a file name Message-ID: <255a87d6-fc92-c0b1-0261-5a48e109ea6b@researchware.com> Lets say you have a bunch of file paths - some are just paths (all folders) and some end in a file name (and the file may or may not exist). i.e. /Folder1/Folder2/Folder3 /Folder1/AnotherFolder/Somefile.txt /Folder1/Folder2/Folderwith.intheName How would you test to tell whether a given record is just a path of folders or contains a file name? Is there any way other than looping through the path and testing if each "folder" exists? All, I can come up with is: function isPath pSomePath ? local tJustAPath = true ? set itemDel to slash ? repeat with i=1 to the number of items in pSomePath ? ? if there is not a folder (item 1 to i of pSomePath) then ?? ?? put false into tJustAPath ?? ?? exit repeat ??? end if ? end repeat ? return tJustAPath end isPath Is there some OS of LiveCode trick I am missing? From bobsneidar at iotecdigital.com Wed Oct 10 11:38:38 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Oct 2018 15:38:38 +0000 Subject: How to tell if a file path is just the path or includes a file name In-Reply-To: <255a87d6-fc92-c0b1-0261-5a48e109ea6b@researchware.com> References: <255a87d6-fc92-c0b1-0261-5a48e109ea6b@researchware.com> Message-ID: there is a folder returns false on Mac if it's a file. Unless the file is a bundle (app). A Mac app is in fact a folder that has been flagged as an application. Looking at your code, are you trying to extract the paths to all the files, or determine which are folders inside a given path? If you are just trying to determine if a path is just a folder, then there is a folder will return false if it is a path to a file. Bob S > On Oct 10, 2018, at 08:29 , Paul Dupuis via use-livecode wrote: > > Lets say you have a bunch of file paths - some are just paths (all > folders) and some end in a file name (and the file may or may not exist). > i.e. > /Folder1/Folder2/Folder3 > /Folder1/AnotherFolder/Somefile.txt > /Folder1/Folder2/Folderwith.intheName > How would you test to tell whether a given record is just a path of > folders or contains a file name? Is there any way other than looping > through the path and testing if each "folder" exists? > All, I can come up with is: > function isPath pSomePath > local tJustAPath = true > set itemDel to slash > repeat with i=1 to the number of items in pSomePath > if there is not a folder (item 1 to i of pSomePath) then > put false into tJustAPath > exit repeat > end if > end repeat > return tJustAPath > end isPath > > Is there some OS of LiveCode trick I am missing? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed Oct 10 11:52:14 2018 From: paul at researchware.com (Paul Dupuis) Date: Wed, 10 Oct 2018 11:52:14 -0400 Subject: How to tell if a file path is just the path or includes a file name In-Reply-To: References: <255a87d6-fc92-c0b1-0261-5a48e109ea6b@researchware.com> Message-ID: <23a1cef7-e382-1c06-f95d-97d296ae0e3b@researchware.com> Duh, you are right. No loop is needed for what I want! function isPath pSomePath ? set itemDel to slash ? if there is not a folder pSomePath then ??? -- remove the last item and try again ??? delete last item of pSomePath ??? if there is not a folder pSomePath then ?????? return false -- neither the path, nor the path less a filename, is a valid folder path ??? end if ? end if ? return pSomePath -- this is either a valid path of folders or the folder portion of a path with a file name removed end is Path Thank you. ?? On 10/10/2018 11:38 AM, Bob Sneidar via use-livecode wrote: > there is a folder returns false on Mac if it's a file. Unless the file is a bundle (app). A Mac app is in fact a folder that has been flagged as an application. > > Looking at your code, are you trying to extract the paths to all the files, or determine which are folders inside a given path? If you are just trying to determine if a path is just a folder, then there is a folder will return false if it is a path to a file. > > Bob S > > >> On Oct 10, 2018, at 08:29 , Paul Dupuis via use-livecode wrote: >> >> Lets say you have a bunch of file paths - some are just paths (all >> folders) and some end in a file name (and the file may or may not exist). >> i.e. >> /Folder1/Folder2/Folder3 >> /Folder1/AnotherFolder/Somefile.txt >> /Folder1/Folder2/Folderwith.intheName >> How would you test to tell whether a given record is just a path of >> folders or contains a file name? Is there any way other than looping >> through the path and testing if each "folder" exists? >> All, I can come up with is: >> function isPath pSomePath >> local tJustAPath = true >> set itemDel to slash >> repeat with i=1 to the number of items in pSomePath >> if there is not a folder (item 1 to i of pSomePath) then >> put false into tJustAPath >> exit repeat >> end if >> end repeat >> return tJustAPath >> end isPath >> >> Is there some OS of LiveCode trick I am missing? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mark.laffoon at mac.com Wed Oct 10 11:53:30 2018 From: mark.laffoon at mac.com (Mark) Date: Wed, 10 Oct 2018 08:53:30 -0700 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> Message-ID: I have used https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ server version in the past. Mark On Oct 10, 2018, 8:48 AM -0700, Peter Reid via use-livecode , wrote: > Does anyone have any code or suggestions for reading the data from PDF forms? I have several hundred form fields in 5 different design forms in PDF format that I need to extract. The data is mainly text fields but may include a few checkboxes and radio buttons. Any thoughts please? > > Thanks > > Peter > -- > Peter Reid > Loughborough, UK > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ingar.roggen at sosiologi.uio.no Wed Oct 10 11:53:46 2018 From: ingar.roggen at sosiologi.uio.no (Ingar Roggen) Date: Wed, 10 Oct 2018 15:53:46 +0000 Subject: Community widgets In-Reply-To: References: Message-ID: Why not write a HyperCard-app to make the excellent SheepShaver solution freegy and generally accessible? Sendt fra min iPhone > 10. okt. 2018 kl. 11:48 skrev hh via use-livecode : > > The following community widgets are now available as > "fat" widgets, that is they are installed or removed > for both LC 8 and 9 and they work identically in both. > > All widgets are available on "Sample Stacks" or via > livecodeshare (as given below). > > An asterisk (*) indicates a new feature (and/or a > removed bug). All rotatable widgets have the > click-through-transparency property. > > [9] OrientedText v152 (published Oct 10, 2018) > ... http://livecodeshare.runrev.com/stack/910 > > [8] Progress v130* (published Oct 10, 2018) > ... http://livecodeshare.runrev.com/stack/909 > > [7] Polygon v121 (published Oct 10, 2018) > ... http://livecodeshare.runrev.com/stack/908 > > [6] DigitClock v121 (published Oct 10, 2018) > ... http://livecodeshare.runrev.com/stack/907 > > [5] ClockAround v122* (published Oct 10, 2018) > ... http://livecodeshare.runrev.com/stack/906 > > [4] SVGText v152* (published Oct 10, 2018) > ... http://livecodeshare.runrev.com/stack/905 > > [3] IconGrid v211 (published Oct 01, 2018) > ... http://livecodeshare.runrev.com/stack/904 > > [2] DatePicker v109 (published Oct 01, 2018) > ... http://livecodeshare.runrev.com/stack/903 > > [1] ColorPicker v102 (published Oct 01, 2018) > ... http://livecodeshare.runrev.com/stack/901 > > The widgets above are free for non-commercial use > and have the source code included. > For commercial use please give a (small) fee to > the LC developer help fund. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ingar.roggen at sosiologi.uio.no Wed Oct 10 11:54:44 2018 From: ingar.roggen at sosiologi.uio.no (Ingar Roggen) Date: Wed, 10 Oct 2018 15:54:44 +0000 Subject: Community widgets In-Reply-To: References: , Message-ID: Freely, of course Sendt fra min iPhone > 10. okt. 2018 kl. 17:54 skrev Ingar Roggen via use-livecode : > > Why not write a HyperCard-app to make the excellent SheepShaver solution freegy and generally accessible? > > Sendt fra min iPhone > >> 10. okt. 2018 kl. 11:48 skrev hh via use-livecode : >> >> The following community widgets are now available as >> "fat" widgets, that is they are installed or removed >> for both LC 8 and 9 and they work identically in both. >> >> All widgets are available on "Sample Stacks" or via >> livecodeshare (as given below). >> >> An asterisk (*) indicates a new feature (and/or a >> removed bug). All rotatable widgets have the >> click-through-transparency property. >> >> [9] OrientedText v152 (published Oct 10, 2018) >> ... http://livecodeshare.runrev.com/stack/910 >> >> [8] Progress v130* (published Oct 10, 2018) >> ... http://livecodeshare.runrev.com/stack/909 >> >> [7] Polygon v121 (published Oct 10, 2018) >> ... http://livecodeshare.runrev.com/stack/908 >> >> [6] DigitClock v121 (published Oct 10, 2018) >> ... http://livecodeshare.runrev.com/stack/907 >> >> [5] ClockAround v122* (published Oct 10, 2018) >> ... http://livecodeshare.runrev.com/stack/906 >> >> [4] SVGText v152* (published Oct 10, 2018) >> ... http://livecodeshare.runrev.com/stack/905 >> >> [3] IconGrid v211 (published Oct 01, 2018) >> ... http://livecodeshare.runrev.com/stack/904 >> >> [2] DatePicker v109 (published Oct 01, 2018) >> ... http://livecodeshare.runrev.com/stack/903 >> >> [1] ColorPicker v102 (published Oct 01, 2018) >> ... http://livecodeshare.runrev.com/stack/901 >> >> The widgets above are free for non-commercial use >> and have the source code included. >> For commercial use please give a (small) fee to >> the LC developer help fund. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Wed Oct 10 12:00:58 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Wed, 10 Oct 2018 09:00:58 -0700 Subject: Community widgets In-Reply-To: References: Message-ID: This is really nice stuff. I love the datepicker! Thanks so much for contributing to the community, Herman. hh? Bill William Prothero http://es.earthednet.org > On Oct 10, 2018, at 8:54 AM, Ingar Roggen via use-livecode wrote: > > Freely, of course > > Sendt fra min iPhone > >> 10. okt. 2018 kl. 17:54 skrev Ingar Roggen via use-livecode : >> >> Why not write a HyperCard-app to make the excellent SheepShaver solution freegy and generally accessible? >> >> Sendt fra min iPhone >> >>> 10. okt. 2018 kl. 11:48 skrev hh via use-livecode : >>> >>> The following community widgets are now available as >>> "fat" widgets, that is they are installed or removed >>> for both LC 8 and 9 and they work identically in both. >>> >>> All widgets are available on "Sample Stacks" or via >>> livecodeshare (as given below). >>> >>> An asterisk (*) indicates a new feature (and/or a >>> removed bug). All rotatable widgets have the >>> click-through-transparency property. >>> >>> [9] OrientedText v152 (published Oct 10, 2018) >>> ... http://livecodeshare.runrev.com/stack/910 >>> >>> [8] Progress v130* (published Oct 10, 2018) >>> ... http://livecodeshare.runrev.com/stack/909 >>> >>> [7] Polygon v121 (published Oct 10, 2018) >>> ... http://livecodeshare.runrev.com/stack/908 >>> >>> [6] DigitClock v121 (published Oct 10, 2018) >>> ... http://livecodeshare.runrev.com/stack/907 >>> >>> [5] ClockAround v122* (published Oct 10, 2018) >>> ... http://livecodeshare.runrev.com/stack/906 >>> >>> [4] SVGText v152* (published Oct 10, 2018) >>> ... http://livecodeshare.runrev.com/stack/905 >>> >>> [3] IconGrid v211 (published Oct 01, 2018) >>> ... http://livecodeshare.runrev.com/stack/904 >>> >>> [2] DatePicker v109 (published Oct 01, 2018) >>> ... http://livecodeshare.runrev.com/stack/903 >>> >>> [1] ColorPicker v102 (published Oct 01, 2018) >>> ... http://livecodeshare.runrev.com/stack/901 >>> >>> The widgets above are free for non-commercial use >>> and have the source code included. >>> For commercial use please give a (small) fee to >>> the LC developer help fund. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Oct 10 12:29:16 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Oct 2018 11:29:16 -0500 Subject: Stacks whose names start with "rev" In-Reply-To: <841902D0-D0DD-4044-A3B2-5BCE34C2F09D@appisle.net> References: <91d53b28-0411-75ac-0930-456e700f9c6f@hyperactivesw.com> <713dc7f1-ef83-426a-a6b3-c8e4228f3e37@fourthworld.com> <841902D0-D0DD-4044-A3B2-5BCE34C2F09D@appisle.net> Message-ID: <1665ecf9b60.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Thanks very much Monte, that's exactly what I wanted to know. For simple editing it sounds like I could just turn off messages, open the stack from Finder, and turn messages back on, bypassing preOpenStack entirely. If that doesn't work you've given me a couple of other things to try. I'd still like to know the reason for the bizarre error warning, but one thing at a time. It was odd but wasn't a blocker. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 9, 2018 5:33:59 PM Monte Goulding via use-livecode wrote: > Hi Jacque > > I?m sorry I haven?t been following this whole thread so forgive me if my > responses have already been covered. > >> On 10 Oct 2018, at 6:22 am, Richard Gaskin via use-livecode >> wrote: >> >>>> If the cantEdit is false but the mode is reported as 2, that sounds >>>> like an engine bug. > > Don't you mean cantModify here? > > toplevel stacks that are ide stacks are forced to toplevel locked (mode 2). > We determine this through a stack custom property `ideOverride`. If that is > true when loading the stack from disk then it is set as an IDE stack. > Additionally there is a runtime property of stacks that you can set > `_ideoverride` that can turn this behavior on and off. > > Jacque?s issue is we have an IDE script that dynamically sets these in > revfrontsciptlibrary preOpenStack: > > if revIDEObjectIsOnIDEStack(tTarget) then > # IM-2016-03-01: [[ Bug 16244 ]] IDE stacks should always hide invisible > objects > set the showInvisibles of stack tStack to false > set the _ideoverride of stack tStack to true > end if > > It all hinges on a function in revcommonlibrary: > > function revStackNameIsIDEStack pStackName > if there is a stack pStackName and the _ideoverride of stack pStackName then > return true > else if pStackName is among the items of "message box,answer dialog,ask > dialog,home" then > return true > else if pStackName begins with "com.livecode." then > return true > else if pStackName is among the lines of revInternal__ListLoadedLibraries() > then > return true > else > return pStackName begins with "rev" > end if > end revStackNameIsIDEStack > > We could look at changing that to ensure the filename of the stack is an > IDE or plugin file path but in your case just patching that to set the > caseSensitive to true just before checking for ?rev? would cover it. > > Cheers > > Monte > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Wed Oct 10 12:50:57 2018 From: hh at hyperhh.de (hh) Date: Wed, 10 Oct 2018 18:50:57 +0200 Subject: Community widgets Message-ID: > Bill P. wrote: > I love the datepicker! Relating to the datepicker widget I should once again acknowledge the basic work of Elanor (calendar widget) and Bernd (additions to the calendar widget) and hints/comments by Bernd. [The algorithms I used are translated to LCB from the LCS of Raspi stack "calendar 1-3-6-12" (Aug 2015).] The main interesting thing for me when writing this widget was to see that the following is possible (and *very* comfortable in LCB): 1. Paint the canvas for a fixed fontSize (say 13) "pixel-exact". 2. Then use simply an affine transform to scale the display (you have to reverse the transform for the mouse positions to get the clicks). You set this transform via the property pickerScale. From bobsneidar at iotecdigital.com Wed Oct 10 13:16:39 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Oct 2018 17:16:39 +0000 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> Message-ID: <76015E9D-6706-4730-98DE-EA3226093029@iotecdigital.com> Doesn't seem to work. I enter this syntax in a terminal session: pdftk "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics Site Survey.pdf" output "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics Site Survey_data.fdf" generate_fdf Doesn't throw an error, just doesn't do anything. I have to ctrl-c to get my terminal back. Do you see any issue with my statement? Bob S > On Oct 10, 2018, at 08:53 , Mark via use-livecode wrote: > > I have used https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ server version in the past. > > Mark From ahsoftware at sonic.net Wed Oct 10 13:28:40 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 10 Oct 2018 10:28:40 -0700 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: <76015E9D-6706-4730-98DE-EA3226093029@iotecdigital.com> References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> <76015E9D-6706-4730-98DE-EA3226093029@iotecdigital.com> Message-ID: On 10/10/2018 10:16 AM, Bob Sneidar via use-livecode wrote: > Doesn't seem to work. I enter this syntax in a terminal session: > > pdftk "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics Site Survey.pdf" output "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics Site Survey_data.fdf" generate_fdf > > Doesn't throw an error, just doesn't do anything. I have to ctrl-c to get my terminal back. Do you see any issue with my statement? Dunno. But I'd immediately suspect the spaces in the pathnames. -- Mark Wieder ahsoftware at gmail.com From mark.laffoon at mac.com Wed Oct 10 13:32:05 2018 From: mark.laffoon at mac.com (Mark) Date: Wed, 10 Oct 2018 10:32:05 -0700 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> <76015E9D-6706-4730-98DE-EA3226093029@iotecdigital.com> Message-ID: <2af6e308-129f-4ee6-bc5e-a2d4b040ee28@Spark> Have you tried leaving off the output filename? Should dump it to stdout then. Mark On Oct 10, 2018, 10:29 AM -0700, Mark Wieder via use-livecode , wrote: > On 10/10/2018 10:16 AM, Bob Sneidar via use-livecode wrote: > > Doesn't seem to work. I enter this syntax in a terminal session: > > > > pdftk "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics Site Survey.pdf" output "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics Site Survey_data.fdf" generate_fdf > > > > Doesn't throw an error, just doesn't do anything. I have to ctrl-c to get my terminal back. Do you see any issue with my statement? > > Dunno. But I'd immediately suspect the spaces in the pathnames. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 10 13:33:01 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Oct 2018 17:33:01 +0000 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> <76015E9D-6706-4730-98DE-EA3226093029@iotecdigital.com> Message-ID: <139F952F-8851-4D44-B987-C9413CCD063C@iotecdigital.com> That's why I enclosed them in quotes. Dragging the files into the terminal creted paths with delimited spaces, but I got the same result. Bob S > On Oct 10, 2018, at 10:28 , Mark Wieder via use-livecode wrote: > > On 10/10/2018 10:16 AM, Bob Sneidar via use-livecode wrote: >> Doesn't seem to work. I enter this syntax in a terminal session: >> pdftk "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics Site Survey.pdf" output "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics Site Survey_data.fdf" generate_fdf >> Doesn't throw an error, just doesn't do anything. I have to ctrl-c to get my terminal back. Do you see any issue with my statement? > > Dunno. But I'd immediately suspect the spaces in the pathnames. > > -- > Mark Wieder From bobsneidar at iotecdigital.com Wed Oct 10 13:38:52 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 10 Oct 2018 17:38:52 +0000 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: <2af6e308-129f-4ee6-bc5e-a2d4b040ee28@Spark> References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> <76015E9D-6706-4730-98DE-EA3226093029@iotecdigital.com> <2af6e308-129f-4ee6-bc5e-a2d4b040ee28@Spark> Message-ID: <95EFDE8B-2480-4A96-BCFC-3AFEA10D0134@iotecdigital.com> Still locks up. I have an email in to the guy who maintains it. I just thought if someone had this working they could provide me with proper syntax. I cannot get the prompt working either. This from the man page: pdftk [ input_pw ] [ ] [ output ] I'm not that good at internreting man page syntax. I have yet to get it right one single time. :-) Bob S > On Oct 10, 2018, at 10:32 , Mark via use-livecode wrote: > > Have you tried leaving off the output filename? Should dump it to stdout then. > > Mark From jacque at hyperactivesw.com Wed Oct 10 15:40:01 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Oct 2018 14:40:01 -0500 Subject: Stacks whose names start with "rev" In-Reply-To: <1665ecf9b60.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <91d53b28-0411-75ac-0930-456e700f9c6f@hyperactivesw.com> <713dc7f1-ef83-426a-a6b3-c8e4228f3e37@fourthworld.com> <841902D0-D0DD-4044-A3B2-5BCE34C2F09D@appisle.net> <1665ecf9b60.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <719d0119-a2a0-e29a-61e5-651770892418@hyperactivesw.com> For anyone following this, simply opening the stack with messages turned off doesn't work for very long. As soon as you perform any significant action (click a control, change cards, etc.) the stack is reset to mode 2. But doing this in the message box does persist: set the _ideoverride of stack to false On 10/10/18 11:29 AM, J. Landman Gay via use-livecode wrote: > Thanks very much Monte, that's exactly what I wanted to know. For simple > editing it sounds like I could just turn off messages, open the stack > from Finder, and turn messages back on, bypassing preOpenStack entirely. > If that doesn't work you've given me a couple of other things to try. > > I'd still like to know the reason for the bizarre error warning, but one > thing at a time. It was odd but wasn't a blocker. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On October 9, 2018 5:33:59 PM Monte Goulding via use-livecode > wrote: > >> Hi Jacque >> >> I?m sorry I haven?t been following this whole thread so forgive me if >> my responses have already been covered. >> >>> On 10 Oct 2018, at 6:22 am, Richard Gaskin via use-livecode >>> wrote: >>> >>>>> If the cantEdit is false but the mode is reported as 2, that sounds >>>>> like an engine bug. >> >> Don't you mean cantModify here? >> >> toplevel stacks that are ide stacks are forced to toplevel locked >> (mode 2). We determine this through a stack custom property >> `ideOverride`. If that is true when loading the stack from disk then >> it is set as an IDE stack. Additionally there is a runtime property of >> stacks that you can set `_ideoverride` that can turn this behavior on >> and off. >> >> Jacque?s issue is we have an IDE script that dynamically sets these in >> revfrontsciptlibrary preOpenStack: >> >> ? if revIDEObjectIsOnIDEStack(tTarget) then >> ???? # IM-2016-03-01: [[ Bug 16244 ]] IDE stacks should always hide >> invisible ???? objects >> ???? set the showInvisibles of stack tStack to false >> ???? set the _ideoverride of stack tStack to true >> ? end if >> >> It all hinges on a function in revcommonlibrary: >> >> function revStackNameIsIDEStack pStackName >> ? if there is a stack pStackName and the _ideoverride of stack >> pStackName then >> ???? return true >> ? else if pStackName is among the items of "message box,answer >> dialog,ask ? dialog,home" then >> ???? return true >> ? else if pStackName begins with "com.livecode." then >> ???? return true >> ? else if pStackName is among the lines of >> revInternal__ListLoadedLibraries() ? then >> ???? return true >> ? else >> ???? return pStackName begins with "rev" >> ? end if >> end revStackNameIsIDEStack >> >> We could look at changing that to ensure the filename of the stack is >> an IDE or plugin file path but in your case just patching that to set >> the caseSensitive to true just before checking for ?rev? would cover it. >> >> Cheers >> >> Monte >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From curry at pair.com Thu Oct 11 06:41:24 2018 From: curry at pair.com (Curry Kenworthy) Date: Thu, 11 Oct 2018 06:41:24 -0400 Subject: ANN: WordLib 2.2 Release is Available + LC Blog Post Message-ID: <8bc20516-7e99-c371-b91b-b4bd68637dde@pair.com> Hello Folks, Finally a version update! :) WordLib 2.2 is packed with new goodies: it provides tab align to the extent that it is supported in LiveCode (and a little further), a fix for a less-common type of line break that will help anyone who uses Apple Dictate, more accurate import of text fonts and styles, better import of images and other content in third-party docx files written by other word processors and document creators, a fix for duplicated content in text boxes, updates to the demo stack and test documents, and outstanding MS Word document support for LiveCode 6.7 to 9.x and beyond! (For new users: WordLib imports MS Word and Open Office documents right into your LiveCode fields. This is all done natively without relying on any other software, API, or interface to do the job. You just need LiveCode, WordLib, a document, and a field. Any platform. One line of code. You're done.) Check it out, download, and purchase at your choice of the two stores. Here's the LiveCode blog post and extension store: LC Blog: https://livecode.com/wordlib-update-released/ LC Store: https://livecode.com/extensions/#creator=curry-kenworthy And here's my own addon web site and store: CK Web: http://livecodeaddons.com/ CK Store: http://store.esellerate.net/s.aspx?s=STR3897026475 Go to livecode.com or Curry's livecodeaddons.com and start using WordLib 2.2 in your LiveCode projects today. Current license holders, be sure to take advantage of the upgrade discount for this version; you deserve it. USD Price is $79 for initial full purchase and $35 for upgrade. (For some reason, from my own location here in Florida the LC store always displays $94.01, LC is looking into that on their end - but rest assured, when you 'Buy Now' the correct pricing will show; I just tried it. Both stores have an upgrade discount option. If you need a 1.x or 2.0 code for previous versions, that's available at the store too.) There are some amazing people in the LiveCode community without whom WordLib would never have come this far. Thanks as always, and keep making awesome LiveCode projects! More addon updates will be on the release conveyer belt coming your way... maybe one or two exciting new "gamechanging" products too, once the updates are taken care of. ;) Best wishes, Curry Kenworthy WordLib: Take charge of MS Word and OpenOffice documents SpreadLib: "Excel-lent" spreadsheet import/export for LC http://livecodeaddons.com/ From lists at mangomultimedia.com Thu Oct 11 11:40:49 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 11 Oct 2018 10:40:49 -0500 Subject: [Hacktoberfest] Improving Hi-DPI support on Windows as a Community Message-ID: Hi all, Recently I've been investigating Hi-DPI related issues in the LC Windows implementation. I thought about pestering the LC team (or paying them) to prioritize these fixes, but then I realized it was October and I came up with a different idea. In the spirit of Hacktoberfest I thought it would be nice to try and organize a community effort around some improvements that could be made to Hi-DPI support on Windows. For those who aren't familiar with Hacktoberfest you can read more about it at the url below. [Side note: submitting PRs for LC documentation updates is a great way to earn a T-shirt. https://hacktoberfest.digitalocean.com -------------------------? Background ?-?-?-?-?-?-?- LiveCode added support for Hi-DPI monitors almost 5 years ago. This is when they added properties such as usePixelScaling, screenPixelScale, screenPixelScales, etc. At the time, Windows had support for System DPI Awareness. After LC added support Windows changed the APIs to support different resolutions on each monitor. This is referred to as PerMonitor API Awareness. This was in Windows 8.1. The APIs were further improved in Windows 10. LiveCode needs to be updated to support these newer APIs. I'm aware of the following limitations and bugs around Hi-DPI support on Windows: 1. The `screenPixelScales` reports the pixelScale of the primary monitor for all attached monitors. For example, if you have a Windows 10 computer with two monitors attached and the primary monitor is set to displays at 100% (1.0 pixelScale) and a second monitor at 200% (2.0 pixelScale) then the `screenPixelScales` returns `1.0\n1.0` when it should return `1.0\n2.0`. https://quality.livecode.com/show_bug.cgi?id=19542 2. minWidth/minHeight/maxWidth/maxHeight are not handled properly on monitors with a pixelScale > 1.0. https://quality.livecode.com/show_bug.cgi?id=14314 --------------------?-?- Fixing these issues in the LC Community -------------------------? I think we can muster the LC Community troops and figure out how to fix these issues. I spent some time the other day doing some research in an attempt to figure out what needs to be done. I?ve been looking through the source code and reviewing the Windows API docs on the web in order to better understand the API changes required for switching from System DPI Awareness to PerMonitor API Awareness in LiveCode. I?ve looked at the [[ HiDPI ]] commits on GitHub and these two seem the most pertinent. They contain the changes to the source code when the pixel scale properties were added and the changes made specifically for Windows implementation. https://github.com/livecode/livecode/commit/1373bfdb7dc267d86e1a66953dce78d2046824d4 https://github.com/livecode/livecode/commit/27f65afb96de93873a435525fb684ff704abc575 This docs page on Microsoft's site is a nice introduction DPI Awareness: https://docs.microsoft.com/en-us/windows/desktop/hidpi/high-dpi-desktop-application-development-on-windows#per-monitor-and-per-monitor-v2-dpi-awareness Here are some notes I made in my research: - I think that responding to the WM_DPICHANGED message to update windows when DPI for a monitor changes should be pretty straightforward. I think the MCDispatch::reopen_stack_windows() function in dispatch.cpp would handle that as it is what is called when setting the pixelscale. - I?m not sure about the switch from GetDpiForMonitor() to GetDpiForWindow(). I would hope that if the LiveCode w32-manifest-template-dpiaware.xml manifest were updated to include the PerMonitor node that GetDpiForMonitor() would return the proper pixel_scale in w32dce.cpp > DescribeMonitorsCallback. If so then screenPixelScales may just start working. --------------------?-?- What is needed? -------------------------? In order to pull this off we would need some developers who are set up to compile LC 9 on Windows and who are familiar with working with the Windows APIs (C++). We also need people willing to test and review proposed code changes and make sure we aren't missing anything. I can provide a private Slack channel with audio/video/screen sharing capabilities for a small group. I have some unused guests on my company account that I can access for the duration of this project. I am not set up to compile LC on Windows at this time. Please respond to this thread if you are interested and have one or more of the skills necessary to try and pull this off. I'm sure we could poke the LC engineers for tips if we get stuck anywhere along the way. -- Trevor DeVore ScreenSteps www.screensteps.com From jjs at krutt.org Thu Oct 11 12:21:21 2018 From: jjs at krutt.org (JJS) Date: Thu, 11 Oct 2018 18:21:21 +0200 Subject: can you read this Message-ID: <1c112fc0-cf2e-5b4a-bd02-fda3d2dbdc93@krutt.org> can you read this? From jjs at krutt.org Thu Oct 11 12:23:17 2018 From: jjs at krutt.org (JJS) Date: Thu, 11 Oct 2018 18:23:17 +0200 Subject: can you read this In-Reply-To: <1c112fc0-cf2e-5b4a-bd02-fda3d2dbdc93@krutt.org> References: <1c112fc0-cf2e-5b4a-bd02-fda3d2dbdc93@krutt.org> Message-ID: <82382778-054f-1b36-e2be-12c8d76986b5@krutt.org> wow, that's the first time i can see it myself too. All other replies were rejected somehow. Ciao! Sphere. Op 11-10-2018 om 18:21 schreef JJS via use-livecode: > can you read this? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Oct 11 12:50:04 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Oct 2018 09:50:04 -0700 Subject: Stacks whose names start with "rev" In-Reply-To: <719d0119-a2a0-e29a-61e5-651770892418@hyperactivesw.com> References: <719d0119-a2a0-e29a-61e5-651770892418@hyperactivesw.com> Message-ID: J. Landman Gay wrote: > For anyone following this, simply opening the stack with messages > turned off doesn't work for very long. As soon as you perform any > significant action (click a control, change cards, etc.) the stack > is reset to mode > 2. But doing this in the message box does persist: > > set the _ideoverride of stack to false Good to know. Thanks. @Monte: Now that there's a property-driven solution in place, can we be done with the limitation of "rev*" names? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From gcanyon at gmail.com Thu Oct 11 15:11:20 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 11 Oct 2018 12:11:20 -0700 Subject: Confirming a thing about IDs Message-ID: I had never tried this before. It seems to work, but I figured I'd run it by the list, both as a way of confirming and informing. Is it accurate that id of stack "" is a complete and unique identifier for any control? (with the exception for fields noted below) For example, suppose there is a button in a group in a group that is a background in stack "untitled 1". Further, suppose that background is not placed on the current (or any) card in stack "untitled 1". Then the long id of the button might be: button id 1003 of group id 1004 of bkgnd id 1006 of stack "Untitled 1" But, for example, this returns true: put there is a button id 1003 of stack "untitled 1" And as far as I know, there will never be any other button with id 1003 in that stack. So button id 1003 of stack "untitled 1" is a unique and permanent id for that button, no matter what card, group, or background it is in/on or not. Is this correct? (mind blown if it is) And of course I recognize that in the unique(?) case of a field with sharedText set to false, the rest of the id could matter as far as the htmlText, text, and rtfText are concerned. I just tested, and it seems that in that case the groups are still irrelevant, and an ID like put the text of fld id 1007 of card id 1014 of stack "untitled 1" returns the text associated with that card, if the field exists on that card, and an error if it doesn't, but if the stack is currently on a card where the field doesn't exist, then (amazingly enough) this id put the text of fld id 1007 of stack "untitled 1" will return the text that last existed in that field on that card! In other words, place the background with the field on card 1 of a stack. Put "This is surprising" into the field. Remove the background from card 1. Then the text of the field of the stack will be "This is surprising" even though the field is no longer on card 1. So for all purposes, is an ID like this sufficient? id of stack "" with this for fields if accessing text: field id of card id of stack "" From brian at milby7.com Thu Oct 11 15:37:40 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 11 Oct 2018 14:37:40 -0500 Subject: Confirming a thing about IDs In-Reply-To: References: Message-ID: <018f60c4-928b-4b24-b754-934030cd639d@Spark> That is what my ScriptTracker uses to build unique file names for the script of all controls (but I start with the stack). If a card containing a certain shared group has not been visited, then the group must be referenced using background instead of group. For this reason, I use ?bkgnd? to identify any shared group. The background text issue is (was) actually a bug in the compact stack routine that should be fixed in 9.0.1 now. After you compact a stack (or save), then those extra contents should be gone. But you can still recover the text if you just remove it from a card and then place it before a compact is performed. Thanks, Brian On Oct 11, 2018, 2:12 PM -0500, Geoff Canyon via use-livecode , wrote: > I had never tried this before. It seems to work, but I figured I'd run it > by the list, both as a way of confirming and informing. > > Is it accurate that > > id of stack "" > > is a complete and unique identifier for any control? (with the exception > for fields noted below) > > For example, suppose there is a button in a group in a group that is a > background in stack "untitled 1". Further, suppose that background is not > placed on the current (or any) card in stack "untitled 1". Then the long id > of the button might be: > > button id 1003 of group id 1004 of bkgnd id 1006 of stack "Untitled 1" > > But, for example, this returns true: > > put there is a button id 1003 of stack "untitled 1" > > And as far as I know, there will never be any other button with id 1003 in > that stack. So > > button id 1003 of stack "untitled 1" > > is a unique and permanent id for that button, no matter what card, group, > or background it is in/on or not. > > Is this correct? (mind blown if it is) > > And of course I recognize that in the unique(?) case of a field with > sharedText set to false, the rest of the id could matter as far as the > htmlText, text, and rtfText are concerned. I just tested, and it seems that > in that case the groups are still irrelevant, and an ID like > > put the text of fld id 1007 of card id 1014 of stack "untitled 1" > > returns the text associated with that card, if the field exists on that > card, and an error if it doesn't, but if the stack is currently on a card > where the field doesn't exist, then (amazingly enough) this id > > put the text of fld id 1007 of stack "untitled 1" > > will return the text that last existed in that field on that card! In other > words, place the background with the field on card 1 of a stack. Put "This > is surprising" into the field. Remove the background from card 1. Then the > text of the field of the stack will be "This is surprising" even though the > field is no longer on card 1. > > So for all purposes, is an ID like this sufficient? > > id of stack "" > > with this for fields if accessing text: > > field id of card id of stack "" > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 11 15:45:32 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Oct 2018 19:45:32 +0000 Subject: Confirming a thing about IDs In-Reply-To: References: Message-ID: This is true, until you copy the control and paste it elsewhere, or copy/clone a group or card it belongs to and paste it elsewhere. The stack has an auto incrementing ID, and any time a new object is created it gets that ID, and the stack ID is incremented by 1. This is a blessing and a curse. You have to think if it as the ID of the INSTANCE of an object. For instance (no pun intended) every time a datagrid redraws, it creates all new objects, and each object gets the next ID. I think my project has IDs in the millions now. I'm not sure if there is a limit for these IDs. When datagrids first came out, this was a discussion that was had, about what would happen if a stack eventually reached this limit. However, I think the limit is so incredibly high that it is extremely unlikely. Bob S > On Oct 11, 2018, at 12:11 , Geoff Canyon via use-livecode wrote: > > I had never tried this before. It seems to work, but I figured I'd run it > by the list, both as a way of confirming and informing. > > Is it accurate that > > id of stack "" > > is a complete and unique identifier for any control? (with the exception > for fields noted below) > > For example, suppose there is a button in a group in a group that is a > background in stack "untitled 1". Further, suppose that background is not > placed on the current (or any) card in stack "untitled 1". Then the long id > of the button might be: > > button id 1003 of group id 1004 of bkgnd id 1006 of stack "Untitled 1" > > But, for example, this returns true: > > put there is a button id 1003 of stack "untitled 1" > > And as far as I know, there will never be any other button with id 1003 in > that stack. So > > button id 1003 of stack "untitled 1" > > is a unique and permanent id for that button, no matter what card, group, > or background it is in/on or not. > > Is this correct? (mind blown if it is) From hh at hyperhh.de Thu Oct 11 16:10:21 2018 From: hh at hyperhh.de (hh) Date: Thu, 11 Oct 2018 22:10:21 +0200 Subject: Confirming a thing about IDs Message-ID: > Bob S. wrote: > I think my project has IDs in the millions now. OMG! From gcanyon at gmail.com Thu Oct 11 17:14:27 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 11 Oct 2018 14:14:27 -0700 Subject: Confirming a thing about IDs In-Reply-To: <018f60c4-928b-4b24-b754-934030cd639d@Spark> References: <018f60c4-928b-4b24-b754-934030cd639d@Spark> Message-ID: On Thu, Oct 11, 2018 at 12:38 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > That is what my ScriptTracker uses to build unique file names for the > script of all controls (but I start with the stack). > > If a card containing a certain shared group has not been visited, then the > group must be referenced using background instead of group. For this > reason, I use ?bkgnd? to identify any shared group. Not sure what you mean by this? I created a stack with a background/group id 1011. The group is placed on card 4 of the stack. Restart LC and re-open the stack, and this puts true: put there is a group id 1011 of stack "untitled 1" No card containing the group had been visited. This is on a Mac, LC 8.x gc From ahsoftware at sonic.net Thu Oct 11 17:15:33 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 11 Oct 2018 14:15:33 -0700 Subject: Confirming a thing about IDs In-Reply-To: References: Message-ID: On 10/11/2018 12:11 PM, Geoff Canyon via use-livecode wrote: > And as far as I know, there will never be any other button with id 1003 in > that stack. So > > button id 1003 of stack "untitled 1" > > is a unique and permanent id for that button, no matter what card, group, > or background it is in/on or not. > > Is this correct? (mind blown if it is) Not quite. Aside from cloning objects and the datagrid weirdness, as already mentioned, ids have been mutable for several years now. The only restrictions are that you can't have duplicate object ids in the same stack and that you can't decrease the id of a stack (it can only be increased). -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Thu Oct 11 17:19:14 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Oct 2018 21:19:14 +0000 Subject: Confirming a thing about IDs In-Reply-To: References: Message-ID: <48BE2829-05E1-4531-93DE-8A296A0227A6@iotecdigital.com> Mutable, as in the engine or IDE change it without user interaction??? Bob S > On Oct 11, 2018, at 14:15 , Mark Wieder via use-livecode wrote: > > Not quite. Aside from cloning objects and the datagrid weirdness, as already mentioned, ids have been mutable for several years now. From gcanyon at gmail.com Thu Oct 11 17:32:52 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 11 Oct 2018 14:32:52 -0700 Subject: Confirming a thing about IDs In-Reply-To: References: Message-ID: I guess I should have said, "as unique as the standard 'long id' form of identification" meaning that there is no circumstance where the long id will resolve correctly, but id of stack "" will fail, or field id of card id of stack "" will fail. I understand that there is no such thing as a permanent id in LC. On Thu, Oct 11, 2018 at 2:15 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/11/2018 12:11 PM, Geoff Canyon via use-livecode wrote: > > > And as far as I know, there will never be any other button with id 1003 > in > > that stack. So > > > > button id 1003 of stack "untitled 1" > > > > is a unique and permanent id for that button, no matter what card, group, > > or background it is in/on or not. > > > > Is this correct? (mind blown if it is) > > Not quite. Aside from cloning objects and the datagrid weirdness, as > already mentioned, ids have been mutable for several years now. The only > restrictions are that you can't have duplicate object ids in the same > stack and that you can't decrease the id of a stack (it can only be > increased). > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Thu Oct 11 17:35:43 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 11 Oct 2018 14:35:43 -0700 Subject: Confirming a thing about IDs In-Reply-To: <48BE2829-05E1-4531-93DE-8A296A0227A6@iotecdigital.com> References: <48BE2829-05E1-4531-93DE-8A296A0227A6@iotecdigital.com> Message-ID: <7f5347c0-9db7-2195-7e56-66e8f8e4e8ce@sonic.net> On 10/11/2018 02:19 PM, Bob Sneidar via use-livecode wrote: > Mutable, as in the engine or IDE change it without user interaction??? No, you have to work at it explicitly. I'm sorry to say that I pushed for this some years ago in a misguided assumption that this would help advance the cause of version control. That allowed me to reconstruct objects from script, then Monte came up with a different and better solution, and then they both got rejected. So now you can assign and change object ids and it still won't do you any good. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Thu Oct 11 17:40:38 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 11 Oct 2018 16:40:38 -0500 Subject: Confirming a thing about IDs In-Reply-To: References: <018f60c4-928b-4b24-b754-934030cd639d@Spark> Message-ID: > > > If a card containing a certain shared group has not been visited, then > the > > group must be referenced using background instead of group. For this > > reason, I use ?bkgnd? to identify any shared group. > > Not sure what you mean by this? I created a stack with a background/group > id 1011. The group is placed on card 4 of the stack. Restart LC and re-open > the stack, and this puts true: > > put there is a group id 1011 of stack "untitled 1" > > No card containing the group had been visited. This is on a Mac, LC 8.x > > gc > > I did not phrase that well (and had the details wrong). What actually happens is that the returned long ID of objects in shared groups changes depending on whether a card containing that group has been visited. If a card has been visited, then "group id x of card id y" is returned. If not, then "bkgnd id x" is returned. Probably not an issue for most, but if looking to generate long IDs that are always the same for a given object then it is. From gcanyon at gmail.com Thu Oct 11 17:48:24 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 11 Oct 2018 14:48:24 -0700 Subject: Confirming a thing about IDs In-Reply-To: References: <018f60c4-928b-4b24-b754-934030cd639d@Spark> Message-ID: Ah, okay -- I have somewhat the same issue in Navigator. Wouldn't group id of stack "" always work? On Thu, Oct 11, 2018 at 2:40 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > > If a card containing a certain shared group has not been visited, then > > the > > > group must be referenced using background instead of group. For this > > > reason, I use ?bkgnd? to identify any shared group. > > > > Not sure what you mean by this? I created a stack with a background/group > > id 1011. The group is placed on card 4 of the stack. Restart LC and > re-open > > the stack, and this puts true: > > > > put there is a group id 1011 of stack "untitled 1" > > > > No card containing the group had been visited. This is on a Mac, LC 8.x > > > > gc > > > > > I did not phrase that well (and had the details wrong). What actually > happens is that the returned long ID of objects in shared groups changes > depending on whether a card containing that group has been visited. If a > card has been visited, then "group id x of card id y" is returned. If not, > then "bkgnd id x" is returned. Probably not an issue for most, but if > looking to generate long IDs that are always the same for a given object > then it is. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Thu Oct 11 17:52:16 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 11 Oct 2018 14:52:16 -0700 Subject: Confirming a thing about IDs In-Reply-To: <7f5347c0-9db7-2195-7e56-66e8f8e4e8ce@sonic.net> References: <48BE2829-05E1-4531-93DE-8A296A0227A6@iotecdigital.com> <7f5347c0-9db7-2195-7e56-66e8f8e4e8ce@sonic.net> Message-ID: On Thu, Oct 11, 2018 at 2:36 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/11/2018 02:19 PM, Bob Sneidar via use-livecode wrote: > > Mutable, as in the engine or IDE change it without user interaction??? > > No, you have to work at it explicitly. I'm sorry to say that I pushed > for this some years ago in a misguided assumption that this would help > advance the cause of version control. That allowed me to reconstruct > objects from script, then Monte came up with a different and better > solution, and then they both got rejected. So now you can assign and > change object ids and it still won't do you any good. > There have been multiple export/import functions written (I wrote one of the first, about 15(?) years ago). Granted that it's not the integrated solution you would hope for, how does it fall short of allowing version control of project configuration? From brian at milby7.com Thu Oct 11 17:58:15 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 11 Oct 2018 16:58:15 -0500 Subject: Confirming a thing about IDs In-Reply-To: References: <018f60c4-928b-4b24-b754-934030cd639d@Spark> Message-ID: <8f850713-8033-4adf-b164-2153735777a0@Spark> That works to touch the object, but I am recording a long ID and long name in the exported script comment header. For background groups I didn?t want the card in there since the group could be on multiple. If I left it in, then the reported long ID would change depending on the last card containing the group that was visited. So I adjust the value to be consistent. I also swap out the stack path and use the name. Thanks, Brian On Oct 11, 2018, 4:49 PM -0500, Geoff Canyon via use-livecode , wrote: > Ah, okay -- I have somewhat the same issue in Navigator. Wouldn't > > group id of stack "" > > always work? > > On Thu, Oct 11, 2018 at 2:40 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > > > > If a card containing a certain shared group has not been visited, then > > > the > > > > group must be referenced using background instead of group. For this > > > > reason, I use ?bkgnd? to identify any shared group. > > > > > > Not sure what you mean by this? I created a stack with a background/group > > > id 1011. The group is placed on card 4 of the stack. Restart LC and > > re-open > > > the stack, and this puts true: > > > > > > put there is a group id 1011 of stack "untitled 1" > > > > > > No card containing the group had been visited. This is on a Mac, LC 8.x > > > > > > gc > > > > > > > > I did not phrase that well (and had the details wrong). What actually > > happens is that the returned long ID of objects in shared groups changes > > depending on whether a card containing that group has been visited. If a > > card has been visited, then "group id x of card id y" is returned. If not, > > then "bkgnd id x" is returned. Probably not an issue for most, but if > > looking to generate long IDs that are always the same for a given object > > then it is. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 11 18:35:52 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 11 Oct 2018 22:35:52 +0000 Subject: Confirming a thing about IDs In-Reply-To: <8f850713-8033-4adf-b164-2153735777a0@Spark> References: <018f60c4-928b-4b24-b754-934030cd639d@Spark> <8f850713-8033-4adf-b164-2153735777a0@Spark> Message-ID: I see where you are going here. So placing a group on a card has the effect of actually copying the group to the new card? That is the only way I can see it having new IDs if visited. I was under the impression that placing a group on another card simply made it visible, but I can see that would only work if backgroundBehavior was set to true. Faced with this twist, I don't think I would ever attempt to catalog and store every object on a card or in a stack. Too convoluted. (Or should I say Revoluted...?) Bob S > On Oct 11, 2018, at 14:58 , Brian Milby via use-livecode wrote: > > That works to touch the object, but I am recording a long ID and long name in the exported script comment header. For background groups I didn?t want the card in there since the group could be on multiple. If I left it in, then the reported long ID would change depending on the last card containing the group that was visited. So I adjust the value to be consistent. I also swap out the stack path and use the name. > > Thanks, > Brian From ahsoftware at sonic.net Thu Oct 11 18:42:29 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 11 Oct 2018 15:42:29 -0700 Subject: Confirming a thing about IDs In-Reply-To: References: <48BE2829-05E1-4531-93DE-8A296A0227A6@iotecdigital.com> <7f5347c0-9db7-2195-7e56-66e8f8e4e8ce@sonic.net> Message-ID: On 10/11/2018 02:52 PM, Geoff Canyon via use-livecode wrote: > On Thu, Oct 11, 2018 at 2:36 PM Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 10/11/2018 02:19 PM, Bob Sneidar via use-livecode wrote: >>> Mutable, as in the engine or IDE change it without user interaction??? >> >> No, you have to work at it explicitly. I'm sorry to say that I pushed >> for this some years ago in a misguided assumption that this would help >> advance the cause of version control. That allowed me to reconstruct >> objects from script, then Monte came up with a different and better >> solution, and then they both got rejected. So now you can assign and >> change object ids and it still won't do you any good. >> > > There have been multiple export/import functions written (I wrote one of > the first, about 15(?) years ago). Granted that it's not the integrated > solution you would hope for, how does it fall short of allowing version > control of project configuration? Well, git integration is a big part of what I want. That allows for true group collaboration: checkouts, pull requests, merges, etc. Script-only stacks is a step in that direction, missing I think only the use of metadata for custom properties and the ability to use SSO stacks as substacks. If it weren't for the stupid requirement for trailing whitespace at the end of every line I'd actually go back to submitting pull requests on SSO stacks. If this were an actual project, I'd expect maybe a project config file showing the stack(s), stack files, and other assets: font files, image files, audio files, etc. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Thu Oct 11 18:49:44 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 11 Oct 2018 17:49:44 -0500 Subject: Confirming a thing about IDs In-Reply-To: References: <018f60c4-928b-4b24-b754-934030cd639d@Spark> <8f850713-8033-4adf-b164-2153735777a0@Spark> Message-ID: The actual ID number does not change, but rather the full long ID. If no card has been visited containing the group then it is [bkgnd id 100x of stack ?.../test?]. If it has, then it is based on the last card visited [group id 100x of card id 100y of stack ?.../test?]. Thanks, Brian On Oct 11, 2018, 5:36 PM -0500, Bob Sneidar via use-livecode , wrote: > I see where you are going here. So placing a group on a card has the effect of actually copying the group to the new card? That is the only way I can see it having new IDs if visited. I was under the impression that placing a group on another card simply made it visible, but I can see that would only work if backgroundBehavior was set to true. Faced with this twist, I don't think I would ever attempt to catalog and store every object on a card or in a stack. Too convoluted. (Or should I say Revoluted...?) > > Bob S > > > > On Oct 11, 2018, at 14:58 , Brian Milby via use-livecode wrote: > > > > That works to touch the object, but I am recording a long ID and long name in the exported script comment header. For background groups I didn?t want the card in there since the group could be on multiple. If I left it in, then the reported long ID would change depending on the last card containing the group that was visited. So I adjust the value to be consistent. I also swap out the stack path and use the name. > > > > Thanks, > > Brian > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Thu Oct 11 18:51:32 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 11 Oct 2018 17:51:32 -0500 Subject: Confirming a thing about IDs In-Reply-To: References: <018f60c4-928b-4b24-b754-934030cd639d@Spark> <8f850713-8033-4adf-b164-2153735777a0@Spark> Message-ID: It actually isn?t that bad. You just need to handle shared groups separately and not for each card where they appear. Thanks, Brian On Oct 11, 2018, 5:36 PM -0500, Bob Sneidar via use-livecode , wrote: > I see where you are going here. So placing a group on a card has the effect of actually copying the group to the new card? That is the only way I can see it having new IDs if visited. I was under the impression that placing a group on another card simply made it visible, but I can see that would only work if backgroundBehavior was set to true. Faced with this twist, I don't think I would ever attempt to catalog and store every object on a card or in a stack. Too convoluted. (Or should I say Revoluted...?) > > Bob S > > > > On Oct 11, 2018, at 14:58 , Brian Milby via use-livecode wrote: > > > > That works to touch the object, but I am recording a long ID and long name in the exported script comment header. For background groups I didn?t want the card in there since the group could be on multiple. If I left it in, then the reported long ID would change depending on the last card containing the group that was visited. So I adjust the value to be consistent. I also swap out the stack path and use the name. > > > > Thanks, > > Brian > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Oct 11 18:57:36 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 11 Oct 2018 15:57:36 -0700 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: References: Message-ID: On 10/09/2018 11:05 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > ITT 2016 - Kevlin Henney - Seven Ineffective Coding Habits of Many > Programmers > > https://www.youtube.com/watch?v=ZsHMHukIlJY Kevlin Henney is always an entertaining speaker. -- Mark Wieder ahsoftware at gmail.com From bodine at bodinetraininggames.com Thu Oct 11 19:40:11 2018 From: bodine at bodinetraininggames.com (tbodine) Date: Thu, 11 Oct 2018 18:40:11 -0500 (CDT) Subject: ANN: WordLib 2.2 Release is Available + LC Blog Post In-Reply-To: <8bc20516-7e99-c371-b91b-b4bd68637dde@pair.com> References: <8bc20516-7e99-c371-b91b-b4bd68637dde@pair.com> Message-ID: <1539301211547-0.post@n4.nabble.com> Congrats, Curry, on the new release of WordLib. What's next? Tom Bodine -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From monte at appisle.net Thu Oct 11 19:41:41 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 12 Oct 2018 10:41:41 +1100 Subject: [Hacktoberfest] Improving Hi-DPI support on Windows as a Community In-Reply-To: References: Message-ID: > I can provide a private Slack channel with audio/video/screen sharing > capabilities for a small group. I have some unused guests on my company > account that I can access for the duration of this project. I am not set up > to compile LC on Windows at this time. What about a room on Gitter to keep it public? Cheers Monte From gcanyon at gmail.com Thu Oct 11 20:08:11 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 11 Oct 2018 17:08:11 -0700 Subject: Confirming a thing about IDs In-Reply-To: <8f850713-8033-4adf-b164-2153735777a0@Spark> References: <018f60c4-928b-4b24-b754-934030cd639d@Spark> <8f850713-8033-4adf-b164-2153735777a0@Spark> Message-ID: Yep, I feel you on the groups vs. cards aspect -- there are numerous functions in Navigator that deal with "all objects in a stack" and I think my code for de-duping (or avoiding duping, more accurately) is about to get simpler... On Thu, Oct 11, 2018 at 3:03 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > That works to touch the object, but I am recording a long ID and long name > in the exported script comment header. For background groups I didn?t want > the card in there since the group could be on multiple. If I left it in, > then the reported long ID would change depending on the last card > containing the group that was visited. So I adjust the value to be > consistent. I also swap out the stack path and use the name. > > Thanks, > Brian > On Oct 11, 2018, 4:49 PM -0500, Geoff Canyon via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > Ah, okay -- I have somewhat the same issue in Navigator. Wouldn't > > > > group id of stack "" > > > > always work? > > > > On Thu, Oct 11, 2018 at 2:40 PM Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > > > > > > If a card containing a certain shared group has not been visited, > then > > > > the > > > > > group must be referenced using background instead of group. For > this > > > > > reason, I use ?bkgnd? to identify any shared group. > > > > > > > > Not sure what you mean by this? I created a stack with a > background/group > > > > id 1011. The group is placed on card 4 of the stack. Restart LC and > > > re-open > > > > the stack, and this puts true: > > > > > > > > put there is a group id 1011 of stack "untitled 1" > > > > > > > > No card containing the group had been visited. This is on a Mac, LC > 8.x > > > > > > > > gc > > > > > > > > > > > I did not phrase that well (and had the details wrong). What actually > > > happens is that the returned long ID of objects in shared groups > changes > > > depending on whether a card containing that group has been visited. If > a > > > card has been visited, then "group id x of card id y" is returned. If > not, > > > then "bkgnd id x" is returned. Probably not an issue for most, but if > > > looking to generate long IDs that are always the same for a given > object > > > then it is. > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Thu Oct 11 21:36:59 2018 From: curry at pair.com (Curry Kenworthy) Date: Thu, 11 Oct 2018 21:36:59 -0400 Subject: ANN: WordLib 2.2 Release is Available + LC Blog Post In-Reply-To: <1539301211547-0.post@n4.nabble.com> References: <1539301211547-0.post@n4.nabble.com> Message-ID: <16bfa618-4b4c-0ed8-30b6-01091932e9ae@pair.com> Tom: > Congrats, Curry, on the new release of WordLib. > What's next? Thanks! Next release is likely WordReport or WordOut; whoever makes it through the process first as releases are finished, tested, set up, and coordinated with LC. BTW, LC has corrected their store pricing display, it's all good to go! https://livecode.com/extensions/#creator=curry-kenworthy http://store.esellerate.net/s.aspx?s=STR3897026475 Best wishes, Curry Kenworthy WordLib: Take charge of MS Word and OpenOffice documents SpreadLib: "Excel-lent" spreadsheet import/export for LC http://livecodeaddons.com/ From lists at mangomultimedia.com Thu Oct 11 21:52:25 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 11 Oct 2018 20:52:25 -0500 Subject: [Hacktoberfest] Improving Hi-DPI support on Windows as a Community In-Reply-To: References: Message-ID: On Thu, Oct 11, 2018 at 6:42 PM Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > I can provide a private Slack channel with audio/video/screen sharing > > capabilities for a small group. I have some unused guests on my company > > account that I can access for the duration of this project. I am not set > up > > to compile LC on Windows at this time. > > What about a room on Gitter to keep it public? > We could do that but Gitter frustrates me :-) Gitter is always resetting the vscroll in conversations and losing my place. I offer up the Slack option as I'm in Slack all day for my own company work and I find it very efficient. Plus I find having audio/video/screenshare available to work through things is very helpful. -- Trevor DeVore ScreenSteps www.screensteps.com From monte at appisle.net Thu Oct 11 21:55:55 2018 From: monte at appisle.net (Monte Goulding) Date: Fri, 12 Oct 2018 12:55:55 +1100 Subject: [Hacktoberfest] Improving Hi-DPI support on Windows as a Community In-Reply-To: References: Message-ID: > On 12 Oct 2018, at 12:52 pm, Trevor DeVore via use-livecode wrote: > > We could do that but Gitter frustrates me :-) Gitter is always resetting > the vscroll in conversations and losing my place. I offer up the Slack > option as I'm in Slack all day for my own company work and I find it very > efficient. Plus I find having audio/video/screenshare available to work > through things is very helpful. OK, fair enough. Slack is handy ;-) Cheers Monte From chipsm at themartinz.com Thu Oct 11 22:22:27 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Thu, 11 Oct 2018 19:22:27 -0700 Subject: ANN: WordLib 2.2 Release is Available + LC Blog Post In-Reply-To: <16bfa618-4b4c-0ed8-30b6-01091932e9ae@pair.com> References: <1539301211547-0.post@n4.nabble.com> <16bfa618-4b4c-0ed8-30b6-01091932e9ae@pair.com> Message-ID: <048b01d461d2$6bc84360$4358ca20$@themartinz.com> Are there any you tube videos of WordReport or WordOut? Sincerely, Clarence Martin Email: Chipsm at themartinz.com Cell: 626 696-5561 -----Original Message----- From: use-livecode On Behalf Of Curry Kenworthy via use-livecode Sent: Thursday, October 11, 2018 6:37 PM To: use-livecode at lists.runrev.com Cc: Curry Kenworthy Subject: Re: ANN: WordLib 2.2 Release is Available + LC Blog Post Tom: > Congrats, Curry, on the new release of WordLib. > What's next? Thanks! Next release is likely WordReport or WordOut; whoever makes it through the process first as releases are finished, tested, set up, and coordinated with LC. BTW, LC has corrected their store pricing display, it's all good to go! https://livecode.com/extensions/#creator=curry-kenworthy http://store.esellerate.net/s.aspx?s=STR3897026475 Best wishes, Curry Kenworthy WordLib: Take charge of MS Word and OpenOffice documents SpreadLib: "Excel-lent" spreadsheet import/export for LC http://livecodeaddons.com/ _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Fri Oct 12 00:31:46 2018 From: curry at pair.com (Curry Kenworthy) Date: Fri, 12 Oct 2018 00:31:46 -0400 Subject: ANN: WordLib 2.2 Release is Available + LC Blog Post In-Reply-To: <048b01d461d2$6bc84360$4358ca20$@themartinz.com> References: <048b01d461d2$6bc84360$4358ca20$@themartinz.com> Message-ID: <810b7c0c-e377-96b3-b3be-f818839ad14d@pair.com> Clarence: > Are there any you tube videos of WordReport or WordOut? Probably not. I'll aim to make some! :) Best wishes, Curry Kenworthy WordLib: Take charge of MS Word and OpenOffice documents SpreadLib: "Excel-lent" spreadsheet import/export for LC http://livecodeaddons.com/ From andre at andregarzia.com Fri Oct 12 06:48:06 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Fri, 12 Oct 2018 11:48:06 +0100 Subject: How to unset the backdrop in the preferences? Message-ID: <59ec3868-dee8-9b4d-2a36-291a81e46f03@andregarzia.com> Hey Friends, This will sound silly. I am on Windows 10 using LC 9.x, I've set a backdrop on preferences and now I want to unset it but I can't find a way to do it. There are only options to select a new color but no way to clear it. Can anyone help? Executing `set the backdrop to none` every time I boot LC is getting tiresome. cheers andre From andre at andregarzia.com Fri Oct 12 06:51:26 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Fri, 12 Oct 2018 11:51:26 +0100 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: References: Message-ID: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> Talking about best practices, would anyone here be interested in a little online course about it? best andre On 10/11/2018 11:57 PM, Mark Wieder via use-livecode wrote: > On 10/09/2018 11:05 AM, Sannyasin Brahmanathaswami via use-livecode > wrote: > >> ?? ITT 2016 - Kevlin Henney - Seven Ineffective Coding Habits of Many >> ?? Programmers >> >> https://www.youtube.com/watch?v=ZsHMHukIlJY > > Kevlin Henney is always an entertaining speaker. > From merakosp at gmail.com Fri Oct 12 06:53:34 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 12 Oct 2018 13:53:34 +0300 Subject: How to unset the backdrop in the preferences? In-Reply-To: <59ec3868-dee8-9b4d-2a36-291a81e46f03@andregarzia.com> References: <59ec3868-dee8-9b4d-2a36-291a81e46f03@andregarzia.com> Message-ID: Hello Andre, You can unset it from the LC menubar (View -> Backdrop). Best, Panos -- On Fri, Oct 12, 2018 at 1:48 PM Andre Alves Garzia via use-livecode < use-livecode at lists.runrev.com> wrote: > Hey Friends, > > This will sound silly. I am on Windows 10 using LC 9.x, I've set a > backdrop on preferences and now I want to unset it but I can't find a > way to do it. There are only options to select a new color but no way to > clear it. Can anyone help? Executing `set the backdrop to none` every > time I boot LC is getting tiresome. > > cheers > > andre > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hakan at exformedia.se Fri Oct 12 06:55:51 2018 From: hakan at exformedia.se (hakan at exformedia.se) Date: Fri, 12 Oct 2018 12:55:51 +0200 Subject: How to unset the backdrop in the preferences? In-Reply-To: <59ec3868-dee8-9b4d-2a36-291a81e46f03@andregarzia.com> References: <59ec3868-dee8-9b4d-2a36-291a81e46f03@andregarzia.com> Message-ID: <7824d4d0-318e-4a17-a268-306bc0d1d6d8@Spark> Does View => Backdrop work? On my Mac it is "sticky" between launches of LiveCode H?kan On 12 Oct 2018, 12:48 +0200, Andre Alves Garzia via use-livecode , wrote: > Hey Friends, > > This will sound silly. I am on Windows 10 using LC 9.x, I've set a > backdrop on preferences and now I want to unset it but I can't find a > way to do it. There are only options to select a new color but no way to > clear it. Can anyone help? Executing `set the backdrop to none` every > time I boot LC is getting tiresome. > > cheers > > andre > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Fri Oct 12 11:08:10 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Fri, 12 Oct 2018 16:08:10 +0100 Subject: How to unset the backdrop in the preferences? In-Reply-To: <7824d4d0-318e-4a17-a268-306bc0d1d6d8@Spark> References: <59ec3868-dee8-9b4d-2a36-291a81e46f03@andregarzia.com> <7824d4d0-318e-4a17-a268-306bc0d1d6d8@Spark> Message-ID: H?kan and Panos, H?kan, here it is sticky between launches. Panos, thanks for saving my sanity. Best andre On 10/12/2018 11:55 AM, hakan at exformedia.se wrote: > Does > > View => Backdrop > > work? > > On my Mac it is "sticky" between launches of LiveCode > > H?kan > On 12 Oct 2018, 12:48 +0200, Andre Alves Garzia via use-livecode > , wrote: >> Hey Friends, >> >> This will sound silly. I am on Windows 10 using LC 9.x, I've set a >> backdrop on preferences and now I want to unset it but I can't find a >> way to do it. There are only options to select a new color but no way to >> clear it. Can anyone help? Executing `set the backdrop to none` every >> time I boot LC is getting tiresome. >> >> cheers >> >> andre >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Oct 12 11:27:37 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Oct 2018 15:27:37 +0000 Subject: Reading PDF Form Data in LiveCode? In-Reply-To: <95EFDE8B-2480-4A96-BCFC-3AFEA10D0134@iotecdigital.com> References: <9174B626-7FCF-4EA4-89ED-15953AE68BEA@reidit.co.uk> <76015E9D-6706-4730-98DE-EA3226093029@iotecdigital.com> <2af6e308-129f-4ee6-bc5e-a2d4b040ee28@Spark> <95EFDE8B-2480-4A96-BCFC-3AFEA10D0134@iotecdigital.com> Message-ID: <196CF6E0-92D8-4137-851A-9E70984FC289@iotecdigital.com> I never received a reply to my email about the proper syntax to produce an fdf file from a fillable form. Anyone who intends to use pdftk, be aware you may not get support. Bob S > On Oct 10, 2018, at 10:38 , Bob Sneidar via use-livecode wrote: > > Still locks up. I have an email in to the guy who maintains it. I just thought if someone had this working they could provide me with proper syntax. I cannot get the prompt working either. This from the man page: > > pdftk > [ input_pw ] > [ ] > [ output ] > > I'm not that good at internreting man page syntax. I have yet to get it right one single time. :-) > > Bob S > > >> On Oct 10, 2018, at 10:32 , Mark via use-livecode wrote: >> >> Have you tried leaving off the output filename? Should dump it to stdout then. >> >> Mark > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Oct 12 11:28:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Oct 2018 15:28:41 +0000 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> References: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> Message-ID: <19946FC4-41AB-4F88-876F-10F04568583D@iotecdigital.com> We used to call those, "Runtime Revolution Conferences". :-) Bob S > On Oct 12, 2018, at 03:51 , Andre Alves Garzia via use-livecode wrote: > > Talking about best practices, would anyone here be interested in a little online course about it? > > best > andre From francois.chaplais at mines-paristech.fr Fri Oct 12 11:32:38 2018 From: francois.chaplais at mines-paristech.fr (=?utf-8?Q?Fran=C3=A7ois_Chaplais?=) Date: Fri, 12 Oct 2018 17:32:38 +0200 Subject: can you read this In-Reply-To: <82382778-054f-1b36-e2be-12c8d76986b5@krutt.org> References: <1c112fc0-cf2e-5b4a-bd02-fda3d2dbdc93@krutt.org> <82382778-054f-1b36-e2be-12c8d76986b5@krutt.org> Message-ID: <810AEB8A-4AF6-4AD6-847A-C803D6AC7D1B@mines-paristech.fr> I can see you > Le 11 oct. 2018 ? 18:23, JJS via use-livecode a ?crit : > > wow, that's the first time i can see it myself too. > > All other replies were rejected somehow. > > > Ciao! Sphere. > > > Op 11-10-2018 om 18:21 schreef JJS via use-livecode: >> can you read this? >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Fri Oct 12 11:34:11 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Fri, 12 Oct 2018 16:34:11 +0100 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: <19946FC4-41AB-4F88-876F-10F04568583D@iotecdigital.com> References: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> <19946FC4-41AB-4F88-876F-10F04568583D@iotecdigital.com> Message-ID: <46a3c7d5-db2a-ca08-3c3b-9103f10d12a6@andregarzia.com> Bob, I remember them fondly :-) On 10/12/2018 4:28 PM, Bob Sneidar via use-livecode wrote: > We used to call those, "Runtime Revolution Conferences". :-) > > Bob S > > >> On Oct 12, 2018, at 03:51 , Andre Alves Garzia via use-livecode wrote: >> >> Talking about best practices, would anyone here be interested in a little online course about it? >> >> best >> andre > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Oct 12 11:52:59 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 12 Oct 2018 10:52:59 -0500 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> References: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> Message-ID: <16668fb1b78.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Heather may still be looking for speakers for LC Global. Ask her, you'd probably get good attendance. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 12, 2018 5:53:13 AM Andre Alves Garzia via use-livecode wrote: > Talking about best practices, would anyone here be interested in a > little online course about it? > > best > andre > > On 10/11/2018 11:57 PM, Mark Wieder via use-livecode wrote: >> On 10/09/2018 11:05 AM, Sannyasin Brahmanathaswami via use-livecode >> wrote: >> >>> ITT 2016 - Kevlin Henney - Seven Ineffective Coding Habits of Many >>> Programmers >>> >>> https://www.youtube.com/watch?v=ZsHMHukIlJY >> >> Kevlin Henney is always an entertaining speaker. >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Fri Oct 12 12:00:40 2018 From: heather at livecode.com (Heather Laine) Date: Fri, 12 Oct 2018 17:00:40 +0100 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: <16668fb1b78.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> <16668fb1b78.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1646D750-CF8B-4897-AECE-A0C8BCF6E03D@livecode.com> Lol. Heather has already secured Andre for the last LiveCode Global day. So we should be in for a treat! Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 12 Oct 2018, at 16:52, J. Landman Gay via use-livecode wrote: > > Heather may still be looking for speakers for LC Global. Ask her, you'd probably get good attendance. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On October 12, 2018 5:53:13 AM Andre Alves Garzia via use-livecode wrote: > >> Talking about best practices, would anyone here be interested in a >> little online course about it? >> >> best >> andre >> >> On 10/11/2018 11:57 PM, Mark Wieder via use-livecode wrote: >>> On 10/09/2018 11:05 AM, Sannyasin Brahmanathaswami via use-livecode >>> wrote: >>> >>>> ITT 2016 - Kevlin Henney - Seven Ineffective Coding Habits of Many >>>> Programmers >>>> >>>> https://www.youtube.com/watch?v=ZsHMHukIlJY >>> >>> Kevlin Henney is always an entertaining speaker. >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Oct 12 12:36:11 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 12 Oct 2018 11:36:11 -0500 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: <1646D750-CF8B-4897-AECE-A0C8BCF6E03D@livecode.com> References: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> <16668fb1b78.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <1646D750-CF8B-4897-AECE-A0C8BCF6E03D@livecode.com> Message-ID: <1666922a490.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I should have known you'd be all over this, you hawkeye, you. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 12, 2018 11:02:29 AM Heather Laine via use-livecode wrote: > Lol. Heather has already secured Andre for the last LiveCode Global day. So > we should be in for a treat! > > Best Regards, > > Heather > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 12 Oct 2018, at 16:52, J. Landman Gay via use-livecode >> wrote: >> >> Heather may still be looking for speakers for LC Global. Ask her, you'd >> probably get good attendance. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On October 12, 2018 5:53:13 AM Andre Alves Garzia via use-livecode >> wrote: >> >>> Talking about best practices, would anyone here be interested in a >>> little online course about it? >>> >>> best >>> andre >>> >>> On 10/11/2018 11:57 PM, Mark Wieder via use-livecode wrote: >>>> On 10/09/2018 11:05 AM, Sannyasin Brahmanathaswami via use-livecode >>>> wrote: >>>> >>>>> ITT 2016 - Kevlin Henney - Seven Ineffective Coding Habits of Many >>>>> Programmers >>>>> >>>>> https://www.youtube.com/watch?v=ZsHMHukIlJY >>>> >>>> Kevlin Henney is always an entertaining speaker. >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Fri Oct 12 13:28:36 2018 From: jjs at krutt.org (JJS) Date: Fri, 12 Oct 2018 19:28:36 +0200 Subject: can you read this In-Reply-To: <810AEB8A-4AF6-4AD6-847A-C803D6AC7D1B@mines-paristech.fr> References: <1c112fc0-cf2e-5b4a-bd02-fda3d2dbdc93@krutt.org> <82382778-054f-1b36-e2be-12c8d76986b5@krutt.org> <810AEB8A-4AF6-4AD6-847A-C803D6AC7D1B@mines-paristech.fr> Message-ID: which type binoculair are you using? Op 12-10-2018 om 17:32 schreef Fran?ois Chaplais via use-livecode: > I can see you > >> Le 11 oct. 2018 ? 18:23, JJS via use-livecode a ?crit : >> >> wow, that's the first time i can see it myself too. >> >> All other replies were rejected somehow. >> >> >> Ciao! Sphere. >> >> >> Op 11-10-2018 om 18:21 schreef JJS via use-livecode: >>> can you read this? >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Oct 12 14:12:56 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 12 Oct 2018 13:12:56 -0500 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: References: Message-ID: On 10/11/18 5:57 PM, Mark Wieder via use-livecode wrote: > On 10/09/2018 11:05 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > >> ?? ITT 2016 - Kevlin Henney - Seven Ineffective Coding Habits of Many >> ?? Programmers >> >> https://www.youtube.com/watch?v=ZsHMHukIlJY > > Kevlin Henney is always an entertaining speaker. > I watched some of this and he talked about a couple of my personal pet peeeves. The first is excessive commenting, and while I'm all in favor of commenting code, sometimes it tends to the ridiculous. I agree with Henney's remark that good code is self-descriptive, and LC does that better than anything else. I've seen 20 lines of comment above a 10-line handler, sometimes set off in a fancy ascii rectangle. Each to his own, I guess. It's mildly annoying but I can ignore it. The one the bothers me more though is what he calls "LegoNaming." I remember being irritated when MC introduced "blendLevel" because it was too long to type quickly, and at the time was one of the longest entries in the dictionary. I got over that pretty quick when we started to see things like windowBoundingRect and fullScreenMode. But some of the new commands and messages are approaching unusability because they are impossible to remember and hard to type correctly, and usually require a dictionary lookup/copy/paste. We've got iphoneGetNotificationBadgeValue and AVPlayerItemFailedToPlayToEndTimeNotification. But the top entry in this category is mergBLEPeripheralDiscoverDescriptorsForCharacteristic. That's not a term, it's a sentence. C'mon guys. I understand how descriptive, specific names that indicate precise usage may be desirable, but if the term runs off the right edge of the dictionary it's gone too far. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Oct 12 14:18:58 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Oct 2018 18:18:58 +0000 Subject: Open a Plugin via Script Message-ID: Hi all. You would think all the plugin stacks would be "known" by the IDE, but when I attempt to open a plugin by name, either short name or the actual file name (without the path) Livecode cannot find it. There is no SpecialFolderPath option for the plugins folder. (Maybe there should be??) So I cannot programmatically discern where the plugins are. You will ask, "Why do you need that? Just open it from the developers menu!" Well I have my own Developers Menu, with just the stuff I use all the time, and I don't necessarily want to switch to pointer mode to get to it, then switch back again. It's not a big deal, but I'd like to make that work if I can. Bob S From paul at livecode.org Fri Oct 12 15:45:34 2018 From: paul at livecode.org (Paul Hibbert) Date: Fri, 12 Oct 2018 12:45:34 -0700 Subject: Open a Plugin via Script In-Reply-To: References: Message-ID: <62014817-E556-458C-8FA7-1987CBDC64A3@livecode.org> If this is just for your own Dev use then the installed plugins should be in 2 locations, on Mac inside the App bundle; e.g. /Applications/LiveCode Indy 9.0.1.app/Contents/Tools/Plugins I?d guess a similar location in Widows inside the App folder. The user installed plugins should be in the "My LiveCode? folder inside your ?Documents? folder or wherever you set the Extensions Folder under Preferences. I?m sure you know all this anyway, but if you need to build this info programatically you could hook into the revIDE scripts? #Place in the Script of a Menu Button local sMenu,sPlugins on mouseEnter // Build the menu put revIDEPlugins() into sPlugins // Returns an array of installed Plugins put the keys of sPlugins into sMenu sort sMenu set the text of me to sMenu end mouseEnter on menuPick pItemName // Just so we can choose one plugin open stack sPlugins[pItemName]["path"] end menuPick I?m sure you can adapt the above. :) Paul > On Oct 12, 2018, at 11:18, Bob Sneidar via use-livecode wrote: > > Hi all. > > You would think all the plugin stacks would be "known" by the IDE, but when I attempt to open a plugin by name, either short name or the actual file name (without the path) Livecode cannot find it. There is no SpecialFolderPath option for the plugins folder. (Maybe there should be??) So I cannot programmatically discern where the plugins are. > > You will ask, "Why do you need that? Just open it from the developers menu!" Well I have my own Developers Menu, with just the stuff I use all the time, and I don't necessarily want to switch to pointer mode to get to it, then switch back again. It's not a big deal, but I'd like to make that work if I can. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Paul paul at livecode.org Mac OS Sierra 10.12.1 From ahsoftware at sonic.net Fri Oct 12 15:48:13 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 12 Oct 2018 12:48:13 -0700 Subject: Open a Plugin via Script In-Reply-To: References: Message-ID: <7e5617e2-c8e5-7fa8-6479-cd2d5d6060ec@sonic.net> On 10/12/2018 11:18 AM, Bob Sneidar via use-livecode wrote: > Hi all. > > You would think all the plugin stacks would be "known" by the IDE, but when I attempt to open a plugin by name, either short name or the actual file name (without the path) Livecode cannot find it. There is no SpecialFolderPath option for the plugins folder. (Maybe there should be??) So I cannot programmatically discern where the plugins are. put revenvironmentpluginspath() put revenvironmentuserpluginspath() -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Oct 12 16:17:50 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Oct 2018 20:17:50 +0000 Subject: Open a Plugin via Script In-Reply-To: <62014817-E556-458C-8FA7-1987CBDC64A3@livecode.org> References: <62014817-E556-458C-8FA7-1987CBDC64A3@livecode.org> Message-ID: <7122C672-4C0C-49D0-957F-8C5C6C2DC55E@iotecdigital.com> That's the ticket! :-) Bob S > On Oct 12, 2018, at 12:45 , Paul Hibbert via use-livecode wrote: > > revIDEPlugins() From bobsneidar at iotecdigital.com Fri Oct 12 16:24:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Oct 2018 20:24:09 +0000 Subject: Open a Plugin via Script In-Reply-To: <7e5617e2-c8e5-7fa8-6479-cd2d5d6060ec@sonic.net> References: <7e5617e2-c8e5-7fa8-6479-cd2d5d6060ec@sonic.net> Message-ID: <85F7C29A-D27D-41EB-8C34-5EC2D1F5A092@iotecdigital.com> That too! Bob S > On Oct 12, 2018, at 12:48 , Mark Wieder via use-livecode wrote: > > put revenvironmentuserpluginspath() From bobsneidar at iotecdigital.com Fri Oct 12 16:39:49 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 12 Oct 2018 20:39:49 +0000 Subject: Open a Plugin via Script In-Reply-To: <85F7C29A-D27D-41EB-8C34-5EC2D1F5A092@iotecdigital.com> References: <7e5617e2-c8e5-7fa8-6479-cd2d5d6060ec@sonic.net> <85F7C29A-D27D-41EB-8C34-5EC2D1F5A092@iotecdigital.com> Message-ID: <990760B2-16AA-499A-B902-58E97873894C@iotecdigital.com> The first solution is great if you need to enumerate the plugins. The second is good for just prepending the path before the stack name. Works a peach! Thanks guys. >> On Oct 12, 2018, at 12:45 , Paul Hibbert via use-livecode wrote: >> >> revIDEPlugins() >> On Oct 12, 2018, at 12:48 , Mark Wieder via use-livecode wrote: >> >> put revenvironmentuserpluginspath() > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Fri Oct 12 17:37:17 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 12 Oct 2018 14:37:17 -0700 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: References: Message-ID: On 10/12/2018 11:12 AM, J. Landman Gay via use-livecode wrote: > That's not a term, it's a sentence. So... time served only? -- Mark Wieder ahsoftware at gmail.com From tom at makeshyft.com Fri Oct 12 17:37:42 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 12 Oct 2018 17:37:42 -0400 Subject: vbscript sendkeys() Message-ID: Hey folks, is anyone currently successfully using "do as vbscript" and sending keystrokes to other application windows? I have it set to work when i hit a hotkey.... this is my vb script: Dim Wsh Set Wsh = CreateObject("Wscript.Shell") Wsh.AppActivate "Notepad" Wsh.SendKeys "Test abc" it works to focus notepad every time but only once in a while do the sendkeys work, what am I doing wrong? Thanks, Tom From brian at milby7.com Fri Oct 12 18:02:15 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 12 Oct 2018 17:02:15 -0500 Subject: vbscript sendkeys() In-Reply-To: References: Message-ID: Have you tried adding a delay? It could be that the sendkeys is happening before the app is ready for input. (Have not tried from LC, but I do something similar in a .vbs file.) Wsh.AppActivate "Notepad" : WScript.Sleep 500 Thanks, Brian On Oct 12, 2018, 4:38 PM -0500, Tom Glod via use-livecode , wrote: > Hey folks, is anyone currently successfully using "do as vbscript" and > sending keystrokes to other application windows? > > I have it set to work when i hit a hotkey.... > > this is my vb script: > > Dim Wsh > Set Wsh = CreateObject("Wscript.Shell") > Wsh.AppActivate "Notepad" > Wsh.SendKeys "Test abc" > > it works to focus notepad every time > > but only once in a while do the sendkeys work, what am I doing wrong? > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Fri Oct 12 21:11:13 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 12 Oct 2018 21:11:13 -0400 Subject: [off]Hactoberfest Message-ID: Hactoberfest is back live at GitHub - submit 5 pull requests in October and maybe win a t-shirt. There are a bunch of LC projects on github, so now's the time to make an improvement to one of them and enter! https://hacktoberfest.digitalocean.com -- 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." From tom at makeshyft.com Fri Oct 12 21:52:14 2018 From: tom at makeshyft.com (Tom Glod) Date: Fri, 12 Oct 2018 21:52:14 -0400 Subject: vbscript sendkeys() In-Reply-To: References: Message-ID: Hi Brian, thanks.....I have tried that, seems to work even less than without it. but you might be onto something here.... because sometimes "most" of the text gets written... mostly none.....and other times all of them. will keep on testing to see if i can find the cause of this inconsistency. Ty On Fri, Oct 12, 2018 at 6:02 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Have you tried adding a delay? It could be that the sendkeys is happening > before the app is ready for input. (Have not tried from LC, but I do > something similar in a .vbs file.) > > Wsh.AppActivate "Notepad" : WScript.Sleep 500 > > Thanks, > Brian > On Oct 12, 2018, 4:38 PM -0500, Tom Glod via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > Hey folks, is anyone currently successfully using "do as vbscript" and > > sending keystrokes to other application windows? > > > > I have it set to work when i hit a hotkey.... > > > > this is my vb script: > > > > Dim Wsh > > Set Wsh = CreateObject("Wscript.Shell") > > Wsh.AppActivate "Notepad" > > Wsh.SendKeys "Test abc" > > > > it works to focus notepad every time > > > > but only once in a while do the sendkeys work, what am I doing wrong? > > > > Thanks, > > > > Tom > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Sat Oct 13 00:35:09 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Oct 2018 00:35:09 -0400 Subject: vbscript sendkeys() In-Reply-To: References: Message-ID: It seems like the problem is indeed with sendkeys happening too quickly..but i have also concluded that when I try the Wscript.Sleep 500 command it is not compiling and my vbscript, and the sendkeys are never sent. when i take the wait out...it works, but too quickly. so i just need to find a working syntax to halt the vbscript. thanks for the hint...i'll just try a bunch of things to try to narrow down. On Fri, Oct 12, 2018 at 9:52 PM Tom Glod wrote: > Hi Brian, thanks.....I have tried that, seems to work even less than > without it. > > but you might be onto something here.... because sometimes "most" of the > text gets written... mostly none.....and other times all of them. will > keep on testing to see if i can find the cause of this inconsistency. > > Ty > > > > On Fri, Oct 12, 2018 at 6:02 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Have you tried adding a delay? It could be that the sendkeys is happening >> before the app is ready for input. (Have not tried from LC, but I do >> something similar in a .vbs file.) >> >> Wsh.AppActivate "Notepad" : WScript.Sleep 500 >> >> Thanks, >> Brian >> On Oct 12, 2018, 4:38 PM -0500, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com>, wrote: >> > Hey folks, is anyone currently successfully using "do as vbscript" and >> > sending keystrokes to other application windows? >> > >> > I have it set to work when i hit a hotkey.... >> > >> > this is my vb script: >> > >> > Dim Wsh >> > Set Wsh = CreateObject("Wscript.Shell") >> > Wsh.AppActivate "Notepad" >> > Wsh.SendKeys "Test abc" >> > >> > it works to focus notepad every time >> > >> > but only once in a while do the sendkeys work, what am I doing wrong? >> > >> > Thanks, >> > >> > Tom >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From tom at makeshyft.com Sat Oct 13 01:06:29 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Oct 2018 01:06:29 -0400 Subject: vbscript sendkeys() In-Reply-To: References: Message-ID: SOLVED. I split the vbscript in 2 parts.... focused the desire application then wait then send keys it now works every time..... if i could delay the script using a"Wscript" less solution, that would be ideal. >From the dictionary "Any which contains a reference to WScript will fail to run, because WScript objects do not exist in the LiveCode environment. " For anyone who finds this thread later. On Sat, Oct 13, 2018 at 12:35 AM Tom Glod wrote: > It seems like the problem is indeed with sendkeys happening too > quickly..but i have also concluded that when I try the Wscript.Sleep 500 > command it is not compiling and my vbscript, and the sendkeys are never > sent. when i take the wait out...it works, but too quickly. > > so i just need to find a working syntax to halt the vbscript. thanks for > the hint...i'll just try a bunch of things to try to narrow down. > > > > On Fri, Oct 12, 2018 at 9:52 PM Tom Glod wrote: > >> Hi Brian, thanks.....I have tried that, seems to work even less than >> without it. >> >> but you might be onto something here.... because sometimes "most" of the >> text gets written... mostly none.....and other times all of them. will >> keep on testing to see if i can find the cause of this inconsistency. >> >> Ty >> >> >> >> On Fri, Oct 12, 2018 at 6:02 PM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Have you tried adding a delay? It could be that the sendkeys is >>> happening before the app is ready for input. (Have not tried from LC, but I >>> do something similar in a .vbs file.) >>> >>> Wsh.AppActivate "Notepad" : WScript.Sleep 500 >>> >>> Thanks, >>> Brian >>> On Oct 12, 2018, 4:38 PM -0500, Tom Glod via use-livecode < >>> use-livecode at lists.runrev.com>, wrote: >>> > Hey folks, is anyone currently successfully using "do as vbscript" and >>> > sending keystrokes to other application windows? >>> > >>> > I have it set to work when i hit a hotkey.... >>> > >>> > this is my vb script: >>> > >>> > Dim Wsh >>> > Set Wsh = CreateObject("Wscript.Shell") >>> > Wsh.AppActivate "Notepad" >>> > Wsh.SendKeys "Test abc" >>> > >>> > it works to focus notepad every time >>> > >>> > but only once in a while do the sendkeys work, what am I doing wrong? >>> > >>> > Thanks, >>> > >>> > Tom >>> > _______________________________________________ >>> > use-livecode mailing list >>> > use-livecode at 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 at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> From brahma at hindu.org Sat Oct 13 09:28:53 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 13 Oct 2018 13:28:53 +0000 Subject: OT: Seven Ineffective Coding Habits of Many Programmers References: Message-ID: LOL, can't resist: "*mergBLEPeripheralDidUpdateNotificationStateForCharacteristic'* (rap music in background) "They sentenced us to 60 char long! But the term will only be served by those brave enough to go to the Kingdom of Peripheral UUID's." BR On 10/12/18 11:37 AM, Mark Wieder via use-livecode wrote: > On 10/12/2018 11:12 AM, J. Landman Gay via use-livecode wrote: > >> That's not a term, it's a sentence. > So... time served only? > > -- Mark Wieder ahsoftware at gmail.com -- Svasti Astu, Be Well! Brahmanathaswami Get the SivaSiva app, it's free: https://www.himalayanacademy.com/apps/sivasiva From brahma at hindu.org Sat Oct 13 09:28:57 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 13 Oct 2018 13:28:57 +0000 Subject: OT: Seven Ineffective Coding Habits of Many Programmers References: Message-ID: On 10/12/18 11:37 AM, Mark Wieder via use-livecode wrote: > On 10/12/2018 11:12 AM, J. Landman Gay via use-livecode wrote: > >> That's not a term, it's a sentence. > So... time served only? -- Svasti Astu, Be Well! Brahmanathaswami Get the SivaSiva app, it's free: https://www.himalayanacademy.com/apps/sivasiva From iphonelagi at gmail.com Sat Oct 13 11:49:52 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Sat, 13 Oct 2018 16:49:52 +0100 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: <19946FC4-41AB-4F88-876F-10F04568583D@iotecdigital.com> References: <691a41be-71d7-ed01-60e3-2c3dfb3e9c3a@andregarzia.com> <19946FC4-41AB-4F88-876F-10F04568583D@iotecdigital.com> Message-ID: HI Andre, Still waiting for your book - sent you at least 3 emails to be put on the mail list. Also the course you were gonna do before I think about MVC in livecode - is this all going to be rolled into this? Regards Lagi On Fri, 12 Oct 2018 at 16:29, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > We used to call those, "Runtime Revolution Conferences". :-) > > Bob S > > > > On Oct 12, 2018, at 03:51 , Andre Alves Garzia via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Talking about best practices, would anyone here be interested in a > little online course about it? > > > > best > > andre > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From iowahengst at mac.com Sat Oct 13 11:53:07 2018 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 13 Oct 2018 10:53:07 -0500 Subject: Password Protected Stack Message-ID: <446CCD2C-25C1-4AE7-84E6-F7CBFB41156A@mac.com> Hi All, I have a problem I?ve not seen before. I?m working on an update to an iOS app first made years ago and last updated in 2017. When I save it as a standalone ? things go well in that a standalone is made (and seems to work fine on my iPad), but at the end of the build process, I get a warning: Could not auto-detect inclusions or security categories because stack is password protected The catch is, I?ve never intentionally set a password on any of my work with LC. ? I?ve checked all the settings and can?t find a place even set a password. ? As noted in the dictionary, I?ve used the message box and entered ?. set the password of this stack to empty ? but the problem still persists. The other apps I?ve been updating over the past several weeks have worked just fine with my current set up: LC 9.0.1 Xcode 9.2 Mac Sierra 10.12.6 I assume I?m missing something obvious, but it escapes me. Any thoughts? be well, randy www.classroomFocusedSoftware.com From rdimola at evergreeninfo.net Sat Oct 13 16:24:55 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 13 Oct 2018 16:24:55 -0400 Subject: vbscript sendkeys() In-Reply-To: References: Message-ID: <00bb01d46332$d14a2940$73de7bc0$@net> You could "ping" a nonexistent IP with a repeat of 1 and a timeout of x seconds. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Tom Glod via use-livecode Sent: Saturday, October 13, 2018 1:06 AM To: How to use LiveCode Cc: Tom Glod Subject: Re: vbscript sendkeys() SOLVED. I split the vbscript in 2 parts.... focused the desire application then wait then send keys it now works every time..... if i could delay the script using a"Wscript" less solution, that would be ideal. >From the dictionary "Any which contains a reference to WScript will fail to run, because WScript objects do not exist in the LiveCode environment. " For anyone who finds this thread later. On Sat, Oct 13, 2018 at 12:35 AM Tom Glod wrote: > It seems like the problem is indeed with sendkeys happening too > quickly..but i have also concluded that when I try the Wscript.Sleep > 500 command it is not compiling and my vbscript, and the sendkeys are > never sent. when i take the wait out...it works, but too quickly. > > so i just need to find a working syntax to halt the vbscript. thanks > for the hint...i'll just try a bunch of things to try to narrow down. > > > > On Fri, Oct 12, 2018 at 9:52 PM Tom Glod wrote: > >> Hi Brian, thanks.....I have tried that, seems to work even less than >> without it. >> >> but you might be onto something here.... because sometimes "most" of >> the text gets written... mostly none.....and other times all of them. >> will keep on testing to see if i can find the cause of this inconsistency. >> >> Ty >> >> >> >> On Fri, Oct 12, 2018 at 6:02 PM Brian Milby via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Have you tried adding a delay? It could be that the sendkeys is >>> happening before the app is ready for input. (Have not tried from >>> LC, but I do something similar in a .vbs file.) >>> >>> Wsh.AppActivate "Notepad" : WScript.Sleep 500 >>> >>> Thanks, >>> Brian >>> On Oct 12, 2018, 4:38 PM -0500, Tom Glod via use-livecode < >>> use-livecode at lists.runrev.com>, wrote: >>> > Hey folks, is anyone currently successfully using "do as vbscript" >>> > and sending keystrokes to other application windows? >>> > >>> > I have it set to work when i hit a hotkey.... >>> > >>> > this is my vb script: >>> > >>> > Dim Wsh >>> > Set Wsh = CreateObject("Wscript.Shell") Wsh.AppActivate "Notepad" >>> > Wsh.SendKeys "Test abc" >>> > >>> > it works to focus notepad every time >>> > >>> > but only once in a while do the sendkeys work, what am I doing wrong? >>> > >>> > Thanks, >>> > >>> > Tom >>> > _______________________________________________ >>> > use-livecode mailing list >>> > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Oct 13 22:58:44 2018 From: tom at makeshyft.com (Tom Glod) Date: Sat, 13 Oct 2018 22:58:44 -0400 Subject: vbscript sendkeys() In-Reply-To: <00bb01d46332$d14a2940$73de7bc0$@net> References: <00bb01d46332$d14a2940$73de7bc0$@net> Message-ID: ya wow..i guess there are many ways of creating a wait...... i've actually resolved this by using livecode's wait instead of vb.... it happens automatically as part of a function now so i never have to think about delay again. thanks for the suggestion On Sat, Oct 13, 2018 at 4:23 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > You could "ping" a nonexistent IP with a repeat of 1 and a timeout of x > seconds. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf > Of Tom Glod via use-livecode > Sent: Saturday, October 13, 2018 1:06 AM > To: How to use LiveCode > Cc: Tom Glod > Subject: Re: vbscript sendkeys() > > SOLVED. I split the vbscript in 2 parts.... focused the desire application > then wait then send keys > > it now works every time..... if i could delay the script using a"Wscript" > less solution, that would be ideal. > > From the dictionary > > "Any which contains a reference to WScript will fail to run, because > WScript > objects do not exist in the LiveCode environment. " > > For anyone who finds this thread later. > > On Sat, Oct 13, 2018 at 12:35 AM Tom Glod wrote: > > > It seems like the problem is indeed with sendkeys happening too > > quickly..but i have also concluded that when I try the Wscript.Sleep > > 500 command it is not compiling and my vbscript, and the sendkeys are > > never sent. when i take the wait out...it works, but too quickly. > > > > so i just need to find a working syntax to halt the vbscript. thanks > > for the hint...i'll just try a bunch of things to try to narrow down. > > > > > > > > On Fri, Oct 12, 2018 at 9:52 PM Tom Glod wrote: > > > >> Hi Brian, thanks.....I have tried that, seems to work even less than > >> without it. > >> > >> but you might be onto something here.... because sometimes "most" of > >> the text gets written... mostly none.....and other times all of them. > >> will keep on testing to see if i can find the cause of this > inconsistency. > >> > >> Ty > >> > >> > >> > >> On Fri, Oct 12, 2018 at 6:02 PM Brian Milby via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> Have you tried adding a delay? It could be that the sendkeys is > >>> happening before the app is ready for input. (Have not tried from > >>> LC, but I do something similar in a .vbs file.) > >>> > >>> Wsh.AppActivate "Notepad" : WScript.Sleep 500 > >>> > >>> Thanks, > >>> Brian > >>> On Oct 12, 2018, 4:38 PM -0500, Tom Glod via use-livecode < > >>> use-livecode at lists.runrev.com>, wrote: > >>> > Hey folks, is anyone currently successfully using "do as vbscript" > >>> > and sending keystrokes to other application windows? > >>> > > >>> > I have it set to work when i hit a hotkey.... > >>> > > >>> > this is my vb script: > >>> > > >>> > Dim Wsh > >>> > Set Wsh = CreateObject("Wscript.Shell") Wsh.AppActivate "Notepad" > >>> > Wsh.SendKeys "Test abc" > >>> > > >>> > it works to focus notepad every time > >>> > > >>> > but only once in a while do the sendkeys work, what am I doing wrong? > >>> > > >>> > Thanks, > >>> > > >>> > Tom > >>> > _______________________________________________ > >>> > use-livecode mailing list > >>> > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Sun Oct 14 00:10:18 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 13 Oct 2018 23:10:18 -0500 Subject: Password Protected Stack In-Reply-To: <446CCD2C-25C1-4AE7-84E6-F7CBFB41156A@mac.com> References: <446CCD2C-25C1-4AE7-84E6-F7CBFB41156A@mac.com> Message-ID: <16670c47070.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Do you have any private libraries or substacks that might be password protected? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 13, 2018 10:56:01 AM Randy Hengst via use-livecode wrote: > Hi All, > > I have a problem I?ve not seen before. I?m working on an update to an iOS > app first made years ago and last updated in 2017. > > When I save it as a standalone ? things go well in that a standalone is > made (and seems to work fine on my iPad), but at the end of the build > process, I get a warning: Could not auto-detect inclusions or security > categories because stack is password protected > > The catch is, I?ve never intentionally set a password on any of my work > with LC. > ? I?ve checked all the settings and can?t find a place even set a password. > ? As noted in the dictionary, I?ve used the message box and entered ?. set > the password of this stack to empty ? but the problem still persists. > > The other apps I?ve been updating over the past several weeks have worked > just fine with my current set up: > LC 9.0.1 Xcode 9.2 Mac Sierra 10.12.6 > > I assume I?m missing something obvious, but it escapes me. Any thoughts? > > be well, > randy > www.classroomFocusedSoftware.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iowahengst at mac.com Sun Oct 14 10:10:06 2018 From: iowahengst at mac.com (Randy Hengst) Date: Sun, 14 Oct 2018 09:10:06 -0500 Subject: Password Protected Stack In-Reply-To: <16670c47070.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <446CCD2C-25C1-4AE7-84E6-F7CBFB41156A@mac.com> <16670c47070.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Thank you Jacque. I used the Project Browser for the first time? yes, really? and found a library stack from one of Scott Rossi?s add-ons that I no longer was using. It is an old stack? I didn?t have problems building with LC 7.x or 8.x even with that add-on. So, something in the build process must have changed in 9.x. Anyway, the library stack is removed and all is well with the build. be well, randy www.classroomFocusedSoftware.com > On Oct 13, 2018, at 11:10 PM, J. Landman Gay via use-livecode wrote: > > Do you have any private libraries or substacks that might be password protected? > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On October 13, 2018 10:56:01 AM Randy Hengst via use-livecode wrote: > >> Hi All, >> >> I have a problem I?ve not seen before. I?m working on an update to an iOS app first made years ago and last updated in 2017. >> >> When I save it as a standalone ? things go well in that a standalone is made (and seems to work fine on my iPad), but at the end of the build process, I get a warning: Could not auto-detect inclusions or security categories because stack is password protected >> >> The catch is, I?ve never intentionally set a password on any of my work with LC. >> ? I?ve checked all the settings and can?t find a place even set a password. >> ? As noted in the dictionary, I?ve used the message box and entered ?. set the password of this stack to empty ? but the problem still persists. >> >> The other apps I?ve been updating over the past several weeks have worked just fine with my current set up: >> LC 9.0.1 Xcode 9.2 Mac Sierra 10.12.6 >> >> I assume I?m missing something obvious, but it escapes me. Any thoughts? >> >> be well, >> randy >> www.classroomFocusedSoftware.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kaveh at rivervalleytechnologies.com Sun Oct 14 10:17:52 2018 From: kaveh at rivervalleytechnologies.com (Kaveh Bazargan) Date: Sun, 14 Oct 2018 15:17:52 +0100 Subject: Accessible Apps Message-ID: I am interested in creating an App in LiveCode, for iOS and Android, primarily for reading html content (live or local). It needs functionalities such as bookmarking, searching and commenting. I want the App to be "accessible" if possible, so allowing say visually impaired to use it. Any pointers pls? I cannot find much literature on LiveCode and accessibility. -- Kaveh Bazargan Director River Valley Technologies ? Twitter ? LinkedIn From brahma at hindu.org Sun Oct 14 10:26:31 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 14 Oct 2018 14:26:31 +0000 Subject: Unicode Store in JSON Message-ID: I need to store unicode in JSON on Mobile; and store that in SQLLite dBase If you do a "direct" transfer *put*(char1to35oftQuote)& "..."intosTruncFirstLine "Yea, j?va is actually ?iva." # putting sTruncFirstLine into an SQLLite column # when you get the data out, it becomes "Yea, j??va is actually ??iva...." "textEncode" won't work because it produces binary code, can't store in JSON... base64 should work, but I get similar results, * put*(char1to35oftQuote)& "..."intosTruncFirstLine * put*base64Encode(sTruncFirstLine) intosTruncFirstLine # restore later * put*base64Decode(pEntryA["label"]) intotLab*el** * * set*thetextoffieldtName totLabel # returns "garble" What are my other options? BR From jacque at hyperactivesw.com Sun Oct 14 14:30:55 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 14 Oct 2018 13:30:55 -0500 Subject: OT: Seven Ineffective Coding Habits of Many Programmers In-Reply-To: References: Message-ID: On 10/12/18 4:37 PM, Mark Wieder via use-livecode wrote: > On 10/12/2018 11:12 AM, J. Landman Gay via use-livecode wrote: > >> That's not a term, it's a sentence. > > So... time served only? That's reserved for bad punsters who must show remorse by writing mergBLEPeripheralDiscoverDescriptorsForCharacteristic 100 times on the blackboard. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Oct 14 14:43:43 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 14 Oct 2018 13:43:43 -0500 Subject: Unicode Store in JSON In-Reply-To: References: Message-ID: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> I'd store the text normally, without alteration, in the JSON. TextEncode it when you send it to the database and textDecode when you retrieve it from the database. On 10/14/18 9:26 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > I need to store unicode in JSON on Mobile; and store that in SQLLite dBase > > If you do a "direct" transfer > > *put*(char1to35oftQuote)& "..."intosTruncFirstLine > > "Yea, j?va is actually ?iva." > > # putting sTruncFirstLine into an SQLLite column > # when you get the data out, it becomes > > "Yea, j??va is actually ??iva...." > > "textEncode" won't work because it produces binary code, can't store in > JSON... > > base64 should work, but I get similar results, > > * put*(char1to35oftQuote)& "..."intosTruncFirstLine > > * put*base64Encode(sTruncFirstLine) intosTruncFirstLine > > # restore later > > * put*base64Decode(pEntryA["label"]) intotLab*el** > * > > * set*thetextoffieldtName totLabel > > # returns "garble" > > What are my other options? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Sun Oct 14 16:43:11 2018 From: hh at hyperhh.de (hh) Date: Sun, 14 Oct 2018 22:43:11 +0200 Subject: Widget baseClock_v100 Message-ID: BaseClock is a new widget that displays by special "digits" the time encoded to a number base in range 2-60. Encoded is each of the time items (hours, minutes, seconds). For base 2 this is known as "Binary encoded decimals". The display is unique (I invented that) as it doesn't use characters for digits > 9 but decimal "columns". This is very easy to read and (manually) to write. Download the widget from "Sample Stacks" or from http://livecodeshare.runrev.com/stack/911 The sample stack contains an installer and displays 17 clocks to different number bases. One display cycle for a seconds display is done by each widget in < 3 millisecs (compute and paint). This stack shows an essential improvement of LCB 9 over LCB 8: The clocks are much more "in sync" than in LC 8. And it has a substack that is prepared for displaying a baseClock "window shaped". There are 16 options for the display, see the dictionary or open the property inspector. Note. Some properties of the widget are triggered by the timer, which is (as all timers) stopped in the property inspector. So you may see the changes not before going back to browse mode. The widget is free for non-commercial use and has the source code included. For commercial use please give a (small) fee to the LC developer help fund. From brahma at hindu.org Sun Oct 14 20:35:26 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 15 Oct 2018 00:35:26 +0000 Subject: Unicode Store in JSON References: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> Message-ID: On 10/14/18 8:43 AM, J. Landman Gay via use-livecode wrote: > I'd store the text normally, without alteration, in the JSON. TextEncode > it when you send it to the database and textDecode when you retrieve it > from the database. Wow, that worked! And I thought that JSON could not be a container for "binaryData" as described on the dictionary. BR From monte at appisle.net Sun Oct 14 20:54:48 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 15 Oct 2018 11:54:48 +1100 Subject: Unicode Store in JSON In-Reply-To: References: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> Message-ID: <16AF8096-10D9-465C-B3CF-E398B7042C33@appisle.net> > On 15 Oct 2018, at 11:35 am, Sannyasin Brahmanathaswami via use-livecode wrote: > > Wow, that worked! And I thought that JSON could not be a container for > "binaryData" as described on the dictionary. Could you provide some detail where the docs are misleading. It is actually true that you can?t JSON encode binary data. We do have different libraries that treat JSON text encoding differently. mergJSON and therefore ArrayToJSON and JSONToArray deal with UTF-8 encoded JSON only. ArrayToJSON and JSONToArray will do this encoding for you if you give it text strings. If you give it binary strings then they must be UTF-8 encoded already otherwise mergJSON will throw an error. JSONImport and JSONExport on the other hand deals with JSON as text so you need to textDecode/textDecode as a separate operation. If you give any LCB API binary strings when it is expecting text strings then it will follow the engine?s standard conversion which will be native encoding (eg ISO/MacRoman). Note while the previous JSON specs just say unicode encoding can be used RFC8259 specifies UTF-8 encoding of JSON between systems. Cheers Monte From brahma at hindu.org Sun Oct 14 22:35:07 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 15 Oct 2018 02:35:07 +0000 Subject: OT: The Principles of Clean Architecture Message-ID: Hope you don't in my sharing on going research into high level architecture. https://www.youtube.com/watch?v=o_TH-Y78tt4 This one came about because Andre (ha!) chided me on my lack of encapsulation between modules, and spent time re-factoring to make it better. He has a license to tell what is on his mind... No doubt many you have seen this. This is really the first time I have understood where the "boundaries" live in code. So very clear. You will also get a marvelous introduction to human DNS/Mitochondria. Be prepared of 1:13 of time--at least for me, it was hard not watch all the through. From brahma at hindu.org Sun Oct 14 23:31:33 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 15 Oct 2018 03:31:33 +0000 Subject: Unicode Store in JSON References: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> <16AF8096-10D9-465C-B3CF-E398B7042C33@appisle.net> Message-ID: First can you clarify if both of these should work.? We see both in dictionary... *Example* textEncode("A","UTF16") *put*textEncode(field"output","UTF-8") intotOutput will the 2nd param work with or without a hyphen? ----------- unclarity --simply: *Syntax* textEncode(*stringToEncode*, encoding) *Summary* Converts from text to binary data. ======== doesn't stipulate an "exception" for "different libraries that treat JSON text encoding differently. mergJSON [snip] " BR On 10/14/18 2:55 PM, Monte Goulding via use-livecode wrote: > Could you provide some detail where the docs are misleading. It is actually true that you can?t JSON encode binary data. > > We do have different libraries that treat JSON text encoding differently. mergJSON and therefore ArrayToJSON and JSONToArray deal with UTF-8 encoded JSON only. ArrayToJSON and JSONToArray will do this encoding for you if you give it text strings. If you give it binary strings then they must be UTF-8 encoded already otherwise mergJSON will throw an error. > > JSONImport and JSONExport on the other hand deals with JSON as text so you need to textDecode/textDecode as a separate operation. If you give any LCB API binary strings when it is expecting text strings then it will follow the engine?s standard conversion which will be native encoding (eg ISO/MacRoman). > > Note while the previous JSON specs just say unicode encoding can be used RFC8259 specifies UTF-8 encoding of JSON between systems. > > Cheers -- Svasti Astu, Be Well! Brahmanathaswami Get the SivaSiva app, it's free: https://www.himalayanacademy.com/apps/sivasiva From alanstenhouse at hotmail.com Sun Oct 14 23:32:24 2018 From: alanstenhouse at hotmail.com (Alan) Date: Mon, 15 Oct 2018 03:32:24 +0000 Subject: mobile location question Message-ID: Hi there Can someone point me in the direction of the LC source code on Github that contains the mobile location-related code? Wondering what is currently used for the properties: desiredAccuracy & distanceFilter Thanks for any pointers! :-) cheers Alan From monte at appisle.net Sun Oct 14 23:40:16 2018 From: monte at appisle.net (Monte Goulding) Date: Mon, 15 Oct 2018 14:40:16 +1100 Subject: Unicode Store in JSON In-Reply-To: References: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> <16AF8096-10D9-465C-B3CF-E398B7042C33@appisle.net> Message-ID: <39E2A027-52C6-4B6A-A63B-1CC73D1ECAB7@appisle.net> > On 15 Oct 2018, at 2:31 pm, Sannyasin Brahmanathaswami via use-livecode wrote: > > First can you clarify if both of these should work.? We see both in > dictionary... > > *Example* > > textEncode("A","UTF16") > > *put*textEncode(field"output","UTF-8") intotOutput > > will the 2nd param work with or without a hyphen? Yes > > ----------- > unclarity --simply: > > *Syntax* > > textEncode(*stringToEncode*, encoding) > > *Summary* > > Converts from text to binary data. > > ======== > > doesn't stipulate an "exception" for > > "different libraries that treat JSON text encoding differently. mergJSON [snip] ? Well mergJSON is documented to return UTF-8 encoded JSON, however, I agree that JSONImport and JSONExport docs are a little ambiguous and should clarify that the JSON needs to be textDecoded before calling JSONImport and textEncoded after calling JSONExport. Cheers Monte From panos.merakos at livecode.com Mon Oct 15 07:24:58 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 15 Oct 2018 14:24:58 +0300 Subject: [ANN] This Week in LiveCode 150 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #150 here: https://goo.gl/eBMXZn This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From brahma at hindu.org Mon Oct 15 09:09:00 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 15 Oct 2018 13:09:00 +0000 Subject: Unicode Store in JSON References: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> <16AF8096-10D9-465C-B3CF-E398B7042C33@appisle.net> <39E2A027-52C6-4B6A-A63B-1CC73D1ECAB7@appisle.net> Message-ID: On 10/14/18 5:41 PM, Monte Goulding via use-livecode wrote: > Well mergJSON is documented to return UTF-8 encoded JSON, however, I agree that JSONImport and JSONExport docs are a little ambiguous and should clarify that the JSON needs to be textDecoded before calling JSONImport and textEncoded after calling JSONExport. A "Related" entry under textDecode and textEncode might help. The problem is when you get to a dictionary entry for those, there is no mention "mergJSON". So not matter how well "mergeJSON" is documented, as a "newbie" or someone who hasn't spend a lot of time in text encoding procedures, one is "blindsided" to the "mergeJSON" feature. There is a lacuna in the dictionary, not only in this space, but throughout. I won't all it a "fault", because in some way "all livecode is related" , so where to begin writing about "related, associations"? It is probably best done on a use case basis, like this one. I am getting better at GIT now. I could contribute to the dictionary if I knew how. BR From benr_mc at cogapp.com Mon Oct 15 10:29:26 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 15 Oct 2018 15:29:26 +0100 Subject: Using Dylibs in LiveCode? Message-ID: <9be15c70-db8d-6955-0a12-5369eb7978bf@cogapp.com> I've got a requirement for which there's a useful library, which is made available for MacOS as a 'dylib'. What are my options for accessing this from LC? (I don't have a to ship an application using this library, I just want to be access it on my own machines, ideally within the IDE.) TIA, Ben From tom at makeshyft.com Mon Oct 15 13:10:05 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 15 Oct 2018 13:10:05 -0400 Subject: Widget baseClock_v100 In-Reply-To: References: Message-ID: Hi, thanks for this .... Its a cool example of a widget... thanks for sharing your code. Its interesting....What is the problem this invention solves? is there a use case for using such a time format? What did you use it for? On Sun, Oct 14, 2018 at 4:43 PM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > BaseClock is a new widget that displays by special "digits" the > time encoded to a number base in range 2-60. > Encoded is each of the time items (hours, minutes, seconds). > For base 2 this is known as "Binary encoded decimals". > > The display is unique (I invented that) as it doesn't use > characters for digits > 9 but decimal "columns". This is very > easy to read and (manually) to write. > > Download the widget from "Sample Stacks" or from > http://livecodeshare.runrev.com/stack/911 > > The sample stack contains an installer and displays 17 clocks > to different number bases. One display cycle for a seconds display > is done by each widget in < 3 millisecs (compute and paint). > > This stack shows an essential improvement of LCB 9 over LCB 8: > The clocks are much more "in sync" than in LC 8. > And it has a substack that is prepared for displaying a baseClock > "window shaped". > > There are 16 options for the display, see the dictionary or open > the property inspector. > > Note. > Some properties of the widget are triggered by the timer, which is > (as all timers) stopped in the property inspector. So you may see > the changes not before going back to browse mode. > > The widget is free for non-commercial use and has the source code > included. For commercial use please give a (small) fee to the LC > developer help fund. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Mon Oct 15 13:22:59 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 15 Oct 2018 10:22:59 -0700 Subject: Errant mouseRelease message? Message-ID: The drag and drop code in Navigator relies on mouseMove messages to do its work, and since drags can exit the field where they started, mouseRelease messages to stop. When I first coded this, I sometimes got errant mouseRelease messages -- the mouse was still down, a check of "the mouse" in the mouseRelease would report that the mouse was down, and yet the mouseRelease was still called, and no more mouseMove messages were delivered. I fixed that, and I don't know how. Now the problem has cropped up again, and a quick scan through the diffs (thanks, Git and GitKraken!) shows nothing that looks promising to have caused this issue. Any ideas? I'm on a mac, latest OS, LC 8.x From hh at hyperhh.de Mon Oct 15 14:15:18 2018 From: hh at hyperhh.de (hh) Date: Mon, 15 Oct 2018 20:15:18 +0200 Subject: Widget baseClock_v100 Message-ID: <1868AB3D-EBF4-44F2-9F23-86044DD34F52@hyperhh.de> > Tom G. wrote: > Its interesting....What is the problem this invention solves? is there a > use case for using such a time format? What did you use it for? This is a "must-do" for a mathematician. To use such solutions for an open problem is in general the job of engineers. I use as desktop the base 15 clock that shows the number of full quarters in the first digit and the numbers filling the next quarter in the second digit. Quarters of an hour are my "fuzzy" measure of time. But -- a lot of 'Geeks' use other number base-coded decimals (not only for dateAndTime display). And the Mayas and Aztecs used number base 20. Now try to read, say for simplicity a hex-clock using "A,B,C,D,E,F" for 10,11,12,13,14,15". For example the MAC address clock here: http://hyperhh.de/html5/MACaddressTime-8.0.2X.html (click to start). And compare to my format. Most kids of age 10 and older can read, with a few minutes of exercise, hex numbers with my format every second. From alex at tweedly.net Mon Oct 15 14:43:36 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 15 Oct 2018 19:43:36 +0100 Subject: DatePicker Widget Message-ID: Q for Hermann (or anyone else who knows :-) I'm trying to use the popup version of the widget, simply by doing *on*mouseup* ? popup*widget"community.livecode.hermann.datepicker"at100,100* ? put*it &CRaftermsg* end*mouseup but the datepicker window is far too small - only about 1/4 the size it would need to be to show the whole datepicker, the rest of it is simply cut off. Is there something I need to do to set the window size I want ? v108 of datepicker, MacOS, LC 9.0.0 Thanks, Alex, From hh at hyperhh.de Mon Oct 15 15:09:31 2018 From: hh at hyperhh.de (hh) Date: Mon, 15 Oct 2018 21:09:31 +0200 Subject: DatePicker Widget Message-ID: <3D09FD11-93B8-4958-9EEF-332668AE63EE@hyperhh.de> Alex, the date picker needs for self-sizing at least "selectedDate" in its property array. So this is minimal and works: on mouseUp put "" into tP["selectedDate"] -- yields "today" popup widget "community.livecode.hermann.datepicker" \ at 100,100 with properties tP if it is not empty then put it & CR after msg end if end mouseUp See the script of btn "POPUP" of the datePicker sample stack for all options. This is because sizing the widget requires script access which is not allowed in OnCreate. [You can also adjust width and height, use put "220" into tP["height"] put "220" into tP["width"] but better use for that property pickerScale.] From hh at hyperhh.de Mon Oct 15 15:25:24 2018 From: hh at hyperhh.de (hh) Date: Mon, 15 Oct 2018 21:25:24 +0200 Subject: Errant mouseRelease message? Message-ID: <9B3B0072-F41C-4D9A-A9ED-1C3B37A5F782@hyperhh.de> > Geoff C. wrote: > I fixed that, and I don't know how. Did you already try to solve that by using dragMove instead of mouseMove? From gcanyon at gmail.com Mon Oct 15 16:52:20 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 15 Oct 2018 13:52:20 -0700 Subject: Errant mouseRelease message? In-Reply-To: <9B3B0072-F41C-4D9A-A9ED-1C3B37A5F782@hyperhh.de> References: <9B3B0072-F41C-4D9A-A9ED-1C3B37A5F782@hyperhh.de> Message-ID: I gave up using dragMove many years ago after finding that I couldn't make it work with setting the selection of Navigator's list. There were too many special cases that were either difficult or impossible, and it was so long ago I don't remember what they all were. I happened on someone's (Scott Rossi?) drag and drop code that just used mouseMove and never looked back. At this point I'm ready to revert to a simple repeat until the mouse is up loop. gc On Mon, Oct 15, 2018 at 12:25 PM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Geoff C. wrote: > > I fixed that, and I don't know how. > > Did you already try to solve that by using dragMove > instead of mouseMove? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Mon Oct 15 16:57:09 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 15 Oct 2018 13:57:09 -0700 Subject: Showing four options in a menu? Message-ID: For displaying a simple binary choice in a menu, a !c checkmark works well. But in Navigator's property menu, there are four possibilities: 1. the property is not boolean -- display nothing with the menu. 2. the property is boolean and is true for all the selected controls -- display a !c check. 3. the property is boolean and is false for all the selected controls -- display ??? 4. the property is boolean and is false for some of the selected controls and true for others -- display ??? Is there any way to handle this without a sub-menu? It would be nice to be able to set booleans from the menu just by selecting them instead of having to mouse onto a sub-menu. From gcanyon at gmail.com Mon Oct 15 17:13:32 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 15 Oct 2018 14:13:32 -0700 Subject: Errant mouseRelease message? In-Reply-To: References: <9B3B0072-F41C-4D9A-A9ED-1C3B37A5F782@hyperhh.de> Message-ID: To be clear: it's been at least five versions of LC since I last tried the built-in drag and drop messages. The only thing stopping me from giving them another try now is how much effort I spent trying to fit them to Navigator's unusual circumstances back in the day. It's possible they'd work for Navigator now. On Mon, Oct 15, 2018 at 1:52 PM Geoff Canyon wrote: > I gave up using dragMove many years ago after finding that I couldn't make > it work with setting the selection of Navigator's list. There were too many > special cases that were either difficult or impossible, and it was so long > ago I don't remember what they all were. I happened on someone's (Scott > Rossi?) drag and drop code that just used mouseMove and never looked back. > At this point I'm ready to revert to a simple repeat until the mouse is up > loop. > > gc > > On Mon, Oct 15, 2018 at 12:25 PM hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > Geoff C. wrote: >> > I fixed that, and I don't know how. >> >> Did you already try to solve that by using dragMove >> instead of mouseMove? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From lists at mangomultimedia.com Mon Oct 15 17:19:35 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 15 Oct 2018 16:19:35 -0500 Subject: [off]Hactoberfest In-Reply-To: References: Message-ID: On Fri, Oct 12, 2018 at 8:11 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Hactoberfest is back live at GitHub - submit 5 pull requests in October and > maybe win a t-shirt. > There are a bunch of LC projects on github, so now's the time to make an > improvement to one of them and enter! > If anybody would like to contribute to the docs in order to get a t-shirt take a look at "Contributing to LiveCode Documentation": https://github.com/livecode/livecode/blob/develop-9.0/docs/contributing_to_docs.md I also created a screencast showing the process: https://www.youtube.com/watch?v=ULN9aavFrrA I will point out that I have already signed the necessary agreement to submit changes to the LiveCode project and I had already forked the LiveCode repo on GitHub. -- Trevor DeVore ScreenSteps www.screensteps.com From monte at appisle.net Mon Oct 15 17:31:53 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 16 Oct 2018 08:31:53 +1100 Subject: Using Dylibs in LiveCode? In-Reply-To: <9be15c70-db8d-6955-0a12-5369eb7978bf@cogapp.com> References: <9be15c70-db8d-6955-0a12-5369eb7978bf@cogapp.com> Message-ID: <0E2EBA8C-16CF-4252-B27C-980B77A0A037@appisle.net> > On 16 Oct 2018, at 1:29 am, Ben Rubinstein via use-livecode wrote: > > I've got a requirement for which there's a useful library, which is made available for MacOS as a 'dylib'. > > What are my options for accessing this from LC? (I don't have a to ship an application using this library, I just want to be access it on my own machines, ideally within the IDE.) LCB is your friend here. Cheers Monte From monte at appisle.net Mon Oct 15 17:41:28 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 16 Oct 2018 08:41:28 +1100 Subject: Unicode Store in JSON In-Reply-To: References: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> <16AF8096-10D9-465C-B3CF-E398B7042C33@appisle.net> <39E2A027-52C6-4B6A-A63B-1CC73D1ECAB7@appisle.net> Message-ID: <9C7D70B7-3266-4EE5-8ECB-F1896D360193@appisle.net> > On 16 Oct 2018, at 12:09 am, Sannyasin Brahmanathaswami via use-livecode wrote: > > A "Related" entry under textDecode and textEncode might help. > > The problem is when you get to a dictionary entry for those, there is no > mention "mergJSON". > > So not matter how well "mergeJSON" is documented, as a "newbie" or > someone who hasn't spend a lot of time in text encoding procedures, one > is "blindsided" to the "mergeJSON" feature. How so. Or do you mean that perhaps they both need to link to a general discussion on text encoding? There are a number of things that deal with text encoding/decoding in the docs so perhaps a general discussion they can all link to would be helpful. I presume until now it has been seen as beyond the scope of our docs but text encoding is definitely something that confuses many users. Something along the lines of the content of this article would probably be good: https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/ > > I am getting better at GIT now. I could contribute to the dictionary if > I knew how. Well you can get a free t-shirt this month if you do! Check out Trevor?s recent post. Cheers Monte From smudge.andy at googlemail.com Tue Oct 16 02:00:39 2018 From: smudge.andy at googlemail.com (AndyP) Date: Tue, 16 Oct 2018 01:00:39 -0500 (CDT) Subject: [off]Hactoberfest In-Reply-To: References: Message-ID: <1539669639250-0.post@n4.nabble.com> Hi Trevor, Excellent clear tutorial, thanks for this. ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From neville.smythe at optusnet.com.au Tue Oct 16 03:49:51 2018 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Tue, 16 Oct 2018 18:49:51 +1100 Subject: setProp question Message-ID: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> Is there any way to intercept setProp messages for properties you *don?t* want to set? I find with my poor typing skills I keep typing Set the of where NonexistentProperty is a mistype of SomePropertyWhichHasASetPropHandler and so I keep creating lots of superfluous properties for the object. Annoying and sometime painful to clean up. When you are initially creating the object properties this is not a problem but once the structure is set up I'd like to declare ?enough?, maybe with a LockProperties command (come to think of it locking changes to existing properties might be useful too, though that can be coded into each SetProp handler) Also, on another topic: my LiveCode windows have suddenly acquired a second title line, which when dragged tends to miniaturise the window and then display it somewhere else or at full screen, and each time a script editor window is opened it is moved higher up the screen until it moves under the menubar and becomes unusable. Looks look a system thing (Mac High Sierra) but I?ve never seen it before and only just changed to LC9.0.1. Any suggestions as to how to stop this major annoyance would be appreciated - or at least configure it if it really is a new LC ?feature". From richmondmathewson at gmail.com Tue Oct 16 04:40:49 2018 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 16 Oct 2018 11:40:49 +0300 Subject: setProp question In-Reply-To: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> References: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> Message-ID: I don't know. BUT, you can open up the properties palette and manually delete custom props. I'm sorry, I know that's a bit of a pain in the bum Richmond. On 16.10.18 ?. 10:49 ?., Neville Smythe via use-livecode wrote: > Is there any way to intercept setProp messages for properties you *don?t* want to set? > > I find with my poor typing skills I keep typing > > Set the of > > where NonexistentProperty is a mistype of SomePropertyWhichHasASetPropHandler > > and so I keep creating lots of superfluous properties for the object. Annoying and sometime painful to clean up. > When you are initially creating the object properties this is not a problem but once the structure is set up I'd like to declare ?enough?, maybe with a LockProperties command > (come to think of it locking changes to existing properties might be useful too, though that can be coded into each SetProp handler) > > Also, on another topic: my LiveCode windows have suddenly acquired a second title line, which when dragged tends to miniaturise the window and then display it somewhere else or at full screen, and each time a script editor window is opened it is moved higher up the screen until it moves under the menubar and becomes unusable. Looks look a system thing (Mac High Sierra) but I?ve never seen it before and only just changed to LC9.0.1. Any suggestions as to how to stop this major annoyance would be appreciated - or at least configure it if it really is a new LC ?feature". > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Tue Oct 16 06:02:03 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 16 Oct 2018 11:02:03 +0100 Subject: Using Dylibs in LiveCode? In-Reply-To: <0E2EBA8C-16CF-4252-B27C-980B77A0A037@appisle.net> References: <9be15c70-db8d-6955-0a12-5369eb7978bf@cogapp.com> <0E2EBA8C-16CF-4252-B27C-980B77A0A037@appisle.net> Message-ID: <41903b77-1d03-9568-2090-dfdf95e832b1@cogapp.com> Thanks Monte. Where can I find some documentation as to how I can use this? Many thanks, Ben On 15/10/2018 22:31, Monte Goulding via use-livecode wrote: > > >> On 16 Oct 2018, at 1:29 am, Ben Rubinstein via use-livecode wrote: >> >> I've got a requirement for which there's a useful library, which is made available for MacOS as a 'dylib'. >> >> What are my options for accessing this from LC? (I don't have a to ship an application using this library, I just want to be access it on my own machines, ideally within the IDE.) > > LCB is your friend here. > > Cheers > > Monte From bdrunrev at gmail.com Tue Oct 16 06:44:29 2018 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 16 Oct 2018 11:44:29 +0100 Subject: LC 9.0 Windows - tooltip broken for new datagrid? Message-ID: Am I right that this is broken? A new stack with a single button will show the button's tooltip when the pointer hovers over it. Add a datagrid, and set the tooltip for the datagrid through the inspector. The tooltip does not display no matter where the pointer is in the datagrid. Regards Bernard From alex at tweedly.net Tue Oct 16 07:13:05 2018 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 16 Oct 2018 12:13:05 +0100 Subject: setProp question In-Reply-To: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> References: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> Message-ID: <7a87bf95-b949-d30d-5f42-a0a814c05a74@tweedly.net> I don't know of a way to intercept them, and I did look, because I have/had exactly the same problem. I wrote a script (ExplicitProperties) which does a decent, but imperfect, attempt to find places you have referenced a customprop, and checks whether it is a "known" one. That was back in 2012, and I haven't used it much in the meantime, so I don't know what the latest ersion of LC it has been tested / used with - but it was useful to me then. You can find it at http://www.tweedly.org/showpage.lc?page=ExplicitProperties with an explanation of what it does. So, you very reasonably ask, why does the author no longer use it ? :-) Well, I just gave up on using custom properties completely. Probably not the right thing to do, but it works for me. Alex. On 16/10/2018 08:49, Neville Smythe via use-livecode wrote: > Is there any way to intercept setProp messages for properties you *don?t* want to set? > > I find with my poor typing skills I keep typing > > Set the of > > where NonexistentProperty is a mistype of SomePropertyWhichHasASetPropHandler > > and so I keep creating lots of superfluous properties for the object. Annoying and sometime painful to clean up. > When you are initially creating the object properties this is not a problem but once the structure is set up I'd like to declare ?enough?, maybe with a LockProperties command > (come to think of it locking changes to existing properties might be useful too, though that can be coded into each SetProp handler) > > Also, on another topic: my LiveCode windows have suddenly acquired a second title line, which when dragged tends to miniaturise the window and then display it somewhere else or at full screen, and each time a script editor window is opened it is moved higher up the screen until it moves under the menubar and becomes unusable. Looks look a system thing (Mac High Sierra) but I?ve never seen it before and only just changed to LC9.0.1. Any suggestions as to how to stop this major annoyance would be appreciated - or at least configure it if it really is a new LC ?feature". > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Tue Oct 16 09:02:39 2018 From: dunbarx at aol.com (dunbarxx) Date: Tue, 16 Oct 2018 08:02:39 -0500 (CDT) Subject: setProp question In-Reply-To: <7a87bf95-b949-d30d-5f42-a0a814c05a74@tweedly.net> References: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> <7a87bf95-b949-d30d-5f42-a0a814c05a74@tweedly.net> Message-ID: <1539694959410-0.post@n4.nabble.com> "...Well, I just gave up on using custom properties completely. Probably not the right thing to do, but it works for me. " Alex. Really? You abandoned custom properties? I cannot live without them, though I rarely use the setProp and getProp control structures. Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From lists at mangomultimedia.com Tue Oct 16 10:16:31 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 16 Oct 2018 09:16:31 -0500 Subject: Using Dylibs in LiveCode? In-Reply-To: <41903b77-1d03-9568-2090-dfdf95e832b1@cogapp.com> References: <9be15c70-db8d-6955-0a12-5369eb7978bf@cogapp.com> <0E2EBA8C-16CF-4252-B27C-980B77A0A037@appisle.net> <41903b77-1d03-9568-2090-dfdf95e832b1@cogapp.com> Message-ID: On Tue, Oct 16, 2018 at 5:07 AM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Monte. Where can I find some documentation as to how I can use this? > This is a good document to review: https://github.com/livecode/livecode/blob/develop/docs/guides/LiveCode%20Builder%20Language%20Reference.md For a working example take a look at the Sparkle.lcb file and the code folder in the Levure App Updater Helper. It shows how to use binding strings to link to Sparkle methods. https://github.com/trevordevore/levurehelper-app_updater I also have a repo with a number of macOS API experiments which may prove useful: https://github.com/trevordevore/lc-macos-toolset -- Trevor DeVore ScreenSteps www.screensteps.com From bobsneidar at iotecdigital.com Tue Oct 16 10:41:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Oct 2018 14:41:30 +0000 Subject: OT: The Principles of Clean Architecture In-Reply-To: References: Message-ID: <6CAD749B-58BC-4FBF-B982-2E1115E9AF35@iotecdigital.com> I think you meant, "I hope you don't mind my sharing ongoing research into high level architecture." :-) Bob S > On Oct 14, 2018, at 19:35 , Sannyasin Brahmanathaswami via use-livecode wrote: > > Hope you don't in my sharing on going research into high level architecture. From bobsneidar at iotecdigital.com Tue Oct 16 11:12:27 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Oct 2018 15:12:27 +0000 Subject: setProp question In-Reply-To: <7a87bf95-b949-d30d-5f42-a0a814c05a74@tweedly.net> References: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> <7a87bf95-b949-d30d-5f42-a0a814c05a74@tweedly.net> Message-ID: Not to mercilessly flog an expired Equine, but one of the great things about custom properties, is that you can pass the long ID of an object to a command or function (think behaviors), and so reference it's custom properties in said command or function. Essentially this behaves as group of variables with the object as the scope. For instance I have a command that pops up a "tooltip" (not a real tooltip but a field) when I right-click a record in a datagrid, containing summary information about the record clicked on. How do I know what columns belong in the summary data? I store them in a custom property in the datagrid, then pass the long id of the datagrid to the command. Think about that. Not only do I have the long ID of the datagrid, but also the long ID of the group (if any) the datagrid belongs to, the long id of the card, and the stack reference. Then I can reference all the regular and custom properties and know I am dealing with exactly that object clicked on, and not a copy of the object I forgot to delete. Just by passing the long ID, instead of a string of parameters. It's like a package of variables, AND the variables are persistent between sessions. Bob S > On Oct 16, 2018, at 04:13 , Alex Tweedly via use-livecode wrote: > > I don't know of a way to intercept them, and I did look, because I have/had exactly the same problem. > > I wrote a script (ExplicitProperties) which does a decent, but imperfect, attempt to find places you have referenced a customprop, and checks whether it is a "known" one. That was back in 2012, and I haven't used it much in the meantime, so I don't know what the latest ersion of LC it has been tested / used with - but it was useful to me then. > > You can find it at http://www.tweedly.org/showpage.lc?page=ExplicitProperties with an explanation of what it does. > > So, you very reasonably ask, why does the author no longer use it ? :-) > > Well, I just gave up on using custom properties completely. Probably not the right thing to do, but it works for me. > > Alex. From bobsneidar at iotecdigital.com Tue Oct 16 11:17:45 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Oct 2018 15:17:45 +0000 Subject: LC 9.0 Windows - tooltip broken for new datagrid? In-Reply-To: References: Message-ID: Actually, everything in a datagrid is an object of some sort with it's own tooltip (empty by default). There would have to be special code to display the tooltip for a datagrid instead of the tooltip for the object you are pointing at. I tested in a new stack and the tooltip for a datagrid NEVER displays. Not even sure why it's there. Bob S > On Oct 16, 2018, at 03:44 , Bernard Devlin via use-livecode wrote: > > Am I right that this is broken? > > A new stack with a single button will show the button's tooltip when the > pointer hovers over it. > Add a datagrid, and set the tooltip for the datagrid through the inspector. > The tooltip does not display no matter where the pointer is in the datagrid. > > Regards > Bernard From bobsneidar at iotecdigital.com Tue Oct 16 11:44:56 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Oct 2018 15:44:56 +0000 Subject: Unicode Store in JSON In-Reply-To: References: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> Message-ID: <7C22E593-FC28-4076-80CE-6A82DD061E82@iotecdigital.com> Unicode is binary?? Bob S > On Oct 14, 2018, at 17:35 , Sannyasin Brahmanathaswami via use-livecode wrote: > > On 10/14/18 8:43 AM, J. Landman Gay via use-livecode wrote: >> I'd store the text normally, without alteration, in the JSON. TextEncode >> it when you send it to the database and textDecode when you retrieve it >> from the database. > > Wow, that worked! And I thought that JSON could not be a container for > "binaryData" as described on the dictionary. > > BR From bobsneidar at iotecdigital.com Tue Oct 16 11:51:28 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Oct 2018 15:51:28 +0000 Subject: Showing four options in a menu? In-Reply-To: References: Message-ID: <5C0172CA-3ECA-4256-B26B-6709D59D31CB@iotecdigital.com> > On Oct 15, 2018, at 13:57 , Geoff Canyon via use-livecode wrote: > > For displaying a simple binary choice in a menu, a !c checkmark works well. > But in Navigator's property menu, there are four possibilities: > > 1. the property is not boolean -- display nothing with the menu. > 2. the property is boolean and is true for all the selected controls -- > display a !c check. > 3. the property is boolean and is false for all the selected controls -- > display ??? > 4. the property is boolean and is false for some of the selected controls > and true for others -- display ??? > > Is there any way to handle this without a sub-menu? It would be nice to be > able to set booleans from the menu just by selecting them instead of having > to mouse onto a sub-menu. It would be non-standard, but that being said, prepending the menu with a character like a bullet, checkbox, x or dash could work. Not sure if button/menu text can display HTML, but that would be a possibility. You would have to handle your selections differently methinks. Bob S From bobsneidar at iotecdigital.com Tue Oct 16 11:58:36 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 16 Oct 2018 15:58:36 +0000 Subject: Showing four options in a menu? In-Reply-To: <5C0172CA-3ECA-4256-B26B-6709D59D31CB@iotecdigital.com> References: <5C0172CA-3ECA-4256-B26B-6709D59D31CB@iotecdigital.com> Message-ID: <05EF5299-82D0-45CA-BA80-F778973BEAEB@iotecdigital.com> > On Oct 16, 2018, at 08:51 , Bob Sneidar via use-livecode wrote: > > > >> On Oct 15, 2018, at 13:57 , Geoff Canyon via use-livecode wrote: >> >> For displaying a simple binary choice in a menu, a !c checkmark works well. >> But in Navigator's property menu, there are four possibilities: >> >> 1. the property is not boolean -- display nothing with the menu. >> 2. the property is boolean and is true for all the selected controls -- >> display a !c check. >> 3. the property is boolean and is false for all the selected controls -- >> display ??? >> 4. the property is boolean and is false for some of the selected controls >> and true for others -- display ??? >> >> Is there any way to handle this without a sub-menu? It would be nice to be >> able to set booleans from the menu just by selecting them instead of having >> to mouse onto a sub-menu. > > It would be non-standard, but that being said, prepending the menu with a character like a bullet, checkbox, x or dash could work. Not sure if button/menu text can display HTML, but that would be a possibility. You would have to handle your selections differently methinks. > > Bob S > > The answer is no, a button cannot display HTML. If it did then some thought would have to be given to how to return a value in menuPick. You wouldn't want it to return the html text of the choice, but then how would you distinguish what part of the value was the mark, and what was the choice? In these situations, I usually go away from popup menus and use locked fields with listBehavior set instead. Bob S From gcanyon at gmail.com Tue Oct 16 12:41:59 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 16 Oct 2018 09:41:59 -0700 Subject: Showing four options in a menu? In-Reply-To: <05EF5299-82D0-45CA-BA80-F778973BEAEB@iotecdigital.com> References: <5C0172CA-3ECA-4256-B26B-6709D59D31CB@iotecdigital.com> <05EF5299-82D0-45CA-BA80-F778973BEAEB@iotecdigital.com> Message-ID: I went with submenus, and that works, it's just annoying for a binary value (even if binary really ends up being four options, as described). I'm going to leave it alone for now and wait for inspiration to hit. On Tue, Oct 16, 2018 at 8:58 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > > In these situations, I usually go away from popup menus and use locked > fields with listBehavior set instead. > From brahma at hindu.org Tue Oct 16 12:59:51 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 16 Oct 2018 16:59:51 +0000 Subject: Unicode Store in JSON References: <49246e2d-ee9d-f834-4ebe-37df21ca485c@hyperactivesw.com> <7C22E593-FC28-4076-80CE-6A82DD061E82@iotecdigital.com> Message-ID: Unicode is binary?? > Bob S not unicode per se Dictionary says *Syntax* textEncode(*stringToEncode*, encoding) *Summary* Converts from text to binary data. From brahma at hindu.org Tue Oct 16 14:25:50 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 16 Oct 2018 18:25:50 +0000 Subject: Library to Cancel PendingMessages Message-ID: We anticipate using more and more animation in our app. It is like Levure in the sense that it is has a lot of "view" module/stacks. For now I just need to cancel one or two. Which we can very easily do "locally" -- store the result and cancel on close card. But I wonder about a global library. Where the messages contained in "pScope" (all the animation on a given card) # user will immediately close a card that has animation on progress. I wonder before I go start reinventing the wheel there, if someone how a global library for canceling the pending message. The idea is send "gotoPathIndex" to me in 4 seconds send "moveTiger" to me in 3 seconds I started in this but got lost in how to manage 2 dimensional arrays with with "wild card" in the second dimension. So I just got it working for one card, for one animation for now ========== # card script: on preOpenCard send "gotoPathIndex" to me in 4 seconds put the result into pResult -- put the pendingmessages -- breakpoint queueStackMessages "CoverAnimation","closeCardTransition",pResult end preOpenCard on closeCard cancelStackMessages "CoverAnimation", "closeCardTransition" end closeCard # stack script: testing, will put in a back script eventually # queueStackMessages # Param1: e.g all pending message for a given card animation(s) # Param2: e.g the name of the message # Param3: e.g the result--Message ID local sStackPendingMessagesA command queueStackMessages pScope,pName,pResult put pResult into sStackPendingMessagesA[pScope][pName] end queueStackMessages # -- cancelMessages command cancelStackMessages pScope,pDescription,pResult cancel sStackPendingMessagesA["CoverAnimation"]["closeCardTransition"] -- if param(2) is empty and param(3) is empty then -- repeat for each key K in sStackPendingMessagesA -- end if -- # oops - got lost in -- # how cancel all animation in pScope end cancelStackMessages two more questions: 1) how to get a "wild card" in an array, or do we need a repeat loop to thru the keys cancel sStackPendingMessagesA["CoverAnimation"][*wildCard*] 2) can you cancel a message with its name? I suspect not. We will have parse the pendingMessages. 3) You always have a global license to say "This is bad architecture. Why don't you do it like this?" 53428,1539662235.139143,gotoPathIndex,card id 1088 of stack "/Users/brahmanathaswami/Documents/_Siva-Siva-App/modules/pathtosiva/pathtosiva.livecode" 45657,1539663123.654176,news_Fetch,stack "/Users/brahmanathaswami/Documents/_Siva-Siva-App/libraries/lib_SivaSiva.livecodescript" From dougr at telus.net Tue Oct 16 16:12:59 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Tue, 16 Oct 2018 13:12:59 -0700 Subject: sending a JSON string Message-ID: <120e01d4658c$a3cfd300$eb6f7900$@net> I'll start by apologizing for my abysmal familiarity with HTTP, JSON, and URL's ... I'm hoping someone will have pity and give me a hand! I am trying to send a "command" to a ThingSpeak channel, which is very successfully receiving data from a simple little ESP8266 module. Periodically, I need to clear the data from this channel. I want to do so from LC.. NOT the ESP8266. I just can't seem to "coordinate" the instructions from the ThingSpeak site to DELETE this data (not the channel, just the data within) with an LC function / code. The link to the ThingSpeak page I am referring to is: https://www.mathworks.com/help/thingspeak/clearchannel.html?searchHighlight=delete%20channel%20data&s_tid=doc_srchtitle#d120e16923 but in essence, I interpret the content to assert the following: Access the following URL: "https://api.thingspeak.com/channels/564256/feeds.json" where "564256" is the channel I wish to clear. Send the JSON "command": "DELETE https://api.thingspeak.com/channels/564256/feeds.json api_key= EQKTUQQKVH83D1RE" where "EQKTUQQKVH83D1RE" is my account api-key for writing to the ThingSpeak channel if successful, ThingSpeak responds with: "[]" ... an empty JSON array In LC, I've tried the following (and several variations): on mouseUp put empty into field "Output" put "https://api.thingspeak.com/channels/564256/feeds.json" into tUrl put "DELETE https://api.thingspeak.com/channels/564256/feeds.xml" & return & "api_key=EQKTUQQKVH83D1RE" into JsonCmd -- Send a HTTP DELETE request put tsNetCustomSync(tUrl, JsonCmd, tHeader, tResponseHeaders, tResult, tBytes) into tData -- If this is not the case, we will inform the user put tResult into field "Output" end mouseUp I get a tResult of 0 (zero) ... but the data is NOT cleared. I have also tried the following: on mouseUp put empty into field "Output" put "https://api.thingspeak.com/channels/564256/feeds.json?api_key=EQKTUQQKVH83D1RE" into tUrl put "DELETE https://api.thingspeak.com/channels/564256/feeds.json" & return & "api_key=EQKTUQQKVH83D1RE" into tMessage["text"] put ArrayToJSON(tMessage) into tMessage set the httpHeaders to "Content-type: application/json" post tMessage to url tUrl put it into field "Output" end mouseUp But that only "creates" a new entry in the channel with all of the data fields empty. I'm sure it's the way in which I am trying to send the "DELETE" command but I just can't see how to do it correctly. I'd be grateful for any assistance. Douglas Ruisaard Trilogy Software (250) 573-3935 From gcanyon at gmail.com Tue Oct 16 17:42:52 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 16 Oct 2018 14:42:52 -0700 Subject: Navigator 6.6 alpha 1 is out Message-ID: As usual, you can get Navigator here . Or grab it from GitHub . Navigator 6.6rc1 Release Notes This is a major update to how commands work in Navigator, and continues to update how Navigator handles what container to target. === NEW FEATURES === COMMAND BARS Navigator now supports from 0-6 (configurable in preferences) Command Bars. These are similar in appearance to the Group Fold Bar, but on the right side of Navigator. Each bar can have a command associated with it, and clicking a selected control in the bar will apply that command to the currently selected controls. Click an unselected control in the Command Bar to select the control you click and apply the command to that one control. This is intended as a more obvious way to apply different commands to a set of controls than the previous option/command/shift click options in the main list. Those options are still available and configurable in the preferences. That section of the preferences now includes the setting for how many command bars to display as well. There are no custom key combinations available for the command bars, except for control-clicking a command bar to select what command it should apply. Each command bar has a tooltip that displays what command it will apply. To change the command, control-click or right-click the command bar. This displays a menu of the built-in commands, followed by any custom commands included in your Navigator Commands folder. The current command will have a checkmark; select any other command to change to that command. These settings are universal across all open copies of Navigator. To define a new command, select New Command... at the top of the menu. That will open Navigator's Command Panel, where you can enter a new command. The command panel has a Save button. Once you save your command and give it a name, it will be set for that command panel -- and available as a custom command in general. LIST CUSTOM COMMANDS NOW ALL USE THE COMMAND PANEL In Preferences, list custom commands can now be defined using the Command Panel instead of just an Ask dialog, and have access to the pre-defined variables of the Command Panel -- tID for the current control, tCount for the number of controls selected, tIndex for the index of the current control in the list, etc. See the included Index Names.txt and Report Average Loc.txt for examples of how this can be used. COMMAND PANEL CHANGES The command panel has been updated. It now includes a tab for changing between commands and setting properties. It likely needs explaining that when setting properties, all that is needed is something like the following: left=47 right = 89 visible= false to set those three properties to the associated values for the selected controls. This can't be used as a custom command. The command panel now reflects this fact, hiding the "Save" button when showing the properties panel. EDITING CUSTOM COMMANDS There is no functionality for editing or removing custom commands. However, they are just text files in the Navigator Commands folder, so you can delete those files or edit them however you like. STACK MENU BECOMES "WHICH TARGET" MENU -- INCLUDES RECENT TARGETS The Stack menu is now the Target menu. The icon reflects the crosshair used for targeting a stack visually. Simply clicking the crosshair goes immediately to the mouseStack functionality. A slow click, or click-and-hold, displays the Stack menu as usual. The recent targets have moved to the Stack menu. I upped the limit to 9, and internally I'm storing 99 -- let me know if there is any need/use case for this. Recent targets are now universal across all copies of Navigator. The Show IDE Stacks and Show Script-Only Stacks options should now stick from one launch of Navigator to the next -- but they're not preferences, so installing a new copy of Navigator will default them back to off. OBSCURE, BUT NAVIGATOR HAS BETTER DEBUG FUNCTIONALITY Navigator is a bear to debug. Over the years I can't count how many times I've typed: put "got here" to learn where my code is dying. That's a pain to find and disable when shipping Navigator, and more than once I've gotten a friendly note from someone saying that Navigator is triggering the message box. So I created a simple Debug command within Navigator. Here it is: local sDebugLastCall on debug -- exit debug if sDebugLastCall is empty or ticks() - sDebugLastCall > 120 then put empty put ticks() into sDebugLastCall put line -2 of the executionContexts into LC put ticks() & cr & the long name of (item 1 of LC) & cr & item 2 to -1 of LC & cr & cr into R repeat with i = 1 to paramCount() put i & ":" && param(i) & cr & cr after R end repeat put R after message end debug Obviously, "debug" is easier to find and remove in scripts than an unterminated "put", but note that first line "-- exit debug"; as long as I uncomment that line, even if I miss a call to "debug", nothing will happen. OBSCURE, BUT NAVIGATOR NOW HAS BUILT-IN IDE DEBUGGING CAPABILITY Hold the option key while opening Navigator's Action menu and an option will be added at the bottom of the menu to debug Navigator/the IDE. When checked, breakpoints will work in IDE/Navigator stacks. Almost more importantly, unchecking it disables strict compilation. A BUNCH OF SMALL BUG FIXES THAT I OUGHT TO DOCUMENT BETTER... Yeah, sorry I don't have a list. OUTSTANDING BUG For several versions now Navigator's Drag and Drop has failed at dragging out of Navigator and into some stacks. I haven't figured out why I'm getting a mouseRelease message when I shouldn't, so I may have to re-write Navigator's drag and drop -- again :-/ From andre at andregarzia.com Tue Oct 16 19:10:05 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Wed, 17 Oct 2018 00:10:05 +0100 Subject: sending a JSON string In-Reply-To: <120e01d4658c$a3cfd300$eb6f7900$@net> References: <120e01d4658c$a3cfd300$eb6f7900$@net> Message-ID: <41683bda-81ae-ac2e-1542-7d98f19ece82@andregarzia.com> Douglas, I am pasting some code I've built here that should do what you want but when I try it, it returns a 401 error which is an authentication error. On that manual page you linked there is a notice about API keys and Channel keys, so maybe the key on this email is not the correct one. This is the code (and yes, it is dead ugly): *on*mouseup *local*tHeaders, tResult *put*emptyintofld"output" *put*"Content-Type: application/x-www-form-urlencoded"intotHeaders *put*libURLFormData("api_key", "EQKTUQQKVH83D1RE") intotFormData *put*tsNetCustomUpload("1", "https://api.thingspeak.com/channels/564256/feeds.json", "DELETE", tHeaders, "transferComplete", tFormData) intotResult *end*mouseup *on*transferComplete pID, pResult, pBytes, pCurlCode *local*tData, tHeaders, tResult, rError *if* pCurlCode isnot0*then* *put*tsNetRetrError(pID) & crafterfld"output" *end* *if* *put*tsNetRetrData(pID, tError) intotData *put*"Server returned:"& tData & crafterfld"output" *put*"Headers"&& tsNetRetrSentHeaders("1", rError) & crafterfld"output" *put*tResult & cr& tHeaders & cr& pResult & cr& tData afterfld"output" ?? tsNetCloseConn pID *end*transferComplete On 10/16/2018 9:12 PM, Douglas Ruisaard via use-livecode wrote: > I'll start by apologizing for my abysmal familiarity with HTTP, JSON, and URL's ... I'm hoping someone will have pity and give me a hand! > > I am trying to send a "command" to a ThingSpeak channel, which is very successfully receiving data from a simple little ESP8266 module. Periodically, I need to clear the data from this channel. I want to do so from LC.. NOT the ESP8266. I just can't seem to "coordinate" the instructions from the ThingSpeak site to DELETE this data (not the channel, just the data within) with an LC function / code. > > The link to the ThingSpeak page I am referring to is: > https://www.mathworks.com/help/thingspeak/clearchannel.html?searchHighlight=delete%20channel%20data&s_tid=doc_srchtitle#d120e16923 > > but in essence, I interpret the content to assert the following: > > Access the following URL: "https://api.thingspeak.com/channels/564256/feeds.json" where "564256" is the channel I wish to clear. > > Send the JSON "command": "DELETE https://api.thingspeak.com/channels/564256/feeds.json > api_key= EQKTUQQKVH83D1RE" > > where "EQKTUQQKVH83D1RE" is my account api-key for writing to the ThingSpeak channel > > if successful, ThingSpeak responds with: "[]" ... an empty JSON array > > > In LC, I've tried the following (and several variations): > > on mouseUp > put empty into field "Output" > put "https://api.thingspeak.com/channels/564256/feeds.json" into tUrl > put "DELETE https://api.thingspeak.com/channels/564256/feeds.xml" & return & "api_key=EQKTUQQKVH83D1RE" into JsonCmd > > -- Send a HTTP DELETE request > put tsNetCustomSync(tUrl, JsonCmd, tHeader, tResponseHeaders, tResult, tBytes) into tData > > -- If this is not the case, we will inform the user > put tResult into field "Output" > > end mouseUp > > I get a tResult of 0 (zero) ... but the data is NOT cleared. > > I have also tried the following: > > on mouseUp > put empty into field "Output" > put "https://api.thingspeak.com/channels/564256/feeds.json?api_key=EQKTUQQKVH83D1RE" into tUrl > put "DELETE https://api.thingspeak.com/channels/564256/feeds.json" & return & "api_key=EQKTUQQKVH83D1RE" into tMessage["text"] > > put ArrayToJSON(tMessage) into tMessage > > set the httpHeaders to "Content-type: application/json" > > post tMessage to url tUrl > > put it into field "Output" > > end mouseUp > > But that only "creates" a new entry in the channel with all of the data fields empty. > > I'm sure it's the way in which I am trying to send the "DELETE" command but I just can't see how to do it correctly. > > I'd be grateful for any assistance. > > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Oct 16 23:22:13 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 16 Oct 2018 20:22:13 -0700 Subject: Navigator 6.6 alpha 1 is out In-Reply-To: References: Message-ID: Updated to fix the Card List and Background List. Also noticed and fixed a non-visual issue with the HTML being set in Navigator's List. > From ludovic.thebault at laposte.net Wed Oct 17 07:15:37 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Wed, 17 Oct 2018 13:15:37 +0200 Subject: Android manifest merging Message-ID: <9AA38320-56A2-4B8A-A97B-C3B4125DCBFA@laposte.net> Hello, With Livecode 9, according the releasing notes : "Since the merging mechanism is more general, enables multiple manifests and does not require users to update template manifests with new template replacement strings, this feature has been removed - instead any AndroidManifest.xml files included in the Copy Files list will be merged into the main manifest at build time. ? So, if i want to add an intent-filter (to have an file extension associated with my app), i just need to put it into an empty ? android manifest.xml ? file and add it to the ? copy file ? section of the standalone settings ? Thanks for your light ! Ludovic From chipsm at themartinz.com Wed Oct 17 11:31:17 2018 From: chipsm at themartinz.com (chipsm at themartinz.com) Date: Wed, 17 Oct 2018 08:31:17 -0700 Subject: Navigator 6.6 alpha 1 is out In-Reply-To: References: Message-ID: <021401d4662e$72649470$572dbd50$@themartinz.com> Geoff, I just visited your website and I really like it. Sincerely, Clarence Martin Email: Chipsm at themartinz.com Cell: 626 696-5561 -----Original Message----- From: use-livecode On Behalf Of Geoff Canyon via use-livecode Sent: Tuesday, October 16, 2018 8:22 PM To: How to use LiveCode Cc: Geoff Canyon Subject: Re: Navigator 6.6 alpha 1 is out Updated to fix the Card List and Background List. Also noticed and fixed a non-visual issue with the HTML being set in Navigator's List. > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Wed Oct 17 11:59:50 2018 From: hh at hyperhh.de (hh) Date: Wed, 17 Oct 2018 17:59:50 +0200 Subject: Widget imageWidget_v110 Message-ID: ### v1.0.0 Aug 25, 2018 ... first (nearly) complete version ### v1.1.0 Oct 17, 2018 ... first version on "Sample Stacks" Widget ImageWidget will blow you away. Why? Because it demonstrates the enormous possibilities that LiveCode Builder already provides. I tried to do everything in pure LCB. There is only script access where I was forced to do, because LCB is not yet ready: Networking and adjusting the widget's size. So: ** ImageWidget is dedicated to the LC team, the makers of LCB. ** The widget transforms images of up to screen size in "real time". You can load raw imagedata from your stack, load an image from a local file or load an image or raw data (with saving) from an URL. You can also overlay an (also shaped) text/caption. The base position of the 9 handles are (use a monospaced font): ############################## # 1=TL ----- 2=TM ----- 3=TR # # | | # # 8=ML 0=MM 4=MR # # | | # # 7=BL ----- 6=BM ----- 5=BR # ############################## [M=Midth, T=Top, L=Left, R=Right, B=Bottom] Affine Transformations by click- and/or drag-actions: [*] Near 0=MM but not 0=MM: Rotate, [*] RightClick 0=MM: ResetImage, [*] 0=MM: ResetShape (width 360), [*] 2=TM: SkewX (= shearX), [*] 4=MR: SkewY (= shearY), [*] 6=BM: TrueHeight, [*] 8=ML: TrueWidth, [*] 1=TL,3=TR,5=BR,7=BL: TrueResize. [True = preserves current shape.] ++ RightClick switches the action of handles (2=TM, 6=BM) and (4=MR, 8=ML). ++ RightClick on handles (1=TL, 3=TR, 5=BR, 7=BL) inverts temporarily the current "proportional" settings . ImageWidget is a "fat" widget that works with LC 8 and LC 9 identically and also in all LC editions, from community up to business. [Except that you need LC 9 when using drawingSVGcompile for loading an SVG file to the image.] The code has 3500 lines (incl. 800 lines for the dictionary), there is a lot of math to do when getting the affine transforms: the widget computes the current transform from the current position of the handles. The source (lcb-file) is not included. The widget is free for non-commercial use. For commercial use please give a (small) fee to the LC developer help fund. Download ImageWidget_v107 from "Sample Stacks" or http://livecodeshare.runrev.com/stack/912 +++++++++ Someday, everything is gonna be diff'rent, when I paint my masterpiece. (Bob Dylan) From dougr at telus.net Wed Oct 17 12:14:38 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Wed, 17 Oct 2018 09:14:38 -0700 Subject: sending a JSON string In-Reply-To: CickgcVhADhAwCicpgPuvj References: CickgcVhADhAwCicpgPuvj Message-ID: <125f01d46634$8249bc70$86dd3550$@net> Thanks very much, Andre! I appreciate the assistance. I am sure the two "keys" are correct as I use them in another portion of the application (an ESP8266 module which sends data to ThingSpeak). A subsequent direct message from you mentioned "Charles Proxy" as an inspector for HTML messaging. THAT's a huge hint and I'll be installing it to see what exactly LC is sending. The ThingSpeak community is very active and I'll submit a request for assistance to it. I thought I'd start with this forum since it is very responsive and knowledgeable... Also my lack of good working understanding about LC's HTML and overall web features and functions left me thinking I was doing something wrong in LC. With Andre's attempt generating a similar response to what I was getting, it helps vindicate my uncertainty about LC's ability to generate an appropriate message to ThingSpeak. if I find a solution, I'll certainly let this board know. In the meantime, if ANYONE has any other suggestions, I'd be extremely grateful! Cheers Doug Douglas Ruisaard Trilogy Software (250) 573-3935 > > Message: 3 > Date: Wed, 17 Oct 2018 00:10:05 +0100 > From: Andre Alves Garzia > To: How to use LiveCode > Cc: Douglas Ruisaard > Subject: Re: sending a JSON string > Message-ID: <41683bda-81ae-ac2e-1542-7d98f19ece82 at andregarzia.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Douglas, > > I am pasting some code I've built here that should do what you want but when I try it, it returns a > 401 error which is an authentication error. > On that manual page you linked there is a notice about API keys and Channel keys, so maybe the key on > this email is not the correct one. > This is the code (and yes, it is dead ugly): > > *on*mouseup > > *local*tHeaders, tResult > > *put*emptyintofld"output" > > *put*"Content-Type: application/x-www-form-urlencoded"intotHeaders > > *put*libURLFormData("api_key", "EQKTUQQKVH83D1RE") intotFormData > > *put*tsNetCustomUpload("1", > "https://api.thingspeak.com/channels/564256/feeds.json", "DELETE", tHeaders, "transferComplete", > tFormData) intotResult > > *end*mouseup > > *on*transferComplete pID, pResult, pBytes, pCurlCode > > *local*tData, tHeaders, tResult, rError > > *if* pCurlCode isnot0*then* > > *put*tsNetRetrError(pID) & crafterfld"output" > > *end* *if* > > *put*tsNetRetrData(pID, tError) intotData > > *put*"Server returned:"& tData & crafterfld"output" > > *put*"Headers"&& tsNetRetrSentHeaders("1", rError) & crafterfld"output" > > *put*tResult & cr& tHeaders & cr& pResult & cr& tData afterfld"output" > > ?? tsNetCloseConn pID > > *end*transferComplete > > > > On 10/16/2018 9:12 PM, Douglas Ruisaard via use-livecode wrote: > > I'll start by apologizing for my abysmal familiarity with HTTP, JSON, and URL's ... I'm hoping > someone will have pity and give me a hand! > > > > I am trying to send a "command" to a ThingSpeak channel, which is very successfully receiving data > from a simple little ESP8266 module. Periodically, I need to clear the data from this channel. I > want to do so from LC.. NOT the ESP8266. I just can't seem to "coordinate" the instructions from the > ThingSpeak site to DELETE this data (not the channel, just the data within) with an LC function / > code. > > > > The link to the ThingSpeak page I am referring to is: > > https://www.mathworks.com/help/thingspeak/clearchannel.html?searchHigh > > light=delete%20channel%20data&s_tid=doc_srchtitle#d120e16923 > > > > but in essence, I interpret the content to assert the following: > > > > Access the following URL: "https://api.thingspeak.com/channels/564256/feeds.json" where "564256" is > the channel I wish to clear. > > > > Send the JSON "command": "DELETE https://api.thingspeak.com/channels/564256/feeds.json > > api_key= EQKTUQQKVH83D1RE" > > > > where "EQKTUQQKVH83D1RE" is my account api-key for writing to the > > ThingSpeak channel > > > > if successful, ThingSpeak responds with: "[]" ... an empty JSON array > > > > > > In LC, I've tried the following (and several variations): > > > > on mouseUp > > put empty into field "Output" > > put "https://api.thingspeak.com/channels/564256/feeds.json" into tUrl > > put "DELETE https://api.thingspeak.com/channels/564256/feeds.xml" > > & return & "api_key=EQKTUQQKVH83D1RE" into JsonCmd > > > > -- Send a HTTP DELETE request > > put tsNetCustomSync(tUrl, JsonCmd, tHeader, tResponseHeaders, > > tResult, tBytes) into tData > > > > -- If this is not the case, we will inform the user > > put tResult into field "Output" > > > > end mouseUp > > > > I get a tResult of 0 (zero) ... but the data is NOT cleared. > > > > I have also tried the following: > > > > on mouseUp > > put empty into field "Output" > > put "https://api.thingspeak.com/channels/564256/feeds.json?api_key=EQKTUQQKVH83D1RE" into tUrl > > put "DELETE > > https://api.thingspeak.com/channels/564256/feeds.json" & return & > > "api_key=EQKTUQQKVH83D1RE" into tMessage["text"] > > > > put ArrayToJSON(tMessage) into tMessage > > > > set the httpHeaders to "Content-type: application/json" > > > > post tMessage to url tUrl > > > > put it into field "Output" > > > > end mouseUp > > > > But that only "creates" a new entry in the channel with all of the data fields empty. > > > > I'm sure it's the way in which I am trying to send the "DELETE" command but I just can't see how to > do it correctly. > > > > I'd be grateful for any assistance. > > > > > > Douglas Ruisaard > > Trilogy Software > > (250) 573-3935 > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ------------------------------ > > Message: 4 > Date: Tue, 16 Oct 2018 20:22:13 -0700 > From: Geoff Canyon > To: How to use LiveCode > Subject: Re: Navigator 6.6 alpha 1 is out > Message-ID: > > Content-Type: text/plain; charset="UTF-8" > > Updated to fix the Card List and Background List. Also noticed and fixed a non-visual issue with the > HTML being set in Navigator's List. > > > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-livecode > > ------------------------------ > > End of use-livecode Digest, Vol 181, Issue 24 > ********************************************* From prothero at earthlearningsolutions.org Wed Oct 17 12:09:55 2018 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Wed, 17 Oct 2018 09:09:55 -0700 Subject: Widget imageWidget_v110 In-Reply-To: References: Message-ID: Herman, Your contributions are amazing and always push the bounds of what can be done with livecode. I?ll download this when I get back to my computer. Best, Bill William Prothero http://ed.earthednet.org > On Oct 17, 2018, at 8:59 AM, hh via use-livecode wrote: > > ### v1.0.0 Aug 25, 2018 ... first (nearly) complete version > ### v1.1.0 Oct 17, 2018 ... first version on "Sample Stacks" > > Widget ImageWidget will blow you away. Why? > Because it demonstrates the enormous possibilities that LiveCode > Builder already provides. I tried to do everything in pure LCB. > There is only script access where I was forced to do, because LCB > is not yet ready: Networking and adjusting the widget's size. So: > > ** ImageWidget is dedicated to the LC team, the makers of LCB. ** > > The widget transforms images of up to screen size in "real time". > > You can load raw imagedata from your stack, load an image from a > local file or load an image or raw data (with saving) from an URL. > You can also overlay an (also shaped) text/caption. > > The base position of the 9 handles are (use a monospaced font): > > ############################## > # 1=TL ----- 2=TM ----- 3=TR # > # | | # > # 8=ML 0=MM 4=MR # > # | | # > # 7=BL ----- 6=BM ----- 5=BR # > ############################## > > [M=Midth, T=Top, L=Left, R=Right, B=Bottom] > > Affine Transformations by click- and/or drag-actions: > > [*] Near 0=MM but not 0=MM: Rotate, > [*] RightClick 0=MM: ResetImage, > [*] 0=MM: ResetShape (width 360), > [*] 2=TM: SkewX (= shearX), > [*] 4=MR: SkewY (= shearY), > [*] 6=BM: TrueHeight, > [*] 8=ML: TrueWidth, > [*] 1=TL,3=TR,5=BR,7=BL: TrueResize. > > [True = preserves current shape.] > > ++ RightClick switches the action of handles (2=TM, 6=BM) and > (4=MR, 8=ML). > ++ RightClick on handles (1=TL, 3=TR, 5=BR, 7=BL) inverts > temporarily the current "proportional" settings . > > ImageWidget is a "fat" widget that works with LC 8 and LC 9 > identically and also in all LC editions, from community up to > business. [Except that you need LC 9 when using > drawingSVGcompile for loading an SVG file to the image.] > > The code has 3500 lines (incl. 800 lines for the dictionary), > there is a lot of math to do when getting the affine transforms: > the widget computes the current transform from the current > position of the handles. The source (lcb-file) is not included. > > The widget is free for non-commercial use. For commercial use > please give a (small) fee to the LC developer help fund. > > Download ImageWidget_v107 from "Sample Stacks" or > http://livecodeshare.runrev.com/stack/912 > > +++++++++ > Someday, everything is gonna be diff'rent, > when I paint my masterpiece. (Bob Dylan) > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From nabble at mad.pink Wed Oct 17 14:22:00 2018 From: nabble at mad.pink (pink) Date: Wed, 17 Oct 2018 13:22:00 -0500 (CDT) Subject: sending a JSON string In-Reply-To: <120e01d4658c$a3cfd300$eb6f7900$@net> References: <120e01d4658c$a3cfd300$eb6f7900$@net> Message-ID: <1539800520500-0.post@n4.nabble.com> You can also try this: set the httpheaders to "Content-Type: application/x-www-form-urlencoded" delete URL("https://api.thingspeak.com/channels/564256/feeds.json?api_key=EQKTUQQKVH83D1RE") ----- --- Greg (pink) Miller mad, pink and dangerous to code -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dougr at telus.net Wed Oct 17 15:37:02 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Wed, 17 Oct 2018 12:37:02 -0700 Subject: sending a JSON string References: CickgcVhADhAwCicpgPuvj Message-ID: <128501d46650$c8607b10$59217130$@net> It turns out that Andre's code works perfectly! It's my fault that (eventually) I discovered there is yet-another authorization key used for Thingspeak API commands which is different from the READ and Write keys I was familiar with. Once I put the correct key into Andre's code, it worked perfectly. Hopefully others can benefit from Andre's brilliant assistance! Douglas Ruisaard Trilogy Software (250) 573-3935 > -----Original Message----- > From: Douglas Ruisaard [mailto:dougr at telus.net] > Sent: Wednesday, October 17, 2018 9:15 AM > To: 'use-livecode at lists.runrev.com' > Subject: Re: sending a JSON string > > Thanks very much, Andre! I appreciate the assistance. I am sure the two "keys" are correct as I use > them in another portion of the application (an ESP8266 module which sends data to ThingSpeak). A > subsequent direct message from you mentioned "Charles Proxy" as an inspector for HTML messaging. > THAT's a huge hint and I'll be installing it to see what exactly LC is sending. > > The ThingSpeak community is very active and I'll submit a request for assistance to it. I thought I'd > start with this forum since it is very responsive and knowledgeable... Also my lack of good working > understanding about LC's HTML and overall web features and functions left me thinking I was doing > something wrong in LC. With Andre's attempt generating a similar response to what I was getting, it > helps vindicate my uncertainty about LC's ability to generate an appropriate message to ThingSpeak. > > if I find a solution, I'll certainly let this board know. > > In the meantime, if ANYONE has any other suggestions, I'd be extremely grateful! > > Cheers > Doug > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > > > Message: 3 > > Date: Wed, 17 Oct 2018 00:10:05 +0100 > > From: Andre Alves Garzia > > To: How to use LiveCode > > Cc: Douglas Ruisaard > > Subject: Re: sending a JSON string > > Message-ID: <41683bda-81ae-ac2e-1542-7d98f19ece82 at andregarzia.com> > > Content-Type: text/plain; charset=utf-8; format=flowed > > > > Douglas, > > > > I am pasting some code I've built here that should do what you want > > but when I try it, it returns a > > 401 error which is an authentication error. > > On that manual page you linked there is a notice about API keys and > > Channel keys, so maybe the key on this email is not the correct one. > > This is the code (and yes, it is dead ugly): > > > > *on*mouseup > > > > *local*tHeaders, tResult > > > > *put*emptyintofld"output" > > > > *put*"Content-Type: application/x-www-form-urlencoded"intotHeaders > > > > *put*libURLFormData("api_key", "EQKTUQQKVH83D1RE") intotFormData > > > > *put*tsNetCustomUpload("1", > > "https://api.thingspeak.com/channels/564256/feeds.json", "DELETE", > > tHeaders, "transferComplete", > > tFormData) intotResult > > > > *end*mouseup > > > > *on*transferComplete pID, pResult, pBytes, pCurlCode > > > > *local*tData, tHeaders, tResult, rError > > > > *if* pCurlCode isnot0*then* > > > > *put*tsNetRetrError(pID) & crafterfld"output" > > > > *end* *if* > > > > *put*tsNetRetrData(pID, tError) intotData > > > > *put*"Server returned:"& tData & crafterfld"output" > > > > *put*"Headers"&& tsNetRetrSentHeaders("1", rError) & crafterfld"output" > > > > *put*tResult & cr& tHeaders & cr& pResult & cr& tData afterfld"output" > > > > ?? tsNetCloseConn pID > > > > *end*transferComplete > > > > > > > > On 10/16/2018 9:12 PM, Douglas Ruisaard via use-livecode wrote: > > > I'll start by apologizing for my abysmal familiarity with HTTP, > > > JSON, and URL's ... I'm hoping > > someone will have pity and give me a hand! > > > > > > I am trying to send a "command" to a ThingSpeak channel, which is > > > very successfully receiving data > > from a simple little ESP8266 module. Periodically, I need to clear > > the data from this channel. I want to do so from LC.. NOT the > > ESP8266. I just can't seem to "coordinate" the instructions from the > > ThingSpeak site to DELETE this data (not the channel, just the data within) with an LC function / > code. > > > > > > The link to the ThingSpeak page I am referring to is: > > > https://www.mathworks.com/help/thingspeak/clearchannel.html?searchHi > > > gh > > > light=delete%20channel%20data&s_tid=doc_srchtitle#d120e16923 > > > > > > but in essence, I interpret the content to assert the following: > > > > > > Access the following URL: > > > "https://api.thingspeak.com/channels/564256/feeds.json" where > > > "564256" is > > the channel I wish to clear. > > > > > > Send the JSON "command": "DELETE https://api.thingspeak.com/channels/564256/feeds.json > > > api_key= EQKTUQQKVH83D1RE" > > > > > > where "EQKTUQQKVH83D1RE" is my account api-key for writing to > > > the ThingSpeak channel > > > > > > if successful, ThingSpeak responds with: "[]" ... an empty JSON > > > array > > > > > > > > > In LC, I've tried the following (and several variations): > > > > > > on mouseUp > > > put empty into field "Output" > > > put "https://api.thingspeak.com/channels/564256/feeds.json" into tUrl > > > put "DELETE https://api.thingspeak.com/channels/564256/feeds.xml" > > > & return & "api_key=EQKTUQQKVH83D1RE" into JsonCmd > > > > > > -- Send a HTTP DELETE request > > > put tsNetCustomSync(tUrl, JsonCmd, tHeader, tResponseHeaders, > > > tResult, tBytes) into tData > > > > > > -- If this is not the case, we will inform the user > > > put tResult into field "Output" > > > > > > end mouseUp > > > > > > I get a tResult of 0 (zero) ... but the data is NOT cleared. > > > > > > I have also tried the following: > > > > > > on mouseUp > > > put empty into field "Output" > > > put "https://api.thingspeak.com/channels/564256/feeds.json?api_key=EQKTUQQKVH83D1RE" into > tUrl > > > put "DELETE > > > https://api.thingspeak.com/channels/564256/feeds.json" & return & > > > "api_key=EQKTUQQKVH83D1RE" into tMessage["text"] > > > > > > put ArrayToJSON(tMessage) into tMessage > > > > > > set the httpHeaders to "Content-type: application/json" > > > > > > post tMessage to url tUrl > > > > > > put it into field "Output" > > > > > > end mouseUp > > > > > > But that only "creates" a new entry in the channel with all of the data fields empty. > > > > > > I'm sure it's the way in which I am trying to send the "DELETE" > > > command but I just can't see how to > > do it correctly. > > > > > > I'd be grateful for any assistance. > > > > > > > > > Douglas Ruisaard > > > Trilogy Software > > > (250) 573-3935 > > > > > > > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > ------------------------------ > > > > Message: 4 > > Date: Tue, 16 Oct 2018 20:22:13 -0700 > > From: Geoff Canyon > > To: How to use LiveCode > > Subject: Re: Navigator 6.6 alpha 1 is out > > Message-ID: > > > > Content-Type: text/plain; charset="UTF-8" > > > > Updated to fix the Card List and Background List. Also noticed and > > fixed a non-visual issue with the HTML being set in Navigator's List. > > > > > > > > > > > ------------------------------ > > > > Subject: Digest Footer > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > ------------------------------ > > > > End of use-livecode Digest, Vol 181, Issue 24 > > ********************************************* From monte at appisle.net Wed Oct 17 17:44:03 2018 From: monte at appisle.net (Monte Goulding) Date: Thu, 18 Oct 2018 08:44:03 +1100 Subject: Using Dylibs in LiveCode? In-Reply-To: <41903b77-1d03-9568-2090-dfdf95e832b1@cogapp.com> References: <9be15c70-db8d-6955-0a12-5369eb7978bf@cogapp.com> <0E2EBA8C-16CF-4252-B27C-980B77A0A037@appisle.net> <41903b77-1d03-9568-2090-dfdf95e832b1@cogapp.com> Message-ID: > On 16 Oct 2018, at 9:02 pm, Ben Rubinstein via use-livecode wrote: > > Thanks Monte. Where can I find some documentation as to how I can use this? Hi Ben Sorry for the slow response. In addition to Trevor?s comments: The LiveCode Builder Language Reference is also available on the dictionary stack under the Guides tab. Additionally the Extending LiveCode guide also has some important information about creating extensions and developing foreign handlers for executing code from the dylib in the section `Using native APIs for libraries`. One thing to note is that it is critically important that the native types you use in your foreign handler declaration are correct. If a foreign handler is crashing then double-check the types you have used as this is the most common reason for crashes. I also suggest frequenting the LiveCode Builder forum http://forums.livecode.com/viewforum.php?f=93&sid=65f2754cb28e09a8d6c341ae64cb5e0e and also our Gitter room which often has discussions about LCB stuff https://gitter.im/LiveCode/Lobby Indeed that?s currently the only place we have discussed how to use objective-c blocks which is a little tricky. Cheers Monte From monte at appisle.net Wed Oct 17 17:49:19 2018 From: monte at appisle.net (Monte Goulding) Date: Thu, 18 Oct 2018 08:49:19 +1100 Subject: Using Dylibs in LiveCode? In-Reply-To: References: <9be15c70-db8d-6955-0a12-5369eb7978bf@cogapp.com> <0E2EBA8C-16CF-4252-B27C-980B77A0A037@appisle.net> <41903b77-1d03-9568-2090-dfdf95e832b1@cogapp.com> Message-ID: <659EBE11-DCA5-489D-ABD3-1AE54F3085BC@appisle.net> > On 18 Oct 2018, at 8:44 am, Monte Goulding via use-livecode wrote: > > > >> On 16 Oct 2018, at 9:02 pm, Ben Rubinstein via use-livecode wrote: >> >> Thanks Monte. Where can I find some documentation as to how I can use this? > I forgot to mention examples in the repo that may be helpful: C linking to shared libraries in the code folder: https://github.com/livecode/livecode/tree/develop/extensions/libraries/ini https://github.com/livecode/livecode/tree/develop/extensions/libraries/timezone A simple Objective-C example: https://github.com/livecode/livecode/tree/develop/extensions/widgets/macbutton Cheers Monte From lan.kc.macmail at gmail.com Wed Oct 17 18:08:17 2018 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Thu, 18 Oct 2018 09:08:17 +1100 Subject: Showing four options in a menu? In-Reply-To: References: Message-ID: On Tue, Oct 16, 2018 at 7:58 AM Geoff Canyon via use-livecode wrote: > > > 1. the property is not boolean -- display nothing with the menu. > 2. the property is boolean and is true for all the selected controls -- > display a !c check. > 3. the property is boolean and is false for all the selected controls -- > display ??? > 4. the property is boolean and is false for some of the selected controls > and true for others -- display ??? > For may programs, particularly with reference to Font settings, if you select text containing a multitude of font formats it will show a minus sign '-' as it can't show multiple values. If it were me: 2 = tick in the Box 3 = x in the Box 4 = - in the Box. It might not be quite standard but I think most people would figure it out pretty quickly. From benr_mc at cogapp.com Wed Oct 17 18:17:31 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 17 Oct 2018 23:17:31 +0100 Subject: Set quality/compression of images in PDFs? Message-ID: <0eb51f81-71cc-443a-dd94-d9ee102fb016@cogapp.com> Is there any way to control the quality/compression of images in PDFs generated by LiveCode? Putting a 1MB JPG on a card, and printing from the rect of the image to the page rect, makes about a 6MB PDF file. Changing the jpeg quality of the input JPG seems to make no difference. Replacing the image with one that's been scaled 50%, and is 500KB, makes a 2.5MB PDF. What - if anything - can be done to reduce the filesize of a PDF created by "open printing to pdf"? TIA, Ben From benr_mc at cogapp.com Wed Oct 17 18:21:11 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 17 Oct 2018 23:21:11 +0100 Subject: Using Dylibs in LiveCode? In-Reply-To: <659EBE11-DCA5-489D-ABD3-1AE54F3085BC@appisle.net> References: <9be15c70-db8d-6955-0a12-5369eb7978bf@cogapp.com> <0E2EBA8C-16CF-4252-B27C-980B77A0A037@appisle.net> <41903b77-1d03-9568-2090-dfdf95e832b1@cogapp.com> <659EBE11-DCA5-489D-ABD3-1AE54F3085BC@appisle.net> Message-ID: That's great - thanks both. I'll find some time to dive in, and will doubtless need to come up for air either here or on the forums... Ben On 17/10/2018 22:49, Monte Goulding via use-livecode wrote: > > >> On 18 Oct 2018, at 8:44 am, Monte Goulding via use-livecode wrote: >> >> >> >>> On 16 Oct 2018, at 9:02 pm, Ben Rubinstein via use-livecode wrote: >>> >>> Thanks Monte. Where can I find some documentation as to how I can use this? >> > I forgot to mention examples in the repo that may be helpful: > > C linking to shared libraries in the code folder: > https://github.com/livecode/livecode/tree/develop/extensions/libraries/ini > https://github.com/livecode/livecode/tree/develop/extensions/libraries/timezone > > A simple Objective-C example: > https://github.com/livecode/livecode/tree/develop/extensions/widgets/macbutton > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Wed Oct 17 20:00:37 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 17 Oct 2018 17:00:37 -0700 Subject: Showing four options in a menu? In-Reply-To: References: Message-ID: Woot! I never considered using unicode! (not that you actually typed the word, but that's what I took from your comment) My working copy of navigator now has: An empty box for all false A - in a box for mixed A check in a box for all true. Thanks! On Wed, Oct 17, 2018 at 3:08 PM Kay C Lan via use-livecode < use-livecode at lists.runrev.com> wrote: > On Tue, Oct 16, 2018 at 7:58 AM Geoff Canyon via use-livecode > wrote: > > > > > > 1. the property is not boolean -- display nothing with the menu. > > 2. the property is boolean and is true for all the selected controls -- > > display a !c check. > > 3. the property is boolean and is false for all the selected controls -- > > display ??? > > 4. the property is boolean and is false for some of the selected controls > > and true for others -- display ??? > > > For may programs, particularly with reference to Font settings, if you > select text containing a multitude of font formats it will show a > minus sign '-' as it can't show multiple values. If it were me: > > 2 = tick in the Box > 3 = x in the Box > 4 = - in the Box. > > It might not be quite standard but I think most people would figure it > out pretty quickly. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Wed Oct 17 21:50:13 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 17 Oct 2018 18:50:13 -0700 Subject: Navigator 6.6 alpha 1 is out In-Reply-To: <021401d4662e$72649470$572dbd50$@themartinz.com> References: <021401d4662e$72649470$572dbd50$@themartinz.com> Message-ID: Updated to fix some minor issues, and added the improved Properties menu, now with inline boolean values instead of submenus, thanks to Kay C Lan. From bdrunrev at gmail.com Thu Oct 18 00:43:50 2018 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 18 Oct 2018 05:43:50 +0100 Subject: LC 9.0 Windows - tooltip broken for new datagrid? In-Reply-To: References: Message-ID: Thanks. If it's not supposed to work then best to remove it from the property inspector so the product doesn't appear buggy to new users. I have Livecode 5.5 on another machine. I'll see if the tooltip works there. I see no reason why a datagrid (even if it is a fancy group) shouldn't have a tooltip the way other UI controls have one. I guess these features are not even used on mobile interfaces, so maybe they are "legacy". Either way I'll enter this as a bug for the 9.x series. Bernard On Tue, Oct 16, 2018 at 4:18 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Actually, everything in a datagrid is an object of some sort with it's own > tooltip (empty by default). There would have to be special code to display > the tooltip for a datagrid instead of the tooltip for the object you are > pointing at. > > I tested in a new stack and the tooltip for a datagrid NEVER displays. Not > even sure why it's there. > > Bob S > > > From bobsneidar at iotecdigital.com Thu Oct 18 10:38:18 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Oct 2018 14:38:18 +0000 Subject: LC 9.0 Windows - tooltip broken for new datagrid? In-Reply-To: References: Message-ID: <9D633842-BCDD-401B-82A3-72691EE994A4@iotecdigital.com> Well think about pointing at a populated record. Does the user want the tooltip for the datagrid? A tooltip for the record itself (they way I created a hack for) or the tooltip for the individual field? But I agree, if it doesn't do anything, it shouldn't be there. Bob S > On Oct 17, 2018, at 21:43 , Bernard Devlin via use-livecode wrote: > > I have Livecode 5.5 on another machine. I'll see if the tooltip works > there. I see no reason why a datagrid (even if it is a fancy group) > shouldn't have a tooltip the way other UI controls have one. I guess these > features are not even used on mobile interfaces, so maybe they are "legacy". > From bobsneidar at iotecdigital.com Thu Oct 18 11:00:20 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Oct 2018 15:00:20 +0000 Subject: pdftk issue solved Message-ID: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> For those interested, I was having a problem creating an fdf file from a fillable pdf form, or even exporting the data using pdftk server. I think I figured out why! In order to create fillable pdf forms that can be filled by non-acrobat applications like Reader or Preview, they need to be saved in a special format. This format precludes even Acrobat from accessing those fillable fields, without first saving the form as a standard pdf. It's a catch 22. Make my forms universally accessible and lock myself out of them, or else make them so that only Acrobat can fill them. Thanks Adobe! Bob S From richmondmathewson at gmail.com Thu Oct 18 11:11:16 2018 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 18 Oct 2018 18:11:16 +0300 Subject: pdftk issue solved In-Reply-To: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> Message-ID: "To be fair" (one of my least favourite phrases), Adobe did not go to all the trouble of inventing the PDF thing for it to be portable; they invented it as a way to make money. The fact that, at a later date, Adobe made the PDF more accessible is super: but, a bit like Willy Wonka, one must read the small print. Richmond. On 18.10.18 ?. 18:00 ?., Bob Sneidar via use-livecode wrote: > For those interested, I was having a problem creating an fdf file from a fillable pdf form, or even exporting the data using pdftk server. I think I figured out why! In order to create fillable pdf forms that can be filled by non-acrobat applications like Reader or Preview, they need to be saved in a special format. This format precludes even Acrobat from accessing those fillable fields, without first saving the form as a standard pdf. It's a catch 22. Make my forms universally accessible and lock myself out of them, or else make them so that only Acrobat can fill them. Thanks Adobe! > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 18 11:28:45 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Oct 2018 15:28:45 +0000 Subject: pdftk issue solved In-Reply-To: References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> Message-ID: To be even fairer, the "P" in "PDF" stands for "Portable". Had they not made them "P"ortable, they would not have made any "M"oney. :-) Bob S > On Oct 18, 2018, at 08:11 , Richmond via use-livecode wrote: > > "To be fair" (one of my least favourite phrases), Adobe did not go to all the trouble of inventing the PDF thing for it to be portable; they invented it as a way to make money. The fact that, at a later date, Adobe made the PDF more accessible is super: but, a bit like Willy Wonka, one must read the small print. > > Richmond. From bobsneidar at iotecdigital.com Thu Oct 18 12:04:50 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Oct 2018 16:04:50 +0000 Subject: pdftk issue solved In-Reply-To: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> Message-ID: <089B68FC-5F9D-46B2-A14D-0FDCE2C4F37C@iotecdigital.com> Never mind. pdftk will not work with normal pdf files either. Looks like this product is depricated. Bob S > On Oct 18, 2018, at 08:00 , Bob Sneidar via use-livecode wrote: > > For those interested, I was having a problem creating an fdf file from a fillable pdf form, or even exporting the data using pdftk server. I think I figured out why! In order to create fillable pdf forms that can be filled by non-acrobat applications like Reader or Preview, they need to be saved in a special format. This format precludes even Acrobat from accessing those fillable fields, without first saving the form as a standard pdf. It's a catch 22. Make my forms universally accessible and lock myself out of them, or else make them so that only Acrobat can fill them. Thanks Adobe! > > Bob S From matthias_livecode_150811 at m-r-d.de Thu Oct 18 13:17:56 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 18 Oct 2018 19:17:56 +0200 Subject: pdftk issue solved In-Reply-To: <089B68FC-5F9D-46B2-A14D-0FDCE2C4F37C@iotecdigital.com> References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> <089B68FC-5F9D-46B2-A14D-0FDCE2C4F37C@iotecdigital.com> Message-ID: <8B183B3D-01E2-4046-A08D-3DBD50E3CED7@m-r-d.de> Bob, isn?t Ghostscript able to do what you are want to accomplish? Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 18.10.2018 um 18:04 schrieb Bob Sneidar via use-livecode : > > Never mind. pdftk will not work with normal pdf files either. Looks like this product is depricated. > > Bob S > > >> On Oct 18, 2018, at 08:00 , Bob Sneidar via use-livecode wrote: >> >> For those interested, I was having a problem creating an fdf file from a fillable pdf form, or even exporting the data using pdftk server. I think I figured out why! In order to create fillable pdf forms that can be filled by non-acrobat applications like Reader or Preview, they need to be saved in a special format. This format precludes even Acrobat from accessing those fillable fields, without first saving the form as a standard pdf. It's a catch 22. Make my forms universally accessible and lock myself out of them, or else make them so that only Acrobat can fill them. Thanks Adobe! >> >> Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 18 14:17:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Oct 2018 18:17:25 +0000 Subject: pdftk issue solved In-Reply-To: <8B183B3D-01E2-4046-A08D-3DBD50E3CED7@m-r-d.de> References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> <089B68FC-5F9D-46B2-A14D-0FDCE2C4F37C@iotecdigital.com> <8B183B3D-01E2-4046-A08D-3DBD50E3CED7@m-r-d.de> Message-ID: <544331B7-6C1A-4142-A717-169678EF0CBA@iotecdigital.com> I'll have a look see. Bob S > On Oct 18, 2018, at 10:17 , Matthias Rebbe via use-livecode wrote: > > Bob, > > isn?t Ghostscript able to do what you are want to accomplish? > > > Matthias Rebbe From bobsneidar at iotecdigital.com Thu Oct 18 14:29:07 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Oct 2018 18:29:07 +0000 Subject: pdftk issue solved In-Reply-To: <8B183B3D-01E2-4046-A08D-3DBD50E3CED7@m-r-d.de> References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> <089B68FC-5F9D-46B2-A14D-0FDCE2C4F37C@iotecdigital.com> <8B183B3D-01E2-4046-A08D-3DBD50E3CED7@m-r-d.de> Message-ID: <598CF7E9-E84D-477C-BB1A-54F21B663432@iotecdigital.com> Looks like it's just for Windows and Linux. Bob S > On Oct 18, 2018, at 10:17 , Matthias Rebbe via use-livecode wrote: > > Bob, > > isn?t Ghostscript able to do what you are want to accomplish? > > > Matthias Rebbe From mark.laffoon at mac.com Thu Oct 18 14:44:09 2018 From: mark.laffoon at mac.com (Mark) Date: Thu, 18 Oct 2018 11:44:09 -0700 Subject: pdftk issue solved In-Reply-To: <598CF7E9-E84D-477C-BB1A-54F21B663432@iotecdigital.com> References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> <089B68FC-5F9D-46B2-A14D-0FDCE2C4F37C@iotecdigital.com> <8B183B3D-01E2-4046-A08D-3DBD50E3CED7@m-r-d.de> <598CF7E9-E84D-477C-BB1A-54F21B663432@iotecdigital.com> Message-ID: Looks like the link for pdftk on the pdflabs website has not been updated. The version available from this link works fine for me on Mojave. https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg Mark On Oct 18, 2018, 11:30 AM -0700, Bob Sneidar via use-livecode , wrote: > Looks like it's just for Windows and Linux. > > Bob S > > > > On Oct 18, 2018, at 10:17 , Matthias Rebbe via use-livecode wrote: > > > > Bob, > > > > isn?t Ghostscript able to do what you are want to accomplish? > > > > > > Matthias Rebbe > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Oct 18 14:52:34 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 18 Oct 2018 20:52:34 +0200 Subject: pdftk issue solved In-Reply-To: <598CF7E9-E84D-477C-BB1A-54F21B663432@iotecdigital.com> References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> <089B68FC-5F9D-46B2-A14D-0FDCE2C4F37C@iotecdigital.com> <8B183B3D-01E2-4046-A08D-3DBD50E3CED7@m-r-d.de> <598CF7E9-E84D-477C-BB1A-54F21B663432@iotecdigital.com> Message-ID: Here you should find the Mac OS X builds https://pages.uoregon.edu/koch/ Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 18.10.2018 um 20:29 schrieb Bob Sneidar via use-livecode : > > Looks like it's just for Windows and Linux. > > Bob S > > >> On Oct 18, 2018, at 10:17 , Matthias Rebbe via use-livecode wrote: >> >> Bob, >> >> isn?t Ghostscript able to do what you are want to accomplish? >> >> >> Matthias Rebbe > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 18 15:46:19 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Oct 2018 19:46:19 +0000 Subject: pdftk issue solved In-Reply-To: References: <89A4D1F7-A913-4656-B836-4615A8F1E46C@iotecdigital.com> <089B68FC-5F9D-46B2-A14D-0FDCE2C4F37C@iotecdigital.com> <8B183B3D-01E2-4046-A08D-3DBD50E3CED7@m-r-d.de> <598CF7E9-E84D-477C-BB1A-54F21B663432@iotecdigital.com> Message-ID: <3766000F-F415-4450-AD3B-EFEED8783359@iotecdigital.com> OK I see now it expects full paths. I was using cd to change directories and thinking it would default to the local directory. It's curious that the output is appending line feeds or carriage returns (which Adobe Acrobat doesn't do) and some of the object names have spaces in between each letter in the name! I will play around with it to see if I can massage the data to clean it up, but I am getting output. Thanks! Bob S From dougr at telus.net Thu Oct 18 15:54:45 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Thu, 18 Oct 2018 12:54:45 -0700 Subject: sending a JSON string In-Reply-To: D56Fg2yAN25hmD56KgTNyj References: D56Fg2yAN25hmD56KgTNyj Message-ID: <131601d4671c$6d15d6c0$47418440$@net> let me start by apologizing for my screw up... after looking even further into many more forum responses, I found that there is YET ANOTHER key used for a DELETE ... once I put that in Andre's code... guess what? .... it works perfectly!!! So pat yourself on the back, Andre! and thanks ever so much! Now onto the next challenge... "bulk" uploading a whole slew of data point at once. Cheers Doug Douglas Ruisaard Trilogy Software (250) 573-3935 > > Message: 4 > Date: Wed, 17 Oct 2018 09:14:38 -0700 > From: "Douglas Ruisaard" > To: > Subject: Re: sending a JSON string > Message-ID: <125f01d46634$8249bc70$86dd3550$@net> > Content-Type: text/plain; charset="us-ascii" > > Thanks very much, Andre! I appreciate the assistance. I am sure the two "keys" are correct as I use > them in another portion of the application (an ESP8266 module which sends data to ThingSpeak). A > subsequent direct message from you mentioned "Charles Proxy" as an inspector for HTML messaging. > THAT's a huge hint and I'll be installing it to see what exactly LC is sending. > > The ThingSpeak community is very active and I'll submit a request for assistance to it. I thought I'd > start with this forum since it is very responsive and knowledgeable... Also my lack of good working > understanding about LC's HTML and overall web features and functions left me thinking I was doing > something wrong in LC. With Andre's attempt generating a similar response to what I was getting, it > helps vindicate my uncertainty about LC's ability to generate an appropriate message to ThingSpeak. > > if I find a solution, I'll certainly let this board know. > > In the meantime, if ANYONE has any other suggestions, I'd be extremely grateful! > > Cheers > Doug > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > > > Message: 3 > > Date: Wed, 17 Oct 2018 00:10:05 +0100 > > From: Andre Alves Garzia > > To: How to use LiveCode > > Cc: Douglas Ruisaard > > Subject: Re: sending a JSON string > > Message-ID: <41683bda-81ae-ac2e-1542-7d98f19ece82 at andregarzia.com> > > Content-Type: text/plain; charset=utf-8; format=flowed > > > > Douglas, > > > > I am pasting some code I've built here that should do what you want > > but when I try it, it returns a > > 401 error which is an authentication error. > > On that manual page you linked there is a notice about API keys and > > Channel keys, so maybe the key on this email is not the correct one. > > This is the code (and yes, it is dead ugly): > > > > *on*mouseup > > > > *local*tHeaders, tResult > > > > *put*emptyintofld"output" > > > > *put*"Content-Type: application/x-www-form-urlencoded"intotHeaders > > > > *put*libURLFormData("api_key", "EQKTUQQKVH83D1RE") intotFormData > > > > *put*tsNetCustomUpload("1", > > "https://api.thingspeak.com/channels/564256/feeds.json", "DELETE", > > tHeaders, "transferComplete", > > tFormData) intotResult > > > > *end*mouseup > > > > *on*transferComplete pID, pResult, pBytes, pCurlCode > > > > *local*tData, tHeaders, tResult, rError > > > > *if* pCurlCode isnot0*then* > > > > *put*tsNetRetrError(pID) & crafterfld"output" > > > > *end* *if* > > > > *put*tsNetRetrData(pID, tError) intotData > > > > *put*"Server returned:"& tData & crafterfld"output" > > > > *put*"Headers"&& tsNetRetrSentHeaders("1", rError) & crafterfld"output" > > > > *put*tResult & cr& tHeaders & cr& pResult & cr& tData afterfld"output" > > > > ?? tsNetCloseConn pID > > > > *end*transferComplete > > > > > > > > On 10/16/2018 9:12 PM, Douglas Ruisaard via use-livecode wrote: > > > I'll start by apologizing for my abysmal familiarity with HTTP, > > > JSON, and URL's ... I'm hoping > > someone will have pity and give me a hand! > > > > > > I am trying to send a "command" to a ThingSpeak channel, which is > > > very successfully receiving data > > from a simple little ESP8266 module. Periodically, I need to clear > > the data from this channel. I want to do so from LC.. NOT the > > ESP8266. I just can't seem to "coordinate" the instructions from the > > ThingSpeak site to DELETE this data (not the channel, just the data within) with an LC function / > code. > > > > > > The link to the ThingSpeak page I am referring to is: > > > https://www.mathworks.com/help/thingspeak/clearchannel.html?searchHi > > > gh > > > light=delete%20channel%20data&s_tid=doc_srchtitle#d120e16923 > > > > > > but in essence, I interpret the content to assert the following: > > > > > > Access the following URL: > > > "https://api.thingspeak.com/channels/564256/feeds.json" where > > > "564256" is > > the channel I wish to clear. > > > > > > Send the JSON "command": "DELETE https://api.thingspeak.com/channels/564256/feeds.json > > > api_key= EQKTUQQKVH83D1RE" > > > > > > where "EQKTUQQKVH83D1RE" is my account api-key for writing to > > > the ThingSpeak channel > > > > > > if successful, ThingSpeak responds with: "[]" ... an empty JSON > > > array > > > > > > > > > In LC, I've tried the following (and several variations): > > > > > > on mouseUp > > > put empty into field "Output" > > > put "https://api.thingspeak.com/channels/564256/feeds.json" into tUrl > > > put "DELETE https://api.thingspeak.com/channels/564256/feeds.xml" > > > & return & "api_key=EQKTUQQKVH83D1RE" into JsonCmd > > > > > > -- Send a HTTP DELETE request > > > put tsNetCustomSync(tUrl, JsonCmd, tHeader, tResponseHeaders, > > > tResult, tBytes) into tData > > > > > > -- If this is not the case, we will inform the user > > > put tResult into field "Output" > > > > > > end mouseUp > > > > > > I get a tResult of 0 (zero) ... but the data is NOT cleared. > > > > > > I have also tried the following: > > > > > > on mouseUp > > > put empty into field "Output" > > > put "https://api.thingspeak.com/channels/564256/feeds.json?api_key=EQKTUQQKVH83D1RE" into > tUrl > > > put "DELETE > > > https://api.thingspeak.com/channels/564256/feeds.json" & return & > > > "api_key=EQKTUQQKVH83D1RE" into tMessage["text"] > > > > > > put ArrayToJSON(tMessage) into tMessage > > > > > > set the httpHeaders to "Content-type: application/json" > > > > > > post tMessage to url tUrl > > > > > > put it into field "Output" > > > > > > end mouseUp > > > > > > But that only "creates" a new entry in the channel with all of the data fields empty. > > > > > > I'm sure it's the way in which I am trying to send the "DELETE" > > > command but I just can't see how to > > do it correctly. > > > > > > I'd be grateful for any assistance. > > > > > > > > > Douglas Ruisaard > > > Trilogy Software > > > (250) 573-3935 > > > > > > > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > From bobsneidar at iotecdigital.com Thu Oct 18 19:09:31 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 18 Oct 2018 23:09:31 +0000 Subject: What format is an FDF file? Message-ID: Hi all. Just curious, I've been calling an FDF file produced by exporting fillable PDF form data, an XML file. Clearly it is not, I see now. The beginning of one looks soomething like this, and I'm wondering if this is a standard file format, or if it is something proprietary that Adobe came up with: %FDF-1.2 %???? 1 0 obj <><><><><><><><><><><><><>]/T(accessorydescrip)>><>< References: Message-ID: I believe it?s proprietary... https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/fdf_data_exchange.pdf They also offer some api?s... https://www.adobe.com/devnet/acrobat/fdftoolkit.html Mark On Oct 18, 2018, 4:10 PM -0700, Bob Sneidar via use-livecode , wrote: > Hi all. > > Just curious, I've been calling an FDF file produced by exporting fillable PDF form data, an XML file. Clearly it is not, I see now. The beginning of one looks soomething like this, and I'm wondering if this is a standard file format, or if it is something proprietary that Adobe came up with: > > %FDF-1.2 > %???? > 1 0 obj > <><><><><><><><><><><><><>]/T(accessorydescrip)>><>< > Bob S > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Fri Oct 19 09:59:00 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 19 Oct 2018 13:59:00 +0000 Subject: setProp question References: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> <7a87bf95-b949-d30d-5f42-a0a814c05a74@tweedly.net> Message-ID: Wow! that very cool Can you post a sample stack, or snippet of code for this "Just by passing the long ID, instead of a string of parameters. It's like a package of variables, AND the variables are persistent between sessions." BR On 10/16/18 5:13 AM, Bob Sneidar via use-livecode wrote: > For instance I have a command that pops up a "tooltip" (not a real tooltip but a field) when I right-click a record in a datagrid, containing summary information about the record clicked on. How do I know what columns belong in the summary data? I store them in a custom property in the datagrid, then pass the long id of the datagrid to the command. > > Think about that. Not only do I have the long ID of the datagrid, but also the long ID of the group (if any) the datagrid belongs to, the long id of the card, and the stack reference. Then I can reference all the regular and custom properties and know I am dealing with exactly that object clicked on, and not a copy of the object I forgot to delete. Just by passing the long ID, instead of a string of parameters. It's like a package of variables, AND the variables are persistent between sessions. > > Bob S -- Svasti Astu, Be Well! Brahmanathaswami Get the SivaSiva app, it's free: https://www.himalayanacademy.com/apps/sivasiva From bobsneidar at iotecdigital.com Fri Oct 19 10:32:01 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 19 Oct 2018 14:32:01 +0000 Subject: setProp question In-Reply-To: References: <03C0E928-174C-44CC-B41C-0B918D9B904A@optusnet.com.au> <7a87bf95-b949-d30d-5f42-a0a814c05a74@tweedly.net> Message-ID: <18C0DCC6-15BB-4F54-8AF3-36C29D53075C@iotecdigital.com> I have a real job (I develop for the company but it isn't what they pay me to do), but I will throw something together when I get a little time today. Bob S > On Oct 19, 2018, at 06:59 , Sannyasin Brahmanathaswami via use-livecode wrote: > > Wow! that very cool > > Can you post a sample stack, or snippet of code for this > > "Just by passing the long ID, instead of a string of parameters. It's like a package of variables, AND the variables are persistent between sessions." > > BR From lists at mangomultimedia.com Fri Oct 19 10:54:45 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 19 Oct 2018 09:54:45 -0500 Subject: [off]Hactoberfest In-Reply-To: References: Message-ID: I've added another screencast that shows how to add a bug fix note to your documentation Pull Request (PR). This is necessary if you are submitting a PR that fixes a bug in the LiveCode Quality Control Center. https://www.youtube.com/watch?v=u1nUsLp4F_c -- Trevor DeVore ScreenSteps www.screensteps.com On Mon, Oct 15, 2018 at 4:19 PM Trevor DeVore wrote: > On Fri, Oct 12, 2018 at 8:11 PM Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hactoberfest is back live at GitHub - submit 5 pull requests in October >> and >> maybe win a t-shirt. >> There are a bunch of LC projects on github, so now's the time to make an >> improvement to one of them and enter! >> > > If anybody would like to contribute to the docs in order to get a t-shirt > take a look at "Contributing to LiveCode Documentation": > > > https://github.com/livecode/livecode/blob/develop-9.0/docs/contributing_to_docs.md > > I also created a screencast showing the process: > > https://www.youtube.com/watch?v=ULN9aavFrrA > > I will point out that I have already signed the necessary agreement to > submit changes to the LiveCode project and I had already forked the > LiveCode repo on GitHub. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.com > From smudge.andy at googlemail.com Fri Oct 19 11:51:34 2018 From: smudge.andy at googlemail.com (AndyP) Date: Fri, 19 Oct 2018 10:51:34 -0500 (CDT) Subject: [off]Hactoberfest In-Reply-To: References: Message-ID: <1539964294003-0.post@n4.nabble.com> I was just about to add notes on adding the bugfix note from my experience as a first time contributor, and then what! you've already made a video about this. Excellent. It would be great if these videos could be linked in the contributors docs. Just for your info .. it was as a direct result of seeing your first video that I got involved in this ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From MikeKerner at roadrunner.com Fri Oct 19 17:00:51 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 19 Oct 2018 17:00:51 -0400 Subject: [off]Hactoberfest In-Reply-To: <1539964294003-0.post@n4.nabble.com> References: <1539964294003-0.post@n4.nabble.com> Message-ID: Something to remember, everyone, is even if you have no idea what you're doing, you probably can still help. Fixing something in docs is a great way to start. ? There are a bunch of LC-related projects on GitHub. You can do something for ANY of them. Me? I've been working on Trevor's Levure framework - documentation, code, etc. For me it was just a good excuse to attack some of the issues in Levure that I've opened over the last year. ? It doesn't matter if the author accepts or rejects your PR. You're making a suggestion directly by proposing a change. Do 5 of those in the next 11 days. ? One line of code or one tweak to the documentation makes it better and therefore counts. ? Sure, it's just a lousy t-shirt. It's also like a month-long hackathon, and it's a way to get into the groove of finding and fixing, and learn how the whole open source/github process works. From brahma at hindu.org Fri Oct 19 22:18:41 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 20 Oct 2018 02:18:41 +0000 Subject: turn off the "Pull down Window" in iOS Message-ID: I have a little puzzle game in the app. Landscape. Surprisingly, it's popular. Sometimes word tile are randomly placed high on the screen. It there a way to turn off the iOS system pull down "Notification Center" in this context? We have the status bar off, but on iOS but the "Notification Center" is still on. When the user reach for the word, she get the "Notifications Center" on the phone. in the SA builder, the check box for Local notifications Push notifications Remote Notifications are all off... (they may not impact the "Notifications Center") BR From smudge.andy at googlemail.com Sat Oct 20 06:26:22 2018 From: smudge.andy at googlemail.com (AndyP) Date: Sat, 20 Oct 2018 05:26:22 -0500 (CDT) Subject: [off]Hactoberfest In-Reply-To: References: <1539964294003-0.post@n4.nabble.com> Message-ID: <1540031182048-0.post@n4.nabble.com> Yes, the docs are a great introduction way in for contributing to LiveCode and for using GitHub. I've learned a lot from the experience so far with some gentle but instructive nudges from Panos. Also for the bug fix note, you can also create one directly in GitHub, using the 'Create new file' button. Just make sure that you are in the *correct branch* on your *own fork of LiveCode*. ----- Andy Piddock My software never has bugs. It just develops random features. TinyIDE a Free alternative minimalist IDE Plugin for LiveCode Script editor Themer for LC http://2108.co.uk PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From revolution at derbrill.de Sat Oct 20 09:15:42 2018 From: revolution at derbrill.de (Malte Pfaff-Brill) Date: Sat, 20 Oct 2018 15:15:42 +0200 Subject: Widget imageWidget_v110 In-Reply-To: References: Message-ID: Hey HH! 1) This is amazingly fast! 2) Where do I put the money for the help fund? 3) How does LCB compare to JS speed wise? 4) Thanks so much for all your contributions!!! Cheers! Malte! From hh at hyperhh.de Sat Oct 20 10:02:51 2018 From: hh at hyperhh.de (hh) Date: Sat, 20 Oct 2018 16:02:51 +0200 Subject: Widget imageWidget_v110 Message-ID: <0B1291AA-973F-4D48-8AAE-4386DDD7FA33@hyperhh.de> > Malte P. wrote: > Hey HH! Hey Malte! > 1) This is amazingly fast! The judgement of the master of animations ... The speed too blew me away the first time it worked. Everything is done by computing and applying an affine transform for the canvas. > 2) Where do I put the money for the help fund? You are **the first** who asks. It is not yet started. Who is ready to manage that fund? (Lagi?) > 3) How does LCB compare to JS speed wise? It is at about the same speed compared to JS transforms, also compared to CSS3 transforms. But JS gives the option to access the pixels of an image very fast by its canvas methods, LCB is slow with that. So perspective transformations need JS (via a browser widget). > 4) Thanks so much for all your contributions!!! Thanks forwarded to the LC team for creating LCB. It allows much more things than I expected. WOW. Now the imagewidget is kind of a (still uncomplete) "kitchen sink" of LCB methods. If it were possible to have *direct access* to JS in LCB (not via a broser widget) and if also base64coding were available then we could have kind of an image processing app in a widget!! All I would need is such an access to mBrowser: all but the native display, so that HTML5 is working. (I tried to manipulate the browser widget but had problems with the native display.) > Cheers! Ciao. > Malte! Hermann p.s. What is the factorial of Malte? From lists at mangomultimedia.com Sun Oct 21 00:50:38 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 20 Oct 2018 23:50:38 -0500 Subject: [off]Hactoberfest In-Reply-To: <1539964294003-0.post@n4.nabble.com> References: <1539964294003-0.post@n4.nabble.com> Message-ID: On Fri, Oct 19, 2018 at 10:52 AM AndyP via use-livecode < use-livecode at lists.runrev.com> wrote: > I was just about to add notes on adding the bugfix note from my experience > as > a first time contributor, and then what! you've already made a video about > this. > > Excellent. > > It would be great if these videos could be linked in the contributors docs. > > Just for your info .. it was as a direct result of seeing your first video > that I got involved in this > I'm glad to hear that Andy. I've seen a good number of documentation PRs recently which is great. -- Trevor DeVore ScreenSteps www.screensteps.com From lists at mangomultimedia.com Sun Oct 21 00:52:00 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 20 Oct 2018 23:52:00 -0500 Subject: [off]Hactoberfest In-Reply-To: References: <1539964294003-0.post@n4.nabble.com> Message-ID: On Fri, Oct 19, 2018 at 4:01 PM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Something to remember, everyone, is even if you have no idea what you're > doing, you probably can still help. Fixing something in docs is a great > way to start. > ? There are a bunch of LC-related projects on GitHub. You can do something > for ANY of them. Me? I've been working on Trevor's Levure framework - > documentation, code, etc. For me it was just a good excuse to attack some > of the issues in Levure that I've opened over the last year. > And these are GREATLY appreciated. Thanks! -- Trevor DeVore ScreenSteps www.screensteps.com From lists at mangomultimedia.com Sun Oct 21 00:53:25 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 20 Oct 2018 23:53:25 -0500 Subject: [off]Hactoberfest In-Reply-To: <1540031182048-0.post@n4.nabble.com> References: <1539964294003-0.post@n4.nabble.com> <1540031182048-0.post@n4.nabble.com> Message-ID: On Sat, Oct 20, 2018 at 5:26 AM AndyP via use-livecode < use-livecode at lists.runrev.com> wrote: > Also for the bug fix note, you can also create one directly in GitHub, > using > the 'Create new file' button. Just make sure that you are in the *correct > branch* on your *own fork of LiveCode*. > I realized I didn't mention you could create a file right in the browser that in the screencast after I recorded it. The video description on YouTube has a note about that but I should probably make a new recording at some point. -- Trevor DeVore ScreenSteps www.screensteps.com From brian at milby7.com Sun Oct 21 01:09:46 2018 From: brian at milby7.com (Brian Milby) Date: Sun, 21 Oct 2018 00:09:46 -0500 Subject: Widget imageWidget_v110 In-Reply-To: <0B1291AA-973F-4D48-8AAE-4386DDD7FA33@hyperhh.de> References: <0B1291AA-973F-4D48-8AAE-4386DDD7FA33@hyperhh.de> Message-ID: <20fbf2fc-0c38-4f3d-8935-fced49d6a97c@Spark> Looks like work was started for adding encoding functions to LCB: https://github.com/livecode/livecode/blob/develop/libscript/src/encoding.lcb https://github.com/livecode/livecode/blob/develop/libscript/src/module-encoding.cpp Looking at the C source, looks like error reporting is needed along with binary encode moving to foundation and encode/decode without specifying the type. The non-statement syntax definitions also need to be updated (I think, not sure where that would be documented though). Can?t use the functions directly right now since they are not exported (missing MC_DLLEXPORT where defined). Thanks, Brian > From hh at hyperhh.de Sun Oct 21 05:11:04 2018 From: hh at hyperhh.de (hh) Date: Sun, 21 Oct 2018 11:11:04 +0200 Subject: Widget imageWidget_v110 Message-ID: <683844BB-4B0C-433B-AB31-DECA284896A6@hyperhh.de> Thanks for looking at that, Brian. Your help could make encoding spring to life in LCB. See also bug #20521 and http://lists.runrev.com/pipermail/use-livecode/2017-November/243064.html Hermann > Brian M. wrote: > Looks like work was started for adding encoding functions to LCB: > https://github.com/livecode/livecode/blob/develop/libscript/src/encoding.lcb > https://github.com/livecode/livecode/blob/develop/libscript/src/module-encoding.cpp > Looking at the C source, looks like error reporting is needed along > with binary encode moving to foundation and encode/decode without > specifying the type. The non-statement syntax definitions also need > to be updated (I think, not sure where that would be documented though). > Can?t use the functions directly right now since they are not exported > (missing MC_DLLEXPORT where defined). > Thanks, Brian From dougr at telus.net Sun Oct 21 18:45:11 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Sun, 21 Oct 2018 15:45:11 -0700 Subject: jsonImport or JSONToArray Message-ID: <147301d4698f$bae16340$30a429c0$@net> Has anyone recently tried to create a standalone app which includes either a jsonImport or JSONToArray call? While my code works perfectly when run within the LC API, once a standalone is produced, it chokes on either one of these calls. I've reduced the code to its bare essentials. A sample/simple JSON string I am trying is: { "array": [ 1, 2, 3 ], "boolean": true, "null": null, "number": 123, "object": { "a": "b", "c": "d", "e": "f" }, "string": "Hello World" } This string is embedded as a Custom Property within a button. The button calls the following: on mouseUp // just empty everything to make sure things are in a known state put empty into temp put empty into tArray put empty into dispArray put empty into tJson get the json of button "ThingSpeak_Fetch" put it into testJson // display the JSON before it is converted into an array answer "Simple JSON example:" & cr & testJson // this line (either "version") will choke the standalone... it doesn't lock it up in the API put JsonToArray(testJson) into tArray //put jsonImport(testJson) into tArray put displayArrayData(tArray, "") into dispArray answer dispArray end mouseUp function displayArrayData pArray, pIndent # create the variable that loops through the keys in the array local tKey if pArray is an array then # print information to indicate that we are entering a new nested level of the array get "Array" & return # print full stops that allow the reader to track the depth of an element put "." after pIndent # create the indentation put tab after pIndent repeat for each key tKey in pArray # call displayArrayData with a nested array put format("%s[%s] => %s\n", pIndent, tKey, displayArrayData (pArray[tKey], pIndent)) after it end repeat delete the last char of it return it else return pArray end if end displayArrayData The function call simply outputs the converted array.... and will do so when this code is run from within the API ... but create a Windows standalone and the array output is never generated. I've tried this in Windows 7 Enterprise SP1, LC: 8.1.9, 8.1.10 and 9.0.1 ... also tried on MAC Sierra (10.12.6) and LC 8.1.9 All platforms behave identically as described above Any help would be appreciated... meanwhile I'll be submitting this to LC directly Douglas Ruisaard Trilogy Software (250) 573-3935 From matthias_livecode_150811 at m-r-d.de Sun Oct 21 18:59:03 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 22 Oct 2018 00:59:03 +0200 Subject: jsonImport or JSONToArray In-Reply-To: <147301d4698f$bae16340$30a429c0$@net> References: <147301d4698f$bae16340$30a429c0$@net> Message-ID: <3A36ADAB-E1EE-449E-8FCF-32C607427E75@m-r-d.de> Douglas, did you try to select the inclusions manually in StandaloneBuilder settings? I might be wrong, but i think i remember there was a problem with including that library when ?searching for inclusions? was selected in the SB settings. Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 22.10.2018 um 00:45 schrieb Douglas Ruisaard via use-livecode >: > > Has anyone recently tried to create a standalone app which includes either a jsonImport or JSONToArray call? > > While my code works perfectly when run within the LC API, once a standalone is produced, it chokes on either one of these calls. I've reduced the code to its bare essentials. A sample/simple JSON string I am trying is: > > { > "array": [ > 1, > 2, > 3 > ], > "boolean": true, > "null": null, > "number": 123, > "object": { > "a": "b", > "c": "d", > "e": "f" > }, > "string": "Hello World" > } > > This string is embedded as a Custom Property within a button. The button calls the following: > > on mouseUp > > // just empty everything to make sure things are in a known state > > put empty into temp > put empty into tArray > put empty into dispArray > put empty into tJson > > get the json of button "ThingSpeak_Fetch" > put it into testJson > > // display the JSON before it is converted into an array > > answer "Simple JSON example:" & cr & testJson > > // this line (either "version") will choke the standalone... it doesn't lock it up in the API > > put JsonToArray(testJson) into tArray > //put jsonImport(testJson) into tArray > > put displayArrayData(tArray, "") into dispArray > answer dispArray > > end mouseUp > > function displayArrayData pArray, pIndent > # create the variable that loops through the keys in the array > local tKey > if pArray is an array then > # print information to indicate that we are entering a new nested level of the array > get "Array" & return > # print full stops that allow the reader to track the depth of an element > put "." after pIndent > # create the indentation > put tab after pIndent > repeat for each key tKey in pArray > # call displayArrayData with a nested array > put format("%s[%s] => %s\n", pIndent, tKey, displayArrayData (pArray[tKey], pIndent)) after it > end repeat > delete the last char of it > return it > else > return pArray > end if > end displayArrayData > > The function call simply outputs the converted array.... and will do so when this code is run from within the API ... but create a Windows standalone and the array output is never generated. > > I've tried this in Windows 7 Enterprise SP1, LC: 8.1.9, 8.1.10 and 9.0.1 ... also tried on MAC Sierra (10.12.6) and LC 8.1.9 > > All platforms behave identically as described above > > Any help would be appreciated... meanwhile I'll be submitting this to LC directly > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sun Oct 21 20:31:01 2018 From: tom at makeshyft.com (Tom Glod) Date: Sun, 21 Oct 2018 20:31:01 -0400 Subject: Widget baseClock_v100 In-Reply-To: <1868AB3D-EBF4-44F2-9F23-86044DD34F52@hyperhh.de> References: <1868AB3D-EBF4-44F2-9F23-86044DD34F52@hyperhh.de> Message-ID: thanks hh for that explanation.....I literally had no idea that people did this ...... fascinating! Some days ....I feel like a total newb..... ;) On Mon, Oct 15, 2018 at 2:15 PM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Tom G. wrote: > > Its interesting....What is the problem this invention solves? is there a > > use case for using such a time format? What did you use it for? > > This is a "must-do" for a mathematician. To use such solutions for an > open problem is in general the job of engineers. > > I use as desktop the base 15 clock that shows the number of full quarters > in the first digit and the numbers filling the next quarter in the second > digit. Quarters of an hour are my "fuzzy" measure of time. > > But -- a lot of 'Geeks' use other number base-coded decimals (not only > for dateAndTime display). And the Mayas and Aztecs used number base 20. > > Now try to read, say for simplicity a hex-clock using "A,B,C,D,E,F" > for 10,11,12,13,14,15". For example the MAC address clock here: > http://hyperhh.de/html5/MACaddressTime-8.0.2X.html > (click to start). > > And compare to my format. > Most kids of age 10 and older can read, with a few minutes of exercise, > hex numbers with my format every second. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From iphonelagi at gmail.com Mon Oct 22 07:36:49 2018 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 22 Oct 2018 12:36:49 +0100 Subject: Widget imageWidget_v110 In-Reply-To: <0B1291AA-973F-4D48-8AAE-4386DDD7FA33@hyperhh.de> References: <0B1291AA-973F-4D48-8AAE-4386DDD7FA33@hyperhh.de> Message-ID: Hi I'm Honoured Herman, and I was going to donate my self even though I have as yet no need for the Widget - but I have donated many times before when I think someone has done something that has to be acknowledged in some way. To be honest I was thinking of getting a gofundme type of theme and use that - so we don't give x percent to gofundme. - and the hoops you have to go through to assign money. I Also think we shouldn't just make it a developers fund (please agree or disagree) but make it a fund where we can have a survey of what we think LC should work on and fund it to get it working - and hold their feet to the fire - I'm still waiting for the SQLITE library .... May 2016 - "We will deliver the project within a three month window on successful completion of the campaign."), e..g.Bluetooth, more examples of the FFI. I'm hoping from what I surmise that LC for Filemaker looks like it is bringing in the money for programmer expansion so anything useful to us is useful to the FM group and maybe this might not bee needed soon - but again we don't have to be dogmatic about this. If we can get a coiterie of 100+ people together who could just send $5 a month and increase that to $10 if we have an urgent need (whether a programming need or even a "Programming Colleague in Distress" we could come to an agreement as to how to use the funds. THis could maybe after 6 months have enough to crowd fund Herman's wish "If it were possible to have *direct access* to JS in LCB (not via a broser widget) and if also base64coding were available then we could have kind of an image processing app in a widget!! All I would need is such an access to mBrowser: all but the native display, so that HTML5 is working. (I tried to manipulate the browser widget but had problems with the native display.)" I think we need to open a paypal account to keep the money in and give access to more than one person - can you get joint ones? - - you never know we still have buses on our roads! If we go the "programmer Aid" route we could use https://www.paypal.com/uk/webapps/mpp/not-for-profit. Or we could do both? WDYT is this too much pie in the sky or shall we just do the Programmer fund? I for one think money just sitting there doing nothing waiting for a rainy day isn't doing anyone any good. I could setup a webpage with the "manifesto" on it and we can tweak until we agree - It may be that Herman's simple idea is best but I'm just putting this out there. Kindest Regards Lagi p.s. On high note - I have noticed a few of posts on the forum/uselist from Sean (Pi) Cole who we helped with the gofundme initiative and that makes me feel very happy. It would be nice if we can get any feedback as to the status of Sean's project and did he manage to salvage something - over to you Sean. On Sat, 20 Oct 2018 at 15:03, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Malte P. wrote: > > Hey HH! > > Hey Malte! > > > 1) This is amazingly fast! > > The judgement of the master of animations ... > > The speed too blew me away the first time it worked. > Everything is done by computing and applying an > affine transform for the canvas. > > > 2) Where do I put the money for the help fund? > > You are **the first** who asks. It is not yet started. > Who is ready to manage that fund? (Lagi?) > > > 3) How does LCB compare to JS speed wise? > > It is at about the same speed compared to JS transforms, > also compared to CSS3 transforms. > But JS gives the option to access the pixels of an image > very fast by its canvas methods, LCB is slow with that. > So perspective transformations need JS (via a browser > widget). > > > 4) Thanks so much for all your contributions!!! > > Thanks forwarded to the LC team for creating LCB. > It allows much more things than I expected. WOW. > > Now the imagewidget is kind of a (still uncomplete) > "kitchen sink" of LCB methods. > > If it were possible to have *direct access* to JS in > LCB (not via a broser widget) and if also base64coding > were available then we could have kind of an image > processing app in a widget!! > All I would need is such an access to mBrowser: all > but the native display, so that HTML5 is working. > (I tried to manipulate the browser widget but had > problems with the native display.) > > > Cheers! > Ciao. > > > Malte! > > Hermann > > p.s. What is the factorial of Malte? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From panos.merakos at livecode.com Mon Oct 22 11:08:09 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 22 Oct 2018 16:08:09 +0100 Subject: GitHub has issues Message-ID: Hello folks, GitHub has several issues today. You can see all the status updates here: https://status.github.com/messages This has resulted in several problems for us today, for example the newsletter (This Week in LiveCode) does not appear in the expected place, some PRs disappear and reappear later, and some comments in PRs are not visible. So if you posted a comment or a PR and did not get a reply, please make sure your post is not lost, and try again later when things will hopefully be back to normal. Regards, Panos -- -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From dougr at telus.net Mon Oct 22 11:17:16 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Mon, 22 Oct 2018 08:17:16 -0700 Subject: jsonImport or JSONToArray In-Reply-To: EX0OgvgLP7nW7EX0UgUCn6 References: EX0OgvgLP7nW7EX0UgUCn6 Message-ID: <149501d46a1a$52a29e30$f7e7da90$@net> Thanks for the reply, Matthias. Yes... I forgot to include the fact that I also tested BOTH with the "default" setting for Inclusions (LC finds them) and selecting the JSON library, manually. I've tried to keep the demonstration code simple, so I only tried to "include" the "JSON Library" (but also the "Answer Dialog" and "Ask Dialog" were checked by LC) ... should I also include something else? The fact that BOTH functions (jsonImport and JsonToArray) fail (assuming they actually call different code within LC) may be significant. Can you or someone try the code I provided in both scenarios (within development and as a standalone), please? As I stated, I have tried it on BOTH Windows and MAC OS resulting in the same choke point. You could do as I did (apparent in the code) and create a Custom Key within the button (I called the button "ThingSpeak_Fetch") with the custom key as "json" and the value being the JSON string (which you could cut and paste into the key's value from this message) Douglas Ruisaard Trilogy Software (250) 573-3935 > > Douglas, > > did you try to select the inclusions manually in StandaloneBuilder settings? > > I might be wrong, but i think i remember there was a problem with including that library when > ?searching for inclusions? was selected in the SB settings. > > Regards, > Matthias > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > > Am 22.10.2018 um 00:45 schrieb Douglas Ruisaard via use-livecode >: > > > > Has anyone recently tried to create a standalone app which includes either a jsonImport or JSONToArray call? > > > > While my code works perfectly when run within the LC API, once a standalone is produced, it chokes > > on either one of these calls. I've reduced the code to its bare essentials. A sample/simple JSON > > string I am trying is: > > > > { > > "array": [ > > 1, > > 2, > > 3 > > ], > > "boolean": true, > > "null": null, > > "number": 123, > > "object": { > > "a": "b", > > "c": "d", > > "e": "f" > > }, > > "string": "Hello World" > > } > > > > This string is embedded as a Custom Property within a button. The button calls the following: > > > > on mouseUp > > > > // just empty everything to make sure things are in a known state > > > > put empty into temp > > put empty into tArray > > put empty into dispArray > > put empty into tJson > > > > get the json of button "ThingSpeak_Fetch" > > put it into testJson > > > > // display the JSON before it is converted into an array > > > > answer "Simple JSON example:" & cr & testJson > > > > // this line (either "version") will choke the standalone... it > > //doesn't lock it up in the API > > > > put JsonToArray(testJson) into tArray > > //put jsonImport(testJson) into tArray > > > > put displayArrayData(tArray, "") into dispArray > > answer dispArray > > > > end mouseUp > > > > function displayArrayData pArray, pIndent > > # create the variable that loops through the keys in the array > > local tKey > > if pArray is an array then > > # print information to indicate that we are entering a new nested level of the array > > get "Array" & return > > # print full stops that allow the reader to track the depth of an element > > put "." after pIndent > > # create the indentation > > put tab after pIndent > > repeat for each key tKey in pArray > > # call displayArrayData with a nested array > > put format("%s[%s] => %s\n", pIndent, tKey, displayArrayData (pArray[tKey], pIndent)) after it > > end repeat > > delete the last char of it > > return it > > else > > return pArray > > end if > > end displayArrayData > > > > The function call simply outputs the converted array.... and will do so when this code is run from > within the API ... but create a Windows standalone and the array output is never generated. > > > > I've tried this in Windows 7 Enterprise SP1, LC: 8.1.9, 8.1.10 and > > 9.0.1 ... also tried on MAC Sierra (10.12.6) and LC 8.1.9 > > > > All platforms behave identically as described above > > > > Any help would be appreciated... meanwhile I'll be submitting this to > > LC directly > > > > Douglas Ruisaard > > Trilogy Software > > (250) 573-3935 > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > From dougr at telus.net Mon Oct 22 11:37:00 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Mon, 22 Oct 2018 08:37:00 -0700 Subject: jsonImport or JSONToArray References: EX0OgvgLP7nW7EX0UgUCn6 Message-ID: <149601d46a1d$145ecce0$3d1c66a0$@net> I've solved my issue.... using Matthias's "tip", I searched further into the available inclusions and found Monte's excellent mergJSON (I had opted out looking further once I found and checked the "JSON Libray" inclusion)... which has its own JsonToArray function. Including mergeJSON manually got the standalone to function. Thanks, Matthias! Douglas Ruisaard Trilogy Software (250) 573-3935 > -----Original Message----- > From: Douglas Ruisaard [mailto:dougr at telus.net] > Sent: Monday, October 22, 2018 8:17 AM > To: 'use-livecode at lists.runrev.com' > Subject: Re: jsonImport or JSONToArray > > Thanks for the reply, Matthias. Yes... I forgot to include the fact that I also tested BOTH with the > "default" setting for Inclusions (LC finds them) and selecting the JSON library, manually. I've tried > to keep the demonstration code simple, so I only tried to "include" the "JSON Library" (but also the > "Answer Dialog" and "Ask Dialog" were checked by LC) ... should I also include something else? > > The fact that BOTH functions (jsonImport and JsonToArray) fail (assuming they actually call different > code within LC) may be significant. > > Can you or someone try the code I provided in both scenarios (within development and as a standalone), > please? As I stated, I have tried it on BOTH Windows and MAC OS resulting in the same choke point. > You could do as I did (apparent in the code) and create a Custom Key within the button (I called the > button "ThingSpeak_Fetch") with the custom key as "json" and the value being the JSON string (which > you could cut and paste into the key's value from this message) > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > > > Douglas, > > > > did you try to select the inclusions manually in StandaloneBuilder settings? > > > > I might be wrong, but i think i remember there was a problem with > > including that library when ?searching for inclusions? was selected in the SB settings. > > > > Regards, > > Matthias > > > > > > Matthias Rebbe > > > > free tools for Livecoders: > > https://instamaker.dermattes.de > > https://winsignhelper.dermattes.de > > > > > Am 22.10.2018 um 00:45 schrieb Douglas Ruisaard via use-livecode > > > > >: > > > > > > Has anyone recently tried to create a standalone app which includes either a jsonImport or > JSONToArray call? > > > > > > While my code works perfectly when run within the LC API, once a > > > standalone is produced, it chokes on either one of these calls. > > > I've reduced the code to its bare essentials. A sample/simple JSON string I am trying is: > > > > > > { > > > "array": [ > > > 1, > > > 2, > > > 3 > > > ], > > > "boolean": true, > > > "null": null, > > > "number": 123, > > > "object": { > > > "a": "b", > > > "c": "d", > > > "e": "f" > > > }, > > > "string": "Hello World" > > > } > > > > > > This string is embedded as a Custom Property within a button. The button calls the following: > > > > > > on mouseUp > > > > > > // just empty everything to make sure things are in a known state > > > > > > put empty into temp > > > put empty into tArray > > > put empty into dispArray > > > put empty into tJson > > > > > > get the json of button "ThingSpeak_Fetch" > > > put it into testJson > > > > > > // display the JSON before it is converted into an array > > > > > > answer "Simple JSON example:" & cr & testJson > > > > > > // this line (either "version") will choke the standalone... it > > > //doesn't lock it up in the API > > > > > > put JsonToArray(testJson) into tArray > > > //put jsonImport(testJson) into tArray > > > > > > put displayArrayData(tArray, "") into dispArray > > > answer dispArray > > > > > > end mouseUp > > > > > > function displayArrayData pArray, pIndent > > > # create the variable that loops through the keys in the array > > > local tKey > > > if pArray is an array then > > > # print information to indicate that we are entering a new nested level of the array > > > get "Array" & return > > > # print full stops that allow the reader to track the depth of an element > > > put "." after pIndent > > > # create the indentation > > > put tab after pIndent > > > repeat for each key tKey in pArray > > > # call displayArrayData with a nested array > > > put format("%s[%s] => %s\n", pIndent, tKey, displayArrayData (pArray[tKey], > pIndent)) after it > > > end repeat > > > delete the last char of it > > > return it > > > else > > > return pArray > > > end if > > > end displayArrayData > > > > > > The function call simply outputs the converted array.... and will do > > > so when this code is run from > > within the API ... but create a Windows standalone and the array output is never generated. > > > > > > I've tried this in Windows 7 Enterprise SP1, LC: 8.1.9, 8.1.10 and > > > 9.0.1 ... also tried on MAC Sierra (10.12.6) and LC 8.1.9 > > > > > > All platforms behave identically as described above > > > > > > Any help would be appreciated... meanwhile I'll be submitting this > > > to LC directly > > > > > > Douglas Ruisaard > > > Trilogy Software > > > (250) 573-3935 > > > > > > > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > From tom at makeshyft.com Mon Oct 22 22:07:09 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 22 Oct 2018 22:07:09 -0400 Subject: regex url validator? Message-ID: Hi peeps, I'm trying to use regex to validate a list of URLs I've tried 4 or 5 different "regular" expressions that supposedly work ..... but LC does not give me anything back. None of them work, Like for example ... this one. ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ or this one /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ or this one just to make sure (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) Does anyone know how to get these or others to work in LC? Thanks, Tom From monte at appisle.net Mon Oct 22 22:37:44 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 23 Oct 2018 13:37:44 +1100 Subject: regex url validator? In-Reply-To: References: Message-ID: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> Here?s one I have used which seems to work nicely: constant kURLRegex = "^(?:(?:(([^:\/#\?]+:)?(?:(?:\/\/)(?:(?:(?:([^:@\/#\?]+)(?:\:([^:@\/#\?]*))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?" local tOrigin, tScheme, tUsername, tPassword, tHost, tNetloc, tPort, tPath, tParameters, tFragment if not matchText(pURL, kURLRegex, tOrigin, tScheme, tUsername, tPassword, \ tHost, tNetloc, tPort, tPath, tParameters, tFragment) then throw format("could not parse url '%s'", pURL) end if > On 23 Oct 2018, at 1:07 pm, Tom Glod via use-livecode wrote: > > Hi peeps, > > I'm trying to use regex to validate a list of URLs > > I've tried 4 or 5 different "regular" expressions that supposedly work > ..... but LC does not give me anything back. None of them work, > > Like for example ... this one. > > ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ > > or this one > > /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ > > or this one just to make sure > > (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) > > Does anyone know how to get these or others to work in LC? > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Oct 23 01:43:42 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 23 Oct 2018 00:43:42 -0500 Subject: regex url validator? In-Reply-To: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> Message-ID: <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> You shouldn't let your cat walk on the keyboard like that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 22, 2018 9:40:09 PM Monte Goulding via use-livecode wrote: > Here?s one I have used which seems to work nicely: > > > constant kURLRegex = > "^(?:(?:(([^:\/#\?]+:)?(?:(?:\/\/)(?:(?:(?:([^:@\/#\?]+)(?:\:([^:@\/#\?]*))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?" > > local tOrigin, tScheme, tUsername, tPassword, tHost, tNetloc, tPort, > tPath, tParameters, tFragment > > if not matchText(pURL, kURLRegex, tOrigin, tScheme, tUsername, tPassword, \ > tHost, tNetloc, tPort, tPath, tParameters, tFragment) then > throw format("could not parse url '%s'", pURL) > end if > > >> On 23 Oct 2018, at 1:07 pm, Tom Glod via use-livecode >> wrote: >> >> Hi peeps, >> >> I'm trying to use regex to validate a list of URLs >> >> I've tried 4 or 5 different "regular" expressions that supposedly work >> ..... but LC does not give me anything back. None of them work, >> >> Like for example ... this one. >> >> ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ >> >> or this one >> >> /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ >> >> or this one just to make sure >> >> (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) >> >> Does anyone know how to get these or others to work in LC? >> >> Thanks, >> >> Tom >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Tue Oct 23 02:01:28 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 22 Oct 2018 23:01:28 -0700 Subject: regex url validator? In-Reply-To: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> Message-ID: <7c65ce50-5c02-7e4a-5312-f8b311d16086@sonic.net> On 10/22/2018 07:37 PM, Monte Goulding via use-livecode wrote: > Here?s one I have used which seems to work nicely: Interesting regex, but always returns true no matter what I throw at it. Seems that if *any* of the variables are filled (e.g. tPath) then the matchtext function returns true, so as long as anything is in pUrl the string is validated. -- Mark Wieder ahsoftware at gmail.com From panos.merakos at livecode.com Tue Oct 23 03:11:26 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 23 Oct 2018 10:11:26 +0300 Subject: [ANN] This Week in LiveCode 151 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #151 here: https://goo.gl/njQaCv This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From monte at appisle.net Tue Oct 23 06:17:01 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 23 Oct 2018 21:17:01 +1100 Subject: regex url validator? In-Reply-To: <7c65ce50-5c02-7e4a-5312-f8b311d16086@sonic.net> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <7c65ce50-5c02-7e4a-5312-f8b311d16086@sonic.net> Message-ID: <446890E7-31B3-4A72-A0E1-A39FEA81B4EE@appisle.net> > On 23 Oct 2018, at 5:01 pm, Mark Wieder via use-livecode wrote: > >> Here?s one I have used which seems to work nicely: > > Interesting regex, but always returns true no matter what I throw at it. Seems that if *any* of the variables are filled (e.g. tPath) then the matchtext function returns true, so as long as anything is in pUrl the string is validated. Aha? ah yes that regex doesn?t really validate it parses the url. So yeah it?s probably not what is required here. Cheers Monte From monte at appisle.net Tue Oct 23 06:21:57 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 23 Oct 2018 21:21:57 +1100 Subject: regex url validator? In-Reply-To: <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4C49F876-592E-4740-911E-3614E0A6F235@appisle.net> > On 23 Oct 2018, at 4:43 pm, J. Landman Gay via use-livecode wrote: > > You shouldn't let your cat walk on the keyboard like that. Funny thing is my cats are regularly walking on my keyboard while I?m asleep and usually into the last app I have open which more often than not is the slack app on one of the dev team channels. Panos has had a number of rather one sided conversations with them ;-) I am trying to teach them to code so I can get more sleep but they aren?t quite up to regex yet :-P Cheers Monte From lists at mangomultimedia.com Tue Oct 23 08:01:07 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 23 Oct 2018 07:01:07 -0500 Subject: [off]Hactoberfest In-Reply-To: References: Message-ID: On Fri, Oct 19, 2018 at 9:54 AM Trevor DeVore wrote: > I've added another screencast that shows how to add a bug fix note to your > documentation Pull Request (PR). This is necessary if you are submitting a > PR that fixes a bug in the LiveCode Quality Control Center. > > https://www.youtube.com/watch?v=u1nUsLp4F_c > The process is actually simpler than I describe in the above video. I've taken that one down and I've added a better one: https://www.youtube.com/watch?v=KjGhxZtzPkg Thanks to Bernd for pointing out the link that takes you to the proper branch in your fork of the LiveCode repo. -- Trevor DeVore ScreenSteps www.screensteps.com From smaclean at madmansoft.com Tue Oct 23 09:26:49 2018 From: smaclean at madmansoft.com (Stephen MacLean) Date: Tue, 23 Oct 2018 09:26:49 -0400 Subject: regex url validator? In-Reply-To: References: Message-ID: Hi Tom, Don?t know if you found a solution yet, but this is from the rsIsValid suite I put together a few years back. http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 . https://github.com/renegadesteve/rsIsValid Below is the LCS version: function rsIsValidURL pURL put pURL into tCC // get scheme put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex get matchText(tCC, tSchemeRegex,tScheme) // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file if it <> true then return false if tScheme = "mailto" then //get the email address from the URL and then validate it delete char 1 to 7 of tCC return rsIsValidEmail_LC(tCC) else // setup the regex pattern put "^(?:http://|https://|ftp://|ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" into tURLRegex // run filter against regex pattern and set result to true if it matches. filter tCC with regex pattern tURLRegex into tMatch if tMatch <> empty then return true else return false end if end if end rsIsValidURL Best, Steve MacLean > On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode wrote: > > Hi peeps, > > I'm trying to use regex to validate a list of URLs > > I've tried 4 or 5 different "regular" expressions that supposedly work > ..... but LC does not give me anything back. None of them work, > > Like for example ... this one. > > ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ > > or this one > > /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ > > or this one just to make sure > > (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) > > Does anyone know how to get these or others to work in LC? > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Oct 23 10:04:37 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 23 Oct 2018 10:04:37 -0400 Subject: regex url validator? In-Reply-To: References: Message-ID: I originally used filter the lines of my_container with myregex or filter my_container with myregex none of the expressions worked..... just blanked out. When I used the same form as Steve...it worked. filter my_container with regex pattern myregex into my_variable So is that a bug in the filter command? literally lost hours on this. Maybe the documentation needs a tweak. Thank you all ..... onto some working code. :) On Tue, Oct 23, 2018 at 9:27 AM Stephen MacLean via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Tom, > > Don?t know if you found a solution yet, but this is from the rsIsValid > suite I put together a few years back. > > http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 < > http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698>. > https://github.com/renegadesteve/rsIsValid < > https://github.com/renegadesteve/rsIsValid> > > > Below is the LCS version: > function rsIsValidURL pURL > > put pURL into tCC > > // get scheme > > put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex > > get matchText(tCC, tSchemeRegex,tScheme) > > // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file > > if it <> true then return false > > if tScheme = "mailto" then > > //get the email address from the URL and then validate it > > delete char 1 to 7 of tCC > > return rsIsValidEmail_LC(tCC) > > else > > // setup the regex pattern > > put "^(?:http://|https://|ftp://|ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" > into tURLRegex > > // run filter against regex pattern and set result to true if it matches. > > filter tCC with regex pattern tURLRegex into tMatch > > if tMatch <> empty then > > return true > > else > > return false > > end if > > end if > > end rsIsValidURL > > > Best, > > Steve MacLean > > > On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi peeps, > > > > I'm trying to use regex to validate a list of URLs > > > > I've tried 4 or 5 different "regular" expressions that supposedly work > > ..... but LC does not give me anything back. None of them work, > > > > Like for example ... this one. > > > > > ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ > > > > or this one > > > > /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ > > > > or this one just to make sure > > > > (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) > > > > Does anyone know how to get these or others to work in LC? > > > > Thanks, > > > > Tom > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Tue Oct 23 10:23:38 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 23 Oct 2018 10:23:38 -0400 Subject: Autocomplete Problem In-Reply-To: <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <3B751B58-67D7-4CCD-905B-266EC59CD83F@all-auctions.com> Greetings LiveCoders, I am having a problem with Autocomplete. It keeps interfering with what I?m trying to type, and I find it to be very annoying. I?m trying to turn the feature off in the Preferences under Script Editor and have unchecked the Auto Format box and that seems to have no effect at all. (Under LC 9.0.1) Is there some other way to turn it off perhaps with a command in the message box? Where is Autocomplete documented? I really wasn?t able to find much about it when I looked around. Thanks, Rick From bobsneidar at iotecdigital.com Tue Oct 23 10:48:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 23 Oct 2018 14:48:53 +0000 Subject: regex url validator? In-Reply-To: <4C49F876-592E-4740-911E-3614E0A6F235@appisle.net> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4C49F876-592E-4740-911E-3614E0A6F235@appisle.net> Message-ID: <8942DE53-97BA-4DB4-8844-E0FA4DB03FAA@iotecdigital.com> Start mixing alpha-bits breakfast cereal with their cat food. Worked for me. Bob S > On Oct 23, 2018, at 03:21 , Monte Goulding via use-livecode wrote: > >> You shouldn't let your cat walk on the keyboard like that. > > Funny thing is my cats are regularly walking on my keyboard while I?m asleep and usually into the last app I have open which more often than not is the slack app on one of the dev team channels. Panos has had a number of rather one sided conversations with them ;-) > > I am trying to teach them to code so I can get more sleep but they aren?t quite up to regex yet :-P > > Cheers > > Monte From bobsneidar at iotecdigital.com Tue Oct 23 10:54:08 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 23 Oct 2018 14:54:08 +0000 Subject: regex url validator? In-Reply-To: References: Message-ID: <284C7868-319F-4354-9D21-D423154AFE0E@iotecdigital.com> This looks like it is dependent on other functions. Are these built into Livecode?? Bob S > On Oct 23, 2018, at 06:26 , Stephen MacLean via use-livecode wrote: > > Hi Tom, > > Don?t know if you found a solution yet, but this is from the rsIsValid suite I put together a few years back. > > http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 . > https://github.com/renegadesteve/rsIsValid > > > Below is the LCS version: > function rsIsValidURL pURL > > put pURL into tCC > > // get scheme > > put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex > > get matchText(tCC, tSchemeRegex,tScheme) > > // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file > > if it <> true then return false > > if tScheme = "mailto" then > > //get the email address from the URL and then validate it > > delete char 1 to 7 of tCC > > return rsIsValidEmail_LC(tCC) > > else > > // setup the regex pattern > > put "^(?:http://|https://|ftp://|ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" into tURLRegex > > // run filter against regex pattern and set result to true if it matches. > > filter tCC with regex pattern tURLRegex into tMatch > > if tMatch <> empty then > > return true > > else > > return false > > end if > > end if > > end rsIsValidURL > > > Best, > > Steve MacLean > >> On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode wrote: >> >> Hi peeps, >> >> I'm trying to use regex to validate a list of URLs >> >> I've tried 4 or 5 different "regular" expressions that supposedly work >> ..... but LC does not give me anything back. None of them work, >> >> Like for example ... this one. >> >> ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ >> >> or this one >> >> /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ >> >> or this one just to make sure >> >> (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) >> >> Does anyone know how to get these or others to work in LC? >> >> Thanks, >> >> Tom >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 23 10:56:11 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 23 Oct 2018 14:56:11 +0000 Subject: regex url validator? In-Reply-To: <284C7868-319F-4354-9D21-D423154AFE0E@iotecdigital.com> References: <284C7868-319F-4354-9D21-D423154AFE0E@iotecdigital.com> Message-ID: <80A05600-7C2A-4F5C-A7CE-85D0FC044E77@iotecdigital.com> I mean AN other function: rsIsValidEmail_LC Bob S > On Oct 23, 2018, at 07:54 , Bob Sneidar via use-livecode wrote: > > This looks like it is dependent on other functions. Are these built into Livecode?? > > Bob S > > >> On Oct 23, 2018, at 06:26 , Stephen MacLean via use-livecode wrote: >> >> Hi Tom, >> >> Don?t know if you found a solution yet, but this is from the rsIsValid suite I put together a few years back. >> >> http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 . >> https://github.com/renegadesteve/rsIsValid >> >> >> Below is the LCS version: >> function rsIsValidURL pURL >> >> put pURL into tCC >> >> // get scheme >> >> put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex >> >> get matchText(tCC, tSchemeRegex,tScheme) >> >> // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file >> >> if it <> true then return false >> >> if tScheme = "mailto" then >> >> //get the email address from the URL and then validate it >> >> delete char 1 to 7 of tCC >> >> return rsIsValidEmail_LC(tCC) >> >> else >> >> // setup the regex pattern >> >> put "^(?:http://|https://|ftp://|ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" into tURLRegex >> >> // run filter against regex pattern and set result to true if it matches. >> >> filter tCC with regex pattern tURLRegex into tMatch >> >> if tMatch <> empty then >> >> return true >> >> else >> >> return false >> >> end if >> >> end if >> >> end rsIsValidURL >> >> >> Best, >> >> Steve MacLean >> >>> On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode wrote: >>> >>> Hi peeps, >>> >>> I'm trying to use regex to validate a list of URLs >>> >>> I've tried 4 or 5 different "regular" expressions that supposedly work >>> ..... but LC does not give me anything back. None of them work, >>> >>> Like for example ... this one. >>> >>> ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ >>> >>> or this one >>> >>> /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ >>> >>> or this one just to make sure >>> >>> (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) >>> >>> Does anyone know how to get these or others to work in LC? >>> >>> Thanks, >>> >>> Tom >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Oct 23 11:06:13 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 23 Oct 2018 10:06:13 -0500 Subject: regex url validator? In-Reply-To: <80A05600-7C2A-4F5C-A7CE-85D0FC044E77@iotecdigital.com> References: <284C7868-319F-4354-9D21-D423154AFE0E@iotecdigital.com> <80A05600-7C2A-4F5C-A7CE-85D0FC044E77@iotecdigital.com> Message-ID: <6d0766c0-3e4c-4408-8861-345425abdf5e@Spark> Ah... yes if you want to use a regex then you must specify the type of filterPattern using ?regex pattern? because if not specified then ?wildcard pattern? is assumed. Thanks, Brian On Oct 23, 2018, 9:56 AM -0500, Bob Sneidar via use-livecode , wrote: > I mean AN other function: rsIsValidEmail_LC > > Bob S > > > > On Oct 23, 2018, at 07:54 , Bob Sneidar via use-livecode wrote: > > > > This looks like it is dependent on other functions. Are these built into Livecode?? > > > > Bob S > > > > > > > On Oct 23, 2018, at 06:26 , Stephen MacLean via use-livecode wrote: > > > > > > Hi Tom, > > > > > > Don?t know if you found a solution yet, but this is from the rsIsValid suite I put together a few years back. > > > > > > http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 . > > > https://github.com/renegadesteve/rsIsValid > > > > > > > > > Below is the LCS version: > > > function rsIsValidURL pURL > > > > > > put pURL into tCC > > > > > > // get scheme > > > > > > put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex > > > > > > get matchText(tCC, tSchemeRegex,tScheme) > > > > > > // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file > > > > > > if it <> true then return false > > > > > > if tScheme = "mailto" then > > > > > > //get the email address from the URL and then validate it > > > > > > delete char 1 to 7 of tCC > > > > > > return rsIsValidEmail_LC(tCC) > > > > > > else > > > > > > // setup the regex pattern > > > > > > put "^(?:http://|https://|ftp://|ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" into tURLRegex > > > > > > // run filter against regex pattern and set result to true if it matches. > > > > > > filter tCC with regex pattern tURLRegex into tMatch > > > > > > if tMatch <> empty then > > > > > > return true > > > > > > else > > > > > > return false > > > > > > end if > > > > > > end if > > > > > > end rsIsValidURL > > > > > > > > > Best, > > > > > > Steve MacLean > > > > > > > On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode wrote: > > > > > > > > Hi peeps, > > > > > > > > I'm trying to use regex to validate a list of URLs > > > > > > > > I've tried 4 or 5 different "regular" expressions that supposedly work > > > > ..... but LC does not give me anything back. None of them work, > > > > > > > > Like for example ... this one. > > > > > > > > ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ > > > > > > > > or this one > > > > > > > > /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ > > > > > > > > or this one just to make sure > > > > > > > > (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) > > > > > > > > Does anyone know how to get these or others to work in LC? > > > > > > > > Thanks, > > > > > > > > Tom > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 23 11:12:21 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 23 Oct 2018 15:12:21 +0000 Subject: regex url validator? In-Reply-To: References: Message-ID: <38D56018-7A0E-4721-B0E2-ED9E973AFB42@iotecdigital.com> I think the usability of regex for day to day programming can be stated as directly proportional to the percentage of professional software developers (the ones who *actually* make money at it) who could have come up with that regex string purely on their own. Bob S > On Oct 23, 2018, at 06:26 , Stephen MacLean via use-livecode wrote: > > put "^(?:http://|https://|ftp://|ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" into tURLRegex From sean at pidigital.co.uk Tue Oct 23 11:45:03 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Tue, 23 Oct 2018 16:45:03 +0100 Subject: Autocomplete Problem In-Reply-To: <3B751B58-67D7-4CCD-905B-266EC59CD83F@all-auctions.com> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <3B751B58-67D7-4CCD-905B-266EC59CD83F@all-auctions.com> Message-ID: Hi Rick, With the script editor live, go to the menu for it and to Edit>Options> and turn off Autocomplete. There was an option to use F1 to disable but I don't seem to be able to get this to work on my Mac Sean On Tue, 23 Oct 2018 at 15:23, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Greetings LiveCoders, > > I am having a problem with Autocomplete. > It keeps interfering with what I?m trying to type, > and I find it to be very annoying. > > I?m trying to turn the feature off in the Preferences > under Script Editor and have unchecked the > Auto Format box and that seems to have no > effect at all. (Under LC 9.0.1) > > Is there some other way to turn it off perhaps > with a command in the message box? > > Where is Autocomplete documented? > I really wasn?t able to find much about it > when I looked around. > > Thanks, > > Rick > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From smaclean at madmansoft.com Tue Oct 23 11:51:11 2018 From: smaclean at madmansoft.com (Stephen MacLean) Date: Tue, 23 Oct 2018 11:51:11 -0400 Subject: regex url validator? In-Reply-To: <284C7868-319F-4354-9D21-D423154AFE0E@iotecdigital.com> References: <284C7868-319F-4354-9D21-D423154AFE0E@iotecdigital.com> Message-ID: Hi Bob, This function does more than what Tom was asking for, but included it so he could see the entire function. No, rsIsValidEmail_LC isn?t built into LiveCode, it?s part of the rsIsValid suite. Best, Steve > On Oct 23, 2018, at 10:54 AM, Bob Sneidar via use-livecode wrote: > > This looks like it is dependent on other functions. Are these built into Livecode?? > > Bob S > > >> On Oct 23, 2018, at 06:26 , Stephen MacLean via use-livecode wrote: >> >> Hi Tom, >> >> Don?t know if you found a solution yet, but this is from the rsIsValid suite I put together a few years back. >> >> http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 . >> https://github.com/renegadesteve/rsIsValid >> >> >> Below is the LCS version: >> function rsIsValidURL pURL >> >> put pURL into tCC >> >> // get scheme >> >> put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex >> >> get matchText(tCC, tSchemeRegex,tScheme) >> >> // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file >> >> if it <> true then return false >> >> if tScheme = "mailto" then >> >> //get the email address from the URL and then validate it >> >> delete char 1 to 7 of tCC >> >> return rsIsValidEmail_LC(tCC) >> >> else >> >> // setup the regex pattern >> >> put "^(?:http://|https://|ftp://|ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" into tURLRegex >> >> // run filter against regex pattern and set result to true if it matches. >> >> filter tCC with regex pattern tURLRegex into tMatch >> >> if tMatch <> empty then >> >> return true >> >> else >> >> return false >> >> end if >> >> end if >> >> end rsIsValidURL >> >> >> Best, >> >> Steve MacLean >> >>> On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode wrote: >>> >>> Hi peeps, >>> >>> I'm trying to use regex to validate a list of URLs >>> >>> I've tried 4 or 5 different "regular" expressions that supposedly work >>> ..... but LC does not give me anything back. None of them work, >>> >>> Like for example ... this one. >>> >>> ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ >>> >>> or this one >>> >>> /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ >>> >>> or this one just to make sure >>> >>> (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) >>> >>> Does anyone know how to get these or others to work in LC? >>> >>> Thanks, >>> >>> Tom >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Tue Oct 23 11:51:15 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Tue, 23 Oct 2018 16:51:15 +0100 Subject: regex url validator? In-Reply-To: References: Message-ID: > > Maybe the documentation needs a tweak. Will do... Sean On Tue, 23 Oct 2018 at 15:04, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > > > I originally used > > filter the lines of my_container with myregex > > or filter my_container with myregex > > none of the expressions worked..... just blanked out. > > When I used the same form as Steve...it worked. > > filter my_container with regex pattern myregex into my_variable > > So is that a bug in the filter command? literally lost hours on this. > > > > Thank you all ..... onto some working code. :) > > > On Tue, Oct 23, 2018 at 9:27 AM Stephen MacLean via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi Tom, > > > > Don?t know if you found a solution yet, but this is from the rsIsValid > > suite I put together a few years back. > > > > http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 < > > http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698>. > > https://github.com/renegadesteve/rsIsValid < > > https://github.com/renegadesteve/rsIsValid> > > > > > > Below is the LCS version: > > function rsIsValidURL pURL > > > > put pURL into tCC > > > > // get scheme > > > > put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex > > > > get matchText(tCC, tSchemeRegex,tScheme) > > > > // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file > > > > if it <> true then return false > > > > if tScheme = "mailto" then > > > > //get the email address from the URL and then validate it > > > > delete char 1 to 7 of tCC > > > > return rsIsValidEmail_LC(tCC) > > > > else > > > > // setup the regex pattern > > > > put "^(?:http://|https://|ftp:// > |ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" > > into tURLRegex > > > > // run filter against regex pattern and set result to true if it matches. > > > > filter tCC with regex pattern tURLRegex into tMatch > > > > if tMatch <> empty then > > > > return true > > > > else > > > > return false > > > > end if > > > > end if > > > > end rsIsValidURL > > > > > > Best, > > > > Steve MacLean > > > > > On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > Hi peeps, > > > > > > I'm trying to use regex to validate a list of URLs > > > > > > I've tried 4 or 5 different "regular" expressions that supposedly work > > > ..... but LC does not give me anything back. None of them work, > > > > > > Like for example ... this one. > > > > > > > > > ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ > > > > > > or this one > > > > > > /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ > > > > > > or this one just to make sure > > > > > > (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) > > > > > > Does anyone know how to get these or others to work in LC? > > > > > > Thanks, > > > > > > Tom > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Tue Oct 23 12:09:46 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Tue, 23 Oct 2018 17:09:46 +0100 Subject: regex url validator? In-Reply-To: References: Message-ID: Tom, I've looked at the docs and I'm not sure how to make it much clearer. Perhaps you have a suggestion? The examples given are: local tVar put the propertyNames into tVar filter tVar with "[az]*" -- tVar contains all property names beginning with a or z This one is NOT a regular expression (regEx) but is the same as specifying it to be a wildcard pattern. -- Filtering a string literal causes the filtered string to be placed in the it variable filter items of "apple,banana,cherry" with regex pattern "b.*" -- it contains "banana" This one is and is clearly indicated. Perhaps we could move things about a bit. The description say: The filter...without form and the filter...not matching form discard the lines, items, keys or elements that do not contain a match for the specified filterPattern. This could possibly be written better to read: The 'filter...without' form and the 'filter...not matching' form discard the lines, items, keys or elements that do not contain a match for the specified filterPattern. This could then be followed by the 'Wildcard pattern' description which is NOT regEx. It's the same as not specifying a pattern. That would mean putting the RegEx description further towards the end making it obvious to be something different from *filter x with/without [wildcard pattern]* What does everyone think? Sean On Tue, 23 Oct 2018 at 16:51, Sean Cole (Pi) wrote: > Maybe the documentation needs a tweak. > > > Will do... > > Sean > > > On Tue, 23 Oct 2018 at 15:04, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> >> I originally used >> >> filter the lines of my_container with myregex >> >> or filter my_container with myregex >> >> none of the expressions worked..... just blanked out. >> >> When I used the same form as Steve...it worked. >> >> filter my_container with regex pattern myregex into my_variable >> >> So is that a bug in the filter command? literally lost hours on this. >> >> >> >> Thank you all ..... onto some working code. :) >> >> >> On Tue, Oct 23, 2018 at 9:27 AM Stephen MacLean via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > Hi Tom, >> > >> > Don?t know if you found a solution yet, but this is from the rsIsValid >> > suite I put together a few years back. >> > >> > http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 >> < >> > http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 >> >. >> > https://github.com/renegadesteve/rsIsValid < >> > https://github.com/renegadesteve/rsIsValid> >> > >> > >> > Below is the LCS version: >> > function rsIsValidURL pURL >> > >> > put pURL into tCC >> > >> > // get scheme >> > >> > put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex >> > >> > get matchText(tCC, tSchemeRegex,tScheme) >> > >> > // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file >> > >> > if it <> true then return false >> > >> > if tScheme = "mailto" then >> > >> > //get the email address from the URL and then validate it >> > >> > delete char 1 to 7 of tCC >> > >> > return rsIsValidEmail_LC(tCC) >> > >> > else >> > >> > // setup the regex pattern >> > >> > put "^(?:http://|https://|ftp:// >> |ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" >> > into tURLRegex >> > >> > // run filter against regex pattern and set result to true if it >> matches. >> > >> > filter tCC with regex pattern tURLRegex into tMatch >> > >> > if tMatch <> empty then >> > >> > return true >> > >> > else >> > >> > return false >> > >> > end if >> > >> > end if >> > >> > end rsIsValidURL >> > >> > >> > Best, >> > >> > Steve MacLean >> > >> > > On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > > >> > > Hi peeps, >> > > >> > > I'm trying to use regex to validate a list of URLs >> > > >> > > I've tried 4 or 5 different "regular" expressions that supposedly work >> > > ..... but LC does not give me anything back. None of them work, >> > > >> > > Like for example ... this one. >> > > >> > > >> > >> ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ >> > > >> > > or this one >> > > >> > > /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ >> > > >> > > or this one just to make sure >> > > >> > > (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) >> > > >> > > Does anyone know how to get these or others to work in LC? >> > > >> > > Thanks, >> > > >> > > Tom >> > > _______________________________________________ >> > > use-livecode mailing list >> > > use-livecode at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > From harrison at all-auctions.com Tue Oct 23 12:11:51 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 23 Oct 2018 12:11:51 -0400 Subject: Autocomplete Problem In-Reply-To: References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <3B751B58-67D7-4CCD-905B-266EC59CD83F@all-auctions.com> Message-ID: <01FAF363-4D8C-4715-B9F0-D80C2267C649@all-auctions.com> Edit>Options>? worked fine. Thanks Sean! > On Oct 23, 2018, at 11:45 AM, Sean Cole (Pi) via use-livecode wrote: > > Hi Rick, > > With the script editor live, go to the menu for it and to Edit>Options> and > turn off Autocomplete. There was an option to use F1 to disable but I don't > seem to be able to get this to work on my Mac > > Sean From alex at tweedly.net Tue Oct 23 12:29:04 2018 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 23 Oct 2018 17:29:04 +0100 Subject: regex url validator? In-Reply-To: References: Message-ID: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> Hi Sean, I think there are two (hopefully straightforward) suggestions for the docs on this: 1. the syntax diagram is (I think) wrong (or at least misleading) .... > filter [{lines | items | keys | elements} of] *filterSource* {with | > without | [not] matching} [{wildcard pattern | regex pattern}] > *filterPattern* [into *targetContainer*] > in particular, the bit that says? ....? [{wildcard pattern | regex pattern}]? .... It implies that it is optional to have anything there - and that if you do, then it can be either one or the other.? Nothing there indicates that the alternatives are alternative one:?? "wildcard pattern" or nothing, alternative two:? "regex pattern". Maybe it could be filter [{lines | items | keys | elements} of] *filterSource* {with | without | [not] matching} {[wildcard pattern] | regex pattern} *filterPattern* [into *targetContainer*] (i.e. moving the option [...] inside the alternate {...} - which I think gives equivalent possibilities, but makes it clearer which is which;? clearer at least to me :-) 2. Explicitly say in the description that the phrase "regex pattern" is required if the filterpattern is to be interpreted as a regex, while the alternative "wildcard pattern" is optional, and is the default, used if neither of those phrases occurs. Hmmm - neither of these descriptions are very clear :-(?? but maybe they'll help :-) Alex. On 23/10/2018 17:09, Sean Cole (Pi) via use-livecode wrote: > Tom, > I've looked at the docs and I'm not sure how to make it much clearer. > Perhaps you have a suggestion? > The examples given are: > > local tVar put the propertyNames into tVar filter tVar with "[az]*" -- tVar > contains all property names beginning with a or z > > This one is NOT a regular expression (regEx) but is the same as specifying > it to be a wildcard pattern. > > -- Filtering a string literal causes the filtered string to be placed in > the it variable filter items of "apple,banana,cherry" with regex pattern > "b.*" -- it contains "banana" > > This one is and is clearly indicated. > > Perhaps we could move things about a bit. > The description say: > > The filter...without form and the filter...not matching form discard the > lines, items, keys or elements that do not contain a match for the > specified filterPattern. > > This could possibly be written better to read: > > The 'filter...without' form and the 'filter...not matching' form discard > the lines, items, keys or elements that do not contain a match for the > specified filterPattern. > > This could then be followed by the 'Wildcard pattern' description which is > NOT regEx. It's the same as not specifying a pattern. That would mean > putting the RegEx description further towards the end making it obvious to > be something different from *filter x with/without [wildcard pattern]* > > What does everyone think? > > Sean > > > On Tue, 23 Oct 2018 at 16:51, Sean Cole (Pi) wrote: > >> Maybe the documentation needs a tweak. >> >> >> Will do... >> >> Sean >> >> >> On Tue, 23 Oct 2018 at 15:04, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> >>> >>> I originally used >>> >>> filter the lines of my_container with myregex >>> >>> or filter my_container with myregex >>> >>> none of the expressions worked..... just blanked out. >>> >>> When I used the same form as Steve...it worked. >>> >>> filter my_container with regex pattern myregex into my_variable >>> >>> So is that a bug in the filter command? literally lost hours on this. >>> >>> >>> >>> Thank you all ..... onto some working code. :) >>> >>> >>> On Tue, Oct 23, 2018 at 9:27 AM Stephen MacLean via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Tom, >>>> >>>> Don?t know if you found a solution yet, but this is from the rsIsValid >>>> suite I put together a few years back. >>>> >>>> http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 >>> < >>>> http://forums.livecode.com/viewtopic.php?f=16&t=26653&p=138698#p138698 >>>> . >>>> https://github.com/renegadesteve/rsIsValid < >>>> https://github.com/renegadesteve/rsIsValid> >>>> >>>> >>>> Below is the LCS version: >>>> function rsIsValidURL pURL >>>> >>>> put pURL into tCC >>>> >>>> // get scheme >>>> >>>> put "^(?[a-z][a-z0-9+\-.]*):" into tSchemeRegex >>>> >>>> get matchText(tCC, tSchemeRegex,tScheme) >>>> >>>> // check scheme for http, https, ftp, ftps, mailto, nntp, news, or file >>>> >>>> if it <> true then return false >>>> >>>> if tScheme = "mailto" then >>>> >>>> //get the email address from the URL and then validate it >>>> >>>> delete char 1 to 7 of tCC >>>> >>>> return rsIsValidEmail_LC(tCC) >>>> >>>> else >>>> >>>> // setup the regex pattern >>>> >>>> put "^(?:http://|https://|ftp:// >>> |ftps://|nntp://|news://)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]-*)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$" >>>> into tURLRegex >>>> >>>> // run filter against regex pattern and set result to true if it >>> matches. >>>> filter tCC with regex pattern tURLRegex into tMatch >>>> >>>> if tMatch <> empty then >>>> >>>> return true >>>> >>>> else >>>> >>>> return false >>>> >>>> end if >>>> >>>> end if >>>> >>>> end rsIsValidURL >>>> >>>> >>>> Best, >>>> >>>> Steve MacLean >>>> >>>>> On Oct 22, 2018, at 10:07 PM, Tom Glod via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> Hi peeps, >>>>> >>>>> I'm trying to use regex to validate a list of URLs >>>>> >>>>> I've tried 4 or 5 different "regular" expressions that supposedly work >>>>> ..... but LC does not give me anything back. None of them work, >>>>> >>>>> Like for example ... this one. >>>>> >>>>> >>> ^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$ >>>>> or this one >>>>> >>>>> /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ >>>>> >>>>> or this one just to make sure >>>>> >>>>> (https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?) >>>>> >>>>> Does anyone know how to get these or others to work in LC? >>>>> >>>>> Thanks, >>>>> >>>>> Tom >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Tue Oct 23 14:27:38 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 23 Oct 2018 11:27:38 -0700 Subject: regex url validator? In-Reply-To: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> References: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> Message-ID: <7499572e-68fa-9035-8ce0-33591bc726da@sonic.net> On 10/23/2018 09:29 AM, Alex Tweedly via use-livecode wrote: > Hmmm - neither of these descriptions are very clear :-(?? but maybe > they'll help :-) While it would be good to have the BNF syntax properly coded, I think the most helpful thing would be good examples. And for this complex command, *lots* of examples. -- Mark Wieder ahsoftware at gmail.com From dougr at telus.net Tue Oct 23 14:31:38 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Tue, 23 Oct 2018 11:31:38 -0700 Subject: starting the Project Browser Message-ID: <152701d46afe$a3dec4b0$eb9c4e10$@net> Is there a way to start/open the "Project Browser" (from the main LC Tools menu) using a script command for LC v8 and above? It used to be (possibly v7 or before) that the stack retained the "state" of the Project Browser and would automatically display it when a stack was opened if the stack were saved while the Project Browser was open. This changed with v8 (I think). Anyway, although I probably should move to "Navigator", I'm very comfortable with the Project Browser and use it all the time. It is very annoying to have to use the LC menu each time I open a stack. Similar the ability to "choose" the "browse" pointer in the Tools Palette and since I am incredibly lazy, I'd appreciate knowing if there were a way to "automate" the display of the Project Browser. I can't seem to find anything related within the LC doc's (which are generally mainly helpful if you KNOW what you are looking for) or on the forums ... even looking generically for programmatic ways to call the LC menu options. Douglas Ruisaard Trilogy Software (250) 573-3935 From tom at makeshyft.com Tue Oct 23 14:49:30 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 23 Oct 2018 14:49:30 -0400 Subject: regex url validator? In-Reply-To: <7499572e-68fa-9035-8ce0-33591bc726da@sonic.net> References: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> <7499572e-68fa-9035-8ce0-33591bc726da@sonic.net> Message-ID: thanks Sean and Alex for taking the lead on updating doc......Mark ..lots of examples is great idea. A whole new world has opened up. As a bonus .... from what I've read ....filtering using regular expressions are way faster than a repeat over an array. Thanks everyone for helping me out here and for the next person who comes across this. Cheers On Tue, Oct 23, 2018 at 2:28 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 10/23/2018 09:29 AM, Alex Tweedly via use-livecode wrote: > > > Hmmm - neither of these descriptions are very clear :-( but maybe > > they'll help :-) > > While it would be good to have the BNF syntax properly coded, I think > the most helpful thing would be good examples. And for this complex > command, *lots* of examples. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Tue Oct 23 14:52:49 2018 From: klaus at major-k.de (Klaus major-k) Date: Tue, 23 Oct 2018 20:52:49 +0200 Subject: starting the Project Browser In-Reply-To: <152701d46afe$a3dec4b0$eb9c4e10$@net> References: <152701d46afe$a3dec4b0$eb9c4e10$@net> Message-ID: <847B9011-F294-4B8F-815A-FDC22453A321@major-k.de> Hi Douglas, > Am 23.10.2018 um 20:31 schrieb Douglas Ruisaard via use-livecode : > > Is there a way to start/open the "Project Browser" (from the main LC Tools menu) using a script command for LC v8 and above? this works, go figure :-D ... go stack "revIDEProjectBrowser" ... > ... > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From scott at copware.com Tue Oct 23 15:22:11 2018 From: scott at copware.com (Scott Seward) Date: Tue, 23 Oct 2018 19:22:11 +0000 Subject: Sorting search results - solution needed In-Reply-To: References: Message-ID: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> Hi, I need to sort the result set of a search. But the common sort mechanisms I?m familiar with won?t get me where I need. I?m sure this is a common problem and much better developers then I know the name of it and how to execute it in Livecode. Any help would be appreciated. Here is the problem: I execute a search for ?187? and get the following results: NOTE: The search term will always start with one or more numeric characters and possibly be appended by punctuation or other alpha characters. Alpha sort Desired Sort 187 187 187.01 187a 187.02 187 (a) 187.1 187 (a)(1) 187.22 187 (b) 187.234 187 (b)(1) 187.3 187c 187.33 187.c 187.456 187.01 10187 187.02 18700 187.1 187 (a) 187.1.1 187 (a)(1) 187.1.2 187 (b) 187.3 187 (b)(1) 187.22 187.1.1 187.33 187.1.2 187.234 187.c 187.456 187a 10187 187c 18700 Kindest regards, Scott From ahsoftware at sonic.net Tue Oct 23 15:25:57 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 23 Oct 2018 12:25:57 -0700 Subject: starting the Project Browser In-Reply-To: <847B9011-F294-4B8F-815A-FDC22453A321@major-k.de> References: <152701d46afe$a3dec4b0$eb9c4e10$@net> <847B9011-F294-4B8F-815A-FDC22453A321@major-k.de> Message-ID: <8e7e6f64-c5d6-40ec-7b6c-38b19d508d61@sonic.net> On 10/23/2018 11:52 AM, Klaus major-k via use-livecode wrote: > Hi Douglas, > >> Am 23.10.2018 um 20:31 schrieb Douglas Ruisaard via use-livecode : >> >> Is there a way to start/open the "Project Browser" (from the main LC Tools menu) using a script command for LC v8 and above? > > this works, go figure :-D > ... > go stack "revIDEProjectBrowser" > ... Also, it's a one-click action in 4wDevolution, and for extra credit you can change that easily to launch Navigator instead. -- Mark Wieder ahsoftware at gmail.com From kee.nethery at elloco.com Tue Oct 23 15:48:30 2018 From: kee.nethery at elloco.com (Kee Nethery) Date: Tue, 23 Oct 2018 12:48:30 -0700 Subject: Sorting search results - solution needed In-Reply-To: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> References: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> Message-ID: I?d deconstruct the values into separate items and then sort by the last item, then next to last, eventually getting to the first. Kee Nethery > On Oct 23, 2018, at 12:22 PM, Scott Seward via use-livecode wrote: > > Hi, > > I need to sort the result set of a search. But the common sort mechanisms I?m familiar with won?t get me where I need. I?m sure this is a common problem and much better developers then I know the name of it and how to execute it in Livecode. Any help would be appreciated. Here is the problem: > > I execute a search for ?187? and get the following results: > > NOTE: The search term will always start with one or more numeric characters and possibly be appended by punctuation or other alpha characters. > > Alpha sort > > Desired Sort > > 187 > > 187 > > 187.01 > > 187a > > 187.02 > > 187 (a) > > 187.1 > > 187 (a)(1) > > 187.22 > > 187 (b) > > 187.234 > > 187 (b)(1) > > 187.3 > > 187c > > 187.33 > > 187.c > > 187.456 > > 187.01 > > 10187 > > 187.02 > > 18700 > > 187.1 > > 187 (a) > > 187.1.1 > > 187 (a)(1) > > 187.1.2 > > 187 (b) > > 187.3 > > 187 (b)(1) > > 187.22 > > 187.1.1 > > 187.33 > > 187.1.2 > > 187.234 > > 187.c > > 187.456 > > 187a > > 10187 > > 187c > > 18700 > > > > Kindest regards, > > Scott > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Tue Oct 23 16:22:27 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 23 Oct 2018 13:22:27 -0700 Subject: Navigator 6.6 alpha 1 is out In-Reply-To: References: <021401d4662e$72649470$572dbd50$@themartinz.com> Message-ID: Updated to fix an issue with showing script-only stacks in the stack list. On Wed, Oct 17, 2018 at 6:50 PM Geoff Canyon wrote: > Updated to fix some minor issues, and added the improved Properties menu, > now with inline boolean values instead of submenus, thanks to Kay C Lan. > From bobsneidar at iotecdigital.com Tue Oct 23 16:45:05 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 23 Oct 2018 20:45:05 +0000 Subject: Sorting search results - solution needed In-Reply-To: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> References: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> Message-ID: sort lines numeric by word 1 of each > On Oct 23, 2018, at 12:22 , Scott Seward via use-livecode wrote: > > Hi, > > I need to sort the result set of a search. But the common sort mechanisms I?m familiar with won?t get me where I need. I?m sure this is a common problem and much better developers then I know the name of it and how to execute it in Livecode. Any help would be appreciated. Here is the problem: > > I execute a search for ?187? and get the following results: > > NOTE: The search term will always start with one or more numeric characters and possibly be appended by punctuation or other alpha characters. > > Alpha sort > > Desired Sort > > 187 > > 187 > > 187.01 > > 187a > > 187.02 > > 187 (a) > > 187.1 > > 187 (a)(1) > > 187.22 > > 187 (b) > > 187.234 > > 187 (b)(1) > > 187.3 > > 187c > > 187.33 > > 187.c > > 187.456 > > 187.01 > > 10187 > > 187.02 > > 18700 > > 187.1 > > 187 (a) > > 187.1.1 > > 187 (a)(1) > > 187.1.2 > > 187 (b) > > 187.3 > > 187 (b)(1) > > 187.22 > > 187.1.1 > > 187.33 > > 187.1.2 > > 187.234 > > 187.c > > 187.456 > > 187a > > 10187 > > 187c > > 18700 > > > > Kindest regards, > > Scott > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at copware.com Tue Oct 23 16:56:32 2018 From: scott at copware.com (Scott Seward) Date: Tue, 23 Oct 2018 20:56:32 +0000 Subject: Sorting search results - solution needed In-Reply-To: References: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> Message-ID: <4E75B069-14E3-48D3-A3B1-14911CB3D56E@copware.com> Hmm, interesting. I'll noodle on that. I also see my email is pretty unreadable without any formatting. Here is a slightly better data example. Alpha sort 187 187.01 187.02 187.1 187.22 187.234 187.3 187.33 187.456 10187 18700 187 (a) 187 (a)(1) 187 (b) 187 (b)(1) 187.1.1 187.1.2 187.c 187a 187c Desired SORT 187 187a 187 (a) 187 (a)(1) 187 (b) 187 (b)(1) 187c 187.c 187.01 187.02 187.1 187.1.1 187.1.2 187.3 187.22 187.33 187.234 187.456 10187 18700 ?On 10/23/18, 12:49 PM, "use-livecode on behalf of Kee Nethery via use-livecode" wrote: I?d deconstruct the values into separate items and then sort by the last item, then next to last, eventually getting to the first. Kee Nethery > On Oct 23, 2018, at 12:22 PM, Scott Seward via use-livecode wrote: > > Hi, > > I need to sort the result set of a search. But the common sort mechanisms I?m familiar with won?t get me where I need. I?m sure this is a common problem and much better developers then I know the name of it and how to execute it in Livecode. Any help would be appreciated. Here is the problem: > > I execute a search for ?187? and get the following results: > > NOTE: The search term will always start with one or more numeric characters and possibly be appended by punctuation or other alpha characters. > > Alpha sort > > Desired Sort > > 187 > > 187 > > 187.01 > > 187a > > 187.02 > > 187 (a) > > 187.1 > > 187 (a)(1) > > 187.22 > > 187 (b) > > 187.234 > > 187 (b)(1) > > 187.3 > > 187c > > 187.33 > > 187.c > > 187.456 > > 187.01 > > 10187 > > 187.02 > > 18700 > > 187.1 > > 187 (a) > > 187.1.1 > > 187 (a)(1) > > 187.1.2 > > 187 (b) > > 187.3 > > 187 (b)(1) > > 187.22 > > 187.1.1 > > 187.33 > > 187.1.2 > > 187.234 > > 187.c > > 187.456 > > 187a > > 10187 > > 187c > > 18700 > > > > Kindest regards, > > Scott > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 23 16:58:16 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 23 Oct 2018 20:58:16 +0000 Subject: Sorting search results - solution needed In-Reply-To: References: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> Message-ID: <849FFB1E-1DC1-44F4-B9C5-054466DB48A6@iotecdigital.com> Come to think of it no. I didn't notice the items further down in the list with multiple periods. Your problems is very basic: You really have alpha-numeric data, which you are trying to sort numerically. It's a contradiction in terms. Looking at the nature of your data, and assuming your data is not going to deviate from what you have provided, you have to break out the components of your values into three separate values, the integer portion (if any otherwise 0), the decimal portion (if any otherwise 0) and the alphanumeric portion (assuming that *ALWAYS* comes last). But evn then, I see: >> 10187 >> >> 187c >> >> 18700 That's not alphanumerically sorted, nor is it numerically sorted! It's a non-sort! Bob S > On Oct 23, 2018, at 13:45 , Bob Sneidar via use-livecode wrote: > > sort lines numeric by word 1 of each > >> On Oct 23, 2018, at 12:22 , Scott Seward via use-livecode wrote: >> >> Hi, >> >> I need to sort the result set of a search. But the common sort mechanisms I?m familiar with won?t get me where I need. I?m sure this is a common problem and much better developers then I know the name of it and how to execute it in Livecode. Any help would be appreciated. Here is the problem: >> >> I execute a search for ?187? and get the following results: >> >> NOTE: The search term will always start with one or more numeric characters and possibly be appended by punctuation or other alpha characters. >> >> Alpha sort >> >> Desired Sort >> >> 187 >> >> 187 >> >> 187.01 >> >> 187a >> >> 187.02 >> >> 187 (a) >> >> 187.1 >> >> 187 (a)(1) >> >> 187.22 >> >> 187 (b) >> >> 187.234 >> >> 187 (b)(1) >> >> 187.3 >> >> 187c >> >> 187.33 >> >> 187.c >> >> 187.456 >> >> 187.01 >> >> 10187 >> >> 187.02 >> >> 18700 >> >> 187.1 >> >> 187 (a) >> >> 187.1.1 >> >> 187 (a)(1) >> >> 187.1.2 >> >> 187 (b) >> >> 187.3 >> >> 187 (b)(1) >> >> 187.22 >> >> 187.1.1 >> >> 187.33 >> >> 187.1.2 >> >> 187.234 >> >> 187.c >> >> 187.456 >> >> 187a >> >> 10187 >> >> 187c >> >> 18700 >> >> >> >> Kindest regards, >> >> Scott >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 23 17:14:34 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 23 Oct 2018 21:14:34 +0000 Subject: Sorting search results - solution needed In-Reply-To: <849FFB1E-1DC1-44F4-B9C5-054466DB48A6@iotecdigital.com> References: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> <849FFB1E-1DC1-44F4-B9C5-054466DB48A6@iotecdigital.com> Message-ID: <3CEE2EA4-CFDD-4DFC-BDCA-3F828283A121@iotecdigital.com> Okay I misunderstood. So were it not for the multiple periods in a single value, you could have sorted numeric by word 1 of each, then resorted alphabetically by word 2 of each. The wrench in the works is the double periods. For this you can write a function that builds a string for a value passed and use that in your by each clause. I would extract the integer portion of the value, pad it with a maximum number of trailing zeros, say 10, then append the rest. So for example 187 becomes 1870000000. 187a becomes 1870000000a. 187.01 mecomes 1870000000.01. 187 (a) becomes 1870000000 (a). And finally, 10187 becomes 1018700000. This of course cannot be a numeric sort. I would create a loop and start with 1 digit, then see if the value div the value = the value (in a try catch loop). Once you get an error or false, break out the integer portion, pad it with the appropriate number of trailing zeros, then append the rest. Bob S > 187 > 187a > 187 (a) > 187 (a)(1) > 187 (b) > 187 (b)(1) > 187c > 187.c > 187.01 > 187.02 > 187.1 > 187.1.1 > 187.1.2 > 187.3 > 187.22 > 187.33 > 187.234 > 187.456 > 10187 > 18700 Bob S From monte at appisle.net Tue Oct 23 17:40:18 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 24 Oct 2018 08:40:18 +1100 Subject: regex url validator? In-Reply-To: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> References: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> Message-ID: <663D45A0-E44F-423E-8AEC-ED5CE24AF222@appisle.net> > On 24 Oct 2018, at 3:29 am, Alex Tweedly via use-livecode wrote: > > Hi Sean, > > I think there are two (hopefully straightforward) suggestions for the docs on this: > > 1. the syntax diagram is (I think) wrong (or at least misleading) .... > >> filter [{lines | items | keys | elements} of] *filterSource* {with | without | [not] matching} [{wildcard pattern | regex pattern}] *filterPattern* [into *targetContainer*] >> > in particular, the bit that says .... [{wildcard pattern | regex pattern}] .... > > It implies that it is optional to have anything there - and that if you do, then it can be either one or the other. Nothing there indicates that the alternatives are > > alternative one: "wildcard pattern" or nothing, > alternative two: "regex pattern". > > Maybe it could be > > filter [{lines | items | keys | elements} of] *filterSource* {with | without | [not] matching} {[wildcard pattern] | regex pattern} *filterPattern* [into *targetContainer*] > > (i.e. moving the option [...] inside the alternate {...} - which I think gives equivalent possibilities, but makes it clearer which is which; clearer at least to me :-) Hmm? the syntax just describes valid syntax rather than how it behaves so I?m not sure if the change suggested above adds much. The docs do state: If a regex pattern is specified, the filterPattern evaluates to a regular expression. Perhaps we just need a note stating that the pattern is presumed to be a wildcard if the pattern type is not explicitly specified via regex pattern or wildcard pattern. Cheers Monte From monte at appisle.net Tue Oct 23 17:53:23 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 24 Oct 2018 08:53:23 +1100 Subject: regex url validator? In-Reply-To: <663D45A0-E44F-423E-8AEC-ED5CE24AF222@appisle.net> References: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> <663D45A0-E44F-423E-8AEC-ED5CE24AF222@appisle.net> Message-ID: <09EA2F77-5CDB-4ACC-B9FB-D70244C68795@appisle.net> > On 24 Oct 2018, at 8:40 am, Monte Goulding via use-livecode wrote: > > Hmm? the syntax just describes valid syntax rather than how it behaves so I?m not sure if the change suggested above adds much. > > The docs do state: > > If a regex pattern is specified, the filterPattern evaluates to a regular expression. > > Perhaps we just need a note stating that the pattern is presumed to be a wildcard if the pattern type is not explicitly specified via regex pattern or wildcard pattern. Hmm? looking at Sean?s PR I see down further there is this: If no filterPattern type is specified, the filterPattern is handled as a wildcard. So all the info is there and interestingly I missed it myself. Sean?s PR does move the regex info I quoted above next to it which is good as currently one might ignore the rest once you hit the wildcard pattern description thinking it is no longer relevant to regex. I have suggested Sean also highlight that line by making it a block quoted note. Cheers Monte From monte at appisle.net Tue Oct 23 17:58:32 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 24 Oct 2018 08:58:32 +1100 Subject: Autocomplete Problem In-Reply-To: <3B751B58-67D7-4CCD-905B-266EC59CD83F@all-auctions.com> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <3B751B58-67D7-4CCD-905B-266EC59CD83F@all-auctions.com> Message-ID: <270CE0F0-FBB5-4C9D-8E62-2DDA9E75C361@appisle.net> > On 24 Oct 2018, at 1:23 am, Rick Harrison via use-livecode wrote: > > It keeps interfering with what I?m trying to type I?m wondering how it is interfering with what you are trying to type. Can you provide an example. It shouldn?t do so unless you tab to complete. It could be that as we have had the tab to auto-format feature for such a long time that many people have become used to hitting tab a lot. FWIW I get really annoyed with some editors that do autocomplete on return so you type what you want and hit return and all of a sudden you get stuff you don?t want so I completely understand the annoyance factor. Cheers Monte From tom at makeshyft.com Tue Oct 23 18:08:33 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 23 Oct 2018 18:08:33 -0400 Subject: applescript in standalones? Message-ID: Can someone confirm for me whether "do as applescript" works in standalones built by v9? ..I'm seeing a couple of discrepancies in this regards. We don't have a mac handy and i know some of you will know this off the top of your head. many thanks. seeing this in the requests for contributions .... https://quality.livecode.com/show_bug.cgi?id=20993 and posts that talk about it working..... Which is true? From waprothero at gmail.com Tue Oct 23 18:24:25 2018 From: waprothero at gmail.com (William Prothero) Date: Tue, 23 Oct 2018 15:24:25 -0700 Subject: Autocomplete Problem In-Reply-To: <270CE0F0-FBB5-4C9D-8E62-2DDA9E75C361@appisle.net> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <3B751B58-67D7-4CCD-905B-266EC59CD83F@all-auctions.com> <270CE0F0-FBB5-4C9D-8E62-2DDA9E75C361@appisle.net> Message-ID: <49EC7E22-FD7B-46DF-B6DC-8FE85E77E725@gmail.com> Monte: What is annoying to me is when I use brackets and quotes. Maybe it?s just the way I have gotten habituated, but it is always trying to put double quotes when I add a quote (or bracket at the end of a bracketed expression) at the end of a string. Best, Bill > On Oct 23, 2018, at 2:58 PM, Monte Goulding via use-livecode wrote: > > > >> On 24 Oct 2018, at 1:23 am, Rick Harrison via use-livecode wrote: >> >> It keeps interfering with what I?m trying to type > > > I?m wondering how it is interfering with what you are trying to type. Can you provide an example. It shouldn?t do so unless you tab to complete. It could be that as we have had the tab to auto-format feature for such a long time that many people have become used to hitting tab a lot. > > FWIW I get really annoyed with some editors that do autocomplete on return so you type what you want and hit return and all of a sudden you get stuff you don?t want so I completely understand the annoyance factor. > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Tue Oct 23 18:27:47 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Tue, 23 Oct 2018 23:27:47 +0100 Subject: [ANN] Network Tracer Message-ID: Hi Everyone, It is with a lot of excitement that I am here to announce a new plugin for LiveCode called Network Tracer. This is a zero-configuration plugin and library combination that creates a "networked log" experience to help you debug your LC solutions. To use it, you open the Dashboard stack in the IDE (you can add it to your plugins folder if you want) and then add the library stack (and start using it) from your stacks. Any call to the APIs provided will appear in the Dashboard stack provided that both the Dashboard and the standalone (or another IDE on another machine) are both in the same network (LAN, WIFI) and the your firewall is allowing incoming connections on port 8001 (should just work). I've prepared a nice video for you to check out: ? https://vimeo.com/296722452 And also a page about it: ? http://andregarzia.com/livecode/networktracer.html The plugin costs GBP 40 and it has the potential to really speed up your development, just watch the video to be amazed. Also, I've made a bundle of my DB Lib, some of my other tools and the Network Tracer for GBP 100, all that information is on the hyperlink above. I hope you're all as excited to check it out as I am to provide this new tool for the community. Cheers andre From brian at milby7.com Tue Oct 23 18:35:56 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 23 Oct 2018 17:35:56 -0500 Subject: regex url validator? In-Reply-To: <09EA2F77-5CDB-4ACC-B9FB-D70244C68795@appisle.net> References: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> <663D45A0-E44F-423E-8AEC-ED5CE24AF222@appisle.net> <09EA2F77-5CDB-4ACC-B9FB-D70244C68795@appisle.net> Message-ID: <8a95a68b-cd46-4c4e-8857-8cba9c10ff67@Spark> As long as it doesn?t break autocomplete, I think moving the square brackets is a good idea. It makes it more accurate and clear that wildcard is what can be optionally omitted but regex must be included. Thanks, Brian On Oct 23, 2018, 4:54 PM -0500, Monte Goulding via use-livecode , wrote: > > > > On 24 Oct 2018, at 8:40 am, Monte Goulding via use-livecode wrote: > > > > Hmm? the syntax just describes valid syntax rather than how it behaves so I?m not sure if the change suggested above adds much. > > > > The docs do state: > > > > If a regex pattern is specified, the filterPattern evaluates to a regular expression. > > > > Perhaps we just need a note stating that the pattern is presumed to be a wildcard if the pattern type is not explicitly specified via regex pattern or wildcard pattern. > > Hmm? looking at Sean?s PR I see down further there is this: > > If no filterPattern type is specified, the filterPattern is handled as a wildcard. > > So all the info is there and interestingly I missed it myself. Sean?s PR does move the regex info I quoted above next to it which is good as currently one might ignore the rest once you hit the wildcard pattern description thinking it is no longer relevant to regex. I have suggested Sean also highlight that line by making it a block quoted note. > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Tue Oct 23 18:36:56 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 24 Oct 2018 09:36:56 +1100 Subject: Autocomplete Problem In-Reply-To: <49EC7E22-FD7B-46DF-B6DC-8FE85E77E725@gmail.com> References: <5C7AC751-E6B8-405C-8D88-7AC305D38D94@appisle.net> <1669f733ac8.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <3B751B58-67D7-4CCD-905B-266EC59CD83F@all-auctions.com> <270CE0F0-FBB5-4C9D-8E62-2DDA9E75C361@appisle.net> <49EC7E22-FD7B-46DF-B6DC-8FE85E77E725@gmail.com> Message-ID: That is bracket completion and can be turned off separately to autocomplete. Cheers Monte > On 24 Oct 2018, at 9:24 am, William Prothero via use-livecode wrote: > > What is annoying to me is when I use brackets and quotes. Maybe it?s just the way I have gotten habituated, but it is always trying to put double quotes when I add a quote (or bracket at the end of a bracketed expression) at the end of a string. From tom at makeshyft.com Tue Oct 23 18:39:53 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 23 Oct 2018 18:39:53 -0400 Subject: [ANN] Network Tracer In-Reply-To: References: Message-ID: great product Andre...I don't do mobile dev yet, but I can see the benefit of it to anyone who does. Wishing you lots of sales. Cheers On Tue, Oct 23, 2018 at 6:28 PM Andre Alves Garzia via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Everyone, > > It is with a lot of excitement that I am here to announce a new plugin > for LiveCode called Network Tracer. This is a zero-configuration plugin > and library combination that creates a "networked log" experience to > help you debug your LC solutions. > > To use it, you open the Dashboard stack in the IDE (you can add it to > your plugins folder if you want) and then add the library stack (and > start using it) from your stacks. Any call to the APIs provided will > appear in the Dashboard stack provided that both the Dashboard and the > standalone (or another IDE on another machine) are both in the same > network (LAN, WIFI) and the your firewall is allowing incoming > connections on port 8001 (should just work). > > I've prepared a nice video for you to check out: > > https://vimeo.com/296722452 > > And also a page about it: > > http://andregarzia.com/livecode/networktracer.html > > The plugin costs GBP 40 and it has the potential to really speed up your > development, just watch the video to be amazed. Also, I've made a bundle > of my DB Lib, some of my other tools and the Network Tracer for GBP 100, > all that information is on the hyperlink above. > > I hope you're all as excited to check it out as I am to provide this new > tool for the community. > > Cheers > > andre > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Oct 23 18:40:09 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 23 Oct 2018 17:40:09 -0500 Subject: applescript in standalones? In-Reply-To: References: Message-ID: You have to manually include the dictionary and update the plist (I think), but the included engine does have the necessary support compiled in. Thanks, Brian On Oct 23, 2018, 5:09 PM -0500, Tom Glod via use-livecode , wrote: > Can someone confirm for me whether "do as applescript" works in standalones > built by v9? ..I'm seeing a couple of discrepancies in this regards. We > don't have a mac handy and i know some of you will know this off the top of > your head. many thanks. > > seeing this in the requests for contributions .... > > https://quality.livecode.com/show_bug.cgi?id=20993 > > and posts that talk about it working..... > > Which is true? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Tue Oct 23 18:42:31 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 23 Oct 2018 17:42:31 -0500 Subject: applescript in standalones? In-Reply-To: References: Message-ID: <601c2901-43a3-4704-8242-e57dfc24b00b@Spark> (I think I answered the wrong question though. I was answering if you can script a stand-alone from AS) I?ll check and answer the right question this evening if someone else doesn?t chime in. Thanks, Brian On Oct 23, 2018, 5:09 PM -0500, Tom Glod via use-livecode , wrote: > Can someone confirm for me whether "do as applescript" works in standalones > built by v9? ..I'm seeing a couple of discrepancies in this regards. We > don't have a mac handy and i know some of you will know this off the top of > your head. many thanks. > > seeing this in the requests for contributions .... > > https://quality.livecode.com/show_bug.cgi?id=20993 > > and posts that talk about it working..... > > Which is true? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Tue Oct 23 18:53:30 2018 From: dunbarx at aol.com (dunbarxx) Date: Tue, 23 Oct 2018 17:53:30 -0500 (CDT) Subject: Sorting search results - solution needed In-Reply-To: <3CEE2EA4-CFDD-4DFC-BDCA-3F828283A121@iotecdigital.com> References: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> <849FFB1E-1DC1-44F4-B9C5-054466DB48A6@iotecdigital.com> <3CEE2EA4-CFDD-4DFC-BDCA-3F828283A121@iotecdigital.com> Message-ID: <1540335210212-0.post@n4.nabble.com> I am missing the rules of the game. But in any event I agree that the only way to sort a mixed bag of numbers, punctuation and alpha chars is to pre-parse and sort repeatedly by items, or some other, er, sort of chunk. But I do not see the "hierarchy" among spaces, periods, decimal numbers, etc. Are there such rules? Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From tom at makeshyft.com Tue Oct 23 19:00:06 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 23 Oct 2018 19:00:06 -0400 Subject: applescript in standalones? In-Reply-To: <601c2901-43a3-4704-8242-e57dfc24b00b@Spark> References: <601c2901-43a3-4704-8242-e57dfc24b00b@Spark> Message-ID: Hi Brian, to be honest I am not sure....your answer definately reflects that feature request to which I linked...so probably that is the official situation..... but just to make sure...... I want to build a standalone from which I am able to run applescript commands ..(ex send keystrokes to other applications)....like vbscript's sendkeys().. ? On Tue, Oct 23, 2018 at 6:43 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > (I think I answered the wrong question though. I was answering if you can > script a stand-alone from AS) > > I?ll check and answer the right question this evening if someone else > doesn?t chime in. > > Thanks, > Brian > On Oct 23, 2018, 5:09 PM -0500, Tom Glod via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > Can someone confirm for me whether "do as applescript" works in > standalones > > built by v9? ..I'm seeing a couple of discrepancies in this regards. We > > don't have a mac handy and i know some of you will know this off the top > of > > your head. many thanks. > > > > seeing this in the requests for contributions .... > > > > https://quality.livecode.com/show_bug.cgi?id=20993 > > > > and posts that talk about it working..... > > > > Which is true? > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Tue Oct 23 19:02:38 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Wed, 24 Oct 2018 00:02:38 +0100 Subject: [ANN] Network Tracer In-Reply-To: References: Message-ID: <5e262e52-6958-1243-917c-80fca5583754@andregarzia.com> Hey Tom, Thanks for the kind words my friend! I hope we all do lots of sales. :-) Be aware that this is not a product that is only for mobile. I've shown it in the context of mobile development (because it is where I think it is easier to perceive the value of the tool) but it also works for Desktop usage. For example, imagine you're building a cross-platform app and you normally do your development on a Mac but you need to debug something on Windows. You can launch a standalone on a windows machine and receive the messages on your mac. It is just an easy way for sending data from stacks on other machines back to wherever you're running your IDE. It is not really visible on that video but behind me are both a Surface running Windows 10 and a Macbook Air running macOS. I was debugging apps between them prior to recording the video by using this stack. This might not be a use case that you need, but if at any time in the future, you see yourself doing one of these cases: * Doing mobile apps. * Doing desktop apps that work cross-platform. * Doing complex network based solutions (such as ERP, or something that needs to run on an intranet). This might help you. Cheers andre On 10/23/2018 11:39 PM, Tom Glod via use-livecode wrote: > great product Andre...I don't do mobile dev yet, but I can see the benefit > of it to anyone who does. > > Wishing you lots of sales. > > Cheers > > On Tue, Oct 23, 2018 at 6:28 PM Andre Alves Garzia via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Everyone, >> >> It is with a lot of excitement that I am here to announce a new plugin >> for LiveCode called Network Tracer. This is a zero-configuration plugin >> and library combination that creates a "networked log" experience to >> help you debug your LC solutions. >> >> To use it, you open the Dashboard stack in the IDE (you can add it to >> your plugins folder if you want) and then add the library stack (and >> start using it) from your stacks. Any call to the APIs provided will >> appear in the Dashboard stack provided that both the Dashboard and the >> standalone (or another IDE on another machine) are both in the same >> network (LAN, WIFI) and the your firewall is allowing incoming >> connections on port 8001 (should just work). >> >> I've prepared a nice video for you to check out: >> >> https://vimeo.com/296722452 >> >> And also a page about it: >> >> http://andregarzia.com/livecode/networktracer.html >> >> The plugin costs GBP 40 and it has the potential to really speed up your >> development, just watch the video to be amazed. Also, I've made a bundle >> of my DB Lib, some of my other tools and the Network Tracer for GBP 100, >> all that information is on the hyperlink above. >> >> I hope you're all as excited to check it out as I am to provide this new >> tool for the community. >> >> Cheers >> >> andre >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Tue Oct 23 19:04:18 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Wed, 24 Oct 2018 00:04:18 +0100 Subject: jsonImport or JSONToArray In-Reply-To: <3A36ADAB-E1EE-449E-8FCF-32C607427E75@m-r-d.de> References: <147301d4698f$bae16340$30a429c0$@net> <3A36ADAB-E1EE-449E-8FCF-32C607427E75@m-r-d.de> Message-ID: As you folks may have seen earlier today, I've shipped a new product here on the list. While I was building the demo stack for this plugin, I had the same problem as you describe. In my case it boiled down to the automatic inclusions not working, I ended up needing to do manual inclusions and then it worked. On 10/21/2018 11:59 PM, Matthias Rebbe via use-livecode wrote: > Douglas, > > did you try to select the inclusions manually in StandaloneBuilder settings? > > I might be wrong, but i think i remember there was a problem with including that library when ?searching for inclusions? was selected in the SB settings. > > Regards, > Matthias > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de >> Am 22.10.2018 um 00:45 schrieb Douglas Ruisaard via use-livecode >: >> >> Has anyone recently tried to create a standalone app which includes either a jsonImport or JSONToArray call? >> >> While my code works perfectly when run within the LC API, once a standalone is produced, it chokes on either one of these calls. I've reduced the code to its bare essentials. A sample/simple JSON string I am trying is: >> >> { >> "array": [ >> 1, >> 2, >> 3 >> ], >> "boolean": true, >> "null": null, >> "number": 123, >> "object": { >> "a": "b", >> "c": "d", >> "e": "f" >> }, >> "string": "Hello World" >> } >> >> This string is embedded as a Custom Property within a button. The button calls the following: >> >> on mouseUp >> >> // just empty everything to make sure things are in a known state >> >> put empty into temp >> put empty into tArray >> put empty into dispArray >> put empty into tJson >> >> get the json of button "ThingSpeak_Fetch" >> put it into testJson >> >> // display the JSON before it is converted into an array >> >> answer "Simple JSON example:" & cr & testJson >> >> // this line (either "version") will choke the standalone... it doesn't lock it up in the API >> >> put JsonToArray(testJson) into tArray >> //put jsonImport(testJson) into tArray >> >> put displayArrayData(tArray, "") into dispArray >> answer dispArray >> >> end mouseUp >> >> function displayArrayData pArray, pIndent >> # create the variable that loops through the keys in the array >> local tKey >> if pArray is an array then >> # print information to indicate that we are entering a new nested level of the array >> get "Array" & return >> # print full stops that allow the reader to track the depth of an element >> put "." after pIndent >> # create the indentation >> put tab after pIndent >> repeat for each key tKey in pArray >> # call displayArrayData with a nested array >> put format("%s[%s] => %s\n", pIndent, tKey, displayArrayData (pArray[tKey], pIndent)) after it >> end repeat >> delete the last char of it >> return it >> else >> return pArray >> end if >> end displayArrayData >> >> The function call simply outputs the converted array.... and will do so when this code is run from within the API ... but create a Windows standalone and the array output is never generated. >> >> I've tried this in Windows 7 Enterprise SP1, LC: 8.1.9, 8.1.10 and 9.0.1 ... also tried on MAC Sierra (10.12.6) and LC 8.1.9 >> >> All platforms behave identically as described above >> >> Any help would be appreciated... meanwhile I'll be submitting this to LC directly >> >> Douglas Ruisaard >> Trilogy Software >> (250) 573-3935 >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Tue Oct 23 19:05:03 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 24 Oct 2018 10:05:03 +1100 Subject: regex url validator? In-Reply-To: <8a95a68b-cd46-4c4e-8857-8cba9c10ff67@Spark> References: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> <663D45A0-E44F-423E-8AEC-ED5CE24AF222@appisle.net> <09EA2F77-5CDB-4ACC-B9FB-D70244C68795@appisle.net> <8a95a68b-cd46-4c4e-8857-8cba9c10ff67@Spark> Message-ID: <9E3F6A82-C526-4E05-A74A-B07D6C8B7476@appisle.net> > On 24 Oct 2018, at 9:35 am, Brian Milby via use-livecode wrote: > > As long as it doesn?t break autocomplete, I think moving the square brackets is a good idea. It makes it more accurate and clear that wildcard is what can be optionally omitted but regex must be included. I?m relatively sure it won?t break the autocomplete syntax parser. Indeed it would be nice to have a way to declare in the syntax statement that a particular bit is just making the implicit form into an explicit form so that autocomplete could just not give the implicit form as an option. Cheers Monte From monte at appisle.net Tue Oct 23 19:08:55 2018 From: monte at appisle.net (Monte Goulding) Date: Wed, 24 Oct 2018 10:08:55 +1100 Subject: jsonImport or JSONToArray In-Reply-To: References: <147301d4698f$bae16340$30a429c0$@net> <3A36ADAB-E1EE-449E-8FCF-32C607427E75@m-r-d.de> Message-ID: <9D07A6B6-E72E-4C43-9862-666AC2DC0B6F@appisle.net> > On 24 Oct 2018, at 10:04 am, Andre Alves Garzia via use-livecode wrote: > > As you folks may have seen earlier today, I've shipped a new product here on the list. While I was building the demo stack for this plugin, I had the same problem as you describe. In my case it boiled down to the automatic inclusions not working, I ended up needing to do manual inclusions and then it worked. Yes, we still need to add the inclusions search for many things. I would really like to get rid of the choice of one or the other and just have a button on the inclusions pane to run a search. This would be particularly handy for speeding up builds if we are suddenly looking for many more things! Cheers Monte From sean at pidigital.co.uk Tue Oct 23 20:36:40 2018 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 24 Oct 2018 01:36:40 +0100 Subject: regex url validator? In-Reply-To: References: <265ac485-f0e1-ad3e-a1df-c0f0d98bbc71@tweedly.net> Message-ID: Hi Alex > Alex wrote: > 1. the syntax diagram is (I think) wrong (or at least misleading) .... > >> filter [{lines | items | keys | elements} of] *filterSource* {with | without | [not] matching} [{wildcard pattern | regex pattern}] *filterPattern* [into *targetContainer*] >> > in particular, the bit that says .... [{wildcard pattern | regex pattern}] .... > > It implies that it is optional to have anything there - and that if you do, then it can be either one or the other. Nothing there indicates that the alternatives are > > alternative one: "wildcard pattern" or nothing, > alternative two: "regex pattern". > > Maybe it could be > > filter [{lines | items | keys | elements} of] *filterSource* {with | without | [not] matching} {[wildcard pattern] | regex pattern} *filterPattern* [into *targetContainer*] > > (i.e. moving the option [...] inside the alternate {...} - which I think gives equivalent possibilities, but makes it clearer which is which; clearer at least to me :-) The problem there is that it is an option. The default if nothing is expressed is that it is a wildcard pattern. So filter lines of x with ?a? is the same as Filter lines of x with wildcard pattern ?a? However, specifying regex pattern explicitly ensures that the filterpattern is handled as a regex. > 2. Explicitly say in the description that the phrase "regex pattern" is required if the filterpattern is to be interpreted as a regex, while the alternative "wildcard pattern" is optional, and is the default, used if neither of those phrases occurs. This is bang on the money and should definitely be added to ensure there is never any confusion. I?ll implement right away. Thanks Sean From brian at milby7.com Wed Oct 24 01:00:33 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 24 Oct 2018 00:00:33 -0500 Subject: applescript in standalones? In-Reply-To: References: <601c2901-43a3-4704-8242-e57dfc24b00b@Spark> Message-ID: I can confirm that the following scripts work as expected in a stand alone application (9.0.1): on mouseUp local tScript put "Display Dialog" && quote & "Hello world" & quote into tScript do tScript as "AppleScript" answer the result -- '{button returned:"OK"}' if you click the OK button end mouseUp on mouseUp do "1 + 1" as "AppleScript" answer the result -- 2 end mouseUp on mouseUp do field "TheScript" as "AppleScript" -- tested with "beep" answer the result -- empty for beep end mouseUp The linked bug deals with the other direction - your built application being able to receive applescript commands to "do script". For a while, the sdef file/plist entry was missing so the IDE couldn't receive those commands but that has been fixed. Patching the build scripts to include the file/update the plist would be fairly easy but adding the check box for the setting would require a binary stack update. Thanks, Brian On Tue, Oct 23, 2018 at 6:00 PM Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Brian, to be honest I am not sure....your answer definately reflects > that feature request to which I linked...so probably that is the official > situation..... but just to make sure...... > > I want to build a standalone from which I am able to run applescript > commands ..(ex send keystrokes to other applications)....like vbscript's > sendkeys().. > > ? > > > > On Tue, Oct 23, 2018 at 6:43 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > (I think I answered the wrong question though. I was answering if you can > > script a stand-alone from AS) > > > > I?ll check and answer the right question this evening if someone else > > doesn?t chime in. > > > > Thanks, > > Brian > > On Oct 23, 2018, 5:09 PM -0500, Tom Glod via use-livecode < > > use-livecode at lists.runrev.com>, wrote: > > > Can someone confirm for me whether "do as applescript" works in > > standalones > > > built by v9? ..I'm seeing a couple of discrepancies in this regards. We > > > don't have a mac handy and i know some of you will know this off the > top > > of > > > your head. many thanks. > > > > > > seeing this in the requests for contributions .... > > > > > > https://quality.livecode.com/show_bug.cgi?id=20993 > > > > > > and posts that talk about it working..... > > > > > > Which is true? > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Wed Oct 24 03:33:42 2018 From: hh at hyperhh.de (hh) Date: Wed, 24 Oct 2018 09:33:42 +0200 Subject: Sorting search results - solution needed Message-ID: As Craig said, your rules are not consistent to standards: You sort *after* the first period numeric with the exception that leading zeros are "valid". That's why the replace in the following function is needed. This now yields exactly your custom sort order: function gregSort s set itemdel to "." sort s numeric by offset("a",each) sort s numeric by offset("b",each) sort s numeric by offset("c",each) replace ".0" with ".0." in s --> begin make leading zeros valid sort s numeric by item 2 to 3 of each replace ".0." with ".0" in s --> end make leading zeros valid sort s numeric by item 1 of each return s end gregSort From tom at makeshyft.com Wed Oct 24 09:28:09 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 24 Oct 2018 09:28:09 -0400 Subject: applescript in standalones? In-Reply-To: References: <601c2901-43a3-4704-8242-e57dfc24b00b@Spark> Message-ID: Ahhhhhh...I would have never figured that out from just reading the enhancement report. Much thanks Brian. On Wed, Oct 24, 2018 at 12:58 AM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > I can confirm that the following scripts work as expected in a stand alone > application (9.0.1): > > on mouseUp > local tScript > put "Display Dialog" && quote & "Hello world" & quote into tScript > do tScript as "AppleScript" > answer the result -- '{button returned:"OK"}' if you click the OK > button > end mouseUp > > on mouseUp > do "1 + 1" as "AppleScript" > answer the result -- 2 > end mouseUp > > on mouseUp > do field "TheScript" as "AppleScript" -- tested with "beep" > answer the result -- empty for beep > end mouseUp > > > The linked bug deals with the other direction - your built application > being able to receive applescript commands to "do script". For a while, > the sdef file/plist entry was missing so the IDE couldn't receive those > commands but that has been fixed. Patching the build scripts to include > the file/update the plist would be fairly easy but adding the check box for > the setting would require a binary stack update. > > Thanks, > Brian > > On Tue, Oct 23, 2018 at 6:00 PM Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi Brian, to be honest I am not sure....your answer definately reflects > > that feature request to which I linked...so probably that is the official > > situation..... but just to make sure...... > > > > I want to build a standalone from which I am able to run applescript > > commands ..(ex send keystrokes to other applications)....like vbscript's > > sendkeys().. > > > > ? > > > > > > > > On Tue, Oct 23, 2018 at 6:43 PM Brian Milby via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > (I think I answered the wrong question though. I was answering if you > can > > > script a stand-alone from AS) > > > > > > I?ll check and answer the right question this evening if someone else > > > doesn?t chime in. > > > > > > Thanks, > > > Brian > > > On Oct 23, 2018, 5:09 PM -0500, Tom Glod via use-livecode < > > > use-livecode at lists.runrev.com>, wrote: > > > > Can someone confirm for me whether "do as applescript" works in > > > standalones > > > > built by v9? ..I'm seeing a couple of discrepancies in this regards. > We > > > > don't have a mac handy and i know some of you will know this off the > > top > > > of > > > > your head. many thanks. > > > > > > > > seeing this in the requests for contributions .... > > > > > > > > https://quality.livecode.com/show_bug.cgi?id=20993 > > > > > > > > and posts that talk about it working..... > > > > > > > > Which is true? > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 24 10:23:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 24 Oct 2018 14:23:04 +0000 Subject: [ANN] Network Tracer In-Reply-To: References: Message-ID: <046763C5-E78F-409D-9E4A-A921633EFECF@iotecdigital.com> Hah! I'm sure that was a joke but UDP is User Datagram Protocol. Bob S > On Oct 23, 2018, at 15:27 , Andre Alves Garzia via use-livecode wrote: > > Hi Everyone, > > It is with a lot of excitement that I am here to announce a new plugin for LiveCode called Network Tracer. This is a zero-configuration plugin and library combination that creates a "networked log" experience to help you debug your LC solutions. > > To use it, you open the Dashboard stack in the IDE (you can add it to your plugins folder if you want) and then add the library stack (and start using it) from your stacks. Any call to the APIs provided will appear in the Dashboard stack provided that both the Dashboard and the standalone (or another IDE on another machine) are both in the same network (LAN, WIFI) and the your firewall is allowing incoming connections on port 8001 (should just work). > > I've prepared a nice video for you to check out: > > https://vimeo.com/296722452 > > And also a page about it: > > http://andregarzia.com/livecode/networktracer.html > > The plugin costs GBP 40 and it has the potential to really speed up your development, just watch the video to be amazed. Also, I've made a bundle of my DB Lib, some of my other tools and the Network Tracer for GBP 100, all that information is on the hyperlink above. > > I hope you're all as excited to check it out as I am to provide this new tool for the community. > > Cheers > > andre From bobsneidar at iotecdigital.com Wed Oct 24 10:24:21 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 24 Oct 2018 14:24:21 +0000 Subject: jsonImport or JSONToArray In-Reply-To: <9D07A6B6-E72E-4C43-9862-666AC2DC0B6F@appisle.net> References: <147301d4698f$bae16340$30a429c0$@net> <3A36ADAB-E1EE-449E-8FCF-32C607427E75@m-r-d.de> <9D07A6B6-E72E-4C43-9862-666AC2DC0B6F@appisle.net> Message-ID: <8E1950BE-8193-495F-A904-0165B6A91531@iotecdigital.com> +1 Great idea! Bob S > On Oct 23, 2018, at 16:08 , Monte Goulding via use-livecode wrote: > >> On 24 Oct 2018, at 10:04 am, Andre Alves Garzia via use-livecode wrote: >> >> As you folks may have seen earlier today, I've shipped a new product here on the list. While I was building the demo stack for this plugin, I had the same problem as you describe. In my case it boiled down to the automatic inclusions not working, I ended up needing to do manual inclusions and then it worked. > > Yes, we still need to add the inclusions search for many things. I would really like to get rid of the choice of one or the other and just have a button on the inclusions pane to run a search. This would be particularly handy for speeding up builds if we are suddenly looking for many more things! > > Cheers > > Monte From bobsneidar at iotecdigital.com Wed Oct 24 12:05:17 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 24 Oct 2018 16:05:17 +0000 Subject: applescript in standalones? In-Reply-To: References: Message-ID: Mine do. Not in Windows of course... :-) On MacOS I use applescript to tell Acrobat to run a javascript to fill a form. Bob S > On Oct 23, 2018, at 15:08 , Tom Glod via use-livecode wrote: > > Can someone confirm for me whether "do as applescript" works in standalones > built by v9? ..I'm seeing a couple of discrepancies in this regards. We > don't have a mac handy and i know some of you will know this off the top of > your head. many thanks. > > seeing this in the requests for contributions .... > > https://quality.livecode.com/show_bug.cgi?id=20993 > > and posts that talk about it working..... > > Which is true? > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 24 12:07:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 24 Oct 2018 16:07:53 +0000 Subject: Sorting search results - solution needed In-Reply-To: <3CEE2EA4-CFDD-4DFC-BDCA-3F828283A121@iotecdigital.com> References: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> <849FFB1E-1DC1-44F4-B9C5-054466DB48A6@iotecdigital.com> <3CEE2EA4-CFDD-4DFC-BDCA-3F828283A121@iotecdigital.com> Message-ID: I should have said, in the loop keep adding a character until the value is no longer a number, then sort numeric by the last value. Bob S > On Oct 23, 2018, at 14:14 , Bob Sneidar via use-livecode wrote: > > This of course cannot be a numeric sort. I would create a loop and start with 1 digit, then see if the value div the value = the value (in a try catch loop). Once you get an error or false, break out the integer portion, pad it with the appropriate number of trailing zeros, then append the rest. From bodine at bodinetraininggames.com Wed Oct 24 12:13:54 2018 From: bodine at bodinetraininggames.com (tbodine) Date: Wed, 24 Oct 2018 11:13:54 -0500 (CDT) Subject: [ANN] Network Tracer In-Reply-To: References: Message-ID: <1540397634312-0.post@n4.nabble.com> Congratulations on this release, Andre. This looks very useful. I have a (probably dumb) question... Are your products, such as AAG Tools, only for use in the IDE, or can tools such as TypeTool be used in standalone builds? Thanks, Tom Bodine -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From matthias_livecode_150811 at m-r-d.de Wed Oct 24 14:09:40 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 24 Oct 2018 20:09:40 +0200 Subject: is anyone able to use fileDSN for ODBC connections in LC? Message-ID: Hi, i am not able to use fileDSN for ODBC connections to a SQL server in LC Windows. Under Mac i did not test it already. With fileDSN you define all the odbc settings/parameters in a file with the suffix .dsn. When connecting using ODBC you can then use that dsn file. No need to setup an ODBC configuration. Is anyone using it with success? I?ve setup the fileDSN correctly in ODBC Manager in Windows to use the folder "c:\users\matthias\documents" as fileDSN folder The folder contains a file test.dsn In LC Windows i tried to connect with a connection string, but getting different errors. with get revOpenDatabase("ODBC","FILEDSN=c:\users\matthias\documents\test.dsn",,,) i am getting this error: [Microsoft][ODBC Driver Manager] Ung?ltige Zeichenfolgen- oder Pufferl?nge In English something like this: Invalid string or buffer length with get revOpenDatabase("ODBC","FILEDSN=test.dsn",,,) i am getting this error: [Microsoft][ODBC Driver Manager] Der Datenquellenname wurde nicht gefunden, und es wurde kein Standardtreiber angegeben In english something like this: The data source could not be found and there was not default driver defined and using the normal way using a DSN, where the dsn is the name of the fileDSN get revopendatabase("ODBC","test",,"matthias","mypassword") Error: [Microsoft][ODBC Driver Manager] Der Datenquellenname wurde nicht gefunden, und es wurde kein Standardtreiber angegeben In english something like this: The data source could not be found and there was not default driver defined Before i file a bug report about it i want to make sure, that no one is successfully using fileDSN. Regards Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de From andre at andregarzia.com Wed Oct 24 14:49:47 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Wed, 24 Oct 2018 19:49:47 +0100 Subject: [ANN] Network Tracer In-Reply-To: <1540397634312-0.post@n4.nabble.com> References: <1540397634312-0.post@n4.nabble.com> Message-ID: <48e8470d-9b5c-3370-b58c-8d943ed10e87@andregarzia.com> Dear Tom, The TypeTool mostly acts on the "the selobj" so unless you start changing the scripts, it won't make much sense on a standalone. On the other hand, all the stacks are unlocked and you have access to the full source. You can pick the code from it and patch it to your own needs. For a standalone, I think the best solution is just to edit a copy of the TypeTool stack until it suits your needs. Cheers andre On 10/24/2018 5:13 PM, tbodine via use-livecode wrote: > Congratulations on this release, Andre. This looks very useful. > > I have a (probably dumb) question... Are your products, such as AAG Tools, > only for use in the IDE, or can tools such as TypeTool be used in standalone > builds? > > Thanks, > Tom Bodine > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Wed Oct 24 14:49:47 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Wed, 24 Oct 2018 19:49:47 +0100 Subject: [ANN] Network Tracer In-Reply-To: <1540397634312-0.post@n4.nabble.com> References: <1540397634312-0.post@n4.nabble.com> Message-ID: <48e8470d-9b5c-3370-b58c-8d943ed10e87@andregarzia.com> Dear Tom, The TypeTool mostly acts on the "the selobj" so unless you start changing the scripts, it won't make much sense on a standalone. On the other hand, all the stacks are unlocked and you have access to the full source. You can pick the code from it and patch it to your own needs. For a standalone, I think the best solution is just to edit a copy of the TypeTool stack until it suits your needs. Cheers andre On 10/24/2018 5:13 PM, tbodine via use-livecode wrote: > Congratulations on this release, Andre. This looks very useful. > > I have a (probably dumb) question... Are your products, such as AAG Tools, > only for use in the IDE, or can tools such as TypeTool be used in standalone > builds? > > Thanks, > Tom Bodine > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Wed Oct 24 14:54:45 2018 From: andre at andregarzia.com (Andre Alves Garzia) Date: Wed, 24 Oct 2018 19:54:45 +0100 Subject: [ANN] Network Tracer In-Reply-To: <046763C5-E78F-409D-9E4A-A921633EFECF@iotecdigital.com> References: <046763C5-E78F-409D-9E4A-A921633EFECF@iotecdigital.com> Message-ID: <666c81c2-1e57-f249-a798-6ee8fff5883e@andregarzia.com> Bob, It is a joke but it is also true :-) For example, in the Network Tracer stack there is code to avoid showing duplicate messages because here on my home network, all the datagrams are arriving three times. So a single "ntInfo" call on a standalone amounted to three datagrams with the same message arriving on the dashboard. But arriving multiple times is better than not arriving, which also happens. I am considering in the near future going like my "decentralization talk on LC Global" and use UDP for peer discovery and TCP for sending actual data, it is just that UDP is sooooo convenient and for this simple debugging purpose it is quite adequate. Anyway, we'll see how the feedback goes and change as needed. For my own personal usage it is going great. Cheers On 10/24/2018 3:23 PM, Bob Sneidar via use-livecode wrote: > Hah! I'm sure that was a joke but UDP is User Datagram Protocol. > > Bob S > > >> On Oct 23, 2018, at 15:27 , Andre Alves Garzia via use-livecode wrote: >> >> Hi Everyone, >> >> It is with a lot of excitement that I am here to announce a new plugin for LiveCode called Network Tracer. This is a zero-configuration plugin and library combination that creates a "networked log" experience to help you debug your LC solutions. >> >> To use it, you open the Dashboard stack in the IDE (you can add it to your plugins folder if you want) and then add the library stack (and start using it) from your stacks. Any call to the APIs provided will appear in the Dashboard stack provided that both the Dashboard and the standalone (or another IDE on another machine) are both in the same network (LAN, WIFI) and the your firewall is allowing incoming connections on port 8001 (should just work). >> >> I've prepared a nice video for you to check out: >> >> https://vimeo.com/296722452 >> >> And also a page about it: >> >> http://andregarzia.com/livecode/networktracer.html >> >> The plugin costs GBP 40 and it has the potential to really speed up your development, just watch the video to be amazed. Also, I've made a bundle of my DB Lib, some of my other tools and the Network Tracer for GBP 100, all that information is on the hyperlink above. >> >> I hope you're all as excited to check it out as I am to provide this new tool for the community. >> >> Cheers >> >> andre > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Oct 24 14:59:51 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 24 Oct 2018 11:59:51 -0700 Subject: Sorting search results - solution needed In-Reply-To: References: <675A4B38-E70E-4597-8AE2-5EAFB32370C5@copware.com> <849FFB1E-1DC1-44F4-B9C5-054466DB48A6@iotecdigital.com> <3CEE2EA4-CFDD-4DFC-BDCA-3F828283A121@iotecdigital.com> Message-ID: I think this comes pretty close to the requirement. It breaks the lines down into numeric/not numeric items, and then sorts from the least significant (rightmost) to most significant items. For each sort, sorts first by alpha, then numeric. That results in letters being sorted before numbers, which seemed wrong for this application, so I added the returnOnlyNumbers function that (nearly) guarantees letters sorting after numbers. If the parenthesis etc. gets in the way, then removing them from the sort could be done by building an array mapping the original list to the sort keys, and then sorting on a function that returns the appropriate sort key. But for now this seems pretty close. function sortByAlternateNumericItems lineList,D -- takes a line list and a delimiter D that must not be in the lineList -- breaks each line down into numeric/non-numeric items -- then sorts by the items, from least significant (rightmost) to most significant. -- for each sort, sorts first by alpha, then numeric, so numbers sort before letters if D is in lineList then answer warning D && "is in the list" with cancel exit to top end if put 0 into maxItems repeat for each line L in lineList put numericItems(L,D) into newL get the number of items of newL if it > maxItems then put it into maxItems put newL & cr after R end repeat delete char -1 of R set the itemDel to D repeat with i = maxItems down to 1 sort lines of R by item i of each sort lines of R numeric by returnOnlyNumbers(item i of each) end repeat replace D with empty in R return R end sortByAlternateNumericItems function returnOnlyNumbers N if N is a number then return N else return 999999999999999 end returnOnlyNumbers function numericItems S,D -- returns the string S broken into number/not-number items, delimited by D -- D must be chosen so that it does not occur in S if D is in S then answer warning D && "is in" && S with cancel exit to top end if put char 1 of S is a number into isNum put 1 into B repeat with E = 2 to length(S) if isNum then if (char B to E of S is a number) then next repeat put (char B to E - 1 of S) & D after R put E into B put false into isNum else if char B to E of S is a number then put true into isNum else repeat with NB = B + 1 to E if char NB to E of S is not a number then next repeat put (char B to NB - 1 of S) & D after R put NB into B put true into isNum exit repeat end repeat end if end repeat return R & char B to E of S end numericItems This sorts this list: 187 187.01 187.02 187.1 187.22 187.234 187.3 187.33 187.456 10187 18700 187 (a) 187 (b) 187 (b)(1) 187 (a)(1) 187.1.1 187.1.2 187.c 187a 187c 187 a 187 1 1 a c b to this: 1 187 187a 187c 187 1 187 (a) 187 (a)(1) 187 (b) 187 (b)(1) 187 a 187.c 187.01 187.02 187.1.1 187.1.2 187.1 187.22 187.234 187.3 187.33 187.456 10187 18700 a b c On Wed, Oct 24, 2018 at 9:08 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I should have said, in the loop keep adding a character until the value is > no longer a number, then sort numeric by the last value. > > Bob S > > > > On Oct 23, 2018, at 14:14 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > This of course cannot be a numeric sort. I would create a loop and start > with 1 digit, then see if the value div the value = the value (in a try > catch loop). Once you get an error or false, break out the integer portion, > pad it with the appropriate number of trailing zeros, then append the rest. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From Bernd.Niggemann at uni-wh.de Wed Oct 24 16:27:41 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Wed, 24 Oct 2018 20:27:41 +0000 Subject: Sorting search results - solution needed In-Reply-To: References: Message-ID: <3E6F5F16-F45B-430B-B287-FC981DDA2471@uni-wh.de> here is my take, clumsy and not respecting all formatting requirements Instead of 187.1 187.1.1 187.1.2 187.3 187.22 187.33 187.234 it sorts 187.1 187.1.1 187.1.2 187.22 187.234 187.3 187.33 Kind regards Bernd ----------------------------------------------- on mouseUp put field "fAlpha" into tData put "" into msg sort tData numeric by specialSort(each) put tData into field "fSort" end mouseUp function specialSort pEach put pEach into tData --put word 1 to -1 of tData into tData put "0,1,2,3,4,5,6,7,8,9,." into tNumbers -- check for double colon like in 187.1.2 put 0 into tSkip put 0 into tCounter repeat put offset(".", tData, tSkip) into tOffset if tOffset > 0 then add tOffset to tSkip add 1 to tCounter else exit repeat end if end repeat if tCounter > 1 then --put tData && tCounter & cr after msg put empty into char tSkip of tData return tData end if repeat with i = 1 to the number of chars of tData if char i of tData is among the items of tNumbers then put char i of tData after tNumberPart else exit repeat end if end repeat if tData = tNumberPart then return tNumberPart end if put length(tNumberPart) into tLength put char tLength + 1 to - 1 of tData into tRest if char tLength of tNumberPart = "." then put "." before tRest replace ")" with empty in tRest replace space with empty in tRest put toUpper(tRest) into tRest put true into tLeftBracket put 0 into tDecimal repeat with i = 1 to the number of chars of tRest put char i of tRest into tChar if tChar is a Number then add tChar * .00001 to tDecimal else if tChar is "(" then if tLeftBracket then add .0000001 to tDecimal put false into tLeftBracket end if else if tChar is "." then -- ASCII "." = 46 add .00001 to tDecimal else if charToNum(tChar) >= 65 then -- ASCII "A" = 65 add (charToNum(tChar)-64) * .00009 to tDecimal end if end repeat return tNumberPart + tDecimal end specialSort ----------------------------------------------------- From dougr at telus.net Wed Oct 24 17:10:28 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Wed, 24 Oct 2018 14:10:28 -0700 Subject: use-livecode Digest, Vol 181, Issue 33 In-Reply-To: F3kzg7O6Y7nW7F3l5gepqF References: F3kzg7O6Y7nW7F3l5gepqF Message-ID: <159b01d46bdd$ff02e030$fd08a090$@net> Thanks for the reply, Klaus... but I'm sure we all agree this is totally non-intuitive. However, using this call in my openStack script does two negative things: 1) least important but somewhat self-defeating to my "goal", this now opens the Project Browser right on top of my app in some default height and width. As a result I have to move it over to the side and adjust the size. If I just open the Project Browser via the LC tools, it opens in the same position and size as to the last saved stack. 2) more importantly, after allowing this code to execute within my app, I went to create my standalone version and found that all of the Saved Standalone Application Settings were GONE! and the setting had reverted back to the default ones for a brand-new stack. Luckily, by not saving the stack at that point and commenting out that call, the settings came back .. whew! This was on LC Business v8.1.9 on Windows 7 enterprise SP1. There are a series of Project Browser related livecodescript files in (my install): C:\Program Files (x86)\RunRev\LiveCode Business 8.1.9\Toolset however none of them seem to (directly) reference any Standalone functionality. ... Back to using the LC tools option. thanks! Douglas Ruisaard Trilogy Software (250) 573-3935 > Hi Douglas, > > > Am 23.10.2018 um 20:31 schrieb Douglas Ruisaard via use-livecode : > > > > Is there a way to start/open the "Project Browser" (from the main LC Tools menu) using a script > command for LC v8 and above? > > this works, go figure :-D > ... > go stack "revIDEProjectBrowser" > ... > > > ... > > > > Douglas Ruisaard > > Trilogy Software > > (250) 573-3935 > > Best > > Klaus From dougr at telus.net Wed Oct 24 17:39:11 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Wed, 24 Oct 2018 14:39:11 -0700 Subject: jsonImport or JSONToArray In-Reply-To: FBFOg9ZgS7nW7FBFTgglj8 References: FBFOg9ZgS7nW7FBFTgglj8 Message-ID: <159c01d46be2$01ad42e0$0507c8a0$@net> I'll drink to THAT!! .. but then again, I'll drink to almost anything! ... coffee... what were you thinking? but seriously, it's a fine idea... particularly as I got blind-sided by finding an irrelevant inclusion (JSON Library) when I needed the mergJSON one.... and the inclusions are NOT even in alphabetical order. Douglas Ruisaard Trilogy Software (250) 573-3935 > > > > On 24 Oct 2018, at 10:04 am, Andre Alves Garzia via use-livecode > wrote: > > > > As you folks may have seen earlier today, I've shipped a new product here on the list. While I was > building the demo stack for this plugin, I had the same problem as you describe. In my case it boiled > down to the automatic inclusions not working, I ended up needing to do manual inclusions and then it > worked. > > Yes, we still need to add the inclusions search for many things. I would really like to get rid of the > choice of one or the other and just have a button on the inclusions pane to run a search. This would > be particularly handy for speeding up builds if we are suddenly looking for many more things! > > Cheers > > Monte > From Bernd.Niggemann at uni-wh.de Wed Oct 24 17:50:07 2018 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Wed, 24 Oct 2018 21:50:07 +0000 Subject: starting the Project Browser In-Reply-To: References: Message-ID: <145A7A83-ED44-4E47-9A69-3B7D249AE16C@uni-wh.de> Hi, does this help? revIDETogglePalette "Project Browser" you can test if the Project Browser is visible put revIDEPaletteIsVisible("project browser") Kind regards Bernd From ahsoftware at sonic.net Wed Oct 24 20:14:17 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 24 Oct 2018 17:14:17 -0700 Subject: use-livecode Digest, Vol 181, Issue 33 In-Reply-To: <159b01d46bdd$ff02e030$fd08a090$@net> References: <159b01d46bdd$ff02e030$fd08a090$@net> Message-ID: <7c39a66f-a3c9-c93b-5eb3-2efe0417d07b@sonic.net> On 10/24/2018 02:10 PM, Douglas Ruisaard via use-livecode wrote: > Thanks for the reply, Klaus... but I'm sure we all agree this is totally non-intuitive. However, using this call in my openStack script does two negative things: > > 1) least important but somewhat self-defeating to my "goal", this now opens the Project Browser right on top of my app in some default height and width. As a result I have to move it over to the side and adjust the size. If I just open the Project Browser via the LC tools, it opens in the same position and size as to the last saved stack. > > 2) more importantly, after allowing this code to execute within my app, I went to create my standalone version and found that all of the Saved Standalone Application Settings were GONE! and the setting had reverted back to the default ones for a brand-new stack. Luckily, by not saving the stack at that point and commenting out that call, the settings came back .. whew! I'm probably misunderstanding what you're trying to do, but a couple of observations: 1. if you open the PB and then set the loc of it, both in your openStack (or preOpenStack) handler, then the browser should appear where you tell it to. 2. trying to do this in a standalone app is bound to fail. The PB is part if the LiveCode IDE, and thus a separate application from your standalone. If you really need to launch the browser in the IDE then you'll need to set up a means of communication between the two. Most probably socket communication via a plugin stack, but ymmv. -- Mark Wieder ahsoftware at gmail.com From terry.judd at unimelb.edu.au Thu Oct 25 01:55:55 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 25 Oct 2018 05:55:55 +0000 Subject: Finding common words and phrases in a large block of text? Message-ID: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> Hi ? I?m looking to analyse some large block of text (journal abstracts from key educational technology journals over a several year period) to find common words and phrases. Finding common words should be easy enough but I?m not clear on what approach to take for finding common phrases (iterating through the text capturing overlapping word runs of various lengths?). Any ideas on how best to proceed? TIA, Terry... From terry.judd at unimelb.edu.au Thu Oct 25 04:25:13 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 25 Oct 2018 08:25:13 +0000 Subject: Finding common words and phrases in a large block of text? In-Reply-To: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> References: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> Message-ID: <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> OK - was easier than I thought. I have something that works fast enough by iterating through runs of words in each sentence in a block of text, incrementing counts into an array and then sorting the contents of that array by phrase length and frequency. Terry... ?On 25/10/2018 4:56 pm, "use-livecode on behalf of Terry Judd via use-livecode" wrote: Hi ? I?m looking to analyse some large block of text (journal abstracts from key educational technology journals over a several year period) to find common words and phrases. Finding common words should be easy enough but I?m not clear on what approach to take for finding common phrases (iterating through the text capturing overlapping word runs of various lengths?). Any ideas on how best to proceed? TIA, Terry... _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From scott at copware.com Thu Oct 25 12:43:12 2018 From: scott at copware.com (Scott Seward) Date: Thu, 25 Oct 2018 16:43:12 +0000 Subject: Sorting search results - solution needed In-Reply-To: <3E6F5F16-F45B-430B-B287-FC981DDA2471@uni-wh.de> References: <3E6F5F16-F45B-430B-B287-FC981DDA2471@uni-wh.de> Message-ID: <9F8D1D27-E9C9-4CFF-BBB3-31B950ADFEFE@copware.com> Hey guys, thanks for all the possible solutions. I'm sure somewhere in here I'll get it to do what I need. Special thanks to those that wrote code. Much appreciate it! Scott ?On 10/24/18, 1:28 PM, "use-livecode on behalf of Niggemann, Bernd via use-livecode" wrote: here is my take, clumsy and not respecting all formatting requirements Instead of 187.1 187.1.1 187.1.2 187.3 187.22 187.33 187.234 it sorts 187.1 187.1.1 187.1.2 187.22 187.234 187.3 187.33 Kind regards Bernd ----------------------------------------------- on mouseUp put field "fAlpha" into tData put "" into msg sort tData numeric by specialSort(each) put tData into field "fSort" end mouseUp function specialSort pEach put pEach into tData --put word 1 to -1 of tData into tData put "0,1,2,3,4,5,6,7,8,9,." into tNumbers -- check for double colon like in 187.1.2 put 0 into tSkip put 0 into tCounter repeat put offset(".", tData, tSkip) into tOffset if tOffset > 0 then add tOffset to tSkip add 1 to tCounter else exit repeat end if end repeat if tCounter > 1 then --put tData && tCounter & cr after msg put empty into char tSkip of tData return tData end if repeat with i = 1 to the number of chars of tData if char i of tData is among the items of tNumbers then put char i of tData after tNumberPart else exit repeat end if end repeat if tData = tNumberPart then return tNumberPart end if put length(tNumberPart) into tLength put char tLength + 1 to - 1 of tData into tRest if char tLength of tNumberPart = "." then put "." before tRest replace ")" with empty in tRest replace space with empty in tRest put toUpper(tRest) into tRest put true into tLeftBracket put 0 into tDecimal repeat with i = 1 to the number of chars of tRest put char i of tRest into tChar if tChar is a Number then add tChar * .00001 to tDecimal else if tChar is "(" then if tLeftBracket then add .0000001 to tDecimal put false into tLeftBracket end if else if tChar is "." then -- ASCII "." = 46 add .00001 to tDecimal else if charToNum(tChar) >= 65 then -- ASCII "A" = 65 add (charToNum(tChar)-64) * .00009 to tDecimal end if end repeat return tNumberPart + tDecimal end specialSort ----------------------------------------------------- _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Thu Oct 25 12:47:46 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Thu, 25 Oct 2018 09:47:46 -0700 Subject: starting the Project Browser In-Reply-To: FYcygU5eODhAwFYd4gBoMf References: FYcygU5eODhAwFYd4gBoMf Message-ID: <15f201d46c82$7670cfc0$63526f40$@net> thanks for the reply... as I mentioned, the location/sizing thing was the less important issue. I didn't explain the standalone issue well enough. I had the call to the rev-stack within a "if environment is development" condition, so a standalone compile would have ignored the goto ... it was the fact that when this call executed BEFORE trying to generate a standalone, i.e. running the code from the IDE, that it wiped out my standalone setting. If I had saved the stack without noticing this fact, then I would have lost all of those settings (which were fundamental to my app working!) So, the issue was not DIRECTLY involved with the "generation" of the standalone, it was the issue that using this call set the standalone setting back to a "new-stack" default! Douglas Ruisaard Trilogy Software (250) 573-3935 > > On 10/24/2018 02:10 PM, Douglas Ruisaard via use-livecode wrote: > > Thanks for the reply, Klaus... but I'm sure we all agree this is totally non-intuitive. However, > using this call in my openStack script does two negative things: > > > > 1) least important but somewhat self-defeating to my "goal", this now opens the Project Browser > right on top of my app in some default height and width. As a result I have to move it over to the > side and adjust the size. If I just open the Project Browser via the LC tools, it opens in the same > position and size as to the last saved stack. > > > > 2) more importantly, after allowing this code to execute within my app, I went to create my > standalone version and found that all of the Saved Standalone Application Settings were GONE! and the > setting had reverted back to the default ones for a brand-new stack. Luckily, by not saving the stack > at that point and commenting out that call, the settings came back .. whew! > > I'm probably misunderstanding what you're trying to do, but a couple of > observations: > > 1. if you open the PB and then set the loc of it, both in your openStack (or preOpenStack) handler, > then the browser should appear where you tell it to. > > 2. trying to do this in a standalone app is bound to fail. The PB is part if the LiveCode IDE, and > thus a separate application from your standalone. If you really need to launch the browser in the IDE > then you'll need to set up a means of communication between the two. Most probably socket > communication via a plugin stack, but ymmv. > > -- > Mark Wieder > ahsoftware at gmail.com > > From dougr at telus.net Thu Oct 25 13:10:29 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Thu, 25 Oct 2018 10:10:29 -0700 Subject: starting the Project Browser In-Reply-To: FYcygU5eODhAwFYd4gBoMf References: FYcygU5eODhAwFYd4gBoMf Message-ID: <15f601d46c85$a2d9cd20$e88d6760$@net> Brilliant!!! ... works perfectly when combined with a "set loc" and "set rect" call. Doesn't touch the standalone settings! Thanks so much! Douglas Ruisaard Trilogy Software (250) 573-3935 > > Hi, > > does this help? > > revIDETogglePalette "Project Browser" > > you can test if the Project Browser is visible > > put revIDEPaletteIsVisible("project browser") > > Kind regards > Bernd > > From tom at makeshyft.com Thu Oct 25 13:26:23 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 25 Oct 2018 13:26:23 -0400 Subject: Finding common words and phrases in a large block of text? In-Reply-To: <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> References: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> Message-ID: Hi Terry, glad you found a solution..... I have a similar challenge. I did a word count, but would love to recognize the same phrases. Did you just compare chunks? ... hash them? (probably redundant?) Are there any more hints you can drop about this? Thanks, Tom On Thu, Oct 25, 2018 at 4:27 AM Terry Judd via use-livecode < use-livecode at lists.runrev.com> wrote: > OK - was easier than I thought. I have something that works fast enough by > iterating through runs of words in each sentence in a block of text, > incrementing counts into an array and then sorting the contents of that > array by phrase length and frequency. > > Terry... > > ?On 25/10/2018 4:56 pm, "use-livecode on behalf of Terry Judd via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Hi ? I?m looking to analyse some large block of text (journal > abstracts from key educational technology journals over a several year > period) to find common words and phrases. Finding common words should be > easy enough but I?m not clear on what approach to take for finding common > phrases (iterating through the text capturing overlapping word runs of > various lengths?). Any ideas on how best to proceed? > > TIA, > > Terry... > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Thu Oct 25 13:29:45 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 25 Oct 2018 12:29:45 -0500 Subject: starting the Project Browser In-Reply-To: <15f201d46c82$7670cfc0$63526f40$@net> References: FYcygU5eODhAwFYd4gBoMf <15f201d46c82$7670cfc0$63526f40$@net> Message-ID: <166ac465b40.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> You may also need to implement the workaround that accounts for a recent change in the standalone builder. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 25, 2018 11:49:36 AM Douglas Ruisaard via use-livecode wrote: > thanks for the reply... as I mentioned, the location/sizing thing was the > less important issue. I didn't explain the standalone issue well enough. > I had the call to the rev-stack within a "if environment is development" > condition, so a standalone compile would have ignored the goto ... it was > the fact that when this call executed BEFORE trying to generate a > standalone, i.e. running the code from the IDE, that it wiped out my > standalone setting. If I had saved the stack without noticing this fact, > then I would have lost all of those settings (which were fundamental to my > app working!) > > So, the issue was not DIRECTLY involved with the "generation" of the > standalone, it was the issue that using this call set the standalone > setting back to a "new-stack" default! > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > >> >> On 10/24/2018 02:10 PM, Douglas Ruisaard via use-livecode wrote: >> > Thanks for the reply, Klaus... but I'm sure we all agree this is totally >> non-intuitive. However, >> using this call in my openStack script does two negative things: >> > >> > 1) least important but somewhat self-defeating to my "goal", this now >> opens the Project Browser >> right on top of my app in some default height and width. As a result I >> have to move it over to the >> side and adjust the size. If I just open the Project Browser via the LC >> tools, it opens in the same >> position and size as to the last saved stack. >> > >> > 2) more importantly, after allowing this code to execute within my app, I >> went to create my >> standalone version and found that all of the Saved Standalone Application >> Settings were GONE! and the >> setting had reverted back to the default ones for a brand-new stack. >> Luckily, by not saving the stack >> at that point and commenting out that call, the settings came back .. whew! >> >> I'm probably misunderstanding what you're trying to do, but a couple of >> observations: >> >> 1. if you open the PB and then set the loc of it, both in your openStack >> (or preOpenStack) handler, >> then the browser should appear where you tell it to. >> >> 2. trying to do this in a standalone app is bound to fail. The PB is part >> if the LiveCode IDE, and >> thus a separate application from your standalone. If you really need to >> launch the browser in the IDE >> then you'll need to set up a means of communication between the two. Most >> probably socket >> communication via a plugin stack, but ymmv. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Oct 25 15:47:09 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 25 Oct 2018 12:47:09 -0700 Subject: is anyone able to use fileDSN for ODBC connections in LC? In-Reply-To: References: Message-ID: On 10/24/2018 11:09 AM, Matthias Rebbe via use-livecode wrote: > Hi, > i am not able to use fileDSN for ODBC connections to a SQL server in LC Windows. Under Mac i did not test it already. > > With fileDSN you define all the odbc settings/parameters in a file with the suffix .dsn. > When connecting using ODBC you can then use that dsn file. No need to setup an ODBC configuration. > > Is anyone using it with success? IIRC fileDSNs have always been a pain in Rev/LC. But here's a hint from David Simpson from 2013 that might help: put "DBQ=" & tAccessDBFilename & ";" & quote into tAccessPathname put revOpenDatabase("ODBC", tAccessPathname, , tDestDBUsername, tDestDBPassword) into tDestinationDBConnection -- Mark Wieder ahsoftware at gmail.com From terry.judd at unimelb.edu.au Thu Oct 25 17:07:07 2018 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 25 Oct 2018 21:07:07 +0000 Subject: Finding common words and phrases in a large block of text? In-Reply-To: References: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> Message-ID: <04191AA6-7454-4363-A74C-57974F41DBF0@unimelb.edu.au> On 26/10/2018 4:27 am, "use-livecode on behalf of Tom Glod via use-livecode" wrote: Hi Terry, glad you found a solution..... I have a similar challenge. I did a word count, but would love to recognize the same phrases. Did you just compare chunks? ... hash them? (probably redundant?) Are there any more hints you can drop about this? Thanks, Tom Hi Tom - I've just done something like the code below, which accepts a block of text and the maximum 'phrase' length as input and provides an array with sorted counts of word runs (so not necessarily sensible phrases) of different lengths as output. I think it will be good enough for my purposes. function getWordAndPhraseCounts pText, pMaxPhraseLength put empty into tA1 set the itemDel to tab repeat for each sentence tSentence in pText put the number of words in tSentence into tMax repeat with i = 1 to pMaxPhraseLength repeat with j = 1 to (tMax-i+1) put word j to j+i-1 of tSentence into tPhrase add 1 to tA1[i][tPhrase] end repeat end repeat end repeat put empty into tA2 repeat for each line tLength in the keys of tA1 put empty into tList repeat for each line tPhrase in the keys of tA1[tLength] put tPhrase&tab& tA1[tLength][tPhrase]&cr after tList end repeat delete last char of tList sort lines of tList descending numeric by item 2 of each put tList into tA2[tLength] end repeat return tA2 end getWordAndPhraseCounts On Thu, Oct 25, 2018 at 4:27 AM Terry Judd via use-livecode < use-livecode at lists.runrev.com> wrote: > OK - was easier than I thought. I have something that works fast enough by > iterating through runs of words in each sentence in a block of text, > incrementing counts into an array and then sorting the contents of that > array by phrase length and frequency. > > Terry... > > On 25/10/2018 4:56 pm, "use-livecode on behalf of Terry Judd via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Hi ? I?m looking to analyse some large block of text (journal > abstracts from key educational technology journals over a several year > period) to find common words and phrases. Finding common words should be > easy enough but I?m not clear on what approach to take for finding common > phrases (iterating through the text capturing overlapping word runs of > various lengths?). Any ideas on how best to proceed? > > TIA, > > Terry... > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 25 17:57:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Oct 2018 21:57:12 +0000 Subject: is anyone able to use fileDSN for ODBC connections in LC? In-Reply-To: References: Message-ID: <7B238ECE-88FB-4461-A81F-78AF5F30BF10@iotecdigital.com> That cannot be right. The result would be something like, DBQ=myFileName;" Eh? Bob S > On Oct 25, 2018, at 12:47 , Mark Wieder via use-livecode wrote: > > put "DBQ=" & tAccessDBFilename & ";" & quote into tAccessPathname From matthias_livecode_150811 at m-r-d.de Thu Oct 25 18:04:52 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 26 Oct 2018 00:04:52 +0200 Subject: is anyone able to use fileDSN for ODBC connections in LC? In-Reply-To: References: Message-ID: Thanks Mark, isn?t the DBQ parameter used when you want to access a file based Database like Access .mdb files? I tried it anyway, but added a "e before tAccessDBFilename, as it seems that was missing in your example. Still getting the buffer error [Microsoft][ODBC Driver Manager] Ung?ltige Zeichenfolgen- oder Pufferl?nge In English something like this: Invalid string or buffer length Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 25.10.2018 um 21:47 schrieb Mark Wieder via use-livecode : > > On 10/24/2018 11:09 AM, Matthias Rebbe via use-livecode wrote: >> Hi, >> i am not able to use fileDSN for ODBC connections to a SQL server in LC Windows. Under Mac i did not test it already. >> With fileDSN you define all the odbc settings/parameters in a file with the suffix .dsn. >> When connecting using ODBC you can then use that dsn file. No need to setup an ODBC configuration. >> Is anyone using it with success? > > IIRC fileDSNs have always been a pain in Rev/LC. > But here's a hint from David Simpson from 2013 that might help: > > put "DBQ=" & tAccessDBFilename & ";" & quote into tAccessPathname > > put revOpenDatabase("ODBC", tAccessPathname, , tDestDBUsername, tDestDBPassword) into tDestinationDBConnection > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 25 18:21:32 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Oct 2018 22:21:32 +0000 Subject: is anyone able to use fileDSN for ODBC connections in LC? In-Reply-To: References: Message-ID: <04A73AA1-8F0C-4588-AB97-B24409F7B436@iotecdigital.com> Re: [resolved] Microsoft - Driver Manager ODBC - Invalid string or buffer length Hi, Are you using 64 bit sql server 2014? Please take a look at an article about:http://stackoverflow.com/questions/26745417/invalid-string-or-buffer-length. Best regards Sabrina -- Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it. > On Oct 25, 2018, at 15:04 , Matthias Rebbe via use-livecode wrote: > > Thanks Mark, > > isn?t the DBQ parameter used when you want to access a file based Database like Access .mdb files? > > I tried it anyway, but added a "e before tAccessDBFilename, as it seems that was missing in your example. > Still getting the buffer error > > [Microsoft][ODBC Driver Manager] Ung?ltige Zeichenfolgen- oder Pufferl?nge > In English something like this: Invalid string or buffer length > > > Regards, > > Matthias From matthias_livecode_150811 at m-r-d.de Thu Oct 25 18:33:12 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 26 Oct 2018 00:33:12 +0200 Subject: is anyone able to use fileDSN for ODBC connections in LC? In-Reply-To: <04A73AA1-8F0C-4588-AB97-B24409F7B436@iotecdigital.com> References: <04A73AA1-8F0C-4588-AB97-B24409F7B436@iotecdigital.com> Message-ID: <058947DF-4535-4B7C-85A1-3D6210359CEF@m-r-d.de> As the same ODBC driver (Windows 10 SQL Server) works w/o a problem when using a user or system DSN connection, the driver should not be the problem. Regards, Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 26.10.2018 um 00:21 schrieb Bob Sneidar via use-livecode : > > Re: [resolved] Microsoft - Driver Manager ODBC - Invalid string or buffer length > > > > Hi, > Are you using 64 bit sql server 2014? Please take a look at an article about:http://stackoverflow.com/questions/26745417/invalid-string-or-buffer-length. > Best regards > Sabrina > -- > Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it. > > > >> On Oct 25, 2018, at 15:04 , Matthias Rebbe via use-livecode wrote: >> >> Thanks Mark, >> >> isn?t the DBQ parameter used when you want to access a file based Database like Access .mdb files? >> >> I tried it anyway, but added a "e before tAccessDBFilename, as it seems that was missing in your example. >> Still getting the buffer error >> >> [Microsoft][ODBC Driver Manager] Ung?ltige Zeichenfolgen- oder Pufferl?nge >> In English something like this: Invalid string or buffer length >> >> >> Regards, >> >> Matthias > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Oct 25 18:44:45 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 25 Oct 2018 22:44:45 +0000 Subject: fdfToArray function Message-ID: <5452F34A-C1D9-44A0-8805-E4D96FC50C9B@iotecdigital.com> Hi all. Anyone interested in getting data from, or putting data into an Acrobat Fillable Form will appreciate this. It parses an FDF file into an LC array. I have a companion function that takes an array (formatted properly of course) and creates an fdf file that a PDF form can use to populate itself (if configured to do so). This version can parse the data created by exporting from Adobe Acrobat, or the file produced by pdftk (which contains spaces and linefeeds for some unknown reason). There is no reason it shouldn't work with *any* properly formatted fdf file. Enjoy: function fdfToArray2 theFDFSource, theMode if theMode = "data" then -- create a temporary source file for the fdf data setDefaultFolder put the defaultfolder & "/" & "temp/FDF_Data.fdf" into theFDFFile open file theFDFFile for binary write write theFDFSource to file theFDFFile close file theFDFFile put theFDFFile into theFDFSource end if open file theFdfSource for binary read read from file theFdfSource until eof -- we will parse with LC close file theFdfSource put it into tFileData -- get the header put offset("<", tFileData) -1 into tHeaderEnd put char 1 to tHeaderEnd of tFileData into aFDFData ["header"] delete char 1 to tHeaderEnd of tFileData -- get the PDF filename (if any) -- note the filename must be present for a fillable form to auto-fill from the fdf file put offset("/f(", tFileData) into tFilenameFieldStart if tFilenameFieldStart >0 then put offset(")", tFileData) into tFilenameFieldEnd put char tFilenameFieldStart +3 to tFilenameFieldEnd -1 of tFileData into aFDFData ["filename"] else put empty into aFDFData ["filename"] end if -- extract the field data put offset("/Fields", tFileData) into tFieldStartPos if tFieldStartPos = 0 then return empty -- no field data put offSet("<<", tFileData, tFieldStartPos) + tFieldStartPos into tFieldStartPos put offset("endobj", tFileData) into tFieldEndPos put char tFieldStartPos to tFieldEndPos -1 of tFileData into tFieldData -- check for ID tag put offset("/ID[", tFieldData) into tIDStartPos if tIDStartPos > 0 then put offset("]", tFieldData, tIDStartPos) into tIDEndPos put char tIDStartPos +5 to tIDStartPos + tIDEndPos -2 of tFieldData into aFDFData ["ID"] delete char tIDStartPos to tIDStartPos + tIDEndPos of tFieldData else put empty into aFDFData ["ID"] end if -- check for end of file tag put offset("/UF(", tFieldData) into tEndFileTagStartPos if tEndFileTagStartPos >0 then put offset(")", tFieldData, tEndFileTagStartPos) into tEndFileTagEndPos delete char tEndFileTagStartPos -1 to -1 of tFieldData end if -- get the footer put offset("endObj", tFileData) into tFooterStartPos put char tFooterStartPos to -1 of tFileData into aFDFData ["footer"] delete char tFooterStartPos to -1 of tFileData -- clean up the field data replace "\" & cr with empty in tFieldData replace numToChar(10) with empty in tFieldData replace "/T " with "/T" in tFieldData replace "/V " with "/V" in tFieldData replace "/Kids [" with "/Kids[" in tFieldData replace ">> <<" with ">><<" in tFieldData replace "<<>>" with empty in tFieldData replace ">>>>" with ">>" in tFieldData -- Parse fillable control data -- table objects first (kids) put 0 into tPointer repeat put offset("/Kids[", tFieldData) into tKidsStartPos if tKidsStartPos = 0 then exit repeat put offset("]", tFieldData, tKidsStartPos) + tKidsStartPos into tKidsEndPos put char tKidsStartPos +6 to tKidsEndPos -1 of tFieldData into tKids put offset("/T(", tFieldData, tKidsEndPos) + tKidsEndPos into tLabelStartPos put offset(")", tFieldData, tLabelStartPos) + tLabelStartPos into tLabelEndPos put char tLabelStartPos +3 to tLabelEndPos-1 of tFieldData into tLabel delete char tKidsStartPos to tLabelEndPos of tFieldData -- kids loop repeat put offset("<<", tKids) into tThisKidStartPos put offset(">>", tKids) into tThisKidEndPos if tThisKidEndPos = 0 then exit repeat put char tThisKidStartPos to tThisKidEndPos +2 of tKids into tThisKid delete char 1 to tThisKidEndPos +1 of tKids -- parse this kid put offset("/T", tThisKid) into tElementStartPos put offset("(", tThisKid, tElementStartPos) + tElementStartPos into tElementStartPos put offset(")", tThisKid, tElementStartPos) + tElementStartPos into tElementEndPos put char tElementStartPos +1 to tElementEndPos -1 of tThisKid into tElement put offset("/V", tThisKid) into tValueStartPos put offset("(", tThisKid, tValueStartPos) + tValueStartPos into tValueStartPos put offset(")", tThisKid, tValueStartPos) + tValueStartPos into tValueEndPos put char tValueStartPos +1 to tValueEndPos -1 of tThisKid into tValue put tValue into aFDFData ["fields"] [tLabel] [tElement] end repeat end repeat -- other form objects loop replace "<<>>" with empty in tFieldData repeat put offset("<<", tFieldData) into tFieldStartPos if tFieldStartPos = 0 then exit repeat put offset(">>", tFieldData) into tFieldEndPos put char 3 to tFieldEndPos -1 of tFieldData into tThisField delete char 1 to tFieldEndPos +1 of tFieldData put offset("/T(", tThisField) +2 into tElementStartPos put offset(")", tThisField, tElementStartPos) + tElementStartPos into tElementEndPos put char tElementStartPos +1 to tElementEndPos -1 of tThisField into tElement put offset("/V(", tThisField) +2 into tValueStartPos put offset(")", tThisField, tValueStartPos) + tValueStartPos into tValueEndPos put char tValueStartPos +1 to tValueEndPos -1 of tThisField into tValue put tValue into aFDFData ["fields"] [tElement] end repeat if theMode = "data" then -- delete temporary file delete file theFDFFile end if return aFDFData end fdfToArray2 From neville.smythe at optusnet.com.au Thu Oct 25 21:05:52 2018 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 26 Oct 2018 12:05:52 +1100 Subject: RE setProp question Message-ID: <6B4B704B-1B75-4096-81D2-E89208205275@optusnet.com.au> Thanks for the replies about may setProp question a little while back. But no-one game me any info about the annoying problem I raised concerning windows under LC9 and it?s driving me nuts. To recap: new stacks (but not old stacks) and some engine windows such as for scripts and the dictionary open up with a second title bar just under the main one. The bar gives no extra information and apart from wasting space the only purpose seems to be to provide a way to iconise the window when it is dragged, reducing the window to a small square and then redisplaying it in sometimes strange places, like offscreen, and sometimes expanded to fill the whole screen with the bottom below the Mac dock so it is not resizable. I hadn?t noticed it in a dp release of LC9 so I presume it is an ?enhancement? in LC9.0.1; the stacks display as usual under LC8 [The question marks which will replace my quotes around the word enhancement are entirely appropriate]. So maybe you all see it. But does it really behave for you as it does for me ? every time the window opens it appears further up the screen by the width of the bar, and soon the top of the window disappears under the Mac menu bar, and so becomes uncloseable. With a small script in the 4DDevo tool I can now reposition and resize it with a single click but it remains a major annoyance when trying to manage screen real estate on a laptop. Surely there is a way to turn this thing off. Grrr! From brian at milby7.com Thu Oct 25 21:19:00 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 25 Oct 2018 20:19:00 -0500 Subject: RE setProp question In-Reply-To: <6B4B704B-1B75-4096-81D2-E89208205275@optusnet.com.au> References: <6B4B704B-1B75-4096-81D2-E89208205275@optusnet.com.au> Message-ID: <4264a954-78cd-42f3-ae53-9b0413abd98d@Spark> I believe this is an OS feature and not LiveCode. Mac added the ability to ?stack? windows which displays as a second title bar (which is tabs when multiple are stacked). I don?t have one of the new versions that have this feature, so I am not sure how to disable it. Thanks, Brian On Oct 25, 2018, 8:06 PM -0500, Neville Smythe via use-livecode , wrote: > Thanks for the replies about may setProp question a little while back. But no-one game me any info about the annoying problem I raised concerning windows under LC9 and it?s driving me nuts. > > To recap: new stacks (but not old stacks) and some engine windows such as for scripts and the dictionary open up with a second title bar just under the main one. The bar gives no extra information and apart from wasting space the only purpose seems to be to provide a way to iconise the window when it is dragged, reducing the window to a small square and then redisplaying it in sometimes strange places, like offscreen, and sometimes expanded to fill the whole screen with the bottom below the Mac dock so it is not resizable. I hadn?t noticed it in a dp release of LC9 so I presume it is an ?enhancement? in LC9.0.1; the stacks display as usual under LC8 [The question marks which will replace my quotes around the word enhancement are entirely appropriate]. > > So maybe you all see it. But does it really behave for you as it does for me ? every time the window opens it appears further up the screen by the width of the bar, and soon the top of the window disappears under the Mac menu bar, and so becomes uncloseable. With a small script in the 4DDevo tool I can now reposition and resize it with a single click but it remains a major annoyance when trying to manage screen real estate on a laptop. Surely there is a way to turn this thing off. Grrr! > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Thu Oct 25 21:29:40 2018 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 26 Oct 2018 12:29:40 +1100 Subject: setProp question - stacked windows Message-ID: Aha. My first thought was that it must be a Mac system ?feature? since the iconised version looked Mac-ish rather than LC-ish. But I hadn?t updated to Mojave, and I had just updated to LC9.0.1 and it didn?t affect LC8, so I deduced it was down to LC. Thanks Brian, you have given me a place to look for configuring this ?stacked widows? thingie. From tom at makeshyft.com Thu Oct 25 21:42:03 2018 From: tom at makeshyft.com (Tom Glod) Date: Thu, 25 Oct 2018 21:42:03 -0400 Subject: Finding common words and phrases in a large block of text? In-Reply-To: <04191AA6-7454-4363-A74C-57974F41DBF0@unimelb.edu.au> References: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> <04191AA6-7454-4363-A74C-57974F41DBF0@unimelb.edu.au> Message-ID: Hi Terry, I see, thanks for sharing your handler. I'm going to run it on some text and see the output. LC is sooo good with chunks.....I find it really fast as well. All the best, Tom On Thu, Oct 25, 2018 at 5:07 PM, Terry Judd via use-livecode < use-livecode at lists.runrev.com> wrote: > On 26/10/2018 4:27 am, "use-livecode on behalf of Tom Glod via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Hi Terry, glad you found a solution..... > > I have a similar challenge. > > I did a word count, but would love to recognize the same phrases. Did > you > just compare chunks? ... hash them? (probably redundant?) > > Are there any more hints you can drop about this? > > Thanks, > > Tom > > Hi Tom - I've just done something like the code below, which accepts a > block of text and the maximum 'phrase' length as input and provides an > array with sorted counts of word runs (so not necessarily sensible phrases) > of different lengths as output. I think it will be good enough for my > purposes. > > function getWordAndPhraseCounts pText, pMaxPhraseLength > put empty into tA1 > set the itemDel to tab > repeat for each sentence tSentence in pText > put the number of words in tSentence into tMax > repeat with i = 1 to pMaxPhraseLength > repeat with j = 1 to (tMax-i+1) > put word j to j+i-1 of tSentence into tPhrase > add 1 to tA1[i][tPhrase] > end repeat > end repeat > end repeat > put empty into tA2 > repeat for each line tLength in the keys of tA1 > put empty into tList > repeat for each line tPhrase in the keys of tA1[tLength] > put tPhrase&tab& tA1[tLength][tPhrase]&cr after tList > end repeat > delete last char of tList > sort lines of tList descending numeric by item 2 of each > put tList into tA2[tLength] > end repeat > return tA2 > end getWordAndPhraseCounts > > > On Thu, Oct 25, 2018 at 4:27 AM Terry Judd via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > OK - was easier than I thought. I have something that works fast > enough by > > iterating through runs of words in each sentence in a block of text, > > incrementing counts into an array and then sorting the contents of > that > > array by phrase length and frequency. > > > > Terry... > > > > On 25/10/2018 4:56 pm, "use-livecode on behalf of Terry Judd via > > use-livecode" > use-livecode at lists.runrev.com> wrote: > > > > Hi ? I?m looking to analyse some large block of text (journal > > abstracts from key educational technology journals over a several > year > > period) to find common words and phrases. Finding common words > should be > > easy enough but I?m not clear on what approach to take for finding > common > > phrases (iterating through the text capturing overlapping word runs > of > > various lengths?). Any ideas on how best to proceed? > > > > TIA, > > > > Terry... > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From neville.smythe at optusnet.com.au Thu Oct 25 23:49:53 2018 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 26 Oct 2018 14:49:53 +1100 Subject: tabbed windows in Mac - as setProp Message-ID: <402F7FC7-1B71-4517-98EA-302A2CF59394@optusnet.com.au> Well it seems the feature is ?tabbed? windows. It is a feature of High Sierra. However for non-Apple apps it has to be implemented by the third party, and in this case I think the LC implementation is faulty. I can add windows to the tabs, but not remove the last tab.There is supposed to be a menu item in the Windows menu to turn the feature on and off, but it?s not there. I can?t turn it off and I have no idea how it got turned on, presumably a combination of option keys while the cat was walking across the keyboard. Yesterday upon the stair I met a man who wasn?t there ? I wish, I wish he?d go away. From keith.clarke at me.com Fri Oct 26 07:21:33 2018 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 26 Oct 2018 12:21:33 +0100 Subject: How to find true words that start with a capital letter? Message-ID: Folks, What is the most efficient way to search for trueWords starting with a capital letter? Is there anything more direct than something like... repeat for each true word tWord in tContainer If char 1 of tWord is among the codePoints of tUnicodeLetters // a variable containing A-Z then put tWord into tCapitalised end repeat Thanks & regards, Keith From merakosp at gmail.com Fri Oct 26 07:59:40 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 26 Oct 2018 14:59:40 +0300 Subject: How to find true words that start with a capital letter? In-Reply-To: References: Message-ID: Hello Keith, Does this work? set the casesensitive to true if char 1 of tWord is toUpper(char 1 of tWord) then answer "Found Uppercase" end if Best, Panos -- On Fri, Oct 26, 2018 at 2:22 PM Keith Clarke via use-livecode < use-livecode at lists.runrev.com> wrote: > Folks, > What is the most efficient way to search for trueWords starting with a > capital letter? > > Is there anything more direct than something like... > > repeat for each true word tWord in tContainer > > If char 1 of tWord is among the codePoints of tUnicodeLetters // a > variable containing A-Z > then put tWord into tCapitalised > > end repeat > > Thanks & regards, > Keith > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dougr at telus.net Fri Oct 26 12:20:45 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Fri, 26 Oct 2018 09:20:45 -0700 Subject: starting the Project Browser In-Reply-To: FqmZgBVKzy5tHFqmegACfR References: FqmZgBVKzy5tHFqmegACfR Message-ID: <164101d46d47$dbc121c0$93436540$@net> Thanks, Jacqueline. I have not had any issues with using the StandAlone builder but then I am using LC v8.1.9. on Windows 7. I did put Panos's code into my app ... made no apparent difference but good to have there anyway. I'm a bit confused about the reference to "Similar in all other (pre)open*/close* messages." ... what is being recommended here (I get the "preOpen" bit) .. but the reference to the "close" I don't get ... some other function call?? Douglas Ruisaard Trilogy Software (250) 573-3935 > > You may also need to implement the workaround that accounts for a recent change in the standalone > builder. > > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com > On October 25, 2018 11:49:36 AM Douglas Ruisaard via use-livecode > wrote: > > > thanks for the reply... as I mentioned, the location/sizing thing was > > the less important issue. I didn't explain the standalone issue well enough. > > I had the call to the rev-stack within a "if environment is development" > > condition, so a standalone compile would have ignored the goto ... it > > was the fact that when this call executed BEFORE trying to generate a > > standalone, i.e. running the code from the IDE, that it wiped out my > > standalone setting. If I had saved the stack without noticing this > > fact, then I would have lost all of those settings (which were > > fundamental to my app working!) > > > > So, the issue was not DIRECTLY involved with the "generation" of the > > standalone, it was the issue that using this call set the standalone > > setting back to a "new-stack" default! > > > > Douglas Ruisaard > > Trilogy Software > > (250) 573-3935 > > From dvglasgow at gmail.com Fri Oct 26 13:27:44 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 26 Oct 2018 18:27:44 +0100 Subject: Numbering lines In-Reply-To: References: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> <04191AA6-7454-4363-A74C-57974F41DBF0@unimelb.edu.au> Message-ID: <32A12644-1211-4613-A050-CD106C83C932@gmail.com> Hello folks I am doing a content analysis of online chat and messaging. Sometimes very large files, thousands or even hundreds of thousands of messages. I am finding filter and find to be delightfully fast. However?. Sometimes I want to prefix each line with the line number, and do this: put 1 into tcount repeat for each line j in it put tcount & j into line tcount of it put tcount + 1 into tcount set the thumbpos of scrollbar "filterprog" to tcount end repeat put it into field ?numberedtext? I use ?it? because of a dim memory (superstition? Myth?) from long ago that it is faster than an arbitrarily named variable. Still, the whole process is pretty darned slow. Any brilliant suggestions? Best Wishes, David Glasgow From mark.h at canelasoftware.com Fri Oct 26 13:41:38 2018 From: mark.h at canelasoftware.com (Mark Hsu) Date: Fri, 26 Oct 2018 10:41:38 -0700 Subject: Numbering lines In-Reply-To: <32A12644-1211-4613-A050-CD106C83C932@gmail.com> References: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> <04191AA6-7454-4363-A74C-57974F41DBF0@unimelb.edu.au> <32A12644-1211-4613-A050-CD106C83C932@gmail.com> Message-ID: <3DA7DBD1-CB63-45A3-A7EA-2C8818D22B59@canelasoftware.com> I think your issue is where you say ?put tcount & j into line tcount of it? ? The line X of ? call is very slow as it has to count every line from 1 - X. try this: local tBuffer put 1 into tCount repeat for each line j in pText put tCount & j & lf after tBuffer add 1 to tCount set the thumbpos of scrollbar ?filterprog? to tCount end repeat delete line -1 of tBuffer put tBuffer into pText //If you want to update the initial variable with the numbered lines put tBuffer into field ?numberedtext" - Mark Hsu > On Oct 26, 2018, at 10:27 AM, David V Glasgow via use-livecode wrote: > > Hello folks > > I am doing a content analysis of online chat and messaging. Sometimes very large files, thousands or even hundreds of thousands of messages. I am finding filter and find to be delightfully fast. > > However?. Sometimes I want to prefix each line with the line number, and do this: > > put 1 into tcount > repeat for each line j in it > put tcount & j into line tcount of it > put tcount + 1 into tcount > set the thumbpos of scrollbar "filterprog" to tcount > end repeat > put it into field ?numberedtext? > > I use ?it? because of a dim memory (superstition? Myth?) from long ago that it is faster than an arbitrarily named variable. Still, the whole process is pretty darned slow. Any brilliant suggestions? > > > Best Wishes, > David Glasgow > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Oct 26 14:07:40 2018 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 26 Oct 2018 19:07:40 +0100 Subject: How to find true words that start with a capital letter? In-Reply-To: References: Message-ID: <0fc5feae-9d1d-08e1-c70f-201d892e525f@tweedly.net> You say "... containing A-Z" Are you really using unicode ? Or is it really just ASCII ? if so, you could do ?? put char 1 of tWord into temp ?? if 65 <= temp AND temp <= 90 then ... Alex. On 26/10/2018 12:21, Keith Clarke via use-livecode wrote: > Folks, > What is the most efficient way to search for trueWords starting with a capital letter? > > Is there anything more direct than something like... > > repeat for each true word tWord in tContainer > > If char 1 of tWord is among the codePoints of tUnicodeLetters // a variable containing A-Z > then put tWord into tCapitalised > > end repeat > > Thanks & regards, > Keith > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Oct 26 15:14:47 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 26 Oct 2018 14:14:47 -0500 Subject: starting the Project Browser In-Reply-To: <164101d46d47$dbc121c0$93436540$@net> References: <164101d46d47$dbc121c0$93436540$@net> Message-ID: <79385d29-d5d6-32cf-73c9-a46e1d2ec42f@hyperactivesw.com> It's referring to all engine messages that contain either "open" or "close", so: preOpenStack preOpenBackground preOpenCard ...etc openStack openBackground openCard ...etc closeStack closeBackground closeCard ...etc I understand why this is necessary now, but it is pretty instrusive, is going to bite a lot of people, and clutters up scripts. I'd like to see some sort of toggle where we could use the older method if there is no problem doing that. On 10/26/18 11:20 AM, Douglas Ruisaard via use-livecode wrote: > Thanks, Jacqueline. > > I have not had any issues with using the StandAlone builder but then I am using LC v8.1.9. on Windows 7. I did put Panos's code into my app ... made no apparent difference but good to have there anyway. > > I'm a bit confused about the reference to "Similar in all other (pre)open*/close* messages." ... what is being recommended here (I get the "preOpen" bit) .. but the reference to the "close" I don't get ... some other function call?? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From MikeKerner at roadrunner.com Fri Oct 26 16:56:16 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 26 Oct 2018 16:56:16 -0400 Subject: [off]Hactoberfest In-Reply-To: References: Message-ID: FIVE DAYS Y'ALL! I got my five pull requests in, and just confirmed my t-shirt. On Tue, Oct 23, 2018 at 8:01 AM Trevor DeVore via use-livecode < use-livecode at lists.runrev.com> wrote: > On Fri, Oct 19, 2018 at 9:54 AM Trevor DeVore > wrote: > > > I've added another screencast that shows how to add a bug fix note to > your > > documentation Pull Request (PR). This is necessary if you are submitting > a > > PR that fixes a bug in the LiveCode Quality Control Center. > > > > https://www.youtube.com/watch?v=u1nUsLp4F_c > > > > The process is actually simpler than I describe in the above video. I've > taken that one down and I've added a better one: > > https://www.youtube.com/watch?v=KjGhxZtzPkg > > Thanks to Bernd for pointing out the link that takes you to the proper > branch in your fork of the LiveCode repo. > > -- > Trevor DeVore > ScreenSteps > www.screensteps.com > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From james at thehales.id.au Fri Oct 26 17:30:43 2018 From: james at thehales.id.au (James At The Hale) Date: Sat, 27 Oct 2018 08:30:43 +1100 Subject: =?utf-8?Q?=E2=80=9CMake_Docset=E2=80=9D_updated_to_3.1,_DASH_doc?= =?utf-8?Q?set_for_LC_now_at_1.7.1?= Message-ID: I have uploaded version 3.1 of the ?make_docset? stack to LC Share. This version returns syntax coloring to the examples as well as retaining their indentation. It also adds links to all the ?Associations? listed in many of the entries. This was only something I had noticed recently so apologies for not including them sooner. As a result I have used this version to construct a docset for Livecode 9.01 (stable) and have uploaded it to the user-contribution area for Dash. Anyone using Dash or a compatible reader should update their Livecode docset to this version (1.7.1). James From MikeKerner at roadrunner.com Sat Oct 27 09:45:13 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 27 Oct 2018 09:45:13 -0400 Subject: =?UTF-8?Q?Re=3A_=E2=80=9CMake_Docset=E2=80=9D_updated_to_3=2E1=2C_DASH_docset_fo?= =?UTF-8?Q?r_LC_now_at_1=2E7=2E1?= In-Reply-To: References: Message-ID: First of all, thanks a lot for doing this. Dash is now my default way to access the docs, on both my ipad and mac. I love it. Second, I have auto-updates turned on for both platforms, but they both show the LC docs at 1.6.1 From paul at livecode.org Sat Oct 27 10:39:51 2018 From: paul at livecode.org (Paul Hibbert) Date: Sat, 27 Oct 2018 07:39:51 -0700 Subject: tabbed windows in Mac - as setProp In-Reply-To: <402F7FC7-1B71-4517-98EA-302A2CF59394@optusnet.com.au> References: <402F7FC7-1B71-4517-98EA-302A2CF59394@optusnet.com.au> Message-ID: <6961450A-BFC4-4D43-A3CB-1A6E22884E97@livecode.org> The menu item ?View > Show Tab Bar? does show up occasionally, there does seem to be a trick to getting it to show up if it?s not there right now. I find that switching apps will sometimes return the menu item occasionally, but I seem to be able to force it to show up by switching to an app that does have tabs, such as Mail, then click on the LC window that is showing a Tab Bar (to switch back to LC), now click and hold on the ?Development? Menu then slide across to the ?View? menu, now you have one opportunity to turn off the offending Tab bar before it magically disappears again. Hope I explained well enough and it works for you, good luck. Paul > On Oct 25, 2018, at 20:49, Neville Smythe via use-livecode wrote: > > Well it seems the feature is ?tabbed? windows. It is a feature of High Sierra. However for non-Apple apps it has to be implemented by the third party, and in this case I think the LC implementation is faulty. I can add windows to the tabs, but not remove the last tab.There is supposed to be a menu item in the Windows menu to turn the feature on and off, but it?s not there. I can?t turn it off and I have no idea how it got turned on, presumably a combination of option keys while the cat was walking across the keyboard. Yesterday upon the stair I met a man who wasn?t there ? I wish, I wish he?d go away. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Sat Oct 27 11:26:05 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Sat, 27 Oct 2018 08:26:05 -0700 Subject: Standalone issue ... was starting the Project Browser In-Reply-To: GLO7gj3TwDhAwGLOCgPbSD References: GLO7gj3TwDhAwGLOCgPbSD Message-ID: <168f01d46e09$61f16cc0$25d44640$@net> I've changed the subject line (from Re: starting the Project Browser) to reflect this discussion more accurately. If that's true then there's (sigh!) one more reason to stay away from LC v9... but I really don't understand the reason why this is necessary in the first place. I've never had a standalone fail with a "can't find stack" error: from http://runtime-revolution.278305.n4.nabble.com/Standalone-build-workaround-td4728140.html#a4728141 "... when you open the stack for the first time (without having built a standalone before), the stack "revStandaloneProgress" is not loaded yet (thus the "can't find stack error)...." So, does this situation only occur for the first standalone build? Not the second time? What is implied should be done if one of the conditions in the function is false? .... very confusing!!! I guess I was looking for something more specific about where to put this "fix": e.g. In an openStack call, you'd put this ... where? At the end of the code just before the "end openStack"? (that's where I put it): if isBuildingStandalone() then exit openstack end if and have the following function call accessible to call cards (i.e. in the stack)? function isBuildingStandalone return the environment is "development" AND \ there is a stack "revStandaloneProgress" AND \ the mode of stack "revStandaloneProgress" > 0 end isBuildingStandalone My question, then, is do I have to have a similar "if isBuildingStandalone()" call in all the "opens" and "closes" you list (and others) and do I "exit" the call if isBuildingStandalone() returns "true"? WOW! ... if THAT's needed then I can't imagine anyone editing all of their code to do this!!! Douglas Ruisaard Trilogy Software (250) 573-3935 > > It's referring to all engine messages that contain either "open" or "close", so: > > preOpenStack > preOpenBackground > preOpenCard > ...etc > openStack > openBackground > openCard > ...etc > closeStack > closeBackground > closeCard > ...etc > > I understand why this is necessary now, but it is pretty instrusive, is going to bite a lot of people, > and clutters up scripts. I'd like to see some sort of toggle where we could use the older method if > there is no problem doing that. > > On 10/26/18 11:20 AM, Douglas Ruisaard via use-livecode wrote: > > Thanks, Jacqueline. > > > > I have not had any issues with using the StandAlone builder but then I am using LC v8.1.9. on > Windows 7. I did put Panos's code into my app ... made no apparent difference but good to have there > anyway. > > > > I'm a bit confused about the reference to "Similar in all other (pre)open*/close* messages." ... > what is being recommended here (I get the "preOpen" bit) .. but the reference to the "close" I don't > get ... some other function call?? > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > From iowahengst at mac.com Sat Oct 27 11:29:32 2018 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 27 Oct 2018 10:29:32 -0500 Subject: [ANN] IPA Build Tool for iOS In-Reply-To: References: Message-ID: <09E15FAD-085C-4E18-8B28-D9453EC9DFD8@mac.com> Sean, Thank you, thank you, thank you for making this plugin available. I?ve been working the past month to update my apps to iOS12? your plugin has been a LIFE SAVER! be well, randy www.classroomFocusedSoftware.com > On Sep 27, 2017, at 9:43 AM, Sean Cole (Pi) via use-livecode wrote: > > Hi LC Community, > > I needed to create IPAs of my iOS software so that I could upload them to > my website for Enterprise distribution but all the old tools for doing this > have been deprecated by Apple. So I've created this simple one to meet > Apple's new standard way to produce them. Simply extract it into your > LiveCode plugins folder and you will be able to open it from the LC menu, > Development>Plugins>IPA_Builder. Let me know if you have any problems with > it. > > https://livecode.pidigital.co.uk/IPA_Builder.zip > > Sean Cole > *Pi Digital Productions Ltd* > www.pidigital.co.uk > 'Don't try to think outside the box. Just remember the truth: There is no > box!' > 'For then you realise it is not the box you are trying to look outside of, > but it is yourself!' > > eMail Ts & Cs Pi Digital > Productions Ltd is a UK registered limited company, no. 5255609 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From montero.je at gmail.com Sat Oct 27 11:33:53 2018 From: montero.je at gmail.com (Jose Enrique Montero) Date: Sat, 27 Oct 2018 11:33:53 -0400 Subject: Auth token + Firebase Message-ID: Hi, I am starting a project of an IOS / android app, and I want to use firebase for the database, but can't authenticate the users because there is no SDK for LIVECODE. I have created an OAUTH2 server that generates a token and I can validate the email / password pair through API and receive an access token. Now the problem is that I want the app to connect directly to Firebase REST, but using the token generated on the server. Someone could help me a little in clarifying this mess I have. https://firebase.google.com/docs/database/rest/auth I would appreciate any idea, Best Regards Jose Montero From dvglasgow at gmail.com Sat Oct 27 11:47:39 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Sat, 27 Oct 2018 16:47:39 +0100 Subject: Numbering lines In-Reply-To: <3DA7DBD1-CB63-45A3-A7EA-2C8818D22B59@canelasoftware.com> References: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> <04191AA6-7454-4363-A74C-57974F41DBF0@unimelb.edu.au> <32A12644-1211-4613-A050-CD106C83C932@gmail.com> <3DA7DBD1-CB63-45A3-A7EA-2C8818D22B59@canelasoftware.com> Message-ID: <9D40BF2F-73FE-42C1-9C43-10A1666C60F6@gmail.com> Thanks Mark. What you said makes sense, but when I actually tested it, your routine is about the same as mine - 3200 lines in 106 seconds (on my fairly old MacBook). Cheers, David G > On 26 Oct 2018, at 6:41 pm, Mark Hsu via use-livecode wrote: > > I think your issue is where you say ?put tcount & j into line tcount of it? ? The line X of ? call is very slow as it has to count every line from 1 - X. > try this: > > local tBuffer > put 1 into tCount > repeat for each line j in pText > put tCount & j & lf after tBuffer > add 1 to tCount > set the thumbpos of scrollbar ?filterprog? to tCount > end repeat > delete line -1 of tBuffer > put tBuffer into pText //If you want to update the initial variable with the numbered lines > put tBuffer into field ?numberedtext" > > - Mark Hsu > > > >> On Oct 26, 2018, at 10:27 AM, David V Glasgow via use-livecode wrote: >> >> Hello folks >> >> I am doing a content analysis of online chat and messaging. Sometimes very large files, thousands or even hundreds of thousands of messages. I am finding filter and find to be delightfully fast. >> >> However?. Sometimes I want to prefix each line with the line number, and do this: >> >> put 1 into tcount >> repeat for each line j in it >> put tcount & j into line tcount of it >> put tcount + 1 into tcount >> set the thumbpos of scrollbar "filterprog" to tcount >> end repeat >> put it into field ?numberedtext? >> >> I use ?it? because of a dim memory (superstition? Myth?) from long ago that it is faster than an arbitrarily named variable. Still, the whole process is pretty darned slow. Any brilliant suggestions? >> >> >> Best Wishes, >> David Glasgow >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Oct 27 12:23:55 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 27 Oct 2018 11:23:55 -0500 Subject: Numbering lines In-Reply-To: <9D40BF2F-73FE-42C1-9C43-10A1666C60F6@gmail.com> References: <53B4B55A-0FC5-4C5E-A6A9-584AA7193A61@unimelb.edu.au> <6F387CB7-0C16-42A3-A9C8-1D4E9761E765@unimelb.edu.au> <04191AA6-7454-4363-A74C-57974F41DBF0@unimelb.edu.au> <32A12644-1211-4613-A050-CD106C83C932@gmail.com> <3DA7DBD1-CB63-45A3-A7EA-2C8818D22B59@canelasoftware.com> <9D40BF2F-73FE-42C1-9C43-10A1666C60F6@gmail.com> Message-ID: <166b656d178.2761.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Another issue may be the line that updates the scrollbar. Try commenting out that line as a test just to see if that's the problem. If so, you might opt for a spinner or progress bar instead. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 27, 2018 10:49:30 AM David V Glasgow via use-livecode wrote: > Thanks Mark. What you said makes sense, but when I actually tested it, > your routine is about the same as mine - 3200 lines in 106 seconds (on my > fairly old MacBook). > > Cheers, > > David G > >> On 26 Oct 2018, at 6:41 pm, Mark Hsu via use-livecode >> wrote: >> >> I think your issue is where you say ?put tcount & j into line tcount of it? >> ? The line X of ? call is very slow as it has to count every line from 1 - X. >> try this: >> >> local tBuffer >> put 1 into tCount >> repeat for each line j in pText >> put tCount & j & lf after tBuffer >> add 1 to tCount >> set the thumbpos of scrollbar ?filterprog? to tCount >> end repeat >> delete line -1 of tBuffer >> put tBuffer into pText //If you want to update the initial variable with >> the numbered lines >> put tBuffer into field ?numberedtext" >> >> - Mark Hsu >> >> >> >>> On Oct 26, 2018, at 10:27 AM, David V Glasgow via use-livecode >>> wrote: >>> >>> Hello folks >>> >>> I am doing a content analysis of online chat and messaging. Sometimes very >>> large files, thousands or even hundreds of thousands of messages. I am >>> finding filter and find to be delightfully fast. >>> >>> However?. Sometimes I want to prefix each line with the line number, and do >>> this: >>> >>> put 1 into tcount >>> repeat for each line j in it >>> put tcount & j into line tcount of it >>> put tcount + 1 into tcount >>> set the thumbpos of scrollbar "filterprog" to tcount >>> end repeat >>> put it into field ?numberedtext? >>> >>> I use ?it? because of a dim memory (superstition? Myth?) from long ago that >>> it is faster than an arbitrarily named variable. Still, the whole process >>> is pretty darned slow. Any brilliant suggestions? >>> >>> >>> Best Wishes, >>> David Glasgow >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Sat Oct 27 12:43:50 2018 From: brian at milby7.com (Brian Milby) Date: Sat, 27 Oct 2018 11:43:50 -0500 Subject: Standalone issue ... was starting the Project Browser In-Reply-To: <168f01d46e09$61f16cc0$25d44640$@net> References: <168f01d46e09$61f16cc0$25d44640$@net> Message-ID: <0a28e400-7a23-4af1-ab12-ae87ea2b9e13@Spark> If your code does things that break when called as a part of the build process, then you need to check and exit the handler before the code executes. Putting it at the end of the handler is not needed. If needed, it probably needs to go toward the top of the handler. When the IDE first launches, the revStandaloneProgress stack is not loaded. After you build any project, then it will remain in memory for the rest of the session. Thanks, Brian On Oct 27, 2018, 10:26 AM -0500, Douglas Ruisaard via use-livecode , wrote: > I've changed the subject line (from Re: starting the Project Browser) to reflect this discussion more accurately. > > If that's true then there's (sigh!) one more reason to stay away from LC v9... but I really don't understand the reason why this is necessary in the first place. I've never had a standalone fail with a "can't find stack" error: > > from http://runtime-revolution.278305.n4.nabble.com/Standalone-build-workaround-td4728140.html#a4728141 > > "... when you open the stack for the first time (without having built a > standalone before), the stack "revStandaloneProgress" is not loaded yet > (thus the "can't find stack error)...." > > So, does this situation only occur for the first standalone build? Not the second time? What is implied should be done if one of the conditions in the function is false? .... very confusing!!! > > I guess I was looking for something more specific about where to put this "fix": > > e.g. > > In an openStack call, you'd put this ... where? At the end of the code just before the "end openStack"? (that's where I put it): > > if isBuildingStandalone() then > exit openstack > end if > > and have the following function call accessible to call cards (i.e. in the stack)? > > function isBuildingStandalone > return the environment is "development" AND \ > there is a stack "revStandaloneProgress" AND \ > the mode of stack "revStandaloneProgress" > 0 > end isBuildingStandalone > > > My question, then, is do I have to have a similar "if isBuildingStandalone()" call in all the "opens" and "closes" you list (and others) and do I "exit" the call if isBuildingStandalone() returns "true"? > > WOW! ... if THAT's needed then I can't imagine anyone editing all of their code to do this!!! > > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > > > > It's referring to all engine messages that contain either "open" or "close", so: > > > > preOpenStack > > preOpenBackground > > preOpenCard > > ...etc > > openStack > > openBackground > > openCard > > ...etc > > closeStack > > closeBackground > > closeCard > > ...etc > > > > I understand why this is necessary now, but it is pretty instrusive, is going to bite a lot of people, > > and clutters up scripts. I'd like to see some sort of toggle where we could use the older method if > > there is no problem doing that. > > > > On 10/26/18 11:20 AM, Douglas Ruisaard via use-livecode wrote: > > > Thanks, Jacqueline. > > > > > > I have not had any issues with using the StandAlone builder but then I am using LC v8.1.9. on > > Windows 7. I did put Panos's code into my app ... made no apparent difference but good to have there > > anyway. > > > > > > I'm a bit confused about the reference to "Similar in all other (pre)open*/close* messages." ... > > what is being recommended here (I get the "preOpen" bit) .. but the reference to the "close" I don't > > get ... some other function call?? > > > > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sat Oct 27 12:53:09 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 27 Oct 2018 18:53:09 +0200 Subject: is anyone able to use fileDSN for ODBC connections in LC? In-Reply-To: <058947DF-4535-4B7C-85A1-3D6210359CEF@m-r-d.de> References: <04A73AA1-8F0C-4588-AB97-B24409F7B436@iotecdigital.com> <058947DF-4535-4B7C-85A1-3D6210359CEF@m-r-d.de> Message-ID: <396DCDA7-7C6F-430F-B4BC-503AE3449F33@m-r-d.de> I?ve filed a bug now. #21658 If anyone has additional comments please add them to the bug. Regards, Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 26.10.2018 um 00:33 schrieb Matthias Rebbe via use-livecode : > > As the same ODBC driver (Windows 10 SQL Server) works w/o a problem when using a user or system DSN connection, the driver should not be the problem. > > Regards, > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > >> Am 26.10.2018 um 00:21 schrieb Bob Sneidar via use-livecode : >> >> Re: [resolved] Microsoft - Driver Manager ODBC - Invalid string or buffer length >> >> >> >> Hi, >> Are you using 64 bit sql server 2014? Please take a look at an article about:http://stackoverflow.com/questions/26745417/invalid-string-or-buffer-length. >> Best regards >> Sabrina >> -- >> Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it. >> >> >> >>> On Oct 25, 2018, at 15:04 , Matthias Rebbe via use-livecode wrote: >>> >>> Thanks Mark, >>> >>> isn?t the DBQ parameter used when you want to access a file based Database like Access .mdb files? >>> >>> I tried it anyway, but added a "e before tAccessDBFilename, as it seems that was missing in your example. >>> Still getting the buffer error >>> >>> [Microsoft][ODBC Driver Manager] Ung?ltige Zeichenfolgen- oder Pufferl?nge >>> In English something like this: Invalid string or buffer length >>> >>> >>> Regards, >>> >>> Matthias >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sat Oct 27 14:53:31 2018 From: hh at hyperhh.de (hh) Date: Sat, 27 Oct 2018 20:53:31 +0200 Subject: Numbering lines Message-ID: 1. Besides removing scroll-update, which takes most of the time, you could try the following array-methods (which are essentially from my stack http://forums.livecode.com/viewtopic.php?p=101301#p101301 , see there card "LineNums, tab "Nb2"). This needs here on a medium fast machine (Mac mini, 2.5GHz) in average with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that): 680 ms for 10000 lines to add the line numbers, 650 ms for 10000 lines to remove the line numbers, both incl. the field update (a lot of long lines are to break). -- Add "inline line numbers" [-hh fecit, 2014] -- Uses separator ": " (In LC 6 use one single char, remove below needs that) on mouseUp lock screen; lock messages put the millisecs into m1 set cursor to watch put fld "IN" into T split T by return put the keys of T into K sort K numeric repeat for each line L in K put cr & L & ": " & T[L] after S --> change separator here end repeat set text of fld "OUT" to char 2 to -1 of S put -1+the num of lines of S & " lines: " & \ the millisecs -m1 & " ms" into fld "timing" end mouseUp -- Remove "inline line numbers" [-hh fecit, 2014] -- Uses separator ": " (the above, in LC 6 you have to use one single char) on mouseUp lock screen; lock messages put the millisecs into m1 set cursor to watch put the text of fld "OUT" into S split S by return and ": " --> change separator here put the keys of S into K sort K numeric repeat for each line L in K put cr & S[L] after T end repeat put char 2 to -1 of T into fld "IN2" put -1+the num of lines of T & " lines: " & \ the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld "timing" end mouseUp 2. All "big" editors that show line numbers never update the whole long text ** but only a few lines more than the visible line range **. Using that, nearly every LCS method (that locks the screen (and messages)) will be fast enough. > JLG wrote: > Another issue may be the line that updates the scrollbar. Try commenting out > that line as a test just to see if that's the problem. If so, you might opt > for a spinner or progress bar instead. > > > David Glasgow wrote: > > your routine is about the same as mine - 3200 lines in 106 seconds (on my > > fairly old MacBook). > >> Mark Hsu wrote: > >> wrote: > >> > >> I think your issue is where you say ?put tcount & j into line tcount of it? > >> ? The line X of ? call is very slow as it has to count every line from 1 - X. > >> try this: > >> > >> local tBuffer > >> put 1 into tCount > >> repeat for each line j in pText > >> put tCount & j & lf after tBuffer > >> add 1 to tCount > >> set the thumbpos of scrollbar ?filterprog? to tCount > >> end repeat > >> delete line -1 of tBuffer > >> put tBuffer into pText //If you want to update the initial variable with > >> the numbered lines > >> put tBuffer into field ?numberedtext" > >>> David V Glasgow wrote: > >>> > >>> Hello folks > >>> > >>> I am doing a content analysis of online chat and messaging. Sometimes very > >>> large files, thousands or even hundreds of thousands of messages. I am > >>> finding filter and find to be delightfully fast. > >>> > >>> However?. Sometimes I want to prefix each line with the line number, and do > >>> this: > >>> > >>> put 1 into tcount > >>> repeat for each line j in it > >>> put tcount & j into line tcount of it > >>> put tcount + 1 into tcount > >>> set the thumbpos of scrollbar "filterprog" to tcount > >>> end repeat > >>> put it into field ?numberedtext? > >>> > >>> I use ?it? because of a dim memory (superstition? Myth?) from long ago that > >>> it is faster than an arbitrarily named variable. Still, the whole process > >>> is pretty darned slow. Any brilliant suggestions? From rmetzker at gmail.com Sat Oct 27 15:24:55 2018 From: rmetzker at gmail.com (Ron Metzker) Date: Sat, 27 Oct 2018 12:24:55 -0700 Subject: =?utf-8?Q?Re:_=E2=80=9CMake_Docset=E2=80=9D_updated_to_3.1,_DASH?= =?utf-8?Q?_docset_for_LC_now_at_1.7.1?= In-Reply-To: References: Message-ID: Hi Mike, You have to chose the user contributed docs and do a check for updates. I did it yesterday. Mine is also set on auto update but it seems to only work on the main docset. Best Regards, Ron > On Oct 27, 2018, at 6:45 AM, Mike Kerner via use-livecode wrote: > > First of all, thanks a lot for doing this. Dash is now my default way to > access the docs, on both my ipad and mac. I love it. > Second, I have auto-updates turned on for both platforms, but they both > show the LC docs at 1.6.1 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Oct 27 15:56:45 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 27 Oct 2018 14:56:45 -0500 Subject: Standalone issue ... was starting the Project Browser In-Reply-To: <168f01d46e09$61f16cc0$25d44640$@net> References: <168f01d46e09$61f16cc0$25d44640$@net> Message-ID: On 10/27/18 10:26 AM, Douglas Ruisaard via use-livecode wrote: > If that's true then there's (sigh!) one more reason to stay away from LC v9... but I really don't understand the reason why this is necessary in the first place. I've never had a standalone fail with a "can't find stack" error: If your builds are going smoothly you don't have to change anything. Try it in LC 9 and see. The problem only occurs if any "open" or "close" handlers do something that interferes or throws errors. > So, does this situation only occur for the first standalone build? Not the second time? What is implied should be done if one of the conditions in the function is false? .... very confusing!!! A "can't find stack" used to occur the first time you build during any one session. The updated handler check fixes this so you don't need to worry about it any more. > > I guess I was looking for something more specific about where to put this "fix": > > e.g. > > In an openStack call, you'd put this ... where? At the end of the code just before the "end openStack"? (that's where I put it): > > if isBuildingStandalone() then > exit openstack > end if The idea is that this fix will prevent the handler from executing at all, so it needs to be at the very front of the handler, right after the "on " line. > My question, then, is do I have to have a similar "if isBuildingStandalone()" call in all the "opens" and "closes" you list (and others) and do I "exit" the call if isBuildingStandalone() returns "true"? > > WOW! ... if THAT's needed then I can't imagine anyone editing all of their code to do this!!! Yes, that's what the additional lines do -- exit the handler before it can run. And I agree that this is an issue for some apps. The problem it tries to solve is retention of script local variable values, as well as preventing unnecessary handlers from running. But I'd rather reinitialize things when necessary than to add extra lines to so many engine messages. I'd be happy with a simple toggle that lets me turn on lockmessages before building. I've been accomodating that behavior for years. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Oct 27 16:00:16 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 27 Oct 2018 15:00:16 -0500 Subject: =?UTF-8?Q?Re:_=e2=80=9cMake_Docset=e2=80=9d_updated_to_3.1=2c_DASH_?= =?UTF-8?Q?docset_for_LC_now_at_1.7.1?= In-Reply-To: References: Message-ID: <66c3b767-5735-aac7-63c5-93c290635064@hyperactivesw.com> And on Android it doesn't work at all, which is where I wanted to use it. The Android build won't load user contributions. :( On 10/27/18 2:24 PM, Ron Metzker via use-livecode wrote: > Hi Mike, > > You have to chose the user contributed docs and do a check for updates. I did it yesterday. Mine is also set on auto update but it seems to only work on the main docset. > > Best Regards, > Ron > >> On Oct 27, 2018, at 6:45 AM, Mike Kerner via use-livecode wrote: >> >> First of all, thanks a lot for doing this. Dash is now my default way to >> access the docs, on both my ipad and mac. I love it. >> Second, I have auto-updates turned on for both platforms, but they both >> show the LC docs at 1.6.1 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mike at golddogcoffee.com Sat Oct 27 17:40:40 2018 From: mike at golddogcoffee.com (Mike for GDC) Date: Sat, 27 Oct 2018 15:40:40 -0600 Subject: how to properly use the fullscreenmode and screen scaling Message-ID: <002601d46e3d$b5915cd0$20b41670$@golddogcoffee.com> Hello, I am new to LC and have learned much so far but I am having an issue with the proper scaling of my app on different size screens. I have created the app with the dimensions of 913 w X 636 h. All looks great on the desktop. When I deploy it to my 8 inch Samsung Tab A (Android) it is ok in the Landscape mode, with one exception. When I go to enter data, the keyboard covers up some of the screen that I need to enter data. It does not scroll up to let me get to the field of entry. When it is in Portrait mode I can usually see the field but the stack only takes up about half the screen so it is very small. When I deploy it on the Samsung S8, it is even worse in that the entire screen is not used and therefore it is way too small to really use it. I would hope there is a way to take advantage of all the screen space so as the used has a larger screen to view and enter data. It seems the keyboard is the same size and not scaled at all. Here are the script statements that I put in my "preopenstack" of my first card: set the fullscreenMode of this stack to "showAll" put "portrait,portrait upside down,landscape left,landscape right" into theallowed -- Function Call mobileSetAllowedOrientations theallowed I have also used the "exactfit", "noborder" and "soScale" options but they any help with suggestions or example code of how it should work would be greatly appreciated. Thanks. Mike From MikeKerner at roadrunner.com Sat Oct 27 20:12:24 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 27 Oct 2018 20:12:24 -0400 Subject: =?UTF-8?Q?Re=3A_=E2=80=9CMake_Docset=E2=80=9D_updated_to_3=2E1=2C_DASH_docset_fo?= =?UTF-8?Q?r_LC_now_at_1=2E7=2E1?= In-Reply-To: <66c3b767-5735-aac7-63c5-93c290635064@hyperactivesw.com> References: <66c3b767-5735-aac7-63c5-93c290635064@hyperactivesw.com> Message-ID: is it because of the versioning? Anyway, thanks, that worked. On Sat, Oct 27, 2018 at 4:00 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > And on Android it doesn't work at all, which is where I wanted to use > it. The Android build won't load user contributions. :( > > On 10/27/18 2:24 PM, Ron Metzker via use-livecode wrote: > > Hi Mike, > > > > You have to chose the user contributed docs and do a check for updates. > I did it yesterday. Mine is also set on auto update but it seems to only > work on the main docset. > > > > Best Regards, > > Ron > > > >> On Oct 27, 2018, at 6:45 AM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> First of all, thanks a lot for doing this. Dash is now my default way > to > >> access the docs, on both my ipad and mac. I love it. > >> Second, I have auto-updates turned on for both platforms, but they both > >> show the LC docs at 1.6.1 > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From MikeKerner at roadrunner.com Sat Oct 27 20:14:04 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 27 Oct 2018 20:14:04 -0400 Subject: =?UTF-8?Q?Re=3A_=E2=80=9CMake_Docset=E2=80=9D_updated_to_3=2E1=2C_DASH_docset_fo?= =?UTF-8?Q?r_LC_now_at_1=2E7=2E1?= In-Reply-To: References: <66c3b767-5735-aac7-63c5-93c290635064@hyperactivesw.com> Message-ID: I should say that just worked on mac (as in I manually updated). On ios, it just prompted me that there was an update and auto-updated. On Sat, Oct 27, 2018 at 8:12 PM Mike Kerner wrote: > is it because of the versioning? Anyway, thanks, that worked. > > On Sat, Oct 27, 2018 at 4:00 PM J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> And on Android it doesn't work at all, which is where I wanted to use >> it. The Android build won't load user contributions. :( >> >> On 10/27/18 2:24 PM, Ron Metzker via use-livecode wrote: >> > Hi Mike, >> > >> > You have to chose the user contributed docs and do a check for updates. >> I did it yesterday. Mine is also set on auto update but it seems to only >> work on the main docset. >> > >> > Best Regards, >> > Ron >> > >> >> On Oct 27, 2018, at 6:45 AM, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> >> >> First of all, thanks a lot for doing this. Dash is now my default way >> to >> >> access the docs, on both my ipad and mac. I love it. >> >> Second, I have auto-updates turned on for both platforms, but they both >> >> show the LC docs at 1.6.1 >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at 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 at 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 | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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." > -- 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." From gcanyon at gmail.com Sat Oct 27 20:27:57 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 27 Oct 2018 17:27:57 -0700 Subject: Numbering lines In-Reply-To: References: Message-ID: Converted to functions with the text and delimiter as paramaters for ease of use: -- Add "inline line numbers" [-hh fecit, 2014] function numberText T,D split T by return put "1:" && T[1] into R repeat with K = 2 to item 2 of the extents of T put cr & K & D & T[K] after R end repeat return R end numberText -- Remove "inline line numbers" [-hh fecit, 2014] function unNumberText T,D split T by return and D put the keys of T into K sort K numeric repeat for each line L in K put cr & T[L] after R end repeat return char 2 to -1 of R end unNumberText On Sat, Oct 27, 2018 at 11:54 AM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > 1. Besides removing scroll-update, which takes most of the time, you could > try the following array-methods (which are essentially from my stack > http://forums.livecode.com/viewtopic.php?p=101301#p101301 , see there > card "LineNums, tab "Nb2"). > > This needs here on a medium fast machine (Mac mini, 2.5GHz) in average > with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that): > > 680 ms for 10000 lines to add the line numbers, > 650 ms for 10000 lines to remove the line numbers, > both incl. the field update (a lot of long lines are to break). > > -- Add "inline line numbers" [-hh fecit, 2014] > -- Uses separator ": " (In LC 6 use one single char, remove below needs > that) > on mouseUp > lock screen; lock messages > put the millisecs into m1 > set cursor to watch > put fld "IN" into T > split T by return > put the keys of T into K > sort K numeric > repeat for each line L in K > put cr & L & ": " & T[L] after S --> change separator here > end repeat > set text of fld "OUT" to char 2 to -1 of S > put -1+the num of lines of S & " lines: " & \ > the millisecs -m1 & " ms" into fld "timing" > end mouseUp > > -- Remove "inline line numbers" [-hh fecit, 2014] > -- Uses separator ": " (the above, in LC 6 you have to use one single char) > on mouseUp > lock screen; lock messages > put the millisecs into m1 > set cursor to watch > put the text of fld "OUT" into S > split S by return and ": " --> change separator here > put the keys of S into K > sort K numeric > repeat for each line L in K > put cr & S[L] after T > end repeat > put char 2 to -1 of T into fld "IN2" > put -1+the num of lines of T & " lines: " & \ > the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld > "timing" > end mouseUp > > 2. All "big" editors that show line numbers never update the whole long > text > ** but only a few lines more than the visible line range **. Using that, > nearly > every LCS method (that locks the screen (and messages)) will be fast > enough. > > > JLG wrote: > > Another issue may be the line that updates the scrollbar. Try commenting > out > > that line as a test just to see if that's the problem. If so, you might > opt > > for a spinner or progress bar instead. > > > > > David Glasgow wrote: > > > your routine is about the same as mine - 3200 lines in 106 seconds (on > my > > > fairly old MacBook). > > >> Mark Hsu wrote: > > >> wrote: > > >> > > >> I think your issue is where you say ?put tcount & j into line tcount > of it? > > >> ? The line X of ? call is very slow as it has to count every line > from 1 - X. > > >> try this: > > >> > > >> local tBuffer > > >> put 1 into tCount > > >> repeat for each line j in pText > > >> put tCount & j & lf after tBuffer > > >> add 1 to tCount > > >> set the thumbpos of scrollbar ?filterprog? to tCount > > >> end repeat > > >> delete line -1 of tBuffer > > >> put tBuffer into pText //If you want to update the initial variable > with > > >> the numbered lines > > >> put tBuffer into field ?numberedtext" > > >>> David V Glasgow wrote: > > >>> > > >>> Hello folks > > >>> > > >>> I am doing a content analysis of online chat and messaging. > Sometimes very > > >>> large files, thousands or even hundreds of thousands of messages. I > am > > >>> finding filter and find to be delightfully fast. > > >>> > > >>> However?. Sometimes I want to prefix each line with the line number, > and do > > >>> this: > > >>> > > >>> put 1 into tcount > > >>> repeat for each line j in it > > >>> put tcount & j into line tcount of it > > >>> put tcount + 1 into tcount > > >>> set the thumbpos of scrollbar "filterprog" to tcount > > >>> end repeat > > >>> put it into field ?numberedtext? > > >>> > > >>> I use ?it? because of a dim memory (superstition? Myth?) from long > ago that > > >>> it is faster than an arbitrarily named variable. Still, the whole > process > > >>> is pretty darned slow. Any brilliant suggestions? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sat Oct 27 20:29:34 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 27 Oct 2018 17:29:34 -0700 Subject: Numbering lines References: Message-ID: Sorry, missed a delimiter reference: function numberText T,D split T by return put "1" & D & T[1] into R repeat with K = 2 to item 2 of the extents of T put cr & K & D & T[K] after R --> change separator here end repeat return R end numberText On Sat, Oct 27, 2018 at 5:27 PM Geoff Canyon wrote: > Converted to functions with the text and delimiter as paramaters for ease > of use: > > -- Add "inline line numbers" [-hh fecit, 2014] > function numberText T,D > split T by return > put "1:" && T[1] into R > repeat with K = 2 to item 2 of the extents of T > put cr & K & D & T[K] after R > end repeat > return R > end numberText > > -- Remove "inline line numbers" [-hh fecit, 2014] > function unNumberText T,D > split T by return and D > put the keys of T into K > sort K numeric > repeat for each line L in K > put cr & T[L] after R > end repeat > return char 2 to -1 of R > end unNumberText > > > > On Sat, Oct 27, 2018 at 11:54 AM hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> 1. Besides removing scroll-update, which takes most of the time, you could >> try the following array-methods (which are essentially from my stack >> http://forums.livecode.com/viewtopic.php?p=101301#p101301 , see there >> card "LineNums, tab "Nb2"). >> >> This needs here on a medium fast machine (Mac mini, 2.5GHz) in average >> with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that): >> >> 680 ms for 10000 lines to add the line numbers, >> 650 ms for 10000 lines to remove the line numbers, >> both incl. the field update (a lot of long lines are to break). >> >> -- Add "inline line numbers" [-hh fecit, 2014] >> -- Uses separator ": " (In LC 6 use one single char, remove below needs >> that) >> on mouseUp >> lock screen; lock messages >> put the millisecs into m1 >> set cursor to watch >> put fld "IN" into T >> split T by return >> put the keys of T into K >> sort K numeric >> repeat for each line L in K >> put cr & L & ": " & T[L] after S --> change separator here >> end repeat >> set text of fld "OUT" to char 2 to -1 of S >> put -1+the num of lines of S & " lines: " & \ >> the millisecs -m1 & " ms" into fld "timing" >> end mouseUp >> >> -- Remove "inline line numbers" [-hh fecit, 2014] >> -- Uses separator ": " (the above, in LC 6 you have to use one single >> char) >> on mouseUp >> lock screen; lock messages >> put the millisecs into m1 >> set cursor to watch >> put the text of fld "OUT" into S >> split S by return and ": " --> change separator here >> put the keys of S into K >> sort K numeric >> repeat for each line L in K >> put cr & S[L] after T >> end repeat >> put char 2 to -1 of T into fld "IN2" >> put -1+the num of lines of T & " lines: " & \ >> the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld >> "timing" >> end mouseUp >> >> 2. All "big" editors that show line numbers never update the whole long >> text >> ** but only a few lines more than the visible line range **. Using that, >> nearly >> every LCS method (that locks the screen (and messages)) will be fast >> enough. >> >> > JLG wrote: >> > Another issue may be the line that updates the scrollbar. Try >> commenting out >> > that line as a test just to see if that's the problem. If so, you might >> opt >> > for a spinner or progress bar instead. >> > >> > > David Glasgow wrote: >> > > your routine is about the same as mine - 3200 lines in 106 seconds >> (on my >> > > fairly old MacBook). >> > >> Mark Hsu wrote: >> > >> wrote: >> > >> >> > >> I think your issue is where you say ?put tcount & j into line tcount >> of it? >> > >> ? The line X of ? call is very slow as it has to count every line >> from 1 - X. >> > >> try this: >> > >> >> > >> local tBuffer >> > >> put 1 into tCount >> > >> repeat for each line j in pText >> > >> put tCount & j & lf after tBuffer >> > >> add 1 to tCount >> > >> set the thumbpos of scrollbar ?filterprog? to tCount >> > >> end repeat >> > >> delete line -1 of tBuffer >> > >> put tBuffer into pText //If you want to update the initial variable >> with >> > >> the numbered lines >> > >> put tBuffer into field ?numberedtext" >> > >>> David V Glasgow wrote: >> > >>> >> > >>> Hello folks >> > >>> >> > >>> I am doing a content analysis of online chat and messaging. >> Sometimes very >> > >>> large files, thousands or even hundreds of thousands of messages. I >> am >> > >>> finding filter and find to be delightfully fast. >> > >>> >> > >>> However?. Sometimes I want to prefix each line with the line >> number, and do >> > >>> this: >> > >>> >> > >>> put 1 into tcount >> > >>> repeat for each line j in it >> > >>> put tcount & j into line tcount of it >> > >>> put tcount + 1 into tcount >> > >>> set the thumbpos of scrollbar "filterprog" to tcount >> > >>> end repeat >> > >>> put it into field ?numberedtext? >> > >>> >> > >>> I use ?it? because of a dim memory (superstition? Myth?) from long >> ago that >> > >>> it is faster than an arbitrarily named variable. Still, the whole >> process >> > >>> is pretty darned slow. Any brilliant suggestions? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > From gcanyon at gmail.com Sat Oct 27 20:32:33 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 27 Oct 2018 17:32:33 -0700 Subject: Numbering lines In-Reply-To: References: Message-ID: And of course if retaining the order isn't critical you could just go with: function numberText T,D split T by cr combine T by cr and D return T end numberText function unNumberText T,D split T by cr and D combine T by cr return T end unNumberText On Sat, Oct 27, 2018 at 5:29 PM Geoff Canyon wrote: > Sorry, missed a delimiter reference: > > function numberText T,D > split T by return > put "1" & D & T[1] into R > repeat with K = 2 to item 2 of the extents of T > put cr & K & D & T[K] after R --> change separator here > end repeat > return R > end numberText > > On Sat, Oct 27, 2018 at 5:27 PM Geoff Canyon wrote: > >> Converted to functions with the text and delimiter as paramaters for ease >> of use: >> >> -- Add "inline line numbers" [-hh fecit, 2014] >> function numberText T,D >> split T by return >> put "1:" && T[1] into R >> repeat with K = 2 to item 2 of the extents of T >> put cr & K & D & T[K] after R >> end repeat >> return R >> end numberText >> >> -- Remove "inline line numbers" [-hh fecit, 2014] >> function unNumberText T,D >> split T by return and D >> put the keys of T into K >> sort K numeric >> repeat for each line L in K >> put cr & T[L] after R >> end repeat >> return char 2 to -1 of R >> end unNumberText >> >> >> >> On Sat, Oct 27, 2018 at 11:54 AM hh via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> 1. Besides removing scroll-update, which takes most of the time, you >>> could >>> try the following array-methods (which are essentially from my stack >>> http://forums.livecode.com/viewtopic.php?p=101301#p101301 , see there >>> card "LineNums, tab "Nb2"). >>> >>> This needs here on a medium fast machine (Mac mini, 2.5GHz) in average >>> with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that): >>> >>> 680 ms for 10000 lines to add the line numbers, >>> 650 ms for 10000 lines to remove the line numbers, >>> both incl. the field update (a lot of long lines are to break). >>> >>> -- Add "inline line numbers" [-hh fecit, 2014] >>> -- Uses separator ": " (In LC 6 use one single char, remove below needs >>> that) >>> on mouseUp >>> lock screen; lock messages >>> put the millisecs into m1 >>> set cursor to watch >>> put fld "IN" into T >>> split T by return >>> put the keys of T into K >>> sort K numeric >>> repeat for each line L in K >>> put cr & L & ": " & T[L] after S --> change separator here >>> end repeat >>> set text of fld "OUT" to char 2 to -1 of S >>> put -1+the num of lines of S & " lines: " & \ >>> the millisecs -m1 & " ms" into fld "timing" >>> end mouseUp >>> >>> -- Remove "inline line numbers" [-hh fecit, 2014] >>> -- Uses separator ": " (the above, in LC 6 you have to use one single >>> char) >>> on mouseUp >>> lock screen; lock messages >>> put the millisecs into m1 >>> set cursor to watch >>> put the text of fld "OUT" into S >>> split S by return and ": " --> change separator here >>> put the keys of S into K >>> sort K numeric >>> repeat for each line L in K >>> put cr & S[L] after T >>> end repeat >>> put char 2 to -1 of T into fld "IN2" >>> put -1+the num of lines of T & " lines: " & \ >>> the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld >>> "timing" >>> end mouseUp >>> >>> 2. All "big" editors that show line numbers never update the whole long >>> text >>> ** but only a few lines more than the visible line range **. Using that, >>> nearly >>> every LCS method (that locks the screen (and messages)) will be fast >>> enough. >>> >>> > JLG wrote: >>> > Another issue may be the line that updates the scrollbar. Try >>> commenting out >>> > that line as a test just to see if that's the problem. If so, you >>> might opt >>> > for a spinner or progress bar instead. >>> > >>> > > David Glasgow wrote: >>> > > your routine is about the same as mine - 3200 lines in 106 seconds >>> (on my >>> > > fairly old MacBook). >>> > >> Mark Hsu wrote: >>> > >> wrote: >>> > >> >>> > >> I think your issue is where you say ?put tcount & j into line >>> tcount of it? >>> > >> ? The line X of ? call is very slow as it has to count every line >>> from 1 - X. >>> > >> try this: >>> > >> >>> > >> local tBuffer >>> > >> put 1 into tCount >>> > >> repeat for each line j in pText >>> > >> put tCount & j & lf after tBuffer >>> > >> add 1 to tCount >>> > >> set the thumbpos of scrollbar ?filterprog? to tCount >>> > >> end repeat >>> > >> delete line -1 of tBuffer >>> > >> put tBuffer into pText //If you want to update the initial variable >>> with >>> > >> the numbered lines >>> > >> put tBuffer into field ?numberedtext" >>> > >>> David V Glasgow wrote: >>> > >>> >>> > >>> Hello folks >>> > >>> >>> > >>> I am doing a content analysis of online chat and messaging. >>> Sometimes very >>> > >>> large files, thousands or even hundreds of thousands of messages. >>> I am >>> > >>> finding filter and find to be delightfully fast. >>> > >>> >>> > >>> However?. Sometimes I want to prefix each line with the line >>> number, and do >>> > >>> this: >>> > >>> >>> > >>> put 1 into tcount >>> > >>> repeat for each line j in it >>> > >>> put tcount & j into line tcount of it >>> > >>> put tcount + 1 into tcount >>> > >>> set the thumbpos of scrollbar "filterprog" to tcount >>> > >>> end repeat >>> > >>> put it into field ?numberedtext? >>> > >>> >>> > >>> I use ?it? because of a dim memory (superstition? Myth?) from long >>> ago that >>> > >>> it is faster than an arbitrarily named variable. Still, the whole >>> process >>> > >>> is pretty darned slow. Any brilliant suggestions? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> From neville.smythe at optusnet.com.au Sat Oct 27 21:09:42 2018 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 28 Oct 2018 12:09:42 +1100 Subject: tabbed windows Message-ID: Extraordinary thanks, Paul, you have reduced my blood pressure by 30 points. I can?t think why I so obtuse as to not think of going to a different app and then sliding from the Development menu to the View menu! Simples! From james at thehales.id.au Sat Oct 27 22:27:03 2018 From: james at thehales.id.au (James Hale) Date: Sun, 28 Oct 2018 13:27:03 +1100 Subject: ?Make Docset? updated to 3.1, DASH docset for LC now at 1.7.1 Message-ID: <3791FA75-22C4-431E-BE64-355A01E703DF@thehales.id.au> From Mike > First of all, thanks a lot for doing this. Dash is now my default way to > access the docs, on both my ipad and mac. I love it. > Second, I have auto-updates turned on for both platforms, but they both > show the LC docs at 1.6.1 I am glad it is useful. I to really like the presentation of Dash, especially on my ipad. It is now actually version 1.7.2 As for the update. It would seem that updates to user contributions are not quite automatic. (This could be as I leave one previous version in place.) On the Mac go to Preferences. Click on the "Check and Install Now" button at the bottom to jog an update OF THE LISTING. Select the "User-Contributions" section in the lefthand pane. In the search area above the list of user contributed docsets, type "livecode". On the right of the entry for LivCode there is a popup menu which allows you to choose which docset to install. On the iPad go to "Settings" and click on "User Contributed docsets" and then on the "Update" button at the top of the screen. At least on the iPad it seems to grab the latest (one with the higher version number.) I am still getting all the "Associations" links to work so there will be a 1.7.3 in the near future. James From keith.clarke at me.com Sun Oct 28 03:36:54 2018 From: keith.clarke at me.com (Keith Clarke) Date: Sun, 28 Oct 2018 07:36:54 +0000 Subject: How to find true words that start with a capital letter? In-Reply-To: <0fc5feae-9d1d-08e1-c70f-201d892e525f@tweedly.net> References: <0fc5feae-9d1d-08e1-c70f-201d892e525f@tweedly.net> Message-ID: <4D4F5994-8661-4E0B-BAE5-4A50BEB1060B@me.com> Thanks Alex. The text could be Unicode or ASCII, depending on the source, so I?m assuming the former to be on the safe side. I did think of checking the character number but whilst the ASCII range is neat, identification of Unicode capital letter codes seem to be complex. Perhaps I?ll start with support for Latin languages, where I can at least see and understand the upper/lower case test results! :-) Keith > On 26 Oct 2018, at 19:07, Alex Tweedly via use-livecode wrote: > > You say "... containing A-Z" > > Are you really using unicode ? Or is it really just ASCII ? > > if so, you could do > > put char 1 of tWord into temp > if 65 <= temp AND temp <= 90 then ... > > Alex. > > > > On 26/10/2018 12:21, Keith Clarke via use-livecode wrote: >> Folks, >> What is the most efficient way to search for trueWords starting with a capital letter? >> >> Is there anything more direct than something like... >> >> repeat for each true word tWord in tContainer >> >> If char 1 of tWord is among the codePoints of tUnicodeLetters // a variable containing A-Z >> then put tWord into tCapitalised >> >> end repeat >> >> Thanks & regards, >> Keith >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dvglasgow at gmail.com Sun Oct 28 08:26:06 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Sun, 28 Oct 2018 12:26:06 +0000 Subject: Numbering lines In-Reply-To: References: Message-ID: <98E948FB-D8D5-41DB-BD1C-6543959F045D@gmail.com> Thanks Geoff, I did play with Split, but one of the reasons for numbering is to make any identical lines unique. With split, for any that are not, all but one is deleted. So definitely not the result I wanted. I?ll sacrifice the progress bar and see where that leaves me. Thanks folks. > On 28 Oct 2018, at 1:32 am, Geoff Canyon via use-livecode wrote: > > And of course if retaining the order isn't critical you could just go with: > > function numberText T,D > split T by cr > combine T by cr and D > return T > end numberText > > function unNumberText T,D > split T by cr and D > combine T by cr > return T > end unNumberText > > On Sat, Oct 27, 2018 at 5:29 PM Geoff Canyon wrote: > >> Sorry, missed a delimiter reference: >> >> function numberText T,D >> split T by return >> put "1" & D & T[1] into R >> repeat with K = 2 to item 2 of the extents of T >> put cr & K & D & T[K] after R --> change separator here >> end repeat >> return R >> end numberText >> >> On Sat, Oct 27, 2018 at 5:27 PM Geoff Canyon wrote: >> >>> Converted to functions with the text and delimiter as paramaters for ease >>> of use: >>> >>> -- Add "inline line numbers" [-hh fecit, 2014] >>> function numberText T,D >>> split T by return >>> put "1:" && T[1] into R >>> repeat with K = 2 to item 2 of the extents of T >>> put cr & K & D & T[K] after R >>> end repeat >>> return R >>> end numberText >>> >>> -- Remove "inline line numbers" [-hh fecit, 2014] >>> function unNumberText T,D >>> split T by return and D >>> put the keys of T into K >>> sort K numeric >>> repeat for each line L in K >>> put cr & T[L] after R >>> end repeat >>> return char 2 to -1 of R >>> end unNumberText >>> >>> >>> >>> On Sat, Oct 27, 2018 at 11:54 AM hh via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> 1. Besides removing scroll-update, which takes most of the time, you >>>> could >>>> try the following array-methods (which are essentially from my stack >>>> http://forums.livecode.com/viewtopic.php?p=101301#p101301 , see there >>>> card "LineNums, tab "Nb2"). >>>> >>>> This needs here on a medium fast machine (Mac mini, 2.5GHz) in average >>>> with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that): >>>> >>>> 680 ms for 10000 lines to add the line numbers, >>>> 650 ms for 10000 lines to remove the line numbers, >>>> both incl. the field update (a lot of long lines are to break). >>>> >>>> -- Add "inline line numbers" [-hh fecit, 2014] >>>> -- Uses separator ": " (In LC 6 use one single char, remove below needs >>>> that) >>>> on mouseUp >>>> lock screen; lock messages >>>> put the millisecs into m1 >>>> set cursor to watch >>>> put fld "IN" into T >>>> split T by return >>>> put the keys of T into K >>>> sort K numeric >>>> repeat for each line L in K >>>> put cr & L & ": " & T[L] after S --> change separator here >>>> end repeat >>>> set text of fld "OUT" to char 2 to -1 of S >>>> put -1+the num of lines of S & " lines: " & \ >>>> the millisecs -m1 & " ms" into fld "timing" >>>> end mouseUp >>>> >>>> -- Remove "inline line numbers" [-hh fecit, 2014] >>>> -- Uses separator ": " (the above, in LC 6 you have to use one single >>>> char) >>>> on mouseUp >>>> lock screen; lock messages >>>> put the millisecs into m1 >>>> set cursor to watch >>>> put the text of fld "OUT" into S >>>> split S by return and ": " --> change separator here >>>> put the keys of S into K >>>> sort K numeric >>>> repeat for each line L in K >>>> put cr & S[L] after T >>>> end repeat >>>> put char 2 to -1 of T into fld "IN2" >>>> put -1+the num of lines of T & " lines: " & \ >>>> the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld >>>> "timing" >>>> end mouseUp >>>> >>>> 2. All "big" editors that show line numbers never update the whole long >>>> text >>>> ** but only a few lines more than the visible line range **. Using that, >>>> nearly >>>> every LCS method (that locks the screen (and messages)) will be fast >>>> enough. >>>> >>>>> JLG wrote: >>>>> Another issue may be the line that updates the scrollbar. Try >>>> commenting out >>>>> that line as a test just to see if that's the problem. If so, you >>>> might opt >>>>> for a spinner or progress bar instead. >>>>> >>>>>> David Glasgow wrote: >>>>>> your routine is about the same as mine - 3200 lines in 106 seconds >>>> (on my >>>>>> fairly old MacBook). >>>>>>> Mark Hsu wrote: >>>>>>> wrote: >>>>>>> >>>>>>> I think your issue is where you say ?put tcount & j into line >>>> tcount of it? >>>>>>> ? The line X of ? call is very slow as it has to count every line >>>> from 1 - X. >>>>>>> try this: >>>>>>> >>>>>>> local tBuffer >>>>>>> put 1 into tCount >>>>>>> repeat for each line j in pText >>>>>>> put tCount & j & lf after tBuffer >>>>>>> add 1 to tCount >>>>>>> set the thumbpos of scrollbar ?filterprog? to tCount >>>>>>> end repeat >>>>>>> delete line -1 of tBuffer >>>>>>> put tBuffer into pText //If you want to update the initial variable >>>> with >>>>>>> the numbered lines >>>>>>> put tBuffer into field ?numberedtext" >>>>>>>> David V Glasgow wrote: >>>>>>>> >>>>>>>> Hello folks >>>>>>>> >>>>>>>> I am doing a content analysis of online chat and messaging. >>>> Sometimes very >>>>>>>> large files, thousands or even hundreds of thousands of messages. >>>> I am >>>>>>>> finding filter and find to be delightfully fast. >>>>>>>> >>>>>>>> However?. Sometimes I want to prefix each line with the line >>>> number, and do >>>>>>>> this: >>>>>>>> >>>>>>>> put 1 into tcount >>>>>>>> repeat for each line j in it >>>>>>>> put tcount & j into line tcount of it >>>>>>>> put tcount + 1 into tcount >>>>>>>> set the thumbpos of scrollbar "filterprog" to tcount >>>>>>>> end repeat >>>>>>>> put it into field ?numberedtext? >>>>>>>> >>>>>>>> I use ?it? because of a dim memory (superstition? Myth?) from long >>>> ago that >>>>>>>> it is faster than an arbitrarily named variable. Still, the whole >>>> process >>>>>>>> is pretty darned slow. Any brilliant suggestions? >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sun Oct 28 09:47:05 2018 From: hh at hyperhh.de (hh) Date: Sun, 28 Oct 2018 14:47:05 +0100 Subject: Numbering lines Message-ID: > David G. wrote: > Thanks Geoff, I did play with Split, but one of the reasons for numbering > is to make any identical lines unique. With split, for any that are not, > all but one is deleted. So definitely not the result I wanted. I am not Geoff (who played with the simple array methods I suggested). But your post attacks indirectly my suggested handlers below as wrong, as if they would not hit your question. My handlers (which are at least 600 times faster than your first script) output exactly the same what your first script outputs, seen apart from the optional delimiter. > So definitely not the result I wanted. LOL: You mention above the "unique"-side-condition the first time... With your new side condition from above several others (and I) know also how this is doable very fast, once again using arrays. And it is an invertible method, that is, the original text is exactly restorable. But first post YOU your new handler, to see *all* your new side conditions, that is, or to see what you really want: Certainly not a line numbering, rather indexing a text file. > >>> David G. wrote: [This is the first script] > >>> However?. > >>> Sometimes I want to prefix each line with the line number, and do this: > >>> > >>> put 1 into tcount > >>> repeat for each line j in it > >>> put tcount & j into line tcount of it > >>> put tcount + 1 into tcount > >>> set the thumbpos of scrollbar "filterprog" to tcount > >>> end repeat > >>> put it into field ?numberedtext? > >>> > >>> I use ?it? because of a dim memory (superstition? Myth?) from long ago that > >>> it is faster than an arbitrarily named variable. Still, the whole process > >>> is pretty darned slow. Any brilliant suggestions? > >> Geoff C. wrote: >> And of course if retaining the order isn't critical you could just go with: >> >> function numberText T,D >> split T by cr >> combine T by cr and D >> return T >> end numberText >> >> function unNumberText T,D >> split T by cr and D >> combine T by cr >> return T >> end unNumberText > >>> Hermann H. wrote: >>> 1. Besides removing scroll-update, which takes most of the time, you could >>> try the following array-methods (which are essentially from my stack >>> >>> http://forums.livecode.com/viewtopic.php?p=101301#p101301 >>> , see there >>> card "LineNums, tab "Nb2"). >>> >>> This needs here on a medium fast machine (Mac mini, 2.5GHz) in average >>> with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that): >>> >>> 680 ms for 10000 lines to add the line numbers, >>> 650 ms for 10000 lines to remove the line numbers, >>> both incl. the field update (a lot of long lines are to break). >>> >>> -- Add "inline line numbers" [-hh fecit, 2014] >>> -- Uses separator ": " (In LC 6 use one single char, remove below needs that) >>> on mouseUp >>> lock screen; lock messages >>> put the millisecs into m1 >>> set cursor to watch >>> put fld "IN" into T >>> split T by return >>> put the keys of T into K >>> sort K numeric >>> repeat for each line L in K >>> put cr & L & ": " & T[L] after S --> change separator here >>> end repeat >>> set text of fld "OUT" to char 2 to -1 of S >>> put -1+the num of lines of S & " lines: " & \ >>> the millisecs -m1 & " ms" into fld "timing" >>> end mouseUp >>> >>> -- Remove "inline line numbers" [-hh fecit, 2014] >>> -- Uses separator ": " (the above, in LC 6 you have to use one single char) >>> on mouseUp >>> lock screen; lock messages >>> put the millisecs into m1 >>> set cursor to watch >>> put the text of fld "OUT" into S >>> split S by return and ": " --> change separator here >>> put the keys of S into K >>> sort K numeric >>> repeat for each line L in K >>> put cr & S[L] after T >>> end repeat >>> put char 2 to -1 of T into fld "IN2" >>> put -1+the num of lines of T & " lines: " & \ >>> the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld "timing" >>> end mouseUp From dougr at telus.net Sun Oct 28 11:33:14 2018 From: dougr at telus.net (Douglas Ruisaard) Date: Sun, 28 Oct 2018 08:33:14 -0700 Subject: Standalone issue In-Reply-To: GZ18gOXEWy5tHGZ1EgLZjU References: GZ18gOXEWy5tHGZ1EgLZjU Message-ID: <16b301d46ed3$8bc4c3b0$a34e4b10$@net> Thanks to both Brian and Jacqueline Of course, no one's code is perfect and errors do occur, particularly in the early going. Interesting that this "fix/issue" deals with an error occurring *in* the standalone as the standalone is being built. Anyway, if there is an error which the standalone build "exploits" because of this condition, GOOD! I'm sure we hope for (but don't always receive) an accurate cause of errors by ANY development system. So, I'm good with the standalone "causing" *any* error if there's an error in my actual code. I appreciate the explanations. Douglas Ruisaard Trilogy Software (250) 573-3935 > > On 10/27/18 10:26 AM, Douglas Ruisaard via use-livecode wrote: > > If that's true then there's (sigh!) one more reason to stay away from LC v9... but I really don't > understand the reason why this is necessary in the first place. I've never had a standalone fail with > a "can't find stack" error: > > If your builds are going smoothly you don't have to change anything. Try > it in LC 9 and see. The problem only occurs if any "open" or "close" > handlers do something that interferes or throws errors. > > > So, does this situation only occur for the first standalone build? Not the second time? What is > implied should be done if one of the conditions in the function is false? .... very confusing!!! > > A "can't find stack" used to occur the first time you build during any > one session. The updated handler check fixes this so you don't need to > worry about it any more. > > > > > I guess I was looking for something more specific about where to put this "fix": > > > > e.g. > > > > In an openStack call, you'd put this ... where? At the end of the code just before the "end > openStack"? (that's where I put it): > > > > if isBuildingStandalone() then > > exit openstack > > end if > > The idea is that this fix will prevent the handler from executing at > all, so it needs to be at the very front of the handler, right after the > "on " line. > > > My question, then, is do I have to have a similar "if isBuildingStandalone()" call in all the > "opens" and "closes" you list (and others) and do I "exit" the call if isBuildingStandalone() returns > "true"? > > > > WOW! ... if THAT's needed then I can't imagine anyone editing all of their code to do this!!! > > Yes, that's what the additional lines do -- exit the handler before it > can run. And I agree that this is an issue for some apps. The problem it > tries to solve is retention of script local variable values, as well as > preventing unnecessary handlers from running. But I'd rather > reinitialize things when necessary than to add extra lines to so many > engine messages. > > I'd be happy with a simple toggle that lets me turn on lockmessages > before building. I've been accomodating that behavior for years. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > From jacque at hyperactivesw.com Sun Oct 28 13:04:50 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 28 Oct 2018 12:04:50 -0500 Subject: Native Android widgets Message-ID: <166bba2a350.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Has anyone else tried the native Android button and field widgets? When I use the field widget, text entered into the field isn't displayed. I figured out it was placed below the bottom edge, out of view. There isn't a way to adjust the textheight so I can't make it visible. This is a single line entry field. The Android button has a label assigned but it isn't displayed either. The button is blank. I'm just checking to see if I need to submit a bug report. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Sun Oct 28 13:54:13 2018 From: hh at hyperhh.de (hh) Date: Sun, 28 Oct 2018 18:54:13 +0100 Subject: Will it ever be possible place controls over browser widget? Message-ID: <749F4156-2216-42AF-A9E3-F29503FF4067@hyperhh.de> We already know that this is not possible by "ordinary" controls because the browser widget has a native layer. (Except we"bundle" your controls in a floating window.) But there is one way more (I use it for updating my Textedit widget). Of course you can overlay a browser widget with a browser widget: Make using HTML/CSS a "Bar" (containing buttons etc.). The HTML/CSS of that is pretty simple and changeable without deep knowledge of HTML or CSS. You get a clickCallback via a javaScriptHandler and can simply use the scripts of your LCS objects from that javaScriptHandler. I made a simple example stack with 6 rounded buttons here, may be I'll update it from time to time: http://forums.livecode.com/viewtopic.php?p=172729#p172729 From dvglasgow at gmail.com Sun Oct 28 14:14:39 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Sun, 28 Oct 2018 18:14:39 +0000 Subject: Numbering lines In-Reply-To: References: Message-ID: <6E413A04-0979-4A9F-90AB-057168DB3E86@gmail.com> Thanks for this, although I?m not sure I understand. In fact I am sure I don?t. I know how amazingly fast the array method is, I use it elsewhere in the same stack, and it is great. I also don?t understand the distinction between line numbering and indexing. If I was guessing, I would go for line numbering prepends to each line in a text field a number, and indexing is adding a numerical key to a database or array. The former is what I described in my original post. The reason the issue arrises is because some of the text/chat message records I referred to have the date and time stamps stripped out. So in the following exchange? 1757 Shadowknave: U gotta b there 1758 What_goes_Moo: kk 1759 Shadowknave: no let down? 1760 What_goes_Moo: kk 1761 Shadowknave: U b there 8? 1762 What_goes_Moo: I wil ? lines 2 and 4 would be identical but for the line number I added via the script. And of course, the integrity of the dialogue must be maintained. I had believed that collapsing duplicates and alphabetising are unavoidable with split. If there is an array method which doesn?t mess with the text message order or content, then I would be delighted. Is that what this is below, but I haven?t appreciated it? Cheers, David G > On 28 Oct 2018, at 1:47 pm, hh via use-livecode wrote: > >> David G. wrote: >> Thanks Geoff, I did play with Split, but one of the reasons for numbering >> is to make any identical lines unique. With split, for any that are not, >> all but one is deleted. So definitely not the result I wanted. > > I am not Geoff (who played with the simple array methods I suggested). > But your post attacks indirectly my suggested handlers below as wrong, as if > they would not hit your question. > > My handlers (which are at least 600 times faster than your first script) > output exactly the same what your first script outputs, seen apart from the > optional delimiter. > >> So definitely not the result I wanted. > LOL: You mention above the "unique"-side-condition the first time... > > With your new side condition from above several others (and I) know also > how this is doable very fast, once again using arrays. And it is an > invertible method, that is, the original text is exactly restorable. > > But first post YOU your new handler, to see *all* your new side conditions, > that is, or to see what you really want: > Certainly not a line numbering, rather indexing a text file. > >>>>> David G. wrote: [This is the first script] >>>>> However?. >>>>> Sometimes I want to prefix each line with the line number, and do this: >>>>> >>>>> put 1 into tcount >>>>> repeat for each line j in it >>>>> put tcount & j into line tcount of it >>>>> put tcount + 1 into tcount >>>>> set the thumbpos of scrollbar "filterprog" to tcount >>>>> end repeat >>>>> put it into field ?numberedtext? >>>>> >>>>> I use ?it? because of a dim memory (superstition? Myth?) from long ago that >>>>> it is faster than an arbitrarily named variable. Still, the whole process >>>>> is pretty darned slow. Any brilliant suggestions? >> >>> Geoff C. wrote: >>> And of course if retaining the order isn't critical you could just go with: >>> >>> function numberText T,D >>> split T by cr >>> combine T by cr and D >>> return T >>> end numberText >>> >>> function unNumberText T,D >>> split T by cr and D >>> combine T by cr >>> return T >>> end unNumberText >> >>>> Hermann H. wrote: >>>> 1. Besides removing scroll-update, which takes most of the time, you could >>>> try the following array-methods (which are essentially from my stack >>>> >>>> http://forums.livecode.com/viewtopic.php?p=101301#p101301 >>>> , see there >>>> card "LineNums, tab "Nb2"). >>>> >>>> This needs here on a medium fast machine (Mac mini, 2.5GHz) in average >>>> with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that): >>>> >>>> 680 ms for 10000 lines to add the line numbers, >>>> 650 ms for 10000 lines to remove the line numbers, >>>> both incl. the field update (a lot of long lines are to break). >>>> >>>> -- Add "inline line numbers" [-hh fecit, 2014] >>>> -- Uses separator ": " (In LC 6 use one single char, remove below needs that) >>>> on mouseUp >>>> lock screen; lock messages >>>> put the millisecs into m1 >>>> set cursor to watch >>>> put fld "IN" into T >>>> split T by return >>>> put the keys of T into K >>>> sort K numeric >>>> repeat for each line L in K >>>> put cr & L & ": " & T[L] after S --> change separator here >>>> end repeat >>>> set text of fld "OUT" to char 2 to -1 of S >>>> put -1+the num of lines of S & " lines: " & \ >>>> the millisecs -m1 & " ms" into fld "timing" >>>> end mouseUp >>>> >>>> -- Remove "inline line numbers" [-hh fecit, 2014] >>>> -- Uses separator ": " (the above, in LC 6 you have to use one single char) >>>> on mouseUp >>>> lock screen; lock messages >>>> put the millisecs into m1 >>>> set cursor to watch >>>> put the text of fld "OUT" into S >>>> split S by return and ": " --> change separator here >>>> put the keys of S into K >>>> sort K numeric >>>> repeat for each line L in K >>>> put cr & S[L] after T >>>> end repeat >>>> put char 2 to -1 of T into fld "IN2" >>>> put -1+the num of lines of T & " lines: " & \ >>>> the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld "timing" >>>> end mouseUp > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Sun Oct 28 14:58:06 2018 From: jjs at krutt.org (JJS) Date: Sun, 28 Oct 2018 19:58:06 +0100 Subject: Native Android widgets In-Reply-To: <166bba2a350.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <166bba2a350.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <5606a32f-f965-82ce-113d-8516997be8c2@krutt.org> Nope, i'm still not using them Op 28-10-2018 om 18:04 schreef J. Landman Gay via use-livecode: > Has anyone else tried the native Android button and field widgets? > When I use the field widget, text entered into the field isn't > displayed. I figured out it was placed below the bottom edge, out of > view. There isn't a way to adjust the textheight so I can't make it > visible. This is a single line entry field. > > The Android button has a label assigned but it isn't displayed either. > The button is blank. > > I'm just checking to see if I need to submit a bug report. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Sun Oct 28 15:04:56 2018 From: jjs at krutt.org (JJS) Date: Sun, 28 Oct 2018 20:04:56 +0100 Subject: Native Android widgets In-Reply-To: <5606a32f-f965-82ce-113d-8516997be8c2@krutt.org> References: <166bba2a350.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5606a32f-f965-82ce-113d-8516997be8c2@krutt.org> Message-ID: well that answer of me was a bit short. But i like the answer/ask. And i'm using a normal field but on top of that i placed an equal size transparent graphic. The mouseup goes thru transparent parts which in this case was convenient. I don't know exactly anymore why i did it, but it prevented some other issue with the keyboard or something with shifting. When i recall the exact reason i will tell Sphere Op 28-10-2018 om 19:58 schreef JJS via use-livecode: > Nope, i'm still not using them > > > Op 28-10-2018 om 18:04 schreef J. Landman Gay via use-livecode: >> Has anyone else tried the native Android button and field widgets? >> When I use the field widget, text entered into the field isn't >> displayed. I figured out it was placed below the bottom edge, out of >> view. There isn't a way to adjust the textheight so I can't make it >> visible. This is a single line entry field. >> >> The Android button has a label assigned but it isn't displayed >> either. The button is blank. >> >> I'm just checking to see if I need to submit a bug report. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Oct 28 15:10:54 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 28 Oct 2018 14:10:54 -0500 Subject: how to properly use the fullscreenmode and screen scaling In-Reply-To: <002601d46e3d$b5915cd0$20b41670$@golddogcoffee.com> References: <002601d46e3d$b5915cd0$20b41670$@golddogcoffee.com> Message-ID: <2f718cd7-35d0-6f3a-45cd-7211a8673cf7@hyperactivesw.com> Typically you need to handle field placement yourself in script, moving the controls up on keyboardActivated and back down on keyboardDeactivated. However, there's an unintentional side-effect when setting acceleratedRendering to true in a stack; when the keyboard shows up, the whole card scrolls up by the height of the keyboard. I haven't found this useful very often, since it frequently scrolls the field I want to target right off the top of the screen. But if your layout accomodates that behavior it may be useful. The "showAll" fullscreenMode ensures that the full height of the stack contents are visible on screen. This means on narrower screens, left/right edges may be cropped and on wider screens there may be an extra margin. The "noBorder" mode ensures that the full width of the content is visible, which means in portrait mode you'll get a tiny little stack that fits horizontally within the width of the device, and large empty areas at top and bottom. To allow both orientations, you can use the orientationChanged message to set the fullscreenMode to either showAll or noBorder, depending on which way the device is turning. Or you can write scripts that resize and place all card controls depending on the layout you want. On 10/27/18 4:40 PM, Mike for GDC via use-livecode wrote > When I deploy it to my 8 inch Samsung Tab A (Android) it is ok in the > Landscape mode, with one exception. When I go to enter data, the keyboard > covers up some of the screen that I need to enter data. It does not scroll > up to let me get > > to the field of entry. When it is in Portrait mode I can usually see the > field but the stack only takes up about half the screen so it is very small. > When I deploy it on the Samsung S8, it is even worse in that the entire > screen is not used and therefore > > it is way too small to really use it. I would hope there is a way to take > advantage of all the screen space so as the used has a larger screen to view > and enter data. It seems the keyboard is the same size and not scaled at > all. > > > > Here are the script statements that I put in my "preopenstack" of my first > card: > > > > set the fullscreenMode of this stack to "showAll" > > put "portrait,portrait upside down,landscape left,landscape right" into > theallowed > > -- Function Call > > mobileSetAllowedOrientations theallowed > > > > I have also used the "exactfit", "noborder" and "soScale" options but they > > any help with suggestions or example code of how it should work would be > greatly appreciated. > > Thanks. > > Mike > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From alex at tweedly.net Sun Oct 28 15:14:18 2018 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 28 Oct 2018 19:14:18 +0000 Subject: Numbering lines In-Reply-To: <6E413A04-0979-4A9F-90AB-057168DB3E86@gmail.com> References: <6E413A04-0979-4A9F-90AB-057168DB3E86@gmail.com> Message-ID: <1bf11e5b-1822-d7eb-1970-d9624e04df3d@tweedly.net> David, I think you are correct - there is no magic version of split or array that will do what you want. You require to keep the line ordering completely unchanged - and Hermann's superfast method can't meet that need. The best solution (AFAIK) will be the one Mark Hsu and/or Jacqueline already gave, and indeed you already tried. However, your test was unsuccessful, because the time spent updating the progress bar swamped the (relatively small) amount of actual work to be done. Without any progress bar updates, my aging MacBookPro does 3000 lines in 14 ms (lines of 50 chars each). If you may encounter much larger data sets, then you should have a progress indicator of some kind. I would say you should NEVER update a progress bar every time round a loop without a check against doing it too frequently. The simple way is something like put the millisecs into timeLastUpdated put 50 into? kMinUpdateTime repeat .... ??? .... do something ... ??? if the millisecs - timeLastUpdated < kMinUpdateTime then ??????? ... update the scrollbar ??????? put the millisecs into timeLastUpdated ??? end if where end repeat NB kMinUpdateTime should be adjusted depending on how important the updates are, and how frequently you want them I'd say rarely below 50ms - I'd usually use 200ms or longer. -- Alex. On 28/10/2018 18:14, David V Glasgow via use-livecode wrote: > Thanks for this, although I?m not sure I understand. In fact I am sure I don?t. I know how amazingly fast the array method is, I use it elsewhere in the same stack, and it is great. > > I also don?t understand the distinction between line numbering and indexing. If I was guessing, I would go for line numbering prepends to each line in a text field a number, and indexing is adding a numerical key to a database or array. The former is what I described in my original post. > > The reason the issue arrises is because some of the text/chat message records I referred to have the date and time stamps stripped out. So in the following exchange? > > 1757 Shadowknave: U gotta b there > 1758 What_goes_Moo: kk > 1759 Shadowknave: no let down? > 1760 What_goes_Moo: kk > 1761 Shadowknave: U b there 8? > 1762 What_goes_Moo: I wil > > ? lines 2 and 4 would be identical but for the line number I added via the script. And of course, the integrity of the dialogue must be maintained. > > I had believed that collapsing duplicates and alphabetising are unavoidable with split. If there is an array method which doesn?t mess with the text message order or content, then I would be delighted. Is that what this is below, but I haven?t appreciated it? > > Cheers, > > David G > > >> On 28 Oct 2018, at 1:47 pm, hh via use-livecode wrote: >> >>> David G. wrote: >>> Thanks Geoff, I did play with Split, but one of the reasons for numbering >>> is to make any identical lines unique. With split, for any that are not, >>> all but one is deleted. So definitely not the result I wanted. >> I am not Geoff (who played with the simple array methods I suggested). >> But your post attacks indirectly my suggested handlers below as wrong, as if >> they would not hit your question. >> >> My handlers (which are at least 600 times faster than your first script) >> output exactly the same what your first script outputs, seen apart from the >> optional delimiter. >> >>> So definitely not the result I wanted. >> LOL: You mention above the "unique"-side-condition the first time... >> >> With your new side condition from above several others (and I) know also >> how this is doable very fast, once again using arrays. And it is an >> invertible method, that is, the original text is exactly restorable. >> >> But first post YOU your new handler, to see *all* your new side conditions, >> that is, or to see what you really want: >> Certainly not a line numbering, rather indexing a text file. >> >>>>>> David G. wrote: [This is the first script] >>>>>> However?. >>>>>> Sometimes I want to prefix each line with the line number, and do this: >>>>>> >>>>>> put 1 into tcount >>>>>> repeat for each line j in it >>>>>> put tcount & j into line tcount of it >>>>>> put tcount + 1 into tcount >>>>>> set the thumbpos of scrollbar "filterprog" to tcount >>>>>> end repeat >>>>>> put it into field ?numberedtext? >>>>>> >>>>>> I use ?it? because of a dim memory (superstition? Myth?) from long ago that >>>>>> it is faster than an arbitrarily named variable. Still, the whole process >>>>>> is pretty darned slow. Any brilliant suggestions? >>>> Geoff C. wrote: >>>> And of course if retaining the order isn't critical you could just go with: >>>> >>>> function numberText T,D >>>> split T by cr >>>> combine T by cr and D >>>> return T >>>> end numberText >>>> >>>> function unNumberText T,D >>>> split T by cr and D >>>> combine T by cr >>>> return T >>>> end unNumberText >>>>> Hermann H. wrote: >>>>> 1. Besides removing scroll-update, which takes most of the time, you could >>>>> try the following array-methods (which are essentially from my stack >>>>> >>>>> http://forums.livecode.com/viewtopic.php?p=101301#p101301 >>>>> , see there >>>>> card "LineNums, tab "Nb2"). >>>>> >>>>> This needs here on a medium fast machine (Mac mini, 2.5GHz) in average >>>>> with LC 9.0.1 (which is at about 30% faster than LC 8.1.10 with that): >>>>> >>>>> 680 ms for 10000 lines to add the line numbers, >>>>> 650 ms for 10000 lines to remove the line numbers, >>>>> both incl. the field update (a lot of long lines are to break). >>>>> >>>>> -- Add "inline line numbers" [-hh fecit, 2014] >>>>> -- Uses separator ": " (In LC 6 use one single char, remove below needs that) >>>>> on mouseUp >>>>> lock screen; lock messages >>>>> put the millisecs into m1 >>>>> set cursor to watch >>>>> put fld "IN" into T >>>>> split T by return >>>>> put the keys of T into K >>>>> sort K numeric >>>>> repeat for each line L in K >>>>> put cr & L & ": " & T[L] after S --> change separator here >>>>> end repeat >>>>> set text of fld "OUT" to char 2 to -1 of S >>>>> put -1+the num of lines of S & " lines: " & \ >>>>> the millisecs -m1 & " ms" into fld "timing" >>>>> end mouseUp >>>>> >>>>> -- Remove "inline line numbers" [-hh fecit, 2014] >>>>> -- Uses separator ": " (the above, in LC 6 you have to use one single char) >>>>> on mouseUp >>>>> lock screen; lock messages >>>>> put the millisecs into m1 >>>>> set cursor to watch >>>>> put the text of fld "OUT" into S >>>>> split S by return and ": " --> change separator here >>>>> put the keys of S into K >>>>> sort K numeric >>>>> repeat for each line L in K >>>>> put cr & S[L] after T >>>>> end repeat >>>>> put char 2 to -1 of T into fld "IN2" >>>>> put -1+the num of lines of T & " lines: " & \ >>>>> the millisecs -m1 & " ms : " & (fld "IN2" is fld "IN") into fld "timing" >>>>> end mouseUp >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Oct 28 15:24:05 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 28 Oct 2018 14:24:05 -0500 Subject: Numbering lines In-Reply-To: <6E413A04-0979-4A9F-90AB-057168DB3E86@gmail.com> References: <6E413A04-0979-4A9F-90AB-057168DB3E86@gmail.com> Message-ID: <983d091f-77cb-cdb9-47ff-514fea8743da@hyperactivesw.com> You're right, split deletes duplicates. In fact, I use it as a quick way to do just that. I don't see any way to add line numbers without looking at each line. But you could keep a counter in a variable and put the text into an array with the counter integer as the key. That might be faster than keeping a text list. I haven't followed this thread closely, so probably that's already been suggested. I think if you remove the speed hit that updates the field scroll, it might get fast enough. On 10/28/18 1:14 PM, David V Glasgow via use-livecode wrote: > I had believed that collapsing duplicates and alphabetising are unavoidable with split. If there is an array method which doesn?t mess with the text message order or content, then I would be delighted. Is that what this is below, but I haven?t appreciated it? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Oct 28 15:32:21 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 28 Oct 2018 14:32:21 -0500 Subject: Native Android widgets In-Reply-To: References: <166bba2a350.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5606a32f-f965-82ce-113d-8516997be8c2@krutt.org> Message-ID: That's for the answer, regardless of length. ;) The scripted native field still works so I can use that. There is no replacement for the native button though. On 10/28/18 2:04 PM, JJS via use-livecode wrote: > well that answer of me was a bit short. > > But i like the answer/ask. > > And i'm using a normal field but on top of that i placed an equal size > transparent graphic. > > The mouseup goes thru transparent parts which in this case was convenient. > > I don't know exactly anymore why i did it, but it prevented some other > issue with the keyboard or something with shifting. > > When i recall the exact reason i will tell > > > Sphere > > Op 28-10-2018 om 19:58 schreef JJS via use-livecode: >> Nope, i'm still not using them >> >> >> Op 28-10-2018 om 18:04 schreef J. Landman Gay via use-livecode: >>> Has anyone else tried the native Android button and field widgets? >>> When I use the field widget, text entered into the field isn't >>> displayed. I figured out it was placed below the bottom edge, out of >>> view. There isn't a way to adjust the textheight so I can't make it >>> visible. This is a single line entry field. >>> >>> The Android button has a label assigned but it isn't displayed >>> either. The button is blank. >>> >>> I'm just checking to see if I need to submit a bug report. >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Sun Oct 28 15:51:37 2018 From: hh at hyperhh.de (hh) Date: Sun, 28 Oct 2018 20:51:37 +0100 Subject: Numbering lines Message-ID: <0C3194DC-F6DD-4FB8-AA19-841A67EE8200@hyperhh.de> >> David G. wrote: >> Thanks Geoff, I did play with Split, but one of the reasons for numbering >> is to make any identical lines unique. With split, for any that are not, >> all but one is deleted. So definitely not the result I wanted. From that previous answer I concluded you intend to index a text file, that is to find different lines of a text and save them together with their line number offsets in the original. But now (after your last post) I think you want still a simple line numbering. But this is what my handlers do: Even if you have 10000 identical lines then they are numbered, as they appear, from 1 up to 10000. Your answer shows that you didn't even try ... (Following the proposal of Geoff C. here once again the methods as functions: -- D is the separator for numbers and text lines, usually space or ": " -- T is the input text, delimited with return -- prepends the number and separator to each line: function addLineNumbers D,T split T by return put the keys of T into K sort K numeric repeat for each line L in K put cr & L & D & T[L] after S end repeat return char 2 to -1 of S end addLineNumbers -- D is the separator for numbers and text lines, usually space or ": " -- T is the input text, delimited with return -- removes the number and separator from each line: function removeLineNumbers D,T split T by return and D put the keys of T into K sort K numeric repeat for each line L in K put cr & T[L] after S end repeat return char 2 to -1 of S end removeLineNumbers > David G. wrote: > Thanks for this, although I?m not sure I understand. In fact I am sure I don?t. I know how amazingly fast the array method is, I use it elsewhere in the same stack, and it is great. > > I also don?t understand the distinction between line numbering and indexing. If I was guessing, I would go for line numbering prepends to each line in a text field a number, and indexing is adding a numerical key to a database or array. The former is what I described in my original post. > > The reason the issue arrises is because some of the text/chat message records I referred to have the date and time stamps stripped out. So in the following exchange? > > 1757 Shadowknave: U gotta b there > 1758 What_goes_Moo: kk > 1759 Shadowknave: no let down? > 1760 What_goes_Moo: kk > 1761 Shadowknave: U b there 8? > 1762 What_goes_Moo: I wil > > ? lines 2 and 4 would be identical but for the line number I added via the script. And of course, the integrity of the dialogue must be maintained. > > I had believed that collapsing duplicates and alphabetising are unavoidable with split. If there is an array method which doesn?t mess with the text message order or content, then I would be delighted. Is that what this is below, but I haven?t appreciated it? > From hh at hyperhh.de Sun Oct 28 16:06:35 2018 From: hh at hyperhh.de (hh) Date: Sun, 28 Oct 2018 21:06:35 +0100 Subject: Numbering lines Message-ID: <1B01CDFB-27E8-4088-8CD8-D856A3A07A2D@hyperhh.de> > Alex T. wrote: > You require to keep the line ordering completely unchanged - > and Hermann's superfast method can't meet that need. > JLG wrote: > You're right, split deletes duplicates. In fact, I use it as a quick way > to do just that. You are both spendidly wrong: Could you please simply try my functions and read the dictionary in order to understand why you are wrong? Please! Is it not yet Halloween ... -- D is the separator for numbers and text lines, usually space or ": " -- T is the input text, delimited with return -- prepends the number and separator to each line: function addLineNumbers D,T split T by return put the keys of T into K sort K numeric repeat for each line L in K put cr & L & D & T[L] after S end repeat return char 2 to -1 of S end addLineNumbers -- D is the separator for numbers and text lines, usually space or ": " -- T is the input text, delimited with return -- removes the number and separator from each line: function removeLineNumbers D,T split T by return and D put the keys of T into K sort K numeric repeat for each line L in K put cr & T[L] after S end repeat return char 2 to -1 of S end removeLineNumbers From hh at hyperhh.de Sun Oct 28 17:06:22 2018 From: hh at hyperhh.de (hh) Date: Sun, 28 Oct 2018 22:06:22 +0100 Subject: Numbering lines Message-ID: <075CD0EB-8A73-434C-8E80-BA2467FEDEAB@hyperhh.de> What's interesting with that is once again a comparison LC 6 against LC 9. I tested with 10000 lines of text (King James bible, Genesis up to 5|16) and *non-wrapping fields*, separator tab: LC 9.0.1 needs in average 370 ms for numbering, 330 ms for denumbering, LC 6.7.11 needs in average 170 ms for numbering, 140 ms for denumbering. Without field update, only the text handling, this reduces to: LC 9.0.1 needs in average 75 ms for numbering, 75 ms for denumbering, LC 6.7.11 needs in average 45 ms for numbering, 18 ms for denumbering. So, LC 9 has become pretty fast, but reaches, at least with arrays and field updates, not yet the speed of LC 6 (hardware used: Mac mini, 2.5 GHz). From matthias_livecode_150811 at m-r-d.de Sun Oct 28 18:26:45 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 28 Oct 2018 23:26:45 +0100 Subject: Is it not possible to write to the user preference folder in Mojave? Message-ID: Hi. Today i was informed by a customer that my app BRx Converter is not able to write data to the preference folder ~/library/preferences. The app normally writes some registration info after successful registration to that folder. After that the app is switched from demo to full mode. But under Mojave the app stays in Demo mode. Is there something special in Mojave? Regards, Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de From alex at tweedly.net Sun Oct 28 20:27:02 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 29 Oct 2018 00:27:02 +0000 Subject: Numbering lines In-Reply-To: <1B01CDFB-27E8-4088-8CD8-D856A3A07A2D@hyperhh.de> References: <1B01CDFB-27E8-4088-8CD8-D856A3A07A2D@hyperhh.de> Message-ID: <65ad2afe-4163-7ac8-551a-a2a28cb9111c@tweedly.net> My apologies Hermann. I had not been following the original thread closely, and got confused by the embedded quoting in the later messages. I was looking at Geoff's code - not yours - and he explicitly said " And of course if retaining the order isn't critical " So I agree your array method does indeed work properly. However, it is rather 'splendidly' slow compared to the simpler method as recommended by Mark H and myself :-); it takes almost twice as long on my test cases (between 30,000 and 300,000 lines of moderate length, highly repetitive, 9.0.0, Mac Book Pro circa 2011). Full code below .... -- Alex on mouseUp ?? local tData1, tData2, time1, temp, tText ?? repeat 30000 times ????? put "this is a medium length line that can be updated" &CR after tText ?? end repeat ?? local tWith ?? put prependLineNumbers(tText) into tWith ?? put prependLineNumbers2(tText) into tWith ?? --?? put prependLineNumbersProgress(tText) into tWith end mouseup function prependLineNumbers pText ?? local timeLastUpdated, time1, time2, temp ?? local tCount ?? put the number of lines in pText into tCount ?? put the millisecs into time1 ?? local I ?? repeat for each line L in pText ????? add 1 to I ????? put I && L &CR after temp ?? end repeat ?? put tCount && the millisecs - time1 &CR after msg ?? return temp end prependLineNumbers function prependLineNumbers2 pText ?? local timeLastUpdated, time1, time2, temp ?? local tCount, S, K ?? put the number of lines in pText into tCount ?? put the millisecs into time1 ?? split pText by return ?? put the keys of pText into K ?? sort K numeric ?? repeat for each line L in K ????? put cr & L && pText[L] after S --> change separator here ?? end repeat ?? put tCount && the millisecs - time1 &CR after msg ?? return char 2 to -1 of S end prependLineNumbers2 On 28/10/2018 20:06, hh via use-livecode wrote: >> Alex T. wrote: >> You require to keep the line ordering completely unchanged - >> and Hermann's superfast method can't meet that need. >> JLG wrote: >> You're right, split deletes duplicates. In fact, I use it as a quick way >> to do just that. > You are both spendidly wrong: > Could you please simply try my functions and read the dictionary in order > to understand why you are wrong? Please! > > Is it not yet Halloween ... > > -- D is the separator for numbers and text lines, usually space or ": " > -- T is the input text, delimited with return > -- prepends the number and separator to each line: > function addLineNumbers D,T > split T by return > put the keys of T into K > sort K numeric > repeat for each line L in K > put cr & L & D & T[L] after S > end repeat > return char 2 to -1 of S > end addLineNumbers > > -- D is the separator for numbers and text lines, usually space or ": " > -- T is the input text, delimited with return > -- removes the number and separator from each line: > function removeLineNumbers D,T > split T by return and D > put the keys of T into K > sort K numeric > repeat for each line L in K > put cr & T[L] after S > end repeat > return char 2 to -1 of S > end removeLineNumbers > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Sun Oct 28 20:37:09 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Oct 2018 17:37:09 -0700 Subject: Numbering lines In-Reply-To: <65ad2afe-4163-7ac8-551a-a2a28cb9111c@tweedly.net> References: <1B01CDFB-27E8-4088-8CD8-D856A3A07A2D@hyperhh.de> <65ad2afe-4163-7ac8-551a-a2a28cb9111c@tweedly.net> Message-ID: On Sun, Oct 28, 2018 at 5:27 PM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > My apologies Hermann. I had not been following the original thread > closely, and got confused by the embedded quoting in the later messages. > I was looking at Geoff's code - not yours - and he explicitly said " > > And of course if retaining the order isn't critical " > We have gone wildly down a troublesome path, but for the record, I posted two different sets of code. The first bit was functions based on Hermann's original code, and retained the order given. The second code was the simplified and not-order-retaining version as an alternative. From gcanyon at gmail.com Sun Oct 28 20:43:13 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 28 Oct 2018 17:43:13 -0700 Subject: Numbering lines In-Reply-To: References: <1B01CDFB-27E8-4088-8CD8-D856A3A07A2D@hyperhh.de> <65ad2afe-4163-7ac8-551a-a2a28cb9111c@tweedly.net> Message-ID: (That said, yeah, repeat for each line is going to be faster) On Sun, Oct 28, 2018 at 5:37 PM Geoff Canyon wrote: > > > On Sun, Oct 28, 2018 at 5:27 PM Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> My apologies Hermann. I had not been following the original thread >> closely, and got confused by the embedded quoting in the later messages. >> I was looking at Geoff's code - not yours - and he explicitly said " >> >> And of course if retaining the order isn't critical " >> > > We have gone wildly down a troublesome path, but for the record, I posted > two different sets of code. The first bit was functions based on Hermann's > original code, and retained the order given. The second code was the > simplified and not-order-retaining version as an alternative. > From waprothero at gmail.com Sun Oct 28 20:51:31 2018 From: waprothero at gmail.com (William Prothero) Date: Sun, 28 Oct 2018 17:51:31 -0700 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: <749F4156-2216-42AF-A9E3-F29503FF4067@hyperhh.de> References: <749F4156-2216-42AF-A9E3-F29503FF4067@hyperhh.de> Message-ID: <41283281-37C6-4EE1-BDEE-5296544678FF@gmail.com> Hermann: You are sooo DARN CREATIVE! I?m awed. Bill > On Oct 28, 2018, at 10:54 AM, hh via use-livecode wrote: > > We already know that this is not possible by "ordinary" controls > because the browser widget has a native layer. > (Except we"bundle" your controls in a floating window.) > > But there is one way more (I use it for updating my Textedit > widget). > > Of course you can overlay a browser widget with a browser widget: > > Make using HTML/CSS a "Bar" (containing buttons etc.). > The HTML/CSS of that is pretty simple and changeable without deep > knowledge of HTML or CSS. > You get a clickCallback via a javaScriptHandler and can simply use > the scripts of your LCS objects from that javaScriptHandler. > > I made a simple example stack with 6 rounded buttons here, may be > I'll update it from time to time: > > http://forums.livecode.com/viewtopic.php?p=172729#p172729 > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sun Oct 28 21:06:29 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 29 Oct 2018 01:06:29 +0000 Subject: how to properly use the fullscreenmode and screen scaling References: <002601d46e3d$b5915cd0$20b41670$@golddogcoffee.com> Message-ID: On 10/27/18 11:40 AM, Mike for GDC via use-livecode wrote: > I am new to LC and have learned much so far but I am having an issue with > the proper scaling of my app on different size screens. I have created the > app with the dimensions of 913 w X 636 h. All looks great on the desktop. I've spent 2 years on "this subject" and, like Jacque says The "showAll" fullscreenMode ensures that the full height of the stack contents are visible on screen. This means on narrower screens, left/right edges may be cropped and on wider screens there may be an extra margin." So we that for complex layout, but for simple layout, but if you want to do you own geometry, I finally got working across numerous Android devices, just yesterday! Disclaimer: there more this that meets the eye. But we have a hack and works. You see, Android doesn't know the screenRect until *after* it rendered a card. No amount of preopenstack or openstack will work. What works is (Andre, God bless him, figured this out:) wait until one card is rendered for doing any geometry Note, the "wait with messages" are important in Android, can't tell you why, but eliminate then and you get crashes -- Stack card 1 - "loader" card 2 - your main app or module -- Card 1 "loader" script openCard wait 80 milliseconds with messages go next card end openCard -- card 2 "main module (app)" on opencard # you must give the device to "register" the coords! send "updateUI" to this card in 100 milliseconds end opencard on resizeStack updateUI end resizeStack command updateUI put the long id of widget "body" of card "SivaSivaBrowser" into tBrowser put the rect of card "SivaSivaBrowser" into sCardRect #store in local Variable for later put item 3 of sCardRect into tWidth put item 4 of sCardRect into tHeight put the loc of card "SivaSivaBrowser" into tCardLoc set the loc of widget "spinner" of card "SivaSivaBrowser" to tCardLoc set the loc of fld "Cancel" of card "SivaSivaBrowser" to (item 1 of tCardLoc, item 2 of tCardLoc+200) put (0,0,tWidth,(tHeight - 50)) into tBrowserRect set the rect of tBrowser to tBrowserRect set loc group "footer" of card "SivaSivaBrowser" to ( round(tWidth/2),tHeight - 25) # there four widgets on the footer put tWidth/4 into tUnit set the loc of widget "go-home-portal" of card "SivaSivaBrowser" to (tUnit/2,tHeight-25) set the loc of widget "add-favorites" of card "SivaSivaBrowser" to (tUnit*1.5,tHeight-25) set the loc of widget "share" of card "SivaSivaBrowser" to (tUnit*2.5,tHeight-25) set the loc of widget "settings-gear" of card "SivaSivaBrowser" to (tUnit*3.5,tHeight-25) end updateUI # works on portrait and landscape: on Oreo, Nougat, 2 Pixels, all different screen sizes. Of course are only <10 controls to deal with. From tom at makeshyft.com Sun Oct 28 21:57:07 2018 From: tom at makeshyft.com (Tom Glod) Date: Sun, 28 Oct 2018 21:57:07 -0400 Subject: Will it ever be possible place controls over browser widget? In-Reply-To: <41283281-37C6-4EE1-BDEE-5296544678FF@gmail.com> References: <749F4156-2216-42AF-A9E3-F29503FF4067@hyperhh.de> <41283281-37C6-4EE1-BDEE-5296544678FF@gmail.com> Message-ID: excellent demo .... thank you......just out of curiosity....is it just on my system ? or the right click grab of the widget doesn'twork? On Sun, Oct 28, 2018 at 8:51 PM, William Prothero via use-livecode < use-livecode at lists.runrev.com> wrote: > Hermann: > You are sooo DARN CREATIVE! I?m awed. > Bill > > > On Oct 28, 2018, at 10:54 AM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > We already know that this is not possible by "ordinary" controls > > because the browser widget has a native layer. > > (Except we"bundle" your controls in a floating window.) > > > > But there is one way more (I use it for updating my Textedit > > widget). > > > > Of course you can overlay a browser widget with a browser widget: > > > > Make using HTML/CSS a "Bar" (containing buttons etc.). > > The HTML/CSS of that is pretty simple and changeable without deep > > knowledge of HTML or CSS. > > You get a clickCallback via a javaScriptHandler and can simply use > > the scripts of your LCS objects from that javaScriptHandler. > > > > I made a simple example stack with 6 rounded buttons here, may be > > I'll update it from time to time: > > > > http://forums.livecode.com/viewtopic.php?p=172729#p172729 > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Sun Oct 28 22:15:20 2018 From: hh at hyperhh.de (hh) Date: Mon, 29 Oct 2018 03:15:20 +0100 Subject: Numbering lines Message-ID: Alex, you and JLG are important LiveCoders. What you say has double weight. From that alone you should double check what you claim to be true. Wrong assertions are no argument against a method but speed is one, of course. Anyway, it is fine that David G. has now a fast way to do his work. From hh at hyperhh.de Sun Oct 28 22:29:14 2018 From: hh at hyperhh.de (hh) Date: Mon, 29 Oct 2018 03:29:14 +0100 Subject: Will it ever be possible place controls over browser widget? Message-ID: <04378583-C5B3-4933-8900-087896547CB4@hyperhh.de> > Tom G. wrote: > ...just out of curiosity....is it just on my system ? or the right click > grab of the widget doesn't work? Sorry, I wrote this while updating my TextEdit widget (which will allow to grab the widget). But the browser widget doesn't pass "mouseDown", so the mouseDown handler here is not usable. But you could use, for example, the "ControlHandles" approach for dragging (see "Sample Stacks"). From jacque at hyperactivesw.com Mon Oct 29 00:17:02 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 28 Oct 2018 23:17:02 -0500 Subject: Numbering lines In-Reply-To: References: Message-ID: On 10/28/18 9:15 PM, hh via use-livecode wrote: > Alex, > > you and JLG are important LiveCoders. What you say has double weight. > From that alone you should double check what you claim to be true. Well, at least I have finally become "splendid" at something. I can't decide whether you are being rude or just misunderstanding how your words appear in a different culture. To an American, the above is either an insult or a lecture. You should probably not assign so much weight to what I say here. Sometimes I'm just human. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From hh at hyperhh.de Mon Oct 29 07:16:12 2018 From: hh at hyperhh.de (hh) Date: Mon, 29 Oct 2018 12:16:12 +0100 Subject: Numbering lines Message-ID: <0670C8D8-9723-4DAF-B049-1F7DF1E6E4E2@hyperhh.de> > JLG wrote: > > > hh wrote: > > Alex, > > you and JLG are important LiveCoders. What you say has double weight. > > From that alone you should double check what you claim to be true. > > Well, at least I have finally become "splendid" at something. > > I can't decide whether you are being rude or just misunderstanding how > your words appear in a different culture. To an American, the above is > either an insult or a lecture. The first two sentences are a praise, in every culture. The third sentence is a simple advice, no "lecture". If it is an insult for you (or Alex) then I deeply apologize. Although I don't understand what's "insulting" with that. It can't be the fact that I gave that advice: What's objectively wrong that's wrong, no matter who said it. > You should probably not assign so much weight to what I say here. > Sometimes I'm just human. You don't really want that ... From dvglasgow at gmail.com Mon Oct 29 08:41:24 2018 From: dvglasgow at gmail.com (David V Glasgow) Date: Mon, 29 Oct 2018 12:41:24 +0000 Subject: Numbering lines In-Reply-To: <0670C8D8-9723-4DAF-B049-1F7DF1E6E4E2@hyperhh.de> References: <0670C8D8-9723-4DAF-B049-1F7DF1E6E4E2@hyperhh.de> Message-ID: <036F38D3-FB4F-4D8C-852D-9D7C958523E6@gmail.com> Thanks to everyone who helped me on this. Apologies if I misdirected the discussion, but even that was very instructive. My mouth hung open when I saw the cost of updating the progress bar every time through a loop. I guess I have become sloppy about time saving because most operations seem ?quick enough? to me ?and also it seems counterintuitive that adding a conditional line inside the loop would speed things up. Useful information on arrays too. Cheers, David G From alex at tweedly.net Mon Oct 29 09:44:36 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 29 Oct 2018 13:44:36 +0000 Subject: Numbering lines In-Reply-To: References: Message-ID: Yeah, I said something that was wrong - and I did apologize and will happily do so again. And I managed to get "two people with one stone" and mis-describe both your and Geoff's valuable inputs. So I apologize again to both of you, and anyone else I inadvertently knocked on the way past. But, as you say, the important thing is that David got a couple of good answers, and anyone searching this thread in a few years time will see the answer, and not the human frailty of communication :-) Alex. On 29/10/2018 02:15, hh via use-livecode wrote: > Alex, > > you and JLG are important LiveCoders. What you say has double weight. > From that alone you should double check what you claim to be true. > > Wrong assertions are no argument against a method but speed is one, > of course. > > Anyway, it is fine that David G. has now a fast way to do his work. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From colinholgate at gmail.com Mon Oct 29 10:18:05 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 29 Oct 2018 10:18:05 -0400 Subject: how to properly use the fullscreenmode and screen scaling In-Reply-To: References: <002601d46e3d$b5915cd0$20b41670$@golddogcoffee.com> Message-ID: <9ED975F8-E3F7-4062-BB40-837661DAACAD@gmail.com> No comment about the main code you showed, but what you said about showAll isn?t quite right. All of the card will always be visible. On devices wider than the horizontal ratio of the card, extra content will be revealed from off of the left and right of the card, the height of the card will fill the height of the device screen. On devices that are a narrower ratio than the horizontal ratio of the card, extra content is revealed from off of the top and bottom of the card, the width of the card will fill the width of the device screen. No combination should ever crop into the card area. The easiest way to use showAll is to have all of the important things within the card window, then have enough extra stuff off all edges. Until recently I would make the card window be 16:9, and have enough content above and below the card to cope with iPad. That approach worked well for all devices from iPhone 5 to iPad (16:9 to 4:3, using landscape as an example). With the super wide recent Samsung phones (and Pixel 3 too), and the even wider iPhone X, the ratio gets as high as 19.5:9. Now my approach is to have a 16:9 card, extra content up to 4:3 as before, but now extra content off the left and right to reach a ratio of 20:9. My typical 16:9 size is 1024x576, and 20:9 gives a familiar looking 1280x576. So, card window of 1024x576 and all important objects within that space, extra background above and below the card, to give 1024x768, and extra content off the left and right to give 1280x576. You could of course have backgrounds that are 1280x768, that would do no harm. The parts in the corners will never be seen. On top of all that you may well want to place some things using code, but remember that the later Android phones, and the iPhone X, have a notch, so don?t place things at the far left center of a landscape app. From alex at tweedly.net Mon Oct 29 10:31:44 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 29 Oct 2018 14:31:44 +0000 Subject: how to properly use the fullscreenmode and screen scaling In-Reply-To: <9ED975F8-E3F7-4062-BB40-837661DAACAD@gmail.com> References: <002601d46e3d$b5915cd0$20b41670$@golddogcoffee.com> <9ED975F8-E3F7-4062-BB40-837661DAACAD@gmail.com> Message-ID: On 29/10/2018 14:18, Colin Holgate via use-livecode wrote: > On top of all that you may well want to place some things using code, but remember that the later Android phones, and the iPhone X, have a notch, so don?t place things at the far left center of a landscape app. > Should that be "far left center" or "far-left or right center" ? Are people consistent enough about rotating 90'? anti-clockwise, or do they (like me) sometimes rotate the other way ? [ I've never used a phone with a notch, so don't know if that leads to greater consistency ] Thanks Alex. From panos.merakos at livecode.com Mon Oct 29 10:54:53 2018 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 29 Oct 2018 16:54:53 +0200 Subject: [ANN] This Week in LiveCode 152 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #152 here: https://goo.gl/RDvo1H This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From paul at researchware.com Mon Oct 29 10:56:22 2018 From: paul at researchware.com (Paul Dupuis) Date: Mon, 29 Oct 2018 10:56:22 -0400 Subject: Is it not possible to write to the user preference folder in Mojave? In-Reply-To: References: Message-ID: We make and sell a couple of research applications developed in LiveCode. Increasingly, on both OSX and Windows, we are running into to customers who's permissions prevent out app from writing to locations that were once (in older OS versions) writable. In some cases, this has been due to changes the OS manufacturer (Microsoft, Apple) have made and in more cases,, institutions, business, universities, etc. are locking down computers on their networks even more than in the past. In the cases of increased institutional lock down, local IT staff have often been able to adjust the permissions. Increasingly (as with the next release of our main app) we have moved to creating a folder in specialFolderPath("Documents") for our company and placing all app files in their as it is the one of the only fully cross platform places to be both read and writable. On 10/28/2018 6:26 PM, Matthias Rebbe via use-livecode wrote: > Hi. > > Today i was informed by a customer that my app BRx Converter is not able to write data to the preference folder ~/library/preferences. > > The app normally writes some registration info after successful registration to that folder. After that the app is switched from demo to full mode. > But under Mojave the app stays in Demo mode. Is there something special in Mojave? > > Regards, > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Mon Oct 29 11:06:41 2018 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 29 Oct 2018 11:06:41 -0400 Subject: how to properly use the fullscreenmode and screen scaling In-Reply-To: References: <002601d46e3d$b5915cd0$20b41670$@golddogcoffee.com> <9ED975F8-E3F7-4062-BB40-837661DAACAD@gmail.com> Message-ID: <8A20690E-0402-4426-B48B-82FFD25B2F2F@gmail.com> That?s fair enough. Rotating a phone so the bottom of the portrait phone is now to the right, is a right-handed way of thinking I guess! So yes, avoid the right middle too, for the benefit of left-handed people. > On Oct 29, 2018, at 10:31 AM, Alex Tweedly via use-livecode wrote: > > On 29/10/2018 14:18, Colin Holgate via use-livecode wrote: >> On top of all that you may well want to place some things using code, but remember that the later Android phones, and the iPhone X, have a notch, so don?t place things at the far left center of a landscape app. >> > Should that be "far left center" or "far-left or right center" ? > Are people consistent enough about rotating 90' anti-clockwise, or do they (like me) sometimes rotate the other way ? > [ I've never used a phone with a notch, so don't know if that leads to greater consistency ] > > Thanks > Alex. From brahma at hindu.org Mon Oct 29 11:14:59 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 29 Oct 2018 15:14:59 +0000 Subject: Mysteries of Me Message-ID: I thought I had a grip on "me" But in a script that is assigned to a stack, one assumes that "me" refers to stack itself. But the auto-suggestion on the SE popup menu generates an error on the following line: * on openstack put url ("binfile:" & path_Modules()& "listen/collection.json") into tContainer put JSONToArray(tContainer) into sCollectionA # must have net connection, otherwise take to My Audio if not connectivity_PingServer() then dialog_CustomMsg "No internet connection? Going to off-line library." [ERROR:} go card [on tab on auto-suggestion] "listen-my-audio" of me end if end openstack # I have to use: * **on openstack put url ("binfile:" & path_Modules()& "listen/collection.json") into tContainer put JSONToArray(tContainer) into sCollectionA # must have net connection, otherwise take to My Audio if not ******connectivity_PingServer()** then dialog_CustomMsg "No internet connection? Going to off-line library." go to card "listen-my-audio" of this stack end if end openstack #Then the SE will compile the script* # Why is "me" generating an error? # It should not be a suggestion if it is. Dictionary says: *"The *me* keyword is a reference to the object whosescript contains the current handler. If *me* is executed in behavior script, then *me* refers to the object that is executing the behavior script." on openStack ... "me" ... one would think, refer to cards in the stack? Could it be that the function **connectivity_PingServer() is called from a back script -- which has no binary "cards" such** BR From keith.clarke at me.com Mon Oct 29 11:32:35 2018 From: keith.clarke at me.com (Keith Clarke) Date: Mon, 29 Oct 2018 15:32:35 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? Message-ID: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> Folks, Is there a simple way to find the offset of a character from the ?right? end of a string, rather than the beginning - or alternatively get a list of all occurrences? I?m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ?/? character. Thanks & regards, Keith From devin_asay at byu.edu Mon Oct 29 11:49:51 2018 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 29 Oct 2018 15:49:51 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> Message-ID: On Oct 29, 2018, at 9:32 AM, Keith Clarke via use-livecode wrote: > > Folks, > Is there a simple way to find the offset of a character from the ?right? end of a string, rather than the beginning - or alternatively get a list of all occurrences? > > I?m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ?/? character. > > Thanks & regards, > Keith There was a discussion on this topic on the list a few years ago, and I saved these functions in my script library: From Peter Brigham: These are utility functions I use constantly for text processing. Offsets(str,cntr) returns a comma-delimited list of all the offsets of str in ctnr. Lineoffsets(str,cntr) does the same with lineoffsets. Then you can interate over the list of offsets to do whatever you want to each instance of str in cntr. I keep them in a utility stack that is in the stackinuse, so it is available to all stacks. I don't use regex, as I have never gotten the regex syntax to stick in my head firmly enough to find it natural, and in any case doing it by script turns out to be as fast or faster. Peter's lineOffsets function returns a line number for each found char offset. I added a function that returns only unique line numbers. function offsets str,cntr -- returns a comma-delimited list of -- all the offsets of str in cntr put "" into oList put 0 into startPoint repeat put offset(str,cntr,startPoint) into os if os = 0 then exit repeat add os to startPoint put startPoint & "," after oList end repeat if oList = "" then return "0" return item 1 to -1 of oList end offsets function lineOffsetsAll str,cntr -- returns a comma-delimited list of -- all the lineoffsets of str in cntr # (returns a line number for ALL instances) put offsets(str,cntr) into charList if charList = "0" then return "0" put the number of items of charList into nbr put "" into oList repeat for each item n in charList put the number of lines of (char 1 to n of cntr) \ & "," after oList end repeat return item 1 to -1 of oList end lineOffsetsAll # added by Devin Asay function lineOffsets pStr,pSearchTxt # (returns only unique line numbers) put empty into tList put 0 into tStartLine repeat put lineOffset(pStr,pSearchTxt,tStartLine) into tLineNum if tLineNum = 0 then exit repeat add tLineNum to tStartLine put tStartLine & "," after tList end repeat if tList is empty then return "0" return item 1 to -1 of tList end lineOffsets Hope this helps. Devin Devin Asay Director Office of Digital Humanities Brigham Young University From keith.clarke at me.com Mon Oct 29 11:54:16 2018 From: keith.clarke at me.com (Keith Clarke) Date: Mon, 29 Oct 2018 15:54:16 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> Message-ID: Perfect, thanks Devin - I was hoping to see ?offsets? in the docs under ?offset?, so this will do nicely! :-) Best, Keith > On 29 Oct 2018, at 15:49, Devin Asay via use-livecode wrote: > > On Oct 29, 2018, at 9:32 AM, Keith Clarke via use-livecode wrote: >> >> Folks, >> Is there a simple way to find the offset of a character from the ?right? end of a string, rather than the beginning - or alternatively get a list of all occurrences? >> >> I?m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ?/? character. >> >> Thanks & regards, >> Keith > > > There was a discussion on this topic on the list a few years ago, and I saved these functions in my script library: > > From Peter Brigham: > These are utility functions I use constantly for text processing. Offsets(str,cntr) returns a comma-delimited list of all the offsets of str in ctnr. Lineoffsets(str,cntr) does the same with lineoffsets. Then you can interate over the list of offsets to do whatever you want to each instance of str in cntr. I keep them in a utility stack that is in the stackinuse, so it is available to all stacks. I don't use regex, as I have never gotten the regex syntax to stick in my head firmly enough to find it natural, and in any case doing it by script turns out to be as fast or faster. > > Peter's lineOffsets function returns a line number for each found char offset. I added a function that returns only unique line numbers. > > function offsets str,cntr > -- returns a comma-delimited list of > -- all the offsets of str in cntr > put "" into oList > put 0 into startPoint > repeat > put offset(str,cntr,startPoint) into os > if os = 0 then exit repeat > add os to startPoint > put startPoint & "," after oList > end repeat > if oList = "" then return "0" > return item 1 to -1 of oList > end offsets > > function lineOffsetsAll str,cntr > -- returns a comma-delimited list of > -- all the lineoffsets of str in cntr > # (returns a line number for ALL instances) > put offsets(str,cntr) into charList > if charList = "0" then return "0" > put the number of items of charList into nbr > put "" into oList > repeat for each item n in charList > put the number of lines of (char 1 to n of cntr) \ > & "," after oList > end repeat > return item 1 to -1 of oList > end lineOffsetsAll > > # added by Devin Asay > function lineOffsets pStr,pSearchTxt > # (returns only unique line numbers) > put empty into tList > put 0 into tStartLine > repeat > put lineOffset(pStr,pSearchTxt,tStartLine) into tLineNum > if tLineNum = 0 then exit repeat > add tLineNum to tStartLine > put tStartLine & "," after tList > end repeat > if tList is empty then return "0" > return item 1 to -1 of tList > end lineOffsets > > Hope this helps. > > Devin > > Devin Asay > Director > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Mon Oct 29 12:08:55 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 29 Oct 2018 12:08:55 -0400 Subject: ?Make Docset? updated to 3.1, DASH docset for LC now at 1.7.1 In-Reply-To: <3791FA75-22C4-431E-BE64-355A01E703DF@thehales.id.au> References: <3791FA75-22C4-431E-BE64-355A01E703DF@thehales.id.au> Message-ID: I'm going to wait on both until later today and see if they auto-update. The ipad auto-updated for me on Saturday. On Sat, Oct 27, 2018 at 10:27 PM James Hale via use-livecode < use-livecode at lists.runrev.com> wrote: > From Mike > > First of all, thanks a lot for doing this. Dash is now my default way to > > access the docs, on both my ipad and mac. I love it. > > Second, I have auto-updates turned on for both platforms, but they both > > show the LC docs at 1.6.1 > > I am glad it is useful. I to really like the presentation of Dash, > especially on my ipad. > > It is now actually version 1.7.2 > > As for the update. > It would seem that updates to user contributions are not quite automatic. > (This could be as I leave one previous version in place.) > > On the Mac go to Preferences. > Click on the "Check and Install Now" button at the bottom to jog an update > OF THE LISTING. > Select the "User-Contributions" section in the lefthand pane. > In the search area above the list of user contributed docsets, type > "livecode". > On the right of the entry for LivCode there is a popup menu which allows > you to choose which docset to install. > > On the iPad go to "Settings" and click on "User Contributed docsets" and > then on the "Update" button at the top of the screen. > At least on the iPad it seems to grab the latest (one with the higher > version number.) > > I am still getting all the "Associations" links to work so there will be a > 1.7.3 in the near future. > > > James > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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." From tom at makeshyft.com Mon Oct 29 12:19:22 2018 From: tom at makeshyft.com (Tom Glod) Date: Mon, 29 Oct 2018 12:19:22 -0400 Subject: Mysteries of Me In-Reply-To: References: Message-ID: the first version said "go card" not "go to card" :) On Mon, Oct 29, 2018 at 11:14 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > I thought I had a grip on "me" > > But in a script that is assigned to a stack, one assumes that "me" > refers to stack itself. > But the auto-suggestion on the SE popup menu generates an error on the > following line: > * > on openstack > put url ("binfile:" & path_Modules()& "listen/collection.json") into > tContainer > put JSONToArray(tContainer) into sCollectionA > > # must have net connection, otherwise take to My Audio > if not connectivity_PingServer() then > dialog_CustomMsg "No internet connection? Going to off-line library." > [ERROR:} go card [on tab on auto-suggestion] "listen-my-audio" of me > end if > end openstack > > # I have to use: > * > **on openstack > put url ("binfile:" & path_Modules()& "listen/collection.json") into > tContainer > put JSONToArray(tContainer) into sCollectionA > > # must have net connection, otherwise take to My Audio > if not ******connectivity_PingServer()** then > dialog_CustomMsg "No internet connection? Going to off-line library." > go to card "listen-my-audio" of this stack > end if > end openstack > > #Then the SE will compile the script* > # Why is "me" generating an error? > # It should not be a suggestion if it is. > > Dictionary says: > > *"The *me* keyword is a reference to the object whosescript contains the > current handler. If *me* is executed in behavior script, then *me* > refers to the object that is executing the behavior script." > > on openStack ... "me" ... one would think, refer to cards in the stack? > > Could it be that the function > > **connectivity_PingServer() > > is called from a back script -- which has no binary "cards" such** > > BR > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Mon Oct 29 17:16:58 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 21:16:58 +0000 Subject: Standalone issue ... was starting the Project Browser In-Reply-To: References: <168f01d46e09$61f16cc0$25d44640$@net> Message-ID: <5D2D3E5B-DD02-4317-9A85-AE5A2E3E2C39@iotecdigital.com> That interferes with the standalone builder, specifically auto detecting addons/plugins. It may cause other issues as well. It's a catch 22. Bob S > On Oct 27, 2018, at 12:56 , J. Landman Gay via use-livecode wrote: > > I'd be happy with a simple toggle that lets me turn on lockmessages before building. I've been accomodating that behavior for years. From bobsneidar at iotecdigital.com Mon Oct 29 17:23:18 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 21:23:18 +0000 Subject: Numbering lines In-Reply-To: References: Message-ID: Next goal, trying to be magnificant. :-) Bob S > On Oct 28, 2018, at 21:17 , J. Landman Gay via use-livecode wrote: > > Well, at least I have finally become "splendid" at something. From bobsneidar at iotecdigital.com Mon Oct 29 17:59:17 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 21:59:17 +0000 Subject: Mysteries of Me In-Reply-To: References: Message-ID: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> Me always refers to the object the script belongs to. It doesn't matter which handler it is. A script running in a behavior is like running an instance of the target object (the object with the behavior set). This allows for multiple objects with the same behavior (think datagrids calling get the dgData in other dataGrids and you will immediately see why this would be necessary). This me refers to the actual behavior object, NOT the "instance object" as it were. As far as a backscript, are you saying you have a backscript object with a behavior assigned to it?? Bob S > On Oct 29, 2018, at 08:14 , Sannyasin Brahmanathaswami via use-livecode wrote: > > I thought I had a grip on "me" From bobsneidar at iotecdigital.com Mon Oct 29 18:21:24 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 22:21:24 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> Message-ID: Looks like Devin beat me to it. :-) Bob S > On Oct 29, 2018, at 08:49 , Devin Asay via use-livecode wrote: > > On Oct 29, 2018, at 9:32 AM, Keith Clarke via use-livecode wrote: >> >> Folks, >> Is there a simple way to find the offset of a character from the ?right? end of a string, rather than the beginning - or alternatively get a list of all occurrences? >> >> I?m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ?/? character. >> >> Thanks & regards, >> Keith > > > There was a discussion on this topic on the list a few years ago, and I saved these functions in my script library: > > From Peter Brigham: > These are utility functions I use constantly for text processing. Offsets(str,cntr) returns a comma-delimited list of all the offsets of str in ctnr. Lineoffsets(str,cntr) does the same with lineoffsets. Then you can interate over the list of offsets to do whatever you want to each instance of str in cntr. I keep them in a utility stack that is in the stackinuse, so it is available to all stacks. I don't use regex, as I have never gotten the regex syntax to stick in my head firmly enough to find it natural, and in any case doing it by script turns out to be as fast or faster. > > Peter's lineOffsets function returns a line number for each found char offset. I added a function that returns only unique line numbers. > > function offsets str,cntr > -- returns a comma-delimited list of > -- all the offsets of str in cntr > put "" into oList > put 0 into startPoint > repeat > put offset(str,cntr,startPoint) into os > if os = 0 then exit repeat > add os to startPoint > put startPoint & "," after oList > end repeat > if oList = "" then return "0" > return item 1 to -1 of oList > end offsets > > function lineOffsetsAll str,cntr > -- returns a comma-delimited list of > -- all the lineoffsets of str in cntr > # (returns a line number for ALL instances) > put offsets(str,cntr) into charList > if charList = "0" then return "0" > put the number of items of charList into nbr > put "" into oList > repeat for each item n in charList > put the number of lines of (char 1 to n of cntr) \ > & "," after oList > end repeat > return item 1 to -1 of oList > end lineOffsetsAll > > # added by Devin Asay > function lineOffsets pStr,pSearchTxt > # (returns only unique line numbers) > put empty into tList > put 0 into tStartLine > repeat > put lineOffset(pStr,pSearchTxt,tStartLine) into tLineNum > if tLineNum = 0 then exit repeat > add tLineNum to tStartLine > put tStartLine & "," after tList > end repeat > if tList is empty then return "0" > return item 1 to -1 of tList > end lineOffsets > > Hope this helps. > > Devin > > Devin Asay > Director > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 29 18:23:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 22:23:12 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> Message-ID: <978ECF75-647F-48DA-A4A0-A63F66EF3BE6@iotecdigital.com> In dBase/Foxpro they had an AT function synonymous (roughly) with our offset function. They also had a RAT (Reverse AT) function. I needed something like this many moons ago. What I did to get all occurrences is I have a "pointer" variable I maintain with the position of the first character after the last instance of the string found. But to get the actual position in the original text, you have to add the pointer to the offset like so: put 0 into tPointer repeat put offset(tVar, tTextChunk, tPointer) into tNextPos if tNextPos = 0 then exit repeat add tPointer to tNextPos put char tNextPos to tNextPos + length(tVar) of tTextChunk into aFoundChunks [tNextPos] [length(tVar)] put tNextPos + length(tVar) +1 into tPointer end repeat Something along those lines. Not tested, but you get the idea. Bob S > On Oct 29, 2018, at 08:32 , Keith Clarke via use-livecode wrote: > > Folks, > Is there a simple way to find the offset of a character from the ?right? end of a string, rather than the beginning - or alternatively get a list of all occurrences? > > I?m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ?/? character. > > Thanks & regards, > Keith > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 29 18:27:42 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 22:27:42 +0000 Subject: Is it not possible to write to the user preference folder in Mojave? In-Reply-To: References: Message-ID: <542DC686-9AC1-41A4-AAA5-6062D3611F1D@iotecdigital.com> Sounds like more onerous sandboxing. I see why it's necessary, but I have a simpler and more elegant solution: Have an international moratorium on all malicious hackers where the penalty is a life sentence on the frozen moon Rura Penthe. By that I mean hard labor. Until we get tough, and I mean really REALLY tough on offenders, and leave them with no place to hide, what we get in the end is devices we ourselves are locked out of, and then hackers seem to be able to get in anyway. Makes me crazy. So much for the golden age of the Internet, where compassion and tolerance flows from our mutually gained respect and understanding for all cultures and peoples. I like to say that the Internet is less like an Information Superhighway, and more like the wild, wild west with bands of highwaymen poised to waylay the unarmed and unsuspecting traveler. If I taught a computer class, that would be the first thing I would press home about shared computing. Bob S > On Oct 28, 2018, at 15:26 , Matthias Rebbe via use-livecode wrote: > > Hi. > > Today i was informed by a customer that my app BRx Converter is not able to write data to the preference folder ~/library/preferences. > > The app normally writes some registration info after successful registration to that folder. After that the app is switched from demo to full mode. > But under Mojave the app stays in Demo mode. Is there something special in Mojave? > > Regards, > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Oct 29 18:32:52 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Oct 2018 15:32:52 -0700 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> Message-ID: <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> On 10/29/2018 08:32 AM, Keith Clarke via use-livecode wrote: > I?m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ?/? character. function rightmostSlashOf pText set the itemdelimiter to "/" return offset(item -1 of pText, pText) end rightmostSlashOf -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Oct 29 18:55:57 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 22:55:57 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> Message-ID: <77C5EFB5-953B-4BFA-ADB5-26F3C21217D3@iotecdigital.com> That will only give him the item, not the character position. But it's a start. You can now get the number of characters of item 1 to -2 of pText +1. I didn't know the text you were searching had regular delimiters, and you were searching for the last delimiter. That makes things *much* easier. Bob S > On Oct 29, 2018, at 15:32 , Mark Wieder via use-livecode wrote: > > On 10/29/2018 08:32 AM, Keith Clarke via use-livecode wrote: > >> I?m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ?/? character. > > function rightmostSlashOf pText > set the itemdelimiter to "/" > return offset(item -1 of pText, pText) > end rightmostSlashOf > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Mon Oct 29 19:04:00 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 29 Oct 2018 16:04:00 -0700 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <77C5EFB5-953B-4BFA-ADB5-26F3C21217D3@iotecdigital.com> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> <77C5EFB5-953B-4BFA-ADB5-26F3C21217D3@iotecdigital.com> Message-ID: <3c01ac67-8858-d293-4e08-9a753d8be91b@sonic.net> On 10/29/2018 03:55 PM, Bob Sneidar via use-livecode wrote: > That will only give him the item, not the character position. Nope. It returns the position. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Mon Oct 29 19:05:16 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 30 Oct 2018 00:05:16 +0100 Subject: Is it not possible to write to the user preference folder in Mojave? In-Reply-To: References: Message-ID: <35025EFB-C0EE-474C-836E-B1133764665B@m-r-d.de> I?ve setup a VM with Mojave and my app was able to write the registration data to the preferences folder without a problem. So i am not sure what?s going on on the machine of the customer. But at least i know now that my app is able to access that folder. Regards Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 28.10.2018 um 23:26 schrieb Matthias Rebbe via use-livecode >: > > Hi. > > Today i was informed by a customer that my app BRx Converter is not able to write data to the preference folder ~/library/preferences. > > The app normally writes some registration info after successful registration to that folder. After that the app is switched from demo to full mode. > But under Mojave the app stays in Demo mode. Is there something special in Mojave? > > Regards, > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de From bobsneidar at iotecdigital.com Mon Oct 29 19:08:36 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 23:08:36 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <3c01ac67-8858-d293-4e08-9a753d8be91b@sonic.net> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> <77C5EFB5-953B-4BFA-ADB5-26F3C21217D3@iotecdigital.com> <3c01ac67-8858-d293-4e08-9a753d8be91b@sonic.net> Message-ID: Oh right you are! Bob S > On Oct 29, 2018, at 16:04 , Mark Wieder via use-livecode wrote: > > On 10/29/2018 03:55 PM, Bob Sneidar via use-livecode wrote: >> That will only give him the item, not the character position. > > Nope. It returns the position. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Oct 29 19:09:07 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 29 Oct 2018 23:09:07 +0000 Subject: Is it not possible to write to the user preference folder in Mojave? In-Reply-To: <35025EFB-C0EE-474C-836E-B1133764665B@m-r-d.de> References: <35025EFB-C0EE-474C-836E-B1133764665B@m-r-d.de> Message-ID: <2A329D37-48E5-4C45-928C-665DD56D949B@iotecdigital.com> I wonder if they are looged in as administrators? Bob S > On Oct 29, 2018, at 16:05 , Matthias Rebbe via use-livecode wrote: > > I?ve setup a VM with Mojave and my app was able to write the registration data to the preferences folder without a problem. > > So i am not sure what?s going on on the machine of the customer. But at least i know now that my app is able to access that folder. > > Regards > > Matthias Rebbe From alex at tweedly.net Mon Oct 29 19:45:54 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 29 Oct 2018 23:45:54 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> Message-ID: "toplevel/somename/another/somename" On 29/10/2018 22:32, Mark Wieder via use-livecode wrote: > On 10/29/2018 08:32 AM, Keith Clarke via use-livecode wrote: > >> I?m trying to separate paths & pages from a list of URLs and so >> looking to identify the position of the last ?/? character. > > function rightmostSlashOf pText > ?? set the itemdelimiter to "/" > ?? return offset(item -1 of pText, pText) > end rightmostSlashOf > From alex at tweedly.net Mon Oct 29 19:50:58 2018 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 29 Oct 2018 23:50:58 +0000 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> <4b577825-1e62-8f8d-fdee-053ff2a194f8@sonic.net> Message-ID: <0175fcb8-1d88-4a6f-1fd2-00039f1bff0e@tweedly.net> On 29/10/2018 22:32, Mark Wieder via use-livecode wrote: > On 10/29/2018 08:32 AM, Keith Clarke via use-livecode wrote: > >> I?m trying to separate paths & pages from a list of URLs and so >> looking to identify the position of the last ?/? character. > How about .... > function rightmostSlashOf p > ?? set the itemdelimiter to "/" > ?? return? (thenumberofcharsinp) - (thenumberofcharsinitem-1 ofp) > end rightmostSlashOf > From brahma at hindu.org Mon Oct 29 20:15:38 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 30 Oct 2018 00:15:38 +0000 Subject: Mysteries of Me References: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> Message-ID: @tom go card and go to card same thing. @ bob That's what I understand (as you have described it) -- The behavior is set in the properties of a stack. -- the SE suggestions "knows" this and on typing go card...[List of cards in current stack appears... choose one) # you get: go card "my-audio-library" of me #as we would expect # but it gives an error; will not compile. You have to be explicit: go card "my-audio-library" of this stack # then it compiles -- re: backscript function isThisTrue() then go card "my-audio-library" of me # as per SE suggestions # generates an error end isThisTrue # isThisTrue , is part of a back script. It won't compile # I wondered it that was causing a reference change # because this works function isThisTrue() then go card "my-audio-library" of this stack end isThisTrue On 10/29/18 11:59 AM, Bob Sneidar via use-livecode wrote: > Me always refers to the object the script belongs to. It doesn't matter which handler it is. A script running in a behavior is like running an instance of the target object (the object with the behavior set). This allows for multiple objects with the same behavior (think datagrids calling get the dgData in other dataGrids and you will immediately see why this would be necessary). This me refers to the actual behavior object, NOT the "instance object" as it were. > > As far as a backscript, are you saying you have a backscript object with a behavior assigned to it?? > > Bob S -- Svasti Astu, Be Well! Brahmanathaswami Get the SivaSiva app, it's free: https://www.himalayanacademy.com/apps/sivasiva From alex at tweedly.net Mon Oct 29 21:00:46 2018 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 30 Oct 2018 01:00:46 +0000 Subject: Hmmm - no compilation error ? Message-ID: I accidentally typed the equivalent of function x p ?? return return p end x i.e. I had the word "return" in there twice. And it didn't give me an error on compilation, and also didn't just ignore the repeated word, it simply returned a blank line. Does it seem like this is a bug ?? Is the parser too lenient ? (LC 9.0.0, and 8.1.5 tested) Ohhhh - and while testing it out for this email, I tried to type ask "a" & x(3) & "b" but instead I did ask "a"? x(3) & "b" (i.e. missing an '&') and that too didn't give an error; it simply ignored the extra part of the line. !? Thanks Alex. From monte at appisle.net Mon Oct 29 22:27:49 2018 From: monte at appisle.net (Monte Goulding) Date: Tue, 30 Oct 2018 13:27:49 +1100 Subject: Hmmm - no compilation error ? In-Reply-To: References: Message-ID: <0AE4D211-9850-45C7-BC6C-E919BFD8C2E9@appisle.net> The parser is often lenient at the end of statements like this. In the case of the return statement it first looks for the expression to return then checks if the next token is either `for` or `with`. If it isn?t either of those it doesn?t look any further or throw an error. Really we should have a general check for extra stuff after parsing statements but we don?t. Stuff like that can also be a bit risky to add as all of a sudden a lot of scripts that work perfectly well might not compile. Cheers Monte > On 30 Oct 2018, at 12:00 pm, Alex Tweedly via use-livecode wrote: > > I accidentally typed the equivalent of > > function x p > return return p > end x > > i.e. I had the word "return" in there twice. > > And it didn't give me an error on compilation, and also didn't just ignore the repeated word, it simply returned a blank line. > > Does it seem like this is a bug ? Is the parser too lenient ? > > (LC 9.0.0, and 8.1.5 tested) > > > Ohhhh - and while testing it out for this email, I tried to type > > ask "a" & x(3) & "b" > > but instead I did > > ask "a" x(3) & "b" > (i.e. missing an '&') > > and that too didn't give an error; it simply ignored the extra part of the line. !? > > Thanks > > Alex. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From irog at mac.com Mon Oct 29 22:47:42 2018 From: irog at mac.com (Roger Guay) Date: Mon, 29 Oct 2018 19:47:42 -0700 Subject: Continual iOS Simulator Problems Message-ID: Hi Folks, I?m on a Mac with OS 10.14 and using LC 9.0.0 Indy, and I have the green square indication in LC prefs with SDK 11.2. I can?t get the simulator to work with test target set to simulator 11.2. It simply takes too long to open and then crashes if I persist. In fact, it seems to me that I?ve had this problem with the simulator not working in previous versions as well. Any help or suggestions are greatly appreciated. Thanks, Roger From mike at golddogcoffee.com Mon Oct 29 22:48:34 2018 From: mike at golddogcoffee.com (Mike for GDC) Date: Mon, 29 Oct 2018 20:48:34 -0600 Subject: using the map widget Message-ID: <011501d46ffb$0d600ce0$282026a0$@golddogcoffee.com> I am trying to implement the map widget within my app. I have entered my api code in the inclusions and have looked at the example given in the livecode article but so far it has not worked. Does anyone have an example of using it in an app? What I want is to be able to retrieve the current location (lat and long) and then use that to present my map in the map widget. I would have hoped it would be fairly straight forward but I have never actually seen an example of script that works.. I would appreciate any help anyone might have. Thanks. Mike From brian at milby7.com Mon Oct 29 23:13:22 2018 From: brian at milby7.com (Brian Milby) Date: Mon, 29 Oct 2018 22:13:22 -0500 Subject: Continual iOS Simulator Problems In-Reply-To: References: Message-ID: <3b4f4276-990d-4872-8a7e-80ec2570f7ec@Spark> Have you tried launching the simulator from Xcode first and after it is fully loaded then trying to test from LC? Thanks, Brian On Oct 29, 2018, 9:48 PM -0500, Roger Guay via use-livecode , wrote: > Hi Folks, > > I?m on a Mac with OS 10.14 and using LC 9.0.0 Indy, and I have the green square indication in LC prefs with SDK 11.2. > > I can?t get the simulator to work with test target set to simulator 11.2. It simply takes too long to open and then crashes if I persist. > > In fact, it seems to me that I?ve had this problem with the simulator not working in previous versions as well. > > Any help or suggestions are greatly appreciated. > > Thanks, > > Roger > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lan.kc.macmail at gmail.com Tue Oct 30 00:54:05 2018 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 30 Oct 2018 15:54:05 +1100 Subject: How to find the offset of the last instance of a repeating character in a string? In-Reply-To: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> References: <7FFFD522-F677-44C8-9BA4-8A0D7D818DC5@me.com> Message-ID: On Tue, Oct 30, 2018 at 2:33 AM Keith Clarke via use-livecode wrote: > > I?m trying to separate paths & pages from a list of URLs and so looking to identify the position of the last ?/? character. > If that is all you are after then I think setting the itemDelimiter to "/" and separating the 'item -1' (page) from 'items 1 to -2' (path) would give you a very simple a readable solution. The only problem is if you have the unlikely but not impossible situation where you have paths that contain no pages. Because of the known gotcha with LC and how it counts items when the last item is empty you may need to include and 'if' statement. Try this, create a new Stack with a field and a button. Into the field load the following text: https://www.my.org/assets/general/february/ https://www.my.org/assets/general/march/ https://www.my.org/assets/general/april/2018.zip https://www.my.org/assets/general/may/2018.zip https://www.my.org/assets/general/june/2018.zip https://www.my.org/assets/general/july/2018.zip https://www.my.org/assets/general/july/2017.html https://www.my.org/assets/general/july/2016.text https://www.my.org/assets/general/july/2015.jpg https://www.my.org/assets/general/august/2018.zip https://www.my.org/assets/general/september/2018.zip https://www.my.org/assets/general/october/2018.zip https://www.my.org/assets/general/november/ https://www.my.org/assets/general/december/ Into the button load the following script (be careful of line breaks there are 16 lines of code): on mouseUp put fld 1 into tText set the itemDelimiter to "/" repeat for each line tLine in tText if (char -1 of tLine = "/") then --usual problem with dealing with empty last items put empty into tPath[tLine] else if (tPath[item 1 to -2 of tLine] = empty) then --initial entry put item -1 of tLine into tPath[item 1 to -2 of tLine] else --multiple entries put tPath[item 1 to -2 of tLine] & cr & item -1 of tLine into tPath[item 1 to -2 of tLine] end if end if end repeat breakpoint end mouseUp There is breakpoint at the end so the script will pause and you can inspect the variables. You'll see that an array is created with each unique path as a key and each page its element. In the case of 'july' you will see that four pages are all listed, one per line. >From there it should open a world of possibilities to arrange, sort and sift through the paths. HTH From irog at mac.com Tue Oct 30 01:00:53 2018 From: irog at mac.com (Roger Guay) Date: Mon, 29 Oct 2018 22:00:53 -0700 Subject: Continual iOS Simulator Problems In-Reply-To: <3b4f4276-990d-4872-8a7e-80ec2570f7ec@Spark> References: <3b4f4276-990d-4872-8a7e-80ec2570f7ec@Spark> Message-ID: <00B92B61-088F-4971-B61B-C68CDAE03CE7@mac.com> Thanks, Brian. I didn?t think of that previously, but I now find that it crashes in Xcode. So I guess the problem is there in Xcode, not in LC. Ratz! Roger > On Oct 29, 2018, at 8:13 PM, Brian Milby via use-livecode wrote: > > Have you tried launching the simulator from Xcode first and after it is fully loaded then trying to test from LC? > > Thanks, > Brian > On Oct 29, 2018, 9:48 PM -0500, Roger Guay via use-livecode , wrote: >> Hi Folks, >> >> I?m on a Mac with OS 10.14 and using LC 9.0.0 Indy, and I have the green square indication in LC prefs with SDK 11.2. >> >> I can?t get the simulator to work with test target set to simulator 11.2. It simply takes too long to open and then crashes if I persist. >> >> In fact, it seems to me that I?ve had this problem with the simulator not working in previous versions as well. >> >> Any help or suggestions are greatly appreciated. >> >> Thanks, >> >> Roger >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Tue Oct 30 01:40:37 2018 From: waprothero at gmail.com (William Prothero) Date: Mon, 29 Oct 2018 22:40:37 -0700 Subject: using the map widget In-Reply-To: <011501d46ffb$0d600ce0$282026a0$@golddogcoffee.com> References: <011501d46ffb$0d600ce0$282026a0$@golddogcoffee.com> Message-ID: <21BC928B-1BCC-468C-9492-E1F0198F4ED6@gmail.com> Herman made an excellent stack that demos the use of Google Maps. I have a link to it here: http://earthlearningsolutions.org/google-static-maps-demo/ You need to get an API key from Google, but the demo shows how to set it up. This may be more useful than the widget, as there is a lot of documentation by Google on how to set it up, which is pretty easy. Best, Bill > On Oct 29, 2018, at 7:48 PM, Mike for GDC via use-livecode wrote: > > I am trying to implement the map widget within my app. I have entered my > api code in the inclusions and have looked at the example given in the > livecode article but so far it has not worked. Does anyone have an example > of using it in an app? What I want is to be able to retrieve the current > location (lat and long) and then use that to present > > my map in the map widget. I would have hoped it would be fairly straight > forward but I have never actually seen an example of script that works.. I > would appreciate any help anyone might have. > > Thanks. Mike > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Oct 30 01:42:06 2018 From: tom at makeshyft.com (Tom Glod) Date: Tue, 30 Oct 2018 01:42:06 -0400 Subject: Mysteries of Me In-Reply-To: References: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> Message-ID: oh...didn't know that syntax would work ....first thing that jumped out at me .... thought maybe it was as simple as that. :) On Mon, Oct 29, 2018 at 8:15 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > @tom go card and go to card same thing. > > @ bob > > That's what I understand (as you have described it) > > -- The behavior is set in the properties of a stack. > -- the SE suggestions "knows" this and on typing > go card...[List of cards in current stack appears... choose one) > > # you get: > > go card "my-audio-library" of me #as we would expect > > # but it gives an error; will not compile. You have to be explicit: > > go card "my-audio-library" of this stack > > # then it compiles > > -- re: backscript > > function isThisTrue() then > go card "my-audio-library" of me # as per SE suggestions > # generates an error > end isThisTrue > > # isThisTrue , is part of a back script. It won't compile > # I wondered it that was causing a reference change > # because this works > > function isThisTrue() then > go card "my-audio-library" of this stack > end isThisTrue > > > > > > On 10/29/18 11:59 AM, Bob Sneidar via use-livecode wrote: > > Me always refers to the object the script belongs to. It doesn't matter > which handler it is. A script running in a behavior is like running an > instance of the target object (the object with the behavior set). This > allows for multiple objects with the same behavior (think datagrids calling > get the dgData in other dataGrids and you will immediately see why this > would be necessary). This me refers to the actual behavior object, NOT the > "instance object" as it were. > > > > As far as a backscript, are you saying you have a backscript object with > a behavior assigned to it?? > > > > Bob S > > > -- > Svasti Astu, Be Well! > Brahmanathaswami > > Get the SivaSiva app, it's free: > https://www.himalayanacademy.com/apps/sivasiva > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From james at thehales.id.au Tue Oct 30 02:09:44 2018 From: james at thehales.id.au (James Hale) Date: Tue, 30 Oct 2018 17:09:44 +1100 Subject: Interactive Tutorials - Where are they? Message-ID: <4E036C42-4861-488D-86F6-966A9A91AF99@thehales.id.au> Whatever happened to the interactive tutorial that was introduced with LC 8? I can't seem to find any link/menu item of preference to bring it/them up. I have checked LC 8.1.8 as well and can't find them I deleted my copies of LC pre 8.1 and so had started to download LC 8.0 but it is only downloading a 235kps (!!!). Given I have a 50Mps line I think the company server is having trouble. So, do any of you know how i can find them? James From james at thehales.id.au Tue Oct 30 02:16:53 2018 From: james at thehales.id.au (James Hale) Date: Tue, 30 Oct 2018 17:16:53 +1100 Subject: Interactive Tutorials - Where are they? Message-ID: <1587CD26-D51D-44B8-92FA-0E00755CDD1B@thehales.id.au> Found them. They are (well it is) available via the Start Center. Took me a while as the Start Center doesn't remain on the screen if you have any plugins set to open on start up. James From matthias_livecode_150811 at m-r-d.de Tue Oct 30 07:36:20 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 30 Oct 2018 12:36:20 +0100 Subject: Is it not possible to write to the user preference folder in Mojave? In-Reply-To: <2A329D37-48E5-4C45-928C-665DD56D949B@iotecdigital.com> References: <35025EFB-C0EE-474C-836E-B1133764665B@m-r-d.de> <2A329D37-48E5-4C45-928C-665DD56D949B@iotecdigital.com> Message-ID: <8CAAC7F6-4C4E-4B89-AC59-75671F0A2197@m-r-d.de> Tried here now with a standard user and an admin account. It works with both account types w/o problems. I will have to contact the customer again. A big problem is that he?s Italian and does not speak english. At least his first emails were in Italian unless i mentioned that i had to translate his email to English and also my answer to Italian with Google Translate. After that he used Google Translate also. I just can hope, that Google does its job good and i do not send offending messages to him. ;) Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 30.10.2018 um 00:09 schrieb Bob Sneidar via use-livecode : > > I wonder if they are looged in as administrators? > > Bob S > > >> On Oct 29, 2018, at 16:05 , Matthias Rebbe via use-livecode wrote: >> >> I?ve setup a VM with Mojave and my app was able to write the registration data to the preferences folder without a problem. >> >> So i am not sure what?s going on on the machine of the customer. But at least i know now that my app is able to access that folder. >> >> Regards >> >> Matthias Rebbe > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 30 08:52:13 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 30 Oct 2018 13:52:13 +0100 Subject: is anyone able to use fileDSN for ODBC connections in LC? In-Reply-To: <396DCDA7-7C6F-430F-B4BC-503AE3449F33@m-r-d.de> References: <04A73AA1-8F0C-4588-AB97-B24409F7B436@iotecdigital.com> <058947DF-4535-4B7C-85A1-3D6210359CEF@m-r-d.de> <396DCDA7-7C6F-430F-B4BC-503AE3449F33@m-r-d.de> Message-ID: <19A711E4-4A61-4871-97BA-DBCB3917DF91@m-r-d.de> Hi all, it seems that my syntax was not correct. LC first confirmed that my syntax looked correct, but Panos found out that it didn?t. The correct syntax for fileDSN is revOpenDatabase("odbc",";pwd=",,,) Example for Windows revOpenDatabase("odbc","filedsn=\Users\matthias\ODBC\test2.dsn;uid=matthias;pwd=test123",,,) @Panos Thanks again. Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 27.10.2018 um 18:53 schrieb Matthias Rebbe via use-livecode : > > I?ve filed a bug now. #21658 > > If anyone has additional comments please add them to the bug. > > Regards, > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > >> Am 26.10.2018 um 00:33 schrieb Matthias Rebbe via use-livecode : >> >> As the same ODBC driver (Windows 10 SQL Server) works w/o a problem when using a user or system DSN connection, the driver should not be the problem. >> >> Regards, >> >> >> Matthias Rebbe >> >> free tools for Livecoders: >> https://instamaker.dermattes.de >> https://winsignhelper.dermattes.de >> >>> Am 26.10.2018 um 00:21 schrieb Bob Sneidar via use-livecode : >>> >>> Re: [resolved] Microsoft - Driver Manager ODBC - Invalid string or buffer length >>> >>> >>> >>> Hi, >>> Are you using 64 bit sql server 2014? Please take a look at an article about:http://stackoverflow.com/questions/26745417/invalid-string-or-buffer-length. >>> Best regards >>> Sabrina >>> -- >>> Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it. >>> >>> >>> >>>> On Oct 25, 2018, at 15:04 , Matthias Rebbe via use-livecode wrote: >>>> >>>> Thanks Mark, >>>> >>>> isn?t the DBQ parameter used when you want to access a file based Database like Access .mdb files? >>>> >>>> I tried it anyway, but added a "e before tAccessDBFilename, as it seems that was missing in your example. >>>> Still getting the buffer error >>>> >>>> [Microsoft][ODBC Driver Manager] Ung?ltige Zeichenfolgen- oder Pufferl?nge >>>> In English something like this: Invalid string or buffer length >>>> >>>> >>>> Regards, >>>> >>>> Matthias >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Tue Oct 30 10:08:07 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 30 Oct 2018 14:08:07 +0000 Subject: Mysteries of Me References: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> Message-ID: On 10/29/18 7:42 PM, Tom Glod via use-livecode wrote: > oh...didn't know that syntax would work ....first thing that jumped out at > me .... thought maybe it was as simple as that. :) You learn as you go, with the plug in TinyDictionary. I refer to it all the time... Best way to access the dictionary. Thank Bernd Niggemann and James Hale! From merakosp at gmail.com Tue Oct 30 10:23:19 2018 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 30 Oct 2018 16:23:19 +0200 Subject: Continual iOS Simulator Problems In-Reply-To: <00B92B61-088F-4971-B61B-C68CDAE03CE7@mac.com> References: <3b4f4276-990d-4872-8a7e-80ec2570f7ec@Spark> <00B92B61-088F-4971-B61B-C68CDAE03CE7@mac.com> Message-ID: Hello all, I recently had this problem. The simulator was crashing on startup, opened either from Xcode or from LC. This terminal command fixed the problem for me: sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService Kind regards, Panos -- On Tue, Oct 30, 2018 at 7:31 AM Roger Guay via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks, Brian. I didn?t think of that previously, but I now find that it > crashes in Xcode. So I guess the problem is there in Xcode, not in LC. Ratz! > > Roger > > > On Oct 29, 2018, at 8:13 PM, Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Have you tried launching the simulator from Xcode first and after it is > fully loaded then trying to test from LC? > > > > Thanks, > > Brian > > On Oct 29, 2018, 9:48 PM -0500, Roger Guay via use-livecode < > use-livecode at lists.runrev.com>, wrote: > >> Hi Folks, > >> > >> I?m on a Mac with OS 10.14 and using LC 9.0.0 Indy, and I have the > green square indication in LC prefs with SDK 11.2. > >> > >> I can?t get the simulator to work with test target set to simulator > 11.2. It simply takes too long to open and then crashes if I persist. > >> > >> In fact, it seems to me that I?ve had this problem with the simulator > not working in previous versions as well. > >> > >> Any help or suggestions are greatly appreciated. > >> > >> Thanks, > >> > >> Roger > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Tue Oct 30 10:28:36 2018 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Tue, 30 Oct 2018 14:28:36 +0000 Subject: Is it not possible to write to the user preference folder in Mojave? In-Reply-To: <8CAAC7F6-4C4E-4B89-AC59-75671F0A2197@m-r-d.de> References: <35025EFB-C0EE-474C-836E-B1133764665B@m-r-d.de> <2A329D37-48E5-4C45-928C-665DD56D949B@iotecdigital.com> <8CAAC7F6-4C4E-4B89-AC59-75671F0A2197@m-r-d.de> Message-ID: Hi Matthias, This is, without any doubt, a permissions issue and definitely nothing to do with sandboxing. You need to unlock the folder you are saving to. The recommended form is to have a folder within the preferences folder named [domain].[appName] (ie, com.mycompany.myapp), and store your prefs files in there. But you need to make sure that the permissions for both the main Preferences folder and your app prefs folder are set to read/write for either 'admin' AND/OR 'user'. Check also the permissions for the pref file itself. The Apple Dev Docs say this about the /Library/Preferences/ folder: > You should not create files in this directory yourself. Instead, use the > NSUserDefaults class or CFPreferences API to get and set preference values > for your app. Use of NSUserDefaults has not yet been set up for LC apps. You should be okay to write there as long as the permissions are correct. You may have to use a terminal command to find out for sure what the permissions are or to change them using chmod or something. All the best Sean On Tue, 30 Oct 2018 at 11:36, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Tried here now with a standard user and an admin account. > It works with both account types w/o problems. > > I will have to contact the customer again. A big problem is that he?s > Italian and does not speak english. At least his first emails were in > Italian unless i mentioned that i had to translate his email to English and > also my answer to Italian with Google Translate. After that he used Google > Translate also. > > I just can hope, that Google does its job good and i do not send offending > messages to him. ;) > > Regards, > Matthias > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > > > Am 30.10.2018 um 00:09 schrieb Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com>: > > > > I wonder if they are looged in as administrators? > > > > Bob S > > > > > >> On Oct 29, 2018, at 16:05 , Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> I?ve setup a VM with Mojave and my app was able to write the > registration data to the preferences folder without a problem. > >> > >> So i am not sure what?s going on on the machine of the customer. But > at least i know now that my app is able to access that folder. > >> > >> Regards > >> > >> Matthias Rebbe > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode < > http://lists.runrev.com/mailman/listinfo/use-livecode> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 30 10:43:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Oct 2018 14:43:53 +0000 Subject: Hmmm - no compilation error ? In-Reply-To: <0AE4D211-9850-45C7-BC6C-E919BFD8C2E9@appisle.net> References: <0AE4D211-9850-45C7-BC6C-E919BFD8C2E9@appisle.net> Message-ID: <377B7603-0BC4-4BA9-A6EC-094BD5B1EA61@iotecdigital.com> Yeah, IMHO it's academic, as the point to a compiler syntax checker is to avoid runtime errors down the road. Since this will not throw a runtime error, it's moot. Bob S > On Oct 29, 2018, at 19:27 , Monte Goulding via use-livecode wrote: > > The parser is often lenient at the end of statements like this. > > In the case of the return statement it first looks for the expression to return then checks if the next token is either `for` or `with`. If it isn?t either of those it doesn?t look any further or throw an error. > > Really we should have a general check for extra stuff after parsing statements but we don?t. Stuff like that can also be a bit risky to add as all of a sudden a lot of scripts that work perfectly well might not compile. > > Cheers > > Monte > >> On 30 Oct 2018, at 12:00 pm, Alex Tweedly via use-livecode wrote: >> >> I accidentally typed the equivalent of >> >> function x p >> return return p >> end x >> >> i.e. I had the word "return" in there twice. >> >> And it didn't give me an error on compilation, and also didn't just ignore the repeated word, it simply returned a blank line. >> >> Does it seem like this is a bug ? Is the parser too lenient ? >> >> (LC 9.0.0, and 8.1.5 tested) >> >> >> Ohhhh - and while testing it out for this email, I tried to type >> >> ask "a" & x(3) & "b" >> >> but instead I did >> >> ask "a" x(3) & "b" >> (i.e. missing an '&') >> >> and that too didn't give an error; it simply ignored the extra part of the line. !? >> >> Thanks >> >> Alex. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Oct 30 11:39:56 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 30 Oct 2018 16:39:56 +0100 Subject: Is it not possible to write to the user preference folder in Mojave? In-Reply-To: References: <35025EFB-C0EE-474C-836E-B1133764665B@m-r-d.de> <2A329D37-48E5-4C45-928C-665DD56D949B@iotecdigital.com> <8CAAC7F6-4C4E-4B89-AC59-75671F0A2197@m-r-d.de> Message-ID: Hi Sean, thanks for the information. But my app writes to the ~/Library/Preferences folder. And therefore the user should have write access to it. As i wrote. On a new Mojave installation on a VM (i still have 10.13.6 here) i was able to write the registration details to that folder without problems. Even with a standard user account. I will let you all know, when i found out why the customer could not register the app successfully. Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > Am 30.10.2018 um 15:28 schrieb Sean Cole (Pi) via use-livecode : > > Hi Matthias, > This is, without any doubt, a permissions issue and definitely nothing to > do with sandboxing. You need to unlock the folder you are saving to. The > recommended form is to have a folder within the preferences folder named > [domain].[appName] (ie, com.mycompany.myapp), and store your prefs files in > there. But you need to make sure that the permissions for both the main > Preferences folder and your app prefs folder are set to read/write for > either 'admin' AND/OR 'user'. Check also the permissions for the pref file > itself. > > The Apple Dev Docs say this about the /Library/Preferences/ folder: > >> You should not create files in this directory yourself. Instead, use the >> NSUserDefaults class or CFPreferences API to get and set preference values >> for your app. > > Use of NSUserDefaults has not yet been set up for LC apps. You should be > okay to write there as long as the permissions are correct. You may have to > use a terminal command to find out for sure what the permissions are or to > change them using chmod or something. > > All the best > > Sean > > > On Tue, 30 Oct 2018 at 11:36, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Tried here now with a standard user and an admin account. >> It works with both account types w/o problems. >> >> I will have to contact the customer again. A big problem is that he?s >> Italian and does not speak english. At least his first emails were in >> Italian unless i mentioned that i had to translate his email to English and >> also my answer to Italian with Google Translate. After that he used Google >> Translate also. >> >> I just can hope, that Google does its job good and i do not send offending >> messages to him. ;) >> >> Regards, >> Matthias >> >> >> Matthias Rebbe >> >> free tools for Livecoders: >> https://instamaker.dermattes.de >> https://winsignhelper.dermattes.de >> >>> Am 30.10.2018 um 00:09 schrieb Bob Sneidar via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> I wonder if they are looged in as administrators? >>> >>> Bob S >>> >>> >>>> On Oct 29, 2018, at 16:05 , Matthias Rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> >>>> I?ve setup a VM with Mojave and my app was able to write the >> registration data to the preferences folder without a problem. >>>> >>>> So i am not sure what?s going on on the machine of the customer. But >> at least i know now that my app is able to access that folder. >>>> >>>> Regards >>>> >>>> Matthias Rebbe >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode < >> http://lists.runrev.com/mailman/listinfo/use-livecode> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Oct 30 11:54:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Oct 2018 15:54:41 +0000 Subject: Mysteries of Me In-Reply-To: References: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> Message-ID: <125E4359-B727-4DCC-876D-19628DB4A51C@iotecdigital.com> Ah yes I've encountered this. What I do is I have 2 functions: getParentCard() and getParentStack(). pass the long id of any object on a card and they return the long id of the card, or the long filename of the stack respectively. Then you can use go tParentCard and that will compile. Your issue is in fact, why I wrote these functions! They are very simple as you can see: function getParentCard pObjectID put offset("card id", pObjectID) into tStartChar put char tStartChar to -1 of pObjectID into tCardID return tCardID end getParentCard function getParentStack pObjectID put offset("stack ", pObjectID) into tStartChar put char tStartChar to -1 of pObjectID into tParentStack return tParentStack end getParentStack Bob S > On Oct 29, 2018, at 17:15 , Sannyasin Brahmanathaswami via use-livecode wrote: > > @tom go card and go to card same thing. > > @ bob > > That's what I understand (as you have described it) > > -- The behavior is set in the properties of a stack. > -- the SE suggestions "knows" this and on typing > go card...[List of cards in current stack appears... choose one) > > # you get: > > go card "my-audio-library" of me #as we would expect > > # but it gives an error; will not compile. You have to be explicit: > > go card "my-audio-library" of this stack > > # then it compiles > > -- re: backscript > > function isThisTrue() then > go card "my-audio-library" of me # as per SE suggestions > # generates an error > end isThisTrue > > # isThisTrue , is part of a back script. It won't compile > # I wondered it that was causing a reference change > # because this works > > function isThisTrue() then > go card "my-audio-library" of this stack > end isThisTrue From bobsneidar at iotecdigital.com Tue Oct 30 11:57:01 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 30 Oct 2018 15:57:01 +0000 Subject: Is it not possible to write to the user preference folder in Mojave? In-Reply-To: References: <35025EFB-C0EE-474C-836E-B1133764665B@m-r-d.de> <2A329D37-48E5-4C45-928C-665DD56D949B@iotecdigital.com> <8CAAC7F6-4C4E-4B89-AC59-75671F0A2197@m-r-d.de> Message-ID: <48C898EE-6A01-4050-9DD4-16A272487188@iotecdigital.com> Of course asking end users to change permissions on folders is pretty much a non-starter. Bob S > On Oct 30, 2018, at 07:28 , Sean Cole (Pi) via use-livecode wrote: > > Hi Matthias, > This is, without any doubt, a permissions issue and definitely nothing to > do with sandboxing. You need to unlock the folder you are saving to. The > recommended form is to have a folder within the preferences folder named > [domain].[appName] (ie, com.mycompany.myapp), and store your prefs files in > there. But you need to make sure that the permissions for both the main > Preferences folder and your app prefs folder are set to read/write for > either 'admin' AND/OR 'user'. Check also the permissions for the pref file > itself. > > The Apple Dev Docs say this about the /Library/Preferences/ folder: > >> You should not create files in this directory yourself. Instead, use the >> NSUserDefaults class or CFPreferences API to get and set preference values >> for your app. > > Use of NSUserDefaults has not yet been set up for LC apps. You should be > okay to write there as long as the permissions are correct. You may have to > use a terminal command to find out for sure what the permissions are or to > change them using chmod or something. > > All the best > > Sean From smaclean at madmansoft.com Tue Oct 30 12:02:41 2018 From: smaclean at madmansoft.com (Stephen MacLean) Date: Tue, 30 Oct 2018 12:02:41 -0400 Subject: SSL with HTTPD Library? Message-ID: Hi All, I?m looking to use the HTTPD library with an SSL Cert if possible. Is it possible? TIA, Steve MacLean From ahsoftware at sonic.net Tue Oct 30 13:05:14 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 30 Oct 2018 10:05:14 -0700 Subject: is anyone able to use fileDSN for ODBC connections in LC? In-Reply-To: <19A711E4-4A61-4871-97BA-DBCB3917DF91@m-r-d.de> References: <04A73AA1-8F0C-4588-AB97-B24409F7B436@iotecdigital.com> <058947DF-4535-4B7C-85A1-3D6210359CEF@m-r-d.de> <396DCDA7-7C6F-430F-B4BC-503AE3449F33@m-r-d.de> <19A711E4-4A61-4871-97BA-DBCB3917DF91@m-r-d.de> Message-ID: On 10/30/18 5:52 AM, Matthias Rebbe via use-livecode wrote: > Hi all, > > it seems that my syntax was not correct. LC first confirmed that my syntax looked correct, > but Panos found out that it didn?t. > > The correct syntax for fileDSN is > revOpenDatabase("odbc",";pwd=",,,) > Example for Windows > revOpenDatabase("odbc","filedsn=\Users\matthias\ODBC\test2.dsn;uid=matthias;pwd=test123",,,) Panos also filed a dictionary fix for this syntax. https://github.com/livecode/livecode/pull/6767/commits/6644e7ced22f8bb623d9f63a42ddf8a1c15d84b9 -- Mark Wieder ahsoftware at gmail.com From brahma at hindu.org Tue Oct 30 13:56:09 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 30 Oct 2018 17:56:09 +0000 Subject: Mysteries of Me References: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> <125E4359-B727-4DCC-876D-19628DB4A51C@iotecdigital.com> Message-ID: Hmm, is that a bug? Should we report it? I think so. On 10/30/18 5:54 AM, Bob Sneidar via use-livecode wrote: > Ah yes I've encountered this. What I do is I have 2 functions: getParentCard() and getParentStack(). pass the long id of any object on a card and they return the long id of the card, or the long filename of the stack respectively. Then you can use go tParentCard and that will compile. Your issue is in fact, why I wrote these functions! They are very simple as you can see: > > function getParentCard pObjectID > put offset("card id", pObjectID) into tStartChar > put char tStartChar to -1 of pObjectID into tCardID > return tCardID > end getParentCard > > function getParentStack pObjectID > put offset("stack ", pObjectID) into tStartChar > put char tStartChar to -1 of pObjectID into tParentStack > return tParentStack > end getParentStack > > Bob S > > >> On Oct 29, 2018, at 17:15 , Sannyasin Brahmanathaswami via use-livecode wrote: >> >> @tom go card and go to card same thing. >> >> @ bob >> >> That's what I understand (as you have described it) >> >> -- The behavior is set in the properties of a stack. >> -- the SE suggestions "knows" this and on typing >> go card...[List of cards in current stack appears... choose one) >> >> # you get: >> >> go card "my-audio-library" of me #as we would expect >> >> # but it gives an error; will not compile. You have to be explicit: >> >> go card "my-audio-library" of this stack >> >> # then it compiles >> >> -- re: backscript >> >> function isThisTrue() then >> go card "my-audio-library" of me # as per SE suggestions >> # generates an error >> end isThisTrue >> >> # isThisTrue , is part of a back script. It won't compile >> # I wondered it that was causing a reference change >> # because this works >> >> function isThisTrue() then >> go card "my-audio-library" of this stack >> end isThisTrue From ludovic.thebault at laposte.net Tue Oct 30 14:08:01 2018 From: ludovic.thebault at laposte.net (Ludovic THEBAULT) Date: Tue, 30 Oct 2018 19:08:01 +0100 Subject: Browser widget and mailto link. Message-ID: Hello, is it normal that email links ( ?>my mail) do not work in a web page displayed with the browser widget? > Livecode 9.01 - tested on iOS. > I?ve made a sample stack and opened a bug : https://quality.livecode.com/show_bug.cgi?id=21666 It?s work on android but not on iOS (12 at least). here a table of what it work ?x' or not ?-? after my test (livecode 8 for windows) iOS Android Macos Win Widget browser - x - - Mobile browser x x Browser (desktop) - x From MikeKerner at roadrunner.com Wed Oct 31 09:08:13 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 31 Oct 2018 09:08:13 -0400 Subject: tree view hide key In-Reply-To: References: Message-ID: ? Nodes can't have both keys and values, only leaves can ? You can't hide the key ? Hiding the key is kind of important if you're trying to use it for a directory tree view. Working around this requires assigning keys only but no values, but if you do that then you can't figure out (without looking at the array) whether you are dealing with a leaf or a node. On Tue, Oct 30, 2018 at 6:43 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > What kind of work? Here are a couple that I can think of that are not > easily addressed: > - Arbitrary sort would take significant changes (a couple options: 2 part > key [1,firstkey], [2,asecondkey] or restructuring the array format to > something like [key][title], [key][value] where the title and optionally > value would be displayed and keys just used for sorting). > - Inline editing is something that LCB doesn't support. > > My goal is to submit a PR today that will facilitate keyboard navigation (I > want to add a couple properties that can be controlled from LCS which can > handle the keypresses). > > Several code changes are already completed and either merged (9.1) or > waiting review. > - Numeric sort will now also sort the non-number entries below the numbers > - If you select a row that is hidden by folding, it will expand to show the > row > - You can have the selected item scroll into view when selected > - When an element is added interactively, it can be configured to > auto-select the new element > - You can reset the fold state to collapse the entire tree (optionally > setting the arrayData at the same time) > - MouseUp no longer registers as a click when the MouseDown was on a > different row > > I don't see anything else in the QCC for the Tree Widget that I can address > at the moment. > > Thanks, > Brian > > On Tue, Oct 30, 2018 at 5:08 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Yeah I really tried to like the tree view widget but it needs work. > > > > Sent from my iPhone > > > > > On Oct 30, 2018, at 13:38, Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > > In tree view can you hide the keys of the array? I was messing with > > using > > > it to display directory and subdirectory contents, but it seems that > you > > > have to display the key, which makes some other things more difficult. > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at 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 at 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." From klaus at major-k.de Wed Oct 31 10:51:12 2018 From: klaus at major-k.de (Klaus major-k) Date: Wed, 31 Oct 2018 15:51:12 +0100 Subject: system date also works with the long system date? Message-ID: <41F6DBF1-DF93-43E3-9089-94E91BA3A67A@major-k.de> Hi friends, quick question, see subject, just to be sure. Maybe someone can confirm this. ---------------------------------------------------- Problem, LC on ANDROID still does not support the system date, so sorting by date in a datagrid does not work for non-english dates. This just one of the inconveniences resulting from this missing feature Who also thinks this SHOULD work on Android (4 years after the confirmed report), please consider to add comment here: Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From brian at milby7.com Wed Oct 31 11:31:06 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 31 Oct 2018 10:31:06 -0500 Subject: tree view hide key In-Reply-To: References: Message-ID: Tree view displays a LiveCode array, so everything is key-value. What you are running up against is that the value is either a string or an array. What are you wanting to use as a key? How are you storing the data now prior to presentation? That is probably the single issue that can't be readily addressed. If you can represent your data as a LiveCode array where keys are sorted either numerically or alphabetically, then the tree view widget can present the data. Extending the widget to hide the value would not be that difficult though. In the tree view, non-leaf nodes have the disclosure triangle. Are you talking about when you get the hilitedElement? Thanks, Brian On Wed, Oct 31, 2018 at 8:09 AM Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > ? Nodes can't have both keys and values, only leaves can > ? You can't hide the key > ? Hiding the key is kind of important if you're trying to use it for a > directory tree view. Working around this requires assigning keys only but > no values, but if you do that then you can't figure out (without looking at > the array) whether you are dealing with a leaf or a node. > > > On Tue, Oct 30, 2018 at 6:43 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > What kind of work? Here are a couple that I can think of that are not > > easily addressed: > > - Arbitrary sort would take significant changes (a couple options: 2 > part > > key [1,firstkey], [2,asecondkey] or restructuring the array format to > > something like [key][title], [key][value] where the title and optionally > > value would be displayed and keys just used for sorting). > > - Inline editing is something that LCB doesn't support. > > > > My goal is to submit a PR today that will facilitate keyboard navigation > (I > > want to add a couple properties that can be controlled from LCS which can > > handle the keypresses). > > > > Several code changes are already completed and either merged (9.1) or > > waiting review. > > - Numeric sort will now also sort the non-number entries below the > numbers > > - If you select a row that is hidden by folding, it will expand to show > the > > row > > - You can have the selected item scroll into view when selected > > - When an element is added interactively, it can be configured to > > auto-select the new element > > - You can reset the fold state to collapse the entire tree (optionally > > setting the arrayData at the same time) > > - MouseUp no longer registers as a click when the MouseDown was on a > > different row > > > > I don't see anything else in the QCC for the Tree Widget that I can > address > > at the moment. > > > > Thanks, > > Brian > > > > On Tue, Oct 30, 2018 at 5:08 PM Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Yeah I really tried to like the tree view widget but it needs work. > > > > > > Sent from my iPhone > > > > > > > On Oct 30, 2018, at 13:38, Mike Kerner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > > In tree view can you hide the keys of the array? I was messing with > > > using > > > > it to display directory and subdirectory contents, but it seems that > > you > > > > have to display the key, which makes some other things more > difficult. > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 31 11:37:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Oct 2018 15:37:53 +0000 Subject: Mysteries of Me In-Reply-To: References: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> <125E4359-B727-4DCC-876D-19628DB4A51C@iotecdigital.com> Message-ID: It's not a bug, it's a limitation (probably the wrong word) of the parser. As has been talked about in the past, messing with the parser is one of the least desirable things the devs have to do, and from what I have gleaned, they avoid it if at all possible. The parser is really where all the LC magic is. Currently the spells are working quite nicely. You don't want to mess with the magic. :-) Bob S > On Oct 30, 2018, at 10:56 , Sannyasin Brahmanathaswami via use-livecode wrote: > > Hmm, is that a bug? Should we report it? I think so. > > > > On 10/30/18 5:54 AM, Bob Sneidar via use-livecode wrote: >> Ah yes I've encountered this. What I do is I have 2 functions: getParentCard() and getParentStack(). pass the long id of any object on a card and they return the long id of the card, or the long filename of the stack respectively. Then you can use go tParentCard and that will compile. Your issue is in fact, why I wrote these functions! They are very simple as you can see: >> >> function getParentCard pObjectID >> put offset("card id", pObjectID) into tStartChar >> put char tStartChar to -1 of pObjectID into tCardID >> return tCardID >> end getParentCard >> >> function getParentStack pObjectID >> put offset("stack ", pObjectID) into tStartChar >> put char tStartChar to -1 of pObjectID into tParentStack >> return tParentStack >> end getParentStack >> >> Bob S >> >> >>> On Oct 29, 2018, at 17:15 , Sannyasin Brahmanathaswami via use-livecode wrote: >>> >>> @tom go card and go to card same thing. >>> >>> @ bob >>> >>> That's what I understand (as you have described it) >>> >>> -- The behavior is set in the properties of a stack. >>> -- the SE suggestions "knows" this and on typing >>> go card...[List of cards in current stack appears... choose one) >>> >>> # you get: >>> >>> go card "my-audio-library" of me #as we would expect >>> >>> # but it gives an error; will not compile. You have to be explicit: >>> >>> go card "my-audio-library" of this stack >>> >>> # then it compiles >>> >>> -- re: backscript >>> >>> function isThisTrue() then >>> go card "my-audio-library" of me # as per SE suggestions >>> # generates an error >>> end isThisTrue >>> >>> # isThisTrue , is part of a back script. It won't compile >>> # I wondered it that was causing a reference change >>> # because this works >>> >>> function isThisTrue() then >>> go card "my-audio-library" of this stack >>> end isThisTrue > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Oct 31 12:04:41 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 31 Oct 2018 11:04:41 -0500 Subject: Mysteries of Me In-Reply-To: References: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> <125E4359-B727-4DCC-876D-19628DB4A51C@iotecdigital.com> Message-ID: <166cadea5a8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> A guess: "me" resolves correctly for controls only. Stacks and cards are not controls, so behaviors attached to those resolve to the behavior script itself. Since there are no cards in a behavior script, it fails. Maybe. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 31, 2018 10:39:53 AM Bob Sneidar via use-livecode wrote: > It's not a bug, it's a limitation (probably the wrong word) of the parser. > As has been talked about in the past, messing with the parser is one of the > least desirable things the devs have to do, and from what I have gleaned, > they avoid it if at all possible. The parser is really where all the LC > magic is. Currently the spells are working quite nicely. You don't want to > mess with the magic. :-) > > Bob S > > >> On Oct 30, 2018, at 10:56 , Sannyasin Brahmanathaswami via use-livecode >> wrote: >> >> Hmm, is that a bug? Should we report it? I think so. >> >> >> >> On 10/30/18 5:54 AM, Bob Sneidar via use-livecode wrote: >>> Ah yes I've encountered this. What I do is I have 2 functions: >>> getParentCard() and getParentStack(). pass the long id of any object on a >>> card and they return the long id of the card, or the long filename of the >>> stack respectively. Then you can use go tParentCard and that will compile. >>> Your issue is in fact, why I wrote these functions! They are very simple as >>> you can see: >>> >>> function getParentCard pObjectID >>> put offset("card id", pObjectID) into tStartChar >>> put char tStartChar to -1 of pObjectID into tCardID >>> return tCardID >>> end getParentCard >>> >>> function getParentStack pObjectID >>> put offset("stack ", pObjectID) into tStartChar >>> put char tStartChar to -1 of pObjectID into tParentStack >>> return tParentStack >>> end getParentStack >>> >>> Bob S >>> >>> >>>> On Oct 29, 2018, at 17:15 , Sannyasin Brahmanathaswami via use-livecode >>>> wrote: >>>> >>>> @tom go card and go to card same thing. >>>> >>>> @ bob >>>> >>>> That's what I understand (as you have described it) >>>> >>>> -- The behavior is set in the properties of a stack. >>>> -- the SE suggestions "knows" this and on typing >>>> go card...[List of cards in current stack appears... choose one) >>>> >>>> # you get: >>>> >>>> go card "my-audio-library" of me #as we would expect >>>> >>>> # but it gives an error; will not compile. You have to be explicit: >>>> >>>> go card "my-audio-library" of this stack >>>> >>>> # then it compiles >>>> >>>> -- re: backscript >>>> >>>> function isThisTrue() then >>>> go card "my-audio-library" of me # as per SE suggestions >>>> # generates an error >>>> end isThisTrue >>>> >>>> # isThisTrue , is part of a back script. It won't compile >>>> # I wondered it that was causing a reference change >>>> # because this works >>>> >>>> function isThisTrue() then >>>> go card "my-audio-library" of this stack >>>> end isThisTrue >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Wed Oct 31 12:07:35 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 31 Oct 2018 12:07:35 -0400 Subject: tree view hide key In-Reply-To: References: Message-ID: I was thinking about using it for a directory view. It seemed like a natural fit - nodes are subdirectories and leaves are files. You can't just limit the hiliteChanged event to leaves, so you have to be able to determine if the user clicked on a leaf or a node, and if it's a node behave differently than if it's a leaf. Nodes can't have values in the tree view, so using numeric keys and setting the values to the filenames and telling the user to ignore the keys won't work because the subfolder name won't even appear in the tree view if you do that. You could fake it by appending a fake key on the front of the subfolder name, I suppose, but we're rapidly approaching "why not just use a table field or dg" at that point, and I really don't want the key and the value both appearing anyway. In order to not have a key and a value appearing you have to set the keys to the file (and subfolder) names. In that case, though, you don't know if the user just clicked on a leaf or a node, unless you go back to the array and inspect it. From dfepstein at comcast.net Wed Oct 31 13:26:02 2018 From: dfepstein at comcast.net (DAVID Epstein) Date: Wed, 31 Oct 2018 13:26:02 -0400 (EDT) Subject: Large files crash on Windows 10 In-Reply-To: References: Message-ID: <86868921.92800.1541006762216@connect.xfinity.com> Does anyone else have problems dealing with large files on Windows 10? My main LiveCode tool is a stack of about 1.5 MB, and I use it to create, save, and open LiveCode stacks that store text and graphics. These "content" stacks can be anywhere from a few kilobytes to 50 MB or more. On an iMac, these all run smoothly. On Windows 10, my larger content stacks (>10 MB) will sometimes close unexpectedly, or crash LiveCode entirely. The typical trigger is either executing a save command, or clicking on a list of cards to navigate to a card that contains a large table of text. Does anyone have relevant experiences or suggested remedies or ways of better diagnosing the problem? Perhaps relevant is that on the Mac I mostly use LC 5.5, on Windows 10 I am using LC Community 9.0 (dp4). Many thanks. David Epstein From jjs at krutt.org Wed Oct 31 13:46:57 2018 From: jjs at krutt.org (JJS) Date: Wed, 31 Oct 2018 18:46:57 +0100 Subject: Continual iOS Simulator Problems In-Reply-To: References: Message-ID: Does the emulator itself not work? Or does your app not run on the emulator? You can either hit the test button to run it on an open emulator. But you can also create a standalone on mac and drag the the standalone file to the emulator (or was a real device) anyway can't remember but i did drag it towards devices in Xcode But your Provisioning Profile is OK? Op 30-10-2018 om 03:47 schreef Roger Guay via use-livecode: > Hi Folks, > > I?m on a Mac with OS 10.14 and using LC 9.0.0 Indy, and I have the green square indication in LC prefs with SDK 11.2. > > I can?t get the simulator to work with test target set to simulator 11.2. It simply takes too long to open and then crashes if I persist. > > In fact, it seems to me that I?ve had this problem with the simulator not working in previous versions as well. > > Any help or suggestions are greatly appreciated. > > Thanks, > > Roger > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Wed Oct 31 15:18:39 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 31 Oct 2018 15:18:39 -0400 Subject: LiveCode Pseudo Captcha? In-Reply-To: <41F6DBF1-DF93-43E3-9089-94E91BA3A67A@major-k.de> References: <41F6DBF1-DF93-43E3-9089-94E91BA3A67A@major-k.de> Message-ID: Hi there, I wanted to know if anyone has created a Captcha type solution just using LiveCode? (I am not a fan of Javascript as many users turn it off for security reasons.) I?m thinking some kind of pictures oriented approach might be fun, but I am also wondering what the best approach might be if I have to roll my own version. Any thoughts, suggestions, or ideas for such a LiveCode server solution? Thanks, Rick From matthias_livecode_150811 at m-r-d.de Wed Oct 31 15:51:43 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 31 Oct 2018 20:51:43 +0100 Subject: Large files crash on Windows 10 In-Reply-To: <86868921.92800.1541006762216@connect.xfinity.com> References: <86868921.92800.1541006762216@connect.xfinity.com> Message-ID: <4DAE4B44-C0AD-46AC-807E-F9A1952AB145@m-r-d.de> > > Perhaps relevant is that on the Mac I mostly use LC 5.5, on Windows 10 I am using LC Community 9.0 (dp4). Just out of interest, did you try with LC 9.0 on Mac OS X also and is there a reason why you do not use 9.0.1? Regards, Matthias Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de From jacque at hyperactivesw.com Wed Oct 31 16:05:33 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 31 Oct 2018 15:05:33 -0500 Subject: LiveCode Pseudo Captcha? In-Reply-To: References: <41F6DBF1-DF93-43E3-9089-94E91BA3A67A@major-k.de> Message-ID: On 10/31/18 2:18 PM, Rick Harrison via use-livecode wrote: > I wanted to know if anyone has created a > Captcha type solution just using LiveCode? I haven't, but I used a regular form with two radio buttons. At first it said: Please show us you are human: x I am a human x I'm a robot Within 24 hours I received spam from a bot. So I changed it to: Please choose the correct answer: x I am a mindless automaton x I think, therefore I am And in the last several years I haven't had a single bot find the form. The key, I believe, is to avoid any use of bot keywords like "human", "person", "robot", "bot" or anything else similar. The above looks like an unimportant picklist and they either ignore it or can't parse it. A friend copied my form to his website and last I heard he hasn't had a bot hit yet either. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From kee.nethery at elloco.com Wed Oct 31 16:09:37 2018 From: kee.nethery at elloco.com (kee nethery) Date: Wed, 31 Oct 2018 13:09:37 -0700 Subject: LiveCode Pseudo Captcha? In-Reply-To: References: <41F6DBF1-DF93-43E3-9089-94E91BA3A67A@major-k.de> Message-ID: <6F43A159-2F9F-4ED6-A861-72C70059BAF5@elloco.com> We had a math question that was randomly generated. What is the result of ? And for answers we would include the three answers that used the three possible operations. The question was in words, the answers were digits. Seemed to work for us. Kee > On Oct 31, 2018, at 1:05 PM, J. Landman Gay via use-livecode wrote: > > On 10/31/18 2:18 PM, Rick Harrison via use-livecode wrote: >> I wanted to know if anyone has created a >> Captcha type solution just using LiveCode? > > I haven't, but I used a regular form with two radio buttons. At first it said: > > Please show us you are human: > x I am a human > x I'm a robot > > Within 24 hours I received spam from a bot. So I changed it to: > > Please choose the correct answer: > x I am a mindless automaton > x I think, therefore I am > > And in the last several years I haven't had a single bot find the form. The key, I believe, is to avoid any use of bot keywords like "human", "person", "robot", "bot" or anything else similar. The above looks like an unimportant picklist and they either ignore it or can't parse it. > > A friend copied my form to his website and last I heard he hasn't had a bot hit yet either. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Wed Oct 31 16:11:25 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 31 Oct 2018 16:11:25 -0400 Subject: LiveCode Pseudo Captcha? In-Reply-To: References: <41F6DBF1-DF93-43E3-9089-94E91BA3A67A@major-k.de> Message-ID: <60AE728F-1A34-43D5-9625-506366F18741@all-auctions.com> Nice! I had also toyed with the idea of radio buttons for multiple choice questions and answers combined perhaps with a date picker. Any other ideas? Thanks, Rick > On Oct 31, 2018, at 4:05 PM, J. Landman Gay via use-livecode wrote: > > I haven't, but I used a regular form with two radio buttons. At first it said: > > Please show us you are human: > x I am a human > x I'm a robot > > Within 24 hours I received spam from a bot. So I changed it to: > > Please choose the correct answer: > x I am a mindless automaton > x I think, therefore I am > > And in the last several years I haven't had a single bot find the form. The key, I believe, is to avoid any use of bot keywords like "human", "person", "robot", "bot" or anything else similar. The above looks like an unimportant picklist and they either ignore it or can't parse it. > > A friend copied my form to his website and last I heard he hasn't had a bot hit yet either. From matthias_livecode_150811 at m-r-d.de Wed Oct 31 16:31:58 2018 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 31 Oct 2018 21:31:58 +0100 Subject: Continual iOS Simulator Problems In-Reply-To: <3b4f4276-990d-4872-8a7e-80ec2570f7ec@Spark> References: <3b4f4276-990d-4872-8a7e-80ec2570f7ec@Spark> Message-ID: > > Am 30.10.2018 um 04:13 schrieb Brian Milby via use-livecode : > > Have you tried launching the simulator from Xcode first and after it is fully loaded then trying to test from LC? That?s how i am doing it, because pressing the test button in LC with the simulator not running produces here exact the same problems. First there are these notification messages that the simulator does not respond or takes to long to start(or something like that - you all know that message) and i have to choose if want to continue. If i acknowledge to continue, then the message appears after some time again and so on. When i press the button to not continue, the simulator hangs. At least it does not respond for a very long time. I have to use the activity monitor to quit the simulator. If i open the simulator first and wait until the iOS device is started completely, then i can test the LC app without a problem. Unfortunately i very often forget to start the simulator first and and that then takes time i could use more useful. Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de From bodine at bodinetraininggames.com Wed Oct 31 18:13:50 2018 From: bodine at bodinetraininggames.com (tbodine) Date: Wed, 31 Oct 2018 17:13:50 -0500 (CDT) Subject: Large files crash on Windows 10 In-Reply-To: <86868921.92800.1541006762216@connect.xfinity.com> References: <86868921.92800.1541006762216@connect.xfinity.com> Message-ID: <1541024030776-0.post@n4.nabble.com> Hi, I develop a stack that is now up to 35 MBs on a Windows 10 machine without any crashes like you described. I use LC 7.1.4 Indy for this. I also distribute standalones built with this stack and it is also stable on Windows 10. When you have these crashes, do you find the artifact ~ file that indicates the Save process was interrupted or has failed? Does the stack file become corrupted? Tom B. -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From bobsneidar at iotecdigital.com Wed Oct 31 19:00:24 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Oct 2018 23:00:24 +0000 Subject: Mysteries of Me In-Reply-To: <166cadea5a8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <7CE8E54D-8B3C-44DA-8264-0D597C5D42FB@iotecdigital.com> <125E4359-B727-4DCC-876D-19628DB4A51C@iotecdigital.com> <166cadea5a8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Me is resolving correctly for me in stack, card and behavior scripts attached to them. The issue I think was that you cannot seem to reference card of me in a stack script handler. So I created handlers that return the parent card or stack of an object. The object can be the long id of a card even, when getting the parent stack, and that you can use in any reference so far as I know. All it's doing is forcing the full card ID or stack name resolution so the parser doesn't need to use fuzzy logic. Bob S > On Oct 31, 2018, at 09:04 , J. Landman Gay via use-livecode wrote: > > A guess: "me" resolves correctly for controls only. Stacks and cards are not controls, so behaviors attached to those resolve to the behavior script itself. Since there are no cards in a behavior script, it fails. Maybe. > -- > Jacqueline Landman Gay From bobsneidar at iotecdigital.com Wed Oct 31 19:03:33 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Oct 2018 23:03:33 +0000 Subject: tree view hide key In-Reply-To: References: Message-ID: <342071A4-683E-4C05-A277-D3FB7BB1FDE2@iotecdigital.com> You and others have addressed a lot of the work I think, and thank you for that by the way. One of the things I would like to see is something akin to findRecord and findIndex in a datagrid. Of course, finding something several levels in requires that you would need to return not just a number, but a root node with the path to the found item, so you can reference it in the future, getting and setting anything in the "path". I wanted to create a list of items with a name and value, but then I realized I wanted to rearrange them, moving them up and down in the list. I also wanted to be able to double-click an item and put the value into another field. I call the feature "QuickNotes" where I have a pallette like stack I can double click text snippets to fill in a field with text I type often, as in a copier installation. In the end I used a datagrid so no big deal, but it left me wondering why I would ever use a tree view. But as you mentioned a lot of work is being done on it now. I cannot switch over to 9.1 yet because I made a custom change in the datagrid behavior which allows me to nest behaviors, so until that gets bundled into a release I cannot test any new changes (at least not with my current project). Bob S > On Oct 30, 2018, at 15:47 , Brian Milby via use-livecode wrote: > > What kind of work? Here are a couple that I can think of that are not > easily addressed: > - Arbitrary sort would take significant changes (a couple options: 2 part > key [1,firstkey], [2,asecondkey] or restructuring the array format to > something like [key][title], [key][value] where the title and optionally > value would be displayed and keys just used for sorting). > - Inline editing is something that LCB doesn't support. > > My goal is to submit a PR today that will facilitate keyboard navigation (I > want to add a couple properties that can be controlled from LCS which can > handle the keypresses). > > Several code changes are already completed and either merged (9.1) or > waiting review. > - Numeric sort will now also sort the non-number entries below the numbers > - If you select a row that is hidden by folding, it will expand to show the > row > - You can have the selected item scroll into view when selected > - When an element is added interactively, it can be configured to > auto-select the new element > - You can reset the fold state to collapse the entire tree (optionally > setting the arrayData at the same time) > - MouseUp no longer registers as a click when the MouseDown was on a > different row > > I don't see anything else in the QCC for the Tree Widget that I can address > at the moment. > > Thanks, > Brian > > On Tue, Oct 30, 2018 at 5:08 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Yeah I really tried to like the tree view widget but it needs work. >> >> Sent from my iPhone >> >>> On Oct 30, 2018, at 13:38, Mike Kerner via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> In tree view can you hide the keys of the array? I was messing with >> using >>> it to display directory and subdirectory contents, but it seems that you >>> have to display the key, which makes some other things more difficult. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Oct 31 19:10:36 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Oct 2018 23:10:36 +0000 Subject: Large files crash on Windows 10 In-Reply-To: <86868921.92800.1541006762216@connect.xfinity.com> References: <86868921.92800.1541006762216@connect.xfinity.com> Message-ID: <67F705FC-12F9-498D-8698-7E69824958E8@iotecdigital.com> I had this issue, because I was attempting to save from a standalone, and the permissions were not set for writing to the place I was saving the stacks to. I had to disable stack saving in Windows to prevent the CDT. Bob S > On Oct 31, 2018, at 10:26 , DAVID Epstein via use-livecode wrote: > > Does anyone else have problems dealing with large files on Windows 10? My main LiveCode tool is a stack of about 1.5 MB, and I use it to create, save, and open LiveCode stacks that store text and graphics. These "content" stacks can be anywhere from a few kilobytes to 50 MB or more. On an iMac, these all run smoothly. On Windows 10, my larger content stacks (>10 MB) will sometimes close unexpectedly, or crash LiveCode entirely. The typical trigger is either executing a save command, or clicking on a list of cards to navigate to a card that contains a large table of text. From bobsneidar at iotecdigital.com Wed Oct 31 19:11:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 31 Oct 2018 23:11:30 +0000 Subject: Large files crash on Windows 10 In-Reply-To: <67F705FC-12F9-498D-8698-7E69824958E8@iotecdigital.com> References: <86868921.92800.1541006762216@connect.xfinity.com> <67F705FC-12F9-498D-8698-7E69824958E8@iotecdigital.com> Message-ID: <9D31AF38-5DE6-446E-8421-617FF2B1C6F3@iotecdigital.com> Actually now that I think of it I believe I had to disable saving stacks in ANY platform unless in development mode. Bob S > On Oct 31, 2018, at 16:10 , Bob Sneidar wrote: > > I had this issue, because I was attempting to save from a standalone, and the permissions were not set for writing to the place I was saving the stacks to. I had to disable stack saving in Windows to prevent the CDT. > > Bob S > > >> On Oct 31, 2018, at 10:26 , DAVID Epstein via use-livecode wrote: >> >> Does anyone else have problems dealing with large files on Windows 10? My main LiveCode tool is a stack of about 1.5 MB, and I use it to create, save, and open LiveCode stacks that store text and graphics. These "content" stacks can be anywhere from a few kilobytes to 50 MB or more. On an iMac, these all run smoothly. On Windows 10, my larger content stacks (>10 MB) will sometimes close unexpectedly, or crash LiveCode entirely. The typical trigger is either executing a save command, or clicking on a list of cards to navigate to a card that contains a large table of text. >