From heather at livecode.com Tue Mar 1 06:33:57 2022 From: heather at livecode.com (Heather Laine) Date: Tue, 1 Mar 2022 11:33:57 +0000 Subject: Into the future In-Reply-To: References: <0C06FFF4-A226-4AF9-9116-BB93AF012B53@gmail.com> <2319602F-6A27-4615-8DAC-3D9D4CC8C57A@starfirelighting.com> Message-ID: To build a Mac App, you need to have Xcode tools on your Mac. You don't need to use them. You don't even need to know about them. They just have to be there. If you've never installed Xcode they won't be there. See this lesson: https://lessons.livecode.com/m/4603/l/1353263-i-m-getting-an-error-when-trying-to-save-as-standalone-on-mac Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 1 Mar 2022, at 00:35, Bob Sneidar via use-livecode wrote: > > I am getting, "Adding ad-hoc signature failed with error: replacing existing signature xcrun: error: invalid active developer path (/library/developer/commandlinetools), missing xcrun at...the code sign_allocate helper tool cannot be found in subcomponent /Contents/MacOS/revsecurity.dylib > > I think I will attempt to download the command line tools and see if that fixes it. > > The ad-hoc certificate is (if I am not mistaken) a self signed certificate. > > Bob S > > >> On Feb 28, 2022, at 13:40 , General 2018 via use-livecode wrote: >> >> I think some misunderstandings …. >> >> You can build LC standalone with no certifications on MacOS desktop. >> >> The issue comes when you wish to codesign and notarise for distribution downloads from web etc. To do any codesigning and notarization with apple you need the certificates and be a member of the development program. >> >> The standalone will run fine but without apple codesign and notarization but the latest MacOS gatekeeper will give warnings etc on MacOS desktop. >> >> For IOS the certified route is a must. >> >> Regards >> Camm >> >>> On 28 Feb 2022, at 21:25, Craig Newman via use-livecode wrote: >>> >>> All. >>> >>> I am not sure I am following this thread correctly. Is the issue that some sort of certificate is now required for creating a standalone for desktop? >>> >>> Craig >>> >>>> On Feb 28, 2022, at 4:12 PM, William Prothero via use-livecode wrote: >>>> >>>> Dealing with Apple certificates is the most onerous part of building a standalone. I really wish the livecode team could help address this issue and help us out. >>>> >>>> best, >>>> Bill >>>> >>>> William A Prothero >>>> >>>>>> On Feb 28, 2022, at 12:56 PM, Tom Glod via use-livecode wrote: >>>>> >>>>> I use a mac in the cloud ..... but i have yet to do any signing .... I >>>>> gotta get myself to do it this week. thanks for the reminder...i've been >>>>> putting it off like its math homework only worse. :D >>>>> >>>>> https://www.macincloud.com/ >>>>> >>>>>> On Mon, Feb 28, 2022 at 3:38 PM matthias rebbe via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Bob, >>>>>> >>>>>> with which version of LC did you see this? >>>>>> >>>>>> I had a look at the most current dp version of 10. If LC would require a >>>>>> certificate then there should be somewhere in the standalone settings a >>>>>> area where one could select an appropriate certificate. But that is not >>>>>> the case. >>>>>> >>>>>> What LC does for some time now when creating a macOS standalone is doing >>>>>> an ad-hoc code signing. Please do not ask me what that is, ;) >>>>>> but this kind of code signing seems not to require a certificate. >>>>>> The ad-hoc code signing is done in the stack >>>>>> revsaveasstandalone.livecodescript. Search for 'private command >>>>>> performAdHocCodesign' >>>>>> >>>>>> So there might some other problem and LC does come up with a misleading >>>>>> error message. >>>>>> >>>>>> Matthias >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Am 28.02.2022 um 19:52 schrieb Bob Sneidar via use-livecode < >>>>>> use-livecode at lists.runrev.com>: >>>>>>> >>>>>>> Hi Klaus. >>>>>>> >>>>>>> Actually the new LC versions do not create the standalone without those >>>>>> certificates. That is the error dialog I get. If there is a way to disable >>>>>> that feature that would be great! >>>>>>> >>>>>>> Bob S >>>>>>> >>>>>>> >>>>>>>> On Feb 28, 2022, at 10:18 , Klaus major-k via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Hi Bob, >>>>>>>> >>>>>>>>> Am 28.02.2022 um 18:18 schrieb Bob Sneidar via use-livecode < >>>>>> use-livecode at lists.runrev.com>: >>>>>>>>> >>>>>>>>> Okay, so I am at the point that I cannot build apps without >>>>>> codesigning and notarizing. Livecode will throw an error now if I try and >>>>>> don't have these certificates installed. Great. >>>>>>>>> >>>>>>>>> So I have been going through the tutorial, and I see I have to be an >>>>>> Apple Developer, which means I have to shell out yet another $100 per year. >>>>>> Fine, I did that, even though my app is for internal consumption only. >>>>>>>>> >>>>>>>>> Now It appears that for me to get the certificates needed to create a >>>>>> Mac standalone, I need xCode! Okay, I go to download xCode, and it will not >>>>>> install because my MacOS is too old! 10.15.1 is apparently ancient! So I am >>>>>> at the point now where I am asking myself, is this really worth it? After >>>>>> all the back and forth on the list where people's certificates expire, or >>>>>> the version of xCode they are forced to use isn't compatible with one thing >>>>>> or another, is building Mac standalones really worth it? >>>>>>>>> >>>>>>>>> So my question is, do I really have to go through all this just to >>>>>> create a Mac standalone from livecode? Or do these other utilities, >>>>>> mrSignNotarizeHelperV3 for example, eliminate the need for all of that? >>>>>>>>> >>>>>>>>> Bob S >>>>>>>> >>>>>>>> you can still create a standalone with LC without any certificate etc.! >>>>>>>> >>>>>>>>> ...even though my app is for internal consumption only. >>>>>>>> >>>>>>>> >>>>>>>> But your user(s) need to check -> Allow downloads from: Appstore and >>>>>> trusted developers >>>>>>>> In the macOS system settings -> Security >>>>>>>> >>>>>>>> And after the they need to right-click your app and select "Open..." >>>>>> from the context menu >>>>>>>> and confirm once or twice that they really want to open that app. >>>>>>>> >>>>>>>> After that they can doubleclick the app furthermore like the used to. >>>>>>>> >>>>>>>> >>>>>>>> Best >>>>>>>> >>>>>>>> Klaus >>>>>>>> >>>>>>>> -- >>>>>>>> Klaus Major >>>>>>>> https://www.major-k.de >>>>>>>> https://www.major-k.de/bass >>>>>>>> klaus at major-k.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 >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode 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 >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 preid at reidit.co.uk Tue Mar 1 06:55:54 2022 From: preid at reidit.co.uk (preid at reidit.co.uk) Date: Tue, 1 Mar 2022 11:55:54 +0000 Subject: How to use LiveCode In-Reply-To: References: Message-ID: <712134FF-FA43-42DE-BFFF-E1737274246B@reidit.co.uk> Hi I hit the same problem a little while ago and decided to try to dodge the issue as much as possible. My solution was to include the following guidance where appropriate: Can't Open ... Note that both Mac and Windows users may be asked to give permission to run the app for the first time. This is because we haven't gone through the processes to register the app with Apple and Microsoft - it's not worth the effort for limited distribution apps. If you're unhappy about this or at all unsure that you trust our apps, don't use them! Otherwise, just do what's required once and you'll not be bothered again when you use the app from then onwards. See "Can't Open Mac App.pdf " or "Can't Open Windows App.pdf " as appropriate for guidance. Here's an example of how I provide this advice as part of a distribution web page: https://www.reid-it.co.uk/downloads/down_bballs.htm For my purposes, the above covers my needs since my projects are almost always for a small number of users, often for in-house use only. If something like the above works for you, you're welcome to use my guidance sheets, either as is or with your own modifications. Regards Peter From merakosp at gmail.com Tue Mar 1 09:14:10 2022 From: merakosp at gmail.com (panagiotis m) Date: Tue, 1 Mar 2022 16:14:10 +0200 Subject: How to install XCode essentials only for LiveCode builds In-Reply-To: <705C8E94-3457-4A80-BC94-C9FC46B7607F@iotecdigital.com> References: <705C8E94-3457-4A80-BC94-C9FC46B7607F@iotecdigital.com> Message-ID: Hello all, Note that this is necessary for building standalone for **macOS**. The version of the downloaded command line tools does NOT matter in this case. I _think_ this command downloads the latest version by default, or at least the latest version that can be installed in your machine. Building standalone for **iOS** does require to download the full Xcode bundle though - and in this case the version (of Xcode) does matter. In the future we might make it so that the Xcode version does not matter in this case too. Kind regards, Panos -- On Tue, 1 Mar 2022 at 02:50, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Okay installing the command line tools fixed the certificate issue thanks > all. Now there is some file not getting included involving the database > api. I will have to nail that one down. > > Bob S > > > > On Feb 28, 2022, at 11:42 , Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > > > Sean asked me to post this in a separate post. :-) > > > > We do not have to install the complete (ca. 16 GB) Xcode package to > create a standalone with LC. > > Just install the neccessary command line tools via the TERMINAL, enter: > > xcode-select --install > > > > And it will download all neccessary stuff. > > > > > > Best > > > > Klaus > > -- > > Klaus Major > > https://www.major-k.de > > https://www.major-k.de/bass > > klaus at major-k.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 1 09:55:12 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 1 Mar 2022 14:55:12 +0000 Subject: Extracting Unicode text from Oracle over ODBC In-Reply-To: References: <16d5c250-fcc8-1490-3829-8b6209690202@cogapp.com> Message-ID: Hi Jacque Thanks for replying, but unfortunately these aren't relevant - the binary data is coming through fine, but it seems that something upstream has dumbed it down. Anyone else have any experience with this? TIA, Ben On 28/02/2022 20:04, J. Landman Gay via use-livecode wrote: > With the caveat that I know nothing about it, the normalize and formSensitive > functions sound related. > > On 2/28/22 11:50 AM, Ben Rubinstein via use-livecode wrote: >> I'm trying to extract text from an Oracle database, via ODBC, on Windows. >> (Using the 64 bit "Oracle in instantclient_19_5".) >> >> Generally fine, except that where the text contains Unicode characters >> beyond the Windows Latin1/CP512 character set, I'm not getting them. >> >> I'm not getting random garbage; I'm getting a sensible transliteration, e.g. >> "n" for "" (n-caron). So this isn't simply getting the bytes and >> misinterpreting them. >> >> Per >> https://community.oracle.com/tech/apps-infra/discussion/2424496/issue-with-character-set-conversion-using-oracle-odbc-client, >> >> >>> The conversion for the ODBC driver is performed by OCI to/from UTF-16 and >>> it is independent of the NLS_LANG character set. If the C++ application is >>> written in the ANSI mode (does not use wide character data types), >>> Microsoft ODBC Manager will convert between the application and the Oracle >>> ODBC driver, between system code page (Cp 1252) and UTF-16. >> >> The ODBC driver has a checkbox "Force SQL_WCHAR Support". I've tried both >> settings of this checkbox. Depending on the setting, I have to take a >> different approach to retrieving the data in order not to get garbage >> (passing a variable name to revDatabaseColumnNumbered and then using >> uniDecode). But when I don't get garbage, I also don't get the characters >> with diacritics - but I do get the correct character. >> >> Does anyone have experience of this? Do I need to modify the SQL Select >> statement in some way to get the correct version of the data? >> >> TIA, >> >> Ben >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 marksmithhfx at gmail.com Tue Mar 1 10:12:37 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 1 Mar 2022 15:12:37 +0000 Subject: How to install XCode essentials only for LiveCode builds In-Reply-To: References: <705C8E94-3457-4A80-BC94-C9FC46B7607F@iotecdigital.com> Message-ID: <16BD3A12-9AA0-4A27-A90E-33844490D302@gmail.com> Thanks for the clarification Panos. Much appreciated. Mark > On Mar 1, 2022, at 2:14 PM, panagiotis m via use-livecode wrote: > > Hello all, > > Note that this is necessary for building standalone for **macOS**. The > version of the downloaded command line tools does NOT matter in this case. > I _think_ this command downloads the latest version by default, or at least > the latest version that can be installed in your machine. > > Building standalone for **iOS** does require to download the full Xcode > bundle though - and in this case the version (of Xcode) does matter. In the > future we might make it so that the Xcode version does not matter in this > case too. > > Kind regards, > Panos > -- > > On Tue, 1 Mar 2022 at 02:50, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Okay installing the command line tools fixed the certificate issue thanks >> all. Now there is some file not getting included involving the database >> api. I will have to nail that one down. >> >> Bob S >> >> >>> On Feb 28, 2022, at 11:42 , Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi all, >>> >>> Sean asked me to post this in a separate post. :-) >>> >>> We do not have to install the complete (ca. 16 GB) Xcode package to >> create a standalone with LC. >>> Just install the neccessary command line tools via the TERMINAL, enter: >>> xcode-select --install >>> >>> And it will download all neccessary stuff. >>> >>> >>> Best >>> >>> Klaus >>> -- >>> Klaus Major >>> https://www.major-k.de >>> https://www.major-k.de/bass >>> klaus at major-k.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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 benr_mc at cogapp.com Tue Mar 1 10:24:49 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 1 Mar 2022 15:24:49 +0000 Subject: Have we lost the Oracle driver? Message-ID: A long time ago I used to access Oracle directly from a LiveCode app. For some years now I've only done this via ODBC, though I don't recall why that changed. The Dictionary entry for revOpenDatabase lists five variants ("mysql", "odbc", "sqlite", "postgresql", "oracle"); but the User Guide (p. 303) lists three plus ODBC. Now I'm trying to access an Oracle database directly again (in the IDE), and when my code hits revOpenData("oracle", ....) it breaks into the debugger as if there was a breakpoint on that statement - there isn't; it switches to but the "Errors" tab says "No errors found". However after 'stepping', it halts altogether and the errors tab says execution error at line n/a (External handler execution error: revdberr,driver not licensed for this edition) As I understand it there is now only one edition (with a buffet of deployment platforms), the Standard Plan, and my account says that I have a "LiveCode Professional" license (I admit that I am thoroughly confused about plans, licenses etc). Oracle isn't mentioned in the "Pro Feature Pack" either. Is Oracle supported? If so what do I need to do to access that? TIA, Ben From matthias_livecode_150811 at m-r-d.de Tue Mar 1 10:33:23 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 1 Mar 2022 16:33:23 +0100 Subject: Have we lost the Oracle driver? In-Reply-To: References: Message-ID: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> I just had a quick look at the LC externals/database and the runtime/externals/database folders. There are still dboracle... files in it. So at least the drivers are there. Matthias > Am 01.03.2022 um 16:24 schrieb Ben Rubinstein via use-livecode : > > A long time ago I used to access Oracle directly from a LiveCode app. > > For some years now I've only done this via ODBC, though I don't recall why that changed. > > The Dictionary entry for revOpenDatabase lists five variants ("mysql", "odbc", "sqlite", "postgresql", "oracle"); but the User Guide (p. 303) lists three plus ODBC. > > Now I'm trying to access an Oracle database directly again (in the IDE), and when my code hits > revOpenData("oracle", ....) > > it breaks into the debugger as if there was a breakpoint on that statement - there isn't; it switches to but the "Errors" tab says "No errors found". > > However after 'stepping', it halts altogether and the errors tab says > > execution error at line n/a (External handler execution error: revdberr,driver not licensed for this edition) > > As I understand it there is now only one edition (with a buffet of deployment platforms), the Standard Plan, and my account says that I have a "LiveCode Professional" license (I admit that I am thoroughly confused about plans, licenses etc). Oracle isn't mentioned in the "Pro Feature Pack" either. > > Is Oracle supported? If so what do I need to do to access that? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 1 10:51:27 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 1 Mar 2022 15:51:27 +0000 Subject: Have we lost the Oracle driver? In-Reply-To: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> Message-ID: Hi Matthias, Good spot! Thanks for checking. I wonder whether this is an accidental omission, in that Oracle was at one time only available at a certain higher level of license; maybe now that there is only level, perhaps someone forgot to tweak whatever bit of code checked that the 'correct' license was in place? Panos can you comment? Many thanks, Ben On 01/03/2022 15:33, matthias rebbe via use-livecode wrote: > I just had a quick look at the LC externals/database and the runtime/externals/database folders. There are still dboracle... files in it. > So at least the drivers are there. > > > Matthias > > >> Am 01.03.2022 um 16:24 schrieb Ben Rubinstein via use-livecode : >> >> A long time ago I used to access Oracle directly from a LiveCode app. >> >> For some years now I've only done this via ODBC, though I don't recall why that changed. >> >> The Dictionary entry for revOpenDatabase lists five variants ("mysql", "odbc", "sqlite", "postgresql", "oracle"); but the User Guide (p. 303) lists three plus ODBC. >> >> Now I'm trying to access an Oracle database directly again (in the IDE), and when my code hits >> revOpenData("oracle", ....) >> >> it breaks into the debugger as if there was a breakpoint on that statement - there isn't; it switches to but the "Errors" tab says "No errors found". >> >> However after 'stepping', it halts altogether and the errors tab says >> >> execution error at line n/a (External handler execution error: revdberr,driver not licensed for this edition) >> >> As I understand it there is now only one edition (with a buffet of deployment platforms), the Standard Plan, and my account says that I have a "LiveCode Professional" license (I admit that I am thoroughly confused about plans, licenses etc). Oracle isn't mentioned in the "Pro Feature Pack" either. >> >> Is Oracle supported? If so what do I need to do to access that? >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 at livecode.com Tue Mar 1 11:08:58 2022 From: mark at livecode.com (Mark Waddingham) Date: Tue, 01 Mar 2022 16:08:58 +0000 Subject: Have we lost the Oracle driver? In-Reply-To: References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> Message-ID: <30ba104925924fe988d911669ecc60c0@livecode.com> On 2022-03-01 15:51, Ben Rubinstein via use-livecode wrote: > Hi Matthias, > > Good spot! Thanks for checking. > > I wonder whether this is an accidental omission, in that Oracle was at > one time only available at a certain higher level of license; maybe > now that there is only level, perhaps someone forgot to tweak whatever > bit of code checked that the 'correct' license was in place? All business-only features were moved to be part of the pro features pack - the oracle driver included. If it isn't working in your current version of LC, check that the license you have licensed LC with does have the pro features pack in it... If you do `put the revLicenseInfo` it should say professional, rather than commercial. If it doesn't say professional, Relicense your IDE using the menu item in Help and flick through the licenses you have available until one says 'pro' in the title. If the revLicenseInfo does say professional then something odd has happened somewhere which will need to look into more deeply! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Tue Mar 1 11:19:50 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 1 Mar 2022 16:19:50 +0000 Subject: Into the future In-Reply-To: References: <0C06FFF4-A226-4AF9-9116-BB93AF012B53@gmail.com> <2319602F-6A27-4615-8DAC-3D9D4CC8C57A@starfirelighting.com> Message-ID: <04535821-A1CA-4505-9FD4-7BC4A33AA0F5@iotecdigital.com> Yup. I figured that out with the excellent help of the list users. :-) Bob S > On Mar 1, 2022, at 03:33 , Heather Laine via use-livecode wrote: > > To build a Mac App, you need to have Xcode tools on your Mac. You don't need to use them. You don't even need to know about them. They just have to be there. If you've never installed Xcode they won't be there. See this lesson: > > https://lessons.livecode.com/m/4603/l/1353263-i-m-getting-an-error-when-trying-to-save-as-standalone-on-mac > > Best Regards, > > Heather > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com From tom at makeshyft.com Tue Mar 1 11:25:48 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 1 Mar 2022 11:25:48 -0500 Subject: MobileVibrate In-Reply-To: <635048CA-DC48-4F1E-BB9D-0AF534DD9B41@elementarysoftware.com> References: <524fde60-ff94-d449-01af-8effdaa10cfe@hyperactivesw.com> <479317ff-9c66-4a1c-b95d-154b3979a49b@cogapp.com> <17f3ee6e650.27ee.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <17f41ab9048.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6d515e90-7844-a1d5-489f-abb17052b187@hyperactivesw.com> <635048CA-DC48-4F1E-BB9D-0AF534DD9B41@elementarysoftware.com> Message-ID: I have activated vibrate on my android build for my StarterStack and it worked fine. My Phone is running android 8.1. It mostly vibrates, but there are moments when it doesn't on one particular button. I hope that helps. On Mon, Feb 28, 2022 at 7:49 PM scott--- via use-livecode < use-livecode at lists.runrev.com> wrote: > > > I wish the docs would specify that you need to either include a library > or a permission for commands that require those. > > +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 jiml at netrin.com Tue Mar 1 11:57:25 2022 From: jiml at netrin.com (Jim Lambert) Date: Tue, 1 Mar 2022 08:57:25 -0800 Subject: RIP David Boggs In-Reply-To: References: Message-ID: https://www.nytimes.com/2022/02/28/technology/david-boggs-dead.html?smid=url-share From benr_mc at cogapp.com Tue Mar 1 12:45:13 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 1 Mar 2022 17:45:13 +0000 Subject: Have we lost the Oracle driver? In-Reply-To: <30ba104925924fe988d911669ecc60c0@livecode.com> References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> <30ba104925924fe988d911669ecc60c0@livecode.com> Message-ID: <2a93b9dc-78ea-0196-5f74-eaa8b394bc03@cogapp.com> Hi Mark, Thanks for responding. Indeed 'the revLicenseInfo` returned "...commercial". After re-licensing, it now says "...professional" - however, I still can't open a connection to an Oracle database. Re-licensing *did* make a difference: whereas previously it broke into the debugger, and (sometimes) displayed the error > execution error at line n/a (External handler execution error: revdberr,driver not licensed for this edition) now revOpenDatabase simply returns > revdberr,invalid database type So I guess it's not a licensing issue any more, which is good; but I still can't get at the database! Can you suggest where my next issue might be? Many thanks, Ben On 01/03/2022 16:08, Mark Waddingham via use-livecode wrote: > On 2022-03-01 15:51, Ben Rubinstein via use-livecode wrote: >> Hi Matthias, >> >> Good spot! Thanks for checking. >> >> I wonder whether this is an accidental omission, in that Oracle was at >> one time only available at a certain higher level of license; maybe >> now that there is only level, perhaps someone forgot to tweak whatever >> bit of code checked that the 'correct' license was in place? > > All business-only features were moved to be part of the pro features pack - > the oracle driver included. > > If it isn't working in your current version of LC, check that the license you > have licensed LC with does have the pro features pack in it... > > If you do `put the revLicenseInfo` it should say professional, rather than > commercial. > > If it doesn't say professional, Relicense your IDE using the menu item in Help > and flick through the licenses you have available until one says 'pro' in the > title. > > If the revLicenseInfo does say professional then something odd has happened > somewhere which will need to look into more deeply! > > Warmest Regards, > > Mark. > From stephen at barncard.com Tue Mar 1 13:26:05 2022 From: stephen at barncard.com (Stephen Barncard) Date: Tue, 1 Mar 2022 10:26:05 -0800 Subject: RIP David Boggs In-Reply-To: References: Message-ID: Paywall On Tue, Mar 1, 2022 at 08:58 Jim Lambert via use-livecode < use-livecode at lists.runrev.com> wrote: > > https://www.nytimes.com/2022/02/28/technology/david-boggs-dead.html?smid=url-share > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From ahsoftware at sonic.net Tue Mar 1 13:31:07 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 1 Mar 2022 10:31:07 -0800 Subject: RIP David Boggs In-Reply-To: References: Message-ID: <2e3c6c9f-8318-6a20-cd30-e3a5306284ca@sonic.net> On 3/1/22 10:26, Stephen Barncard via use-livecode wrote: > Paywall Opened without a paywall for me. That last quote is a keeper. -- Mark Wieder ahsoftware at gmail.com From bogdanoff at me.com Tue Mar 1 13:43:18 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Tue, 1 Mar 2022 10:43:18 -0800 Subject: RIP David Boggs In-Reply-To: <2e3c6c9f-8318-6a20-cd30-e3a5306284ca@sonic.net> References: <2e3c6c9f-8318-6a20-cd30-e3a5306284ca@sonic.net> Message-ID: <2E4FA02C-F81B-43CB-8E27-14D38AEA2F36@me.com> https://dnyuz.com/2022/02/28/david-boggs-co-inventor-of-ethernet-dies-at-71/ > On Mar 1, 2022, at 10:31 AM, Mark Wieder via use-livecode > wrote: > > On 3/1/22 10:26, Stephen Barncard via use-livecode wrote: >> Paywall > > Opened without a paywall for me. > That last quote is a keeper. > > -- > 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 stephen at barncard.com Tue Mar 1 13:45:44 2022 From: stephen at barncard.com (Stephen Barncard) Date: Tue, 1 Mar 2022 10:45:44 -0800 Subject: RIP David Boggs In-Reply-To: <2e3c6c9f-8318-6a20-cd30-e3a5306284ca@sonic.net> References: <2e3c6c9f-8318-6a20-cd30-e3a5306284ca@sonic.net> Message-ID: The NYT claim that I have used up all of my “free views” this month is a LIE. Anyway, the New York Times is all about Rupert Murdoch now as far as I’m concerned. Not exactly trusted. I’m glad that Boggs invented ethernet. I remember when I first heard about it; I was at a seminar for Covis in 1980 - all their Star Terminals in the room were connected via ethernet. Later that year I had a job interview with Andy Moore to possibly work at Sprocket systems in San Rafael (Lucasfilm) and they also had a network of star terminals all over the facility. I didn’t have a degree so I didn’t get that second call. But it was good to see my friends at work there, one eventually got an Academy award for his work on Star Wars. On Tue, Mar 1, 2022 at 10:32 Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 3/1/22 10:26, Stephen Barncard via use-livecode wrote: > > Paywall > > Opened without a paywall for me. > That last quote is a keeper. > > -- > 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 > -- -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From jacque at hyperactivesw.com Tue Mar 1 13:50:43 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 01 Mar 2022 12:50:43 -0600 Subject: MobileVibrate In-Reply-To: References: <524fde60-ff94-d449-01af-8effdaa10cfe@hyperactivesw.com> <479317ff-9c66-4a1c-b95d-154b3979a49b@cogapp.com> <17f3ee6e650.27ee.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <17f41ab9048.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6d515e90-7844-a1d5-489f-abb17052b187@hyperactivesw.com> <635048CA-DC48-4F1E-BB9D-0AF534DD9B41@elementarysoftware.com> Message-ID: <17f46d203b8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Here's the good part. Once I realized my mistake it worked fine, I built the app and it vibrated as expected. I found it massively annoying so I took it out. Such is life. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 1, 2022 10:28:01 AM Tom Glod via use-livecode wrote: > I have activated vibrate on my android build for my StarterStack and it > worked fine. My Phone is running android 8.1. > It mostly vibrates, but there are moments when it doesn't on one particular > button. > I hope that helps. > > On Mon, Feb 28, 2022 at 7:49 PM scott--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> > I wish the docs would specify that you need to either include a library >> or a permission for commands that require those. >> >> +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 From ahsoftware at sonic.net Tue Mar 1 13:53:08 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 1 Mar 2022 10:53:08 -0800 Subject: RIP David Boggs In-Reply-To: References: <2e3c6c9f-8318-6a20-cd30-e3a5306284ca@sonic.net> Message-ID: On 3/1/22 10:45, Stephen Barncard via use-livecode wrote: > The NYT claim that I have used up all of my free views this month is a > LIE. Open it in an incognito browser window then. > > Anyway, the New York Times is all about Rupert Murdoch now as far as Im > concerned. Not exactly trusted. That's the New York *Post*. -- Mark Wieder ahsoftware at gmail.com From merakosp at gmail.com Wed Mar 2 07:58:49 2022 From: merakosp at gmail.com (panagiotis m) Date: Wed, 2 Mar 2022 14:58:49 +0200 Subject: Have we lost the Oracle driver? In-Reply-To: <2a93b9dc-78ea-0196-5f74-eaa8b394bc03@cogapp.com> References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> <30ba104925924fe988d911669ecc60c0@livecode.com> <2a93b9dc-78ea-0196-5f74-eaa8b394bc03@cogapp.com> Message-ID: Hello Ben, I take it you are on MacOS? Which MacOS version, and which LiveCode version are you using? Could it be the case you haven't got the right version of Oracle Instant Client installed? You need libclntsh.dylib.11.1, found here: https://download.oracle.com/otn/mac/instantclient/11204/instantclient-basic-macos.x64-11.2.0.4.0.zip Kind regards, Panos -- On Tue, 1 Mar 2022 at 19:46, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mark, > > Thanks for responding. Indeed 'the revLicenseInfo` returned > "...commercial". > After re-licensing, it now says "...professional" - however, I still can't > open a connection to an Oracle database. > > Re-licensing *did* make a difference: whereas previously it broke into the > debugger, and (sometimes) displayed the error > > execution error at line n/a (External handler execution error: > revdberr,driver not licensed for this edition) > > now revOpenDatabase simply returns > > revdberr,invalid database type > > So I guess it's not a licensing issue any more, which is good; but I still > can't get at the database! Can you suggest where my next issue might be? > > Many thanks, > > Ben > > On 01/03/2022 16:08, Mark Waddingham via use-livecode wrote: > > On 2022-03-01 15:51, Ben Rubinstein via use-livecode wrote: > >> Hi Matthias, > >> > >> Good spot! Thanks for checking. > >> > >> I wonder whether this is an accidental omission, in that Oracle was at > >> one time only available at a certain higher level of license; maybe > >> now that there is only level, perhaps someone forgot to tweak whatever > >> bit of code checked that the 'correct' license was in place? > > > > All business-only features were moved to be part of the pro features > pack - > > the oracle driver included. > > > > If it isn't working in your current version of LC, check that the > license you > > have licensed LC with does have the pro features pack in it... > > > > If you do `put the revLicenseInfo` it should say professional, rather > than > > commercial. > > > > If it doesn't say professional, Relicense your IDE using the menu item > in Help > > and flick through the licenses you have available until one says 'pro' > in the > > title. > > > > If the revLicenseInfo does say professional then something odd has > happened > > somewhere which will need to look into more deeply! > > > > Warmest Regards, > > > > 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 phil at pdslabs.net Wed Mar 2 16:01:54 2022 From: phil at pdslabs.net (Phil Davis) Date: Wed, 2 Mar 2022 13:01:54 -0800 Subject: RIP David Boggs In-Reply-To: <2e3c6c9f-8318-6a20-cd30-e3a5306284ca@sonic.net> References: <2e3c6c9f-8318-6a20-cd30-e3a5306284ca@sonic.net> Message-ID: <0a16dba5-48d9-0df0-c4ec-d45ef2f9f772@pdslabs.net> The quote, for those struggling with browsers and paywalls. I was able to see it in a Tor browser: Before becoming the dominant networking protocol, Ethernet was challenged by several other technologies. In the early 1980s, Mr. Metcalfe said, when Mr. Boggs took the stage at a California computing conference, at the San Jose Convention Center, to discuss the future of networking, a rival technologist questioned the mathematical theory behind Ethernet, telling Mr. Boggs that it would never work with large numbers of machines. His response was unequivocal. Seems Ethernet does not work in theory, he said, only in practice. https://www.nytimesn7cgmftshazwhfgzm37qxb44r64ytbb2dj3x62d2lljsciiyd.onion/2022/02/28/technology/david-boggs-dead.html A keeper indeed. Phil Davis On 3/1/22 10:31 AM, Mark Wieder via use-livecode wrote: > On 3/1/22 10:26, Stephen Barncard via use-livecode wrote: >> Paywall > > Opened without a paywall for me. > That last quote is a keeper. > -- Phil Davis 503-307-4363 From jacque at hyperactivesw.com Wed Mar 2 16:57:53 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 2 Mar 2022 15:57:53 -0600 Subject: Speed up a slow loop Message-ID: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. The loop takes forever. Here it is (sDictFile is a script local): repeat for each line l in pList -- pList is the user word list if sDictFile[l] = true then put l & cr after tCheckedList else put l & cr after tNonWords wait 0 with messages -- prevent ANRs end repeat I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From harrison at all-auctions.com Wed Mar 2 18:06:54 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 2 Mar 2022 18:06:54 -0500 Subject: Speed up a slow loop In-Reply-To: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: <26055F0C-6CE3-4C7F-99E2-F48C0D3AC42F@all-auctions.com> What happens if you wait longer than 0? Rick > On Mar 2, 2022, at 4:57 PM, J. Landman Gay via use-livecode wrote: > > In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. > > The loop takes forever. Here it is (sDictFile is a script local): > > repeat for each line l in pList -- pList is the user word list > if sDictFile[l] = true then put l & cr after tCheckedList > else put l & cr after tNonWords > wait 0 with messages -- prevent ANRs > end repeat > > I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. > > With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. > > Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. > > I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. > > -- > 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 devin_asay at byu.edu Wed Mar 2 18:12:49 2022 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 2 Mar 2022 23:12:49 +0000 Subject: Speed up a slow loop In-Reply-To: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> Jacque, Have you tried put the keys of sDictFile into tCorrWdList repeat for each line I in pList if I is among the lines of tCorrWdList then put I & cr after tCheckedList else put I & cr after tNonWords end if end repeat I just wonder if there is some overhead with checking the array on each iteration. But like you say, it may not be the repeat loop at all. - Devin On Mar 2, 2022, at 2:57 PM, J. Landman Gay via use-livecode > wrote: In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. The loop takes forever. Here it is (sDictFile is a script local): repeat for each line l in pList -- pList is the user word list if sDictFile[l] = true then put l & cr after tCheckedList else put l & cr after tNonWords wait 0 with messages -- prevent ANRs end repeat I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. -- 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 Devin Asay Office of Digital Humanities Brigham Young University From jerry at jhjensen.com Wed Mar 2 19:19:23 2022 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 2 Mar 2022 16:19:23 -0800 Subject: Speed up a slow loop In-Reply-To: <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> Message-ID: Could using “is among the keys of sDictFile” instead of the loop be another advantage? .Jerry > On Mar 2, 2022, at 3:12 PM, Devin Asay via use-livecode wrote: > > Jacque, > > Have you tried > > put the keys of sDictFile into tCorrWdList > repeat for each line I in pList > if I is among the lines of tCorrWdList then > put I & cr after tCheckedList > else > put I & cr after tNonWords > end if > end repeat > > I just wonder if there is some overhead with checking the array on each iteration. > > But like you say, it may not be the repeat loop at all. > > - Devin > > > On Mar 2, 2022, at 2:57 PM, J. Landman Gay via use-livecode > wrote: > > In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. > > The loop takes forever. Here it is (sDictFile is a script local): > > repeat for each line l in pList -- pList is the user word list > if sDictFile[l] = true then put l & cr after tCheckedList > else put l & cr after tNonWords > wait 0 with messages -- prevent ANRs > end repeat > > I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. > > With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. > > Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. > > I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. > > -- > 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 > > Devin Asay > 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 harrison at all-auctions.com Wed Mar 2 19:32:05 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 2 Mar 2022 19:32:05 -0500 Subject: Speed up a slow loop In-Reply-To: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: Eon’s ago I had a similar problem in Fortran. My solution was to break up my huge array into 3 smaller alphabetical arrays. I had to first determine with some if statements which of the 3 arrays I had to search. The solution turned a glacially slow search into a very acceptable one. You may want to try a similar solution. Good luck! Rick > On Mar 2, 2022, at 4:57 PM, J. Landman Gay via use-livecode wrote: > > In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. > > The loop takes forever. Here it is (sDictFile is a script local): > > repeat for each line l in pList -- pList is the user word list > if sDictFile[l] = true then put l & cr after tCheckedList > else put l & cr after tNonWords > wait 0 with messages -- prevent ANRs > end repeat > > I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. > > With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. > > Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. > > I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. > > -- > 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 jacque at hyperactivesw.com Wed Mar 2 19:35:55 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 2 Mar 2022 18:35:55 -0600 Subject: Speed up a slow loop In-Reply-To: <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> Message-ID: <4af46911-1cfc-0193-6114-023dd71973ab@hyperactivesw.com> On 3/2/22 5:12 PM, Devin Asay via use-livecode wrote: > Have you tried > > put the keys of sDictFile into tCorrWdList > repeat for each line I in pList > if I is among the lines of tCorrWdList then > put I & cr after tCheckedList > else > put I & cr after tNonWords > end if > end repeat Yeah. No change. But I do appreciate the reply. I've been trying to figure this out for 2 days. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Mar 2 19:39:24 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 2 Mar 2022 18:39:24 -0600 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> Message-ID: <4c23e345-8b4e-2f25-6551-df0702638a21@hyperactivesw.com> On 3/2/22 6:19 PM, Jerry Jensen via use-livecode wrote: > Could using “is among the keys of sDictFile” instead of the loop be another advantage? I need to loop through all the user words, checking each one against the dictionary. I.e. the loop is going through a short list of user entries, not the entire dictionary. Weird, isn't it? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Mar 2 19:40:05 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 2 Mar 2022 18:40:05 -0600 Subject: Speed up a slow loop In-Reply-To: <26055F0C-6CE3-4C7F-99E2-F48C0D3AC42F@all-auctions.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <26055F0C-6CE3-4C7F-99E2-F48C0D3AC42F@all-auctions.com> Message-ID: On 3/2/22 5:06 PM, Rick Harrison via use-livecode wrote: > What happens if you wait longer than 0? It gets slower. :( -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From phil at pdslabs.net Wed Mar 2 19:40:57 2022 From: phil at pdslabs.net (Phil Davis) Date: Wed, 2 Mar 2022 16:40:57 -0800 Subject: Speed up a slow loop In-Reply-To: <4af46911-1cfc-0193-6114-023dd71973ab@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> <4af46911-1cfc-0193-6114-023dd71973ab@hyperactivesw.com> Message-ID: <2ed69f1e-bbd4-25b2-8e87-7433d2423e53@pdslabs.net> Jacque - Did it ever work as expected, or has it always behaved this way on all devices? (If it ever did work right, I guess that points to a change that happened outside your code.) Phil Davis On 3/2/22 4:35 PM, J. Landman Gay via use-livecode wrote: > On 3/2/22 5:12 PM, Devin Asay via use-livecode wrote: >> Have you tried >> >> put the keys of sDictFile into tCorrWdList >> repeat for each line I in pList >>     if I is among the lines of tCorrWdList then >>        put I & cr after tCheckedList >>     else >>        put I & cr after tNonWords >>     end if >> end repeat > > Yeah. No change. But I do appreciate the reply. I've been trying to > figure this out for 2 days. > -- Phil Davis 503-307-4363 From jacque at hyperactivesw.com Wed Mar 2 19:52:38 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 2 Mar 2022 18:52:38 -0600 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: On 3/2/22 6:32 PM, Rick Harrison via use-livecode wrote: > Eon’s ago I had a similar problem in Fortran. > > My solution was to break up my huge array into 3 smaller > alphabetical arrays. I had to first determine with some > if statements which of the 3 arrays I had to search. > > The solution turned a glacially slow search into a very acceptable one. > > You may want to try a similar solution. That's a thought, though I hate to go there. I was using the SOWPODS dictionary which has a gazillion words, and switched to a different, shorter word list and that did help a bit. I noticed today though that there's a more general slowdown overall. When I first launch the app it takes only a second to set up the board display. If I keep hitting the "new board" button repeatedly, each setup takes a bit longer. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jerry at jhjensen.com Wed Mar 2 20:44:24 2022 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 2 Mar 2022 17:44:24 -0800 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> Message-ID: Now that I’m thinking more directly, I’ll try again: Instead of putting the keys into tCorrWdList and using “among the lines of tCorrWdList", how about using “among the keys of tCorrWdList”? Judging from no knowledge of the internals but guessing what it must do: “among the lines” has to look for all the line endings (unicode!), but “among the keys” can jump along by constant offsets since the keys are all fixed length hashes ? The lines happen to be all the same length, but “among the lines” can’t assume that and has to go look. Maybe I’m missing something again . . . .Jerry > On Mar 2, 2022, at 4:19 PM, Jerry Jensen via use-livecode wrote: > > Could using “is among the keys of sDictFile” instead of the loop be another advantage? > .Jerry > >> On Mar 2, 2022, at 3:12 PM, Devin Asay via use-livecode wrote: >> >> Jacque, >> >> Have you tried >> >> put the keys of C into tCorrWdList >> repeat for each line I in pList >> if I is among the lines of tCorrWdList then >> put I & cr after tCheckedList >> else >> put I & cr after tNonWords >> end if >> end repeat >> >> I just wonder if there is some overhead with checking the array on each iteration. >> >> But like you say, it may not be the repeat loop at all. >> >> - Devin >> >> >> On Mar 2, 2022, at 2:57 PM, J. Landman Gay via use-livecode > wrote: >> >> In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. >> >> The loop takes forever. Here it is (sDictFile is a script local): >> >> repeat for each line l in pList -- pList is the user word list >> if sDictFile[l] = true then put l & cr after tCheckedList >> else put l & cr after tNonWords >> wait 0 with messages -- prevent ANRs >> end repeat >> >> I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. >> >> With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. >> >> Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. >> >> I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. >> >> -- >> 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 >> >> Devin Asay >> 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 >> > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jerry at jhjensen.com Wed Mar 2 21:02:09 2022 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 2 Mar 2022 18:02:09 -0800 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> Message-ID: Arrgh. Try again. “among the keys of C” instead of the keys of tCorrWdList like I wrote. I’ll quit now. .Jerry > On Mar 2, 2022, at 5:44 PM, Jerry Jensen via use-livecode wrote: > > Now that I’m thinking more directly, I’ll try again: > > Instead of putting the keys OF C into tCorrWdList and using > “among the lines of tCorrWdList", > how about using “among the keys of tCorrWdList”? — wrong - should have geen the keys of C instead > > Judging from no knowledge of the internals but guessing what it must do: > “among the lines” has to look for all the line endings (unicode!), > but “among the keys” can jump along by constant offsets since > the keys are all fixed length hashes ? > The lines happen to be all the same length, but “among the lines” can’t assume that and has to go look. > > Maybe I’m missing something again . . . > .Jerry > > >> On Mar 2, 2022, at 4:19 PM, Jerry Jensen via use-livecode wrote: >> >> Could using “is among the keys of sDictFile” instead of the loop be another advantage? >> .Jerry >> >>> On Mar 2, 2022, at 3:12 PM, Devin Asay via use-livecode wrote: >>> >>> Jacque, >>> >>> Have you tried >>> >>> put the keys of C into tCorrWdList >>> repeat for each line I in pList >>> if I is among the lines of tCorrWdList then >>> put I & cr after tCheckedList >>> else >>> put I & cr after tNonWords >>> end if >>> end repeat >>> >>> I just wonder if there is some overhead with checking the array on each iteration. >>> >>> But like you say, it may not be the repeat loop at all. >>> >>> - Devin >>> >>> >>> On Mar 2, 2022, at 2:57 PM, J. Landman Gay via use-livecode > wrote: >>> >>> In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. >>> >>> The loop takes forever. Here it is (sDictFile is a script local): >>> >>> repeat for each line l in pList -- pList is the user word list >>> if sDictFile[l] = true then put l & cr after tCheckedList >>> else put l & cr after tNonWords >>> wait 0 with messages -- prevent ANRs >>> end repeat >>> >>> I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. >>> >>> With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. >>> >>> Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. >>> >>> I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. >>> >>> -- >>> 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 >>> >>> Devin Asay >>> 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 >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed Mar 2 21:11:37 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 2 Mar 2022 21:11:37 -0500 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <26055F0C-6CE3-4C7F-99E2-F48C0D3AC42F@all-auctions.com> Message-ID: <25A75A69-739E-49CC-BE22-A53E2D618950@all-auctions.com> A few years ago I found that 0.1 milliseconds was faster for some crazy reason. Maybe that bug finally got fixed? > On Mar 2, 2022, at 7:40 PM, J. Landman Gay via use-livecode wrote: > > It gets slower. :( From harrison at all-auctions.com Wed Mar 2 21:14:24 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 2 Mar 2022 21:14:24 -0500 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: <2D5E2443-F1E2-4FC5-994A-EE44E6A981BD@all-auctions.com> That sounds like a memory leak! > On Mar 2, 2022, at 7:52 PM, J. Landman Gay via use-livecode wrote: > > I noticed today though that there's a more general slowdown overall. When I first launch the app it takes only a second to set up the board display. If I keep hitting the "new board" button repeatedly, each setup takes a bit longer. From harrison at all-auctions.com Wed Mar 2 21:15:58 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 2 Mar 2022 21:15:58 -0500 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: <69FF7634-08F1-46B6-BB42-5D27327D18C8@all-auctions.com> It could also be the garbage collection cycle isn’t working right. > On Mar 2, 2022, at 7:52 PM, J. Landman Gay via use-livecode wrote: > > I noticed today though that there's a more general slowdown overall. When I first launch the app it takes only a second to set up the board display. If I keep hitting the "new board" button repeatedly, each setup takes a bit longer. From jacque at hyperactivesw.com Wed Mar 2 21:19:59 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 2 Mar 2022 20:19:59 -0600 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> Message-ID: <70725685-1811-84d9-b6bc-26adaf7c7d34@hyperactivesw.com> On 3/2/22 7:44 PM, Jerry Jensen via use-livecode wrote: > Instead of putting the keys into tCorrWdList and using > “among the lines of tCorrWdList", > how about using “among the keys of tCorrWdList”? > > Judging from no knowledge of the internals but guessing what it must do: > “among the lines” has to look for all the line endings (unicode!), > but “among the keys” can jump along by constant offsets since > the keys are all fixed length hashes ? > The lines happen to be all the same length, but “among the lines” can’t assume that and has to go look. > > Maybe I’m missing something again . . . > .Jerry Actually, this is what I do: if sDictFile[L] = true then... which I thought would be pretty fast since it's accessing the array directly. The array looks like this: sDictFile word1 -> true word2 -> true word3 -> true And my loop does this, for each user word: if sDictFile["word2"] = true then... so I'm not really looping through the keys, just looking for a matching one. The loop is for each user word I need to find. If there's no key, then the word isn't legal. I hope that makes sense. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Mar 2 21:23:26 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 2 Mar 2022 20:23:26 -0600 Subject: Speed up a slow loop In-Reply-To: <2ed69f1e-bbd4-25b2-8e87-7433d2423e53@pdslabs.net> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> <4af46911-1cfc-0193-6114-023dd71973ab@hyperactivesw.com> <2ed69f1e-bbd4-25b2-8e87-7433d2423e53@pdslabs.net> Message-ID: <814b7d91-2a41-eea2-1d34-4be2f3d6163a@hyperactivesw.com> On 3/2/22 6:40 PM, Phil Davis via use-livecode wrote: > Did it ever work as expected, or has it always behaved this way on all devices? (If it ever did > work right, I guess that points to a change that happened outside your code.) I'm trying to remember. I've mostly been testing on my tablet where the board has a big enough hit region. It's only recently I've tried testing on a phone. I'll go back to some of my earlier builds and see how they behave. Good thought. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jerry at jhjensen.com Wed Mar 2 22:06:27 2022 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 2 Mar 2022 19:06:27 -0800 Subject: Speed up a slow loop In-Reply-To: <70725685-1811-84d9-b6bc-26adaf7c7d34@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2ACFB130-4962-4D7F-B1C5-18603A3249F6@byu.edu> <70725685-1811-84d9-b6bc-26adaf7c7d34@hyperactivesw.com> Message-ID: That does make sense and now I understand the problem. > On Mar 2, 2022, at 6:19 PM, J. Landman Gay via use-livecode wrote: > > Actually, this is what I do: > > if sDictFile[L] = true then... > > which I thought would be pretty fast since it's accessing the array directly. The array looks like this: > > sDictFile > word1 -> true > word2 -> true > word3 -> true > > And my loop does this, for each user word: > > if sDictFile["word2"] = true then... > > so I'm not really looping through the keys, just looking for a matching one. The loop is for each user word I need to find. If there's no key, then the word isn't legal. I hope that makes sense. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > _______________________________________________ From rdimola at evergreeninfo.net Wed Mar 2 22:29:43 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 2 Mar 2022 22:29:43 -0500 Subject: Speed up a slow loop In-Reply-To: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: <000001d82eae$efe7c240$cfb746c0$@net> I ran into this when doing mobile predictive typing for US cities(40,000) with a scrollable dropdown of results. I did with a loop in JavaScript in html and was instantly fast. So in LC IDE I started with the loop thing and it was too slow. There was a 3/4 of a second blip as each character was typed. I found that "filter the lines" is blazingly fast. So I built the cr list of cities with the city followed by a dash and then the metadata I needed (lat/lons). Use the "filter into" form so the original list remains unchanged. I do a filter for each character typed. Works like a charm. Now LC is as fast as the JavaScript version. When filtering if you want the exact term then search with the dash added at the end for the search term. "filter" must be using your time machine somehow. 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 J. Landman Gay via use-livecode Sent: Wednesday, March 02, 2022 4:58 PM To: LiveCode Mailing List Cc: J. Landman Gay Subject: Speed up a slow loop In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. The loop takes forever. Here it is (sDictFile is a script local): repeat for each line l in pList -- pList is the user word list if sDictFile[l] = true then put l & cr after tCheckedList else put l & cr after tNonWords wait 0 with messages -- prevent ANRs end repeat I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. -- 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 jerry at jhjensen.com Thu Mar 3 00:39:21 2022 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 2 Mar 2022 21:39:21 -0800 Subject: Speed up a slow loop In-Reply-To: <000001d82eae$efe7c240$cfb746c0$@net> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <000001d82eae$efe7c240$cfb746c0$@net> Message-ID: <45CE90A0-DAC7-445A-9516-DB7C1546550A@jhjensen.com> I did not know about filter! I think I am cured of my “among” disease. .Jerry > On Mar 2, 2022, at 7:29 PM, Ralph DiMola via use-livecode wrote: > > I ran into this when doing mobile predictive typing for US cities(40,000) > with a scrollable dropdown of results. I did with a loop in JavaScript in > html and was instantly fast. So in LC IDE I started with the loop thing and > it was too slow. There was a 3/4 of a second blip as each character was > typed. I found that "filter the lines" is blazingly fast. So I built the cr > list of cities with the city followed by a dash and then the metadata I > needed (lat/lons). Use the "filter into" form so the original list remains > unchanged. I do a filter for each character typed. Works like a charm. Now > LC is as fast as the JavaScript version. > When filtering if you want the exact term then search with the dash added at > the end for the search term. > > "filter" must be using your time machine somehow. From ambassador at fourthworld.com Thu Mar 3 00:41:40 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 2 Mar 2022 21:41:40 -0800 Subject: Speed up a slow loop In-Reply-To: <70725685-1811-84d9-b6bc-26adaf7c7d34@hyperactivesw.com> References: <70725685-1811-84d9-b6bc-26adaf7c7d34@hyperactivesw.com> Message-ID: <8bc8c4e6-1766-5a5c-15a6-de7c74c88fa9@fourthworld.com> Jacque wrote: > so I'm not really looping through the keys, just looking for > a matching one. The loop is for each user word I need to find. > If there's no key, then the word isn't legal. What is the ratio of keys whose values are "true" and those which are "false"? And what is the ratio of writes to that array vs reads? -- 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 Thu Mar 3 01:11:36 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 3 Mar 2022 00:11:36 -0600 Subject: Speed up a slow loop In-Reply-To: <2D5E2443-F1E2-4FC5-994A-EE44E6A981BD@all-auctions.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> <2D5E2443-F1E2-4FC5-994A-EE44E6A981BD@all-auctions.com> Message-ID: <56a3faab-f94b-083f-193c-b09f2bad0f8c@hyperactivesw.com> On 3/2/22 8:14 PM, Rick Harrison via use-livecode wrote: > That sounds like a memory leak! I was thinking the same thing, but you'd think it would leak on my old tablet too, the one with far less memory. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Mar 3 01:27:49 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 3 Mar 2022 00:27:49 -0600 Subject: Speed up a slow loop In-Reply-To: <8bc8c4e6-1766-5a5c-15a6-de7c74c88fa9@fourthworld.com> References: <70725685-1811-84d9-b6bc-26adaf7c7d34@hyperactivesw.com> <8bc8c4e6-1766-5a5c-15a6-de7c74c88fa9@fourthworld.com> Message-ID: <7c54f8a0-7ec9-2117-ff83-57d3cdb082cf@hyperactivesw.com> On 3/2/22 11:41 PM, Richard Gaskin via use-livecode wrote: > Jacque wrote: > > > so I'm not really looping through the keys, just looking for > > a matching one. The loop is for each user word I need to find. > > If there's no key, then the word isn't legal. > > What is the ratio of keys whose values are "true" and those which are "false"? There are no false values. The list of words is split as a set, so the keys are the dictionary words and all values are true. > And what is the ratio of writes to that array vs reads? No writes at all, read only. The dictionary is stored gzipped as a custom property. On launch it is decompressed, split into an array, and stored in a script local. It's about 1.8 MB decompressed, I think. Maybe the array structure adds a bit. Not huge, but not small either. The SOWPODS dictionary was twice that size, but my puny tablet had no problem with it. When the user submits a list of words, the handler sees if the array[userWord] is true. I used to just see if the value was empty, but either way it works the same. If no key is available, the word is illegal. BTW, there's another place with a similar slowdown, but one thing at a time. As before, this second thing works fine on the tablet but is slow on my phone. Maybe the reason is the same. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mark at livecode.com Thu Mar 3 01:53:54 2022 From: mark at livecode.com (Mark Waddingham) Date: Thu, 03 Mar 2022 06:53:54 +0000 Subject: Speed up a slow loop In-Reply-To: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: On 2022-03-02 21:57, J. Landman Gay via use-livecode wrote: > The loop takes forever. Here it is (sDictFile is a script local): > > repeat for each line l in pList -- pList is the user word list > if sDictFile[l] = true then put l & cr after tCheckedList > else put l & cr after tNonWords > wait 0 with messages -- prevent ANRs > end repeat > > I added the wait because my Android phone was putting up an "app not > responding" warning while the loop was running (or just after, hard to > tell.) The loop should be much faster than that. When I added some > timing checks though, the timer says the loop takes between 0 and 1 > millisecond, and yet the wait on screen remains. If the difference between `the milliseconds` before the loop, and then after is 0 or 1 millisecond - then that is how long it is taking. This means the issue is somewhere else. Are you sure there isn't anything you are doing either before that loop or after that loop which doesn't wait for ages (due to the ANRs you mentioned). > With a 3-word user list, the loop takes 4 seconds. With an 8 word user > list the loop takes 6 seconds. The more user words, the longer the > wait. If there are only 3 reasonable length words in pList (I.e. 3 lines) then there's no way that loop can take 4 seconds. Of course if the words are multiple megabytes long then it might be possible (however the timing you already stated above suggests the loop isn't actually taking 4 seconds!). > Even stranger: on my cheapo Android tablet with 4 megs of RAM running > Android 9 the response is nearly instantaneous, even if the user list > has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 > the response is slow enough to trigger the ANR with only 3 words. I'm > building for ARM 64. This strongly suggests it is something else either on your phone, or in your code which your phone doesn't like I think. Warmst Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dvglasgow at gmail.com Thu Mar 3 05:30:20 2022 From: dvglasgow at gmail.com (David V Glasgow) Date: Thu, 3 Mar 2022 10:30:20 +0000 Subject: can I filter lines with a list of alternative OR strings? Message-ID: Hi Folks, I can filter text using a single term plus a numerical range s eg: *re 1[0-5]* matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15 But is there a form where the alternatives are also text? eg something like: *big [“dog”, “cat”, “fish”]* The above searches OK, but only for “big”. There is no error, but the parenthetic list is ignored, I think. A number of lines 'filtered with' contain the stem but none of the listed suffix strings. I suppose there is also a supplementary question that if there is a list of alternative strings option, is it more efficient than filtering for "big dog", big cat, etc in turn? If the option exists I feel like it ought to be faster, but what do I know? Cheers David Glasgow From benr_mc at cogapp.com Thu Mar 3 08:23:39 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 3 Mar 2022 13:23:39 +0000 Subject: Have we lost the Oracle driver? In-Reply-To: References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> <30ba104925924fe988d911669ecc60c0@livecode.com> <2a93b9dc-78ea-0196-5f74-eaa8b394bc03@cogapp.com> Message-ID: Hi Panos, LiveCode 9.6.6 on macOS 10.15.7 (Catalina). I've downloaded the Oracle stuff but it doesn't seem to have an install script - where should I put "libclntsh.dylib.11.1"? thanks for your help, Ben On 02/03/2022 12:58, panagiotis m via use-livecode wrote: > Hello Ben, > > I take it you are on MacOS? Which MacOS version, and which LiveCode version > are you using? > > Could it be the case you haven't got the right version of Oracle Instant > Client installed? You need libclntsh.dylib.11.1, found here: > > https://download.oracle.com/otn/mac/instantclient/11204/instantclient-basic-macos.x64-11.2.0.4.0.zip > > Kind regards, > Panos > -- > > On Tue, 1 Mar 2022 at 19:46, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Mark, >> >> Thanks for responding. Indeed 'the revLicenseInfo` returned >> "...commercial". >> After re-licensing, it now says "...professional" - however, I still can't >> open a connection to an Oracle database. >> >> Re-licensing *did* make a difference: whereas previously it broke into the >> debugger, and (sometimes) displayed the error >> > execution error at line n/a (External handler execution error: >> revdberr,driver not licensed for this edition) >> >> now revOpenDatabase simply returns >> > revdberr,invalid database type >> >> So I guess it's not a licensing issue any more, which is good; but I still >> can't get at the database! Can you suggest where my next issue might be? >> >> Many thanks, >> >> Ben >> >> On 01/03/2022 16:08, Mark Waddingham via use-livecode wrote: >>> On 2022-03-01 15:51, Ben Rubinstein via use-livecode wrote: >>>> Hi Matthias, >>>> >>>> Good spot! Thanks for checking. >>>> >>>> I wonder whether this is an accidental omission, in that Oracle was at >>>> one time only available at a certain higher level of license; maybe >>>> now that there is only level, perhaps someone forgot to tweak whatever >>>> bit of code checked that the 'correct' license was in place? >>> >>> All business-only features were moved to be part of the pro features >> pack - >>> the oracle driver included. >>> >>> If it isn't working in your current version of LC, check that the >> license you >>> have licensed LC with does have the pro features pack in it... >>> >>> If you do `put the revLicenseInfo` it should say professional, rather >> than >>> commercial. >>> >>> If it doesn't say professional, Relicense your IDE using the menu item >> in Help >>> and flick through the licenses you have available until one says 'pro' >> in the >>> title. >>> >>> If the revLicenseInfo does say professional then something odd has >> happened >>> somewhere which will need to look into more deeply! >>> >>> Warmest Regards, >>> >>> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Mar 3 08:35:54 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 3 Mar 2022 13:35:54 +0000 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <3ADFAE1A-E99B-4AA6-A3F3-8F71FF174B22@pidigital.co.uk> I usually test this by using put the milliseconds into tMs …loop code… put the milliseconds - tMs This shows me a record of how long that loop took and helps me narrow down where the slow downs are occurring. You can do it within the loop too and keep a record for each iteration and see if it has a problem as it gets further down the list. But not likely with arrays. Sean Cole Pi Digital Productions Ltd eMail Ts & Cs > On 3 Mar 2022, at 06:53, Mark Waddingham via use-livecode wrote: > > On 2022-03-02 21:57, J. Landman Gay via use-livecode wrote: >> The loop takes forever. Here it is (sDictFile is a script local): >> repeat for each line l in pList -- pList is the user word list >> if sDictFile[l] = true then put l & cr after tCheckedList >> else put l & cr after tNonWords >> wait 0 with messages -- prevent ANRs >> end repeat >> I added the wait because my Android phone was putting up an "app not >> responding" warning while the loop was running (or just after, hard to >> tell.) The loop should be much faster than that. When I added some >> timing checks though, the timer says the loop takes between 0 and 1 >> millisecond, and yet the wait on screen remains. > > If the difference between `the milliseconds` before the loop, and then after is 0 or 1 millisecond - then that is how long it is taking. This means the issue is somewhere else. Are you sure there isn't anything you are doing either before that loop or after that loop which doesn't wait for ages (due to the ANRs you mentioned). > >> With a 3-word user list, the loop takes 4 seconds. With an 8 word user >> list the loop takes 6 seconds. The more user words, the longer the >> wait. > > If there are only 3 reasonable length words in pList (I.e. 3 lines) then there's no way that loop can take 4 seconds. Of course if the words are multiple megabytes long then it might be possible (however the timing you already stated above suggests the loop isn't actually taking 4 seconds!). > >> Even stranger: on my cheapo Android tablet with 4 megs of RAM running >> Android 9 the response is nearly instantaneous, even if the user list >> has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 >> the response is slow enough to trigger the ANR with only 3 words. I'm >> building for ARM 64. > > This strongly suggests it is something else either on your phone, or in your code which your phone doesn't like I think. > > Warmst Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode 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 francois.chaplais at mines-paristech.fr Thu Mar 3 09:33:38 2022 From: francois.chaplais at mines-paristech.fr (francois.chaplais) Date: Thu, 3 Mar 2022 15:33:38 +0100 Subject: A question about the compiler to come Message-ID: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> Dear all You probably have received some mail asking for funding concerning a compiler to come. I would like to know if this compiler can target MacOS/ARM processor on the desktop. Best regards, François From harrison at all-auctions.com Thu Mar 3 10:08:49 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 3 Mar 2022 10:08:49 -0500 Subject: A question about the compiler to come In-Reply-To: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> References: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> Message-ID: <55A415EA-CDD3-4882-A58D-7F7D34E7711C@all-auctions.com> According to Kevin’s email: Would this script compiler work on all platforms? All platforms will benefit. Code will run faster and readable scripts will be removed whatever platform you are targeting. Rick > On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode wrote: > > Dear all > > You probably have received some mail asking for funding concerning a compiler to come. > > I would like to know if this compiler can target MacOS/ARM processor on the desktop. > > Best regards, > > François > _______________________________________________ > use-livecode mailing list > use-livecode 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 merakosp at gmail.com Thu Mar 3 11:23:30 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 3 Mar 2022 18:23:30 +0200 Subject: Have we lost the Oracle driver? In-Reply-To: References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> <30ba104925924fe988d911669ecc60c0@livecode.com> <2a93b9dc-78ea-0196-5f74-eaa8b394bc03@cogapp.com> Message-ID: Hello Ben, I _think_ you just have to create a symlink to this version of the libclntsh: 1. Open a Terminal 2. Navigate to the instant client directory, e.g. suppose it is in your Downloads: cd ~/Downloads/instantclient_11_2 3. Create the symlink: ln -s libclntsh.dylib.11.1 libclntsh.dylib Kind regards, Panos -- On Thu, 3 Mar 2022 at 15:25, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > LiveCode 9.6.6 on macOS 10.15.7 (Catalina). > > I've downloaded the Oracle stuff but it doesn't seem to have an install > script > - where should I put "libclntsh.dylib.11.1"? > > thanks for your help, > > Ben > > On 02/03/2022 12:58, panagiotis m via use-livecode wrote: > > Hello Ben, > > > > I take it you are on MacOS? Which MacOS version, and which LiveCode > version > > are you using? > > > > Could it be the case you haven't got the right version of Oracle Instant > > Client installed? You need libclntsh.dylib.11.1, found here: > > > > > https://download.oracle.com/otn/mac/instantclient/11204/instantclient-basic-macos.x64-11.2.0.4.0.zip > > > > Kind regards, > > Panos > > -- > > > > On Tue, 1 Mar 2022 at 19:46, Ben Rubinstein via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi Mark, > >> > >> Thanks for responding. Indeed 'the revLicenseInfo` returned > >> "...commercial". > >> After re-licensing, it now says "...professional" - however, I still > can't > >> open a connection to an Oracle database. > >> > >> Re-licensing *did* make a difference: whereas previously it broke into > the > >> debugger, and (sometimes) displayed the error > >> > execution error at line n/a (External handler execution error: > >> revdberr,driver not licensed for this edition) > >> > >> now revOpenDatabase simply returns > >> > revdberr,invalid database type > >> > >> So I guess it's not a licensing issue any more, which is good; but I > still > >> can't get at the database! Can you suggest where my next issue might be? > >> > >> Many thanks, > >> > >> Ben > >> > >> On 01/03/2022 16:08, Mark Waddingham via use-livecode wrote: > >>> On 2022-03-01 15:51, Ben Rubinstein via use-livecode wrote: > >>>> Hi Matthias, > >>>> > >>>> Good spot! Thanks for checking. > >>>> > >>>> I wonder whether this is an accidental omission, in that Oracle was at > >>>> one time only available at a certain higher level of license; maybe > >>>> now that there is only level, perhaps someone forgot to tweak whatever > >>>> bit of code checked that the 'correct' license was in place? > >>> > >>> All business-only features were moved to be part of the pro features > >> pack - > >>> the oracle driver included. > >>> > >>> If it isn't working in your current version of LC, check that the > >> license you > >>> have licensed LC with does have the pro features pack in it... > >>> > >>> If you do `put the revLicenseInfo` it should say professional, rather > >> than > >>> commercial. > >>> > >>> If it doesn't say professional, Relicense your IDE using the menu item > >> in Help > >>> and flick through the licenses you have available until one says 'pro' > >> in the > >>> title. > >>> > >>> If the revLicenseInfo does say professional then something odd has > >> happened > >>> somewhere which will need to look into more deeply! > >>> > >>> Warmest Regards, > >>> > >>> 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 > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 benr_mc at cogapp.com Thu Mar 3 12:14:53 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 3 Mar 2022 17:14:53 +0000 Subject: Have we lost the Oracle driver? In-Reply-To: References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> <30ba104925924fe988d911669ecc60c0@livecode.com> <2a93b9dc-78ea-0196-5f74-eaa8b394bc03@cogapp.com> Message-ID: <1c29c30d-fb89-de1c-acd5-28c5e68ff391@cogapp.com> Hi Panos, Alas, that's made no difference. Does this error message "revdberr,invalid database type" actually indicate a failure to load the driver, or can it also occur if the driver was loaded but there were issues initialising it, or some other issues connecting to the given server and database? Is there any other detail of errors available anywhere (I looked at the Console but there is just a continual tide of reports in that, so I couldn't spot anything)? Thanks again, Ben On 03/03/2022 16:23, panagiotis m via use-livecode wrote: > Hello Ben, > > I _think_ you just have to create a symlink to this version of the > libclntsh: > > 1. Open a Terminal > 2. Navigate to the instant client directory, e.g. suppose it is in your > Downloads: > > cd ~/Downloads/instantclient_11_2 > > 3. Create the symlink: > > ln -s libclntsh.dylib.11.1 libclntsh.dylib > > Kind regards, > Panos > -- > > On Thu, 3 Mar 2022 at 15:25, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >> LiveCode 9.6.6 on macOS 10.15.7 (Catalina). >> >> I've downloaded the Oracle stuff but it doesn't seem to have an install >> script >> - where should I put "libclntsh.dylib.11.1"? >> >> thanks for your help, >> >> Ben >> >> On 02/03/2022 12:58, panagiotis m via use-livecode wrote: >>> Hello Ben, >>> >>> I take it you are on MacOS? Which MacOS version, and which LiveCode >> version >>> are you using? >>> >>> Could it be the case you haven't got the right version of Oracle Instant >>> Client installed? You need libclntsh.dylib.11.1, found here: >>> >>> >> https://download.oracle.com/otn/mac/instantclient/11204/instantclient-basic-macos.x64-11.2.0.4.0.zip >>> >>> Kind regards, >>> Panos >>> -- >>> >>> On Tue, 1 Mar 2022 at 19:46, Ben Rubinstein via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Mark, >>>> >>>> Thanks for responding. Indeed 'the revLicenseInfo` returned >>>> "...commercial". >>>> After re-licensing, it now says "...professional" - however, I still >> can't >>>> open a connection to an Oracle database. >>>> >>>> Re-licensing *did* make a difference: whereas previously it broke into >> the >>>> debugger, and (sometimes) displayed the error >>>> > execution error at line n/a (External handler execution error: >>>> revdberr,driver not licensed for this edition) >>>> >>>> now revOpenDatabase simply returns >>>> > revdberr,invalid database type >>>> >>>> So I guess it's not a licensing issue any more, which is good; but I >> still >>>> can't get at the database! Can you suggest where my next issue might be? >>>> >>>> Many thanks, >>>> >>>> Ben >>>> >>>> On 01/03/2022 16:08, Mark Waddingham via use-livecode wrote: >>>>> On 2022-03-01 15:51, Ben Rubinstein via use-livecode wrote: >>>>>> Hi Matthias, >>>>>> >>>>>> Good spot! Thanks for checking. >>>>>> >>>>>> I wonder whether this is an accidental omission, in that Oracle was at >>>>>> one time only available at a certain higher level of license; maybe >>>>>> now that there is only level, perhaps someone forgot to tweak whatever >>>>>> bit of code checked that the 'correct' license was in place? >>>>> >>>>> All business-only features were moved to be part of the pro features >>>> pack - >>>>> the oracle driver included. >>>>> >>>>> If it isn't working in your current version of LC, check that the >>>> license you >>>>> have licensed LC with does have the pro features pack in it... >>>>> >>>>> If you do `put the revLicenseInfo` it should say professional, rather >>>> than >>>>> commercial. >>>>> >>>>> If it doesn't say professional, Relicense your IDE using the menu item >>>> in Help >>>>> and flick through the licenses you have available until one says 'pro' >>>> in the >>>>> title. >>>>> >>>>> If the revLicenseInfo does say professional then something odd has >>>> happened >>>>> somewhere which will need to look into more deeply! >>>>> >>>>> Warmest Regards, >>>>> >>>>> 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 >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Thu Mar 3 15:00:41 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 3 Mar 2022 15:00:41 -0500 Subject: Speed up a slow loop In-Reply-To: <3ADFAE1A-E99B-4AA6-A3F3-8F71FF174B22@pidigital.co.uk> References: <3ADFAE1A-E99B-4AA6-A3F3-8F71FF174B22@pidigital.co.uk> Message-ID: This is a long thread and I can't read it at the moement,, and maybe you have answered this. But what prevents you from loading all your data into an array? and just iterating over the keys or index of an array? vs the lines of a long list.? That will yield the fastest performance. I should have a full reda of the thread, there are always nuggets of gold to be found :) On Thu, Mar 3, 2022 at 8:37 AM Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > I usually test this by using > > put the milliseconds into tMs > …loop code… > put the milliseconds - tMs > > This shows me a record of how long that loop took and helps me narrow down > where the slow downs are occurring. You can do it within the loop too and > keep a record for each iteration and see if it has a problem as it gets > further down the list. But not likely with arrays. > > Sean Cole > Pi Digital Productions Ltd > > eMail Ts & Cs > > > > On 3 Mar 2022, at 06:53, Mark Waddingham via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > On 2022-03-02 21:57, J. Landman Gay via use-livecode wrote: > >> The loop takes forever. Here it is (sDictFile is a script local): > >> repeat for each line l in pList -- pList is the user word list > >> if sDictFile[l] = true then put l & cr after tCheckedList > >> else put l & cr after tNonWords > >> wait 0 with messages -- prevent ANRs > >> end repeat > >> I added the wait because my Android phone was putting up an "app not > >> responding" warning while the loop was running (or just after, hard to > >> tell.) The loop should be much faster than that. When I added some > >> timing checks though, the timer says the loop takes between 0 and 1 > >> millisecond, and yet the wait on screen remains. > > > > If the difference between `the milliseconds` before the loop, and then > after is 0 or 1 millisecond - then that is how long it is taking. This > means the issue is somewhere else. Are you sure there isn't anything you > are doing either before that loop or after that loop which doesn't wait for > ages (due to the ANRs you mentioned). > > > >> With a 3-word user list, the loop takes 4 seconds. With an 8 word user > >> list the loop takes 6 seconds. The more user words, the longer the > >> wait. > > > > If there are only 3 reasonable length words in pList (I.e. 3 lines) then > there's no way that loop can take 4 seconds. Of course if the words are > multiple megabytes long then it might be possible (however the timing you > already stated above suggests the loop isn't actually taking 4 seconds!). > > > >> Even stranger: on my cheapo Android tablet with 4 megs of RAM running > >> Android 9 the response is nearly instantaneous, even if the user list > >> has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 > >> the response is slow enough to trigger the ANR with only 3 words. I'm > >> building for ARM 64. > > > > This strongly suggests it is something else either on your phone, or in > your code which your phone doesn't like I think. > > > > Warmst Regards, > > > > Mark. > > > > -- > > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > > LiveCode: Everyone can create apps > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 Thu Mar 3 15:03:35 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 3 Mar 2022 15:03:35 -0500 Subject: A question about the compiler to come In-Reply-To: <55A415EA-CDD3-4882-A58D-7F7D34E7711C@all-auctions.com> References: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> <55A415EA-CDD3-4882-A58D-7F7D34E7711C@all-auctions.com> Message-ID: Interesting. I cannot find this email from Kevin, can someone please forward it to me or direct me to where I can read it? Thanks, Tom On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > According to Kevin’s email: > > Would this script compiler work on all platforms? > All platforms will benefit. Code will run faster and readable scripts will > be removed whatever platform you are targeting. > Rick > > > On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Dear all > > > > You probably have received some mail asking for funding concerning a > compiler to come. > > > > I would like to know if this compiler can target MacOS/ARM processor on > the desktop. > > > > Best regards, > > > > François > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 Mar 3 15:28:10 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 3 Mar 2022 14:28:10 -0600 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: On 3/3/22 12:53 AM, Mark Waddingham via use-livecode wrote: > > If the difference between `the milliseconds` before the loop, and then after is 0 or 1 > millisecond - then that is how long it is taking. This means the issue is somewhere else. Are > you sure there isn't anything you are doing either before that loop or after that loop which > doesn't wait for ages (due to the ANRs you mentioned). Today I'm getting slightly faster results. Repeatedly creating new boards is not slowing down. Maybe some background processes were stopped (there was a system update last night.) The scoring handler does three things with the user word list, calling out to 3 different handlers: 1. Remove any duplicates 2. Check the dicionary for the remaining words 3. Walk the board for each word to ensure it's a legal path I just ran tests with LC 9.6.6 on a Pixel 5 that timed each callout independently. Times are in milliseconds. No words were longer than 4 letters. Dupes Dictionary Boardwalk word counts 12 1954 1404 -- 5 wds + 2 dupes, 2 illegals (total 9) 1 1934 2542 -- 9 wds, all legal 0 1960 1966 -- 7 wds + 2 illegals (total 9) 0 1921 1142 -- 4 wds, all legal 17 2015 8321 -- 30 wds + 1 dupe, 1 illegal (total 32) My recursive board walk could probably be optimized but for now I'm just focusing on the dictionary lookup. For reference, here is the whole handler: function checkDictionary pList -- plist is the user words repeat for each line l in pList if sDictFile[l] = true then put l & cr after tCheckedList else put l & cr after tNonWords wait 0 with messages -- prevent ANRs end repeat set wholematches to true put fld "wordList" into tWList -- no longer the same as pList since removeDupes has already run repeat for each line l in tNonWords -- mark non-words in list set the textcolor of line lineoffset(l,tWList) of fld "wordList" to "red" end repeat if tNonWords <> "" then put tNonWords into sStats["unknowns"] -- for later display return tCheckedList end checkDictionary I suppose the delay could be updating the field? But updating a field for 2 or 3 entries shouldn't take too long, should it? Also note that in the 2 runs where there were no illegals, the timings didn't vary much. The checkDupes handler also colorizes duplicate words, which is why those 2 runs have longer times. > If there are only 3 reasonable length words in pList (I.e. 3 lines) then there's no way that > loop can take 4 seconds. When testing I don't have patience to think, so all words are usually 3-4 letters each. >> Even stranger: on my cheapo Android tablet with 4 megs of RAM running >> Android 9 the response is nearly instantaneous, even if the user list >> has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 >> the response is slow enough to trigger the ANR with only 3 words. I'm >> building for ARM 64. > > This strongly suggests it is something else either on your phone, or in your code which your > phone doesn't like I think. I have two Pixels, a 5 and a 6, and they both behave the same (slow) way, though the 6 has the new Tensor chip. Yesterday I was wondering if the delay isn't the calculations but rather the screen redraws. I have a lot of controls stacked up on the card, though many are not visible. However, I've run the handlers with the screen both locked and unlocked with no changes. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Mar 3 15:34:01 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 3 Mar 2022 14:34:01 -0600 Subject: Speed up a slow loop In-Reply-To: References: <3ADFAE1A-E99B-4AA6-A3F3-8F71FF174B22@pidigital.co.uk> Message-ID: On 3/3/22 2:00 PM, Tom Glod via use-livecode wrote: > But what prevents you from loading all your data into an array? and just > iterating over the keys or index of an array? vs the lines of a long list.? > That will yield the fastest performance. Right, it's an array, and I don't iterate. I just check the array key directly for a value. I realize I'm kind of monopolizing things here. I wrote the game for myself and I ignored the speed issues and just played it on my tablet where it works fine, but now someone else wants to include it in a distributed app so I need to figure it out. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From tom at makeshyft.com Thu Mar 3 16:07:05 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 3 Mar 2022 16:07:05 -0500 Subject: A question about the compiler to come In-Reply-To: References: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> <55A415EA-CDD3-4882-A58D-7F7D34E7711C@all-auctions.com> Message-ID: Pardon my lingo .... but this is f#%%ing huge!!!! Just last week, I was thinking about the nature of livecode and that it comes with some pretty profound security implications. I'm sSuper happy to see this machine code compiler coming to livecode. This is likely to directly influence the amount of sleep I get in this upcoming decade of work :) Great decision by the team to go ahead with this. (y) On Thu, Mar 3, 2022 at 3:03 PM Tom Glod wrote: > Interesting. > I cannot find this email from Kevin, can someone please forward it to me > or direct me to where I can read it? > > Thanks, > > Tom > > On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> According to Kevin’s email: >> >> Would this script compiler work on all platforms? >> All platforms will benefit. Code will run faster and readable scripts >> will be removed whatever platform you are targeting. >> Rick >> >> > On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Dear all >> > >> > You probably have received some mail asking for funding concerning a >> compiler to come. >> > >> > I would like to know if this compiler can target MacOS/ARM processor on >> the desktop. >> > >> > Best regards, >> > >> > François >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode 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 kray at sonsothunder.com Thu Mar 3 16:42:51 2022 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 3 Mar 2022 15:42:51 -0600 Subject: Speed up a slow loop In-Reply-To: References: <3ADFAE1A-E99B-4AA6-A3F3-8F71FF174B22@pidigital.co.uk> Message-ID: <4301F288-64A1-4F9E-9985-71A7372A9FEB@sonsothunder.com> Jacque, How about using the 'difference' command? Here's a simple example: on mouseUp put "true" into tDict["test"] put "true" into tDict["word"] put "true" into tDict["ball"] put "test" & cr & "ball" & cr & "boat" & cr & "unicorn" into tUserWords split tUserWords by cr and tab difference tUserWords with tDict if tUserWords is not an array then answer "All words matched!" else answer "Sorry, try again, these words didn't match:" & cr & cr & (the keys of tUserWords) end if end mouseUp If you run this, it will say that "boat" and "unicorn" don't match; if tUserWords is "test" and "ball" you get "all words matched". Will this work? Ken > On Mar 3, 2022, at 2:34 PM, J. Landman Gay via use-livecode wrote: > > On 3/3/22 2:00 PM, Tom Glod via use-livecode wrote: >> But what prevents you from loading all your data into an array? and just >> iterating over the keys or index of an array? vs the lines of a long list.? >> That will yield the fastest performance. > > Right, it's an array, and I don't iterate. I just check the array key directly for a value. > > I realize I'm kind of monopolizing things here. I wrote the game for myself and I ignored the speed issues and just played it on my tablet where it works fine, but now someone else wants to include it in a distributed app so I need to figure it out. > > -- > 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 Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Website: https://www.sonsothunder.com From kray at sonsothunder.com Thu Mar 3 16:54:27 2022 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 3 Mar 2022 15:54:27 -0600 Subject: Speed up a slow loop In-Reply-To: References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: BTW you an also use this "split" trick to remove dupes (although you lose the order of the word list): function stripDupes pWordList split pWordList by cr and tab return (the keys of pWordList) end stripDupes on mouseUp put stripDupes("test" & cr & "ball" & cr & "test" & cr & "orange") end mouseUp Result: ball orange test Not sure if it's faster, but it may work in your situation, Ken > On Mar 3, 2022, at 2:28 PM, J. Landman Gay via use-livecode wrote: > > On 3/3/22 12:53 AM, Mark Waddingham via use-livecode wrote: >> If the difference between `the milliseconds` before the loop, and then after is 0 or 1 millisecond - then that is how long it is taking. This means the issue is somewhere else. Are you sure there isn't anything you are doing either before that loop or after that loop which doesn't wait for ages (due to the ANRs you mentioned). > > Today I'm getting slightly faster results. Repeatedly creating new boards is not slowing down. Maybe some background processes were stopped (there was a system update last night.) > > The scoring handler does three things with the user word list, calling out to 3 different handlers: > 1. Remove any duplicates > 2. Check the dicionary for the remaining words > 3. Walk the board for each word to ensure it's a legal path > > I just ran tests with LC 9.6.6 on a Pixel 5 that timed each callout independently. Times are in milliseconds. No words were longer than 4 letters. > > Dupes Dictionary Boardwalk word counts > 12 1954 1404 -- 5 wds + 2 dupes, 2 illegals (total 9) > 1 1934 2542 -- 9 wds, all legal > 0 1960 1966 -- 7 wds + 2 illegals (total 9) > 0 1921 1142 -- 4 wds, all legal > 17 2015 8321 -- 30 wds + 1 dupe, 1 illegal (total 32) > > My recursive board walk could probably be optimized but for now I'm just focusing on the dictionary lookup. For reference, here is the whole handler: > > function checkDictionary pList -- plist is the user words > repeat for each line l in pList > if sDictFile[l] = true then put l & cr after tCheckedList > else put l & cr after tNonWords > wait 0 with messages -- prevent ANRs > end repeat > set wholematches to true > put fld "wordList" into tWList -- no longer the same as pList since removeDupes has already run > repeat for each line l in tNonWords -- mark non-words in list > set the textcolor of line lineoffset(l,tWList) of fld "wordList" to "red" > end repeat > if tNonWords <> "" then put tNonWords into sStats["unknowns"] -- for later display > return tCheckedList > end checkDictionary > > I suppose the delay could be updating the field? But updating a field for 2 or 3 entries shouldn't take too long, should it? Also note that in the 2 runs where there were no illegals, the timings didn't vary much. The checkDupes handler also colorizes duplicate words, which is why those 2 runs have longer times. > >> If there are only 3 reasonable length words in pList (I.e. 3 lines) then there's no way that loop can take 4 seconds. > > When testing I don't have patience to think, so all words are usually 3-4 letters each. > > >>> Even stranger: on my cheapo Android tablet with 4 megs of RAM running >>> Android 9 the response is nearly instantaneous, even if the user list >>> has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 >>> the response is slow enough to trigger the ANR with only 3 words. I'm >>> building for ARM 64. >> This strongly suggests it is something else either on your phone, or in your code which your phone doesn't like I think. > > I have two Pixels, a 5 and a 6, and they both behave the same (slow) way, though the 6 has the new Tensor chip. Yesterday I was wondering if the delay isn't the calculations but rather the screen redraws. I have a lot of controls stacked up on the card, though many are not visible. However, I've run the handlers with the screen both locked and unlocked with no changes. > > -- > 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 Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Website: https://www.sonsothunder.com From sean at pidigital.co.uk Thu Mar 3 17:21:06 2022 From: sean at pidigital.co.uk (Sean Cole) Date: Thu, 3 Mar 2022 22:21:06 +0000 Subject: A question about the compiler to come In-Reply-To: References: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> <55A415EA-CDD3-4882-A58D-7F7D34E7711C@all-auctions.com> Message-ID: Tom What security imp[lications do you perceive it to overcome? Sean On Thu, 3 Mar 2022 at 21:07, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Pardon my lingo .... but this is f#%%ing huge!!!! Just last week, I was > thinking about the nature of livecode and that it comes with some pretty > profound security implications. > I'm sSuper happy to see this machine code compiler coming to livecode. > This is likely to directly influence the amount of sleep I get in this > upcoming decade of work :) > Great decision by the team to go ahead with this. > (y) > > > On Thu, Mar 3, 2022 at 3:03 PM Tom Glod wrote: > > > Interesting. > > I cannot find this email from Kevin, can someone please forward it to me > > or direct me to where I can read it? > > > > Thanks, > > > > Tom > > > > On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> According to Kevin’s email: > >> > >> Would this script compiler work on all platforms? > >> All platforms will benefit. Code will run faster and readable scripts > >> will be removed whatever platform you are targeting. > >> Rick > >> > >> > On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > > >> > Dear all > >> > > >> > You probably have received some mail asking for funding concerning a > >> compiler to come. > >> > > >> > I would like to know if this compiler can target MacOS/ARM processor > on > >> the desktop. > >> > > >> > Best regards, > >> > > >> > François > >> > _______________________________________________ > >> > use-livecode mailing list > >> > use-livecode 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 Mar 3 17:45:58 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 3 Mar 2022 22:45:58 +0000 Subject: Have we lost the Oracle driver? In-Reply-To: <1c29c30d-fb89-de1c-acd5-28c5e68ff391@cogapp.com> References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> <30ba104925924fe988d911669ecc60c0@livecode.com> <2a93b9dc-78ea-0196-5f74-eaa8b394bc03@cogapp.com> <1c29c30d-fb89-de1c-acd5-28c5e68ff391@cogapp.com> Message-ID: <8F15E298-839C-4AEC-B4BD-B08E1CA12688@iotecdigital.com> ODBC is the driver type. Are you trying to use Oracle as the driver type? Bob S > On Mar 3, 2022, at 09:14 , Ben Rubinstein via use-livecode wrote: > > Hi Panos, > > Alas, that's made no difference. > > Does this error message "revdberr,invalid database type" actually indicate a failure to load the driver, or can it also occur if the driver was loaded but there were issues initialising it, or some other issues connecting to the given server and database? > > Is there any other detail of errors available anywhere (I looked at the Console but there is just a continual tide of reports in that, so I couldn't spot anything)? > > Thanks again, > > Ben From bobsneidar at iotecdigital.com Thu Mar 3 17:51:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 3 Mar 2022 22:51:18 +0000 Subject: Speed up a slow loop In-Reply-To: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: I am not sure if Android or MacOS can use sqLite memory databases, but when I need to iterate through a large array, I first convert the array to an sqLite memory database, then query it, which is a gazillion times faster than iterating through an array. I have functions which create an sqLite database from an array, then convert it back to an array again. Bob S > On Mar 2, 2022, at 13:57 , J. Landman Gay via use-livecode wrote: > > In my Boggle game I have an array containing dictionary words as keys, split as set, so all values are "true". I need to compare those keys with a list of user words and get back a list of good words and a list of illegal words. > > The loop takes forever. Here it is (sDictFile is a script local): > > repeat for each line l in pList -- pList is the user word list > if sDictFile[l] = true then put l & cr after tCheckedList > else put l & cr after tNonWords > wait 0 with messages -- prevent ANRs > end repeat > > I added the wait because my Android phone was putting up an "app not responding" warning while the loop was running (or just after, hard to tell.) The loop should be much faster than that. When I added some timing checks though, the timer says the loop takes between 0 and 1 millisecond, and yet the wait on screen remains. > > With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 seconds. The more user words, the longer the wait. > > Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm building for ARM 64. > > I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I have a feeling it isn't the script per se, it's something else. > > -- > 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 Thu Mar 3 18:48:16 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 4 Mar 2022 00:48:16 +0100 Subject: Have we lost the Oracle driver? In-Reply-To: <8F15E298-839C-4AEC-B4BD-B08E1CA12688@iotecdigital.com> References: <7CFA6CE8-CB12-4233-A179-85A54E44A94D@m-r-d.de> <30ba104925924fe988d911669ecc60c0@livecode.com> <2a93b9dc-78ea-0196-5f74-eaa8b394bc03@cogapp.com> <1c29c30d-fb89-de1c-acd5-28c5e68ff391@cogapp.com> <8F15E298-839C-4AEC-B4BD-B08E1CA12688@iotecdigital.com> Message-ID: <25DF8386-3D6E-4FE9-ABB6-3135C7D45F54@m-r-d.de> LC with licensed pro features has native Oracle support. So Oracle should be the correct keyword. And as Ben already stated he has pro feature licenesed and want to use the built in Oracle drivers. > Am 03.03.2022 um 23:45 schrieb Bob Sneidar via use-livecode : > > ODBC is the driver type. Are you trying to use Oracle as the driver type? > > Bob S > > >> On Mar 3, 2022, at 09:14 , Ben Rubinstein via use-livecode wrote: >> >> Hi Panos, >> >> Alas, that's made no difference. >> >> Does this error message "revdberr,invalid database type" actually indicate a failure to load the driver, or can it also occur if the driver was loaded but there were issues initialising it, or some other issues connecting to the given server and database? >> >> Is there any other detail of errors available anywhere (I looked at the Console but there is just a continual tide of reports in that, so I couldn't spot anything)? >> >> Thanks again, >> >> Ben > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Mar 3 20:13:17 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 3 Mar 2022 20:13:17 -0500 Subject: A question about the compiler to come In-Reply-To: References: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> <55A415EA-CDD3-4882-A58D-7F7D34E7711C@all-auctions.com> Message-ID: Hi Sean, one the page for the compiler project and Kevin talks about the nature of Livecode being interpreted ..... currently the script in memory is just obfuscated, and a sufficiently motivated person or group of people could eventually find what they want to find. script passwords are useful too, but also have their limit. "By compiling scripts fully, standalones become even more secure. We’ve put a lot of work into making standalones secure at present but there are still limitations on the existing approach that are fundamental to how an interpreter like LiveCode operates. Compiled code does not leave any trace of the original script text." Cheers, Tom On Thu, Mar 3, 2022 at 5:22 PM Sean Cole via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom > What security imp[lications do you perceive it to overcome? > > Sean > > On Thu, 3 Mar 2022 at 21:07, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Pardon my lingo .... but this is f#%%ing huge!!!! Just last week, I was > > thinking about the nature of livecode and that it comes with some pretty > > profound security implications. > > I'm sSuper happy to see this machine code compiler coming to livecode. > > This is likely to directly influence the amount of sleep I get in this > > upcoming decade of work :) > > Great decision by the team to go ahead with this. > > (y) > > > > > > On Thu, Mar 3, 2022 at 3:03 PM Tom Glod wrote: > > > > > Interesting. > > > I cannot find this email from Kevin, can someone please forward it to > me > > > or direct me to where I can read it? > > > > > > Thanks, > > > > > > Tom > > > > > > On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > >> According to Kevin’s email: > > >> > > >> Would this script compiler work on all platforms? > > >> All platforms will benefit. Code will run faster and readable scripts > > >> will be removed whatever platform you are targeting. > > >> Rick > > >> > > >> > On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode < > > >> use-livecode at lists.runrev.com> wrote: > > >> > > > >> > Dear all > > >> > > > >> > You probably have received some mail asking for funding concerning a > > >> compiler to come. > > >> > > > >> > I would like to know if this compiler can target MacOS/ARM processor > > on > > >> the desktop. > > >> > > > >> > Best regards, > > >> > > > >> > François > > >> > _______________________________________________ > > >> > use-livecode mailing list > > >> > use-livecode 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 tom at makeshyft.com Thu Mar 3 20:18:19 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 3 Mar 2022 20:18:19 -0500 Subject: A question about the compiler to come In-Reply-To: References: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> <55A415EA-CDD3-4882-A58D-7F7D34E7711C@all-auctions.com> Message-ID: I meant to include link to this: https://livecode.com/script-compiler-project-page/ On Thu, Mar 3, 2022 at 8:13 PM Tom Glod wrote: > Hi Sean, one the page for the compiler project and Kevin talks about the > nature of Livecode being interpreted ..... currently the script in memory > is just obfuscated, and a sufficiently motivated person or group of people > could eventually find what they want to find. script passwords are useful > too, but also have their limit. > > "By compiling scripts fully, standalones become even more secure. We’ve > put a lot of work into making standalones secure at present but there are > still limitations on the existing approach that are fundamental to how an > interpreter like LiveCode operates. Compiled code does not leave any trace > of the original script text." > > Cheers, > > Tom > > On Thu, Mar 3, 2022 at 5:22 PM Sean Cole via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Tom >> What security imp[lications do you perceive it to overcome? >> >> Sean >> >> On Thu, 3 Mar 2022 at 21:07, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> > Pardon my lingo .... but this is f#%%ing huge!!!! Just last week, I was >> > thinking about the nature of livecode and that it comes with some pretty >> > profound security implications. >> > I'm sSuper happy to see this machine code compiler coming to livecode. >> > This is likely to directly influence the amount of sleep I get in this >> > upcoming decade of work :) >> > Great decision by the team to go ahead with this. >> > (y) >> > >> > >> > On Thu, Mar 3, 2022 at 3:03 PM Tom Glod wrote: >> > >> > > Interesting. >> > > I cannot find this email from Kevin, can someone please forward it >> to me >> > > or direct me to where I can read it? >> > > >> > > Thanks, >> > > >> > > Tom >> > > >> > > On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < >> > > use-livecode at lists.runrev.com> wrote: >> > > >> > >> According to Kevin’s email: >> > >> >> > >> Would this script compiler work on all platforms? >> > >> All platforms will benefit. Code will run faster and readable scripts >> > >> will be removed whatever platform you are targeting. >> > >> Rick >> > >> >> > >> > On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode < >> > >> use-livecode at lists.runrev.com> wrote: >> > >> > >> > >> > Dear all >> > >> > >> > >> > You probably have received some mail asking for funding concerning >> a >> > >> compiler to come. >> > >> > >> > >> > I would like to know if this compiler can target MacOS/ARM >> processor >> > on >> > >> the desktop. >> > >> > >> > >> > Best regards, >> > >> > >> > >> > François >> > >> > _______________________________________________ >> > >> > use-livecode mailing list >> > >> > use-livecode 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 MikeKerner at roadrunner.com Fri Mar 4 09:52:38 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 4 Mar 2022 09:52:38 -0500 Subject: A question about the compiler to come In-Reply-To: References: <9C13B862-93A4-45D5-AA74-8DBCD4667F10@mines-paristech.fr> <55A415EA-CDD3-4882-A58D-7F7D34E7711C@all-auctions.com> Message-ID: It's nice that aCompileIt!/Double-XX replacement is finally coming to LiveCode, maybe, but it is pretty expensive, at $499/year. The old timers may remember both of those products, from Heizer Software, allowed you to compile HyperCard stacks (and build XCMD's and XFCN's). We will see how smooth the path will be. I did post $500, but I think it will be a rocky transition. On Thu, Mar 3, 2022 at 8:19 PM Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > I meant to include link to this: > https://livecode.com/script-compiler-project-page/ > > On Thu, Mar 3, 2022 at 8:13 PM Tom Glod wrote: > > > Hi Sean, one the page for the compiler project and Kevin talks about the > > nature of Livecode being interpreted ..... currently the script in memory > > is just obfuscated, and a sufficiently motivated person or group of > people > > could eventually find what they want to find. script passwords are > useful > > too, but also have their limit. > > > > "By compiling scripts fully, standalones become even more secure. We’ve > > put a lot of work into making standalones secure at present but there are > > still limitations on the existing approach that are fundamental to how an > > interpreter like LiveCode operates. Compiled code does not leave any > trace > > of the original script text." > > > > Cheers, > > > > Tom > > > > On Thu, Mar 3, 2022 at 5:22 PM Sean Cole via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Tom > >> What security imp[lications do you perceive it to overcome? > >> > >> Sean > >> > >> On Thu, 3 Mar 2022 at 21:07, Tom Glod via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> > Pardon my lingo .... but this is f#%%ing huge!!!! Just last week, I > was > >> > thinking about the nature of livecode and that it comes with some > pretty > >> > profound security implications. > >> > I'm sSuper happy to see this machine code compiler coming to livecode. > >> > This is likely to directly influence the amount of sleep I get in this > >> > upcoming decade of work :) > >> > Great decision by the team to go ahead with this. > >> > (y) > >> > > >> > > >> > On Thu, Mar 3, 2022 at 3:03 PM Tom Glod wrote: > >> > > >> > > Interesting. > >> > > I cannot find this email from Kevin, can someone please forward it > >> to me > >> > > or direct me to where I can read it? > >> > > > >> > > Thanks, > >> > > > >> > > Tom > >> > > > >> > > On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < > >> > > use-livecode at lists.runrev.com> wrote: > >> > > > >> > >> According to Kevin’s email: > >> > >> > >> > >> Would this script compiler work on all platforms? > >> > >> All platforms will benefit. Code will run faster and readable > scripts > >> > >> will be removed whatever platform you are targeting. > >> > >> Rick > >> > >> > >> > >> > On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode < > >> > >> use-livecode at lists.runrev.com> wrote: > >> > >> > > >> > >> > Dear all > >> > >> > > >> > >> > You probably have received some mail asking for funding > concerning > >> a > >> > >> compiler to come. > >> > >> > > >> > >> > I would like to know if this compiler can target MacOS/ARM > >> processor > >> > on > >> > >> the desktop. > >> > >> > > >> > >> > Best regards, > >> > >> > > >> > >> > François > >> > >> > _______________________________________________ > >> > >> > use-livecode mailing list > >> > >> > use-livecode 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 > >> > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 neville.smythe at optusnet.com.au Fri Mar 4 15:33:13 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sat, 5 Mar 2022 07:33:13 +1100 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <2AAD3329-E699-4641-8B26-741DAC72CA1C@optusnet.com.au> Jacque, are you trying to keep the whole of SOWPODS in memory the whole time? That’s a 2.5MB file. It sounds to me like you are getting virtual memory thrashing. If so, try breaking up the wordlist into 26 files for example - or even more by length as well as initial letter - kept as resources (rather than in fields) and only reading in the file required to check a word as needed (and emptying the variable loaded from file asap). My guess is a linear search on a small file is going to be faster than array indexing magic if memory swapping starts to occur. Neville From neville.smythe at optusnet.com.au Fri Mar 4 18:15:00 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sat, 5 Mar 2022 10:15:00 +1100 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <4F240434-14F0-4E10-AAE2-6BA70B8F4863@optusnet.com.au> Bob’s suggestion of storing the word list in an sqlite database would keep the list on disk and not in memory, so avoiding VM swapping which is I think the basic problem, and also use a much faster search engine than LC to do the checking for the existence of user candidates. A more elegant solution than breaking up the wordlist into hundreds of small files. It is possible because we know the structure of the data in this case that lots of small files, with a couple of other tricks to reduce file size, and then using an LC search, could be faster (because the OS file system is even more efficient than sqlite) but I’d be surprised if the db approach didn’t solve your problem. Neville From jacque at hyperactivesw.com Fri Mar 4 19:12:08 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 4 Mar 2022 18:12:08 -0600 Subject: Speed up a slow loop In-Reply-To: <2AAD3329-E699-4641-8B26-741DAC72CA1C@optusnet.com.au> References: <2AAD3329-E699-4641-8B26-741DAC72CA1C@optusnet.com.au> Message-ID: On 3/4/22 2:33 PM, Neville Smythe via use-livecode wrote: > Jacque, are you trying to keep the whole of SOWPODS in memory the whole time? That’s a 2.5MB file. It sounds to me like you are getting virtual memory thrashing. I'm thinking the same thing, it's the only explanation. I stopped using SOWPODS and things got a bit faster after I substituted a file half that size. I'm sure you and Bob are right about using a database, but I'm not a database person and I wouldn't know where to start. If anyone wants to help, you can have a free copy of my already-free game... Probably we shouldn't cluter the list with that, but there's email. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Fri Mar 4 20:59:07 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 5 Mar 2022 01:59:07 +0000 Subject: Speed up a slow loop In-Reply-To: <4F240434-14F0-4E10-AAE2-6BA70B8F4863@optusnet.com.au> References: <4F240434-14F0-4E10-AAE2-6BA70B8F4863@optusnet.com.au> Message-ID: <27FE6D19-6879-47C1-B2D5-1EA69D53E9DF@iotecdigital.com> Well… the idea was, if storing and working with the data as arrays was crucial, then I have a method for creating sqLite databases, memory or otherwise, from arrays and then back again. I don’t know if mobile devices can use memory databases, or perhaps the data is too much for mobile device limits, so I am sailing murky waters there. But once the overhead of iterating through the array once is spent, recursive querying of a memory or even a file database is much more efficient. Sent from my iPhone > On Mar 4, 2022, at 15:16, Neville Smythe via use-livecode wrote: > > Bob’s suggestion of storing the word list in an sqlite database would keep the list on disk and not in memory From marksmithhfx at gmail.com Sat Mar 5 01:14:55 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 5 Mar 2022 06:14:55 +0000 Subject: A question about the compiler to come In-Reply-To: References: Message-ID: <1241136E-36DB-4DEE-8053-AB6F7132180E@gmail.com> I also asked about building widgets from LC script. The response was, this could be a step along that path. Sent from my iPhone > On Mar 4, 2022, at 2:54 PM, Mike Kerner via use-livecode wrote: > > It's nice that aCompileIt!/Double-XX replacement is finally coming to > LiveCode, maybe, but it is pretty expensive, at $499/year. > The old timers may remember both of those products, from Heizer Software, > allowed you to compile HyperCard stacks (and build XCMD's and XFCN's). > We will see how smooth the path will be. I did post $500, but I think it > will be a rocky transition. > > >> On Thu, Mar 3, 2022 at 8:19 PM Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I meant to include link to this: >> https://livecode.com/script-compiler-project-page/ >> >>> On Thu, Mar 3, 2022 at 8:13 PM Tom Glod wrote: >>> >>> Hi Sean, one the page for the compiler project and Kevin talks about the >>> nature of Livecode being interpreted ..... currently the script in memory >>> is just obfuscated, and a sufficiently motivated person or group of >> people >>> could eventually find what they want to find. script passwords are >> useful >>> too, but also have their limit. >>> >>> "By compiling scripts fully, standalones become even more secure. We’ve >>> put a lot of work into making standalones secure at present but there are >>> still limitations on the existing approach that are fundamental to how an >>> interpreter like LiveCode operates. Compiled code does not leave any >> trace >>> of the original script text." >>> >>> Cheers, >>> >>> Tom >>> >>> On Thu, Mar 3, 2022 at 5:22 PM Sean Cole via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Tom >>>> What security imp[lications do you perceive it to overcome? >>>> >>>> Sean >>>> >>>> On Thu, 3 Mar 2022 at 21:07, Tom Glod via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> Pardon my lingo .... but this is f#%%ing huge!!!! Just last week, I >> was >>>>> thinking about the nature of livecode and that it comes with some >> pretty >>>>> profound security implications. >>>>> I'm sSuper happy to see this machine code compiler coming to livecode. >>>>> This is likely to directly influence the amount of sleep I get in this >>>>> upcoming decade of work :) >>>>> Great decision by the team to go ahead with this. >>>>> (y) >>>>> >>>>> >>>>> On Thu, Mar 3, 2022 at 3:03 PM Tom Glod wrote: >>>>> >>>>>> Interesting. >>>>>> I cannot find this email from Kevin, can someone please forward it >>>> to me >>>>>> or direct me to where I can read it? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Tom >>>>>> >>>>>> On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < >>>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>>> According to Kevin’s email: >>>>>>> >>>>>>> Would this script compiler work on all platforms? >>>>>>> All platforms will benefit. Code will run faster and readable >> scripts >>>>>>> will be removed whatever platform you are targeting. >>>>>>> Rick >>>>>>> >>>>>>>> On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode < >>>>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> Dear all >>>>>>>> >>>>>>>> You probably have received some mail asking for funding >> concerning >>>> a >>>>>>> compiler to come. >>>>>>>> >>>>>>>> I would like to know if this compiler can target MacOS/ARM >>>> processor >>>>> on >>>>>>> the desktop. >>>>>>>> >>>>>>>> Best regards, >>>>>>>> >>>>>>>> François >>>>>>>> _______________________________________________ >>>>>>>> use-livecode mailing list >>>>>>>> use-livecode 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 >>>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 cubist at aol.com Sat Mar 5 21:36:44 2022 From: cubist at aol.com (Quentin Long) Date: Sun, 6 Mar 2022 02:36:44 +0000 (UTC) Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <160398321.175662.1646534204692@mail.yahoo.com> So… a Boggle game. Hm. Seems to me that anything you can do to reduce the number of words you need consider at any given time would be a win. Maybe not a *big* win, but still a win. So perhaps give this idea a shot: When you create a new board: -- Make a list of all the letters which *are not* on the board -- Filter out any word that contains at least one letter on the "not on this board" list -- Use the thus-reduced wordlist for all purposes as long as the board doesn't change This would add a bit of overhead to the process of setting up a new board, but if it results in time savings during play, the extra overhead might be worthwhile anyway. "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [ http://www.atarmslength.net ]! If you like "At Arm's Length", support it at [ http://www.patreon.com/DarkwingDude ]. From jacque at hyperactivesw.com Sat Mar 5 23:12:55 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 5 Mar 2022 22:12:55 -0600 Subject: Speed up a slow loop In-Reply-To: <160398321.175662.1646534204692@mail.yahoo.com> References: <160398321.175662.1646534204692@mail.yahoo.com> Message-ID: <899dfb4f-76a8-1d68-dca4-31e2bccf9fa5@hyperactivesw.com> Interesting idea. There are 25 letters on each board, some are always repeats. I think I'd need a good regex so I wouldn't have to run the filter command multiple times. How's your regex? On the other hand, I suppose filtering out even just 2 or 3 letters might make a dent. I'll try that first. On 3/5/22 8:36 PM, Quentin Long via use-livecode wrote: > > So… a Boggle game. Hm. Seems to me that anything you can do to reduce the number of words you need consider at any given time would be a win. Maybe not a *big* win, but still a win. So perhaps give this idea a shot: > > When you create a new board: > > -- Make a list of all the letters which *are not* on the board > > > -- Filter out any word that contains at least one letter on the "not on this board" list > > -- Use the thus-reduced wordlist for all purposes as long as the board doesn't change > > This would add a bit of overhead to the process of setting up a new board, but if it results in time savings during play, the extra overhead might be worthwhile anyway. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Mar 6 01:35:59 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 6 Mar 2022 00:35:59 -0600 Subject: Speed up a slow loop In-Reply-To: <160398321.175662.1646534204692@mail.yahoo.com> References: <160398321.175662.1646534204692@mail.yahoo.com> Message-ID: <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> On 3/5/22 8:36 PM, Quentin Long via use-livecode wrote: > > When you create a new board: > > -- Make a list of all the letters which *are not* on the board > > > -- Filter out any word that contains at least one letter on the "not on this board" list > > -- Use the thus-reduced wordlist for all purposes as long as the board doesn't change > > This would add a bit of overhead to the process of setting up a new board, but if it results in time savings during play, the extra overhead might be worthwhile anyway. Clever. Why didn't I think of that? I can create a new board, calculate all letters that don't exist on it, and filter out all dictionary words containing them in something like 170 ms. It doesn't impact the setup at all. It reduces the dictionary from 171,000+ words to around 20,000 give or take, depending on the current board distribution. On one board it reduced it to about 11,000 words. Combined with Ken's suggestion to use "difference", looking up a list of about 50 words in the filtered dictionary reduces the time from 2-4 seconds to about 40 ms. It varies, depending on a lot of things, but it's fast enough that you don't notice. That's on my Pixel 5; on the Mac a lookup takes 5ms. And I can do it all in LC script. I love these little speed contests we have here. Thank you. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Sun Mar 6 04:00:10 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 6 Mar 2022 10:00:10 +0100 Subject: No Android app icon with LC 9.6.6 Message-ID: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> Hi freinds, I just spent some time to find out that Android APKs created with LC version 9.6.6 do not show the app icon on an Android device!? So I downloaded LC 9.6.5, created an APK and the app icon is shown again. Did not find an bug report for this, so I will create one. Can someone confirm that this is fixed/works again in version 9.6.7? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Sun Mar 6 04:55:01 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 6 Mar 2022 10:55:01 +0100 Subject: No Android app icon with LC 9.6.6 In-Reply-To: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> References: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> Message-ID: <3E2E5748-7A62-4C95-ADC8-B7767CEEB821@major-k.de> Hi all, > Am 06.03.2022 um 10:00 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I just spent some time to find out that Android APKs created with > LC version 9.6.6 do not show the app icon on an Android device!? > > So I downloaded LC 9.6.5, created an APK and the app icon is shown again. > Did not find an bug report for this, so I will create one. and here it is: Can someone confirm that this is fixed/works again in version 9.6.7? > Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From scott at elementarysoftware.com Sun Mar 6 04:57:43 2022 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Sun, 6 Mar 2022 01:57:43 -0800 Subject: No Android app icon with LC 9.6.6 In-Reply-To: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> References: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> Message-ID: <83F89F19-2586-44FE-B65A-24D61AFD18EB@elementarysoftware.com> Hello Klaus, Did you build with the Legacy icon type or the new Adaptive Icon type? I haven’t been able to reproduce an icon that I think looks as good using the Adaptive method but I am seeing icons on Android using both methods. -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Mar 6, 2022, at 1:00 AM, Klaus major-k via use-livecode wrote: > > Hi freinds, > > I just spent some time to find out that Android APKs created with > LC version 9.6.6 do not show the app icon on an Android device!? > > So I downloaded LC 9.6.5, created an APK and the app icon is shown again. > Did not find an bug report for this, so I will create one. > > Can someone confirm that this is fixed/works again in version 9.6.7? > Thanks in advance! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de From klaus at major-k.de Sun Mar 6 05:01:29 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 6 Mar 2022 11:01:29 +0100 Subject: No Android app icon with LC 9.6.6 In-Reply-To: <83F89F19-2586-44FE-B65A-24D61AFD18EB@elementarysoftware.com> References: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> <83F89F19-2586-44FE-B65A-24D61AFD18EB@elementarysoftware.com> Message-ID: <7F904946-C47E-4C35-B002-0DBEC96539C8@major-k.de> Hi Scott, > Am 06.03.2022 um 10:57 schrieb scott--- via use-livecode : > > Hello Klaus, > Did you build with the Legacy icon type or the new Adaptive Icon type? with the Legacy icon type. > I haven’t been able to reproduce an icon that I think looks as good using the Adaptive method but I am seeing icons on Android using both methods. I created an APK form the same stack with LC 9.6.6 -> only generic app icon on device Same stack with LC 9.6.5 -> my nice legacy app icon on device > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > >> On Mar 6, 2022, at 1:00 AM, Klaus major-k via use-livecode wrote: >> >> Hi freinds, >> >> I just spent some time to find out that Android APKs created with >> LC version 9.6.6 do not show the app icon on an Android device!? >> >> So I downloaded LC 9.6.5, created an APK and the app icon is shown again. >> Did not find an bug report for this, so I will create one. >> >> Can someone confirm that this is fixed/works again in version 9.6.7? >> Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From alex at tweedly.net Sun Mar 6 08:33:07 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 6 Mar 2022 13:33:07 +0000 Subject: Speed up a slow loop In-Reply-To: <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> References: <160398321.175662.1646534204692@mail.yahoo.com> <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> Message-ID: On 06/03/2022 06:35, J. Landman Gay via use-livecode wrote: > > Combined with Ken's suggestion to use "difference", looking up a list > of about 50 words in the filtered dictionary reduces the time from 2-4 > seconds to about 40 ms. It varies, depending on a lot of things, but > it's fast enough that you don't notice. That's on my Pixel 5; on the > Mac a lookup takes 5ms. And I can do it all in LC script. > 5ms !?! I did a (very simple) test  (see code below)  - take the whole sowpods.txt file (267k words)  - create a set (i.e. split by CR as set)  - look up 50 randomly chosen words + 5 non-words (just in case failed searches were expensive). Doing this 100 times takes 6-10 ms (on an old MacBook Pro). Could you maybe post the code that you're using that takes 5ms ? > I love these little speed contests we have here. Thank you. > Alex. > > on mouseup >    local tmp, tNumberOfLines, tNumberOfLoops >    local tWords, tAWords, tTries > >    put the cWords of me into tWords >    if tWords is empty then >       put URL ("file:" & specialfolderpath("resources") & > "/sowpods.txt") into tWords >       set the cwords of me to tWords >       put "From file" &CR into fld "F" >    else >       put "using custom property" &CR into fld "F" >    end if > >    put tWords into tAWords >    split tAWords by CR as set > >    repeat with I = 1 to 50 >       put random(the number of lines in tWords) into tmp >       put line tmp of tWords &CR after tTries >    end repeat >    repeat with I = 1 to 5 >       put "azazaz" &Cr after tTries >    end repeat > >    put 100 into tNumberofLoops > >    local t1, t2, tCount, tTotal > >    --   put the millisecs into t1 >    --   repeat tNumberOfLoops times >    --      put 0 into tCount >    --      repeat for each line L in tTries >    --         if L is among the lines of tWords then add 1 to tCount >    --      end repeat >    --   end repeat >    --   put the millisecs into t2 >    --   put tCOunt && "iterate lines" && t2-t1 &CR after fld "F" > >    put the millisecs into t1 >    repeat tNumberOfLoops times >       put 0 into tCount >       put 0 into tTotal >       repeat for each line L in tTries >          add 1 to tTotal >          if tAWords[L] then add 1 to tCount >       end repeat >    end repeat >    put the millisecs into t2 >    put tCount && "of" && tTotal && "each element" && t2-t1 &CR after > fld "F" > > > end mouseup From rdimola at evergreeninfo.net Sun Mar 6 10:36:01 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 6 Mar 2022 10:36:01 -0500 Subject: No Android app icon with LC 9.6.6 In-Reply-To: <7F904946-C47E-4C35-B002-0DBEC96539C8@major-k.de> References: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> <83F89F19-2586-44FE-B65A-24D61AFD18EB@elementarysoftware.com> <7F904946-C47E-4C35-B002-0DBEC96539C8@major-k.de> Message-ID: <000d01d8316f$e554a410$affdec30$@net> Klaus, I Just ran into this yesterday using 9.6.1 rc1. For laughs I clicked the adaptive icon in the standalone settings and back to legacy and I now see the legacy icon on the device. 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 Klaus major-k via use-livecode Sent: Sunday, March 06, 2022 5:01 AM To: How to use LiveCode Cc: Klaus major-k Subject: Re: No Android app icon with LC 9.6.6 Hi Scott, > Am 06.03.2022 um 10:57 schrieb scott--- via use-livecode : > > Hello Klaus, > Did you build with the Legacy icon type or the new Adaptive Icon type? with the Legacy icon type. > I haven’t been able to reproduce an icon that I think looks as good using the Adaptive method but I am seeing icons on Android using both methods. I created an APK form the same stack with LC 9.6.6 -> only generic app icon on device Same stack with LC 9.6.5 -> my nice legacy app icon on device > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > >> On Mar 6, 2022, at 1:00 AM, Klaus major-k via use-livecode wrote: >> >> Hi freinds, >> >> I just spent some time to find out that Android APKs created with LC >> version 9.6.6 do not show the app icon on an Android device!? >> >> So I downloaded LC 9.6.5, created an APK and the app icon is shown again. >> Did not find an bug report for this, so I will create one. >> >> Can someone confirm that this is fixed/works again in version 9.6.7? >> Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.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 rdimola at evergreeninfo.net Sun Mar 6 10:41:40 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 6 Mar 2022 10:41:40 -0500 Subject: No Android app icon with LC 9.6.6 In-Reply-To: <7F904946-C47E-4C35-B002-0DBEC96539C8@major-k.de> References: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> <83F89F19-2586-44FE-B65A-24D61AFD18EB@elementarysoftware.com> <7F904946-C47E-4C35-B002-0DBEC96539C8@major-k.de> Message-ID: <000e01d83170$af770260$0e650720$@net> Make that 9.6.6 rc1. Too early for me. Ran to the office to send this out without my cup of tea. >I Just ran into this yesterday using 9.6.1 rc1. For laughs I clicked the adaptive icon in the standalone settings and back to >legacy and I now see the legacy icon on the device. 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 Klaus major-k via use-livecode Sent: Sunday, March 06, 2022 5:01 AM To: How to use LiveCode Cc: Klaus major-k Subject: Re: No Android app icon with LC 9.6.6 Hi Scott, > Am 06.03.2022 um 10:57 schrieb scott--- via use-livecode : > > Hello Klaus, > Did you build with the Legacy icon type or the new Adaptive Icon type? with the Legacy icon type. > I haven’t been able to reproduce an icon that I think looks as good using the Adaptive method but I am seeing icons on Android using both methods. I created an APK form the same stack with LC 9.6.6 -> only generic app icon on device Same stack with LC 9.6.5 -> my nice legacy app icon on device > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > >> On Mar 6, 2022, at 1:00 AM, Klaus major-k via use-livecode wrote: >> >> Hi freinds, >> >> I just spent some time to find out that Android APKs created with LC >> version 9.6.6 do not show the app icon on an Android device!? >> >> So I downloaded LC 9.6.5, created an APK and the app icon is shown again. >> Did not find an bug report for this, so I will create one. >> >> Can someone confirm that this is fixed/works again in version 9.6.7? >> Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.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 prothero at earthlearningsolutions.org Sun Mar 6 10:40:51 2022 From: prothero at earthlearningsolutions.org (William Prothero) Date: Sun, 6 Mar 2022 07:40:51 -0800 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: Folks: I've been following this thread in wonder at the creative ways of optimizing this word search. I hope that the code will be published somewhere, available to all, with credits to the multiple idea authors. Kudos and congratulations to those who offered such creative and thoughtful ideas. I'm awed! Bill William A. Prothero, PhD Prof Emeritus, Dept of Earth Science University of California, Santa Barbara > On Mar 6, 2022, at 5:33 AM, Alex Tweedly via use-livecode wrote: > >  >> On 06/03/2022 06:35, J. Landman Gay via use-livecode wrote: >> >> Combined with Ken's suggestion to use "difference", looking up a list of about 50 words in the filtered dictionary reduces the time from 2-4 seconds to about 40 ms. It varies, depending on a lot of things, but it's fast enough that you don't notice. That's on my Pixel 5; on the Mac a lookup takes 5ms. And I can do it all in LC script. >> > 5ms !?! > > I did a (very simple) test (see code below) > > - take the whole sowpods.txt file (267k words) > > - create a set (i.e. split by CR as set) > > - look up 50 randomly chosen words + 5 non-words (just in case failed searches were expensive). > > Doing this 100 times takes 6-10 ms (on an old MacBook Pro). > > Could you maybe post the code that you're using that takes 5ms ? > >> I love these little speed contests we have here. Thank you. >> > Alex. > >> >> on mouseup >> local tmp, tNumberOfLines, tNumberOfLoops >> local tWords, tAWords, tTries >> >> put the cWords of me into tWords >> if tWords is empty then >> put URL ("file:" & specialfolderpath("resources") & "/sowpods.txt") into tWords >> set the cwords of me to tWords >> put "From file" &CR into fld "F" >> else >> put "using custom property" &CR into fld "F" >> end if >> >> put tWords into tAWords >> split tAWords by CR as set >> >> repeat with I = 1 to 50 >> put random(the number of lines in tWords) into tmp >> put line tmp of tWords &CR after tTries >> end repeat >> repeat with I = 1 to 5 >> put "azazaz" &Cr after tTries >> end repeat >> >> put 100 into tNumberofLoops >> >> local t1, t2, tCount, tTotal >> >> -- put the millisecs into t1 >> -- repeat tNumberOfLoops times >> -- put 0 into tCount >> -- repeat for each line L in tTries >> -- if L is among the lines of tWords then add 1 to tCount >> -- end repeat >> -- end repeat >> -- put the millisecs into t2 >> -- put tCOunt && "iterate lines" && t2-t1 &CR after fld "F" >> >> put the millisecs into t1 >> repeat tNumberOfLoops times >> put 0 into tCount >> put 0 into tTotal >> repeat for each line L in tTries >> add 1 to tTotal >> if tAWords[L] then add 1 to tCount >> end repeat >> end repeat >> put the millisecs into t2 >> put tCount && "of" && tTotal && "each element" && t2-t1 &CR after fld "F" >> >> >> 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 rdimola at evergreeninfo.net Sun Mar 6 10:49:50 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 6 Mar 2022 10:49:50 -0500 Subject: No Android app icon with LC 9.6.6 In-Reply-To: <3E2E5748-7A62-4C95-ADC8-B7767CEEB821@major-k.de> References: <513CA69F-EBED-4C08-811E-0812A62B6D5E@major-k.de> <3E2E5748-7A62-4C95-ADC8-B7767CEEB821@major-k.de> Message-ID: <000f01d83171$d314a280$793de780$@net> I updated the bug report. >Make that 9.6.6 rc1. Too early for me. Ran to the office to send this out without my cup of tea. >I Just ran into this yesterday using 9.6.1 rc1. For laughs I clicked the adaptive icon in the standalone settings and back to >legacy and I now see the legacy icon on the device. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Klaus major-k via use-livecode Sent: Sunday, March 06, 2022 4:55 AM To: How to use LiveCode Cc: Klaus major-k Subject: Re: No Android app icon with LC 9.6.6 Hi all, > Am 06.03.2022 um 10:00 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I just spent some time to find out that Android APKs created with LC > version 9.6.6 do not show the app icon on an Android device!? > > So I downloaded LC 9.6.5, created an APK and the app icon is shown again. > Did not find an bug report for this, so I will create one. and here it is: Can someone confirm that this is fixed/works again in version 9.6.7? > Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.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 alex at tweedly.net Sun Mar 6 14:43:11 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 6 Mar 2022 19:43:11 +0000 Subject: Speed up a slow loop In-Reply-To: <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> References: <160398321.175662.1646534204692@mail.yahoo.com> <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> Message-ID: Another thought on this problem; I think worth discussing even if the various suggestions so far have already got you a solution. I think it's a general observation ... You don't really care how long it takes to do this. What you care about is how long the user has to wait for your (the app's) response. So don't wait until the user has found all their possible words (i.e. the app is doing effectively nothing for the 30 seconds or so that the user gets for each board). Check each word as they type it, and store the result. Then, when the 30-sec timer is up, you will have only one or two last words to test - all the others have already been checked. So you never care about how long it takes to check 50 or so words against the dictionary - you check 49 of them one-at-a-time during the time you are otherwise idle. And the user has only to wait for the negligible delay while you check one or two words. Alex. From jacque at hyperactivesw.com Sun Mar 6 15:07:43 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 6 Mar 2022 14:07:43 -0600 Subject: Speed up a slow loop In-Reply-To: References: <160398321.175662.1646534204692@mail.yahoo.com> <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> Message-ID: <1d8a3705-4cbf-7fa9-ea50-4362dd1d8696@hyperactivesw.com> On 3/6/22 7:33 AM, Alex Tweedly via use-livecode wrote: > Could you maybe post the code that you're using that takes 5ms ? It does a bit more than your test, and I only estimated the number of user words since I'd tried so many things. I just tested again and this list has 173 words. The dictionary array has been reduced as per Quentin's suggestion. I need to get two lists, one for correct words and another for incorrect words. I used to hit the array directly but my current method uses the difference command. Here's the lookup I'm using, sDictFile is a script local array: function checkDictionary pList -- check dictionary for valid words put empty into tNonWords split pList by cr and tab difference pList with sDictFile into tNonWords set wholematches to true put fld "wordList" into tWList -- no longer the same as pList lock screen repeat for each key k in tNonWords -- mark non-words in list set the textcolor of word 1 of line lineoffset(k,tWList) of fld "wordList" to "red" end repeat unlock screen if tNonWords <> "" then put keys(tNonWords) into sStats["unknowns"] -- stats for reporting later difference pList with tNonWords return keys(pList) end checkDictionary I thought the extra time might be due to the field updates, but when I added 8 incorrect words the time didn't change. It remains steady at 5ms. So I switched back to hitting the dictionary array directly, and the time for 173 valid words and 8 invalid words dropped (on Mac) to 1. :) function checkDictionary pList -- check dictionary for valid words set wholematches to true repeat for each line l in pList if sDictFile[l] = true then put l & cr after tValidWords else put l & cr after tNonWords end if end repeat lock screen repeat for each line l in tNonWords -- mark non-words in list set the textcolor of word 1 of line lineoffset(l,pList) of fld "wordList" to "red" end repeat unlock screen if tNonWords <> "" then put tNonWords into sStats["unknowns"] return tValidWords end checkDictionary So there you have it. I'll go back to the original method. I'm glad you questioned this. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Mar 6 15:18:07 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 6 Mar 2022 14:18:07 -0600 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: On 3/6/22 9:40 AM, William Prothero via use-livecode wrote: > I've been following this thread in wonder at the creative ways of optimizing this word search. I hope that the code will be published somewhere, available to all, with credits to the multiple idea authors. I can upload it to Sample Stacks when it's done, there's nothing proprietary about it. There's no point to submitting it to any of the app stores since 1) the name "Boggle" is copyrighted as well as the game itself, and 2) there are a gazillion word search games there anyway. I wrote it for myself and anyone else who wants to play with it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dick.kriesel at mail.com Sun Mar 6 15:33:12 2022 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sun, 6 Mar 2022 12:33:12 -0800 Subject: Speed up a slow loop In-Reply-To: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> References: <5f44f869-7ebe-b04e-35e4-5095359c9cca@hyperactivesw.com> Message-ID: <7F8EBCB6-4788-45C7-999B-C5944C8C2E9D@mail.com> > On Mar 2, 2022, at 1:57 PM, J. Landman Gay via use-livecode wrote: > ... > repeat for each line l in pList -- pList is the user word list > if sDictFile[l] = true then put l & cr after tCheckedList > else put l & cr after tNonWords > wait 0 with messages -- prevent ANRs > end repeat > … Hi, Jacque. If you use sets of words, as sDictFile already is, and as Ken suggested, then you can eliminate the repeat loop: split pList by cr into tUserWords intersect tUserWords with sDictFile into tChecked difference tUserWords with sDictFile into tNonWords Does that turn out to be fast enough for you? — Dick From jacque at hyperactivesw.com Sun Mar 6 17:56:19 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 6 Mar 2022 16:56:19 -0600 Subject: Speed up a slow loop In-Reply-To: References: <160398321.175662.1646534204692@mail.yahoo.com> <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> Message-ID: <34bfb0a4-f34f-29e9-6f07-a78c45cc4369@hyperactivesw.com> On 3/6/22 1:43 PM, Alex Tweedly via use-livecode wrote: > Another thought on this problem; I think worth discussing even if the various suggestions so > far have already got you a solution. I think it's a general observation ... > > You don't really care how long it takes to do this. > What you care about is how long the user has to wait for your (the app's) response. > > So don't wait until the user has found all their possible words (i.e. the app is doing > effectively nothing for the 30 seconds or so that the user gets for each board). Check each > word as they type it, and store the result. Then, when the 30-sec timer is up, you will have > only one or two last words to test - all the others have already been checked. > > So you never care about how long it takes to check 50 or so words against the dictionary - you > check 49 of them one-at-a-time during the time you are otherwise idle. And the user has only to > wait for the negligible delay while you check one or two words. Good point for later. I was just testing on my Pixel 5, which was slow as hell before, and it just verified and marked up a user list of 108 words in 0 ms. I'm astonished at what we've done here. The longest word list I've been able to produce has about 225 words, so if it takes an extra ms I'm okay with that. If it ain't broke... The board walk took 179 ms for all 108 words because I ditched my old, juvenile, inefficient code and swiped yours. :) As Bill requested, I've marked all the stuff I used with credits for the people who suggested or provided code, so you're in there. The two most impactful changes were your board walk and Quentin's filtered dictionary idea, but there are also other improvements. The one thing I still dont understand is why responses were so fast on my old Android tablet before I made changes. It's happy with the new code but there's little discernable difference in response time. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dick.kriesel at mail.com Sun Mar 6 18:12:59 2022 From: dick.kriesel at mail.com (Dick Kriesel) Date: Sun, 6 Mar 2022 15:12:59 -0800 Subject: can I filter lines with a list of alternative OR strings? In-Reply-To: References: Message-ID: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> > On Mar 3, 2022, at 2:30 AM, David V Glasgow via use-livecode wrote: > > I can filter text using a single term plus a numerical range s eg: > *re 1[0-5]* > matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15 > > But is there a form where the alternatives are also text? eg something like: > > *big [“dog”, “cat”, “fish”]* Hi, David. regex supports alternation, so if you put "big dog|big fish" into tTarget then you can filter pText with regex tTarget Does that work for you? — Dick From bobsneidar at iotecdigital.com Sun Mar 6 21:17:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 7 Mar 2022 02:17:18 +0000 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <08855287-4D7D-4E19-9C44-F2AC1A3C224C@iotecdigital.com> You people are too smart for me. Sent from my iPhone > On Mar 6, 2022, at 07:41, William Prothero via use-livecode wrote: > > Folks: > I've been following this thread in wonder at the creative ways of optimizing this word search. I hope that the code will be published somewhere, available to all, with credits to the multiple idea authors. > > Kudos and congratulations to those who offered such creative and thoughtful ideas. I'm awed! > > Bill > > William A. Prothero, PhD > Prof Emeritus, Dept of Earth Science > University of California, Santa Barbara > >> On Mar 6, 2022, at 5:33 AM, Alex Tweedly via use-livecode wrote: >> >>  >>>> On 06/03/2022 06:35, J. Landman Gay via use-livecode wrote: >>> >>> Combined with Ken's suggestion to use "difference", looking up a list of about 50 words in the filtered dictionary reduces the time from 2-4 seconds to about 40 ms. It varies, depending on a lot of things, but it's fast enough that you don't notice. That's on my Pixel 5; on the Mac a lookup takes 5ms. And I can do it all in LC script. >>> >> 5ms !?! >> >> I did a (very simple) test (see code below) >> >> - take the whole sowpods.txt file (267k words) >> >> - create a set (i.e. split by CR as set) >> >> - look up 50 randomly chosen words + 5 non-words (just in case failed searches were expensive). >> >> Doing this 100 times takes 6-10 ms (on an old MacBook Pro). >> >> Could you maybe post the code that you're using that takes 5ms ? >> >>> I love these little speed contests we have here. Thank you. >>> >> Alex. >> >>> >>> on mouseup >>> local tmp, tNumberOfLines, tNumberOfLoops >>> local tWords, tAWords, tTries >>> >>> put the cWords of me into tWords >>> if tWords is empty then >>> put URL ("file:" & specialfolderpath("resources") & "/sowpods.txt") into tWords >>> set the cwords of me to tWords >>> put "From file" &CR into fld "F" >>> else >>> put "using custom property" &CR into fld "F" >>> end if >>> >>> put tWords into tAWords >>> split tAWords by CR as set >>> >>> repeat with I = 1 to 50 >>> put random(the number of lines in tWords) into tmp >>> put line tmp of tWords &CR after tTries >>> end repeat >>> repeat with I = 1 to 5 >>> put "azazaz" &Cr after tTries >>> end repeat >>> >>> put 100 into tNumberofLoops >>> >>> local t1, t2, tCount, tTotal >>> >>> -- put the millisecs into t1 >>> -- repeat tNumberOfLoops times >>> -- put 0 into tCount >>> -- repeat for each line L in tTries >>> -- if L is among the lines of tWords then add 1 to tCount >>> -- end repeat >>> -- end repeat >>> -- put the millisecs into t2 >>> -- put tCOunt && "iterate lines" && t2-t1 &CR after fld "F" >>> >>> put the millisecs into t1 >>> repeat tNumberOfLoops times >>> put 0 into tCount >>> put 0 into tTotal >>> repeat for each line L in tTries >>> add 1 to tTotal >>> if tAWords[L] then add 1 to tCount >>> end repeat >>> end repeat >>> put the millisecs into t2 >>> put tCount && "of" && tTotal && "each element" && t2-t1 &CR after fld "F" >>> >>> >>> 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 cubist at aol.com Mon Mar 7 03:58:33 2022 From: cubist at aol.com (Quentin Long) Date: Mon, 7 Mar 2022 08:58:33 +0000 (UTC) Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: References: Message-ID: <747637380.327916.1646643513392@mail.yahoo.com> sez j. landman gay: > Interesting idea. There are 25 letters on each board, some are always repeats. I think I'd need  > a good regex so I wouldn't have to run the filter command multiple times. How's your regex? I see you've already implemented something, but just for grins, here's my thought re: the One True Regex for this situation: AbsentChars is the name of a variable which contains all the letters that *aren't* on the board. My first attempt at the regex is… filter lines of WordList without "*[AbsentChars]*" However, that will remove all words that contain at least one letter in the specific character string "absentchars", which is not what I want. So, bring out the "do" keyword… do ("filter lines of WordList without" && quote & "*" & AbsentChars & "*" & quote) "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [ http://www.atarmslength.net ]! If you like "At Arm's Length", support it at [ http://www.patreon.com/DarkwingDude ]. From marksmithhfx at gmail.com Mon Mar 7 06:05:20 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 7 Mar 2022 11:05:20 +0000 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: <747637380.327916.1646643513392@mail.yahoo.com> References: <747637380.327916.1646643513392@mail.yahoo.com> Message-ID: <4593EA66-31C2-4F76-8CF0-CE3292BFEB87@gmail.com> I am not an expert in regex or filtering by any means so Quentin’s message prompted me to take a closer look. I started with the dictionary entry for filter and I found this simple example: filter items of "apple,banana,cherry" with regex pattern "b.*" Since we are not specifying a destination, the result is going into the “it" variable. I tried that and got the expected result “banana”. Next I tried “c.*” and got cherry and “d.*’ and got nothing. All good. Finally I tried “a.*” and got “apple, banana”. I was a bit surprised by that. Does anyone know why “a.*” breaks the pattern of returning a single item? Does it have something to do with the item being in the first position in the string? BTW, I did try putting the result into a variable and displaying that (… into temp; put temp) and got the same result. Also, I thought I might try a few experiments using “without regex pattern” and using “a.*” as the argument returned “cherry” so at least whatever it is doing it is consistent. Mark > On Mar 7, 2022, at 8:58 AM, Quentin Long via use-livecode wrote: > > sez j. landman gay: >> Interesting idea. There are 25 letters on each board, some are always repeats. I think I'd need >> a good regex so I wouldn't have to run the filter command multiple times. How's your regex? > > I see you've already implemented something, but just for grins, here's my thought re: the One True Regex for this situation: > AbsentChars is the name of a variable which contains all the letters that *aren't* on the board. My first attempt at the regex is… > filter lines of WordList without "*[AbsentChars]*" > However, that will remove all words that contain at least one letter in the specific character string "absentchars", which is not what I want. So, bring out the "do" keyword… > do ("filter lines of WordList without" && quote & "*" & AbsentChars & "*" & quote) > > "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [ http://www.atarmslength.net ]! If you like "At Arm's Length", support it at [ http://www.patreon.com/DarkwingDude ]. > _______________________________________________ > use-livecode mailing list > use-livecode 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 marksmithhfx at gmail.com Mon Mar 7 11:44:52 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 7 Mar 2022 16:44:52 +0000 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: <4593EA66-31C2-4F76-8CF0-CE3292BFEB87@gmail.com> References: <747637380.327916.1646643513392@mail.yahoo.com> <4593EA66-31C2-4F76-8CF0-CE3292BFEB87@gmail.com> Message-ID: So, playing around a bit more I discovered “a.*” does not return words that “start with”, but rather words that “contain” the letter. So that explains “apple, banana”. What isn’t clear to me is I get the exact same result using “a.” with no asterisk, but if I search for “y.” it returns nothing rather than cherry. Consequentially I realize my confusion is due to a limitation of what these characters mean to regex. Can anyone clarify for me what the “.” and “*” are doing to change the filter? Thanks > On Mar 7, 2022, at 11:05 AM, Mark Smith wrote: > > I am not an expert in regex or filtering by any means so Quentin’s message prompted me to take a closer look. I started with the dictionary entry for filter and I found this simple example: > filter items of "apple,banana,cherry" with regex pattern "b.*" > > Since we are not specifying a destination, the result is going into the “it" variable. I tried that and got the expected result “banana”. Next I tried “c.*” and got cherry and “d.*’ and got nothing. All good. Finally I tried “a.*” and got “apple, banana”. I was a bit surprised by that. Does anyone know why “a.*” breaks the pattern of returning a single item? Does it have something to do with the item being in the first position in the string? > > BTW, I did try putting the result into a variable and displaying that (… into temp; put temp) and got the same result. > > Also, I thought I might try a few experiments using “without regex pattern” and using “a.*” as the argument returned “cherry” so at least whatever it is doing it is consistent. > > Mark > > >> On Mar 7, 2022, at 8:58 AM, Quentin Long via use-livecode > wrote: >> >> sez j. landman gay: >>> Interesting idea. There are 25 letters on each board, some are always repeats. I think I'd need >>> a good regex so I wouldn't have to run the filter command multiple times. How's your regex? >> >> I see you've already implemented something, but just for grins, here's my thought re: the One True Regex for this situation: >> AbsentChars is the name of a variable which contains all the letters that *aren't* on the board. My first attempt at the regex is… >> filter lines of WordList without "*[AbsentChars]*" >> However, that will remove all words that contain at least one letter in the specific character string "absentchars", which is not what I want. So, bring out the "do" keyword… >> do ("filter lines of WordList without" && quote & "*" & AbsentChars & "*" & quote) >> >> "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [ http://www.atarmslength.net ]! If you like "At Arm's Length", support it at [ http://www.patreon.com/DarkwingDude ]. >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 andy at db-integration.co.uk Mon Mar 7 11:52:43 2022 From: andy at db-integration.co.uk (Andy Marshman) Date: Mon, 7 Mar 2022 16:52:43 +0000 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: References: <747637380.327916.1646643513392@mail.yahoo.com> <4593EA66-31C2-4F76-8CF0-CE3292BFEB87@gmail.com> Message-ID: Hi Mark, In regex the full stop stands for any single character whereby the * means any other characters. If you want to only find things that begin with a character put a ^ infront of the character you are searching for. So ^a. should only return apple in your example. Regards Andy On Mon, 7 Mar 2022, 16:46 Mark Smith via use-livecode, < use-livecode at lists.runrev.com> wrote: > So, playing around a bit more I discovered “a.*” does not return words > that “start with”, but rather words that “contain” the letter. So that > explains “apple, banana”. What isn’t clear to me is I get the exact same > result using “a.” with no asterisk, but if I search for “y.” it returns > nothing rather than cherry. Consequentially I realize my confusion is due > to a limitation of what these characters mean to regex. Can anyone clarify > for me what the “.” and “*” are doing to change the filter? > > Thanks > > > On Mar 7, 2022, at 11:05 AM, Mark Smith wrote: > > > > I am not an expert in regex or filtering by any means so Quentin’s > message prompted me to take a closer look. I started with the dictionary > entry for filter and I found this simple example: > > filter items of "apple,banana,cherry" with regex pattern "b.*" > > > > Since we are not specifying a destination, the result is going into the > “it" variable. I tried that and got the expected result “banana”. Next I > tried “c.*” and got cherry and “d.*’ and got nothing. All good. Finally I > tried “a.*” and got “apple, banana”. I was a bit surprised by that. Does > anyone know why “a.*” breaks the pattern of returning a single item? Does > it have something to do with the item being in the first position in the > string? > > > > BTW, I did try putting the result into a variable and displaying that (… > into temp; put temp) and got the same result. > > > > Also, I thought I might try a few experiments using “without regex > pattern” and using “a.*” as the argument returned “cherry” so at least > whatever it is doing it is consistent. > > > > Mark > > > > > >> On Mar 7, 2022, at 8:58 AM, Quentin Long via use-livecode < > use-livecode at lists.runrev.com > > wrote: > >> > >> sez j. landman gay: > >>> Interesting idea. There are 25 letters on each board, some are always > repeats. I think I'd need > >>> a good regex so I wouldn't have to run the filter command multiple > times. How's your regex? > >> > >> I see you've already implemented something, but just for grins, here's > my thought re: the One True Regex for this situation: > >> AbsentChars is the name of a variable which contains all the letters > that *aren't* on the board. My first attempt at the regex is… > >> filter lines of WordList without "*[AbsentChars]*" > >> However, that will remove all words that contain at least one letter in > the specific character string "absentchars", which is not what I want. So, > bring out the "do" keyword… > >> do ("filter lines of WordList without" && quote & "*" & AbsentChars & > "*" & quote) > >> > >> "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the > webcomic at [ http://www.atarmslength.net > ]! If you like "At Arm's Length", support it at [ > http://www.patreon.com/DarkwingDude > ]. > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 Mon Mar 7 12:07:02 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 07 Mar 2022 11:07:02 -0600 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: <747637380.327916.1646643513392@mail.yahoo.com> References: <747637380.327916.1646643513392@mail.yahoo.com> Message-ID: <17f65593ef0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Funny you should bring this up, as I was playing with it last night. Turns out that multiple filters do slow down on the Pixel so I was looking for the One True Regex. I'm not great at this so would like verification from those who know if this is what I need: put "[" & tUnusedLetters & "]" into tRegex filter tHugeDict without regex pattern tRegex It seems to work but I'm not positive. Does that look right? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 7, 2022 3:01:19 AM Quentin Long via use-livecode wrote: > My first attempt at the regex is > filter lines of WordList without "*[AbsentChars]*" > However, that will remove all words that contain at least one letter in the > specific character string "absentchars", which is not what I want. So, > bring out the "do" keyword > do ("filter lines of WordList without" && quote & "*" & AbsentChars & "*" & > quote) From MikeKerner at roadrunner.com Mon Mar 7 13:05:07 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 7 Mar 2022 13:05:07 -0500 Subject: A question about the compiler to come In-Reply-To: <1241136E-36DB-4DEE-8053-AB6F7132180E@gmail.com> References: <1241136E-36DB-4DEE-8053-AB6F7132180E@gmail.com> Message-ID: I have tried on several occasions to appreciate LCB, but I just don't, so, being able to write widgets with LCS would be great. Maybe for tmc4, because i don't think it will be in time for tmc3 On Sat, Mar 5, 2022 at 1:16 AM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > I also asked about building widgets from LC script. The response was, this > could be a step along that path. > > Sent from my iPhone > > > On Mar 4, 2022, at 2:54 PM, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > It's nice that aCompileIt!/Double-XX replacement is finally coming to > > LiveCode, maybe, but it is pretty expensive, at $499/year. > > The old timers may remember both of those products, from Heizer Software, > > allowed you to compile HyperCard stacks (and build XCMD's and XFCN's). > > We will see how smooth the path will be. I did post $500, but I think it > > will be a rocky transition. > > > > > >> On Thu, Mar 3, 2022 at 8:19 PM Tom Glod via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >> I meant to include link to this: > >> https://livecode.com/script-compiler-project-page/ > >> > >>> On Thu, Mar 3, 2022 at 8:13 PM Tom Glod wrote: > >>> > >>> Hi Sean, one the page for the compiler project and Kevin talks about > the > >>> nature of Livecode being interpreted ..... currently the script in > memory > >>> is just obfuscated, and a sufficiently motivated person or group of > >> people > >>> could eventually find what they want to find. script passwords are > >> useful > >>> too, but also have their limit. > >>> > >>> "By compiling scripts fully, standalones become even more secure. We’ve > >>> put a lot of work into making standalones secure at present but there > are > >>> still limitations on the existing approach that are fundamental to how > an > >>> interpreter like LiveCode operates. Compiled code does not leave any > >> trace > >>> of the original script text." > >>> > >>> Cheers, > >>> > >>> Tom > >>> > >>> On Thu, Mar 3, 2022 at 5:22 PM Sean Cole via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> Tom > >>>> What security imp[lications do you perceive it to overcome? > >>>> > >>>> Sean > >>>> > >>>> On Thu, 3 Mar 2022 at 21:07, Tom Glod via use-livecode < > >>>> use-livecode at lists.runrev.com> wrote: > >>>> > >>>>> Pardon my lingo .... but this is f#%%ing huge!!!! Just last week, I > >> was > >>>>> thinking about the nature of livecode and that it comes with some > >> pretty > >>>>> profound security implications. > >>>>> I'm sSuper happy to see this machine code compiler coming to > livecode. > >>>>> This is likely to directly influence the amount of sleep I get in > this > >>>>> upcoming decade of work :) > >>>>> Great decision by the team to go ahead with this. > >>>>> (y) > >>>>> > >>>>> > >>>>> On Thu, Mar 3, 2022 at 3:03 PM Tom Glod wrote: > >>>>> > >>>>>> Interesting. > >>>>>> I cannot find this email from Kevin, can someone please forward it > >>>> to me > >>>>>> or direct me to where I can read it? > >>>>>> > >>>>>> Thanks, > >>>>>> > >>>>>> Tom > >>>>>> > >>>>>> On Thu, Mar 3, 2022 at 10:10 AM Rick Harrison via use-livecode < > >>>>>> use-livecode at lists.runrev.com> wrote: > >>>>>> > >>>>>>> According to Kevin’s email: > >>>>>>> > >>>>>>> Would this script compiler work on all platforms? > >>>>>>> All platforms will benefit. Code will run faster and readable > >> scripts > >>>>>>> will be removed whatever platform you are targeting. > >>>>>>> Rick > >>>>>>> > >>>>>>>> On Mar 3, 2022, at 9:33 AM, francois.chaplais via use-livecode < > >>>>>>> use-livecode at lists.runrev.com> wrote: > >>>>>>>> > >>>>>>>> Dear all > >>>>>>>> > >>>>>>>> You probably have received some mail asking for funding > >> concerning > >>>> a > >>>>>>> compiler to come. > >>>>>>>> > >>>>>>>> I would like to know if this compiler can target MacOS/ARM > >>>> processor > >>>>> on > >>>>>>> the desktop. > >>>>>>>> > >>>>>>>> Best regards, > >>>>>>>> > >>>>>>>> François > >>>>>>>> _______________________________________________ > >>>>>>>> use-livecode mailing list > >>>>>>>> use-livecode 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 > >>>> > >>> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 alex at tweedly.net Mon Mar 7 13:30:28 2022 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 7 Mar 2022 18:30:28 +0000 Subject: Speed up a slow loop In-Reply-To: <34bfb0a4-f34f-29e9-6f07-a78c45cc4369@hyperactivesw.com> References: <160398321.175662.1646534204692@mail.yahoo.com> <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> <34bfb0a4-f34f-29e9-6f07-a78c45cc4369@hyperactivesw.com> Message-ID: On 06/03/2022 22:56, J. Landman Gay via use-livecode wrote: > > The board walk took 179 ms for all 108 words because I ditched my old, > juvenile, inefficient code and swiped yours. :) As Bill requested, > I've marked all the stuff I used with credits for the people who > suggested or provided code, so you're in there. The two most impactful > changes were your board walk and Quentin's filtered dictionary idea, > but there are also other improvements. Oh, well, if you've got the fast boardwalk code in there anyway, that opens up another possibility (with one caveat). The boardwalk will find all valid words on the board. So that list of words can be used as the "dictionary" for the user's guesses - and now you have a "dictionary" of only a few hundred words, rather than than the many thousands of either the original or the filtered dictionaries. And it's worth saying that the fast boardwalk only explores those potential words that are on the board, so there's no need to filter the dictionary for it. The caveat - a user guess which isn't in the word list found by the boardwalk can be either "not a word" or "a word, but not present on the board", and you don't know which. If your UI needs to distinguish between those cases, you'd need to do another step of checking these (hopefully very few) failure cases against the full dictionary. Alex. From jacque at hyperactivesw.com Mon Mar 7 17:22:08 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 7 Mar 2022 16:22:08 -0600 Subject: Speed up a slow loop In-Reply-To: References: <160398321.175662.1646534204692@mail.yahoo.com> <45dce1aa-5716-9b61-0c6f-07a330c7f52f@hyperactivesw.com> <34bfb0a4-f34f-29e9-6f07-a78c45cc4369@hyperactivesw.com> Message-ID: On 3/7/22 12:30 PM, Alex Tweedly via use-livecode wrote: > > The boardwalk will find all valid words on the board. So that list of words can be used as the > "dictionary" for the user's guesses - and now you have a "dictionary" of only a few hundred > words, rather than than the many thousands of either the original or the filtered dictionaries. > > And it's worth saying that the fast boardwalk only explores those potential words that are on > the board, so there's no need to filter the dictionary for it. > > The caveat - a user guess which isn't in the word list found by the boardwalk can be either > "not a word" or "a word, but not present on the board", and you don't know which. If your UI > needs to distinguish between those cases, you'd need to do another step of checking these > (hopefully very few) failure cases against the full dictionary. Wow, that's something else that didn't occur to me. I do, of course, have the word list from your board walk. At present I use it to provide a hint on demand if the user gets stuck. It's cheating, but hey, this is a one-person game and you're only cheating yourself. Nobody says you have to click that button. I do need to discriminate between non-words and words not on the board, but the dictionary check is now so fast that it isn't a problem. The most time-consuming part is now the boardwalk, but it will be instant when I check the word list your script creates. Have you heard the joke about how a camel is a horse created by a committee? That's not always true. This game is getting better and better. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dan at clearvisiontech.com Mon Mar 7 17:39:04 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Mon, 7 Mar 2022 22:39:04 +0000 Subject: Sign In with Apple and Google Message-ID: <113A7075-381A-4623-B7C0-2FF2B8C4C3F7@clearvisiontech.com> Hey all... does anyone have a method to do user sign-ins with Apple and Google (on iOS AND Android)? I know we could do it in a webpage, but wondered if there was a plug-in or better method to handle it. Any advice on this? Thanks in advance, -Dan From harrison at all-auctions.com Mon Mar 7 18:01:45 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 7 Mar 2022 18:01:45 -0500 Subject: Sign In with Apple and Google In-Reply-To: <113A7075-381A-4623-B7C0-2FF2B8C4C3F7@clearvisiontech.com> References: <113A7075-381A-4623-B7C0-2FF2B8C4C3F7@clearvisiontech.com> Message-ID: <9C9D0A1E-F5A5-4C61-A2BB-D0095AFA43CC@all-auctions.com> Do it in a webpage. I doubt there is a plug-in or a better way. Personally whenever I see any website that tells me to login with my google, facebook, or apple account, I immediately view that website as being suspicious. If there is a standard login using a Login ID and password that I set up, then I always elect to do things that way. Good luck! Rick > On Mar 7, 2022, at 5:39 PM, Dan Friedman via use-livecode wrote: > > Hey all... does anyone have a method to do user sign-ins with Apple and Google (on iOS AND Android)? I know we could do it in a webpage, but wondered if there was a plug-in or better method to handle it. Any advice on this? > > Thanks in advance, > -Dan > > _______________________________________________ > use-livecode mailing list > use-livecode 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 martyknappster at gmail.com Mon Mar 7 19:05:48 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 7 Mar 2022 16:05:48 -0800 Subject: Monterey + Dark Mode + LC 9.6.6 Message-ID: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> I just had a customer send a screen shot of my app (built with LC 9.6.6) running on Mac Monterey in dark mode and buttons and fields are all messed up. I don’t use dark mode and so tried it on my Mac and see the issue. I then tried an app built with a previous version of LC (9.6.1 I believe) and it looks fine. Anybody else seeing this? --- Marty Knapp From bobsneidar at iotecdigital.com Mon Mar 7 19:15:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 8 Mar 2022 00:15:22 +0000 Subject: bug in Standalone Only Message-ID: <68D057D3-1A2D-4FA4-98E6-F2C1BBFA4A8B@iotecdigital.com> Hi all. There is a bug in my app which only rears it's ugly head when I create a standalone. When I am in the IDE it never happens. I get an error dialog but the numbers in the dialog do not make any sense. I email myself an error report, but where it says the error is happening is NOT where it is happening. I know this because when I search for the line that is creating the error in the script it says it's happening in, I put answer dialogs just before the two lines I find. In the standalone I never see the answer dialogs. Jacque, don't you have a utility that can debug standalones? Bob S From tom at makeshyft.com Mon Mar 7 19:48:25 2022 From: tom at makeshyft.com (Tom Glod) Date: Mon, 7 Mar 2022 19:48:25 -0500 Subject: bug in Standalone Only In-Reply-To: <68D057D3-1A2D-4FA4-98E6-F2C1BBFA4A8B@iotecdigital.com> References: <68D057D3-1A2D-4FA4-98E6-F2C1BBFA4A8B@iotecdigital.com> Message-ID: Hi Bob, sometimes it helps to look up the error using the scriptexecutionerrors function The first number that you see in each line is the error number. So "put line x of the scriptExecutionErrors" should tell you exactly what the error is, and that is often a good hint of where to look. Hope that helps. On Mon, Mar 7, 2022 at 7:16 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all. There is a bug in my app which only rears it's ugly head when I > create a standalone. When I am in the IDE it never happens. I get an error > dialog but the numbers in the dialog do not make any sense. I email myself > an error report, but where it says the error is happening is NOT where it > is happening. I know this because when I search for the line that is > creating the error in the script it says it's happening in, I put answer > dialogs just before the two lines I find. In the standalone I never see the > answer dialogs. > > Jacque, don't you have a utility that can debug standalones? > > 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 martyknappster at gmail.com Mon Mar 7 20:08:59 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 7 Mar 2022 17:08:59 -0800 Subject: Monterey + Dark Mode + LC 9.6.6 In-Reply-To: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> References: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> Message-ID: I think I found the issue. I use Levure to build my apps (great framework - you should try it!) and it uses a a customized plist file. I compared that to a plist file from a normally complied app and notice it has has parameter that is needed: NSRequiresAquaSystemAppearance --- Marty Knapp > On Mar 7, 2022, at 4:05 PM, Marty Knapp wrote: > > I just had a customer send a screen shot of my app (built with LC 9.6.6) running on Mac Monterey in dark mode and buttons and fields are all messed up. I don’t use dark mode and so tried it on my Mac and see the issue. I then tried an app built with a previous version of LC (9.6.1 I believe) and it looks fine. Anybody else seeing this? > --- > Marty Knapp From jacque at hyperactivesw.com Mon Mar 7 20:47:03 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 07 Mar 2022 19:47:03 -0600 Subject: bug in Standalone Only In-Reply-To: <68D057D3-1A2D-4FA4-98E6-F2C1BBFA4A8B@iotecdigital.com> References: <68D057D3-1A2D-4FA4-98E6-F2C1BBFA4A8B@iotecdigital.com> Message-ID: <17f673555d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Remote debugging allows you to step through the script. But we do have an error lookup utility that will tell you what the error codes mean. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 7, 2022 6:17:28 PM Bob Sneidar via use-livecode wrote: > Jacque, don't you have a utility that can debug standalones? From bobsneidar at iotecdigital.com Mon Mar 7 21:21:48 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 8 Mar 2022 02:21:48 +0000 Subject: bug in Standalone Only In-Reply-To: <17f673555d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <68D057D3-1A2D-4FA4-98E6-F2C1BBFA4A8B@iotecdigital.com> <17f673555d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <11D8DCF5-05E2-41AA-A983-40843604544B@iotecdigital.com> Hi all. I found it. I have a handler that creates a temp database in the default folder. In a Mac standalone that folder is read only. Thankfully it is only something I use in the IDE and not in standalones, so I now test for the environment. Sent from my iPhone > On Mar 7, 2022, at 17:48, J. Landman Gay via use-livecode wrote: > > Remote debugging allows you to step through the script. But we do have an error lookup utility that will tell you what the error codes mean. > > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On March 7, 2022 6:17:28 PM Bob Sneidar via use-livecode wrote: >> >> Jacque, don't you have a utility that can debug standalones? > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue Mar 8 02:27:58 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Tue, 8 Mar 2022 18:27:58 +1100 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <629699A1-1E0D-41C2-941E-FD2D23F9D806@optusnet.com.au> Jacque seems to have found a satisfactory solution to her problem with the help of the excellent suggestions we have seen here. Since there seems to have been a lot of interest, I thought I would take the opportunity to report on an alternative method I had been exploring with Jacque via email. I believe there were two problems: a) the original search search algorithm was too slow, and b) when implemented on certain devices the app went into an unusable state. Both problems were caused by the wordlist being stored being too large (275K words for a file size of 2.5 MB). The second issue we are pretty sure was Virtual Memory swap space thrashing. Using Quentin’s why-didn’t-I-think-of-that filtering suggestion the wordlist can be reduced (in the vasty majority of cases) to a manageable size, say 20K words or less, and both problems solved very elegantly. There are however edge cases where the filtered wordlist can still be huge, over 200K words, [ eg unused letters are JQXYZ ]. Such cases are going to be very rare, so Jacque is going with the above solution. An alternative is to use an sqlite database, always an option which should be considered when handling large data. This completely removes the issue of having the wordlist in memory, and at the same time provides an extremely fast search engine, so was worth exploring as a solution to both problems. Storing the words in a db single table with an index on initial letter and word length, or as lots of tables, one for each initial and length (!), both return a result for a search for a word in a small fraction of a millisecond, so definitely this would be a viable solution which would handle all letter distributions. There is however a downside: both methods produce a db file size of 7.1 MB for the SOWPODS wordlist, which rather bloats the app footprint, even when you discount the text file version of the wordlist which no longer needs to be stored. If one was writing a crossword app, where you might be searching for words for which you know the 3rd and fifth letter for example, bread and butter for an sqlite query, this would definitely be the way to go, but probably overkill for Jacque’s app. But now, speaking of databases, I have a question. I have an update to my nsScriptDatabase stack which I want to upload to the Sample Stacks. Because it really should be compiled to a standalone, I really need to upload a pair of stacks, a launch stack and one to hold data which can one modified by the user. But it would seem a sample stack must be a single item. What to do? Neville From marksmithhfx at gmail.com Tue Mar 8 06:31:57 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 8 Mar 2022 11:31:57 +0000 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: Apart from searching I am sure it will provide many other great learning opportunities as well. Looking forward to seeing how it all pans out. Mark > On Mar 6, 2022, at 8:18 PM, J. Landman Gay via use-livecode wrote: > > On 3/6/22 9:40 AM, William Prothero via use-livecode wrote: >> I've been following this thread in wonder at the creative ways of optimizing this word search. I hope that the code will be published somewhere, available to all, with credits to the multiple idea authors. > > I can upload it to Sample Stacks when it's done, there's nothing proprietary about it. There's no point to submitting it to any of the app stores since 1) the name "Boggle" is copyrighted as well as the game itself, and 2) there are a gazillion word search games there anyway. > > I wrote it for myself and anyone else who wants to play with 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 From alex at tweedly.net Tue Mar 8 11:30:40 2022 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 8 Mar 2022 16:30:40 +0000 Subject: Speed up a slow loop In-Reply-To: <629699A1-1E0D-41C2-941E-FD2D23F9D806@optusnet.com.au> References: <629699A1-1E0D-41C2-941E-FD2D23F9D806@optusnet.com.au> Message-ID: <72e726a6-6829-d08a-4ff9-375bcd691205@tweedly.net> On 08/03/2022 07:27, Neville Smythe via use-livecode wrote: > I believe there were two problems: a) the original search search algorithm was too slow, and b) when implemented on certain devices the app went into an unusable state. Both problems were caused by the wordlist being stored being too large (275K words for a file size of 2.5 MB). The second issue we are pretty sure was Virtual Memory swap space thrashing. I guess I'm not convinced about VM space thrashing being the problem, certainly not due to the wordlist. It's 2.5 Mb - i.e. 0.02% of the real RAM in a Pixel 5. There may be something else in the app making the total VM space very large - but the wordlist wouldn't do it on its own. > An alternative is to use an sqlite database, always an option which should be considered when handling large data. This completely removes the issue of having the wordlist in memory, and at the same time provides an extremely fast search engine, so was worth exploring as a solution to both problems. Storing the words in a db single table with an index on initial letter and word length, or as lots of tables, one for each initial and length (!), both return a result for a search for a word in a small fraction of a millisecond, so definitely this would be a viable solution which would handle all letter distributions. Sounds cool. I'd like to see an example of how this would be created and used (I'm very much a SQL novice). > There is however a downside: both methods produce a db file size of 7.1 MB for the SOWPODS wordlist, which rather bloats the app footprint, even when you discount the text file version of the wordlist which no longer needs to be stored. You could do the opposite. Store the wordlist (700Kb compressed), and decompress/populate into the SQLite database on initial run. > But now, speaking of databases, I have a question. I have an update to my nsScriptDatabase stack which I want to upload to the Sample Stacks. Because it really should be compiled to a standalone, I really need to upload a pair of stacks, a launch stack and one to hold data which can one modified by the user. But it would seem a sample stack must be a single item. What to do? Yep -this is a big drawback of the Sample Stacks system. Maybe you could make a single app, which contains the two desired stacks as custom props. (Sometimes it's easier to type code than to describe it :-) In your preparation, you'd do:  put URL ("binfile:launchstack.livecode") into tmp  set the cLaunch of me to compress(tmp)  put URL ("binfile:userdatastack.livecode") into tmp  set the cUser of me to compress(tmp) And then when the user downloads your sample stack, it does the inverse to create the two local stacks, with an info box telling them about it. Alex. From bobsneidar at iotecdigital.com Tue Mar 8 13:45:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 8 Mar 2022 18:45:33 +0000 Subject: moveStack is not triggering Message-ID: <728EB65E-56E6-4122-97A3-AABE88B89DE4@iotecdigital.com> Hi all. Anyone else using the moveStack message? I have a handler in the card script which is where the dictionary says the message is sent. Moving the stack does not trigger the message. Bob S From klaus at major-k.de Tue Mar 8 13:54:42 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 8 Mar 2022 19:54:42 +0100 Subject: Requirements for display PDF in a browser on Windows? Message-ID: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> Hi all, the subject says it all, of course in regard of LC. Is the web-plugin of Acrobat reader still neccessary? Or do current Windows Browser display PDF files out of the box? Thanks for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From Bernd.Niggemann at uni-wh.de Tue Mar 8 14:21:28 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Tue, 8 Mar 2022 19:21:28 +0000 Subject: moveStack is not triggering Message-ID: Hi Bob, try this in the card script of a new stack on moveStack beep end moveStack That beeps when I move the stack. I think the debugger does not fire when it is invoked in a moveStack handler as you test for in your bug report https://quality.livecode.com/show_bug.cgi?id=23607 Kind regards Bernd From jacque at hyperactivesw.com Tue Mar 8 14:28:51 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 8 Mar 2022 13:28:51 -0600 Subject: Speed up a slow loop In-Reply-To: <72e726a6-6829-d08a-4ff9-375bcd691205@tweedly.net> References: <629699A1-1E0D-41C2-941E-FD2D23F9D806@optusnet.com.au> <72e726a6-6829-d08a-4ff9-375bcd691205@tweedly.net> Message-ID: <6d3cdeba-a414-597c-da6c-b62d7e370aaa@hyperactivesw.com> On 3/8/22 10:30 AM, Alex Tweedly via use-livecode wrote: > I guess I'm not convinced about VM space thrashing being the problem, certainly not due to the > wordlist. It's 2.5 Mb - i.e. 0.02% of the real RAM in a Pixel 5. There may be something else in > the app making the total VM space very large - but the wordlist wouldn't do it on its own. I'm not sure either. A few days ago I did some tests trying to track the total amount of RAM that was used by looking at the memory stats in the developer options. I started the game, did some quick word lookups, quit and removed from memory, then checked usage. It isn't very specific but while my app was running the Pixel 6 had a maximum usage of 368MB after three tests, and the Pixel 5 maxed at 255MB. This isn't near the top of the list, other apps use more. On the Pixel 5 today, with only background apps running, I'm using 55% of RAM which leaves 3.5GB free. The Pixel 6 is using 70% with 2.4GB free. The OS on the 6 is bigger and I have more background processes running there. In trying to reduce the memory footprint I wanted to see how much RAM my script locals were storing. The easiest way was to get the value of all of them, write them consecutively to a file, and let Finder tell me the size. I found that Alex's brilliant script was holding 5MB of data that I didn't need, so I emptied out the variables that were only used to calculate the board and kept the single one I needed for lookups. That file was 3K. I need to test more today. Last night I thought I was all set, got a great board and quickly found 125 words. Everything was snappy and worked great. Then suddenly the app froze solid, nothing responded, and I had to quit to the launcher. Which was a shame because it was a really good board. That was before I wiped out the extra 5MB of unnecessary variable data, and there may be more I can do trim it down. But you'd think 2-3GB of free RAM could accomodate it. If I can't figure it out soon, I'll give it to all of you to see if you can. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Mar 8 14:31:45 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 8 Mar 2022 13:31:45 -0600 Subject: Speed up a slow loop In-Reply-To: <629699A1-1E0D-41C2-941E-FD2D23F9D806@optusnet.com.au> References: <629699A1-1E0D-41C2-941E-FD2D23F9D806@optusnet.com.au> Message-ID: <41426cb3-cca4-0a96-f111-5f658977db1f@hyperactivesw.com> On 3/8/22 1:27 AM, Neville Smythe via use-livecode wrote: > Jacque seems to have found a satisfactory solution to her problem with the help of the excellent suggestions we have seen here. Since there seems to have been a lot of interest, I thought I would take the opportunity to report on an alternative method I had been exploring with Jacque via email. And it was appreciated. Neville and I had an off-list conversation where he really put some effort into solving the problem. In the long run I decided it would be better to keep everything in LCS if possible since the timings were fixed, but his help was one more example of how great our community is. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Tue Mar 8 14:33:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 8 Mar 2022 19:33:22 +0000 Subject: moveStack is not triggering In-Reply-To: References: Message-ID: <20864397-3043-4EA0-859A-426DC43C475A@iotecdigital.com> I'll be damned. Yes it does. Breakpoints do not work for some reason. Probably because the mouse is still down when dragging. Bob S > On Mar 8, 2022, at 11:21 , Niggemann, Bernd via use-livecode wrote: > > Hi Bob, > > try this in the card script of a new stack > > on moveStack > beep > end moveStack > > That beeps when I move the stack. > > I think the debugger does not fire when it is invoked in a moveStack handler as you test for in your bug report > https://quality.livecode.com/show_bug.cgi?id=23607 > > Kind regards > Bernd > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 8 15:08:16 2022 From: klaus at major-k.de (Klaus major-k) Date: Tue, 8 Mar 2022 21:08:16 +0100 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> Message-ID: <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> Hi, > Am 08.03.2022 um 19:54 schrieb Klaus major-k via use-livecode : > > Hi all, > > the subject says it all, of course in regard of LC. > > Is the web-plugin of Acrobat reader still neccessary? > Or do current Windows Browser display PDF files out of the box? and/or more important, what web engine is the browser widget using on Windows? > Thanks for any hint! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From cubist at aol.com Tue Mar 8 16:22:49 2022 From: cubist at aol.com (Quentin Long) Date: Tue, 8 Mar 2022 21:22:49 +0000 (UTC) Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <198512979.10246.1646774569864@mail.yahoo.com> sez Alex Tweedly:> The caveat - a user guess which isn't in the word list found by the > boardwalk can be either "not a word" or "a word, but not present on the  > board", and you don't know which. Does it *matter* whether a genuine word isn't on the board? If the board has no "L" in it, any word with an "L" won't be on the board, right? "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [ http://www.atarmslength.net ]! If you like "At Arm's Length", support it at [ http://www.patreon.com/DarkwingDude ]. From neville.smythe at optusnet.com.au Tue Mar 8 17:37:01 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 9 Mar 2022 09:37:01 +1100 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <3319C8F0-855B-4CDE-8096-33CA69C763FF@optusnet.com.au> > On 9 Mar 2022, at 4:00 am,Alex Tweedly wrote: > > Oh, well, if you've got the fast boardwalk code in there anyway, that > opens up another possibility (with one caveat). > > The boardwalk will find all valid words on the board. So that list of > words can be used as the "dictionary" for the user's guesses - and now > you have a "dictionary" of only a few hundred words, rather than than > the many thousands of either the original or the filtered dictionaries. > Really only a few hundred potential words? My back-of-a-very-small-envelope guesstimate was about 2000. I’ll be interested to see how many there are, because my envelope isn’t big enough to work it out, and the walking algorithm which I am really impressed can be so fast. But anyway checking even a few hundred potential words (the vast majority of which would be non-words so the worst case) is going to be slower than checking a much smaller number of mostly valid user candidates. Both can one done in idle time so not a problem I guess. Neville From tom at makeshyft.com Tue Mar 8 17:55:14 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 8 Mar 2022 17:55:14 -0500 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> Message-ID: I have definitely opened PDF in the browser in the past .... and it opened the default "chrome html 5" pdf reader. everything seems to have worked. And I don't see why it would no longer work now. you can google "browser test" from within the browser and it will tell you some info about the chromium based browser. Some of it may shock you. Cheers On Tue, Mar 8, 2022 at 3:08 PM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > > Am 08.03.2022 um 19:54 schrieb Klaus major-k via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi all, > > > > the subject says it all, of course in regard of LC. > > > > Is the web-plugin of Acrobat reader still neccessary? > > Or do current Windows Browser display PDF files out of the box? > > and/or more important, what web engine is the browser widget using on > Windows? > > > Thanks for any hint! > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 jacque at hyperactivesw.com Tue Mar 8 18:19:33 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 8 Mar 2022 17:19:33 -0600 Subject: Speed up a slow loop In-Reply-To: <198512979.10246.1646774569864@mail.yahoo.com> References: <198512979.10246.1646774569864@mail.yahoo.com> Message-ID: On 3/8/22 3:22 PM, Quentin Long via use-livecode wrote: > Does it*matter* whether a genuine word isn't on the board? If the board has no "L" in it, any word with an "L" won't be on the board, right? Right, but what happens is that your eye tricks you and you skip a tile inadvertently or use the same one twice. In Boggle, words are only valid if the tiles touch consecutively, and you can only use a particular tile once per word. So it's easy to use the same "e" twice, or to skip a tile to get to an "e". Don't believe everything you (think) you see. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From neville.smythe at optusnet.com.au Tue Mar 8 18:56:03 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 9 Mar 2022 10:56:03 +1100 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: > On 9 Mar 2022, at 4:00 am, Alex Tweedly wrote: > > I guess I'm not convinced about VM space thrashing being the problem, > certainly not due to the wordlist. It's 2.5 Mb - i.e. 0.02% of the real > RAM in a Pixel 5. There may be something else in the app making the > total VM space very large - but the wordlist wouldn't do it on its own. I have to agree … although the relevant RAM size is the amount allocated to the app, not the total RAM. The OS presumably takes up most of the RAM by itself. But of course just a single copy of the list in memory is not a problem or Jacque wouldn’t be able to do the filtering. Turning the list into an array will add indexing overhead very similar to what using a database would do (I suspect extremely similar in fact!) but I would have thought we are still only talking 10MB at most. Possibly more, the faster-than-light magic that happens with arrays must be trading off memory for cpu time somehow The symptoms definitely sound to me like VM thrashing, and reducing the list to around 20K words evidently removes the issue, which suggests multiple copies of the array are being created somewhere in (Jacque’s original ) search algorithm. > > >> An alternative is to use an sqlite database, always an option which should be considered when handling large data. This completely removes the issue of having the wordlist in memory, and at the same time provides an extremely fast search engine, so was worth exploring as a solution to both problems. Storing the words in a db single table with an index on initial letter and word length, or as lots of tables, one for each initial and length (!), both return a result for a search for a word in a small fraction of a millisecond, so definitely this would be a viable solution which would handle all letter distributions. > Sounds cool. I'd like to see an example of how this would be created and > used (I'm very much a SQL novice). I can’t claim to be an expert myself (see below) but it’s not hard and the LC tutorial together with online sqlite cheat sheets make it pretty straightforward. The hardest bit is getting into the db mindset which a bit different from procedural coding. The LC library makes it very easy to use sqlite in stacks. Creating the db from the data is easy, it only needs some thought on what tables and columns are needed - just like designing a DataGrid in LC. Making simple queries of the db is plain language-like. For example to find all words matching a crossword pattern - - T - - - - containing N you execute a query such as SELECT FROM words WHERE (length=7) AND (word LIKE ‘__T____’) AND (word LIKE ‘%N%’); [ wildcard underscore _ matches a single character, % matches an arbitrary string … sound familiar? LIKE is used for comparing strings] This outputs the 89 answers in a few milliseconds [most of which look to me like real words. But LETTERN ?? WITCHEN ?? SOWPODS really is ridiculous] Making more complex queries is where things get arcane. >> There is however a downside: both methods produce a db file size of 7.1 MB for the SOWPODS wordlist, which rather bloats the app footprint, even when you discount the text file version of the wordlist which no longer needs to be stored. > You could do the opposite. Store the wordlist (700Kb compressed), and > decompress/populate into the SQLite database on initial run. But unfortunately populating the database is very slow, taking minutes. [Note to myself: hey wait a minute, me, a database with only 275K rows is not that big in sqlite terms. Why is it taking so long? Because I am using a dumb repeat loop inserting one word at a time, akin to adding one word at a time to a field and then updating the UI. There is a better way. Physician, heal thyself!] >> But now, speaking of databases, I have a question. I have an update to my nsScriptDatabase stack which I want to upload to the Sample Stacks. Because it really should be compiled to a standalone, I really need to upload a pair of stacks, a launch stack and one to hold data which can one modified by the user. But it would seem a sample stack must be a single item. What to do? > > Yep -this is a big drawback of the Sample Stacks system. > > Maybe you could make a single app, which contains the two desired stacks > as custom props. Ah thank you, and a very interesting approach which I would never have thought of. Prompted me to think of another way: include the data stack as a substack when used in the IDE, but on openstack when not in the development environment clone the data stack to a writeable directory. That should work. Neville From cubist at aol.com Tue Mar 8 21:32:35 2022 From: cubist at aol.com (Quentin Long) Date: Wed, 9 Mar 2022 02:32:35 +0000 (UTC) Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <1979109667.66389.1646793155017@mail.yahoo.com> It occurs to me that any word which is valid in Boggle must consist of an uninterrupted run of letters which are *right next to each other* on the board. Hence, any digraph which *doesn't* consist of a pair of neighboring letters, *cannot* occur in any valid word. Since the "filter out all words with LettersNotOnTheBoard" idea worked, it may be that an analogous "filter out" operation can speed things up more. When setting up a new board... -- Construct a list of all 576 ( = 26x26 ) digraphs—"aa,ab,ac, … zx,zy,zz". Or, more likely, construct that list ahead of time, and store the list in a stack property.-- Remove all digraphs which contain at least one letter that's not on the board.-- Make a list of all pairs of neighboring letters on the board. Since you don't know which direction an arbitrary digraph is running in, you'll want to include ZA as well as AZ.-- Remove all the digraphs present on the board from the ListOfAllDigraphs.-- Replace all the "," in the ListOfAllDigraphs with "|". (i.e., replace commas with pipes) -- Put "[" & ListOfAllAbsentDigraphs & "]" into RegexPattern.-- Filter WordList without RegexPattern.-- ???-- Profit. Hmmm... since this starts out with a complete list of all 576 digraphs, there's no need to do a separate regex filter on individual letters; filtering out the full list of unused digraphs should encompass filtering out unused letters. Hence, just one regex filter should do the job. I think. On a 4x4 Boggle board, there are 72 neighboring pairs, hence a maximum of 144 valid digraphs; on a 5x5 board, there are 110 neighing pairs, hence a max of 220 digraphs. Hopefully, this won't add too much overhead to board setup. "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [ http://www.atarmslength.net ]! If you like "At Arm's Length", support it at [ http://www.patreon.com/DarkwingDude ]. From klaus at major-k.de Wed Mar 9 05:45:41 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 9 Mar 2022 11:45:41 +0100 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> Message-ID: <7428D239-8A6C-4E4D-A6F0-FEE31C029082@major-k.de> Hi Tom, > Am 08.03.2022 um 23:55 schrieb Tom Glod via use-livecode : > > I have definitely opened PDF in the browser in the past .... and it opened > the default "chrome html 5" pdf reader. > everything seems to have worked. > And I don't see why it would no longer work now. thank you for your answers, which leaves some question however. Is "Chrome" the web engine that LC is unsing in the "browser widget" on Windows? Or do you create that browser with "revbrowseropen..."? > you can google "browser test" from within the browser and it will tell you > some info about the chromium based browser. > Some of it may shock you. Ha, I highly doubt that! :-D > Cheers > > On Tue, Mar 8, 2022 at 3:08 PM Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi, >> >>> Am 08.03.2022 um 19:54 schrieb Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> Hi all, >>> >>> the subject says it all, of course in regard of LC. >>> >>> Is the web-plugin of Acrobat reader still neccessary? >>> Or do current Windows Browser display PDF files out of the box? >> >> and/or more important, what web engine is the browser widget using on >> Windows? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Wed Mar 9 10:57:47 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 9 Mar 2022 15:57:47 +0000 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <368A6AE5-BE0F-4565-AA48-2485451FD0C4@iotecdigital.com> Then why isn't there a method to query an array? That was precicely why I wrote the routines to convert an array to a database. Bob S > On Mar 8, 2022, at 15:56 , Neville Smythe via use-livecode wrote: > > Turning the list into an array will add indexing overhead very similar to what using a database would do (I suspect extremely similar in fact!) From bobsneidar at iotecdigital.com Wed Mar 9 11:44:25 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 9 Mar 2022 16:44:25 +0000 Subject: Speed up a slow loop In-Reply-To: <368A6AE5-BE0F-4565-AA48-2485451FD0C4@iotecdigital.com> References: <368A6AE5-BE0F-4565-AA48-2485451FD0C4@iotecdigital.com> Message-ID: <293904F0-BFB3-4FF0-BE1A-F96D2F67CA51@iotecdigital.com> Hmmm... I think I misread you to say that arrays are indexed. If that were the case, then the devs *should* be able to create functions for querying them and getting a subset of keys. I think then that this is NOT the case. Bob S > On Mar 9, 2022, at 07:57 , Bob Sneidar via use-livecode wrote: > > Then why isn't there a method to query an array? That was precicely why I wrote the routines to convert an array to a database. > > Bob S > > >> On Mar 8, 2022, at 15:56 , Neville Smythe via use-livecode wrote: >> >> Turning the list into an array will add indexing overhead very similar to what using a database would do (I suspect extremely similar in fact!) From MikeKerner at roadrunner.com Wed Mar 9 11:59:25 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 9 Mar 2022 11:59:25 -0500 Subject: Monterey + Dark Mode + LC 9.6.6 In-Reply-To: References: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> Message-ID: throw up an issue and/or a pull request in the repo. On Mon, Mar 7, 2022 at 8:10 PM Marty Knapp via use-livecode < use-livecode at lists.runrev.com> wrote: > I think I found the issue. I use Levure to build my apps (great framework > - you should try it!) and it uses a a customized plist file. I compared > that to a plist file from a normally complied app and notice it has has > parameter that is needed: > > NSRequiresAquaSystemAppearance > > > --- > Marty Knapp > > > On Mar 7, 2022, at 4:05 PM, Marty Knapp > wrote: > > > > I just had a customer send a screen shot of my app (built with LC 9.6.6) > running on Mac Monterey in dark mode and buttons and fields are all messed > up. I don’t use dark mode and so tried it on my Mac and see the issue. I > then tried an app built with a previous version of LC (9.6.1 I believe) and > it looks fine. Anybody else seeing this? > > --- > > Marty Knapp > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Wed Mar 9 13:01:18 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 09 Mar 2022 12:01:18 -0600 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: <7428D239-8A6C-4E4D-A6F0-FEE31C029082@major-k.de> References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> <7428D239-8A6C-4E4D-A6F0-FEE31C029082@major-k.de> Message-ID: <17f6fd7a5b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I believe it's the Chromium engine. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 9, 2022 4:47:26 AM Klaus major-k via use-livecode wrote: >> Is "Chrome" the web engine that LC is unsing in the "browser widget" on >> Windows? From klaus at major-k.de Wed Mar 9 13:10:20 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 9 Mar 2022 19:10:20 +0100 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: <17f6fd7a5b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> <7428D239-8A6C-4E4D-A6F0-FEE31C029082@major-k.de> <17f6fd7a5b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <7A90CD40-01A5-4CD2-BF7E-9071B8743456@major-k.de> Hi Jaques, > Am 09.03.2022 um 19:01 schrieb J. Landman Gay via use-livecode : > > I believe it's the Chromium engine. thanks! But can it open PDFs out of the box? > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On March 9, 2022 4:47:26 AM Klaus major-k via use-livecode wrote: > >>> Is "Chrome" the web engine that LC is unsing in the "browser widget" on Windows? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From tom at makeshyft.com Wed Mar 9 13:40:12 2022 From: tom at makeshyft.com (Tom Glod) Date: Wed, 9 Mar 2022 13:40:12 -0500 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: <7A90CD40-01A5-4CD2-BF7E-9071B8743456@major-k.de> References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> <7428D239-8A6C-4E4D-A6F0-FEE31C029082@major-k.de> <17f6fd7a5b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <7A90CD40-01A5-4CD2-BF7E-9071B8743456@major-k.de> Message-ID: i use the widget. Yes it can. On Wed, Mar 9, 2022 at 1:10 PM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Jaques, > > > Am 09.03.2022 um 19:01 schrieb J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com>: > > > > I believe it's the Chromium engine. > > thanks! > > But can it open PDFs out of the box? > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > On March 9, 2022 4:47:26 AM Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > >>> Is "Chrome" the web engine that LC is unsing in the "browser widget" > on Windows? > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 klaus at major-k.de Wed Mar 9 13:44:52 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 9 Mar 2022 19:44:52 +0100 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> <7428D239-8A6C-4E4D-A6F0-FEE31C029082@major-k.de> <17f6fd7a5b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <7A90CD40-01A5-4CD2-BF7E-9071B8743456@major-k.de> Message-ID: <1AF746ED-67DC-4F2B-B3C3-EC757FC765EE@major-k.de> Hi Tom, > Am 09.03.2022 um 19:40 schrieb Tom Glod via use-livecode : > > i use the widget. Yes it can. this is very good news, thank you! :-) And what Windows version is neccessary for this to work? All versions >= 7? > On Wed, Mar 9, 2022 at 1:10 PM Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Jaques, >> >>> Am 09.03.2022 um 19:01 schrieb J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> I believe it's the Chromium engine. >> thanks! >> But can it open PDFs out of the box? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From tom at makeshyft.com Wed Mar 9 14:20:35 2022 From: tom at makeshyft.com (Tom Glod) Date: Wed, 9 Mar 2022 14:20:35 -0500 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: <1AF746ED-67DC-4F2B-B3C3-EC757FC765EE@major-k.de> References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> <7428D239-8A6C-4E4D-A6F0-FEE31C029082@major-k.de> <17f6fd7a5b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <7A90CD40-01A5-4CD2-BF7E-9071B8743456@major-k.de> <1AF746ED-67DC-4F2B-B3C3-EC757FC765EE@major-k.de> Message-ID: (y) That I do not know unfortunately. Can't test I don't have windows 7 anywhere. On Wed, Mar 9, 2022 at 1:45 PM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Tom, > > > Am 09.03.2022 um 19:40 schrieb Tom Glod via use-livecode < > use-livecode at lists.runrev.com>: > > > > i use the widget. Yes it can. > > this is very good news, thank you! :-) > > And what Windows version is neccessary for this to work? > All versions >= 7? > > > On Wed, Mar 9, 2022 at 1:10 PM Klaus major-k via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi Jaques, > >> > >>> Am 09.03.2022 um 19:01 schrieb J. Landman Gay via use-livecode < > >> use-livecode at lists.runrev.com>: > >>> > >>> I believe it's the Chromium engine. > >> thanks! > >> But can it open PDFs out of the box? > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 klaus at major-k.de Wed Mar 9 14:30:47 2022 From: klaus at major-k.de (Klaus major-k) Date: Wed, 9 Mar 2022 20:30:47 +0100 Subject: Requirements for display PDF in a browser on Windows? In-Reply-To: References: <7023BC43-3A6F-41E9-8ACD-04C14BE7366F@major-k.de> <37DEACE2-A2F0-4188-9256-3CED2193E9E3@major-k.de> <7428D239-8A6C-4E4D-A6F0-FEE31C029082@major-k.de> <17f6fd7a5b0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <7A90CD40-01A5-4CD2-BF7E-9071B8743456@major-k.de> <1AF746ED-67DC-4F2B-B3C3-EC757FC765EE@major-k.de> Message-ID: <39AB3F3F-B4FD-4240-9237-473E0B1989EC@major-k.de> Hi Tom, > Am 09.03.2022 um 20:20 schrieb Tom Glod via use-livecode : > > (y) That I do not know unfortunately. Can't test I don't have windows 7 > anywhere. OK, so I guess it will work on Win 10, if that is what you are running, right? Someone else knows if this works on Win >= 7? Don't be shy. :-) > On Wed, Mar 9, 2022 at 1:45 PM Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Tom, >> >>> Am 09.03.2022 um 19:40 schrieb Tom Glod via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> i use the widget. Yes it can. >> >> this is very good news, thank you! :-) >> >> And what Windows version is neccessary for this to work? >> All versions >= 7? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Wed Mar 9 14:33:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 9 Mar 2022 13:33:04 -0600 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <0c3e93ef-1e40-3e00-fc77-26163f4d2c7b@hyperactivesw.com> On 3/8/22 5:56 PM, Neville Smythe via use-livecode wrote: > reducing the list to around 20K words evidently removes the issue, which suggests multiple copies of the array are being created somewhere in (Jacque’s original ) search algorithm. Yeah, I was keeping two copies without realizing it. Once I cleared unused variables I was able to reduce the amount of RAM being used by about 5MB. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Mar 9 14:37:40 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 9 Mar 2022 13:37:40 -0600 Subject: Speed up a slow loop In-Reply-To: <1979109667.66389.1646793155017@mail.yahoo.com> References: <1979109667.66389.1646793155017@mail.yahoo.com> Message-ID: I'm not sure I followed all that, but did you account for diagonals? It sounds like you'd need to calculate all the possible polygons in a 5x5 grid, starting from anywhere, and sometimes wrapping around itself. I don't have the math skills to do that but when I get this thing presentable you could take a look and see what you think. On 3/8/22 8:32 PM, Quentin Long via use-livecode wrote: > It occurs to me that any word which is valid in Boggle must consist of an uninterrupted run of letters which are *right next to each other* on the board. Hence, any digraph which *doesn't* consist of a pair of neighboring letters, *cannot* occur in any valid word. > Since the "filter out all words with LettersNotOnTheBoard" idea worked, it may be that an analogous "filter out" operation can speed things up more. When setting up a new board... > -- Construct a list of all 576 ( = 26x26 ) digraphs—"aa,ab,ac, … zx,zy,zz". Or, more likely, construct that list ahead of time, and store the list in a stack property.-- Remove all digraphs which contain at least one letter that's not on the board.-- Make a list of all pairs of neighboring letters on the board. Since you don't know which direction an arbitrary digraph is running in, you'll want to include ZA as well as AZ.-- Remove all the digraphs present on the board from the ListOfAllDigraphs.-- Replace all the "," in the ListOfAllDigraphs with "|". (i.e., replace commas with pipes) > -- Put "[" & ListOfAllAbsentDigraphs & "]" into RegexPattern.-- Filter WordList without RegexPattern.-- ???-- Profit. > Hmmm... since this starts out with a complete list of all 576 digraphs, there's no need to do a separate regex filter on individual letters; filtering out the full list of unused digraphs should encompass filtering out unused letters. Hence, just one regex filter should do the job. I think. > On a 4x4 Boggle board, there are 72 neighboring pairs, hence a maximum of 144 valid digraphs; on a 5x5 board, there are 110 neighing pairs, hence a max of 220 digraphs. Hopefully, this won't add too much overhead to board setup. > > "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [ http://www.atarmslength.net ]! If you like "At Arm's Length", support it at [ http://www.patreon.com/DarkwingDude ]. > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed Mar 9 15:53:20 2022 From: curry at pair.com (Curry Kenworthy) Date: Wed, 9 Mar 2022 15:53:20 -0500 Subject: [ANN] SpreadLib ordering is back online Message-ID: <6c14f775-9b69-bd9b-59e7-69e3a70880a7@pair.com> The SpreadLib order page is back up: http://livecodeaddons.com/spreadlib.html http://livecodeaddons.com/buy-spreadlib This is NOT a new version! Just the "store restored" after going offline when eSellerate died. (I've marked the price down a bit, though, at SendOwl.) We have a MUCH newer private release made for 2020, but COVID nuked my productivity those last two years, so it never got the License keys for a public release. That's a priority this year, therefore.... Here's the SpreadLib for 2022 Plan: - Public release during Summer. - New backend integration for more frequent updates. - Newer Mac improvements. - Multi-sheet handling. - Updated and expanded Documentation. - Many more improvements done before 2020. (Meanwhile, WordLib is first in line again, with a minor version coming up around Easter for supercharged MS Word Comments.) Happy coding! More news soon.... Best wishes, Curry Kenworthy SpreadLib: Excel files to LC fields in 1 script line! "Excel-lent spreadsheet import and export for LiveCode" http://livecodeaddons.com/spreadlib.html Innovative Christian LiveCode Training and Consulting "Better Methods, Better Results" http://livecodeconsulting.com/ From dochawk at gmail.com Wed Mar 9 16:42:40 2022 From: dochawk at gmail.com (doc hawk) Date: Wed, 9 Mar 2022 13:42:40 -0800 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: <17f65593ef0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <747637380.327916.1646643513392@mail.yahoo.com> <17f65593ef0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <076089BB-E4C3-4B13-A9EB-CD6BFFCF3EE8@gmail.com> jacqui juggled, > > Funny you should bring this up, as I was playing with it last night. Turns out that multiple filters do slow down on the Pixel so I was looking for the One True Regex. Something like ^[manl]\{2,5\}$ which matches all strings of length 2 to 5 composed exclusively of the letters m, a, n, & l ? [this assumes one word per line, of course] From alex at tweedly.net Wed Mar 9 18:09:14 2022 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 9 Mar 2022 23:09:14 +0000 Subject: Speed up a slow loop In-Reply-To: References: <1979109667.66389.1646793155017@mail.yahoo.com> Message-ID: <81210ea8-97a4-ceae-7ce4-a79a0a9b2ccc@tweedly.net> Yes, Quentin's allowing for diagonals (that's how the number of digraphs on a 5x5 board gets up to 110). And it's probably a good idea, allowing an even finer filter - if you aren't doing the boardwalk method.. If you do use the boardwalk to generate the exact list of words, you get no benefit from single-letter or digraph filtering, because the tree-walk is constrained to only those valid "next char"s, and so implicitly avoids using those non-present digraphs. Oh - so many different ways to do things, all interesting, and all good for some variation of the problem. btw - that reminds me - back when I used to play real, physical Boggle with friends, we often played variants of the word rules; either  - you can reuse the same tile later in a word (e.g. Y  L  A X  E  T would allow "lately" as a word. OR - you can double-up on a tile (e.g. M I L would allow 'mill') (more important if you're British than if you're American :-) Alex. From alex at tweedly.net Wed Mar 9 19:23:12 2022 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 10 Mar 2022 00:23:12 +0000 Subject: Speed up a slow loop In-Reply-To: <81210ea8-97a4-ceae-7ce4-a79a0a9b2ccc@tweedly.net> References: <1979109667.66389.1646793155017@mail.yahoo.com> <81210ea8-97a4-ceae-7ce4-a79a0a9b2ccc@tweedly.net> Message-ID: <5f498a74-48d8-95c6-ab4b-e408edab57c5@tweedly.net> Hmmm - I have to correct myself :-) It's not 110; there are 144 digraphs on a 5x5 board  - nine centre tiles each have 8 neighbours  - four corner tiles each have 3 neighbours  - twelve remaining edge tiles each have 5 neighbours giving 72 + 12 + 60 - so 144 pairs (already including both directions for each adjacency). Now if you allow edge-to-edge wrapping (i.e. from the top right tile you can move to the right - and find yourself back on the top left, etc.) then there are simply 25 * 8 pairs - but then you've moved a long way from genuine Boggle rules :-) Alex. On 09/03/2022 23:09, Alex Tweedly via use-livecode wrote: > Yes, Quentin's allowing for diagonals (that's how the number of > digraphs on a 5x5 board gets up to 110). > > And it's probably a good idea, allowing an even finer filter - if you > aren't doing the boardwalk method.. > > If you do use the boardwalk to generate the exact list of words, you > get no benefit from single-letter or digraph filtering, because the > tree-walk is constrained to only those valid "next char"s, and so > implicitly avoids using those non-present digraphs. > > Oh - so many different ways to do things, all interesting, and all > good for some variation of the problem. > > > btw - that reminds me - back when I used to play real, physical Boggle > with friends, we often played variants of the word rules; either > >  - you can reuse the same tile later in a word (e.g. > Y  L  A > X  E  T > > would allow "lately" as a word. > > OR > > - you can double-up on a tile (e.g. M I L would allow 'mill') > (more important if you're British than if you're American :-) > > 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 neville.smythe at optusnet.com.au Wed Mar 9 19:51:36 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Thu, 10 Mar 2022 11:51:36 +1100 Subject: Speed up a slow loop In-Reply-To: References: Message-ID: <06D772D7-DBE3-4B6F-8E66-A5BAE4FF1D56@optusnet.com.au> I just ran a test to try to find out how much RAM is used when you create a large array; the result is rather surprising. BTW Bob: I did not imply that an array is implemented in LC as a database. Merely that to work its magic it must be indexing keys somehow. I had suggested a 2.5 MB list of 275K words might expand to no worse than 10MB when split into an array. Not quite, as it turns out. I wrote a very simple stack which just has two buttons. The first reads SOWPODS.txt into a global variable gWordlist. Don’t try putting that variable into the msg box — LC becomes unusable with the Beachball of Hope spinning for a few seconds whenever you do anything. Aha, it is the LC engine that is having problems with large data (in this case displayed in a field of course, not in the variable itself) The second button puts gWordlist into aa, and splits aa by CR as a set. I then turned the stack into a standalone and looked at the memory used in the Mac Console . When the stack launches, real memory used is 29.8 MB (in a second run 45 MB) That’s the basic LC engine + 18 MB of Mac OS stuff which is shared with all apps, the stack itself would be tiny . after button 1, reading in the 2.5 MB file, the real memory used is 46 MB (second run 56 MB) So 16 MB to store a 2.5 MB file in a variable (in the second run 11 MB, I guess 5 MB of engine code was garbage collected) . After button 2, the real memory used is 121 MB (second run 131 MB) So splitting a 2.5 MB file into an array with 275 K keys required 75 MB (this figure was duplicated in the second run) We are now talking pretty large amounts of memory that the LC engine has to move around, for example probably making copies in its procedure stacks (that's stack in the coding sense). I'm not surprised that LC might be getting indigestion with variables of this size on a small device. I seem to remember running into RAM allocations for an iOS app measured in the low hundreds of MB. Neviille From jacque at hyperactivesw.com Wed Mar 9 22:57:44 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 09 Mar 2022 21:57:44 -0600 Subject: Speed up a slow loop In-Reply-To: <06D772D7-DBE3-4B6F-8E66-A5BAE4FF1D56@optusnet.com.au> References: <06D772D7-DBE3-4B6F-8E66-A5BAE4FF1D56@optusnet.com.au> Message-ID: <17f71f9b2c0.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> My memory checks on the Pixel 5 had a maximum app memory use of about 375 MB of RAM. I think that was before I removed the duplicate copy of the dictionary data though, which if so would bring the total down. That said, other apps had more. Chrome browser used over 300 MB, Play Store 411 MB, my mail client 211MB. Those do okay on the phone. And I still don't understand why my cheap tablet with half the RAM handled anything I threw at it, including SOWPODS, without blinking. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 9, 2022 6:53:46 PM Neville Smythe via use-livecode wrote: > After button 2, the real memory used is 121 MB (second run 131 MB) > So splitting a 2.5 MB file into an array with 275 K keys required 75 MB > (this figure was duplicated in the second run) From benr_mc at cogapp.com Thu Mar 10 06:34:19 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 11:34:19 +0000 Subject: revOpenDatabase over SSH tunnel? Message-ID: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. Has anyone done this in LiveCode? Is it trivial/possible/impossible? TIA, Ben From benr_mc at cogapp.com Thu Mar 10 09:48:48 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 14:48:48 +0000 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle Message-ID: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> I'm trying to develop an app which will run headless on Linux (actually in a docker container). I've done this before... so long ago that I can't remember... with an earlier version of this app. Normally I run this on Mac and Windows. So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the Standalone builder, built the app, transported the folder with the binary "MyApp", "Externals" folder, and "revsecurity.so" to the Docker container, and tried to launch it: > # ./MyApp -ui > ./MyApp: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory Can anyone point me in the right direction here? Does this mean that I need to do something different in how I build the app, or install something different in the environment? (The container is running Ubuntu 18.04.2 LTS). TIA, Ben From stephen at barncard.com Thu Mar 10 09:56:43 2022 From: stephen at barncard.com (Stephen Barncard) Date: Thu, 10 Mar 2022 06:56:43 -0800 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle In-Reply-To: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> References: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> Message-ID: Hi Ben, Did you make the standalone on mac or win and zip the file before uploading ? -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Thu, Mar 10, 2022 at 6:50 AM Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > > I'm trying to develop an app which will run headless on Linux (actually in > a > docker container). I've done this before... so long ago that I can't > remember... with an earlier version of this app. Normally I run this on > Mac > and Windows. > > So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the > Standalone builder, built the app, transported the folder with the binary > "MyApp", "Externals" folder, and "revsecurity.so" to the Docker container, > and > tried to launch it: > > > # ./MyApp -ui > > ./MyApp: error while loading shared libraries: libexpat.so.1: cannot > open shared object file: No such file or directory > > Can anyone point me in the right direction here? Does this mean that I > need to > do something different in how I build the app, or install something > different > in the environment? > > (The container is running Ubuntu 18.04.2 LTS). > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode 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 at cogapp.com Thu Mar 10 10:14:12 2022 From: benr at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 15:14:12 +0000 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle In-Reply-To: References: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> Message-ID: <8ccb10a5-2bd8-d92d-8e86-31aa5832b85a@cogapp.com> Hi Stephen, Built on Mac. I didn't zip it because I've got a folder shared with the Docker container, so I just dragged it in. But sensing something behind your question... I just zipped up the original build folder, dragged that in, and then in the shell unzipped it, invoked that binary... same result. Thanks anyway! Ben On 10/03/2022 14:56, Stephen Barncard via use-livecode wrote: > Hi Ben, > Did you make the standalone on mac or win and zip the file before > uploading ? > -- > Stephen Barncard - Sebastopol Ca. USA - > mixstream.org > > > On Thu, Mar 10, 2022 at 6:50 AM Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> I'm trying to develop an app which will run headless on Linux (actually in >> a >> docker container). I've done this before... so long ago that I can't >> remember... with an earlier version of this app. Normally I run this on >> Mac >> and Windows. >> >> So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the >> Standalone builder, built the app, transported the folder with the binary >> "MyApp", "Externals" folder, and "revsecurity.so" to the Docker container, >> and >> tried to launch it: >> >>> # ./MyApp -ui >>> ./MyApp: error while loading shared libraries: libexpat.so.1: cannot >> open shared object file: No such file or directory >> >> Can anyone point me in the right direction here? Does this mean that I >> need to >> do something different in how I build the app, or install something >> different >> in the environment? >> >> (The container is running Ubuntu 18.04.2 LTS). >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 benr_mc at cogapp.com Thu Mar 10 10:29:26 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 15:29:26 +0000 Subject: What version of Ubuntu does LiveCode (9.6.6) support? Message-ID: <2d4d3ca7-12cb-7784-dc2a-95b913706188@cogapp.com> Just read the release notes (for 9.6.6, but also for 10.0.0.dp2) which say > LiveCode supports the following Linux distributions, on 32-bit or 64-bit Intel/AMD or compatible processors: > Ubuntu 14.04 and 16.04 > Fedora 23 & 24 > Debian 7 (Wheezy) and 8 (Jessie) [server] CentOS 7 [server] Is that correct - i.e. Ubuntu 18 is NOT supported? Might this be my problem with "libexpat.so.1"? (I question it only because the 9.6.6 version of the User Guide says > The minimal requirements for LiveCode to run on Linux are: > 32-bit installation, or a 64-bit linux distribution that has a 32-bit compatibility layer > 2.4.x or later kernel which is clearly out of date.) Is anyone running LiveCode, or at least standalones built from LiveCode, on Ubuntu 18? Or is that my problem? TIA, Ben From matthias_livecode_150811 at m-r-d.de Thu Mar 10 10:31:49 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 10 Mar 2022 16:31:49 +0100 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> Message-ID: <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> Hi, I've used SSH tunneling in the past to connect SQLPro Studio with remote MySQL databases, but never with LC. And although i was pretty sure that it will work with LC, i just did a quick test with LC to be 100 percent sure. Yes it's possible. I have created a small quick start guide for Windows some weeks ago, but unfortunately that is in German. I could translate that to English and add some additional information for macOS. But it would take 1 or 2 days. If you could wait i could send you that guide. Regards, Matthias > Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode : > > > I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. > > Has anyone done this in LiveCode? Is it trivial/possible/impossible? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode 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 merakosp at gmail.com Thu Mar 10 10:32:05 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 10 Mar 2022 17:32:05 +0200 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle In-Reply-To: <8ccb10a5-2bd8-d92d-8e86-31aa5832b85a@cogapp.com> References: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> <8ccb10a5-2bd8-d92d-8e86-31aa5832b85a@cogapp.com> Message-ID: Hello all, I think libexpat.so.1 is a system lib required by LC apps, so it might be worth installing it. I have not done any research, but I would expect that it would be enough to do something like: sudo apt-get install expat or sudo apt-get install libexpat Kind regards, Panos On Thu, 10 Mar 2022 at 17:15, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Stephen, > > Built on Mac. I didn't zip it because I've got a folder shared with the > Docker > container, so I just dragged it in. > > But sensing something behind your question... I just zipped up the > original > build folder, dragged that in, and then in the shell unzipped it, invoked > that > binary... same result. > > Thanks anyway! > > Ben > > On 10/03/2022 14:56, Stephen Barncard via use-livecode wrote: > > Hi Ben, > > Did you make the standalone on mac or win and zip the file before > > uploading ? > > -- > > Stephen Barncard - Sebastopol Ca. USA - > > mixstream.org > > > > > > On Thu, Mar 10, 2022 at 6:50 AM Ben Rubinstein via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> > >> I'm trying to develop an app which will run headless on Linux (actually > in > >> a > >> docker container). I've done this before... so long ago that I can't > >> remember... with an earlier version of this app. Normally I run this on > >> Mac > >> and Windows. > >> > >> So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the > >> Standalone builder, built the app, transported the folder with the > binary > >> "MyApp", "Externals" folder, and "revsecurity.so" to the Docker > container, > >> and > >> tried to launch it: > >> > >>> # ./MyApp -ui > >>> ./MyApp: error while loading shared libraries: libexpat.so.1: cannot > >> open shared object file: No such file or directory > >> > >> Can anyone point me in the right direction here? Does this mean that I > >> need to > >> do something different in how I build the app, or install something > >> different > >> in the environment? > >> > >> (The container is running Ubuntu 18.04.2 LTS). > >> > >> TIA, > >> > >> Ben > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode 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 gbojsza at gmail.com Thu Mar 10 10:45:50 2022 From: gbojsza at gmail.com (Glen Bojsza) Date: Thu, 10 Mar 2022 10:45:50 -0500 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> Message-ID: I would be interested in this guide if possible. Will you be willing to share? regards, Glen On Thu, Mar 10, 2022 at 10:32 AM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > > I've used SSH tunneling in the past to connect SQLPro Studio with remote > MySQL databases, but never with LC. > > And although i was pretty sure that it will work with LC, i just did a > quick test with LC to be 100 percent sure. > > Yes it's possible. > > I have created a small quick start guide for Windows some weeks ago, but > unfortunately that is in German. > > I could translate that to English and add some additional information for > macOS. But it would take 1 or 2 days. > > If you could wait i could send you that guide. > > Regards, > > Matthias > > > Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com>: > > > > > > I need to access a (MySQL) database on a remote service - which has to > be done over an SSH tunnel. > > > > Has anyone done this in LiveCode? Is it trivial/possible/impossible? > > > > TIA, > > > > Ben > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 benr_mc at cogapp.com Thu Mar 10 10:50:15 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 15:50:15 +0000 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle In-Reply-To: References: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> <8ccb10a5-2bd8-d92d-8e86-31aa5832b85a@cogapp.com> Message-ID: <29ec2655-e4f8-620e-bc1b-84d701c334dd@cogapp.com> Thanks Panos. I'd just got part of the way there from your comment on this https://quality.livecode.com/show_bug.cgi?id=23163 report. (I'm a complete Linux noob.) So now I know about 'ldd' I was able to execute: > # ldd CB304 > linux-vdso.so.1 (0x00007ffed1b36000) > libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e7fa49000) > libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2e7f82a000) > libexpat.so.1 => not found > libfreetype.so.6 => not found > libfontconfig.so.1 => not found > libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2e7f4a1000) > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e7f103000) > libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2e7eeeb000) > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e7eafa000) > /lib64/ld-linux-x86-64.so.2 (0x00007f2e7fc4d000) I was able to use apt to install "expat" and "fontconfig", but it couldn't find "freetype". Nonetheless I thought I'd try my app again, hoping at least that the error have moved on. But alas: > # ./CB304 -ui > ./CB304: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory Also - can you confirm whether LC standalones (built from 9.6.6) should be able to run on Ubuntu 18? Or is Ubuntu 16 the limit? Many thanks, Ben On 10/03/2022 15:32, panagiotis m via use-livecode wrote: > Hello all, > > I think libexpat.so.1 is a system lib required by LC apps, so it might be > worth installing it. > > I have not done any research, but I would expect that it would be enough to > do something like: > > sudo apt-get install expat > > or > > sudo apt-get install libexpat > > Kind regards, > Panos > > > On Thu, 10 Mar 2022 at 17:15, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Stephen, >> >> Built on Mac. I didn't zip it because I've got a folder shared with the >> Docker >> container, so I just dragged it in. >> >> But sensing something behind your question... I just zipped up the >> original >> build folder, dragged that in, and then in the shell unzipped it, invoked >> that >> binary... same result. >> >> Thanks anyway! >> >> Ben >> >> On 10/03/2022 14:56, Stephen Barncard via use-livecode wrote: >>> Hi Ben, >>> Did you make the standalone on mac or win and zip the file before >>> uploading ? >>> -- >>> Stephen Barncard - Sebastopol Ca. USA - >>> mixstream.org >>> >>> >>> On Thu, Mar 10, 2022 at 6:50 AM Ben Rubinstein via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> >>>> I'm trying to develop an app which will run headless on Linux (actually >> in >>>> a >>>> docker container). I've done this before... so long ago that I can't >>>> remember... with an earlier version of this app. Normally I run this on >>>> Mac >>>> and Windows. >>>> >>>> So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the >>>> Standalone builder, built the app, transported the folder with the >> binary >>>> "MyApp", "Externals" folder, and "revsecurity.so" to the Docker >> container, >>>> and >>>> tried to launch it: >>>> >>>>> # ./MyApp -ui >>>>> ./MyApp: error while loading shared libraries: libexpat.so.1: cannot >>>> open shared object file: No such file or directory >>>> >>>> Can anyone point me in the right direction here? Does this mean that I >>>> need to >>>> do something different in how I build the app, or install something >>>> different >>>> in the environment? >>>> >>>> (The container is running Ubuntu 18.04.2 LTS). >>>> >>>> TIA, >>>> >>>> Ben >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 matthias_livecode_150811 at m-r-d.de Thu Mar 10 10:51:23 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 10 Mar 2022 16:51:23 +0100 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> Message-ID: Yes of course. I will post a link to it here in the list. If time allows i will also create a Livecode Lesson. Matthias > Am 10.03.2022 um 16:45 schrieb Glen Bojsza via use-livecode : > > I would be interested in this guide if possible. > > Will you be willing to share? > > regards, > > Glen > > On Thu, Mar 10, 2022 at 10:32 AM matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi, >> >> I've used SSH tunneling in the past to connect SQLPro Studio with remote >> MySQL databases, but never with LC. >> >> And although i was pretty sure that it will work with LC, i just did a >> quick test with LC to be 100 percent sure. >> >> Yes it's possible. >> >> I have created a small quick start guide for Windows some weeks ago, but >> unfortunately that is in German. >> >> I could translate that to English and add some additional information for >> macOS. But it would take 1 or 2 days. >> >> If you could wait i could send you that guide. >> >> Regards, >> >> Matthias >> >>> Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> >>> I need to access a (MySQL) database on a remote service - which has to >> be done over an SSH tunnel. >>> >>> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >>> >>> TIA, >>> >>> Ben >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 benr_mc at cogapp.com Thu Mar 10 10:52:58 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 15:52:58 +0000 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> Message-ID: <2cc56d26-c2ae-d0c1-fd83-5e56955cda92@cogapp.com> Hi Matthias, That is (a) good news and (b) very kind! Or if it's easier, I have a German colleague - less technical skills, but excellent language skills - if you sent me the guide in German, I could ask her to have a go at translating it. (I'd still be very interested in the macOS additional info though.) Many thanks, Ben On 10/03/2022 15:31, matthias rebbe via use-livecode wrote: > Hi, > > I've used SSH tunneling in the past to connect SQLPro Studio with remote MySQL databases, but never with LC. > > And although i was pretty sure that it will work with LC, i just did a quick test with LC to be 100 percent sure. > > Yes it's possible. > > I have created a small quick start guide for Windows some weeks ago, but unfortunately that is in German. > > I could translate that to English and add some additional information for macOS. But it would take 1 or 2 days. > > If you could wait i could send you that guide. > > Regards, > > Matthias > >> Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode : >> >> >> I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. >> >> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 merakosp at gmail.com Thu Mar 10 11:03:51 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 10 Mar 2022 18:03:51 +0200 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle In-Reply-To: <29ec2655-e4f8-620e-bc1b-84d701c334dd@cogapp.com> References: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> <8ccb10a5-2bd8-d92d-8e86-31aa5832b85a@cogapp.com> <29ec2655-e4f8-620e-bc1b-84d701c334dd@cogapp.com> Message-ID: Hello Ben, For libfreetype, I think you should do: sudo apt-get install libfreetype6-dev Also, yes, the "official" supported Ubuntu distros for LC are 14 and 16 LTS. However, LC standalones built from 9.6.6 should run on Ubuntu 18 and above as well. Tomorrow I'll try to set up an Ubuntu 18 VM and give it a try. Kind regards, Panos -- On Thu, 10 Mar 2022 at 17:51, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > Thanks Panos. > > I'd just got part of the way there from your comment on this > https://quality.livecode.com/show_bug.cgi?id=23163 report. > > (I'm a complete Linux noob.) > > So now I know about 'ldd' I was able to execute: > > # ldd CB304 > > linux-vdso.so.1 (0x00007ffed1b36000) > > libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e7fa49000) > > libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 > (0x00007f2e7f82a000) > > libexpat.so.1 => not found > > libfreetype.so.6 => not found > > libfontconfig.so.1 => not found > > libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > (0x00007f2e7f4a1000) > > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e7f103000) > > libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 > (0x00007f2e7eeeb000) > > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e7eafa000) > > /lib64/ld-linux-x86-64.so.2 (0x00007f2e7fc4d000) > > I was able to use apt to install "expat" and "fontconfig", but it couldn't > find "freetype". > > Nonetheless I thought I'd try my app again, hoping at least that the error > have moved on. But alas: > > > # ./CB304 -ui > > ./CB304: error while loading shared libraries: libexpat.so.1: cannot > open shared object file: No such file or directory > > > Also - can you confirm whether LC standalones (built from 9.6.6) should be > able to run on Ubuntu 18? Or is Ubuntu 16 the limit? > > Many thanks, > > Ben > > On 10/03/2022 15:32, panagiotis m via use-livecode wrote: > > Hello all, > > > > I think libexpat.so.1 is a system lib required by LC apps, so it might be > > worth installing it. > > > > I have not done any research, but I would expect that it would be enough > to > > do something like: > > > > sudo apt-get install expat > > > > or > > > > sudo apt-get install libexpat > > > > Kind regards, > > Panos > > > > > > On Thu, 10 Mar 2022 at 17:15, Ben Rubinstein via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Hi Stephen, > >> > >> Built on Mac. I didn't zip it because I've got a folder shared with the > >> Docker > >> container, so I just dragged it in. > >> > >> But sensing something behind your question... I just zipped up the > >> original > >> build folder, dragged that in, and then in the shell unzipped it, > invoked > >> that > >> binary... same result. > >> > >> Thanks anyway! > >> > >> Ben > >> > >> On 10/03/2022 14:56, Stephen Barncard via use-livecode wrote: > >>> Hi Ben, > >>> Did you make the standalone on mac or win and zip the file before > >>> uploading ? > >>> -- > >>> Stephen Barncard - Sebastopol Ca. USA - > >>> mixstream.org > >>> > >>> > >>> On Thu, Mar 10, 2022 at 6:50 AM Ben Rubinstein via use-livecode < > >>> use-livecode at lists.runrev.com> wrote: > >>> > >>>> > >>>> I'm trying to develop an app which will run headless on Linux > (actually > >> in > >>>> a > >>>> docker container). I've done this before... so long ago that I can't > >>>> remember... with an earlier version of this app. Normally I run this > on > >>>> Mac > >>>> and Windows. > >>>> > >>>> So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the > >>>> Standalone builder, built the app, transported the folder with the > >> binary > >>>> "MyApp", "Externals" folder, and "revsecurity.so" to the Docker > >> container, > >>>> and > >>>> tried to launch it: > >>>> > >>>>> # ./MyApp -ui > >>>>> ./MyApp: error while loading shared libraries: libexpat.so.1: cannot > >>>> open shared object file: No such file or directory > >>>> > >>>> Can anyone point me in the right direction here? Does this mean that I > >>>> need to > >>>> do something different in how I build the app, or install something > >>>> different > >>>> in the environment? > >>>> > >>>> (The container is running Ubuntu 18.04.2 LTS). > >>>> > >>>> TIA, > >>>> > >>>> Ben > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 10 11:07:30 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 10 Mar 2022 17:07:30 +0100 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <2cc56d26-c2ae-d0c1-fd83-5e56955cda92@cogapp.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> <2cc56d26-c2ae-d0c1-fd83-5e56955cda92@cogapp.com> Message-ID: <29AD1FDE-85B0-4FC0-A3B6-D01F61B58C09@m-r-d.de> Ben, i've sent it to you. If there are questions regarding macOS, just ask. I will post a link to the updated english version here in the list. Regards, Matthias > Am 10.03.2022 um 16:52 schrieb Ben Rubinstein via use-livecode : > > Hi Matthias, > > That is (a) good news and (b) very kind! > > Or if it's easier, I have a German colleague - less technical skills, but excellent language skills - if you sent me the guide in German, I could ask her to have a go at translating it. (I'd still be very interested in the macOS additional info though.) > > Many thanks, > > Ben > > > On 10/03/2022 15:31, matthias rebbe via use-livecode wrote: >> Hi, >> I've used SSH tunneling in the past to connect SQLPro Studio with remote MySQL databases, but never with LC. >> And although i was pretty sure that it will work with LC, i just did a quick test with LC to be 100 percent sure. >> Yes it's possible. >> I have created a small quick start guide for Windows some weeks ago, but unfortunately that is in German. >> I could translate that to English and add some additional information for macOS. But it would take 1 or 2 days. >> If you could wait i could send you that guide. >> Regards, >> Matthias >>> Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode : >>> >>> >>> I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. >>> >>> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >>> >>> TIA, >>> >>> Ben >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 merakosp at gmail.com Thu Mar 10 11:10:05 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 10 Mar 2022 18:10:05 +0200 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle In-Reply-To: References: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> <8ccb10a5-2bd8-d92d-8e86-31aa5832b85a@cogapp.com> <29ec2655-e4f8-620e-bc1b-84d701c334dd@cogapp.com> Message-ID: Might be worth trying this as well: sudo apt-get install libexpat1 Cheers, Panos On Thu, 10 Mar 2022 at 18:03, panagiotis m wrote: > Hello Ben, > > For libfreetype, I think you should do: > > sudo apt-get install libfreetype6-dev > > Also, yes, the "official" supported Ubuntu distros for LC are 14 and 16 > LTS. However, LC standalones built from 9.6.6 should run on Ubuntu 18 and > above as well. > > Tomorrow I'll try to set up an Ubuntu 18 VM and give it a try. > > Kind regards, > Panos > -- > > On Thu, 10 Mar 2022 at 17:51, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Thanks Panos. >> >> I'd just got part of the way there from your comment on this >> https://quality.livecode.com/show_bug.cgi?id=23163 report. >> >> (I'm a complete Linux noob.) >> >> So now I know about 'ldd' I was able to execute: >> > # ldd CB304 >> > linux-vdso.so.1 (0x00007ffed1b36000) >> > libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 >> (0x00007f2e7fa49000) >> > libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 >> (0x00007f2e7f82a000) >> > libexpat.so.1 => not found >> > libfreetype.so.6 => not found >> > libfontconfig.so.1 => not found >> > libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 >> (0x00007f2e7f4a1000) >> > libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e7f103000) >> > libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 >> (0x00007f2e7eeeb000) >> > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e7eafa000) >> > /lib64/ld-linux-x86-64.so.2 (0x00007f2e7fc4d000) >> >> I was able to use apt to install "expat" and "fontconfig", but it >> couldn't >> find "freetype". >> >> Nonetheless I thought I'd try my app again, hoping at least that the >> error >> have moved on. But alas: >> >> > # ./CB304 -ui >> > ./CB304: error while loading shared libraries: libexpat.so.1: cannot >> open shared object file: No such file or directory >> >> >> Also - can you confirm whether LC standalones (built from 9.6.6) should >> be >> able to run on Ubuntu 18? Or is Ubuntu 16 the limit? >> >> Many thanks, >> >> Ben >> >> On 10/03/2022 15:32, panagiotis m via use-livecode wrote: >> > Hello all, >> > >> > I think libexpat.so.1 is a system lib required by LC apps, so it might >> be >> > worth installing it. >> > >> > I have not done any research, but I would expect that it would be >> enough to >> > do something like: >> > >> > sudo apt-get install expat >> > >> > or >> > >> > sudo apt-get install libexpat >> > >> > Kind regards, >> > Panos >> > >> > >> > On Thu, 10 Mar 2022 at 17:15, Ben Rubinstein via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > >> >> Hi Stephen, >> >> >> >> Built on Mac. I didn't zip it because I've got a folder shared with the >> >> Docker >> >> container, so I just dragged it in. >> >> >> >> But sensing something behind your question... I just zipped up the >> >> original >> >> build folder, dragged that in, and then in the shell unzipped it, >> invoked >> >> that >> >> binary... same result. >> >> >> >> Thanks anyway! >> >> >> >> Ben >> >> >> >> On 10/03/2022 14:56, Stephen Barncard via use-livecode wrote: >> >>> Hi Ben, >> >>> Did you make the standalone on mac or win and zip the file before >> >>> uploading ? >> >>> -- >> >>> Stephen Barncard - Sebastopol Ca. USA - >> >>> mixstream.org >> >>> >> >>> >> >>> On Thu, Mar 10, 2022 at 6:50 AM Ben Rubinstein via use-livecode < >> >>> use-livecode at lists.runrev.com> wrote: >> >>> >> >>>> >> >>>> I'm trying to develop an app which will run headless on Linux >> (actually >> >> in >> >>>> a >> >>>> docker container). I've done this before... so long ago that I can't >> >>>> remember... with an earlier version of this app. Normally I run this >> on >> >>>> Mac >> >>>> and Windows. >> >>>> >> >>>> So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the >> >>>> Standalone builder, built the app, transported the folder with the >> >> binary >> >>>> "MyApp", "Externals" folder, and "revsecurity.so" to the Docker >> >> container, >> >>>> and >> >>>> tried to launch it: >> >>>> >> >>>>> # ./MyApp -ui >> >>>>> ./MyApp: error while loading shared libraries: libexpat.so.1: cannot >> >>>> open shared object file: No such file or directory >> >>>> >> >>>> Can anyone point me in the right direction here? Does this mean that >> I >> >>>> need to >> >>>> do something different in how I build the app, or install something >> >>>> different >> >>>> in the environment? >> >>>> >> >>>> (The container is running Ubuntu 18.04.2 LTS). >> >>>> >> >>>> TIA, >> >>>> >> >>>> Ben >> >>>> >> >>>> _______________________________________________ >> >>>> use-livecode mailing list >> >>>> use-livecode 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mar 10 11:14:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 16:14:20 +0000 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> Message-ID: <72FAEBC5-AAE9-4191-8F0A-56E600533133@iotecdigital.com> I am not sure what SSH tunneling is, but I did a proof of concept where I had an LC client app communicating with an LC server app that encrypted the data at the client end before sending it, and the server end decrypted it. I just used non-secured sockets. I used AES encryption with a key only I know, and a method for corrupting the data in a way only the server can "cleanse". I suppose some may advise me on what is wrong with this method, and I welcome the input, but it worked for me. No unencrypted data went "over the wire". The reason I developed this method is because I do not want to deal with expiring security certificates or secure websites to handle the data transfer. The method works out of the box. Bob S > On Mar 10, 2022, at 03:34 , Ben Rubinstein via use-livecode wrote: > > > I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. > > Has anyone done this in LiveCode? Is it trivial/possible/impossible? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Mar 10 11:26:21 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 16:26:21 +0000 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle In-Reply-To: References: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> <8ccb10a5-2bd8-d92d-8e86-31aa5832b85a@cogapp.com> <29ec2655-e4f8-620e-bc1b-84d701c334dd@cogapp.com> Message-ID: <64d05fa1-90b9-9e6b-86fc-72d7ed3bd147@cogapp.com> Thanks Panos, that gave me the clues I needed to get the other ones as well. Can confirm the app is now running on Ubuntu 18.04.2 LTS. Thanks again, Ben On 10/03/2022 16:03, panagiotis m via use-livecode wrote: > Hello Ben, > > For libfreetype, I think you should do: > > sudo apt-get install libfreetype6-dev > > Also, yes, the "official" supported Ubuntu distros for LC are 14 and 16 > LTS. However, LC standalones built from 9.6.6 should run on Ubuntu 18 and > above as well. > > Tomorrow I'll try to set up an Ubuntu 18 VM and give it a try. > > Kind regards, > Panos > -- > > On Thu, 10 Mar 2022 at 17:51, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Thanks Panos. >> >> I'd just got part of the way there from your comment on this >> https://quality.livecode.com/show_bug.cgi?id=23163 report. >> >> (I'm a complete Linux noob.) >> >> So now I know about 'ldd' I was able to execute: >>> # ldd CB304 >>> linux-vdso.so.1 (0x00007ffed1b36000) >>> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2e7fa49000) >>> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 >> (0x00007f2e7f82a000) >>> libexpat.so.1 => not found >>> libfreetype.so.6 => not found >>> libfontconfig.so.1 => not found >>> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 >> (0x00007f2e7f4a1000) >>> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2e7f103000) >>> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 >> (0x00007f2e7eeeb000) >>> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2e7eafa000) >>> /lib64/ld-linux-x86-64.so.2 (0x00007f2e7fc4d000) >> >> I was able to use apt to install "expat" and "fontconfig", but it couldn't >> find "freetype". >> >> Nonetheless I thought I'd try my app again, hoping at least that the error >> have moved on. But alas: >> >>> # ./CB304 -ui >>> ./CB304: error while loading shared libraries: libexpat.so.1: cannot >> open shared object file: No such file or directory >> >> >> Also - can you confirm whether LC standalones (built from 9.6.6) should be >> able to run on Ubuntu 18? Or is Ubuntu 16 the limit? >> >> Many thanks, >> >> Ben >> >> On 10/03/2022 15:32, panagiotis m via use-livecode wrote: >>> Hello all, >>> >>> I think libexpat.so.1 is a system lib required by LC apps, so it might be >>> worth installing it. >>> >>> I have not done any research, but I would expect that it would be enough >> to >>> do something like: >>> >>> sudo apt-get install expat >>> >>> or >>> >>> sudo apt-get install libexpat >>> >>> Kind regards, >>> Panos >>> >>> >>> On Thu, 10 Mar 2022 at 17:15, Ben Rubinstein via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Stephen, >>>> >>>> Built on Mac. I didn't zip it because I've got a folder shared with the >>>> Docker >>>> container, so I just dragged it in. >>>> >>>> But sensing something behind your question... I just zipped up the >>>> original >>>> build folder, dragged that in, and then in the shell unzipped it, >> invoked >>>> that >>>> binary... same result. >>>> >>>> Thanks anyway! >>>> >>>> Ben >>>> >>>> On 10/03/2022 14:56, Stephen Barncard via use-livecode wrote: >>>>> Hi Ben, >>>>> Did you make the standalone on mac or win and zip the file before >>>>> uploading ? >>>>> -- >>>>> Stephen Barncard - Sebastopol Ca. USA - >>>>> mixstream.org >>>>> >>>>> >>>>> On Thu, Mar 10, 2022 at 6:50 AM Ben Rubinstein via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>> >>>>>> I'm trying to develop an app which will run headless on Linux >> (actually >>>> in >>>>>> a >>>>>> docker container). I've done this before... so long ago that I can't >>>>>> remember... with an earlier version of this app. Normally I run this >> on >>>>>> Mac >>>>>> and Windows. >>>>>> >>>>>> So (under LiveCode 9.6.6) I simply checked the Linux 64 option in the >>>>>> Standalone builder, built the app, transported the folder with the >>>> binary >>>>>> "MyApp", "Externals" folder, and "revsecurity.so" to the Docker >>>> container, >>>>>> and >>>>>> tried to launch it: >>>>>> >>>>>>> # ./MyApp -ui >>>>>>> ./MyApp: error while loading shared libraries: libexpat.so.1: cannot >>>>>> open shared object file: No such file or directory >>>>>> >>>>>> Can anyone point me in the right direction here? Does this mean that I >>>>>> need to >>>>>> do something different in how I build the app, or install something >>>>>> different >>>>>> in the environment? >>>>>> >>>>>> (The container is running Ubuntu 18.04.2 LTS). >>>>>> >>>>>> TIA, >>>>>> >>>>>> Ben >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 benr_mc at cogapp.com Thu Mar 10 11:26:21 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 16:26:21 +0000 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <29AD1FDE-85B0-4FC0-A3B6-D01F61B58C09@m-r-d.de> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> <2cc56d26-c2ae-d0c1-fd83-5e56955cda92@cogapp.com> <29AD1FDE-85B0-4FC0-A3B6-D01F61B58C09@m-r-d.de> Message-ID: <3d7f3636-d495-4791-1f3e-5a5d4810899f@cogapp.com> Great, thank you. Ben On 10/03/2022 16:07, matthias rebbe via use-livecode wrote: > Ben, > i've sent it to you. > > If there are questions regarding macOS, just ask. I will post a link to the updated english version here in the list. > > Regards, > Matthias > > >> Am 10.03.2022 um 16:52 schrieb Ben Rubinstein via use-livecode : >> >> Hi Matthias, >> >> That is (a) good news and (b) very kind! >> >> Or if it's easier, I have a German colleague - less technical skills, but excellent language skills - if you sent me the guide in German, I could ask her to have a go at translating it. (I'd still be very interested in the macOS additional info though.) >> >> Many thanks, >> >> Ben >> >> >> On 10/03/2022 15:31, matthias rebbe via use-livecode wrote: >>> Hi, >>> I've used SSH tunneling in the past to connect SQLPro Studio with remote MySQL databases, but never with LC. >>> And although i was pretty sure that it will work with LC, i just did a quick test with LC to be 100 percent sure. >>> Yes it's possible. >>> I have created a small quick start guide for Windows some weeks ago, but unfortunately that is in German. >>> I could translate that to English and add some additional information for macOS. But it would take 1 or 2 days. >>> If you could wait i could send you that guide. >>> Regards, >>> Matthias >>>> Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode : >>>> >>>> >>>> I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. >>>> >>>> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >>>> >>>> TIA, >>>> >>>> Ben >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 paul at researchware.com Thu Mar 10 11:34:57 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 10 Mar 2022 11:34:57 -0500 Subject: LC and SqlLite Question Message-ID: <2508c4f3-6cdf-3544-23bf-3064dcfa5440@researchware.com> Can a sqlLite database file on disk be accessed by more than 1 LiveCode app at the same time? A server hosted mySql database can be accessed by any number of client LC apps at the same time as the serve side mySql does the record locking necessary, but what about a sqlLite file? Obviously, I could code up some test apps and try it, but I am hoping some one on the list definitively know for sure. From jacque at hyperactivesw.com Thu Mar 10 11:37:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 10 Mar 2022 10:37:04 -0600 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <2cc56d26-c2ae-d0c1-fd83-5e56955cda92@cogapp.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> <2cc56d26-c2ae-d0c1-fd83-5e56955cda92@cogapp.com> Message-ID: <17f74b0e380.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Google translate is pretty capable and can do whole web pages. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 10, 2022 9:54:47 AM Ben Rubinstein via use-livecode wrote: > Hi Matthias, > > That is (a) good news and (b) very kind! > > Or if it's easier, I have a German colleague - less technical skills, but > excellent language skills - if you sent me the guide in German, I could ask > her to have a go at translating it. (I'd still be very interested in the macOS > additional info though.) > > Many thanks, > > Ben > > > On 10/03/2022 15:31, matthias rebbe via use-livecode wrote: >> Hi, >> >> I've used SSH tunneling in the past to connect SQLPro Studio with remote >> MySQL databases, but never with LC. >> >> And although i was pretty sure that it will work with LC, i just did a >> quick test with LC to be 100 percent sure. >> >> Yes it's possible. >> >> I have created a small quick start guide for Windows some weeks ago, but >> unfortunately that is in German. >> >> I could translate that to English and add some additional information for >> macOS. But it would take 1 or 2 days. >> >> If you could wait i could send you that guide. >> >> Regards, >> >> Matthias >> >>> Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode >>> : >>> >>> >>> I need to access a (MySQL) database on a remote service - which has to be >>> done over an SSH tunnel. >>> >>> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >>> >>> TIA, >>> >>> Ben >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 matthias_livecode_150811 at m-r-d.de Thu Mar 10 11:42:03 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 10 Mar 2022 17:42:03 +0100 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <72FAEBC5-AAE9-4191-8F0A-56E600533133@iotecdigital.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <72FAEBC5-AAE9-4191-8F0A-56E600533133@iotecdigital.com> Message-ID: There is nothing wrong with your method. But there might be situations where you need direct access to the MySQL database, e.g. you are using 3rd party software (in my case SQLPro Studio) or libraries. I have a customer who is using a special Delphi library that only supports direct connections. Okay that is not the case when using Livecode. But there might be servers that do not run Livecode Server. In this case you cannot use your solution. In this case SSH tunneling would be a safe solution. > Am 10.03.2022 um 17:14 schrieb Bob Sneidar via use-livecode : > > I am not sure what SSH tunneling is, but I did a proof of concept where I had an LC client app communicating with an LC server app that encrypted the data at the client end before sending it, and the server end decrypted it. I just used non-secured sockets. I used AES encryption with a key only I know, and a method for corrupting the data in a way only the server can "cleanse". > > I suppose some may advise me on what is wrong with this method, and I welcome the input, but it worked for me. No unencrypted data went "over the wire". > > The reason I developed this method is because I do not want to deal with expiring security certificates or secure websites to handle the data transfer. The method works out of the box. > > Bob S > > >> On Mar 10, 2022, at 03:34 , Ben Rubinstein via use-livecode wrote: >> >> >> I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. >> >> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Thu Mar 10 11:54:52 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 10 Mar 2022 11:54:52 -0500 Subject: LC and SqlLite Question In-Reply-To: <2508c4f3-6cdf-3544-23bf-3064dcfa5440@researchware.com> References: <2508c4f3-6cdf-3544-23bf-3064dcfa5440@researchware.com> Message-ID: For writing its only ever 1, but it can have multiple readers if you use the write ahead log ..... PRAGMA journal_mode=WAL; run that when creating database.never tested, but based on documentation. never tested, but based on documentation. let me know if you test it successfully. On Thu, Mar 10, 2022 at 11:38 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Can a sqlLite database file on disk be accessed by more than 1 LiveCode > app at the same time? > > A server hosted mySql database can be accessed by any number of client > LC apps at the same time as the serve side mySql does the record locking > necessary, but what about a sqlLite file? > > Obviously, I could code up some test apps and try it, but I am hoping > some one on the list definitively know for sure. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Mar 10 11:55:22 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 10 Mar 2022 11:55:22 -0500 Subject: LC and SqlLite Question In-Reply-To: References: <2508c4f3-6cdf-3544-23bf-3064dcfa5440@researchware.com> Message-ID: sorry about the double paste. :) On Thu, Mar 10, 2022 at 11:54 AM Tom Glod wrote: > For writing its only ever 1, but it can have multiple readers if you use > the write ahead log ..... > > PRAGMA journal_mode=WAL; > > run that when creating database.never tested, but based on documentation. never > tested, but based on documentation. > > let me know if you test it successfully. > > On Thu, Mar 10, 2022 at 11:38 AM Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Can a sqlLite database file on disk be accessed by more than 1 LiveCode >> app at the same time? >> >> A server hosted mySql database can be accessed by any number of client >> LC apps at the same time as the serve side mySql does the record locking >> necessary, but what about a sqlLite file? >> >> Obviously, I could code up some test apps and try it, but I am hoping >> some one on the list definitively know for sure. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Thu Mar 10 11:57:04 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 10 Mar 2022 11:57:04 -0500 Subject: LC and SqlLite Question In-Reply-To: References: <2508c4f3-6cdf-3544-23bf-3064dcfa5440@researchware.com> Message-ID: And finally. https://sqlite.org/wal.html On Thu, Mar 10, 2022 at 11:55 AM Tom Glod wrote: > sorry about the double paste. :) > > On Thu, Mar 10, 2022 at 11:54 AM Tom Glod wrote: > >> For writing its only ever 1, but it can have multiple readers if you use >> the write ahead log ..... >> >> PRAGMA journal_mode=WAL; >> >> run that when creating database.never tested, but based on documentation. never >> tested, but based on documentation. >> >> let me know if you test it successfully. >> >> On Thu, Mar 10, 2022 at 11:38 AM Paul Dupuis via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Can a sqlLite database file on disk be accessed by more than 1 LiveCode >>> app at the same time? >>> >>> A server hosted mySql database can be accessed by any number of client >>> LC apps at the same time as the serve side mySql does the record locking >>> necessary, but what about a sqlLite file? >>> >>> Obviously, I could code up some test apps and try it, but I am hoping >>> some one on the list definitively know for sure. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Mar 10 12:09:08 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 17:09:08 +0000 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <72FAEBC5-AAE9-4191-8F0A-56E600533133@iotecdigital.com> Message-ID: Yes, the server agent part resides on the same device that the SQL Server is on. The server agent communicates directly with the SQL server, and is responsible for making and storing connection specifics. The client agent can request a list of connections from the server agent when it connects to it. All that passes between the client and server are these requests for connections, the sql statements the server needs to execute, and the data the server retrieves. All back and forth are encrypted. It's really quite elegant if I do say so myself. :-) It really is just the framework for any client server solution. It can be used for a document storage and retrieval system too, or anything you want to communicate between two devices securely. Bob S > On Mar 10, 2022, at 08:42 , matthias rebbe via use-livecode wrote: > > There is nothing wrong with your method. But there might be situations where you need direct access to the MySQL database, e.g. you are using 3rd party software (in my case SQLPro Studio) or libraries. I have a customer who is using a special Delphi library that only supports direct connections. From bobsneidar at iotecdigital.com Thu Mar 10 12:11:12 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 17:11:12 +0000 Subject: LC and SqlLite Question In-Reply-To: <2508c4f3-6cdf-3544-23bf-3064dcfa5440@researchware.com> References: <2508c4f3-6cdf-3544-23bf-3064dcfa5440@researchware.com> Message-ID: As mentioned, only for reads, only one for write. But why not create a server agent that is responsible for handling multiple connections from clients, and the server agent can be the single connection to the sqLite database? Bob S > On Mar 10, 2022, at 08:34 , Paul Dupuis via use-livecode wrote: > > Can a sqlLite database file on disk be accessed by more than 1 LiveCode app at the same time? > > A server hosted mySql database can be accessed by any number of client LC apps at the same time as the serve side mySql does the record locking necessary, but what about a sqlLite file? > > Obviously, I could code up some test apps and try it, but I am hoping some one on the list definitively know for sure. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 10 12:13:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 17:13:00 +0000 Subject: [ANN] SpreadLib ordering is back online In-Reply-To: <6c14f775-9b69-bd9b-59e7-69e3a70880a7@pair.com> References: <6c14f775-9b69-bd9b-59e7-69e3a70880a7@pair.com> Message-ID: I'm really looking forward to this update Curry. I have a current need for parsing excel spreadsheets. Bob S > On Mar 9, 2022, at 12:53 , Curry Kenworthy via use-livecode wrote: > > > The SpreadLib order page is back up: > > http://livecodeaddons.com/spreadlib.html > http://livecodeaddons.com/buy-spreadlib > > This is NOT a new version! Just the "store restored" > after going offline when eSellerate died. > (I've marked the price down a bit, though, at SendOwl.) > > We have a MUCH newer private release made for 2020, > but COVID nuked my productivity those last two years, > so it never got the License keys for a public release. > > That's a priority this year, therefore.... > > Here's the SpreadLib for 2022 Plan: > > - Public release during Summer. > - New backend integration for more frequent updates. > - Newer Mac improvements. > - Multi-sheet handling. > - Updated and expanded Documentation. > - Many more improvements done before 2020. > > (Meanwhile, WordLib is first in line again, > with a minor version coming up around Easter > for supercharged MS Word Comments.) > > Happy coding! More news soon.... > > Best wishes, > > Curry Kenworthy > > SpreadLib: Excel files to LC fields in 1 script line! > "Excel-lent spreadsheet import and export for LiveCode" > http://livecodeaddons.com/spreadlib.html > > Innovative Christian LiveCode Training and Consulting > "Better Methods, Better Results" > 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 From benr_mc at cogapp.com Thu Mar 10 13:11:58 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 18:11:58 +0000 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <72FAEBC5-AAE9-4191-8F0A-56E600533133@iotecdigital.com> Message-ID: <9a7e181a-70a2-5138-e207-092656cf5f41@cogapp.com> Yes, my case is that the database is on a hosted platform which only supports access over SSH. My reading of your document, Matthias, is that we simply invoke SSH in a terminal, and then LiveCode/revOpenDatabase uses that tunnel automatically because the database host is at the same address. Can that be right? Or does this only work with LiveCode server? Ben On 10/03/2022 16:42, matthias rebbe via use-livecode wrote: > There is nothing wrong with your method. But there might be situations where you need direct access to the MySQL database, e.g. you are using 3rd party software (in my case SQLPro Studio) or libraries. I have a customer who is using a special Delphi library that only supports direct connections. > > Okay that is not the case when using Livecode. But there might be servers that do not run Livecode Server. In this case you cannot use your solution. > In this case SSH tunneling would be a safe solution. > > > >> Am 10.03.2022 um 17:14 schrieb Bob Sneidar via use-livecode : >> >> I am not sure what SSH tunneling is, but I did a proof of concept where I had an LC client app communicating with an LC server app that encrypted the data at the client end before sending it, and the server end decrypted it. I just used non-secured sockets. I used AES encryption with a key only I know, and a method for corrupting the data in a way only the server can "cleanse". >> >> I suppose some may advise me on what is wrong with this method, and I welcome the input, but it worked for me. No unencrypted data went "over the wire". >> >> The reason I developed this method is because I do not want to deal with expiring security certificates or secure websites to handle the data transfer. The method works out of the box. >> >> Bob S >> >> >>> On Mar 10, 2022, at 03:34 , Ben Rubinstein via use-livecode wrote: >>> >>> >>> I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. >>> >>> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >>> >>> TIA, >>> >>> Ben >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 richmondmathewson at gmail.com Thu Mar 10 13:16:25 2022 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 10 Mar 2022 20:16:25 +0200 Subject: What version of Ubuntu does LiveCode (9.6.6) support? In-Reply-To: <2d4d3ca7-12cb-7784-dc2a-95b913706188@cogapp.com> References: <2d4d3ca7-12cb-7784-dc2a-95b913706188@cogapp.com> Message-ID: <6e26ad26-46a1-3727-6c34-2b7f05b4922b@gmail.com> Here's a few observations: https://forums.livecode.com/viewtopic.php?f=20&t=36784 Best, Richmond. On 10.03.22 17:29, Ben Rubinstein via use-livecode wrote: > > Just read the release notes (for 9.6.6, but also for 10.0.0.dp2) which > say > >> LiveCode supports the following Linux distributions, on 32-bit or >> 64-bit Intel/AMD or compatible processors: >>     Ubuntu 14.04 and 16.04 >>     Fedora 23 & 24 >>     Debian 7 (Wheezy) and 8 (Jessie) [server] CentOS 7 [server] > > Is that correct - i.e. Ubuntu 18 is NOT supported? Might this be my > problem with "libexpat.so.1"? > > (I question it only because the 9.6.6 version of the User Guide says >> The minimal requirements for LiveCode to run on Linux are: >>  32-bit installation, or a 64-bit linux distribution that has a >> 32-bit compatibility layer >>  2.4.x or later kernel > which is clearly out of date.) > > Is anyone running LiveCode, or at least standalones built from > LiveCode, on Ubuntu 18? Or is that my problem? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Mar 10 13:18:02 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 18:18:02 +0000 Subject: What version of Ubuntu does LiveCode (9.6.6) support? In-Reply-To: <2d4d3ca7-12cb-7784-dc2a-95b913706188@cogapp.com> References: <2d4d3ca7-12cb-7784-dc2a-95b913706188@cogapp.com> Message-ID: To record an answer to my own question, for completeness: it appears that standalones built from LiveCode 9.6.6, at least, seems to work fine on Ubuntu 18.04.2 LTS, at least. You may need to install some additional libraries. Phew! Ben On 10/03/2022 15:29, Ben Rubinstein via use-livecode wrote: > > Just read the release notes (for 9.6.6, but also for 10.0.0.dp2) which say > >> LiveCode supports the following Linux distributions, on 32-bit or 64-bit >> Intel/AMD or compatible processors: >>     Ubuntu 14.04 and 16.04 >>     Fedora 23 & 24 >>     Debian 7 (Wheezy) and 8 (Jessie) [server] CentOS 7 [server] > > Is that correct - i.e. Ubuntu 18 is NOT supported? Might this be my problem > with "libexpat.so.1"? > > (I question it only because the 9.6.6 version of the User Guide says >> The minimal requirements for LiveCode to run on Linux are: >>  32-bit installation, or a 64-bit linux distribution that has a 32-bit >> compatibility layer >>  2.4.x or later kernel > which is clearly out of date.) > > Is anyone running LiveCode, or at least standalones built from LiveCode, on > Ubuntu 18? Or is that my problem? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 10 13:25:28 2022 From: curry at pair.com (Curry Kenworthy) Date: Thu, 10 Mar 2022 13:25:28 -0500 Subject: Hey Lurkers: Anyone still using LC 6.7? (Regulars too) Message-ID: <9a3bec49-4ffb-0078-27c7-4a3d60a1951c@pair.com> To plan addon development for the next few years, I would like to know if some people still need LC 6.7. If you're a Lurker, that's OK! If shy: offlist is fine. (Regulars welcome too, of course.) Currently I'm still supporting LC 6.7 too, but as LC 9 matures on bugs/stability and performance, hopefully there will come a time when I can make this decision. Supporting LC 6.7 and 9/10 is fine, in fact it's fun, but moving past 6.7 eventually would have some perks. So the question is how long people will still need it. Your input will help guide my plan! Thanks. Best wishes, Curry Kenworthy WordLib: Import MS Word and OpenOffice files in LiveCode! "Dominate documents with WordLib and LC" http://livecodeaddons.com/wordlib.html Innovative Christian LiveCode Training and Consulting "Better Methods, Better Results" http://livecodeconsulting.com/ From curry at pair.com Thu Mar 10 13:28:31 2022 From: curry at pair.com (Curry Kenworthy) Date: Thu, 10 Mar 2022 13:28:31 -0500 Subject: [ANN] SpreadLib ordering is back online In-Reply-To: References: Message-ID: <2d4d3d9f-cc88-8749-c9d1-b94967491cf4@pair.com> Bob: > I'm really looking forward to this update Curry. > I have a current need for parsing excel spreadsheets. Thanks, I'm excited about this one too! Best wishes, Curry Kenworthy SpreadLib: Excel files to LC fields in 1 script line! "Excel-lent spreadsheet import and export for LiveCode" http://livecodeaddons.com/spreadlib.html Innovative Christian LiveCode Training and Consulting "Better Methods, Better Results" http://livecodeconsulting.com/ From richmondmathewson at gmail.com Thu Mar 10 13:33:02 2022 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 10 Mar 2022 20:33:02 +0200 Subject: Hey Lurkers: Anyone still using LC 6.7? (Regulars too) In-Reply-To: <9a3bec49-4ffb-0078-27c7-4a3d60a1951c@pair.com> References: <9a3bec49-4ffb-0078-27c7-4a3d60a1951c@pair.com> Message-ID: <0c9c6e93-bfa4-5263-d0a7-a0b38ca72d81@gmail.com> What do you mean when you write "I'm still supporting LC 6.7"? On 10.03.22 20:25, Curry Kenworthy via use-livecode wrote: > > To plan addon development for the next few years, > I would like to know if some people still need LC 6.7. > > If you're a Lurker, that's OK! If shy: offlist is fine. > (Regulars welcome too, of course.) > > Currently I'm still supporting LC 6.7 too, but as LC 9 > matures on bugs/stability and performance, hopefully > there will come a time when I can make this decision. > > Supporting LC 6.7 and 9/10 is fine, in fact it's fun, > but moving past 6.7 eventually would have some perks. > So the question is how long people will still need it. > > Your input will help guide my plan! Thanks. > > Best wishes, > > Curry Kenworthy > > WordLib: Import MS Word and OpenOffice files in LiveCode! > "Dominate documents with WordLib and LC" > http://livecodeaddons.com/wordlib.html > > Innovative Christian LiveCode Training and Consulting > "Better Methods, Better Results" > 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 From bobsneidar at iotecdigital.com Thu Mar 10 13:50:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 18:50:33 +0000 Subject: Hey Lurkers: Anyone still using LC 6.7? (Regulars too) In-Reply-To: <0c9c6e93-bfa4-5263-d0a7-a0b38ca72d81@gmail.com> References: <9a3bec49-4ffb-0078-27c7-4a3d60a1951c@pair.com> <0c9c6e93-bfa4-5263-d0a7-a0b38ca72d81@gmail.com> Message-ID: I believe he means that utilities he creates will still function when used with 6.7, but wouldn't if he employs new features or syntax only supported in v9.x and up. Eventually he would consider ONLY supporting 9.x and up, and wants to get an idea of how many people would still need 6.7 support. Bob S > On Mar 10, 2022, at 10:33 , Richmond via use-livecode wrote: > > What do you mean when you write "I'm still supporting LC 6.7"? > > On 10.03.22 20:25, Curry Kenworthy via use-livecode wrote: >> >> To plan addon development for the next few years, >> I would like to know if some people still need LC 6.7. >> >> If you're a Lurker, that's OK! If shy: offlist is fine. >> (Regulars welcome too, of course.) >> >> Currently I'm still supporting LC 6.7 too, but as LC 9 >> matures on bugs/stability and performance, hopefully >> there will come a time when I can make this decision. >> >> Supporting LC 6.7 and 9/10 is fine, in fact it's fun, >> but moving past 6.7 eventually would have some perks. >> So the question is how long people will still need it. >> >> Your input will help guide my plan! Thanks. >> >> Best wishes, >> >> Curry Kenworthy From benr_mc at cogapp.com Thu Mar 10 13:52:34 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 10 Mar 2022 18:52:34 +0000 Subject: revOpenDatabase - ODBC - on Ubuntu - failing with empty error Message-ID: <509fdda6-19b1-e4de-91cf-d79bc44bc5aa@cogapp.com> Thanks to everyone who's responded to my woes over the last few days. I'm making progress, but have hit a new hurdle. I know have the LC-built app running in a Docker container on Ubuntu 18. It's set up with an ODBC connection to an Oracle database. I can test the connection on the command line with "isql", and it works fine. But when the app tries to open the database, revOpenDatabase returns empty. Normally it would return either an integer connection id, or an error message. But now it is just returning an empty string. Is anyone else using ODBC on Linux? Any clues as to what I need to do, or where I could find a clue as to what the error is, since revOpenDatabase didn't return anything? (Just for fun, I renamed the "dbodbc.so" driver in the Externals/database_drivers folder, and sure enough revOpenDatabase returned an error as I would expect, 'revdberr,invalid database type'.) Any clues gratefully received, Ben From richmondmathewson at gmail.com Thu Mar 10 13:55:23 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 10 Mar 2022 20:55:23 +0200 Subject: Hey Lurkers: Anyone still using LC 6.7? (Regulars too) In-Reply-To: References: <9a3bec49-4ffb-0078-27c7-4a3d60a1951c@pair.com> <0c9c6e93-bfa4-5263-d0a7-a0b38ca72d81@gmail.com> Message-ID: Aha. Thick types like me need things to be made explicit. Richmond. On Thu, 10 Mar 2022, 20:51 Bob Sneidar via use-livecode, < use-livecode at lists.runrev.com> wrote: > I believe he means that utilities he creates will still function when used > with 6.7, but wouldn't if he employs new features or syntax only supported > in v9.x and up. Eventually he would consider ONLY supporting 9.x and up, > and wants to get an idea of how many people would still need 6.7 support. > > Bob S > > > > On Mar 10, 2022, at 10:33 , Richmond via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > What do you mean when you write "I'm still supporting LC 6.7"? > > > > On 10.03.22 20:25, Curry Kenworthy via use-livecode wrote: > >> > >> To plan addon development for the next few years, > >> I would like to know if some people still need LC 6.7. > >> > >> If you're a Lurker, that's OK! If shy: offlist is fine. > >> (Regulars welcome too, of course.) > >> > >> Currently I'm still supporting LC 6.7 too, but as LC 9 > >> matures on bugs/stability and performance, hopefully > >> there will come a time when I can make this decision. > >> > >> Supporting LC 6.7 and 9/10 is fine, in fact it's fun, > >> but moving past 6.7 eventually would have some perks. > >> So the question is how long people will still need it. > >> > >> Your input will help guide my plan! Thanks. > >> > >> Best wishes, > >> > >> Curry Kenworthy > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 10 13:55:50 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 10 Mar 2022 19:55:50 +0100 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <9a7e181a-70a2-5138-e207-092656cf5f41@cogapp.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <72FAEBC5-AAE9-4191-8F0A-56E600533133@iotecdigital.com> <9a7e181a-70a2-5138-e207-092656cf5f41@cogapp.com> Message-ID: <91BD75EE-8752-4FCA-BA33-2332AB7A1597@m-r-d.de> You are right. You invoke the SSH in a terminal on that machine that shall communicate with the MySQL database on a remote server. LC then connects to itself (127.0.01) using the port you've used in the command for ssh connection, in my example 6102. That's it. As more and more servers do not allow remote MySQL access due to security restrictions, SSH tunneling or a solution like the one Bob has created are the only way. Whereby the SSH tunneling would allow a real direct communication. Which one is better, i do not know. It depends on the needs of the customer and also what software is available. > Am 10.03.2022 um 19:11 schrieb Ben Rubinstein via use-livecode : > > Yes, my case is that the database is on a hosted platform which only supports access over SSH. > > My reading of your document, Matthias, is that we simply invoke SSH in a terminal, and then LiveCode/revOpenDatabase uses that tunnel automatically because the database host is at the same address. Can that be right? Or does this only work with LiveCode server? > > Ben > > On 10/03/2022 16:42, matthias rebbe via use-livecode wrote: >> There is nothing wrong with your method. But there might be situations where you need direct access to the MySQL database, e.g. you are using 3rd party software (in my case SQLPro Studio) or libraries. I have a customer who is using a special Delphi library that only supports direct connections. >> Okay that is not the case when using Livecode. But there might be servers that do not run Livecode Server. In this case you cannot use your solution. >> In this case SSH tunneling would be a safe solution. >>> Am 10.03.2022 um 17:14 schrieb Bob Sneidar via use-livecode : >>> >>> I am not sure what SSH tunneling is, but I did a proof of concept where I had an LC client app communicating with an LC server app that encrypted the data at the client end before sending it, and the server end decrypted it. I just used non-secured sockets. I used AES encryption with a key only I know, and a method for corrupting the data in a way only the server can "cleanse". >>> >>> I suppose some may advise me on what is wrong with this method, and I welcome the input, but it worked for me. No unencrypted data went "over the wire". >>> >>> The reason I developed this method is because I do not want to deal with expiring security certificates or secure websites to handle the data transfer. The method works out of the box. >>> >>> Bob S >>> >>> >>>> On Mar 10, 2022, at 03:34 , Ben Rubinstein via use-livecode wrote: >>>> >>>> >>>> I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. >>>> >>>> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >>>> >>>> TIA, >>>> >>>> Ben >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 curry at pair.com Thu Mar 10 14:01:22 2022 From: curry at pair.com (Curry Kenworthy) Date: Thu, 10 Mar 2022 14:01:22 -0500 Subject: Hey Lurkers: Anyone still using LC 6.7? (Regulars too) In-Reply-To: References: Message-ID: <89a164b7-bd4a-2a89-15e3-e0c0944451c9@pair.com> Richmond: > What do you mean when you write "I'm still supporting LC 6.7"? Bob: > I believe he means that utilities he creates will still function > when used with 6.7, but wouldn't if he employs new features > or syntax only supported in v9.x and up. Correct! "I'm still supporting LC 6.7" for my Addons: WordLib, WordOut, SpreadLib, WordReport, FieldTrip, etc. Best wishes, Curry Kenworthy WordLib: Import MS Word and OpenOffice files in LiveCode! "Dominate documents with WordLib and LC" http://livecodeaddons.com/wordlib.html Innovative Christian LiveCode Training and Consulting "Better Methods, Better Results" http://livecodeconsulting.com/ From curry at pair.com Thu Mar 10 14:08:47 2022 From: curry at pair.com (Curry Kenworthy) Date: Thu, 10 Mar 2022 14:08:47 -0500 Subject: Hey Lurkers: Anyone still using LC 6.7? (Regulars too) In-Reply-To: References: Message-ID: <0242a510-2b55-8f1e-e26c-26fae67f9d23@pair.com> (P.S. I already employ new features or syntax only supported in v9.x and up, but that means maintaining a small bit of branched 6/9 code. Like to move beyond that eventually, but no rush; whatever people need!) Best wishes, Curry K. === Richmond: > What do you mean when you write "I'm still supporting LC 6.7"? Bob: > I believe he means that utilities he creates will still function > when used with 6.7, but wouldn't if he employs new features > or syntax only supported in v9.x and up. Me: > Correct! "I'm still supporting LC 6.7" for my Addons: > WordLib, WordOut, SpreadLib, WordReport, FieldTrip, etc. From bobsneidar at iotecdigital.com Thu Mar 10 14:13:16 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 19:13:16 +0000 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <91BD75EE-8752-4FCA-BA33-2332AB7A1597@m-r-d.de> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <72FAEBC5-AAE9-4191-8F0A-56E600533133@iotecdigital.com> <9a7e181a-70a2-5138-e207-092656cf5f41@cogapp.com> <91BD75EE-8752-4FCA-BA33-2332AB7A1597@m-r-d.de> Message-ID: <85422ACA-D25E-47DC-B250-BB01427A478C@iotecdigital.com> This is very interesting. My issue with mySQL is that I am running on a Windows 7 box, and there is no support for SSH in the Oracle version (or there wasn't last time I checked.) There *are* builds that do support it, but the weeds in that swamp are thick, and after several days of trying to get that working I gave up. Bob S > On Mar 10, 2022, at 10:55 , matthias rebbe via use-livecode wrote: > > You are right. > > You invoke the SSH in a terminal on that machine that shall communicate with the MySQL database on a remote server. > LC then connects to itself (127.0.01) using the port you've used in the command for ssh connection, in my example 6102. > That's it. > > As more and more servers do not allow remote MySQL access due to security restrictions, SSH tunneling or a solution like the one Bob has created are the only way. Whereby the SSH tunneling would allow a real direct communication. Which one is better, i do not know. It depends on the needs of the customer and also what software is available. > > > > >> Am 10.03.2022 um 19:11 schrieb Ben Rubinstein via use-livecode : >> >> Yes, my case is that the database is on a hosted platform which only supports access over SSH. >> >> My reading of your document, Matthias, is that we simply invoke SSH in a terminal, and then LiveCode/revOpenDatabase uses that tunnel automatically because the database host is at the same address. Can that be right? Or does this only work with LiveCode server? >> >> Ben >> >> On 10/03/2022 16:42, matthias rebbe via use-livecode wrote: >>> There is nothing wrong with your method. But there might be situations where you need direct access to the MySQL database, e.g. you are using 3rd party software (in my case SQLPro Studio) or libraries. I have a customer who is using a special Delphi library that only supports direct connections. >>> Okay that is not the case when using Livecode. But there might be servers that do not run Livecode Server. In this case you cannot use your solution. >>> In this case SSH tunneling would be a safe solution. >>>> Am 10.03.2022 um 17:14 schrieb Bob Sneidar via use-livecode : >>>> >>>> I am not sure what SSH tunneling is, but I did a proof of concept where I had an LC client app communicating with an LC server app that encrypted the data at the client end before sending it, and the server end decrypted it. I just used non-secured sockets. I used AES encryption with a key only I know, and a method for corrupting the data in a way only the server can "cleanse". >>>> >>>> I suppose some may advise me on what is wrong with this method, and I welcome the input, but it worked for me. No unencrypted data went "over the wire". >>>> >>>> The reason I developed this method is because I do not want to deal with expiring security certificates or secure websites to handle the data transfer. The method works out of the box. >>>> >>>> Bob S >>>> >>>> >>>>> On Mar 10, 2022, at 03:34 , Ben Rubinstein via use-livecode wrote: >>>>> >>>>> >>>>> I need to access a (MySQL) database on a remote service - which has to be done over an SSH tunnel. >>>>> >>>>> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >>>>> >>>>> TIA, >>>>> >>>>> Ben >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dochawk at gmail.com Thu Mar 10 14:37:48 2022 From: dochawk at gmail.com (doc hawk) Date: Thu, 10 Mar 2022 11:37:48 -0800 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> Message-ID: <12464AE3-1BE0-4E95-BBA4-C4734F64C000@gmail.com> I dropped mysql after the first run with my software—I don’t know if mysql could have handled it at the time, but LiveCode could only send a single command per transaction (afaik, this is still the case). And with several hundred transactions to start a session . . . (there were also issues about lack of actual rollback). I switched to postgresql, which can trivially connect remotely. Unfortunately, even though the option is there in the command, and Postgres supports it, livecode still can’t do an encrypted connection to a postgres server. If I were going to continue, I suppose I would do it through an https connection to the server, possibly encrypting before sending and letting the server decrypt. From dochawk at gmail.com Thu Mar 10 14:39:56 2022 From: dochawk at gmail.com (doc hawk) Date: Thu, 10 Mar 2022 11:39:56 -0800 Subject: Hey Lurkers: Anyone still using LC 6.7? (Regulars too) In-Reply-To: <9a3bec49-4ffb-0078-27c7-4a3d60a1951c@pair.com> References: <9a3bec49-4ffb-0078-27c7-4a3d60a1951c@pair.com> Message-ID: <4FBE1931-F83B-401B-A895-0BDBF9B6DE19@gmail.com> Gosh, I never got *any* version of 6 to work well enough to use! :) There’s still switches in my code for 5, but there are enough other uses of later features of 7+ that it’s a non-issue. From bobsneidar at iotecdigital.com Thu Mar 10 15:02:36 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 20:02:36 +0000 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <12464AE3-1BE0-4E95-BBA4-C4734F64C000@gmail.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <12464AE3-1BE0-4E95-BBA4-C4734F64C000@gmail.com> Message-ID: <210BE71A-86FD-4C1E-A9B7-53188EFAED5A@iotecdigital.com> I do not think this is a mySQL issue. Livecode currently can only send one statement per query to *any* sql server, at least that is what I have come to understand. But I do not think issuing many queries from livecode is the bottleneck, but rather the ability of the SQL server to respond. When I use memory databases, the response time is nearly nil. A single mySQL query over a LAN is not even noticeable. I make maybe 15 or so queries every time I select a new customer in my Forms Generator app, and it isn't the queries that slow things down, it's the populating of the datagrids and fields that take time. Now on Windows, I think I do experience some delays with queries, but I think that is just Windows networking security overhead. Bob S > On Mar 10, 2022, at 11:37 , doc hawk via use-livecode wrote: > > I dropped mysql after the first run with my software—I don’t know if mysql could have handled it at the time, but LiveCode could only send a single command per transaction (afaik, this is still the case). And with several hundred transactions to start a session . . . (there were also issues about lack of actual rollback). > > I switched to postgresql, which can trivially connect remotely. Unfortunately, even though the option is there in the command, and Postgres supports it, livecode still can’t do an encrypted connection to a postgres server. > > If I were going to continue, I suppose I would do it through an https connection to the server, possibly encrypting before sending and letting the server decrypt. From dochawk at gmail.com Thu Mar 10 15:08:46 2022 From: dochawk at gmail.com (doc hawk) Date: Thu, 10 Mar 2022 12:08:46 -0800 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <210BE71A-86FD-4C1E-A9B7-53188EFAED5A@iotecdigital.com> References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <12464AE3-1BE0-4E95-BBA4-C4734F64C000@gmail.com> <210BE71A-86FD-4C1E-A9B7-53188EFAED5A@iotecdigital.com> Message-ID: bob blipped, > Livecode currently can only send one statement per query to *any* sql server, at least that is what I have come to understand. Trust me, I send a single transaction of several hundred SELECT every time I open a debtor “file”. Not being able to do updates as a block, though, could give me inconsistencies if I could have both failures and successes in the same set, to the point of having to pack my bags and go home. > But I do not think issuing many queries from livecode is the bottleneck, but rather the ability of the SQL server to respond. I happened to have a notable latency at the time, which made things far worse. But when you have a great many, you have a built in 2n*latency lag, even if the transactions themselves took no time. From jacque at hyperactivesw.com Thu Mar 10 15:10:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 10 Mar 2022 14:10:04 -0600 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: <076089BB-E4C3-4B13-A9EB-CD6BFFCF3EE8@gmail.com> References: <747637380.327916.1646643513392@mail.yahoo.com> <17f65593ef0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <076089BB-E4C3-4B13-A9EB-CD6BFFCF3EE8@gmail.com> Message-ID: On 3/9/22 3:42 PM, doc hawk via use-livecode wrote: > Something like > > > ^[manl]\{2,5\}$ > > which matches all strings of length 2 to 5 composed exclusively of the letters m, a, n, & l ? I want to eliminate all words contains any of the letters in the group. I didn't get confirmation that my regex is correct but it seems to work: filter tHugeDict without regex pattern "[qkxyz]" -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Thu Mar 10 15:41:33 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 10 Mar 2022 12:41:33 -0800 Subject: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle In-Reply-To: <64d05fa1-90b9-9e6b-86fc-72d7ed3bd147@cogapp.com> References: <4578fd9a-f7f9-b9a6-0312-93bac66175be@cogapp.com> <8ccb10a5-2bd8-d92d-8e86-31aa5832b85a@cogapp.com> <29ec2655-e4f8-620e-bc1b-84d701c334dd@cogapp.com> <64d05fa1-90b9-9e6b-86fc-72d7ed3bd147@cogapp.com> Message-ID: <34a863e9-ba35-1fa0-566c-3b2fb1f0dba6@sonic.net> On 3/10/22 08:26, Ben Rubinstein via use-livecode wrote: > Thanks Panos, that gave me the clues I needed to get the other ones as > well. > > Can confirm the app is now running on Ubuntu 18.04.2 LTS. Wow... woke up to a lot of emails this morning. I'm running the latest LC builds on the latest linux mint which is based on Ubuntu 20. So you should be fine as long as you don't need printing or browsers or the new chart widget or... -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Thu Mar 10 16:01:59 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 10 Mar 2022 15:01:59 -0600 Subject: Speed up a slow loop In-Reply-To: <81210ea8-97a4-ceae-7ce4-a79a0a9b2ccc@tweedly.net> References: <1979109667.66389.1646793155017@mail.yahoo.com> <81210ea8-97a4-ceae-7ce4-a79a0a9b2ccc@tweedly.net> Message-ID: On 3/9/22 5:09 PM, Alex Tweedly via use-livecode wrote: > >  - you can reuse the same tile later in a word (e.g. > Y  L  A > X  E  T > > would allow "lately" as a word. > > OR > > - you can double-up on a tile (e.g. M I L would allow 'mill') > (more important if you're British than if you're American :-) That's CHEATING! :) But while I've been testing I thought of a way I'd like to play. You can get credit for a made-up word if you can supply a clever enough definition for it that the other players agree is good enough. Something like these neologisms (winners in the 2005 neologism contest,) only not real words like these are: 1. Coffee (n.), the person upon whom one coughs. 2. Flabbergasted (adj.), appalled over how much weight you have gained. 3. Abdicate (v.), to give up all hope of ever having a flat stomach. 4. Esplanade (v.), to attempt an explanation while drunk. 5. Willy-nilly (adj.), impotent. 6. Negligent (adj.), describes a condition in which you absentmindedly answer the door in your nightgown. 7. Lymph (v.), to walk with a lisp. 8. Gargoyle (n.), olive-flavored mouthwash. 9. Flatulence (n.) emergency vehicle that picks you up after you are run over by a steamroller. 10. Balderdash (n.), a rapidly receding hairline. 11. Testicle (n.), a humorous question on an exam. 12. Rectitude (n.), the formal, dignified bearing adopted by proctologists. 13. Pokemon (n), a Rastafarian proctologist. 14. Oyster (n.), a person who sprinkles his conversation with Yiddishisms. 15. Frisbeetarianism (n.), the belief that, when you die, your Soul flies up onto the roof and gets stuck there. 16. Circumvent (n.), an opening in the front of boxer shorts worn by Jewish males -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Thu Mar 10 16:22:22 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 10 Mar 2022 22:22:22 +0100 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: References: <38855bed-ed8b-63de-5198-12818e4b9fa1@cogapp.com> <477A7B63-3498-4F4B-A5D2-DFA64518CBA9@m-r-d.de> Message-ID: <4EB7E63A-2C07-42FE-8471-DBFEFE8AA7F6@m-r-d.de> Here's a link to the english version of the instructions. If you find wrong expression or wrong grammar please let me know, so i can fix it. https://dl.qck.nu/?dl=SSH_Port_Forwarding.pdf Regards, Matthias > Am 10.03.2022 um 16:51 schrieb matthias rebbe via use-livecode : > > Yes of course. I will post a link to it here in the list. > If time allows i will also create a Livecode Lesson. > > Matthias > > >> Am 10.03.2022 um 16:45 schrieb Glen Bojsza via use-livecode : >> >> I would be interested in this guide if possible. >> >> Will you be willing to share? >> >> regards, >> >> Glen >> >> On Thu, Mar 10, 2022 at 10:32 AM matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi, >>> >>> I've used SSH tunneling in the past to connect SQLPro Studio with remote >>> MySQL databases, but never with LC. >>> >>> And although i was pretty sure that it will work with LC, i just did a >>> quick test with LC to be 100 percent sure. >>> >>> Yes it's possible. >>> >>> I have created a small quick start guide for Windows some weeks ago, but >>> unfortunately that is in German. >>> >>> I could translate that to English and add some additional information for >>> macOS. But it would take 1 or 2 days. >>> >>> If you could wait i could send you that guide. >>> >>> Regards, >>> >>> Matthias >>> >>>> Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode < >>> use-livecode at lists.runrev.com>: >>>> >>>> >>>> I need to access a (MySQL) database on a remote service - which has to >>> be done over an SSH tunnel. >>>> >>>> Has anyone done this in LiveCode? Is it trivial/possible/impossible? >>>> >>>> TIA, >>>> >>>> Ben >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 Bernd.Niggemann at uni-wh.de Thu Mar 10 17:00:06 2022 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Thu, 10 Mar 2022 22:00:06 +0000 Subject: revOpenDatabase over SSH tunnel? Message-ID: There are two sentences in german: Folgenden Befehl in der Kommandozeile des Win10 PCs ausführen: Run the following command on the command line of the Win10 PC: Bei dem „Vordergrund“ Befehl, sieht man nur einen blinkenden Cursor. Bei dem „Hintergrund“ Befehl erscheint ein neuer Prompt. With the "Foreground" command, you only see a flashing cursor. With the "Background" command, a new prompt appears. (Automatic translation courtesy MacOs) Kind regards Bernd From matthias_livecode_150811 at m-r-d.de Thu Mar 10 17:18:00 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 10 Mar 2022 23:18:00 +0100 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: References: Message-ID: <7249D7F9-41A2-4E14-86CE-1F61F9D0380F@m-r-d.de> Danke. ;) > Am 10.03.2022 um 23:00 schrieb Niggemann, Bernd via use-livecode : > > There are two sentences in german: > > Folgenden Befehl in der Kommandozeile des Win10 PCs ausführen: > > Run the following command on the command line of the Win10 PC: > > > > Bei dem „Vordergrund“ Befehl, sieht man nur einen blinkenden Cursor. Bei dem „Hintergrund“ Befehl erscheint ein neuer Prompt. > > With the "Foreground" command, you only see a flashing cursor. With the "Background" command, a new prompt appears. > > (Automatic translation courtesy MacOs) > > Kind regards > Bernd > _______________________________________________ > use-livecode mailing list > use-livecode 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 dochawk at gmail.com Thu Mar 10 17:25:18 2022 From: dochawk at gmail.com (doc hawk) Date: Thu, 10 Mar 2022 14:25:18 -0800 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: References: <747637380.327916.1646643513392@mail.yahoo.com> <17f65593ef0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <076089BB-E4C3-4B13-A9EB-CD6BFFCF3EE8@gmail.com> Message-ID: <1702C05F-3D63-4DFB-B7D0-DFA234C84AAD@gmail.com> jacqui jawed, > filter tHugeDict without regex pattern "[qkxyz]” I expect that would be faster. But it will also bring words that are too long, although I have no idea whether or not there would be enough to matter. From bobsneidar at iotecdigital.com Thu Mar 10 17:53:35 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 22:53:35 +0000 Subject: Paste no closeField Message-ID: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> hi all. I have been seeing that when pasting text into a field then exiting the field, closeField is not getting sent to that field. Here are a couple handlers for your frontScript to deal with that. It only works with fields whose name begins with "old" otherwise this would trigger the script editor field and editable datagrid fields, and really slow things down. /* If a user pastes something into a text field, then leaves the field, closeField is not triggered. These two handlers are the workaround for that. Only fields beginning with "fld" are considered. */ on openField put long id of the target into pField if char 1 to 3 of the short name of pField is not "fld" then \ pass openField set the savedtext of pField to the text of pField pass openField end openField on exitField put the long id of the target into pField if char 1 to 3 of the short name of pField is not "fld" then \ pass exitField if the text of pField is not the savedtext of pField then \ dispatch closeField to pField set the savedtext of pField to empty pass exitField end exitField Bob S From bobsneidar at iotecdigital.com Thu Mar 10 17:57:41 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 10 Mar 2022 22:57:41 +0000 Subject: Paste no closeField In-Reply-To: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> Message-ID: It only works with fields whose name begins with "fld" (damn you spell correct!) Bob S > On Mar 10, 2022, at 14:53 , Bob Sneidar via use-livecode wrote: > > It only works with fields whose name begins with "old" From craig at starfirelighting.com Fri Mar 11 08:55:01 2022 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 11 Mar 2022 08:55:01 -0500 Subject: Paste no closeField In-Reply-To: References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> Message-ID: <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> Hi. Why not use the “textChanged” message? That one would always fire if pasting text. Craig > On Mar 10, 2022, at 5:57 PM, Bob Sneidar via use-livecode wrote: > >> works with fields whose nam From craig at starfirelighting.com Fri Mar 11 09:00:55 2022 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 11 Mar 2022 09:00:55 -0500 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: <1702C05F-3D63-4DFB-B7D0-DFA234C84AAD@gmail.com> References: <747637380.327916.1646643513392@mail.yahoo.com> <17f65593ef0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <076089BB-E4C3-4B13-A9EB-CD6BFFCF3EE8@gmail.com> <1702C05F-3D63-4DFB-B7D0-DFA234C84AAD@gmail.com> Message-ID: <829916F8-D16D-4ACA-8D82-AC10B0BCDCD7@starfirelighting.com> I play Scrabble, not Boggle. Regardless of which dictionary people use, there are many more words of 8 - 10 characters than of 4 - 6 characters. Craig > On Mar 10, 2022, at 5:25 PM, doc hawk via use-livecode wrote: > > > jacqui jawed, > > >> filter tHugeDict without regex pattern "[qkxyz]” > > I expect that would be faster. > > But it will also bring words that are too long, although I have no idea whether or not there would be enough to matter. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 11 10:52:16 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 11 Mar 2022 15:52:16 +0000 Subject: Paste no closeField In-Reply-To: <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> Message-ID: <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> Because I don’t want to trigger it every time someone types a character, but that would be one way to do it. I clean up anything I drag or type into fields, stripping all but printable ascii because OCR PDF files contain a lot of crap that wreaks havoc with databases. Sent from my iPhone > On Mar 11, 2022, at 05:56, Craig Newman via use-livecode wrote: > > Hi. > > Why not use the “textChanged” message? That one would always fire if pasting text. > > Craig > >>> On Mar 10, 2022, at 5:57 PM, Bob Sneidar via use-livecode wrote: >>> >>> works with fields whose nam > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 11 11:32:16 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 11 Mar 2022 10:32:16 -0600 Subject: use-livecode Digest, Vol 222, Issue 8 In-Reply-To: <829916F8-D16D-4ACA-8D82-AC10B0BCDCD7@starfirelighting.com> References: <747637380.327916.1646643513392@mail.yahoo.com> <17f65593ef0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <076089BB-E4C3-4B13-A9EB-CD6BFFCF3EE8@gmail.com> <1702C05F-3D63-4DFB-B7D0-DFA234C84AAD@gmail.com> <829916F8-D16D-4ACA-8D82-AC10B0BCDCD7@starfirelighting.com> Message-ID: <17f79d2d698.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Ditto Boggle, the longer the word the more points you get. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 11, 2022 8:03:20 AM Craig Newman via use-livecode wrote: > I play Scrabble, not Boggle. > > Regardless of which dictionary people use, there are many more words of 8 > - 10 characters than of 4 - 6 characters. > > > Craig > > >> On Mar 10, 2022, at 5:25 PM, doc hawk via use-livecode >> wrote: >> >> >> jacqui jawed, >> >> >>> filter tHugeDict without regex pattern "[qkxyz] >> >> I expect that would be faster. >> >> But it will also bring words that are too long, although I have no idea >> whether or not there would be enough to matter. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 craig at starfirelighting.com Fri Mar 11 11:30:24 2022 From: craig at starfirelighting.com (Craig Newman) Date: Fri, 11 Mar 2022 11:30:24 -0500 Subject: Paste no closeField In-Reply-To: <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> Message-ID: OK. Does this help? It catches pasting, but not typing. on textChanged if the commandKey is down then beep end textChanged > On Mar 11, 2022, at 10:52 AM, Bob Sneidar via use-livecode wrote: > > Because I don’t want to trigger it every time someone types a character, but that would be one way to do it. I clean up anything I drag or type into fields, stripping all but printable ascii because OCR PDF files contain a lot of crap that wreaks havoc with databases. > > Sent from my iPhone > >> On Mar 11, 2022, at 05:56, Craig Newman via use-livecode wrote: >> >> Hi. >> >> Why not use the “textChanged” message? That one would always fire if pasting text. >> >> Craig >> >>>> On Mar 10, 2022, at 5:57 PM, Bob Sneidar via use-livecode wrote: >>>> >>>> works with fields whose nam >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 klaus at major-k.de Fri Mar 11 11:48:21 2022 From: klaus at major-k.de (Klaus major-k) Date: Fri, 11 Mar 2022 17:48:21 +0100 Subject: Paste no closeField In-Reply-To: References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> Message-ID: <0B20AFE3-16FF-42FC-A52E-6F345E4194D4@major-k.de> Hi Bob, > Am 11.03.2022 um 17:30 schrieb Craig Newman via use-livecode : > > OK. > > Does this help? It catches pasting, but not typing. > > on textChanged > if the commandKey is down then beep > end textChanged you could also catch "on pastekey", but that will only work in a standalone, the IDE will catch and not pass it. >> On Mar 11, 2022, at 10:52 AM, Bob Sneidar via use-livecode wrote: >> >> Because I don’t want to trigger it every time someone types a character, but that would be one way to do it. I clean up anything I drag or type into fields, stripping all but printable ascii because OCR PDF files contain a lot of crap that wreaks havoc with databases. >> >> Sent from my iPhone >> >>> On Mar 11, 2022, at 05:56, Craig Newman via use-livecode wrote: >>> >>> Hi. >>> >>> Why not use the “textChanged” message? That one would always fire if pasting text. >>> Craig >>> >>>>> On Mar 10, 2022, at 5:57 PM, Bob Sneidar via use-livecode wrote: >>>>> works with fields whose nam Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From harrison at all-auctions.com Fri Mar 11 13:25:13 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 11 Mar 2022 13:25:13 -0500 Subject: Browser Widget Issues In-Reply-To: <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> Message-ID: <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> I was hoping to be able to programmatically tell the browser widget where to go to next by having LC click on an image or button within the browser window. So far I have had no success with that. Is there a bug in LC preventing me from doing this seemingly simple task? Is there a work around? Thanks in advance! Rick From klaus at major-k.de Fri Mar 11 13:51:34 2022 From: klaus at major-k.de (Klaus major-k) Date: Fri, 11 Mar 2022 19:51:34 +0100 Subject: Browser Widget Issues In-Reply-To: <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> Message-ID: Hi Rick, > Am 11.03.2022 um 19:25 schrieb Rick Harrison via use-livecode : > > I was hoping to be able to programmatically > tell the browser widget where to go to next > by having LC click on an image or button > within the browser window. > > So far I have had no success with that. > Is there a bug in LC preventing me from > doing this seemingly simple task? > > Is there a work around? what did you try so far? > Thanks in advance! > > Rick Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Fri Mar 11 13:53:23 2022 From: klaus at major-k.de (Klaus major-k) Date: Fri, 11 Mar 2022 19:53:23 +0100 Subject: Browser Widget Issues In-Reply-To: References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> Message-ID: <72096F01-7497-4217-86E2-F36628E0B5F9@major-k.de> Hi Rick, sorry, looks like I completely misunderstood your question... > Am 11.03.2022 um 19:51 schrieb Klaus major-k via use-livecode : > > Hi Rick, > >> Am 11.03.2022 um 19:25 schrieb Rick Harrison via use-livecode : >> >> I was hoping to be able to programmatically >> tell the browser widget where to go to next >> by having LC click on an image or button >> within the browser window. >> >> So far I have had no success with that. >> Is there a bug in LC preventing me from >> doing this seemingly simple task? >> >> Is there a work around? > > what did you try so far? > >> Thanks in advance! >> >> Rick -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From harrison at all-auctions.com Fri Mar 11 15:30:18 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 11 Mar 2022 15:30:18 -0500 Subject: Browser Widget Issues In-Reply-To: References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> Message-ID: Simple mouseClick at location. > On Mar 11, 2022, at 1:51 PM, Klaus major-k via use-livecode wrote: > > what did you try so far? From tom at makeshyft.com Fri Mar 11 15:49:31 2022 From: tom at makeshyft.com (Tom Glod) Date: Fri, 11 Mar 2022 15:49:31 -0500 Subject: Browser Widget Issues In-Reply-To: References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> Message-ID: You just need to pass some javascript to the browser to trigger the button you want. do this_js in widget "myBrowser" and this_js should have the javascript to click the button. Imagine the possibilities :) On Fri, Mar 11, 2022 at 3:31 PM Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Simple mouseClick at location. > > > On Mar 11, 2022, at 1:51 PM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > what did you try so far? > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 11 16:55:43 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 11 Mar 2022 21:55:43 +0000 Subject: matchText error?? Message-ID: <189D0D4F-C9E2-42BD-A6F4-EA01EEA119B7@iotecdigital.com> I have a matchtext string [0-9+-/\*]. I feed each character of "284,763" in a repeat loop. To my understanding I ought to get "284673" but instead the comma comes along to play too. Is that right?? Does 0-9 include commas?? Bob S From harrison at all-auctions.com Fri Mar 11 16:58:16 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 11 Mar 2022 16:58:16 -0500 Subject: Browser Widget Issues In-Reply-To: References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> Message-ID: <52972A6D-61AB-41C0-9CB3-49C00FB92A44@all-auctions.com> Hi Tom, Do you have a more specific Javascript/LC example? I’m not a big fan of Javascript and only use it very sparingly. I would also have to first scan the HTML to find the name of the button I want it to activate wouldn’t I? If I have to go into that fine detail I would be better off scanning for the link and just using a URL statement. Why doesn’t click at location work? Thanks, Rick > On Mar 11, 2022, at 3:49 PM, Tom Glod via use-livecode wrote: > > You just need to pass some javascript to the browser to trigger the button > you want. > > do this_js in widget "myBrowser" > > and this_js should have the javascript to click the button. > > Imagine the possibilities :) > > > On Fri, Mar 11, 2022 at 3:31 PM Rick Harrison via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Simple mouseClick at location. >> >>> On Mar 11, 2022, at 1:51 PM, Klaus major-k via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> what did you try so far? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Fri Mar 11 17:12:25 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 11 Mar 2022 22:12:25 +0000 Subject: Browser Widget Issues In-Reply-To: <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> Message-ID: <83D1911C-89C0-4F21-AB86-18325A0E9A74@iotecdigital.com> Still cannot understand why it is that my Apple Mail program seems to think a completely different mail thread is the same thread as the one I was using. If however people are clicking on one thread, replying and changing the subject, in theory that is, well then that is just bad list etiquette. :-) Bob S > On Mar 11, 2022, at 10:25 , Rick Harrison via use-livecode wrote: > > I was hoping to be able to programmatically > tell the browser widget where to go to next > by having LC click on an image or button > within the browser window. > > So far I have had no success with that. > Is there a bug in LC preventing me from > doing this seemingly simple task? > > Is there a work around? > > Thanks in advance! > > Rick From bobsneidar at iotecdigital.com Fri Mar 11 17:16:08 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 11 Mar 2022 22:16:08 +0000 Subject: Paste no closeField In-Reply-To: <0B20AFE3-16FF-42FC-A52E-6F345E4194D4@major-k.de> References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> <0B20AFE3-16FF-42FC-A52E-6F345E4194D4@major-k.de> Message-ID: <6AA15D30-7E5F-4042-B25D-D7A128FB601D@iotecdigital.com> Yeah, I suppose. But I use the IDE a LOT. Remember my code is in a front script, which is good, because it works for all my apps, and ONLY when entering and leaving a field. Bob S > On Mar 11, 2022, at 08:48 , Klaus major-k via use-livecode wrote: > > Hi Bob, > >> Am 11.03.2022 um 17:30 schrieb Craig Newman via use-livecode : >> >> OK. >> >> Does this help? It catches pasting, but not typing. >> >> on textChanged >> if the commandKey is down then beep >> end textChanged > > you could also catch "on pastekey", but that will only work in a standalone, > the IDE will catch and not pass it. > >>> On Mar 11, 2022, at 10:52 AM, Bob Sneidar via use-livecode wrote: >>> >>> Because I don’t want to trigger it every time someone types a character, but that would be one way to do it. I clean up anything I drag or type into fields, stripping all but printable ascii because OCR PDF files contain a lot of crap that wreaks havoc with databases. >>> >>> Sent from my iPhone >>> >>>> On Mar 11, 2022, at 05:56, Craig Newman via use-livecode wrote: >>>> >>>> Hi. >>>> >>>> Why not use the “textChanged” message? That one would always fire if pasting text. >>>> Craig >>>> >>>>>> On Mar 10, 2022, at 5:57 PM, Bob Sneidar via use-livecode wrote: >>>>>> works with fields whose nam > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 tom at makeshyft.com Fri Mar 11 17:24:25 2022 From: tom at makeshyft.com (Tom Glod) Date: Fri, 11 Mar 2022 17:24:25 -0500 Subject: Browser Widget Issues In-Reply-To: <83D1911C-89C0-4F21-AB86-18325A0E9A74@iotecdigital.com> References: <7F123F3C-0A07-40A7-8CF1-80CA3447B256@iotecdigital.com> <718F3B98-2D18-4943-9EC5-975A026765A3@starfirelighting.com> <5846C5D8-5C8D-4261-B83D-5B3EDC417A91@iotecdigital.com> <5C6ED8D0-47F7-429B-B4C4-41366CCDD844@all-auctions.com> <83D1911C-89C0-4F21-AB86-18325A0E9A74@iotecdigital.com> Message-ID: Hi Rick, document.getElementById("Butto Name").click(); that should work ...but yes this solution assumes you know the name of the button. I can't say for sure but I think its that LC is looking for "what livecode control" is under this clickloc ..... ....and then sends a message to that control....so in this case, it just send mouseUp to the widget. If the widget even accepts it. Good luck Rick. On Fri, Mar 11, 2022 at 5:13 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Still cannot understand why it is that my Apple Mail program seems to > think a completely different mail thread is the same thread as the one I > was using. If however people are clicking on one thread, replying and > changing the subject, in theory that is, well then that is just bad list > etiquette. :-) > > Bob S > > > > On Mar 11, 2022, at 10:25 , Rick Harrison via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I was hoping to be able to programmatically > > tell the browser widget where to go to next > > by having LC click on an image or button > > within the browser window. > > > > So far I have had no success with that. > > Is there a bug in LC preventing me from > > doing this seemingly simple task? > > > > Is there a work around? > > > > Thanks in advance! > > > > 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 bogdanoff at me.com Sat Mar 12 01:28:31 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 11 Mar 2022 22:28:31 -0800 Subject: LC Player buffering data In-Reply-To: References: <02a4c3cd-3a16-8cb9-4602-1522039ae129@sonic.net> <71545BE7-D2B5-494B-B3F0-EEB5FF971075@me.com> <4F9C6503-B59F-4D48-8996-806BC9F80CA5@iotecdigital.com> Message-ID: Hi, this is probably a question for Panos. My application plays audio files from a server using the player. Some users in a academic environment are experiencing the application freezing when they play audio. These are people in a university in China, where it seems the wireless network gets choked up with simultaneous users doing things. When classes are over, all works well. Also using a cellular connection works normally (but data there is very expensive $$$ to use). Their Wifi seems to be underpowered. These are files typically 30K to 100K. 1. Does the player buffer data such that it allows the playing to start before the entire file is loaded? 2. If so, would reducing the minimum amount of buffering help with this issue? 3. If so, could there be a player setting to set the amount of required data before playing begins? Thanks! Peter Bogdanoff ArtsInteractive From bogdanoff at me.com Sat Mar 12 01:35:26 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 11 Mar 2022 22:35:26 -0800 Subject: LC Player buffering data In-Reply-To: References: <02a4c3cd-3a16-8cb9-4602-1522039ae129@sonic.net> <71545BE7-D2B5-494B-B3F0-EEB5FF971075@me.com> <4F9C6503-B59F-4D48-8996-806BC9F80CA5@iotecdigital.com> Message-ID: <1F50327F-70A7-4793-A650-BD54203B07A7@me.com> I should have said, the audio files being played are typically 30MB to 100MB, and the freezing happens as soon as the filename URL is set and play is supposed to begin. > On Mar 11, 2022, at 10:28 PM, Peter Bogdanoff via use-livecode wrote: > > Hi, this is probably a question for Panos. > > My application plays audio files from a server using the player. Some users in a academic environment are experiencing the application freezing when they play audio. These are people in a university in China, where it seems the wireless network gets choked up with simultaneous users doing things. When classes are over, all works well. Also using a cellular connection works normally (but data there is very expensive $$$ to use). Their Wifi seems to be underpowered. These are files typically 30K to 100K. > > 1. Does the player buffer data such that it allows the playing to start before the entire file is loaded? > > 2. If so, would reducing the minimum amount of buffering help with this issue? > > 3. If so, could there be a player setting to set the amount of required data before playing begins? > > Thanks! > > Peter Bogdanoff > ArtsInteractive > _______________________________________________ > use-livecode mailing list > use-livecode 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 merakosp at gmail.com Sat Mar 12 08:30:53 2022 From: merakosp at gmail.com (panagiotis m) Date: Sat, 12 Mar 2022 15:30:53 +0200 Subject: LC Player buffering data In-Reply-To: <1F50327F-70A7-4793-A650-BD54203B07A7@me.com> References: <02a4c3cd-3a16-8cb9-4602-1522039ae129@sonic.net> <71545BE7-D2B5-494B-B3F0-EEB5FF971075@me.com> <4F9C6503-B59F-4D48-8996-806BC9F80CA5@iotecdigital.com> <1F50327F-70A7-4793-A650-BD54203B07A7@me.com> Message-ID: Hello Peter, Off the top of my head, I think there is a related read-only property ("loadState") but this is for the iOS mobile player. So you can get the value of this property using the mobileControlGet command, and start the video playback accordingly. However, if I remember correctly, your app runs on Mac and Windows. is that correct? I suggest you file an enhancement request, my guess is that it shouldn't be too tricky to add such a property, at least for the Mac player. Cheers, Panos -- On Sat, 12 Mar 2022 at 08:36, Peter Bogdanoff via use-livecode < use-livecode at lists.runrev.com> wrote: > I should have said, the audio files being played are typically 30MB to > 100MB, and the freezing happens as soon as the filename URL is set and play > is supposed to begin. > > > > On Mar 11, 2022, at 10:28 PM, Peter Bogdanoff via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi, this is probably a question for Panos. > > > > My application plays audio files from a server using the player. Some > users in a academic environment are experiencing the application freezing > when they play audio. These are people in a university in China, where it > seems the wireless network gets choked up with simultaneous users doing > things. When classes are over, all works well. Also using a cellular > connection works normally (but data there is very expensive $$$ to use). > Their Wifi seems to be underpowered. These are files typically 30K to 100K. > > > > 1. Does the player buffer data such that it allows the playing to start > before the entire file is loaded? > > > > 2. If so, would reducing the minimum amount of buffering help with this > issue? > > > > 3. If so, could there be a player setting to set the amount of required > data before playing begins? > > > > Thanks! > > > > Peter Bogdanoff > > ArtsInteractive > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 Sat Mar 12 11:43:57 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 12 Mar 2022 11:43:57 -0500 Subject: Problems with Filter? In-Reply-To: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> Message-ID: Good Morning! I’m trying to get filter to work with some text and so far no success at all. Given large string: abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz I want the text between THIS and FIND which could be anything like ISLJFKKDKLS It’s OK to include the THIS and FIND in my result. I’m thinking I need a wildcard character like * to get the information. So if I try: put "THIS*FIND" into tTarget put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString put tLargeTextString into pText filter pText with regex tTarget into tFilteredTextResult answer "tFilteredTextResult = " & tFilteredTextResult One might think this would work, but it doesn’t, and I get nothing for tFilteredTextResult Suggestions? From jiml at netrin.com Sat Mar 12 13:25:19 2022 From: jiml at netrin.com (Jim Lambert) Date: Sat, 12 Mar 2022 10:25:19 -0800 Subject: Problems with Filter? In-Reply-To: References: Message-ID: <4DF93CE4-42FB-4568-AC39-B076360BAE5F@netrin.com> Try: put "*THISISMYTEXTTOFIND*" into tTarget put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString put tLargeTextString into pText filter pText with tTarget into tFilteredTextResult answer "tFilteredTextResult = " & tFilteredTextResult Or more simply: filter tLargeTextString with "*THISISMYTEXTTOFIND*" into tFilteredTextResult From ahsoftware at sonic.net Sat Mar 12 14:05:01 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 12 Mar 2022 11:05:01 -0800 Subject: Problems with Filter? In-Reply-To: References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> Message-ID: <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> On 3/12/22 08:43, Rick Harrison via use-livecode wrote: > Good Morning! > > Im trying to get filter to work with some text and so far no success at all. > > Given large string: abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz > > I want the text between THIS and FIND which could be anything like ISLJFKKDKLS > > Its OK to include the THIS and FIND in my result. > > Im thinking I need a wildcard character like * to get the information. > > > So if I try: > put "THIS*FIND" into tTarget > > put abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz into tLargeTextString > > put tLargeTextString into pText > > filter pText with regex tTarget into tFilteredTextResult > > answer "tFilteredTextResult = " & tFilteredTextResult > > One might think this would work, but it doesnt, and I get nothing for tFilteredTextResult > > Suggestions? Try matchtext rather than filter: local tTextt, tFound? put matchtext(tLargeTextString, ".*THIS(.*)FIND.*", tText) into tFound? -- Mark Wieder ahsoftware at gmail.com From harrison at all-auctions.com Sat Mar 12 15:06:11 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 12 Mar 2022 15:06:11 -0500 Subject: Problems with Filter? In-Reply-To: <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> Message-ID: Hi Mark, matchText works fine. That doesn’t explain why “filter” doesn’t work though. Thanks! Rick > On Mar 12, 2022, at 2:05 PM, Mark Wieder via use-livecode wrote: > > Try matchtext rather than filter: > > local tTextt, tFound? > put matchtext(tLargeTextString, ".*THIS(.*)FIND.*", tText) into tFound? From brian at milby7.com Sat Mar 12 15:29:09 2022 From: brian at milby7.com (Brian Milby) Date: Sat, 12 Mar 2022 15:29:09 -0500 Subject: Problems with Filter? In-Reply-To: References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> Message-ID: Filter removes non-matching lines. On Sat, Mar 12, 2022 at 3:07 PM Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Mark, > > matchText works fine. > > That doesn’t explain why “filter” doesn’t work though. > > Thanks! > > Rick > > > On Mar 12, 2022, at 2:05 PM, Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Try matchtext rather than filter: > > > > local tTextt, tFound? > > put matchtext(tLargeTextString, ".*THIS(.*)FIND.*", tText) into tFound? > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat Mar 12 15:43:07 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 12 Mar 2022 12:43:07 -0800 Subject: Problems with Filter? In-Reply-To: References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> Message-ID: On 3/12/22 12:06, Rick Harrison via use-livecode wrote: > Hi Mark, > > matchText works fine. > > That doesnt explain why filter doesnt work though. Yes. It does. Filter won't give you a substring. You can use filter to get the whole line of text, but you'll still have to dig out the substring if that's what you're after. In your original code, change to put "*THIS*FIND*" into tTarget filter pText with tTarget into tFilteredTextResult or put ".*THIS.*FIND.*" into tTarget filter pText with regex pattern tTarget into tFilteredTextResult -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Sat Mar 12 16:32:51 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2022 15:32:51 -0600 Subject: Speed up a slow loop In-Reply-To: References: <1979109667.66389.1646793155017@mail.yahoo.com> <81210ea8-97a4-ceae-7ce4-a79a0a9b2ccc@tweedly.net> Message-ID: <508346a4-da27-c2d2-8b94-5df23dfb00aa@hyperactivesw.com> I have to thank everyone who helped me figure out my Boggle game. I've put the current file on Google Drive for anyone who wants to take a look. The scripts are open and I think I've removed all the testing cruft that accumulated over the last couple of weeks. I'd be interested in any feedback or improvements. There's a Read Me in the zip file with more info. Thanks so much to all! Contributors have been credited in the scripts. Jacque -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 12 16:36:11 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2022 15:36:11 -0600 Subject: Problems with Filter? In-Reply-To: References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> Message-ID: <2da829e7-5f32-7d43-4ec1-df9fbfa9bff6@hyperactivesw.com> On 3/12/22 2:29 PM, Brian Milby via use-livecode wrote: > Filter removes non-matching lines. Unless you use "filter x without y". -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Mar 12 16:41:54 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 12 Mar 2022 15:41:54 -0600 Subject: LC Player buffering data In-Reply-To: <1F50327F-70A7-4793-A650-BD54203B07A7@me.com> References: <02a4c3cd-3a16-8cb9-4602-1522039ae129@sonic.net> <71545BE7-D2B5-494B-B3F0-EEB5FF971075@me.com> <4F9C6503-B59F-4D48-8996-806BC9F80CA5@iotecdigital.com> <1F50327F-70A7-4793-A650-BD54203B07A7@me.com> Message-ID: <88dfe4dd-e8e2-7235-e132-c6930df3175c@hyperactivesw.com> Someone who does a lot of audio work would know more than I do about it, but it used to be that files could be saved in either "normal" mode or "streaming" mode. I didn't make the files I used in a particular app, but they all streamed and playback started immediately while the rest loaded in the background. If things haven't changed, maybe the file format is the culprit? On 3/12/22 12:35 AM, Peter Bogdanoff via use-livecode wrote: > I should have said, the audio files being played are typically 30MB to 100MB, and the freezing happens as soon as the filename URL is set and play is supposed to begin. > > >> On Mar 11, 2022, at 10:28 PM, Peter Bogdanoff via use-livecode wrote: >> >> Hi, this is probably a question for Panos. >> >> My application plays audio files from a server using the player. Some users in a academic environment are experiencing the application freezing when they play audio. These are people in a university in China, where it seems the wireless network gets choked up with simultaneous users doing things. When classes are over, all works well. Also using a cellular connection works normally (but data there is very expensive $$$ to use). Their Wifi seems to be underpowered. These are files typically 30K to 100K. >> >> 1. Does the player buffer data such that it allows the playing to start before the entire file is loaded? >> >> 2. If so, would reducing the minimum amount of buffering help with this issue? >> >> 3. If so, could there be a player setting to set the amount of required data before playing begins? >> >> Thanks! >> >> Peter Bogdanoff >> ArtsInteractive >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 harrison at all-auctions.com Sat Mar 12 17:21:31 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 12 Mar 2022 17:21:31 -0500 Subject: Problems with Filter? In-Reply-To: References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> Message-ID: <1948602B-0B83-44DA-8471-3F55FA57584F@all-auctions.com> put "THIS*FIND" into tTarget put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString put tLargeTextString into pText — Adding your code here Mark: put ".*THIS.*FIND.*" into tTarget filter pText with regex pattern tTarget into tFilteredTextResult answer "tFilteredTextResult = " & tFilteredTextResult yields: tFilteredTextResult = "abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” So what did it filter? It’s the same string I started with. Rick > On Mar 12, 2022, at 3:43 PM, Mark Wieder via use-livecode wrote: > > or > put ".*THIS.*FIND.*" into tTarget > filter pText with regex pattern tTarget into tFilteredTextResult From brian at milby7.com Sat Mar 12 17:28:10 2022 From: brian at milby7.com (Brian Milby) Date: Sat, 12 Mar 2022 17:28:10 -0500 Subject: Problems with Filter? In-Reply-To: <1948602B-0B83-44DA-8471-3F55FA57584F@all-auctions.com> References: <1948602B-0B83-44DA-8471-3F55FA57584F@all-auctions.com> Message-ID: <9159E8EC-4163-44DC-B73D-1CCB09F5C94E@milby7.com> Your source was only one line. The default for filter is to work by line. It returns all lines that match, hence the same string you started with. Sent from my iPhone > On Mar 12, 2022, at 5:22 PM, Rick Harrison via use-livecode wrote: > >  > put "THIS*FIND" into tTarget > > put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString > > put tLargeTextString into pText > > > — Adding your code here Mark: > put ".*THIS.*FIND.*" into tTarget > > filter pText with regex pattern tTarget into tFilteredTextResult > > answer "tFilteredTextResult = " & tFilteredTextResult > > yields: > > tFilteredTextResult = "abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” > > So what did it filter? It’s the same string I started with. > > Rick > >> On Mar 12, 2022, at 3:43 PM, Mark Wieder via use-livecode wrote: >> >> or >> put ".*THIS.*FIND.*" into tTarget >> filter pText with regex pattern tTarget into tFilteredTextResult > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat Mar 12 17:40:07 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 12 Mar 2022 14:40:07 -0800 Subject: Problems with Filter? In-Reply-To: <1948602B-0B83-44DA-8471-3F55FA57584F@all-auctions.com> References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> <1948602B-0B83-44DA-8471-3F55FA57584F@all-auctions.com> Message-ID: On 3/12/22 14:21, Rick Harrison via use-livecode wrote: > So what did it filter? Its the same string I started with. Exactly. You want matchtext, not filter. There is a way to finesse this if you really need to use filter: local tSubString, tTarget, tLargeTextString local tResult put "*THIS*FIND*" into tTarget put "abcdef&cr&ghijkTHISISMYTEXTTOFINDlmnopq&cr&rstuvwxyz" into tLargeTextString filter tLargeTextString with tTarget set the itemDelimiter to "THIS" put item 2 of tLargeTextString into tSubString set the itemDelimiter to "FIND" put item 1 of tSubString into tResult -- Mark Wieder ahsoftware at gmail.com From harrison at all-auctions.com Sat Mar 12 18:25:24 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 12 Mar 2022 18:25:24 -0500 Subject: Problems with Filter? In-Reply-To: References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> <1948602B-0B83-44DA-8471-3F55FA57584F@all-auctions.com> Message-ID: Ok, that straightened out my confusion. Thanks! > On Mar 12, 2022, at 5:40 PM, Mark Wieder via use-livecode wrote: > > Exactly. You want matchtext, not filter. > > There is a way to finesse this if you really need to use filter: > > local tSubString, tTarget, tLargeTextString > local tResult > > put "*THIS*FIND*" into tTarget > put "abcdef&cr&ghijkTHISISMYTEXTTOFINDlmnopq&cr&rstuvwxyz" into tLargeTextString > > filter tLargeTextString with tTarget > set the itemDelimiter to "THIS" > put item 2 of tLargeTextString into tSubString > set the itemDelimiter to "FIND" > put item 1 of tSubString into tResult From irog at mac.com Sat Mar 12 21:54:04 2022 From: irog at mac.com (Roger Guay) Date: Sat, 12 Mar 2022 18:54:04 -0800 Subject: Speaking of Filter and Match... In-Reply-To: References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> Message-ID: <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? Thanks, Roger From terry.judd at unimelb.edu.au Sat Mar 12 23:12:55 2022 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Sun, 13 Mar 2022 04:12:55 +0000 Subject: Speaking of Filter and Match... In-Reply-To: <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> Message-ID: There are sure to be more elegant ways but you could just rebuild the list skipping the duplicates as you go # tList1 contains original list put cr into tList2 repeat for each line x in tList1 if tList2 contains cr&x&cr then # ensures you check whole not partial lines # do nothing else put x&cr after tList2 end if end repeat put char 2 to -2 of tList2 into tList2 # delete the leading and trailing returns If you need to retain line specific formatting in the field though you’ll need a different approach. Terry… Terry Judd | Senior Lecturer in Medical Education Department of Medical Education The University of Melbourne M: 61-435 961 594 E: terry.judd at unimelb.edu.au Publications From: use-livecode on behalf of Roger Guay via use-livecode Date: Sunday, 13 March 2022 at 1:55 pm To: use-livecode at lists.runrev.com Cc: Roger Guay Subject: Speaking of Filter and Match... I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? 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 alex at tweedly.net Sun Mar 13 08:32:48 2022 From: alex at tweedly.net (Tweedly) Date: Sun, 13 Mar 2022 12:32:48 +0000 Subject: Speaking of Filter and Match... In-Reply-To: References: Message-ID: split tVar by CR combine tVar by CR If you don’t need to keep them in order. Alex Sent from my iPad > On 13 Mar 2022, at 04:14, Terry Judd via use-livecode wrote: > > There are sure to be more elegant ways but you could just rebuild the list skipping the duplicates as you go > > # tList1 contains original list > put cr into tList2 > repeat for each line x in tList1 > if tList2 contains cr&x&cr then # ensures you check whole not partial lines > # do nothing > else > put x&cr after tList2 > end if > end repeat > put char 2 to -2 of tList2 into tList2 # delete the leading and trailing returns > > If you need to retain line specific formatting in the field though you’ll need a different approach. > > Terry… > > Terry Judd | Senior Lecturer in Medical Education > Department of Medical Education > The University of Melbourne > M: 61-435 961 594 > E: terry.judd at unimelb.edu.au > Publications > > > From: use-livecode on behalf of Roger Guay via use-livecode > Date: Sunday, 13 March 2022 at 1:55 pm > To: use-livecode at lists.runrev.com > Cc: Roger Guay > Subject: Speaking of Filter and Match... > I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? > > 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 klaus at major-k.de Sun Mar 13 13:14:04 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 13 Mar 2022 18:14:04 +0100 Subject: Windows EXE with browser about 160 MB? Message-ID: <038C92A3-8311-4079-AFB7-7849B37374BA@major-k.de> Hi all, I just created a Windows EXE from my stack and was shocked to see that the resulting folder is 150 MB (32 bit) resp. 170 MB (64 bit)!? I thought the Windows version of the browser widget would also "hook" somehow into the system web engine like the Mac version does, but obviously I was wrong... :-/ How can we make a good case for this to our customers? 8-) I just want to display PDF files, not the whole internet. Too bad LC does not sell the PDF widget separately... Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From harrison at all-auctions.com Sun Mar 13 14:34:56 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 13 Mar 2022 14:34:56 -0400 Subject: Browser Widget and Images In-Reply-To: <2da829e7-5f32-7d43-4ec1-df9fbfa9bff6@hyperactivesw.com> References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> <2da829e7-5f32-7d43-4ec1-df9fbfa9bff6@hyperactivesw.com> Message-ID: I have a large free public domain image displaying nicely in my LC Browser Widget. I want to bring the image directly into a LiveCode image object to be able to play around with it. What’s the best way to do that? While I was looking around in the dictionary for possibilities, I came across some older revBrowser commands. Do they work with with the new browser widget or are the two completely different animals? Thanks, Rick From klaus at major-k.de Sun Mar 13 14:58:09 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 13 Mar 2022 19:58:09 +0100 Subject: Browser Widget and Images In-Reply-To: References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> <2da829e7-5f32-7d43-4ec1-df9fbfa9bff6@hyperactivesw.com> Message-ID: <39120EE3-1757-445C-A3D2-44CC3A83B07E@major-k.de> Hi Rick, > Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode : > > I have a large free public domain image displaying nicely in my LC Browser Widget. > I want to bring the image directly into a LiveCode image object to be able to play around with it. > What’s the best way to do that? why not just set the FILENAME of the image object to the file, either local or online? If the image is very big, you could group that single image object and add the groups scrollbars. Or just scale the image... > While I was looking around in the dictionary for possibilities, I came > across some older revBrowser commands. Do they work with with > the new browser widget or are the two completely different animals? > > Thanks, > > Rick Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jacque at hyperactivesw.com Sun Mar 13 15:31:12 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2022 14:31:12 -0500 Subject: Windows 11 incompatible? Message-ID: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From colinholgate at gmail.com Sun Mar 13 15:52:20 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 13 Mar 2022 13:52:20 -0600 Subject: Windows 11 incompatible? In-Reply-To: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> Message-ID: Do you have an app I can test? > On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode wrote: > > We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? > > -- > 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 jacque at hyperactivesw.com Sun Mar 13 16:05:24 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2022 15:05:24 -0500 Subject: Speaking of Filter and Match... In-Reply-To: <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> Message-ID: On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote: > I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? Making the list into an array is the easiest way but as mentioned, it will destroy the original order. If the order is important then you can restore it with a custom sort function. Here's my test handlers: on mouseUp put fld 1 into tData -- we keep this as a reference to the original order put tData into tTrimmedData -- this one will change split tTrimmedData by cr as set -- removes duplicates put keys(tTrimmedData) into tTrimmedData -- convert to a text list sort tTrimmedData numeric by origOrder(each,tData) put tTrimmedData into fld 1 end mouseUp function origOrder pWord, @pData set wholematches to true -- may not matter, depends on the data return lineoffset(pWord, pData) end origOrder Field 1 contains lines in random order with duplicates. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From irog at mac.com Sun Mar 13 16:16:17 2022 From: irog at mac.com (Roger Guay) Date: Sun, 13 Mar 2022 13:16:17 -0700 Subject: Speaking of Filter and Match... In-Reply-To: References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> Message-ID: <328EDA05-3ED2-4F3D-BF99-9C43C1B39C44@mac.com> Thank you Jacqueline, Alex and Terry. Very interesting new (for me) methods that I would never have come up with on my own. Roger > On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode wrote: > > On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote: >> I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? > > Making the list into an array is the easiest way but as mentioned, it will destroy the original order. If the order is important then you can restore it with a custom sort function. Here's my test handlers: > > > on mouseUp > put fld 1 into tData -- we keep this as a reference to the original order > put tData into tTrimmedData -- this one will change > split tTrimmedData by cr as set -- removes duplicates > put keys(tTrimmedData) into tTrimmedData -- convert to a text list > sort tTrimmedData numeric by origOrder(each,tData) > put tTrimmedData into fld 1 > end mouseUp > > function origOrder pWord, @pData > set wholematches to true -- may not matter, depends on the data > return lineoffset(pWord, pData) > end origOrder > > Field 1 contains lines in random order with duplicates. > > -- > 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 Sun Mar 13 16:27:25 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 13 Mar 2022 21:27:25 +0100 Subject: Windows 11 incompatible? In-Reply-To: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> Message-ID: <6965CCCE-F15C-4DD8-9ECD-FD05C39FB838@m-r-d.de> What do you mean with new Windows 11 update? The update from 10 or lower to 11 or from 11.xxx whatever build to a newer one? I have here Windows 11 Build 22563, that's an insider preview build, installed and opening/running an LC standalone, created with LC 9.6.2, was not a problem. Regards, Matthias > Am 13.03.2022 um 20:31 schrieb J. Landman Gay via use-livecode : > > We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? > > -- > 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 colinholgate at gmail.com Sun Mar 13 16:34:05 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 13 Mar 2022 14:34:05 -0600 Subject: Windows 11 incompatible? In-Reply-To: <6965CCCE-F15C-4DD8-9ECD-FD05C39FB838@m-r-d.de> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <6965CCCE-F15C-4DD8-9ECD-FD05C39FB838@m-r-d.de> Message-ID: You should check for an update, I’m on 22572.100, maybe that’s the update that showed a problem? > On Mar 13, 2022, at 2:27 PM, matthias rebbe via use-livecode wrote: > > What do you mean with new Windows 11 update? The update from 10 or lower to 11 or from 11.xxx whatever build to a newer one? > > I have here Windows 11 Build 22563, that's an insider preview build, installed and opening/running an LC standalone, created with LC 9.6.2, was not a problem. > > Regards, > Matthias > > >> Am 13.03.2022 um 20:31 schrieb J. Landman Gay via use-livecode : >> >> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >> >> -- >> 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 harrison at all-auctions.com Sun Mar 13 16:56:56 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 13 Mar 2022 16:56:56 -0400 Subject: Browser Widget and Images In-Reply-To: <39120EE3-1757-445C-A3D2-44CC3A83B07E@major-k.de> References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> <2da829e7-5f32-7d43-4ec1-df9fbfa9bff6@hyperactivesw.com> <39120EE3-1757-445C-A3D2-44CC3A83B07E@major-k.de> Message-ID: <335151C4-4E52-4BD6-B50F-0DF94061D4EE@all-auctions.com> Hi Klaus, Thanks for answering. So accessing the URL of the image directly in the image object puts the image there, which is a good first step. How is it stored however? If one looks at the image source it still shows the URL. I find I’m unable to paint on top of the image, probably because that would require my being able to modify the online URL which isn’t possible for the obvious reason. I probably need to make a local copy of the image to be able to work on it. Export image? Copy it to the clipboard and paste it elsewhere? Suggestions? Rick > On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode wrote: > > Hi Rick, > >> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode : >> >> I have a large free public domain image displaying nicely in my LC Browser Widget. >> I want to bring the image directly into a LiveCode image object to be able to play around with it. >> What’s the best way to do that? > > why not just set the FILENAME of the image object to the file, either local or online? > If the image is very big, you could group that single image object and add the groups scrollbars. > Or just scale the image... > >> While I was looking around in the dictionary for possibilities, I came >> across some older revBrowser commands. Do they work with with >> the new browser widget or are the two completely different animals? > >> >> Thanks, >> >> Rick > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 bogdanoff at me.com Sun Mar 13 17:13:37 2022 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sun, 13 Mar 2022 14:13:37 -0700 Subject: Browser Widget and Images In-Reply-To: <335151C4-4E52-4BD6-B50F-0DF94061D4EE@all-auctions.com> References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> <76dc824c-f905-8c45-ea4e-bfc37232db8e@sonic.net> <2da829e7-5f32-7d43-4ec1-df9fbfa9bff6@hyperactivesw.com> <39120EE3-1757-445C-A3D2-44CC3A83B07E@major-k.de> <335151C4-4E52-4BD6-B50F-0DF94061D4EE@all-auctions.com> Message-ID: <17EE6F09-7D35-46C1-848F-E57FEE5BA2E2@me.com> Rick, you want to look at the export snapshot or the export image commands for that. pb > On Mar 13, 2022, at 1:56 PM, Rick Harrison via use-livecode wrote: > > Hi Klaus, > > Thanks for answering. > > So accessing the URL of the image directly in the image object > puts the image there, which is a good first step. > > How is it stored however? > > If one looks at the image source it still shows the URL. > > I find I’m unable to paint on top of the image, probably > because that would require my being able to modify the > online URL which isn’t possible for the obvious reason. > > I probably need to make a local copy of the image to > be able to work on it. Export image? Copy it to > the clipboard and paste it elsewhere? > > Suggestions? > > Rick > > > >> On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode wrote: >> >> Hi Rick, >> >>> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode : >>> >>> I have a large free public domain image displaying nicely in my LC Browser Widget. >>> I want to bring the image directly into a LiveCode image object to be able to play around with it. >>> What’s the best way to do that? >> >> why not just set the FILENAME of the image object to the file, either local or online? >> If the image is very big, you could group that single image object and add the groups scrollbars. >> Or just scale the image... >> >>> While I was looking around in the dictionary for possibilities, I came >>> across some older revBrowser commands. Do they work with with >>> the new browser widget or are the two completely different animals? >> >>> >>> Thanks, >>> >>> Rick >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> klaus at major-k.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 13 17:38:48 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2022 16:38:48 -0500 Subject: Windows 11 incompatible? In-Reply-To: References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <6965CCCE-F15C-4DD8-9ECD-FD05C39FB838@m-r-d.de> Message-ID: I'm not sure, but I think it's a Windows 11 update released very recently within the last few days, and a few students have installed it. They say the app won't launch. Windows asks if the user wants to let it make changes to the computer, they click Yes, then nothing happens. We think one student uninstalled and re-installed, and then it worked, but we're not sure about that either. The student asked if data would be lost if they uninstalled (no, it wouldn't) and after that the server started recording data from the student. We can test ourselves tomorrow but I thought I'd find out if anyone else had an issue. On 3/13/22 3:34 PM, Colin Holgate via use-livecode wrote: > You should check for an update, I’m on 22572.100, maybe that’s the update that showed a problem? > > >> On Mar 13, 2022, at 2:27 PM, matthias rebbe via use-livecode wrote: >> >> What do you mean with new Windows 11 update? The update from 10 or lower to 11 or from 11.xxx whatever build to a newer one? >> >> I have here Windows 11 Build 22563, that's an insider preview build, installed and opening/running an LC standalone, created with LC 9.6.2, was not a problem. >> >> Regards, >> Matthias >> >> >>> Am 13.03.2022 um 20:31 schrieb J. Landman Gay via use-livecode : >>> >>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>> >>> -- >>> 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 jacque at hyperactivesw.com Sun Mar 13 17:40:42 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2022 16:40:42 -0500 Subject: Windows 11 incompatible? In-Reply-To: References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> Message-ID: <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> Well, you'd need an account with a school but since the problem is only on launch you might be able to test that part. On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote: > Do you have an app I can test? > > >> On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode wrote: >> >> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >> >> -- >> 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 -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From colinholgate at gmail.com Sun Mar 13 17:53:51 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 13 Mar 2022 15:53:51 -0600 Subject: Windows 11 incompatible? In-Reply-To: <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> Message-ID: <8DD1F023-D960-4FC9-9FC9-CB20B62521E6@gmail.com> I get the “do you want to allow” dialog, and after that I get to the sign in screen ok. > On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode wrote: > > Well, you'd need an account with a school but since the problem is only on launch you might be able to test that part. > > > > On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote: >> Do you have an app I can test? >>> On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode wrote: >>> >>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>> >>> -- >>> 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 > > > -- > 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 colinholgate at gmail.com Sun Mar 13 17:56:04 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 13 Mar 2022 15:56:04 -0600 Subject: Windows 11 incompatible? In-Reply-To: <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> Message-ID: <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> There is an issue on Windows that would show similar symptoms. That is, if a window is opened off screen it’s as if the application has frozen. To see if that is the problem, type Alt-spacebar, M, any arrow key, and move the cursor. The offscreen window will be attached to the cursor, and a left-click will drop it off in the right place. > On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode wrote: > > Well, you'd need an account with a school but since the problem is only on launch you might be able to test that part. > > > > On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote: >> Do you have an app I can test? >>> On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode wrote: >>> >>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>> >>> -- >>> 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 > > > -- > 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 Sun Mar 13 18:04:55 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 13 Mar 2022 23:04:55 +0100 Subject: Windows 11 incompatible? In-Reply-To: References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <6965CCCE-F15C-4DD8-9ECD-FD05C39FB838@m-r-d.de> Message-ID: <3B48C648-2F11-4106-BD6E-579BCF6392AB@m-r-d.de> By the way that question comes normally from the UAC (user account control) prompt. What UAC level did you select in LCs standalone settings under the Windows Tab? > Am 13.03.2022 um 22:38 schrieb J. Landman Gay via use-livecode : > > I'm not sure, but I think it's a Windows 11 update released very recently within the last few days, and a few students have installed it. They say the app won't launch. Windows asks if the user wants to let it make changes to the computer, they click Yes, then nothing happens. > > We think one student uninstalled and re-installed, and then it worked, but we're not sure about that either. The student asked if data would be lost if they uninstalled (no, it wouldn't) and after that the server started recording data from the student. > > We can test ourselves tomorrow but I thought I'd find out if anyone else had an issue. > > On 3/13/22 3:34 PM, Colin Holgate via use-livecode wrote: >> You should check for an update, I’m on 22572.100, maybe that’s the update that showed a problem? >>> On Mar 13, 2022, at 2:27 PM, matthias rebbe via use-livecode wrote: >>> >>> What do you mean with new Windows 11 update? The update from 10 or lower to 11 or from 11.xxx whatever build to a newer one? >>> >>> I have here Windows 11 Build 22563, that's an insider preview build, installed and opening/running an LC standalone, created with LC 9.6.2, was not a problem. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 13.03.2022 um 20:31 schrieb J. Landman Gay via use-livecode : >>>> >>>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>>> >>>> -- >>>> 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 > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sun Mar 13 18:44:48 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 13 Mar 2022 23:44:48 +0100 Subject: Windows 11 incompatible? In-Reply-To: <3B48C648-2F11-4106-BD6E-579BCF6392AB@m-r-d.de> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <6965CCCE-F15C-4DD8-9ECD-FD05C39FB838@m-r-d.de> <3B48C648-2F11-4106-BD6E-579BCF6392AB@m-r-d.de> Message-ID: I've created a small sample Windows app and created 3 standalones using different settings in standalone settings for UAC execution level With 'Default' and 'Same As Invoker' no message comes up running that app on Win 11, but with UAC execution level set to 'Highest Available' i get this message. Pressing Yes button to "allow any changes" opens the app without a problem. > Am 13.03.2022 um 23:04 schrieb matthias rebbe via use-livecode : > > > By the way that question comes normally from the UAC (user account control) prompt. > What UAC level did you select in LCs standalone settings under the Windows Tab? > > > >> Am 13.03.2022 um 22:38 schrieb J. Landman Gay via use-livecode : >> >> I'm not sure, but I think it's a Windows 11 update released very recently within the last few days, and a few students have installed it. They say the app won't launch. Windows asks if the user wants to let it make changes to the computer, they click Yes, then nothing happens. >> >> We think one student uninstalled and re-installed, and then it worked, but we're not sure about that either. The student asked if data would be lost if they uninstalled (no, it wouldn't) and after that the server started recording data from the student. >> >> We can test ourselves tomorrow but I thought I'd find out if anyone else had an issue. >> >> On 3/13/22 3:34 PM, Colin Holgate via use-livecode wrote: >>> You should check for an update, I’m on 22572.100, maybe that’s the update that showed a problem? >>>> On Mar 13, 2022, at 2:27 PM, matthias rebbe via use-livecode wrote: >>>> >>>> What do you mean with new Windows 11 update? The update from 10 or lower to 11 or from 11.xxx whatever build to a newer one? >>>> >>>> I have here Windows 11 Build 22563, that's an insider preview build, installed and opening/running an LC standalone, created with LC 9.6.2, was not a problem. >>>> >>>> Regards, >>>> Matthias >>>> >>>> >>>>> Am 13.03.2022 um 20:31 schrieb J. Landman Gay via use-livecode : >>>>> >>>>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>>>> >>>>> -- >>>>> 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 >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mar 13 19:16:12 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2022 18:16:12 -0500 Subject: Windows 11 incompatible? In-Reply-To: <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> Message-ID: <06cd8af1-554d-cfac-74be-29073e131db2@hyperactivesw.com> Would that be an offscreen window on any app, or just the one you're launching? I'll ask my client to try your trick, we do open a login screen from a substack. The mainstack isn't offscreen though, it's just made invisible. You did get to the login screen though, so...? On 3/13/22 4:56 PM, Colin Holgate via use-livecode wrote: > There is an issue on Windows that would show similar symptoms. That is, if a window is opened off screen it’s as if the application has frozen. > > To see if that is the problem, type Alt-spacebar, M, any arrow key, and move the cursor. The offscreen window will be attached to the cursor, and a left-click will drop it off in the right place. > > >> On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode wrote: >> >> Well, you'd need an account with a school but since the problem is only on launch you might be able to test that part. >> >> >> >> On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote: >>> Do you have an app I can test? >>>> On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode wrote: >>>> >>>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>>> >>>> -- -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Mar 13 19:18:59 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 13 Mar 2022 18:18:59 -0500 Subject: Windows 11 incompatible? In-Reply-To: References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <6965CCCE-F15C-4DD8-9ECD-FD05C39FB838@m-r-d.de> <3B48C648-2F11-4106-BD6E-579BCF6392AB@m-r-d.de> Message-ID: <4efc6932-b208-853d-13e0-22befc2edc4e@hyperactivesw.com> That's good to know, I'm glad it worked for you. The app's UAC is set to "highest available." Should it be something else? Thanks to both you and Colin for taking a look. Until this last week there were no complaints, but now support has had several. The app has been in use for a couple of years now. On 3/13/22 5:44 PM, matthias rebbe via use-livecode wrote: > I've created a small sample Windows app and created 3 standalones using different settings in standalone settings for UAC execution level > With 'Default' and 'Same As Invoker' no message comes up running that app on Win 11, but with UAC execution level set to 'Highest Available' i get this message. Pressing Yes button to "allow any changes" opens the app without a problem. > > > >> Am 13.03.2022 um 23:04 schrieb matthias rebbe via use-livecode : >> >> >> By the way that question comes normally from the UAC (user account control) prompt. >> What UAC level did you select in LCs standalone settings under the Windows Tab? >> >> >> >>> Am 13.03.2022 um 22:38 schrieb J. Landman Gay via use-livecode : >>> >>> I'm not sure, but I think it's a Windows 11 update released very recently within the last few days, and a few students have installed it. They say the app won't launch. Windows asks if the user wants to let it make changes to the computer, they click Yes, then nothing happens. >>> >>> We think one student uninstalled and re-installed, and then it worked, but we're not sure about that either. The student asked if data would be lost if they uninstalled (no, it wouldn't) and after that the server started recording data from the student. >>> >>> We can test ourselves tomorrow but I thought I'd find out if anyone else had an issue. >>> >>> On 3/13/22 3:34 PM, Colin Holgate via use-livecode wrote: >>>> You should check for an update, I’m on 22572.100, maybe that’s the update that showed a problem? >>>>> On Mar 13, 2022, at 2:27 PM, matthias rebbe via use-livecode wrote: >>>>> >>>>> What do you mean with new Windows 11 update? The update from 10 or lower to 11 or from 11.xxx whatever build to a newer one? >>>>> >>>>> I have here Windows 11 Build 22563, that's an insider preview build, installed and opening/running an LC standalone, created with LC 9.6.2, was not a problem. >>>>> >>>>> Regards, >>>>> Matthias >>>>> >>>>> >>>>>> Am 13.03.2022 um 20:31 schrieb J. Landman Gay via use-livecode : >>>>>> >>>>>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>>>>> -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jiml at netrin.com Sun Mar 13 23:53:10 2022 From: jiml at netrin.com (Jim Lambert) Date: Sun, 13 Mar 2022 20:53:10 -0700 Subject: Browser Widget and Images In-Reply-To: References: Message-ID: > > So accessing the URL of the image directly in the image object > puts the image there, which is a good first step. > > How is it stored however? > > If one looks at the image source it still shows the URL. > > I find I?m unable to paint on top of the image, probably > because that would require my being able to modify the > online URL which isn?t possible for the obvious reason. > > I probably need to make a local copy of the image to > be able to work on it. Export image? Copy it to > the clipboard and paste it elsewhere? > > Suggestions? Rick, set the imagedata of img "myImage" to the imagedata of img "myImage" Will replace the referenced image with the actual content of that image. In other words the image will now be local and you can then manipulate its data. No need for snapshots. Although they work too! Jim Lambert From klaus at major-k.de Mon Mar 14 05:04:47 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 14 Mar 2022 10:04:47 +0100 Subject: Browser Widget and Images In-Reply-To: References: Message-ID: <1D6B6AEC-F29A-4EB2-96D5-D2DA4BDC3675@major-k.de> Hi Rick, > Am 14.03.2022 um 04:53 schrieb Jim Lambert via use-livecode : > >> So accessing the URL of the image directly in the image object >> puts the image there, which is a good first step. >> >> How is it stored however? >> >> If one looks at the image source it still shows the URL. >> >> I find I?m unable to paint on top of the image, probably >> because that would require my being able to modify the >> online URL which isn?t possible for the obvious reason. >> >> I probably need to make a local copy of the image to >> be able to work on it. Export image? Copy it to >> the clipboard and paste it elsewhere? >> >> Suggestions? > > Rick, > set the imagedata of img "myImage" to the imagedata of img "myImage" what Jim said! :-) Thisw way the image becomes part of the stack as if "imported as control" and you can paint on it or whatever, which is not possible with referenced images, be they local or online. > Will replace the referenced image with the actual content of that image. > In other words the image will now be local and you can then manipulate its data. > No need for snapshots. Although they work too! > > Jim Lambert Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From matthias_livecode_150811 at m-r-d.de Mon Mar 14 07:31:40 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 14 Mar 2022 12:31:40 +0100 Subject: Windows EXE with browser about 160 MB? In-Reply-To: <038C92A3-8311-4079-AFB7-7849B37374BA@major-k.de> References: <038C92A3-8311-4079-AFB7-7849B37374BA@major-k.de> Message-ID: I would say, this is because Microsoft did not embed CEF into Windows. So if you customers are asking why, tell them "because they are using Windows" and if they want to use a smaller download file they should use macOS. ;) I for myself would not have a problem with a download size of 170MB for a program i want to use. Compared to Adobe, MS Office and other programs, 170MB are not worth moaning about But that's my opinion. Matthias > Am 13.03.2022 um 18:14 schrieb Klaus major-k via use-livecode : > > Hi all, > > I just created a Windows EXE from my stack and was shocked to see > that the resulting folder is 150 MB (32 bit) resp. 170 MB (64 bit)!? > > I thought the Windows version of the browser widget would also "hook" > somehow into the system web engine like the Mac version does, but > obviously I was wrong... :-/ > > How can we make a good case for this to our customers? 8-) > I just want to display PDF files, not the whole internet. > > Too bad LC does not sell the PDF widget separately... > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 klaus at major-k.de Mon Mar 14 08:19:05 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 14 Mar 2022 13:19:05 +0100 Subject: LC 10 DP2, does it already support the current multimedia architecture on Windows? Message-ID: Hi all, the subject says it all. Means do we still need to install e.g. the LIBAV codecs to display MP4 video files? Or is this newer feature not yet implemented in DP2? Thanks for any hints. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Mon Mar 14 11:29:48 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 14 Mar 2022 15:29:48 +0000 Subject: Speaking of Filter and Match... In-Reply-To: <328EDA05-3ED2-4F3D-BF99-9C43C1B39C44@mac.com> References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> <328EDA05-3ED2-4F3D-BF99-9C43C1B39C44@mac.com> Message-ID: <863166EE-5E6D-4047-9259-7B200F438DBD@iotecdigital.com> They depend on the fact that arrays cannot have duplicate keys. Dumping the data into an SQL database and querying using the UNIQUE statement would do it too. SELECT * UNIQUE from ... Bob S > On Mar 13, 2022, at 13:16 , Roger Guay via use-livecode wrote: > > Thank you Jacqueline, Alex and Terry. Very interesting new (for me) methods that I would never have come up with on my own. > > Roger > >> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode wrote: >> >> On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote: >>> I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? >> >> Making the list into an array is the easiest way but as mentioned, it will destroy the original order. If the order is important then you can restore it with a custom sort function. Here's my test handlers: >> >> >> on mouseUp >> put fld 1 into tData -- we keep this as a reference to the original order >> put tData into tTrimmedData -- this one will change >> split tTrimmedData by cr as set -- removes duplicates >> put keys(tTrimmedData) into tTrimmedData -- convert to a text list >> sort tTrimmedData numeric by origOrder(each,tData) >> put tTrimmedData into fld 1 >> end mouseUp >> >> function origOrder pWord, @pData >> set wholematches to true -- may not matter, depends on the data >> return lineoffset(pWord, pData) >> end origOrder >> >> Field 1 contains lines in random order with duplicates. >> >> -- >> 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 bobsneidar at iotecdigital.com Mon Mar 14 11:41:59 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 14 Mar 2022 15:41:59 +0000 Subject: Windows 11 incompatible? In-Reply-To: <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> Message-ID: <7FA9330F-230D-447A-ABD1-6871A82C94E8@iotecdigital.com> Is there a Macintosh equivalent to that?? Bob S > On Mar 13, 2022, at 14:56 , Colin Holgate via use-livecode wrote: > > There is an issue on Windows that would show similar symptoms. That is, if a window is opened off screen it’s as if the application has frozen. > > To see if that is the problem, type Alt-spacebar, M, any arrow key, and move the cursor. The offscreen window will be attached to the cursor, and a left-click will drop it off in the right place. > > >> On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode wrote: >> >> Well, you'd need an account with a school but since the problem is only on launch you might be able to test that part. >> >> >> >> On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote: >>> Do you have an app I can test? >>>> On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode wrote: >>>> >>>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>>> >>>> -- >>>> 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 >> >> >> -- >> 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 craig at starfirelighting.com Mon Mar 14 11:47:48 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 14 Mar 2022 11:47:48 -0400 Subject: Windows 11 incompatible? In-Reply-To: <7FA9330F-230D-447A-ABD1-6871A82C94E8@iotecdigital.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> <7FA9330F-230D-447A-ABD1-6871A82C94E8@iotecdigital.com> Message-ID: <2D290BED-D6FE-47D5-A671-A4FE70909ED6@starfirelighting.com> Hi. Do I understand that, on Windows, typing those keys males the frontmost window track the cursor??? Craig > On Mar 14, 2022, at 11:41 AM, Bob Sneidar via use-livecode wrote: > > Is there a Macintosh equivalent to that?? > > Bob S > > >> On Mar 13, 2022, at 14:56 , Colin Holgate via use-livecode wrote: >> >> There is an issue on Windows that would show similar symptoms. That is, if a window is opened off screen it’s as if the application has frozen. >> >> To see if that is the problem, type Alt-spacebar, M, any arrow key, and move the cursor. The offscreen window will be attached to the cursor, and a left-click will drop it off in the right place. >> >> >>> On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode wrote: >>> >>> Well, you'd need an account with a school but since the problem is only on launch you might be able to test that part. >>> >>> >>> >>> On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote: >>>> Do you have an app I can test? >>>>> On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode wrote: >>>>> >>>>> We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else seeing this? If so, do you know what the problem is? >>>>> >>>>> -- >>>>> 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 >>> >>> >>> -- >>> 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 From bobsneidar at iotecdigital.com Mon Mar 14 11:48:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 14 Mar 2022 15:48:00 +0000 Subject: Speaking of Filter and Match... In-Reply-To: <863166EE-5E6D-4047-9259-7B200F438DBD@iotecdigital.com> References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> <328EDA05-3ED2-4F3D-BF99-9C43C1B39C44@mac.com> <863166EE-5E6D-4047-9259-7B200F438DBD@iotecdigital.com> Message-ID: <7817B331-9CB2-4BF7-BD1A-57891498CAE3@iotecdigital.com> Actually I must correct myself. That will not work because the unique value column (typically an autoincrementing integer) will not be unique for each record. Instead, assuming your lines of text are in a column called "textdata" SELECT textdata UNIQUE FROM... Bob S > On Mar 14, 2022, at 08:29 , Bob Sneidar via use-livecode wrote: > > They depend on the fact that arrays cannot have duplicate keys. Dumping the data into an SQL database and querying using the UNIQUE statement would do it too. > > SELECT * UNIQUE from ... > > Bob S > > > >> On Mar 13, 2022, at 13:16 , Roger Guay via use-livecode wrote: >> >> Thank you Jacqueline, Alex and Terry. Very interesting new (for me) methods that I would never have come up with on my own. >> >> Roger >> >>> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode wrote: >>> >>> On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote: >>>> I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? >>> >>> Making the list into an array is the easiest way but as mentioned, it will destroy the original order. If the order is important then you can restore it with a custom sort function. Here's my test handlers: >>> >>> >>> on mouseUp >>> put fld 1 into tData -- we keep this as a reference to the original order >>> put tData into tTrimmedData -- this one will change >>> split tTrimmedData by cr as set -- removes duplicates >>> put keys(tTrimmedData) into tTrimmedData -- convert to a text list >>> sort tTrimmedData numeric by origOrder(each,tData) >>> put tTrimmedData into fld 1 >>> end mouseUp >>> >>> function origOrder pWord, @pData >>> set wholematches to true -- may not matter, depends on the data >>> return lineoffset(pWord, pData) >>> end origOrder >>> >>> Field 1 contains lines in random order with duplicates. >>> >>> -- >>> 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 From colinholgate at gmail.com Mon Mar 14 11:52:51 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 14 Mar 2022 09:52:51 -0600 Subject: Windows 11 incompatible? In-Reply-To: <2D290BED-D6FE-47D5-A671-A4FE70909ED6@starfirelighting.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> <7FA9330F-230D-447A-ABD1-6871A82C94E8@iotecdigital.com> <2D290BED-D6FE-47D5-A671-A4FE70909ED6@starfirelighting.com> Message-ID: <6C9E849B-669C-4F33-909C-2B0A5B1F943A@gmail.com> Yes it does. The M is for Move, if you’re working on a non-English system you would type the first letter for Move in your language. > On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode wrote: > > Do I understand that, on Windows, typing those keys makes the frontmost window track the cursor??? From craig at starfirelighting.com Mon Mar 14 13:25:55 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 14 Mar 2022 13:25:55 -0400 Subject: Windows 11 incompatible? In-Reply-To: <6C9E849B-669C-4F33-909C-2B0A5B1F943A@gmail.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> <7FA9330F-230D-447A-ABD1-6871A82C94E8@iotecdigital.com> <2D290BED-D6FE-47D5-A671-A4FE70909ED6@starfirelighting.com> <6C9E849B-669C-4F33-909C-2B0A5B1F943A@gmail.com> Message-ID: <69D302B4-F418-4502-8D19-BA41B6144B2E@starfirelighting.com> Hi, Colin. Hmmm. I assume that all four of those keys are pressed at the same time? Craig > On Mar 14, 2022, at 11:52 AM, Colin Holgate via use-livecode wrote: > > Yes it does. The M is for Move, if you’re working on a non-English system you would type the first letter for Move in your language. > > >> On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode wrote: >> >> Do I understand that, on Windows, typing those keys makes the frontmost window track the cursor??? > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 14 13:29:31 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 14 Mar 2022 11:29:31 -0600 Subject: Windows 11 incompatible? In-Reply-To: <69D302B4-F418-4502-8D19-BA41B6144B2E@starfirelighting.com> References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> <7FA9330F-230D-447A-ABD1-6871A82C94E8@iotecdigital.com> <2D290BED-D6FE-47D5-A671-A4FE70909ED6@starfirelighting.com> <6C9E849B-669C-4F33-909C-2B0A5B1F943A@gmail.com> <69D302B4-F418-4502-8D19-BA41B6144B2E@starfirelighting.com> Message-ID: No, you press Alt and tap the spacebar. Let go of both keys, then tap M, and tap any arrow key. Move the cursor to see the frontmost window is attached. > On Mar 14, 2022, at 11:25 AM, Craig Newman via use-livecode wrote: > > Hi, Colin. > > Hmmm. I assume that all four of those keys are pressed at the same time? > > Craig > >> On Mar 14, 2022, at 11:52 AM, Colin Holgate via use-livecode wrote: >> >> Yes it does. The M is for Move, if you’re working on a non-English system you would type the first letter for Move in your language. >> >> >>> On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode wrote: >>> >>> Do I understand that, on Windows, typing those keys makes the frontmost window track the cursor??? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 ambassador at fourthworld.com Mon Mar 14 13:30:45 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 14 Mar 2022 10:30:45 -0700 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <91BD75EE-8752-4FCA-BA33-2332AB7A1597@m-r-d.de> References: <91BD75EE-8752-4FCA-BA33-2332AB7A1597@m-r-d.de> Message-ID: <93230af0-b6ca-9ea4-1210-6aa8998b3e62@fourthworld.com> matthias wrote: > As more and more servers do not allow remote MySQL access due to > security restrictions... It's almost like experienced hosting vendors and even the MySQL team itself are trying to tell us something... How does most of the world outside of the LC community handle remote DB CRUD operations? -- 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 benr_mc at cogapp.com Mon Mar 14 14:24:57 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 14 Mar 2022 18:24:57 +0000 Subject: revOpenDatabase over SSH tunnel? In-Reply-To: <93230af0-b6ca-9ea4-1210-6aa8998b3e62@fourthworld.com> References: <91BD75EE-8752-4FCA-BA33-2332AB7A1597@m-r-d.de> <93230af0-b6ca-9ea4-1210-6aa8998b3e62@fourthworld.com> Message-ID: <5683241b-56ba-bfb1-e417-73c74b5dadc8@cogapp.com> I can't speak for most of the world, but in the past where we've directly connected to MySQL over the internet that's always been limited by IP (which as you doubtless know is built-in to the permissions system). The difference for me in this case is that instead of talking to a dedicated server, we're accessing a shared managed database service - hence these additional measures make sense. On 14/03/2022 17:30, Richard Gaskin via use-livecode wrote: > matthias wrote: > > > As more and more servers do not allow remote MySQL access due to > > security restrictions... > > It's almost like experienced hosting vendors and even the MySQL team itself > are trying to tell us something... > > How does most of the world outside of the LC community handle remote DB CRUD > operations? > From bobsneidar at iotecdigital.com Mon Mar 14 14:55:27 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 14 Mar 2022 18:55:27 +0000 Subject: Windows 11 incompatible? In-Reply-To: References: <06a0b082-c692-f49f-e2a7-b4b006363aea@hyperactivesw.com> <9916e394-8456-882a-c321-69208af23164@hyperactivesw.com> <61B9D2C8-A11C-49C2-92B1-DC0E66850076@gmail.com> <7FA9330F-230D-447A-ABD1-6871A82C94E8@iotecdigital.com> <2D290BED-D6FE-47D5-A671-A4FE70909ED6@starfirelighting.com> <6C9E849B-669C-4F33-909C-2B0A5B1F943A@gmail.com> <69D302B4-F418-4502-8D19-BA41B6144B2E@starfirelighting.com> Message-ID: <45B74C00-9393-48BF-9125-4CF5A6DD29A6@iotecdigital.com> Ah thanks! That worked. Unfortunately there is no alternative for the Mac. :-( Bob S > On Mar 14, 2022, at 10:29 , Colin Holgate via use-livecode wrote: > > No, you press Alt and tap the spacebar. Let go of both keys, then tap M, and tap any arrow key. Move the cursor to see the frontmost window is attached. > > >> On Mar 14, 2022, at 11:25 AM, Craig Newman via use-livecode wrote: >> >> Hi, Colin. >> >> Hmmm. I assume that all four of those keys are pressed at the same time? >> >> Craig >> >>> On Mar 14, 2022, at 11:52 AM, Colin Holgate via use-livecode wrote: >>> >>> Yes it does. The M is for Move, if you’re working on a non-English system you would type the first letter for Move in your language. >>> >>> >>>> On Mar 14, 2022, at 9:47 AM, Craig Newman via use-livecode wrote: >>>> >>>> Do I understand that, on Windows, typing those keys makes the frontmost window track the cursor??? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Mon Mar 14 15:09:29 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 14 Mar 2022 14:09:29 -0500 Subject: Speed up a slow loop In-Reply-To: <508346a4-da27-c2d2-8b94-5df23dfb00aa@hyperactivesw.com> References: <1979109667.66389.1646793155017@mail.yahoo.com> <81210ea8-97a4-ceae-7ce4-a79a0a9b2ccc@tweedly.net> <508346a4-da27-c2d2-8b94-5df23dfb00aa@hyperactivesw.com> Message-ID: <63ae34cb-979e-8b6e-0237-bafc4ad42562@hyperactivesw.com> One last thing. Scott Morrow was good enough to build for iOS and send a screenshot. I was very pleased to see it went cross-platform without any significant problems (thank you LC!) but the custom font was missing, which makes sense since I didn't include any external resources. That reminded me that it probably didn't have an icon either. I've updated the zip file download to include the resources needed; icons for all platforms (but the Windows one is very old) and a copy of the font. Update your standalone settings to accomodate the paths you need. Thanks guys. On 3/12/22 3:32 PM, J. Landman Gay via use-livecode wrote: > I have to thank everyone who helped me figure out my Boggle game. I've put the current file on > Google Drive for anyone who wants to take a look. The scripts are open and I think I've removed > all the testing cruft that accumulated over the last couple of weeks. > > I'd be interested in any feedback or improvements. There's a Read Me in the zip file with more > info. > > > > Thanks so much to all! Contributors have been credited in the scripts. > > Jacque > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From irog at mac.com Mon Mar 14 15:14:23 2022 From: irog at mac.com (Roger Guay) Date: Mon, 14 Mar 2022 12:14:23 -0700 Subject: Speaking of Filter and Match... In-Reply-To: <7817B331-9CB2-4BF7-BD1A-57891498CAE3@iotecdigital.com> References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> <328EDA05-3ED2-4F3D-BF99-9C43C1B39C44@mac.com> <863166EE-5E6D-4047-9259-7B200F438DBD@iotecdigital.com> <7817B331-9CB2-4BF7-BD1A-57891498CAE3@iotecdigital.com> Message-ID: Thanks ver much for your clarifications, Bob although I’m not sure I understand your correction. Roger > On Mar 14, 2022, at 8:48 AM, Bob Sneidar via use-livecode wrote: > > Actually I must correct myself. That will not work because the unique value column (typically an autoincrementing integer) will not be unique for each record. Instead, assuming your lines of text are in a column called "textdata" > > SELECT textdata UNIQUE FROM... > > Bob S > > >> On Mar 14, 2022, at 08:29 , Bob Sneidar via use-livecode wrote: >> >> They depend on the fact that arrays cannot have duplicate keys. Dumping the data into an SQL database and querying using the UNIQUE statement would do it too. >> >> SELECT * UNIQUE from ... >> >> Bob S >> >> >> >>> On Mar 13, 2022, at 13:16 , Roger Guay via use-livecode wrote: >>> >>> Thank you Jacqueline, Alex and Terry. Very interesting new (for me) methods that I would never have come up with on my own. >>> >>> Roger >>> >>>> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode wrote: >>>> >>>> On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote: >>>>> I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? >>>> >>>> Making the list into an array is the easiest way but as mentioned, it will destroy the original order. If the order is important then you can restore it with a custom sort function. Here's my test handlers: >>>> >>>> >>>> on mouseUp >>>> put fld 1 into tData -- we keep this as a reference to the original order >>>> put tData into tTrimmedData -- this one will change >>>> split tTrimmedData by cr as set -- removes duplicates >>>> put keys(tTrimmedData) into tTrimmedData -- convert to a text list >>>> sort tTrimmedData numeric by origOrder(each,tData) >>>> put tTrimmedData into fld 1 >>>> end mouseUp >>>> >>>> function origOrder pWord, @pData >>>> set wholematches to true -- may not matter, depends on the data >>>> return lineoffset(pWord, pData) >>>> end origOrder >>>> >>>> Field 1 contains lines in random order with duplicates. >>>> >>>> -- >>>> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon Mar 14 15:19:58 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 14 Mar 2022 15:19:58 -0400 Subject: Browser Widget and Images In-Reply-To: <1D6B6AEC-F29A-4EB2-96D5-D2DA4BDC3675@major-k.de> References: <1D6B6AEC-F29A-4EB2-96D5-D2DA4BDC3675@major-k.de> Message-ID: <5FD51BAF-93A0-47DB-A2D9-0F9897E08B06@all-auctions.com> Thanks! I had forgotten about "import as control" and about set the imagedata of image “my image”. set the imagedata doesn’t fit to the image’s object size though. I would probably have to resize the image beforehand. I also came across: put URL "binfile:///ExportedImageFile.png" into image “my image” The above does fit the image size nicely and I can paint on it etc. Thanks for all of your help! Rick > On Mar 14, 2022, at 5:04 AM, Klaus major-k via use-livecode wrote: > >> set the imagedata of img "myImage" to the imagedata of img "myImage" > > what Jim said! :-) > > Thisw way the image becomes part of the stack as if "imported as control" From bobsneidar at iotecdigital.com Mon Mar 14 17:37:34 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 14 Mar 2022 21:37:34 +0000 Subject: Speaking of Filter and Match... In-Reply-To: References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> <328EDA05-3ED2-4F3D-BF99-9C43C1B39C44@mac.com> <863166EE-5E6D-4047-9259-7B200F438DBD@iotecdigital.com> <7817B331-9CB2-4BF7-BD1A-57891498CAE3@iotecdigital.com> Message-ID: The UNIQUE clause is the UNIQUE combination of ALL the columns put together. If I used: SELECT city,state UNIQUE FROM zip codes where state = 'CA' I would get every unique city/state combination in CA, whereas if I used: SELECT state UNIQUE from zip codes where state = 'CA' I would get the first record matching 'CA', that is one record. There is a way to get the city and state for the one record (why anyone would want to I don't know) by creating a join to the same table and using the UNIQUE clause in the join. I am not that good at join syntax, so I won't attempt it here and embarrass myself. :-) BTW you can get the last matching record by doing an ascending sort and using LIMIT 1, but I think MS SQL suffers from not having a limit clause. Not sure why. Instead you use the TOP clause. Bob S > On Mar 14, 2022, at 12:14 , Roger Guay via use-livecode wrote: > >> Actually I must correct myself. That will not work because the unique value column (typically an autoincrementing integer) will not be unique for each record. Instead, assuming your lines of text are in a column called "textdata" >> >> SELECT textdata UNIQUE FROM... >> >> Bob S From irog at mac.com Mon Mar 14 18:31:59 2022 From: irog at mac.com (Roger Guay) Date: Mon, 14 Mar 2022 15:31:59 -0700 Subject: Speaking of Filter and Match... In-Reply-To: References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> <328EDA05-3ED2-4F3D-BF99-9C43C1B39C44@mac.com> <863166EE-5E6D-4047-9259-7B200F438DBD@iotecdigital.com> <7817B331-9CB2-4BF7-BD1A-57891498CAE3@iotecdigital.com> Message-ID: <8DCD9D3A-6F39-477D-92EB-F269104C39C4@mac.com> Ah, I see. Thank you again, Bob. Roger > On Mar 14, 2022, at 2:37 PM, Bob Sneidar via use-livecode wrote: > > The UNIQUE clause is the UNIQUE combination of ALL the columns put together. If I used: > > SELECT city,state UNIQUE FROM zip codes where state = 'CA' > > I would get every unique city/state combination in CA, whereas if I used: > > SELECT state UNIQUE from zip codes where state = 'CA' > > I would get the first record matching 'CA', that is one record. > > There is a way to get the city and state for the one record (why anyone would want to I don't know) by creating a join to the same table and using the UNIQUE clause in the join. I am not that good at join syntax, so I won't attempt it here and embarrass myself. :-) > > BTW you can get the last matching record by doing an ascending sort and using LIMIT 1, but I think MS SQL suffers from not having a limit clause. Not sure why. Instead you use the TOP clause. > > Bob S > > >> On Mar 14, 2022, at 12:14 , Roger Guay via use-livecode wrote: >> >>> Actually I must correct myself. That will not work because the unique value column (typically an autoincrementing integer) will not be unique for each record. Instead, assuming your lines of text are in a column called "textdata" >>> >>> SELECT textdata UNIQUE FROM... >>> >>> 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 dick.kriesel at mail.com Mon Mar 14 20:08:56 2022 From: dick.kriesel at mail.com (Dick Kriesel) Date: Mon, 14 Mar 2022 17:08:56 -0700 Subject: Speaking of Filter and Match... In-Reply-To: References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> Message-ID: <0C233E07-A4AB-41F7-8DDC-7F7C9E5B8CD4@mail.com> > On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode wrote: > > On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote: >> I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? > > Making the list into an array is the easiest way but as mentioned, it will destroy the original order. If the order is important then you can restore it with a custom sort function... > Since order must be maintained, it’s probably faster not to split and sort, and faster not to scan the list repeatedly using lineOffset or contains. You could do it like this: command removeDuplicates pDelimitedList, pDelimiter local tArray, tList set the lineDelimiter to pDelimiter repeat for each line tLine in pDelimitedList if not tArray[tLine] then -- i.e., if this line hasn't appeared already, then ... put true into tArray[tLine] put tLine & pDelimiter after tList end if end repeat delete last char of tList return tList for value end removeDuplicates — Dick From paulmcclernan at gmail.com Tue Mar 15 10:13:59 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Tue, 15 Mar 2022 10:13:59 -0400 Subject: Standalone build under Big Sur on M1 Airbook In-Reply-To: References: <092ad76f-20ef-accb-e48a-9e01fc276eee@researchware.com> <8190dbb4-bd81-0c2a-d0da-0be5b300c02e@pair.com> Message-ID: <1C86673D-8FCD-4E3D-AF6D-8EF4004C9C56@gmail.com> > On Feb 27, 2022, at 12:51 PM, Paul Dupuis via use-livecode > wrote: > > On 2/27/2022 12:18 PM, Curry Kenworthy via use-livecode wrote: >> >> Paul: >> >> > building an app under Big Sur on a new M1 Airbook >> >> > macOS told me the command 'lipo' was not installed >> >> > Has anyone else seen this? >> >> I only noticed this thread today, but FWIW ... Yes! >> Exactly the same when setting up M1 Mac mini. >> >> I think I had to install a recent xCode, after >> first updating to a newer version of Big Sur. >> > > I posted about this not because it was a problem - the OS asked whether I wanted to download the required tool and did when I told it to and LiveCode then built everything correctly. I mentioned it in that I would have expected LiveCode to have either preemptively downloaded any utility it needs to build standalones if it was not already installed OR presented some sort of alert noting that an OS utility was missing when I tried to first build a standalone and that I SHOULD click download. I presume, if I had clicked NO to the download questions from macOS, there may have been a problem building my standalone. Or perhaps not? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode It might still build but the standalone may include some byte code for architectures that aren’t your intended target, which I don’t think is really a problem unless you’re uploading your app for the App Store, or perhaps if the extra code adds significantly to the file size (not likely) and you want to keep the DL size down. Paul McClernan GitHub: https://github.com/PaulMcClernan From paulmcclernan at gmail.com Tue Mar 15 10:46:29 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Tue, 15 Mar 2022 10:46:29 -0400 Subject: Sharing a desktop app, or with beta testers In-Reply-To: <0B22D117-FBC6-4EE0-A9FE-793FFC824A32@gmail.com> References: <2b5b3093-228f-0076-212b-9715af28276c@hyperactivesw.com> <81779352-35C8-4FD2-A211-37272C5B3075@iotecdigital.com> <0B22D117-FBC6-4EE0-A9FE-793FFC824A32@gmail.com> Message-ID: <910507DB-454E-4576-A470-4606351D9863@gmail.com> Late to this thread, but I’d like to add some FYI: You can get a free Apple Dev account, which allows you to code-sign (but not notarize, only Apple can do that) Mac apps and up to 5 or so iOS apps (which you would have to "side load” somehow unless you jailbreak your iDevice). However, without the notarization this approach doesn’t seem much different than self-signing, which I’m pretty sure you can generate a certificate for that with the KeyChain app, even without even an Apple Account, and then you could get friends, family and whomever to trust your certificate on their Macs. I believe (unless your certificate is trusted on the host computer) the only advantage to signing over completely unsigned code is that there are less warning dialogs popping up before the app will launch. Paul McClernan GitHub: https://github.com/PaulMcClernan > On Jan 26, 2022, at 2:29 PM, William Prothero via use-livecode wrote: > > Folks: > Sorry for this question which probably has been answered many times, but …. I’m trying not to waste my day searching around. > > What’s the best way to send a desktop app on Apple OS 12.1 to a friend or beta tester? I sent an app and a security issue came up. > > Thanks, > Bill P > > William A. Prothero, Ph.D. > University of California, Santa Barbara Dept. of Earth Sciences (Emeritus) > Santa Barbara, CA. 93105 > http://earthlearningsolutions.org/ > _______________________________________________ > use-livecode mailing list > use-livecode 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 Tue Mar 15 11:46:22 2022 From: irog at mac.com (Roger Guay) Date: Tue, 15 Mar 2022 08:46:22 -0700 Subject: Speaking of Filter and Match... In-Reply-To: <0C233E07-A4AB-41F7-8DDC-7F7C9E5B8CD4@mail.com> References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> <0C233E07-A4AB-41F7-8DDC-7F7C9E5B8CD4@mail.com> Message-ID: Hi Dick Thank you so much for your time in sending me this solution. I’ve already learned a lot and I have yet to actually play with it! Cheers, Roger > On Mar 14, 2022, at 5:08 PM, Dick Kriesel via use-livecode wrote: > > > >> On Mar 13, 2022, at 1:05 PM, J. Landman Gay via use-livecode wrote: >> >> On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote: >>> I have a field with about a thousand lines with many duplicate lines, and I want to delete the duplicates. Seems like this should be simple but I am running around in circles. Can anyone help me with this? >> >> Making the list into an array is the easiest way but as mentioned, it will destroy the original order. If the order is important then you can restore it with a custom sort function... >> > > > Since order must be maintained, it’s probably faster not to split and sort, and faster not to scan the list repeatedly using lineOffset or contains. > You could do it like this: > > command removeDuplicates pDelimitedList, pDelimiter > local tArray, tList > set the lineDelimiter to pDelimiter > repeat for each line tLine in pDelimitedList > if not tArray[tLine] then -- i.e., if this line hasn't appeared already, then ... > put true into tArray[tLine] > put tLine & pDelimiter after tList > end if > end repeat > delete last char of tList > return tList for value > end removeDuplicates > > — Dick > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 15 13:00:38 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 15 Mar 2022 12:00:38 -0500 Subject: Speaking of Filter and Match... In-Reply-To: <0C233E07-A4AB-41F7-8DDC-7F7C9E5B8CD4@mail.com> References: <35804E75-4E8A-44CF-9515-8AE611D7976A@elementarysoftware.com> <1166D1E8-DE18-4AF5-B774-A9DBC90DD6DE@mac.com> <0D0C4506-A729-4B7B-8005-C31C8E432568@mac.com> <0C233E07-A4AB-41F7-8DDC-7F7C9E5B8CD4@mail.com> Message-ID: <17f8e8642f0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Good idea, thanks Dick. Your scripts are always so elegant. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 14, 2022 7:11:13 PM Dick Kriesel via use-livecode wrote: > > Since order must be maintained, its probably faster not to split and sort, > and faster not to scan the list repeatedly using lineOffset or contains. > You could do it like this: > > command removeDuplicates pDelimitedList, pDelimiter > local tArray, tList > set the lineDelimiter to pDelimiter > repeat for each line tLine in pDelimitedList > if not tArray[tLine] then -- i.e., if this line hasn't appeared already, > then ... > put true into tArray[tLine] > put tLine & pDelimiter after tList > end if > end repeat > delete last char of tList > return tList for value > end removeDuplicates > > Dick From jacque at hyperactivesw.com Tue Mar 15 14:53:37 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 15 Mar 2022 13:53:37 -0500 Subject: Speed up a slow loop In-Reply-To: <63ae34cb-979e-8b6e-0237-bafc4ad42562@hyperactivesw.com> References: <1979109667.66389.1646793155017@mail.yahoo.com> <81210ea8-97a4-ceae-7ce4-a79a0a9b2ccc@tweedly.net> <508346a4-da27-c2d2-8b94-5df23dfb00aa@hyperactivesw.com> <63ae34cb-979e-8b6e-0237-bafc4ad42562@hyperactivesw.com> Message-ID: On 3/14/22 2:09 PM, J. Landman Gay via use-livecode wrote: > I've updated the zip file download to include the resources needed; icons for all platforms > (but the Windows one is very old) and a copy of the font. Update your standalone settings to > accomodate the paths you need. Sorry, wrong link originally, here's the correct one: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bdrunrev at gmail.com Tue Mar 15 16:08:15 2022 From: bdrunrev at gmail.com (Bernard Devlin) Date: Tue, 15 Mar 2022 20:08:15 +0000 Subject: 10.0.0-dp-2 html5 and liburlLastRHHeaders() Message-ID: The only headers returned from a POST command are content-length content-type (in the IDE all the headers sent by the server are returned by this function). Seems a bit strange to me, as there may well be other important meta-information carried in headers (for example, Date:, at the very least could be an important header). I can't understand the logic behind these other headers being stripped out. This oddity is not documented in the Dictionary nor the Release Notes. Should this be submitted as a bug? Regards Bernard From bobsneidar at iotecdigital.com Tue Mar 15 17:50:17 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Mar 2022 21:50:17 +0000 Subject: Excel_Lib on Mac Message-ID: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> Hi all. I am trying to incorporate Excel_Lib into a project. There is a command to open a spreadsheet with Excel on a Mac, and ONLY Macs can use this command. It looks however like the library works with Windows too. My issue is that I am getting an error, "XCELLibErr: Not authorized to send Apple events to Microsoft Excel." So first, is there an easy way, like a shell command to do this? And then if not, is using this library dependent on Apple events on a Mac? Bob S From bobsneidar at iotecdigital.com Tue Mar 15 18:30:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 15 Mar 2022 22:30:00 +0000 Subject: Excel_Lib on Mac In-Reply-To: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> Message-ID: <721C5720-5007-485F-95B2-6358CE711808@iotecdigital.com> I did some research. The Macintosh can no longer send apple events to Excel, or indeed any other Microsoft product, due to the fact that Apple Sandboxing prevents it. There ought, I suppose, to be a way to grant this access, but Appleand/or Microsoft has decided to prevent it, making the excel_lib worthless on MacOS. The more programmers and politicians set about to help me, the less I am able to help myself. Bob S > On Mar 15, 2022, at 14:50 , Bob Sneidar via use-livecode wrote: > > Hi all. > > I am trying to incorporate Excel_Lib into a project. There is a command to open a spreadsheet with Excel on a Mac, and ONLY Macs can use this command. It looks however like the library works with Windows too. > > My issue is that I am getting an error, "XCELLibErr: Not authorized to send Apple events to Microsoft Excel." So first, is there an easy way, like a shell command to do this? And then if not, is using this library dependent on Apple events on a Mac? > > 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 neville.smythe at optusnet.com.au Tue Mar 15 20:40:02 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 16 Mar 2022 11:40:02 +1100 Subject: Speaking of Filter and Match... In-Reply-To: References: Message-ID: <500DD6D0-E14B-4D81-99FD-7293A5F69B0B@optusnet.com.au> I just ran a speed test on Dick Kriesel’s method for removing duplicates and keeping the original sort order. It is indeed faster than Jacque’s method Sorting 11000 lines of text including 1000 duplicated lines: Jacque’s method: 2.807 seconds [lineoffset is really slow, and in effect the text is scanned 3 times] Kriesel method: 0.017 seconds Bu what really made my eyes pop — unless I am doing something wrong, it is faster than using the accepted wisdom of just using “split by cr as set; put the keys” method of removing duplicates and leaving the text unsorted Split as set, don’t care about sort order method: 0.024 seconds I can’t see anything wrong with my code, but can someone independently confirm this?? Neville From jacque at hyperactivesw.com Wed Mar 16 00:07:18 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 15 Mar 2022 23:07:18 -0500 Subject: Excel_Lib on Mac In-Reply-To: <721C5720-5007-485F-95B2-6358CE711808@iotecdigital.com> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <721C5720-5007-485F-95B2-6358CE711808@iotecdigital.com> Message-ID: <17f90e89cf0.27ee.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I think it's been a while since any app can send AppleScript to any other app. Malware, you know. Some people ruin it for all of us. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 15, 2022 5:32:16 PM Bob Sneidar via use-livecode wrote: > I did some research. The Macintosh can no longer send apple events to > Excel, or indeed any other Microsoft product, due to the fact that Apple > Sandboxing prevents it. There ought, I suppose, to be a way to grant this > access, but Appleand/or Microsoft has decided to prevent it, making the > excel_lib worthless on MacOS. > > The more programmers and politicians set about to help me, the less I am > able to help myself. > > Bob S > > >> On Mar 15, 2022, at 14:50 , Bob Sneidar via use-livecode >> wrote: >> >> Hi all. >> >> I am trying to incorporate Excel_Lib into a project. There is a command to >> open a spreadsheet with Excel on a Mac, and ONLY Macs can use this command. >> It looks however like the library works with Windows too. >> >> My issue is that I am getting an error, "XCELLibErr: Not authorized to send >> Apple events to Microsoft Excel." So first, is there an easy way, like a >> shell command to do this? And then if not, is using this library dependent >> on Apple events on a Mac? >> >> 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 bdrunrev at gmail.com Wed Mar 16 06:48:37 2022 From: bdrunrev at gmail.com (Bernard Devlin) Date: Wed, 16 Mar 2022 10:48:37 +0000 Subject: 10.0.0-dp-2 html5 and liburlLastRHHeaders() In-Reply-To: References: Message-ID: With some servers the cache-control header is returned too. It looks to me that there is some mysterious shim that exists between libUrl calls and Javascript, and this shim is the (likely) reason why only some headers are being returned to the app. Does anyone know what is going on here? I am trying to find the "HTML5 Deployment" guide, which supposedly lists the limitations. I can't find this HTML5 Deployment guide from a Google search nor within the IDE (where it supposedly lives) nor on livecode.com. Here's what the Release Notes say: For more information, please see the "HTML5 Deployment" guide in the LiveCode IDE. Anyone else able to locate this document? Maybe they mean the general Deployment section in the Livecode Guides (which does have a HTML5 subsection). Considering that the subsection within that Deployment guide mentions Emscripten, I have my doubts that it is the place where we are to find accurate information about how HTML5 deployment works with the 10.x version. I'm at a loss as to how we are to provide feedback on these great new features coming in version 10 if there is scant documentation on what they are supposed to do or not do. I've already experienced a situation (on Windows and Mac) where using the Test button fails to launch the app in a browser (my guess is something wrong with LC's httpd service). That doesn't look good. After several repeated attempts with the Test button the app eventually launches in the browser. Regards Bernard On Tue, Mar 15, 2022 at 8:08 PM Bernard Devlin wrote: > The only headers returned from a POST command are > content-length > content-type > (in the IDE all the headers sent by the server are returned by this > function). > > Seems a bit strange to me, as there may well be other important > meta-information carried in headers (for example, Date:, at the very least > could be an important header). I can't understand the logic behind these > other headers being stripped out. > > This oddity is not documented in the Dictionary nor the Release Notes. > Should this be submitted as a bug? > > Regards > Bernard > From andreas.bergendal at gmail.com Wed Mar 16 07:29:47 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Wed, 16 Mar 2022 12:29:47 +0100 Subject: Excel_Lib on Mac Message-ID: I’m confused - we’re talking Excel Lib by Zryip TheSlug, right? I’m using v.1.5.3, and it works very well for opening/editing Excel files on my Mac (12.2 Monterery, Excel 16.59, LC9.6.7 rc1). I can’t remember if at first use I had to grant some permissions of some kind, but now it works without a hitch. Using AppleScript if understand correctly. (On Mac I only tried it from the IDE, though, not a standalone.) On Windows it works fine in a standalone too, where it uses vsbscript. Bob wrote: > The Macintosh can no longer send apple events to Excel, or indeed any other Microsoft product [...] We’re does this info come from? My Mac seems to disagree… :) Best, Andreas From matthias_livecode_150811 at m-r-d.de Wed Mar 16 07:56:05 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 16 Mar 2022 12:56:05 +0100 Subject: Excel_Lib on Mac In-Reply-To: References: Message-ID: Andreas, where did you get 1.5.3 from? I have still 1.5.0 and in the download section for the commercial version of the library there is still 1.5.0 and not 1.5.3. Hm.... Matthisa > Am 16.03.2022 um 12:29 schrieb Andreas Bergendal via use-livecode : > > I’m confused - we’re talking Excel Lib by Zryip TheSlug, right? > > I’m using v.1.5.3, and it works very well for opening/editing Excel files on my Mac (12.2 Monterery, Excel 16.59, LC9.6.7 rc1). > I can’t remember if at first use I had to grant some permissions of some kind, but now it works without a hitch. Using AppleScript if understand correctly. (On Mac I only tried it from the IDE, though, not a standalone.) > > On Windows it works fine in a standalone too, where it uses vsbscript. > > Bob wrote: >> The Macintosh can no longer send apple events to Excel, or indeed any other Microsoft product [...] > > We’re does this info come from? My Mac seems to disagree… :) > > Best, > Andreas > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 16 08:35:46 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 16 Mar 2022 13:35:46 +0100 Subject: Excel_Lib on Mac In-Reply-To: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> Message-ID: <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> I tried with a sample stack here with Livecode 10 and had the exact problem. I then tried Livecode 9.6.3 and got a macOS system pop up with the following message LiveCode Business 9.6.3.app“ möchte Zugriffsrechte, um „Microsoft Excel.app“ zu steuern. Durch die Erlaubnis zum Steuern kann auf Dokumente und Daten in „Microsoft Excel.app“ zugegriffen werden und Aktionen können in dieser App durchgeführt werden. something like this in English: Livecode Business... wants to have access rights to control Microsfot Excel app. By granting access documents and data in Microsoft Excel.app can be accessed and actions can be done. After confirming/allowing Livecode was listed under Automation in System Preferences -> Security And the funny part of this is, that not LC 9.6.3 is listed now under Automation, but LC 10 DP2. I tested then with 9.6.3 and with 10DP and it works now in both editions. Matthias > Am 15.03.2022 um 22:50 schrieb Bob Sneidar via use-livecode : > > Hi all. > > I am trying to incorporate Excel_Lib into a project. There is a command to open a spreadsheet with Excel on a Mac, and ONLY Macs can use this command. It looks however like the library works with Windows too. > > My issue is that I am getting an error, "XCELLibErr: Not authorized to send Apple events to Microsoft Excel." So first, is there an easy way, like a shell command to do this? And then if not, is using this library dependent on Apple events on a Mac? > > 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 andreas.bergendal at gmail.com Wed Mar 16 08:42:00 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Wed, 16 Mar 2022 13:42:00 +0100 Subject: Excel_Lib on Mac Message-ID: <3EACAD20-24EE-4403-A2AF-6FA679625ED6@gmail.com> Matthias wrote: > where did you get 1.5.3 from? I have still 1.5.0 and in the download section > for the commercial version of the library there is still 1.5.0 and not 1.5.3. Heh, yes, I reported some problems to Zryip in January and he promptly fixed them each time and sent updated versions to me. But the original 1.5.0 version already worked as expected regarding AppleScript. The problems he fixed pertained to Excel value formatting issues on Mac. But if you actively use Excel Lib in projects (especially for Mac), you should probably ask him for the update. I don’t know why it hasn’t been officially released - perhaps he wants to test it more first or something. From bdrunrev at gmail.com Wed Mar 16 10:15:43 2022 From: bdrunrev at gmail.com (Bernard Devlin) Date: Wed, 16 Mar 2022 14:15:43 +0000 Subject: 10.0.0-dp-2 html5 and liburlLastRHHeaders() In-Reply-To: References: Message-ID: If one could get hold in Livecodescript of the Javascript Request object that was sent to the server, then one might be able to get hold of the Response headers. https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders My guess is that the shim is getting hold of this information but for some strange reason it is stripping out most of the headers. > From bobsneidar at iotecdigital.com Wed Mar 16 11:16:18 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 15:16:18 +0000 Subject: Excel_Lib on Mac In-Reply-To: References: Message-ID: Because I get the error that says I can't, and when I try to give it permissions there seems to be no place to do so. Monterey does not have the onerous sandboxing that Catalina does. Also, I am using Office 365 license and not a standalone version of Excel. Bob S > On Mar 16, 2022, at 04:29 , Andreas Bergendal via use-livecode wrote: > > I’m confused - we’re talking Excel Lib by Zryip TheSlug, right? > > I’m using v.1.5.3, and it works very well for opening/editing Excel files on my Mac (12.2 Monterery, Excel 16.59, LC9.6.7 rc1). > I can’t remember if at first use I had to grant some permissions of some kind, but now it works without a hitch. Using AppleScript if understand correctly. (On Mac I only tried it from the IDE, though, not a standalone.) > > On Windows it works fine in a standalone too, where it uses vsbscript. > > Bob wrote: >> The Macintosh can no longer send apple events to Excel, or indeed any other Microsoft product [...] > > We’re does this info come from? My Mac seems to disagree… :) > > Best, > Andreas > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 16 11:18:48 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 15:18:48 +0000 Subject: Excel_Lib on Mac In-Reply-To: <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> Message-ID: <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> I have older versions of Livecde still, I should give that a try. I wonder what happens then when I use it in a compiled app? We shall see. Bob S > On Mar 16, 2022, at 05:35 , matthias rebbe via use-livecode wrote: > > I tried with a sample stack here with Livecode 10 and had the exact problem. > > I then tried Livecode 9.6.3 and got a macOS system pop up with the following message > LiveCode Business 9.6.3.app“ möchte Zugriffsrechte, um „Microsoft Excel.app“ zu steuern. Durch die Erlaubnis zum Steuern kann auf Dokumente und Daten in „Microsoft Excel.app“ zugegriffen werden und Aktionen können in dieser App durchgeführt werden. > > something like this in English: > Livecode Business... wants to have access rights to control Microsfot Excel app. By granting access documents and data in Microsoft Excel.app can be accessed and actions can be done. > > After confirming/allowing Livecode was listed under Automation in System Preferences -> Security > > And the funny part of this is, that not LC 9.6.3 is listed now under Automation, but LC 10 DP2. > > I tested then with 9.6.3 and with 10DP and it works now in both editions. > > > Matthias > > > > > >> Am 15.03.2022 um 22:50 schrieb Bob Sneidar via use-livecode : >> >> Hi all. >> >> I am trying to incorporate Excel_Lib into a project. There is a command to open a spreadsheet with Excel on a Mac, and ONLY Macs can use this command. It looks however like the library works with Windows too. >> >> My issue is that I am getting an error, "XCELLibErr: Not authorized to send Apple events to Microsoft Excel." So first, is there an easy way, like a shell command to do this? And then if not, is using this library dependent on Apple events on a Mac? >> >> 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 bobsneidar at iotecdigital.com Wed Mar 16 11:35:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 15:35:21 +0000 Subject: Excel_Lib on Mac In-Reply-To: <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> Message-ID: Matthia you are a genius. This apparently is a bug in the most recent version of Livecode. I tried you method, and now ALL versions of Livecode have access to send apple events to Excel. Bob S > On Mar 16, 2022, at 08:18 , Bob Sneidar via use-livecode wrote: > > I have older versions of Livecde still, I should give that a try. I wonder what happens then when I use it in a compiled app? We shall see. > > Bob S > > >> On Mar 16, 2022, at 05:35 , matthias rebbe via use-livecode wrote: >> >> I tried with a sample stack here with Livecode 10 and had the exact problem. >> >> I then tried Livecode 9.6.3 and got a macOS system pop up with the following message >> LiveCode Business 9.6.3.app“ möchte Zugriffsrechte, um „Microsoft Excel.app“ zu steuern. Durch die Erlaubnis zum Steuern kann auf Dokumente und Daten in „Microsoft Excel.app“ zugegriffen werden und Aktionen können in dieser App durchgeführt werden. >> >> something like this in English: >> Livecode Business... wants to have access rights to control Microsfot Excel app. By granting access documents and data in Microsoft Excel.app can be accessed and actions can be done. >> >> After confirming/allowing Livecode was listed under Automation in System Preferences -> Security >> >> And the funny part of this is, that not LC 9.6.3 is listed now under Automation, but LC 10 DP2. >> >> I tested then with 9.6.3 and with 10DP and it works now in both editions. >> >> >> Matthias >> >> >> >> >> >>> Am 15.03.2022 um 22:50 schrieb Bob Sneidar via use-livecode : >>> >>> Hi all. >>> >>> I am trying to incorporate Excel_Lib into a project. There is a command to open a spreadsheet with Excel on a Mac, and ONLY Macs can use this command. It looks however like the library works with Windows too. >>> >>> My issue is that I am getting an error, "XCELLibErr: Not authorized to send Apple events to Microsoft Excel." So first, is there an easy way, like a shell command to do this? And then if not, is using this library dependent on Apple events on a Mac? >>> >>> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 16 11:57:18 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 16 Mar 2022 16:57:18 +0100 Subject: Excel_Lib on Mac In-Reply-To: <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> Message-ID: <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> Standalones built with 9.6.6 and at least 10 dp1 and dp2 (i did not test 9.67) won't run. On your computer they would run if you set the bundle identifier under MacOS in the standalone settings to com.runrev.livecode. ;) There is a bug already for a similar problem. Unfortunately the LC team could not reproduce it. But i added a comment with some instructions how to reset the privacy settings so they could test and see that there is a problem with 9.6.6 and up. https://quality.livecode.com/show_bug.cgi?id=23576 > Am 16.03.2022 um 16:18 schrieb Bob Sneidar via use-livecode : > > I have older versions of Livecde still, I should give that a try. I wonder what happens then when I use it in a compiled app? We shall see. > > Bob S > > >> On Mar 16, 2022, at 05:35 , matthias rebbe via use-livecode wrote: >> >> I tried with a sample stack here with Livecode 10 and had the exact problem. >> >> I then tried Livecode 9.6.3 and got a macOS system pop up with the following message >> LiveCode Business 9.6.3.app“ möchte Zugriffsrechte, um „Microsoft Excel.app“ zu steuern. Durch die Erlaubnis zum Steuern kann auf Dokumente und Daten in „Microsoft Excel.app“ zugegriffen werden und Aktionen können in dieser App durchgeführt werden. >> >> something like this in English: >> Livecode Business... wants to have access rights to control Microsfot Excel app. By granting access documents and data in Microsoft Excel.app can be accessed and actions can be done. >> >> After confirming/allowing Livecode was listed under Automation in System Preferences -> Security >> >> And the funny part of this is, that not LC 9.6.3 is listed now under Automation, but LC 10 DP2. >> >> I tested then with 9.6.3 and with 10DP and it works now in both editions. >> >> >> Matthias >> >> >> >> >> >>> Am 15.03.2022 um 22:50 schrieb Bob Sneidar via use-livecode : >>> >>> Hi all. >>> >>> I am trying to incorporate Excel_Lib into a project. There is a command to open a spreadsheet with Excel on a Mac, and ONLY Macs can use this command. It looks however like the library works with Windows too. >>> >>> My issue is that I am getting an error, "XCELLibErr: Not authorized to send Apple events to Microsoft Excel." So first, is there an easy way, like a shell command to do this? And then if not, is using this library dependent on Apple events on a Mac? >>> >>> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 16 12:31:16 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 16 Mar 2022 12:31:16 -0400 Subject: Compiler Funding Options Update In-Reply-To: References: Message-ID: Hi LiveCoders, I just received a message from LiveCode Ltd., that stated the compiler has been 83% funded with just 1 day to go. This project really needs to be fully funded if LiveCode is to move forward. Quite often I find that our present version of LiveCode isn’t fast enough for me to be able to write games with it, or to be able to process searches fast enough. With a 10X speed improvement all things suddenly become possible. As it was first presented, $499 for a 1 year subscription or $99 to just support the project was all that was in the emails sent to me. I was surprised that when I went to the website to add my support, I discovered there were a few more offerings that weren’t in any of the emails sent to me by LiveCode Ltd. Other options were: $125 for a 3 month compiler benefit (No subscription) $249 for a 6 month compiler benefit (No subscription) $499 for a 1 year subscription $999 for a 2 year subscription $1,499 for a 3 year subscription I wasn’t at all aware of these additional options. I think those options should have been mentioned in the emails sent to me upfront instead of hoping that I would click on a link button before seeing that information. The marketing department could have done better with this! Anyway I wanted to help out with some of the fence sitters on this project by letting you know of some these other options in case you missed them like I did! Thanks, Rick From jacque at hyperactivesw.com Wed Mar 16 14:00:59 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 16 Mar 2022 13:00:59 -0500 Subject: Compiler Funding Options Update In-Reply-To: References: Message-ID: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I really hope this gets funded, we need it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 16, 2022 11:33:34 AM Rick Harrison via use-livecode wrote: > > This project really needs to be fully funded if > LiveCode is to move forward. From jacque at hyperactivesw.com Wed Mar 16 15:17:05 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 16 Mar 2022 14:17:05 -0500 Subject: Excel_Lib on Mac In-Reply-To: <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> Message-ID: On 3/16/22 10:57 AM, matthias rebbe via use-livecode wrote: > Standalones built with 9.6.6 and at least 10 dp1 and dp2 (i did not test 9.67) won't run. > On your computer they would run if you set the bundle identifier under MacOS in the standalone settings to com.runrev.livecode. ;) I wonder if this might affect remote debugging too. I've had an issue where it won't work on some LC versions. It isn't working for me now in either 9.6.6 or 10.0 dp 2. I always test with my phone cabled to the Mac and I've added the correct versions of LC to the firewall settings but it didn't make a difference. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Mar 16 17:09:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 21:09:20 +0000 Subject: :MEMORY: databases and Windows Message-ID: Hi all. I have a simple app that creates a :MEMORY: sqLite database, then populates it with some small bit of data. On the Mac in the IDE it works fine, but in a Windows standalone, it fails to create the database. I have manually included the sqLite and database libraries in the standalone settings. What else do I require? Bob S From matthias_livecode_150811 at m-r-d.de Wed Mar 16 17:31:55 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 16 Mar 2022 22:31:55 +0100 Subject: :MEMORY: databases and Windows In-Reply-To: References: Message-ID: Which LC version are you using? Does it work in the Windows IDE? Did it work already in the past with other LC editions? There are some things that do not work on single platforms after the big rework on the LC DB drivers in v7 in general. E.g. ODBC connection strings on macOS do not work anymore since v7, but still work on Windows. Maybe this does not work on Windows, although it works on Mac. But that is just a guess. > Am 16.03.2022 um 22:09 schrieb Bob Sneidar via use-livecode : > > Hi all. > > I have a simple app that creates a :MEMORY: sqLite database, then populates it with some small bit of data. On the Mac in the IDE it works fine, but in a Windows standalone, it fails to create the database. I have manually included the sqLite and database libraries in the standalone settings. What else do I require? > > 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 tom at makeshyft.com Wed Mar 16 17:32:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Wed, 16 Mar 2022 17:32:10 -0400 Subject: :MEMORY: databases and Windows In-Reply-To: References: Message-ID: Whats the error message you get when you check the result of databaseconnect? From bobsneidar at iotecdigital.com Wed Mar 16 17:49:51 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 21:49:51 +0000 Subject: :MEMORY: databases and Windows In-Reply-To: References: Message-ID: <47D5E28A-2D63-4D1F-93FB-7F1FD75ACD91@iotecdigital.com> I get an error creating the database. I went back into my code and checked that the database id was an integer upon creation and it was not. Bob S > On Mar 16, 2022, at 14:32 , Tom Glod via use-livecode wrote: > > Whats the error message you get when you check the result of > databaseconnect? > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 16 17:51:57 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 16 Mar 2022 22:51:57 +0100 Subject: :MEMORY: databases and Windows In-Reply-To: References: Message-ID: <1B2805EA-94D9-4737-823F-B3D16E45F6D9@m-r-d.de> I just tested under Win in the IDE, it does not work there either. Error message is 'Database Error: Unable to open the database file' > Am 16.03.2022 um 22:32 schrieb Tom Glod via use-livecode : > > Whats the error message you get when you check the result of > databaseconnect? > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 16 17:53:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 21:53:33 +0000 Subject: :MEMORY: databases and Windows In-Reply-To: <47D5E28A-2D63-4D1F-93FB-7F1FD75ACD91@iotecdigital.com> References: <47D5E28A-2D63-4D1F-93FB-7F1FD75ACD91@iotecdigital.com> Message-ID: Curiously, this works fine in a MacOS standalone. I think there may be an issue with Windows and :MEMORY: databases. Bob S > On Mar 16, 2022, at 14:49 , Bob Sneidar via use-livecode wrote: > > I get an error creating the database. I went back into my code and checked that the database id was an integer upon creation and it was not. > > Bob S > > >> On Mar 16, 2022, at 14:32 , Tom Glod via use-livecode wrote: >> >> Whats the error message you get when you check the result of >> databaseconnect? >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mar 16 17:54:27 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 21:54:27 +0000 Subject: :MEMORY: databases and Windows In-Reply-To: <1B2805EA-94D9-4737-823F-B3D16E45F6D9@m-r-d.de> References: <1B2805EA-94D9-4737-823F-B3D16E45F6D9@m-r-d.de> Message-ID: <8D2EEDFE-6A24-4E44-B4E7-29188D4D985F@iotecdigital.com> OK I'll open a bug report. Bob S > On Mar 16, 2022, at 14:51 , matthias rebbe via use-livecode wrote: > > I just tested under Win in the IDE, it does not work there either. > > Error message is 'Database Error: Unable to open the database file' > > > >> Am 16.03.2022 um 22:32 schrieb Tom Glod via use-livecode : >> >> Whats the error message you get when you check the result of >> databaseconnect? >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Wed Mar 16 18:00:06 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 16 Mar 2022 23:00:06 +0100 Subject: :MEMORY: databases and Windows In-Reply-To: <8D2EEDFE-6A24-4E44-B4E7-29188D4D985F@iotecdigital.com> References: <1B2805EA-94D9-4737-823F-B3D16E45F6D9@m-r-d.de> <8D2EEDFE-6A24-4E44-B4E7-29188D4D985F@iotecdigital.com> Message-ID: You don't have to... ;) I assume you wrote :MEMORY: in capital letters, right. Write it in lower letters :memory: and it should work. I just tested it successfully with :memory: > Am 16.03.2022 um 22:54 schrieb Bob Sneidar via use-livecode : > > OK I'll open a bug report. > > Bob S > > >> On Mar 16, 2022, at 14:51 , matthias rebbe via use-livecode wrote: >> >> I just tested under Win in the IDE, it does not work there either. >> >> Error message is 'Database Error: Unable to open the database file' >> >> >> >>> Am 16.03.2022 um 22:32 schrieb Tom Glod via use-livecode : >>> >>> Whats the error message you get when you check the result of >>> databaseconnect? >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Mar 16 18:02:54 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 22:02:54 +0000 Subject: :MEMORY: databases and Windows In-Reply-To: References: <1B2805EA-94D9-4737-823F-B3D16E45F6D9@m-r-d.de> <8D2EEDFE-6A24-4E44-B4E7-29188D4D985F@iotecdigital.com> Message-ID: <9C6246EA-51BA-41F6-92A1-FF00B1A25631@iotecdigital.com> Wow. Why does it work on MacOS I wonder?? Bob S > On Mar 16, 2022, at 15:00 , matthias rebbe via use-livecode wrote: > > You don't have to... ;) > > I assume you wrote :MEMORY: in capital letters, right. > > Write it in lower letters :memory: and it should work. I just tested it successfully with :memory: > > > >> Am 16.03.2022 um 22:54 schrieb Bob Sneidar via use-livecode : >> >> OK I'll open a bug report. >> >> Bob S >> >> >>> On Mar 16, 2022, at 14:51 , matthias rebbe via use-livecode wrote: >>> >>> I just tested under Win in the IDE, it does not work there either. >>> >>> Error message is 'Database Error: Unable to open the database file' >>> >>> >>> >>>> Am 16.03.2022 um 22:32 schrieb Tom Glod via use-livecode : >>>> >>>> Whats the error message you get when you check the result of >>>> databaseconnect? >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 Mar 16 18:07:41 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 16 Mar 2022 22:07:41 +0000 Subject: :MEMORY: databases and Windows In-Reply-To: References: <1B2805EA-94D9-4737-823F-B3D16E45F6D9@m-r-d.de> <8D2EEDFE-6A24-4E44-B4E7-29188D4D985F@iotecdigital.com> Message-ID: Once again you nailed it. Still, this is a bug, minor though it may be. In the past I was told that it MUST be capitalized. Now it seems capitalized only works on the mac while all lowercase works on both platforms. squared. Bob S > On Mar 16, 2022, at 15:00 , matthias rebbe via use-livecode wrote: > > You don't have to... ;) > > I assume you wrote :MEMORY: in capital letters, right. > > Write it in lower letters :memory: and it should work. I just tested it successfully with :memory: > > > >> Am 16.03.2022 um 22:54 schrieb Bob Sneidar via use-livecode : >> >> OK I'll open a bug report. >> >> Bob S >> >> >>> On Mar 16, 2022, at 14:51 , matthias rebbe via use-livecode wrote: >>> >>> I just tested under Win in the IDE, it does not work there either. >>> >>> Error message is 'Database Error: Unable to open the database file' >>> >>> >>> >>>> Am 16.03.2022 um 22:32 schrieb Tom Glod via use-livecode : >>>> >>>> Whats the error message you get when you check the result of >>>> databaseconnect? >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 tom at makeshyft.com Wed Mar 16 18:46:25 2022 From: tom at makeshyft.com (Tom Glod) Date: Wed, 16 Mar 2022 18:46:25 -0400 Subject: Compiler Funding Options Update In-Reply-To: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Forwhatever reasons I do not get the emails in regards to this project ....wtf. When I go ot the page I only see the 3 options.... how do I get to the $99 option? Can someone hook me up with a link? On Wed, Mar 16, 2022 at 2:02 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I really hope this gets funded, we need it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On March 16, 2022 11:33:34 AM Rick Harrison via use-livecode > wrote: > > > > This project really needs to be fully funded if > > LiveCode is to move forward. > > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Wed Mar 16 19:07:01 2022 From: alex at tweedly.net (Tweedly) Date: Wed, 16 Mar 2022 23:07:01 +0000 Subject: Compiler Funding Options Update In-Reply-To: References: Message-ID: <0C062D44-7558-456A-9349-FBF8370F125A@tweedly.net> Tom, I get it (at least, £79 ~~Usd99) at https://livecode.com/the-script-compiler-project/ But I suspect it’s doing something clever to see if you’ve visited the page before, or if you’re logged in, or ….. Alex Sent from my iPad > On 16 Mar 2022, at 22:47, Tom Glod via use-livecode wrote: > > Forwhatever reasons I do not get the emails in regards to this project > ....wtf. > When I go ot the page I only see the 3 options.... how do I get to the $99 > option? > Can someone hook me up with a link? > >> On Wed, Mar 16, 2022 at 2:02 PM J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I really hope this gets funded, we need it. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >>> On March 16, 2022 11:33:34 AM Rick Harrison via use-livecode >>> wrote: >>> >>> This project really needs to be fully funded if >>> LiveCode is to move forward. >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Mar 16 19:26:44 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 16 Mar 2022 18:26:44 -0500 Subject: Compiler Funding Options Update In-Reply-To: References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote: > When I go ot the page I only see the 3 options.... how do I get to the $99 > option? I see six options. Do you have any plugins that might disable some of the javascript, or similar? Try a different browser, maybe? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Mar 16 20:26:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Mar 2022 00:26:24 +0000 Subject: Excel Lib 1.4 Message-ID: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> Wow. The excel_lib I need is actually a substack of the documentation stack! Whaaaa??? Bob S From tom at makeshyft.com Wed Mar 16 20:53:13 2022 From: tom at makeshyft.com (Tom Glod) Date: Wed, 16 Mar 2022 20:53:13 -0400 Subject: Compiler Funding Options Update In-Reply-To: <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> Message-ID: I see.... the page I had bookmarked has a "-page" at the end of slug. https://livecode.com/script-compiler-project-page/ Thank you. On Wed, Mar 16, 2022 at 7:27 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote: > > When I go ot the page I only see the 3 options.... how do I get to the > $99 > > option? > > I see six options. Do you have any plugins that might disable some of the > javascript, or > similar? Try a different browser, maybe? > > -- > 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 tom at makeshyft.com Wed Mar 16 20:57:23 2022 From: tom at makeshyft.com (Tom Glod) Date: Wed, 16 Mar 2022 20:57:23 -0400 Subject: Compiler Funding Options Update In-Reply-To: References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> Message-ID: Well...I threw in $100 to help make it happen...fingers crossed. On Wed, Mar 16, 2022 at 8:53 PM Tom Glod wrote: > I see.... the page I had bookmarked has a "-page" at the end of slug. > > https://livecode.com/script-compiler-project-page/ > > Thank you. > > On Wed, Mar 16, 2022 at 7:27 PM J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote: >> > When I go ot the page I only see the 3 options.... how do I get to the >> $99 >> > option? >> >> I see six options. Do you have any plugins that might disable some of the >> javascript, or >> similar? Try a different browser, maybe? >> >> -- >> 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 neville.smythe at optusnet.com.au Thu Mar 17 05:47:16 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Thu, 17 Mar 2022 20:47:16 +1100 Subject: nsScriptDatabase 1.1 In-Reply-To: References: Message-ID: <9D2561FE-3284-46CE-A4ED-377B50227E1A@optusnet.com.au> I have uploaded version 1.1 of nsScriptDatabase to the Samples Stacks. This fixes a few problems with editing code snippets and running the stack as a standalone, which is the preferred environment. You don’t need to know anything about the technicalities of databases to use nsScriptDatabase to maintain a searchable archive of scripts, re-usable handlers, code snippets and notes. Neville From mark at livecode.com Thu Mar 17 05:58:23 2022 From: mark at livecode.com (Mark Waddingham) Date: Thu, 17 Mar 2022 09:58:23 +0000 Subject: 10.0.0-dp-2 html5 and liburlLastRHHeaders() In-Reply-To: References: Message-ID: <81c531458b12640ce26f6392bd79d24c@livecode.com> On 2022-03-16 14:15, Bernard Devlin via use-livecode wrote: > If one could get hold in Livecodescript of the Javascript Request > object > that was sent to the server, then one might be able to get hold of the > Response headers. > > https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders > > My guess is that the shim is getting hold of this information but for > some > strange reason it is stripping out most of the headers. We already use that JS API to implement lastRHHeaders - we just return the value it returns verbatim. Therefore, I'm guessing this is something the API is doing. The only thing which may give a hint is (in that doc): 'For multipart requests, this returns the headers from the current part of the request, not from the original channel.' Not sure whether that applies in this case or not (except that POST is generally used in multipart requests I think...) Anyway, file a bug with an example if you can and we'll take a look. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Thu Mar 17 06:03:22 2022 From: mark at livecode.com (Mark Waddingham) Date: Thu, 17 Mar 2022 10:03:22 +0000 Subject: :MEMORY: databases and Windows In-Reply-To: References: <1B2805EA-94D9-4737-823F-B3D16E45F6D9@m-r-d.de> <8D2EEDFE-6A24-4E44-B4E7-29188D4D985F@iotecdigital.com> Message-ID: <450efe9030daa6b5c72e067e4dabe5ec@livecode.com> On 2022-03-16 22:07, Bob Sneidar via use-livecode wrote: > Once again you nailed it. Still, this is a bug, minor though it may > be. In the past I was told that it MUST be capitalized. Now it seems > capitalized only works on the mac while all lowercase works on both > platforms. squared. FWIW I don't think this is a bug. In the SQLite documentation it explicitly states ':memory:' lowercase. We don't process the filename we pass to the SQLite library, so I can't explain the difference between macOS and Windows. Looking at the sqlite sourcecode - it does a case-sensitive comparison between the filename passed and ':memory:'. So, I suggest using ':memory:' as stated by SQLite and all will be well :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bdrunrev at gmail.com Thu Mar 17 09:07:21 2022 From: bdrunrev at gmail.com (Bernard Devlin) Date: Thu, 17 Mar 2022 13:07:21 +0000 Subject: 10.0.0-dp-2 html5 and liburlLastRHHeaders() In-Reply-To: <81c531458b12640ce26f6392bd79d24c@livecode.com> References: <81c531458b12640ce26f6392bd79d24c@livecode.com> Message-ID: Hi Mark Thank you for your response. However, I just tried in the Javascript console of Safari, Chrome and Firefox and the local test server to which I am POSTing is returning the headers (as LC does when running not as HTML5). Here's the JS I used. As you can see, it's a simple POST rather than anything multipart. ------------ var json = JSON.stringify({ name: "John", surname: "Smith"}); var http = new XMLHttpRequest(); var url = 'http://192.168.0.34:8080/tabs/echo'; http.open('POST', url, true); http.setRequestHeader('Content-type', 'application/json; charset=utf-8'); var result = 'comm with server failed'; http.onreadystatechange = function() { if (http.readyState == 4 && http.status == 200) { result=http.responseText; console.log(result); console.log( http.getAllResponseHeaders() ); } } http.send(json); >> access-control-allow-origin: * connection: keep-alive content-length: 56 content-type: text/plain; charset=utf-8 date: Thu, 17 Mar 2022 12:53:21 GMT server: NaviServer/4.99.20 << So there is something else going on between LC's libUrlLastRHHeaders() and LC's interaction with the JS XMLHttpRequest(). This something is stripping out most of the headers. My next step is to turn that JS into a function that I can call from LC within the context of the browser to see whether the full headers are returned to LC from that JS call. Regards Bernard On Thu, Mar 17, 2022 at 9:58 AM Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > > > We already use that JS API to implement lastRHHeaders - we just return > the value it returns verbatim. > > Therefore, I'm guessing this is something the API is doing. The only > thing which may give a hint is (in that doc): > > 'For multipart requests, this returns the headers from the current > part of the request, not from the original channel.' > > Not sure whether that applies in this case or not (except that POST is > generally used in multipart requests I think...) > > Anyway, file a bug with an example if you can and we'll take a look. > > From bobsneidar at iotecdigital.com Thu Mar 17 11:43:39 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Mar 2022 15:43:39 +0000 Subject: Excel Lib 1.4 In-Reply-To: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> References: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> Message-ID: Does anyone use Excel_Lib? How do you get it to work?? Opening the documentation stack loads the necessary libraries and stacks, but the actual library is a substack of the documentation stack! Also, there are handlers which call on the PROPERTIES of that stack! So I cannot just copy the code out to a script only stack! This would mean I would have to include the entire documentation stack in my stackfiles for any project that uses it. That doesn't seem right to me. Bob S > On Mar 16, 2022, at 17:26 , Bob Sneidar wrote: > > Wow. The excel_lib I need is actually a substack of the documentation stack! Whaaaa??? > > Bob S > From bobsneidar at iotecdigital.com Thu Mar 17 11:48:55 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Mar 2022 15:48:55 +0000 Subject: Excel Lib 1.4 In-Reply-To: References: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> Message-ID: <6A249D58-1D7C-4E5F-83A7-8A91B1E3CB3B@iotecdigital.com> Also if anyone has version 1.5 of the library, would it be possible to send that to me off list? Bob S > On Mar 17, 2022, at 08:43 , Bob Sneidar via use-livecode wrote: > > Does anyone use Excel_Lib? How do you get it to work?? Opening the documentation stack loads the necessary libraries and stacks, but the actual library is a substack of the documentation stack! Also, there are handlers which call on the PROPERTIES of that stack! So I cannot just copy the code out to a script only stack! > > This would mean I would have to include the entire documentation stack in my stackfiles for any project that uses it. That doesn't seem right to me. > > Bob S > > >> On Mar 16, 2022, at 17:26 , Bob Sneidar wrote: >> >> Wow. The excel_lib I need is actually a substack of the documentation stack! Whaaaa??? >> >> 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 dvglasgow at gmail.com Thu Mar 17 11:58:54 2022 From: dvglasgow at gmail.com (David V Glasgow) Date: Thu, 17 Mar 2022 15:58:54 +0000 Subject: Text overwriting itself in non wrapping field Message-ID: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> Hi folks, I have imported just under 10,000 lines of a web history into a non wrapping scrollable field. As the subject above indicates, in one line characters appear rendered over the top of each other. The is quite stable, so redrawing or scrolling doesn’t make it go away. That line is pretty long, but not longer than field limits - 10693 chars Examining it, it looks like it ought to be a number of separate lines, and it also contains weird visible and also white space that is not a simple space. I can’t see any recognisable pattern to suggest where cr should be. Any suggestions about what is going on and how I might fix it? Cheers David Glasgow From bobsneidar at iotecdigital.com Thu Mar 17 12:08:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Mar 2022 16:08:21 +0000 Subject: Text overwriting itself in non wrapping field In-Reply-To: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> References: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> Message-ID: <2F6F74E3-5EFE-455D-A97E-2200C4132C56@iotecdigital.com> I have a cleanASCII function: Bob S FUNCTION cleanASCII pString, pModeList, pCustomList /* pModeList is a comma delimited list that may contain the following values: "lowercase,uppercase,numbers,tabs,newlines,returns,spaces,symbols,custom" If custom is used, then a third paramaeter containing allowed characters must be supplied. */ IF pModeList contains dash THEN replace dash with "\" & dash in pModeList IF pModeList is empty THEN put " 0-9a-zA-Z" into tAllowedChars END IF REPEAT for each item pMode in pModeList put word 1 of pMode into pMode SWITCH break CASE "tabs" is in pMode put "\t" AFTER tAllowedChars break CASE "newlines" is in pMode put "\n" BEFORE tAllowedChars break CASE "returns" is in pMode put "\r" BEFORE tAllowedChars -- currently not working break CASE "spaces" is in pMode put " " AFTER tAllowedChars break CASE "numbers" is in pMode put "0-9" AFTER tAllowedChars break CASE "lowercase" is in pMode put "a-z" AFTER tAllowedChars break CASE "uppercase" is in pMode put "A-Z" AFTER tAllowedChars break CASE "symbols" is in pMode put "!#$%&'()*+,./:;<=>?@\|\[\]\\_`{|}~^-" AFTER tAllowedChars break CASE pMode is "custom" put pCustomList AFTER tAllowedChars break END SWITCH END REPEAT put "[" & tAllowedChars & "]" into tMatchText REPEAT for each character theChar in pString IF matchtext(theChar, tMatchText) is true THEN put theChar AFTER cleanString END IF END REPEAT return cleanString END cleanASCII > On Mar 17, 2022, at 08:58 , David V Glasgow via use-livecode wrote: > > Hi folks, > > I have imported just under 10,000 lines of a web history into a non wrapping scrollable field. As the subject above indicates, in one line characters appear rendered over the top of each other. The is quite stable, so redrawing or scrolling doesn’t make it go away. > > That line is pretty long, but not longer than field limits - 10693 chars > > Examining it, it looks like it ought to be a number of separate lines, and it also contains weird visible and also white space that is not a simple space. I can’t see any recognisable pattern to suggest where cr should be. > > Any suggestions about what is going on and how I might fix it? > > Cheers > > 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 tom at makeshyft.com Thu Mar 17 12:37:19 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 17 Mar 2022 12:37:19 -0400 Subject: Text overwriting itself in non wrapping field In-Reply-To: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> References: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> Message-ID: I had something like that occur with HTMLtext and activated "fixed height" on the field helped it. On Thu, Mar 17, 2022 at 12:00 PM David V Glasgow via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi folks, > > I have imported just under 10,000 lines of a web history into a non > wrapping scrollable field. As the subject above indicates, in one line > characters appear rendered over the top of each other. The is quite > stable, so redrawing or scrolling doesn’t make it go away. > > That line is pretty long, but not longer than field limits - 10693 chars > > Examining it, it looks like it ought to be a number of separate lines, and > it also contains weird visible and also white space that is not a simple > space. I can’t see any recognisable pattern to suggest where cr should be. > > Any suggestions about what is going on and how I might fix it? > > Cheers > > 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 matthias_livecode_150811 at m-r-d.de Thu Mar 17 12:39:48 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 17 Mar 2022 17:39:48 +0100 Subject: Excel Lib 1.4 In-Reply-To: <6A249D58-1D7C-4E5F-83A7-8A91B1E3CB3B@iotecdigital.com> References: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> <6A249D58-1D7C-4E5F-83A7-8A91B1E3CB3B@iotecdigital.com> Message-ID: <1DA7CE81-A042-4B55-8BDA-DF4A577601A2@m-r-d.de> Are you using the open source or the commercial version? If i am not wrong then only the commercial license is available as 1.5 and the open source license is 1.2 or so. If you have the commercial license then you can download the most current version using the username and password that Zryip should have submitted to you. If you do not have those credentials, you could send an email to zryip.theslug at gmail.com and ask him to get access to the download area for the commercial lib. He normally replies quickly. Regards, Matthisa > Am 17.03.2022 um 16:48 schrieb Bob Sneidar via use-livecode : > > Also if anyone has version 1.5 of the library, would it be possible to send that to me off list? > > Bob S > > >> On Mar 17, 2022, at 08:43 , Bob Sneidar via use-livecode wrote: >> >> Does anyone use Excel_Lib? How do you get it to work?? Opening the documentation stack loads the necessary libraries and stacks, but the actual library is a substack of the documentation stack! Also, there are handlers which call on the PROPERTIES of that stack! So I cannot just copy the code out to a script only stack! >> >> This would mean I would have to include the entire documentation stack in my stackfiles for any project that uses it. That doesn't seem right to me. >> >> Bob S >> >> >>> On Mar 16, 2022, at 17:26 , Bob Sneidar wrote: >>> >>> Wow. The excel_lib I need is actually a substack of the documentation stack! Whaaaa??? >>> >>> 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 roland.huettmann at gmail.com Thu Mar 17 12:44:50 2022 From: roland.huettmann at gmail.com (R.H.) Date: Thu, 17 Mar 2022 17:44:50 +0100 Subject: Funding Message-ID: I did not receive any letter regardings any funding. Roland From bobsneidar at iotecdigital.com Thu Mar 17 12:47:31 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Mar 2022 16:47:31 +0000 Subject: Excel Lib 1.4 In-Reply-To: <1DA7CE81-A042-4B55-8BDA-DF4A577601A2@m-r-d.de> References: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> <6A249D58-1D7C-4E5F-83A7-8A91B1E3CB3B@iotecdigital.com> <1DA7CE81-A042-4B55-8BDA-DF4A577601A2@m-r-d.de> Message-ID: <8AE5DBCD-C295-41C4-86A3-F50926117112@iotecdigital.com> I have v1.4, not sure about the licensing. I will contact zryip presently. Meanwhile I was able to create a separate version of Excel_Lib. I just tested it and it works. Bob S > On Mar 17, 2022, at 09:39 , matthias rebbe via use-livecode wrote: > > Are you using the open source or the commercial version? > If i am not wrong then only the commercial license is available as 1.5 and the open source license is 1.2 or so. > > If you have the commercial license then you can download the most current version using the username and password that Zryip should have submitted to you. > If you do not have those credentials, you could send an email to zryip.theslug at gmail.com and ask him to get access to the download area for the commercial lib. > He normally replies quickly. > > Regards, > > Matthisa > > >> Am 17.03.2022 um 16:48 schrieb Bob Sneidar via use-livecode : >> >> Also if anyone has version 1.5 of the library, would it be possible to send that to me off list? >> >> Bob S >> >> >>> On Mar 17, 2022, at 08:43 , Bob Sneidar via use-livecode wrote: >>> >>> Does anyone use Excel_Lib? How do you get it to work?? Opening the documentation stack loads the necessary libraries and stacks, but the actual library is a substack of the documentation stack! Also, there are handlers which call on the PROPERTIES of that stack! So I cannot just copy the code out to a script only stack! >>> >>> This would mean I would have to include the entire documentation stack in my stackfiles for any project that uses it. That doesn't seem right to me. >>> >>> Bob S >>> >>> >>>> On Mar 16, 2022, at 17:26 , Bob Sneidar wrote: >>>> >>>> Wow. The excel_lib I need is actually a substack of the documentation stack! Whaaaa??? >>>> >>>> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 17 12:55:05 2022 From: jiml at netrin.com (Jim Lambert) Date: Thu, 17 Mar 2022 09:55:05 -0700 Subject: nsScriptDatabase 1.1 In-Reply-To: References: Message-ID: <5ACFE8D1-F034-4245-8A20-CBE18959BBBA@netrin.com> Neville, Thanks for the update. Jim Lambert From jiml at netrin.com Thu Mar 17 12:55:54 2022 From: jiml at netrin.com (Jim Lambert) Date: Thu, 17 Mar 2022 09:55:54 -0700 Subject: nsScriptDatabase 1.1 In-Reply-To: References: Message-ID: <708871B5-02EC-4FF3-9AAB-FAFE0E08102E@netrin.com> Neville, Thanks for the update. Jim Lambert From panos.merakos at livecode.com Thu Mar 17 12:56:17 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 17 Mar 2022 18:56:17 +0200 Subject: [ANN] Release 9.6.7 RC-2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.7 RC-2. Getting the Release =================== You can find the release in your LiveCode account area or get it via the automatic updater. Release Contents ================ LiveCode 9.6.7 RC-2 comes with 1 regression fix: - LiveCode will no longer potentially crash if there is an unsupported system date or time format in use on macOS Known issues ============ - The Browser widget's native layer is not shown in some Linux distros with Cinnamon window manager. - The use of the Browser widget is not supported on Ubuntu 18+ 64 bit LTS yet. Required Software ================= To build iOS apps with LiveCode you must have the appropriate versions of Xcode as follows: - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS 12.1 SDK - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS 13.2 SDK - macOS 10.15.4: Xcode 12.4.x - LiveCode builds iOS apps using the iOS 14.4 SDK - macOS 11+ : Xcode 13.2.x - LiveCode builds iOS apps using the iOS 15.2 SDK There is a full list of working LiveCode/macOS/Xcode combinations here: https://livecode.com/resources/support/ask-a-question/ Note: Whilst we endeavour to release updated versions of LiveCode supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly recommend disabling automatic update of Xcode or downloading the specific version of Xcode required directly from the Apple developer portal and installing it separately. Important: From the start of April 2021, Apple is only accepting apps built using iOS14.x SDKs. This means that, if you wish to submit apps to the AppStore you will have to be running at least macOS 10.15 in order to be able to install the necessary version of Xcode. Feedback ======== Please report any bugs encountered on our quality center at http://quality.livecode.com/ We have a forum available for discussing LiveCode at http://forums.livecode.com/ Have fun! The LiveCode Team -- From heather at livecode.com Thu Mar 17 13:04:38 2022 From: heather at livecode.com (Heather Laine) Date: Thu, 17 Mar 2022 17:04:38 +0000 Subject: Funding In-Reply-To: References: Message-ID: Looks like a spam filter at work - I can see the mailings were sent to you. Maybe check your filters? Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 17 Mar 2022, at 16:44, R.H. via use-livecode wrote: > > I did not receive any letter regardings any funding. > > Roland > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 17 13:13:42 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 17 Mar 2022 12:13:42 -0500 Subject: Funding In-Reply-To: References: Message-ID: <17f98deed88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I think there's still time to support the project. No risk, you get your money back if it doesn't fund. I personally hope it does, the benefits would be big. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 17, 2022 11:47:05 AM "R.H. via use-livecode" wrote: > I did not receive any letter regardings any funding. > > Roland > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Mar 17 13:55:01 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 17 Mar 2022 13:55:01 -0400 Subject: Funding In-Reply-To: <17f98deed88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <17f98deed88.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: welcome to the club I have the same issue. No spam filter on my end, I checked. Heather, I do get the other mailings about blogs and the livecode services. Is that a different list? On Thu, Mar 17, 2022 at 1:14 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I think there's still time to support the project. No risk, you get your > money back if it doesn't fund. I personally hope it does, the benefits > would be big. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On March 17, 2022 11:47:05 AM "R.H. via use-livecode" > wrote: > > > I did not receive any letter regardings any funding. > > > > Roland > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 Thu Mar 17 15:17:00 2022 From: brian at milby7.com (Brian Milby) Date: Thu, 17 Mar 2022 15:17:00 -0400 Subject: Funding In-Reply-To: References: Message-ID: <481044D6-DB00-4C28-BA92-55B7B6133B41@milby7.com> Would it be bad form to post the link? I just kicked in a bit more since I think it has great potential. I hope it fully funds. Sent from my iPhone > On Mar 17, 2022, at 1:56 PM, Tom Glod via use-livecode wrote: > > welcome to the club I have the same issue. No spam filter on my end, I > checked. > Heather, I do get the other mailings about blogs and the livecode services. > Is that a different list? > >> On Thu, Mar 17, 2022 at 1:14 PM J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> I think there's still time to support the project. No risk, you get your >> money back if it doesn't fund. I personally hope it does, the benefits >> would be big. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On March 17, 2022 11:47:05 AM "R.H. via use-livecode" >> wrote: >> >>> I did not receive any letter regardings any funding. >>> >>> Roland >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Thu Mar 17 15:21:14 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 17 Mar 2022 14:21:14 -0500 Subject: Text overwriting itself in non wrapping field In-Reply-To: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> References: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> Message-ID: <4fe7fc94-be20-a7a2-53f0-d30c1d558ab4@hyperactivesw.com> On 3/17/22 10:58 AM, David V Glasgow via use-livecode wrote: > Examining it, it looks like it ought to be a number of separate lines, and it also contains weird visible and also white space that is not a simple space. I can’t see any recognisable pattern to suggest where cr should be. I usually copy the mysterious character and in the message box: put charToNum(the clipboarddata) That gives me something to look up in an ascii or unicode table. Then you can replace all those characters with space or whatever seems reasonable for the data. That may give you a clue as to what the line should actually be. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mkoob at rogers.com Thu Mar 17 16:03:10 2022 From: mkoob at rogers.com (Martin Koob) Date: Thu, 17 Mar 2022 16:03:10 -0400 Subject: Funding In-Reply-To: <481044D6-DB00-4C28-BA92-55B7B6133B41@milby7.com> References: <481044D6-DB00-4C28-BA92-55B7B6133B41@milby7.com> Message-ID: <62296596-9FAE-48EB-90BA-A7BD585C029C@rogers.com> Hi Incase there are some who still can’t see the page, here is a text listing of the Single Payment and Subscription Payment Options on the project offer page: https://livecode.com/the-script-compiler-project/ Single Payment Options Contribute $99 Ex VAT No Compiler – but supports the project that will bring 2-3x speed boost and better syntax to core product. All LiveCode license holders benefit. LiveCode Compiler: 3 Months $125 Ex VAT Get the 10x Compiler with all benefits for 3 months (No subscription) + supports the project that will benefit all LiveCode license holders. LiveCode Compiler: 6 Months $249 Ex VAT Get the 10x Compiler with all benefits for 6 months (No subscription) + supports the project that will benefit all LiveCode license holders. Subscription Payment Options LiveCode Compiler: 1 Year $499 Ex VAT Get the 10x Compiler with all benefits on a 12 month subscription + supports the project that will benefit all LiveCode license holders. LiveCode Compiler: 2 Years $999 Ex VAT Get the 10x Compiler with all benefits for 24 months on subscription + supports the project that will benefit all LiveCode license holders. LiveCode Compiler: 3 Years $1499 Ex VAT Get the 10x Compiler with all benefits for 36 months on subscription + supports the project that will benefit all LiveCode license holders. Terms All license periods start from the final shipping date of the Script Compiler. Your license renewal date will be adjusted once we have this information. If the project does not raise enough money to go ahead, we will refund all purchases. Martin Koob > On Mar 17, 2022, at 3:17 PM, Brian Milby via use-livecode wrote: > > Would it be bad form to post the link? I just kicked in a bit more since I think it has great potential. I hope it fully funds. > > Sent from my iPhone > >> On Mar 17, 2022, at 1:56 PM, Tom Glod via use-livecode wrote: >> >> welcome to the club I have the same issue. No spam filter on my end, I >> checked. >> Heather, I do get the other mailings about blogs and the livecode services. >> Is that a different list? >> >>> On Thu, Mar 17, 2022 at 1:14 PM J. Landman Gay via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>> I think there's still time to support the project. No risk, you get your >>> money back if it doesn't fund. I personally hope it does, the benefits >>> would be big. >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> On March 17, 2022 11:47:05 AM "R.H. via use-livecode" >>> wrote: >>> >>>> I did not receive any letter regardings any funding. >>>> >>>> Roland >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 mkoob at rogers.com Thu Mar 17 16:04:48 2022 From: mkoob at rogers.com (Martin Koob) Date: Thu, 17 Mar 2022 16:04:48 -0400 Subject: Funding In-Reply-To: <481044D6-DB00-4C28-BA92-55B7B6133B41@milby7.com> References: <481044D6-DB00-4C28-BA92-55B7B6133B41@milby7.com> Message-ID: <9BB39876-56DE-4646-BFAA-002AD95A3F43@rogers.com> Hi Incase there are some who still can’t see the page, here is a text listing of the Single Payment and Subscription Payment Options on the project offer page: https://livecode.com/the-script-compiler-project/ Single Payment Options Contribute $99 Ex VAT No Compiler – but supports the project that will bring 2-3x speed boost and better syntax to core product. All LiveCode license holders benefit. LiveCode Compiler: 3 Months $125 Ex VAT Get the 10x Compiler with all benefits for 3 months (No subscription) + supports the project that will benefit all LiveCode license holders. LiveCode Compiler: 6 Months $249 Ex VAT Get the 10x Compiler with all benefits for 6 months (No subscription) + supports the project that will benefit all LiveCode license holders. Subscription Payment Options LiveCode Compiler: 1 Year $499 Ex VAT Get the 10x Compiler with all benefits on a 12 month subscription + supports the project that will benefit all LiveCode license holders. LiveCode Compiler: 2 Years $999 Ex VAT Get the 10x Compiler with all benefits for 24 months on subscription + supports the project that will benefit all LiveCode license holders. LiveCode Compiler: 3 Years $1499 Ex VAT Get the 10x Compiler with all benefits for 36 months on subscription + supports the project that will benefit all LiveCode license holders. Terms All license periods start from the final shipping date of the Script Compiler. Your license renewal date will be adjusted once we have this information. If the project does not raise enough money to go ahead, we will refund all purchases. Martin Koob > On Mar 17, 2022, at 3:17 PM, Brian Milby via use-livecode > wrote: > > Would it be bad form to post the link? I just kicked in a bit more since I think it has great potential. I hope it fully funds. > > Sent from my iPhone > >> On Mar 17, 2022, at 1:56 PM, Tom Glod via use-livecode > wrote: >> >> welcome to the club I have the same issue. No spam filter on my end, I >> checked. >> Heather, I do get the other mailings about blogs and the livecode services. >> Is that a different list? >> >>> On Thu, Mar 17, 2022 at 1:14 PM J. Landman Gay via use-livecode < >>> use-livecode at lists.runrev.com > wrote: >>> >>> I think there's still time to support the project. No risk, you get your >>> money back if it doesn't fund. I personally hope it does, the benefits >>> would be big. >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> On March 17, 2022 11:47:05 AM "R.H. via use-livecode" >>> > wrote: >>> >>>> I did not receive any letter regardings any funding. >>>> >>>> Roland >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode 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 Thu Mar 17 18:34:31 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 17 Mar 2022 22:34:31 +0000 Subject: Compiler Funding Options Update In-Reply-To: References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> Message-ID: I originally popped for $198, but I just paid for a year's subscription. If I do not get the $198 back, oh well. Bob S > On Mar 16, 2022, at 17:57 , Tom Glod via use-livecode wrote: > > Well...I threw in $100 to help make it happen...fingers crossed. > > On Wed, Mar 16, 2022 at 8:53 PM Tom Glod wrote: > >> I see.... the page I had bookmarked has a "-page" at the end of slug. >> >> https://livecode.com/script-compiler-project-page/ >> >> Thank you. >> >> On Wed, Mar 16, 2022 at 7:27 PM J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote: >>>> When I go ot the page I only see the 3 options.... how do I get to the >>> $99 >>>> option? >>> >>> I see six options. Do you have any plugins that might disable some of the >>> javascript, or >>> similar? Try a different browser, maybe? >>> >>> -- >>> 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 tom at makeshyft.com Thu Mar 17 21:09:03 2022 From: tom at makeshyft.com (Tom Glod) Date: Thu, 17 Mar 2022 21:09:03 -0400 Subject: Compiler Funding Options Update In-Reply-To: References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> Message-ID: Thanks Bob, I'm sure it will be honored. This is pretty important for livecode itself, I hope a way will be found even if target is not met. On Thu, Mar 17, 2022 at 6:35 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I originally popped for $198, but I just paid for a year's subscription. > If I do not get the $198 back, oh well. > > Bob S > > > > On Mar 16, 2022, at 17:57 , Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Well...I threw in $100 to help make it happen...fingers crossed. > > > > On Wed, Mar 16, 2022 at 8:53 PM Tom Glod wrote: > > > >> I see.... the page I had bookmarked has a "-page" at the end of slug. > >> > >> https://livecode.com/script-compiler-project-page/ > >> > >> Thank you. > >> > >> On Wed, Mar 16, 2022 at 7:27 PM J. Landman Gay via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > >>> On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote: > >>>> When I go ot the page I only see the 3 options.... how do I get to the > >>> $99 > >>>> option? > >>> > >>> I see six options. Do you have any plugins that might disable some of > the > >>> javascript, or > >>> similar? Try a different browser, maybe? > >>> > >>> -- > >>> 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 > From jacque at hyperactivesw.com Thu Mar 17 21:25:38 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 17 Mar 2022 20:25:38 -0500 Subject: Compiler Funding Options Update In-Reply-To: References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> Message-ID: <17f9aa15250.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Anyone on the fence should decide pretty quick, as of now there are less than 6 hours left to contribute. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 17, 2022 8:11:29 PM Tom Glod via use-livecode wrote: > Thanks Bob, I'm sure it will be honored. > This is pretty important for livecode itself, I hope a way will be found > even if target is not met. > > On Thu, Mar 17, 2022 at 6:35 PM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I originally popped for $198, but I just paid for a year's subscription. >> If I do not get the $198 back, oh well. >> >> Bob S >> >> >> > On Mar 16, 2022, at 17:57 , Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Well...I threw in $100 to help make it happen...fingers crossed. >> > >> > On Wed, Mar 16, 2022 at 8:53 PM Tom Glod wrote: >> > >> >> I see.... the page I had bookmarked has a "-page" at the end of slug. >> >> >> >> https://livecode.com/script-compiler-project-page/ >> >> >> >> Thank you. >> >> >> >> On Wed, Mar 16, 2022 at 7:27 PM J. Landman Gay via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >> >> >>> On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote: >> >>>> When I go ot the page I only see the 3 options.... how do I get to the >> >>> $99 >> >>>> option? >> >>> >> >>> I see six options. Do you have any plugins that might disable some of >> the >> >>> javascript, or >> >>> similar? Try a different browser, maybe? >> >>> >> >>> -- >> >>> 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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 keith.clarke at me.com Fri Mar 18 06:28:27 2022 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 18 Mar 2022 10:28:27 +0000 Subject: How to access scripts on a modal card that is stuck / not visible? Message-ID: Hi folks, Experimenting with OAuth, I built a “Login” card containing a Browser widget that allows me to access OAuth to log onto an online service. Once authorised, the script on the Browser Widget finished with 'go card “Home”’ where I’m building out some utilities to work with the web service. The web service’s access token is short-lived, so I thought I’d convert the Login card into a pop-up dialogue on the Home card for convenience. So, I added a “Login” button to that card to ‘go card “Login” as modal. However, now any attempt to go to the Login card results in either the card flashing up and disappearing or the stack locking with the modal card inaccessible. I seem to have created some kind of loop that is in play in run or edit modes. I’ve not done much with multiple card stacks and never used modes before. So, I have two questions: 1. What’s the syntax needed to open the script of an un-open object via the message box, so I can break out of this loop? 2. Can anyone please suggest a worked example or lesson of a pop-up web service login dialogue, as I’m clearly doing something basic wrong! Thanks & regards, Keith From bdrunrev at gmail.com Fri Mar 18 06:44:30 2022 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 18 Mar 2022 10:44:30 +0000 Subject: debugging javascript in html5 Message-ID: Considering the html5 enhancements might well be the biggest thing in LC 10, I can foresee a whole world of pain when it comes to us debugging Javascript interactions. Without access to all the development tools that come in modern browsers how is any interaction of any complexity between LC and JS going to be debugged? I think at the bare minimum there needs to be JS code loaded on the default page of the html5 app launched from the IDE through which JS code users would easily/transparently be able to feed logging/debugging information in _their_ JS code back to the LC app running as html5. I'm running into these problems already in trying to work out why libUrlLastRHHeaders() is not returning all headers. I don't think I'm doing anything particularly complex - yet debugging normal JS in a browser is easy, debugging in LC is easy, but the LC/JS/LC interactions are a black box. IMO this lack of insight to what is going on is going to be an impediment to LC users taking advantage of the new html5 platform. I feel like I'm working with browsers from circa 1999, before the time of the Venkman debugger that came from Mozilla. Even a default JS function liveCode.log('variable =' + variable) which was set up to send its parameter to the LC html5 app running in the browser would be helpful. But TBH I suspect more detailed consideration needs to be given to this area. I think it was 2015 when the html5 deployment was first released. Seven years later and this is finally getting to something that could be useful, and which certainly would mark out Livecode from almost all other development tools. Maybe others have already worked out how to get insight into what the JS is doing in the context of a html5 app. If so, I'd be interested to know how they are debugging these interactions. Regards Bernard From dvglasgow at gmail.com Fri Mar 18 07:02:59 2022 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 18 Mar 2022 11:02:59 +0000 Subject: Text overwriting itself in non wrapping field In-Reply-To: <4fe7fc94-be20-a7a2-53f0-d30c1d558ab4@hyperactivesw.com> References: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> <4fe7fc94-be20-a7a2-53f0-d30c1d558ab4@hyperactivesw.com> Message-ID: <576CFA67-A94D-4FDA-AA77-7E6624A55298@gmail.com> Fixed line height didn’t fix the problem but thanks for the suggestion. However, looking more closely there are 3 visible characters where cr should be. They are â9u except 9u is constant and the first character is almost always there, but varies wildly. Often an underscore but also accented a, e or u. Even more weirdly, if I search the field for ‘9u', several lines are found, but not any in the mutant line. And yet more weirdly again, when the line is displayed in a field with wrap true, the weird three characters appear at the beginning of ‘new lines’ except they are not actually new lines because they highlight as a single block. An invisible form feed? or something else between 9 and u that a wrapping field decides is a wrap point but confuses the hell out of a non-wrapping field? If I thought this was just a weird one off, I would shrug my shoulders and move on. Shall I do that, and we will never speak of this again? Best wishes, David G > On 17 Mar 2022, at 7:21 pm, J. Landman Gay via use-livecode wrote: > > On 3/17/22 10:58 AM, David V Glasgow via use-livecode wrote: >> Examining it, it looks like it ought to be a number of separate lines, and it also contains weird visible and also white space that is not a simple space. I can’t see any recognisable pattern to suggest where cr should be. > > I usually copy the mysterious character and in the message box: put charToNum(the clipboarddata) > > That gives me something to look up in an ascii or unicode table. Then you can replace all those characters with space or whatever seems reasonable for the data. That may give you a clue as to what the line should actually be. > > -- > 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 bdrunrev at gmail.com Fri Mar 18 07:19:28 2022 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 18 Mar 2022 11:19:28 +0000 Subject: debugging javascript in html5 In-Reply-To: References: Message-ID: Here's a peculiarity I haven't seen mentioned before. I am trying to test the viability of the idea of a function to call back to LC and provide debugging info. Assume you create a LC function lclog(pmsg,pval) and you put a breakpoint in the IDE inside that function body. Set the htmltext of a browser widget to the code below, set the javascriptHandlers of the browser to contain the word: lclog . Your browser widget will have a button 'clickme'. 1) On clicking that button the JS alerts ALL trigger first. 2) After they have fired the first call to lclog() runs, and the second call to lclog() never runs. In case that html gets mangled by the uselist software, here's the above html base64encoded: PGh0bWw+PGhlYWQ+PHNjcmlwdD5mdW5jdGlvbiBsY3hocihtZXRob2QsIHVybCkgewphbGVy dCgnbGN4aHIgY2FsbGVkJyk7IAp2YXIganNvbiA9IEpTT04uc3RyaW5naWZ5KHsgIG5hbWU6 ICJKb2huIiwgIHN1cm5hbWU6ICJTbWl0aCJ9KTsKbGl2ZUNvZGUubGNsb2coJ2pzb24gY3Jl YXRlZCcsIGpzb24pOwphbGVydCgneW91IHNlZSB0aGlzIGFsZXJ0IGJlZm9yZSB0aGUgYWJv dmUgY2FsbCB0byBsY2xvZygpJyk7CmxpdmVDb2RlLmxjbG9nKCdleGl0IGpzIGZ1bmN0aW9u JywnJyk7Cn08L3NjcmlwdD48L2hlYWQ+PGJvZHk+PGlucHV0IGlkPSJjbGlja01lIiB0eXBl PSJidXR0b24iIHZhbHVlPSJjbGlja21lIiBvbmNsaWNrPSJsY3hocignJywnaHR0cDovLzE5 Mi4xNjguMC4zNDo4MDgwL3RhYnMvZWNoby50Y2wnKTsiIC8+PC9ib2R5PjwvaHRtbD4= So we can't rely on the timing of anything returned to a javascripHandler. Moreover, once a javascriptHandler has fired there can't be anything else that runs. Quite a limitation IMO. Regards Bernard > From mark at livecode.com Fri Mar 18 07:25:12 2022 From: mark at livecode.com (Mark Waddingham) Date: Fri, 18 Mar 2022 11:25:12 +0000 Subject: 10.0.0-dp-2 html5 and liburlLastRHHeaders() In-Reply-To: References: <81c531458b12640ce26f6392bd79d24c@livecode.com> Message-ID: On 2022-03-17 13:07, Bernard Devlin via use-livecode wrote: > So there is something else going on between LC's libUrlLastRHHeaders() > and > LC's interaction with the JS XMLHttpRequest(). This something is > stripping > out most of the headers. As I said, LC is not stripping anything - we are returning what JS returns. However, the difference is that (currently) we use the synchronous mode of XMLHttpRequests (as prior to 10, due to the lack of wait using async wasn't viable apart from for `load url`). I wonder if that might be the difference. Your sample code and example is useful - if you could post to a bug report, then we will look into whether that is the case, or there is something else going on. Warmest Regards, Mark. P.S. We are hoping to move to the async version of XMLHttpRequest now that we can wait - so that might well be the solution. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Mar 18 07:30:59 2022 From: mark at livecode.com (Mark Waddingham) Date: Fri, 18 Mar 2022 11:30:59 +0000 Subject: debugging javascript in html5 In-Reply-To: References: Message-ID: On 2022-03-18 11:19, Bernard Devlin via use-livecode wrote: > Here's a peculiarity I haven't seen mentioned before. I am trying to > test > the viability of the idea of a function to call back to LC and provide > debugging info. > > Assume you create a LC function lclog(pmsg,pval) and you put a > breakpoint > in the IDE inside that function body. Set the htmltext of a browser > widget > to the code below, set the javascriptHandlers of the browser to contain > the > word: lclog . Your browser widget will have a button 'clickme'. > 1) On clicking that button the JS alerts ALL trigger first. > 2) After they have fired the first call to lclog() runs, and the second > call to lclog() never runs. > > So this is quite separate from what happens in the web engine which works very differently. Embeddable browsers are inherently asynchronous in their execution (not necessarily in a multi-thready way, although that does play a part) - but more in the sense that you can't get an embedded browser to do anything and have it 'block' until it is done. The converse is also true - the request to call an LC handler from the browser widget is basically a post - not a send - which means that (really) you can only call LC handlers as tail calls - i.e. as the last thing on a handler. Warmest Regards, Mark. P.S. The web engine is (essentially) the running the LC script 'as JavaScript' so the same limitation does not apply - calling LC handlers from JS in the web engine is synchronous. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Mar 18 07:34:22 2022 From: mark at livecode.com (Mark Waddingham) Date: Fri, 18 Mar 2022 11:34:22 +0000 Subject: debugging javascript in html5 In-Reply-To: References: Message-ID: <33c1cc4f519798958037cd8c987c561a@livecode.com> On 2022-03-18 10:44, Bernard Devlin via use-livecode wrote: > Considering the html5 enhancements might well be the biggest thing in > LC > 10, I can foresee a whole world of pain when it comes to us debugging > Javascript interactions. Yes - this is somewhat painful at present - and we do hope to make debugging web standalones in general less painful in time. However, if you 'Test' your web standalone in a browser you can then open up the Developer Tools for the browser you are testing in - which gives you access to the JS console and all the other tools. In JS you can use `console.log(...);` to have messages emitted to the JS console. Additionally, I *think* you can use `debugger;` to have JS code break into the debugger in said browser's developer tools. I must confess I've not tried this myself (as our debugging is usually debugging the engine running in the browser, rather than debugging JS executed from the engine running the browser) - but I can't see why it wouldn't work. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bdrunrev at gmail.com Fri Mar 18 08:31:42 2022 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 18 Mar 2022 12:31:42 +0000 Subject: 10.0.0-dp-2 html5 and liburlLastRHHeaders() In-Reply-To: References: <81c531458b12640ce26f6392bd79d24c@livecode.com> Message-ID: Hi Mark It turns out it is an anomaly due to CORS. There were so many steps involved in trying to isolate what was going on (juggling different deployments, different servers). Eventually I got there. https://quality.livecode.com/show_bug.cgi?id=23633 I wonder if there are a whole host of CORS issues which Javascript developers already know to look out for. Regards, Bernard On Fri, Mar 18, 2022 at 11:25 AM Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > > As I said, LC is not stripping anything - we are returning what JS > returns. > > From tom at makeshyft.com Fri Mar 18 10:12:49 2022 From: tom at makeshyft.com (Tom Glod) Date: Fri, 18 Mar 2022 10:12:49 -0400 Subject: How to access scripts on a modal card that is stuck / not visible? In-Reply-To: References: Message-ID: Hey Keith, I could probably help you with the first part, but I'd have to take a look myself at the file. Are you able to share it with me? Feel free to email. On Fri, Mar 18, 2022 at 6:29 AM Keith Clarke via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi folks, > Experimenting with OAuth, I built a “Login” card containing a Browser > widget that allows me to access OAuth to log onto an online service. Once > authorised, the script on the Browser Widget finished with 'go card “Home”’ > where I’m building out some utilities to work with the web service. > > The web service’s access token is short-lived, so I thought I’d convert > the Login card into a pop-up dialogue on the Home card for convenience. So, > I added a “Login” button to that card to ‘go card “Login” as modal. > However, now any attempt to go to the Login card results in either the card > flashing up and disappearing or the stack locking with the modal card > inaccessible. I seem to have created some kind of loop that is in play in > run or edit modes. > > I’ve not done much with multiple card stacks and never used modes before. > So, I have two questions: > > 1. What’s the syntax needed to open the script of an un-open object via > the message box, so I can break out of this loop? > 2. Can anyone please suggest a worked example or lesson of a pop-up web > service login dialogue, as I’m clearly doing something basic wrong! > > 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 Fri Mar 18 11:21:35 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 18 Mar 2022 15:21:35 +0000 Subject: How to access scripts on a modal card that is stuck / not visible? In-Reply-To: References: Message-ID: <0C4E2181-3E6B-459D-AE3A-2D53D1BE4033@iotecdigital.com> I wasn't aware a card could be made modal as opposed to a stack. I have a separate substack for logging in, so I go stack "Login" as modal. That works for me. Bob S > On Mar 18, 2022, at 03:28 , Keith Clarke via use-livecode wrote: > > Hi folks, > Experimenting with OAuth, I built a “Login” card containing a Browser widget that allows me to access OAuth to log onto an online service. Once authorised, the script on the Browser Widget finished with 'go card “Home”’ where I’m building out some utilities to work with the web service. > > The web service’s access token is short-lived, so I thought I’d convert the Login card into a pop-up dialogue on the Home card for convenience. So, I added a “Login” button to that card to ‘go card “Login” as modal. However, now any attempt to go to the Login card results in either the card flashing up and disappearing or the stack locking with the modal card inaccessible. I seem to have created some kind of loop that is in play in run or edit modes. > > I’ve not done much with multiple card stacks and never used modes before. So, I have two questions: > > 1. What’s the syntax needed to open the script of an un-open object via the message box, so I can break out of this loop? > 2. Can anyone please suggest a worked example or lesson of a pop-up web service login dialogue, as I’m clearly doing something basic wrong! > > 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 dan at clearvisiontech.com Fri Mar 18 12:18:51 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 18 Mar 2022 16:18:51 +0000 Subject: Emojis in Text Message-ID: <416821E2-6B48-4384-8CB5-C6CA7D7D8BD2@clearvisiontech.com> I can't be the first to bring this up, so sorry if this has been asked already... Is there a current solution for Emojis in text? On a mobile device, in a native field, a user enters a emoji (no method to stop them that I can find). I save that text somewhere like a database. When I load it back (into a LC field for display), it appears as a question mark. What up? Anyone have knowledge on this topic? Is there a useEmojis property I don't know about? -Dan From paul at researchware.com Fri Mar 18 12:29:31 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 18 Mar 2022 12:29:31 -0400 Subject: Emojis in Text In-Reply-To: <416821E2-6B48-4384-8CB5-C6CA7D7D8BD2@clearvisiontech.com> References: <416821E2-6B48-4384-8CB5-C6CA7D7D8BD2@clearvisiontech.com> Message-ID: On 3/18/2022 12:18 PM, Dan Friedman via use-livecode wrote: > I can't be the first to bring this up, so sorry if this has been asked already... > > Is there a current solution for Emojis in text? On a mobile device, in a native field, a user enters a emoji (no method to stop them that I can find). I save that text somewhere like a database. When I load it back (into a LC field for display), it appears as a question mark. What up? Anyone have knowledge on this topic? Is there a useEmojis property I don't know about? > It probably depends on 2 things: 1) If the app the Emojis are created in is creating them as Unicode Emojis or as images. If they are created as images, then they are probably not getting transferred to the database correctly. If they are Unicode, also make sure they are not being lost in the upload to the database - the database encoding needs to support some Unicode encoding like UFT8 2) If the database has the correct data, then when loading it into a LiveCode field you probably need to textDecode (see dictionary) the data from UTF8 to LiveCode's native (UTF16) text. See https://unicode.org/emoji/charts/full-emoji-list.html as well From tom at makeshyft.com Fri Mar 18 12:39:34 2022 From: tom at makeshyft.com (Tom Glod) Date: Fri, 18 Mar 2022 12:39:34 -0400 Subject: Compiler Funding Options Update In-Reply-To: <17f9aa15250.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> <17f9aa15250.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Tony B on the FB group said that the funding goal was reached, I don't know how he knows that, but I doubt he is just making it up. Does anyone know where we can confirm the status? On Thu, Mar 17, 2022 at 9:26 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > Anyone on the fence should decide pretty quick, as of now there are less > than 6 hours left to contribute. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On March 17, 2022 8:11:29 PM Tom Glod via use-livecode > wrote: > > > Thanks Bob, I'm sure it will be honored. > > This is pretty important for livecode itself, I hope a way will be found > > even if target is not met. > > > > On Thu, Mar 17, 2022 at 6:35 PM Bob Sneidar via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I originally popped for $198, but I just paid for a year's subscription. > >> If I do not get the $198 back, oh well. > >> > >> Bob S > >> > >> > >> > On Mar 16, 2022, at 17:57 , Tom Glod via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >> > > >> > Well...I threw in $100 to help make it happen...fingers crossed. > >> > > >> > On Wed, Mar 16, 2022 at 8:53 PM Tom Glod wrote: > >> > > >> >> I see.... the page I had bookmarked has a "-page" at the end of slug. > >> >> > >> >> https://livecode.com/script-compiler-project-page/ > >> >> > >> >> Thank you. > >> >> > >> >> On Wed, Mar 16, 2022 at 7:27 PM J. Landman Gay via use-livecode < > >> >> use-livecode at lists.runrev.com> wrote: > >> >> > >> >>> On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote: > >> >>>> When I go ot the page I only see the 3 options.... how do I get to > the > >> >>> $99 > >> >>>> option? > >> >>> > >> >>> I see six options. Do you have any plugins that might disable some > of > >> the > >> >>> javascript, or > >> >>> similar? Try a different browser, maybe? > >> >>> > >> >>> -- > >> >>> 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 > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 klaus at major-k.de Fri Mar 18 12:43:39 2022 From: klaus at major-k.de (Klaus major-k) Date: Fri, 18 Mar 2022 17:43:39 +0100 Subject: Compiler Funding Options Update In-Reply-To: References: <17f93e3db90.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <6b600101-8ffb-667a-0325-a43c8de47008@hyperactivesw.com> <17f9aa15250.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <990BB1A5-8493-453C-A7FA-823B38860536@major-k.de> Hi Tom, > Am 18.03.2022 um 17:39 schrieb Tom Glod via use-livecode : > > Tony B on the FB group said that the funding goal was reached, I don't know > how he knows that, but I doubt he is just making it up. > Does anyone know where we can confirm the status? yes, I received a mail from "sales at livecode.com" telling me "You did it!" :-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From matthias_livecode_150811 at m-r-d.de Fri Mar 18 12:45:23 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 18 Mar 2022 17:45:23 +0100 Subject: Compiler Funding Options Update In-Reply-To: <990BB1A5-8493-453C-A7FA-823B38860536@major-k.de> References: <990BB1A5-8493-453C-A7FA-823B38860536@major-k.de> Message-ID: <8906943D-AF00-4CBB-AAFB-FE01560ADE1E@m-r-d.de> Me,too. About 8 hrs ago. Von meinem iPhone gesendet > Am 18.03.2022 um 17:44 schrieb Klaus major-k via use-livecode : > > Hi Tom, > >> Am 18.03.2022 um 17:39 schrieb Tom Glod via use-livecode : >> >> Tony B on the FB group said that the funding goal was reached, I don't know >> how he knows that, but I doubt he is just making it up. >> Does anyone know where we can confirm the status? > > yes, I received a mail from "sales at livecode.com" telling me "You did it!" :-) > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 tom at makeshyft.com Fri Mar 18 12:48:37 2022 From: tom at makeshyft.com (Tom Glod) Date: Fri, 18 Mar 2022 12:48:37 -0400 Subject: Compiler Funding Options Update In-Reply-To: <8906943D-AF00-4CBB-AAFB-FE01560ADE1E@m-r-d.de> References: <990BB1A5-8493-453C-A7FA-823B38860536@major-k.de> <8906943D-AF00-4CBB-AAFB-FE01560ADE1E@m-r-d.de> Message-ID: Awesome, thanks!!! On Fri, Mar 18, 2022 at 12:46 PM Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Me,too. About 8 hrs ago. > > Von meinem iPhone gesendet > > > Am 18.03.2022 um 17:44 schrieb Klaus major-k via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi Tom, > > > >> Am 18.03.2022 um 17:39 schrieb Tom Glod via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Tony B on the FB group said that the funding goal was reached, I don't > know > >> how he knows that, but I doubt he is just making it up. > >> Does anyone know where we can confirm the status? > > > > yes, I received a mail from "sales at livecode.com" telling me "You did > it!" :-) > > > > > > Best > > > > Klaus > > > > -- > > Klaus Major > > https://www.major-k.de > > https://www.major-k.de/bass > > klaus at major-k.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 18 13:23:11 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 18 Mar 2022 12:23:11 -0500 Subject: How to access scripts on a modal card that is stuck / not visible? In-Reply-To: References: Message-ID: <17f9e0dfc18.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Modes are only for stacks and can't be used for individual cards. It sounds like the whole stack is going modal. There are several ways to edit a script for a control. 1. Click the script lines in the project browser, or right click the control in the app browser and choose "edit script". 2. In the message box: edit script of . I.e., edit script of btn 1 3. Turn off messages in the toolbar. Then you can edit scripts as usual. 4. Choose the edit tool, right click the control, choose to edit the script. 5. If the stack is already in modal mode, use the message box to: toplevel . Or Cmd-Opt-Shift click the stack and choose toplevel from the Mode menu item. (I assume on Windows that's control-alt-shift.) There are also other keyboard shortcuts but those should get you started. Since the mode doesn't change unless you click the button, you should be able to edit the script normally if you don't do that. You can display a substack as a modal login, or use a group on the current card. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 18, 2022 5:31:04 AM Keith Clarke via use-livecode wrote: > > 1. Whats the syntax needed to open the script of an un-open object via the > message box, so I can break out of this loop? > 2. Can anyone please suggest a worked example or lesson of a pop-up web > service login dialogue, as Im clearly doing something basic wrong! From bdrunrev at gmail.com Fri Mar 18 14:49:34 2022 From: bdrunrev at gmail.com (Bernard Devlin) Date: Fri, 18 Mar 2022 18:49:34 +0000 Subject: html5 - javascriptHandlers Message-ID: With the Browser widget javascript can send messages to the parent app, triggering some Livecodescript in the parent. Is there an equivalent in a html5 deployment? It seems that in html5 deployment Livecodescript can call to the Javascript of the parent browser by "do somestuff() as Javascript". I am sure the equivalent of javascriptHandlers must exist but I can't find out how to make the call. Regards, Bernard From jacque at hyperactivesw.com Fri Mar 18 15:07:26 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 18 Mar 2022 14:07:26 -0500 Subject: Text overwriting itself in non wrapping field In-Reply-To: <576CFA67-A94D-4FDA-AA77-7E6624A55298@gmail.com> References: <183250AF-33C8-4270-A923-DACAD6666C13@gmail.com> <4fe7fc94-be20-a7a2-53f0-d30c1d558ab4@hyperactivesw.com> <576CFA67-A94D-4FDA-AA77-7E6624A55298@gmail.com> Message-ID: On 3/18/22 6:02 AM, David V Glasgow via use-livecode wrote: > However, looking more closely there are 3 visible characters where cr should be. They are â9u except 9u is constant and the first character is almost always there, but varies wildly. Often an underscore but also accented a, e or u. Even more weirdly, if I search the field for ‘9u', several lines are found, but not any in the mutant line. > > And yet more weirdly again, when the line is displayed in a field with wrap true, the weird three characters appear at the beginning of ‘new lines’ except they are not actually new lines because they highlight as a single block. An invisible form feed? or something else between 9 and u that a wrapping field decides is a wrap point but confuses the hell out of a non-wrapping field? The text came from a server, right? This sounds like it may be a text encoding issue. It's likely UTF8, so try textDecode(tText,"UTF8") and see if that resolves it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Fri Mar 18 15:17:36 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 18 Mar 2022 20:17:36 +0100 Subject: Solution for how to allow LC 9.6.6 and up standalones to control other apps in macOS - was:Excel_Lib on Mac In-Reply-To: <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> Message-ID: <493FB232-5B4D-42FE-A0A6-78D6C82BAAE5@m-r-d.de> First of all there is a bug report already. Unfortunately LC stuff is not able to reproduce the problem. But there a some users who reported that it is not possible in LC 9.6.6 and up to control an other app from within a LC script using Apple script if the app was not already listed under Livecode in System preferences/Security&Privacy/Automation. For whatever reason there was not the typical security pop up asking for confirmation. As a workaround it is possible to run the stack first with LC 9.6.3. With that version the dialog pops up and the user can confirm. After that the stack works also with 9.6.6 and up and is able to control that other app. But what about standalones created with LC 9.6.6 and up? They will not show up the dialog. To get this working, the standalones need some additional information in the info.plist and they need to be code signed with entitlements. At least with the entitlement com.apple.security.automation.apple-events So after you've created the macOS standalone you have to modify the info.plist of that standalone and then you have to codesign it with entitlements. After that your app created with 9.6.6 will show that security dialog. Is that easy? No. I've solved it this way as a workaround, so i do not have to do this manually after each standalone building process. 1. I created a folder 'entitlements' in the folder 'My Livecode/resources/' 2. I copied an entitlements file into that folder and named it 'entitlements.plist'. My entitlements.plist file contains all entitlements as suggested by the following lesson. https://lessons.livecode.com/m/4071/l/1293515-entitlements-for-signed-and-notarized-apps 3. I edited the sample info.plist file in the Livecode App bundle Livecode...app/Contents/Tools/Runtime/Mac OS X/x86-64/Standalone.app/Contents/info.plist I added the following two lines to it NSAppleEventsUsageDescription This app needs permission to use Apple Script I placed it directly under the line This app requires permission to access your Media Library 4. I edited the stack script of the stack revSaveAsStandalone, better said i modified the handler performAdHocCodesign pAppBundle I commented out the line put "codesign --deep -f -s -" && quote & pAppBundle & quote into tShell and put the following lines after that line if there is a file revEnvironmentUserResourcesPath()&"/entitlements/entitlement.plist" then put "codesign --deep --entitlements" && quote &revEnvironmentUserResourcesPath()&"/entitlements/entitlement.plist" & Quote && "-f -s -" && quote & pAppBundle & quote into tShell else put "codesign --deep -f -s -" && quote & pAppBundle & quote into tShell end if Now when i create a macOS standalone the standalone contains the needed information in the info.plist and LC does an adhoc codesigning, as it did before, but now with entitlements. With this created app the security dialog pops up right away. If i want, for whatever reason, to create an macOS without that modification, then i just have to rename my entitlements.plist file and LC does the normal adhoc code signing as it did before. The above steps 3 and 4 have to be done for each LC edition that does have this 'problem'. But if you are like me then you need to do this only for the most current version. Hope this helps the one or other. Matthias From matthias_livecode_150811 at m-r-d.de Fri Mar 18 15:37:10 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 18 Mar 2022 20:37:10 +0100 Subject: Solution for how to allow LC 9.6.6 and up standalones to control other apps in macOS - was:Excel_Lib on Mac In-Reply-To: <493FB232-5B4D-42FE-A0A6-78D6C82BAAE5@m-r-d.de> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> <493FB232-5B4D-42FE-A0A6-78D6C82BAAE5@m-r-d.de> Message-ID: <5D98BB5F-BC09-43DF-AEF3-9591BA9143C2@m-r-d.de> Ups, forgot to add the link to the bug report https://quality.livecode.com/show_bug.cgi?id=23576 > Am 18.03.2022 um 20:17 schrieb matthias rebbe via use-livecode : > > First of all there is a bug report already. Unfortunately LC stuff is not able to reproduce the problem. > But there a some users who reported that it is not possible in LC 9.6.6 and up to control an other app from within a LC script using Apple script if the app was not already listed under Livecode in System preferences/Security&Privacy/Automation. For whatever reason there was not the typical security pop up asking for confirmation. > > As a workaround it is possible to run the stack first with LC 9.6.3. With that version the dialog pops up and the user can confirm. After that the stack works also with 9.6.6 and up and is able to control that other app. > > But what about standalones created with LC 9.6.6 and up? They will not show up the dialog. > > To get this working, the standalones need some additional information in the info.plist and they need to be code signed with entitlements. At least with the entitlement > com.apple.security.automation.apple-events > > So after you've created the macOS standalone you have to modify the info.plist of that standalone and then you have to codesign it with entitlements. After that your app created with 9.6.6 will show that security dialog. > > Is that easy? No. > > I've solved it this way as a workaround, so i do not have to do this manually after each standalone building process. > > > 1. I created a folder 'entitlements' in the folder 'My Livecode/resources/' > > 2. I copied an entitlements file into that folder and named it 'entitlements.plist'. > My entitlements.plist file contains all entitlements as suggested by the following lesson. > https://lessons.livecode.com/m/4071/l/1293515-entitlements-for-signed-and-notarized-apps > > 3. I edited the sample info.plist file in the Livecode App bundle Livecode...app/Contents/Tools/Runtime/Mac OS X/x86-64/Standalone.app/Contents/info.plist > I added the following two lines to it > NSAppleEventsUsageDescription > This app needs permission to use Apple Script > > I placed it directly under the line > This app requires permission to access your Media Library > > 4. I edited the stack script of the stack revSaveAsStandalone, better said i modified the handler performAdHocCodesign pAppBundle > > I commented out the line > put "codesign --deep -f -s -" && quote & pAppBundle & quote into tShell > and put the following lines after that line > > if there is a file revEnvironmentUserResourcesPath()&"/entitlements/entitlement.plist" > > then > > put "codesign --deep --entitlements" && quote &revEnvironmentUserResourcesPath()&"/entitlements/entitlement.plist" & Quote && "-f -s -" && quote & pAppBundle & quote into tShell > > else > > put "codesign --deep -f -s -" && quote & pAppBundle & quote into tShell > > end if > > > Now when i create a macOS standalone the standalone contains the needed information in the info.plist and LC does an adhoc codesigning, as it did before, but now with entitlements. > With this created app the security dialog pops up right away. > If i want, for whatever reason, to create an macOS without that modification, then i just have to rename my entitlements.plist file and LC does the normal adhoc code signing as it did before. > > The above steps 3 and 4 have to be done for each LC edition that does have this 'problem'. But if you are like me then you need to do this only for the most current version. > > > Hope this helps the one or other. > > 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 ambassador at fourthworld.com Fri Mar 18 16:48:03 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 18 Mar 2022 13:48:03 -0700 Subject: Solution for how to allow LC 9.6.6 and up standalones to control other apps in macOS - was:Excel_Lib on Mac In-Reply-To: <5D98BB5F-BC09-43DF-AEF3-9591BA9143C2@m-r-d.de> References: <5D98BB5F-BC09-43DF-AEF3-9591BA9143C2@m-r-d.de> Message-ID: <84173f10-f34d-6525-9496-d3a3b2eacab8@fourthworld.com> Thank you for submitting that report, Matthias. Those of us who do consulting understand that there's been a huge transition over the last several years away from custom development of complete systems to integrating between existing systems. On macOS, AppleScript plays a key role in integration. Given the state of the market for tools like LC, anything that makes it easier to use LC in an integration role bodes well for us, the company, and end-users alike. -- Richard Gaskin Fourth World Systems Matthias wrote: > Ups, forgot to add the link to the bug report > > https://quality.livecode.com/show_bug.cgi?id=23576 > >> Am 18.03.2022 um 20:17 schrieb matthias rebbe via use-livecode : >> >> First of all there is a bug report already. Unfortunately LC stuff is not able to reproduce the problem. >> But there a some users who reported that it is not possible in LC 9.6.6 and up to control an other app from within a LC script using Apple script if the app was not already listed under Livecode in System preferences/Security&Privacy/Automation. For whatever reason there was not the typical security pop up asking for confirmation. >> >> As a workaround it is possible to run the stack first with LC 9.6.3. With that version the dialog pops up and the user can confirm. After that the stack works also with 9.6.6 and up and is able to control that other app. >> >> But what about standalones created with LC 9.6.6 and up? They will not show up the dialog. >> >> To get this working, the standalones need some additional information in the info.plist and they need to be code signed with entitlements. At least with the entitlement >> com.apple.security.automation.apple-events >> >> So after you've created the macOS standalone you have to modify the info.plist of that standalone and then you have to codesign it with entitlements. After that your app created with 9.6.6 will show that security dialog. >> >> Is that easy? No. >> >> I've solved it this way as a workaround, so i do not have to do this manually after each standalone building process. >> >> >> 1. I created a folder 'entitlements' in the folder 'My Livecode/resources/' >> >> 2. I copied an entitlements file into that folder and named it 'entitlements.plist'. >> My entitlements.plist file contains all entitlements as suggested by the following lesson. >> https://lessons.livecode.com/m/4071/l/1293515-entitlements-for-signed-and-notarized-apps >> >> 3. I edited the sample info.plist file in the Livecode App bundle Livecode...app/Contents/Tools/Runtime/Mac OS X/x86-64/Standalone.app/Contents/info.plist >> I added the following two lines to it >> NSAppleEventsUsageDescription >> This app needs permission to use Apple Script >> >> I placed it directly under the line >> This app requires permission to access your Media Library >> >> 4. I edited the stack script of the stack revSaveAsStandalone, better said i modified the handler performAdHocCodesign pAppBundle >> >> I commented out the line >> put "codesign --deep -f -s -" && quote & pAppBundle & quote into tShell >> and put the following lines after that line >> >> if there is a file revEnvironmentUserResourcesPath()&"/entitlements/entitlement.plist" >> >> then >> >> put "codesign --deep --entitlements" && quote &revEnvironmentUserResourcesPath()&"/entitlements/entitlement.plist" & Quote && "-f -s -" && quote & pAppBundle & quote into tShell >> >> else >> >> put "codesign --deep -f -s -" && quote & pAppBundle & quote into tShell >> >> end if >> >> >> Now when i create a macOS standalone the standalone contains the needed information in the info.plist and LC does an adhoc codesigning, as it did before, but now with entitlements. >> With this created app the security dialog pops up right away. >> If i want, for whatever reason, to create an macOS without that modification, then i just have to rename my entitlements.plist file and LC does the normal adhoc code signing as it did before. >> >> The above steps 3 and 4 have to be done for each LC edition that does have this 'problem'. But if you are like me then you need to do this only for the most current version. >> >> >> Hope this helps the one or other. >> >> Matthias >> From ambassador at fourthworld.com Fri Mar 18 16:57:31 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 18 Mar 2022 13:57:31 -0700 Subject: Text overwriting itself in non wrapping field In-Reply-To: <576CFA67-A94D-4FDA-AA77-7E6624A55298@gmail.com> References: <576CFA67-A94D-4FDA-AA77-7E6624A55298@gmail.com> Message-ID: David V Glasgow wrote: > Fixed line height didnt fix the problem but thanks for the > suggestion. > > However, looking more closely there are 3 visible characters where cr > should be. They are 9u except 9u is constant and the first > character is almost always there, but varies wildly. Often an > underscore but also accented a, e or u. Even more weirdly, if > I search the field for 9u', several lines are found, but not any > in the mutant line. > > And yet more weirdly again, when the line is displayed in a field > with wrap true, the weird three characters appear at the beginning > of new lines except they are not actually new lines because they > highlight as a single block. An invisible form feed? or something > else between 9 and u that a wrapping field decides is a wrap point > but confuses the hell out of a non-wrapping field? > > If I thought this was just a weird one off, I would shrug my shoulders > and move on. > > Shall I do that, and we will never speak of this again? That would deny us a satisfying ending to a good mystery. Let's see if we can address it. I think there are two issue here: display rendering, and errant data. The display rendering may be caused by the length of the line. As you noted, it's unusually long (thanks to the errant data), and I know there's a limit to how many characters can reliably be rendered on a single line. My understanding is that it's much shorter than the 64k limit for performing operations on lines in variables. Maybe display limits rendering to the magic 32k limit imposed on other rendering like groups? If the m-square of the text is > 3px (likely more like 10), and there's 10k of text in that line, the resulting width would exceed 32k px to render. You can test that hypothesis by attempting to display a single line of the same with using the same font and size but with clean characters to see how it renders. If it doesn't appear similarly munged, please let us know. That would leave us with the second item, the errant characters in that data, which appear to be the reason that one line is so unusually long. Where does the data come from, and how it is assembled? Is there any way to check the data source to see if erroneous data was somehow introduced there, and merely carried forward to your LC app? -- 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 matthias_livecode_150811 at m-r-d.de Fri Mar 18 17:26:39 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 18 Mar 2022 22:26:39 +0100 Subject: Solution for how to allow LC 9.6.6 and up standalones to control other apps in macOS - was:Excel_Lib on Mac In-Reply-To: <84173f10-f34d-6525-9496-d3a3b2eacab8@fourthworld.com> References: <5D98BB5F-BC09-43DF-AEF3-9591BA9143C2@m-r-d.de> <84173f10-f34d-6525-9496-d3a3b2eacab8@fourthworld.com> Message-ID: <7D18D174-8EBE-4520-9B88-5C0CB4109EE6@m-r-d.de> Please let me correct, i did not submit that report, i just commented to it. Tim Bobo submitted it. > Am 18.03.2022 um 21:48 schrieb Richard Gaskin via use-livecode : > > > Thank you for submitting that report, Matthias. > > Those of us who do consulting understand that there's been a huge transition over the last several years away from custom development of complete systems to integrating between existing systems. > > On macOS, AppleScript plays a key role in integration. > > Given the state of the market for tools like LC, anything that makes it easier to use LC in an integration role bodes well for us, the company, and end-users alike. > > -- > Richard Gaskin > Fourth World Systems > > > > Matthias wrote: >> Ups, forgot to add the link to the bug report >> https://quality.livecode.com/show_bug.cgi?id=23576 >>> Am 18.03.2022 um 20:17 schrieb matthias rebbe via use-livecode : >>> First of all there is a bug report already. Unfortunately LC stuff is not able to reproduce the problem. But there a some users who reported that it is not possible in LC 9.6.6 and up to control an other app from within a LC script using Apple script if the app was not already listed under Livecode in System preferences/Security&Privacy/Automation. For whatever reason there was not the typical security pop up asking for confirmation. As a workaround it is possible to run the stack first with LC 9.6.3. With that version the dialog pops up and the user can confirm. After that the stack works also with 9.6.6 and up and is able to control that other app. >>> But what about standalones created with LC 9.6.6 and up? They will not show up the dialog. >>> To get this working, the standalones need some additional information in the info.plist and they need to be code signed with entitlements. At least with the entitlement com.apple.security.automation.apple-events >>> So after you've created the macOS standalone you have to modify the info.plist of that standalone and then you have to codesign it with entitlements. After that your app created with 9.6.6 will show that security dialog. >>> Is that easy? No. >>> I've solved it this way as a workaround, so i do not have to do this manually after each standalone building process. >>> 1. I created a folder 'entitlements' in the folder 'My Livecode/resources/' >>> 2. I copied an entitlements file into that folder and named it 'entitlements.plist'. >>> My entitlements.plist file contains all entitlements as suggested by the following lesson. https://lessons.livecode.com/m/4071/l/1293515-entitlements-for-signed-and-notarized-apps >>> 3. I edited the sample info.plist file in the Livecode App bundle Livecode...app/Contents/Tools/Runtime/Mac OS X/x86-64/Standalone.app/Contents/info.plist >>> I added the following two lines to it >>> NSAppleEventsUsageDescription >>> This app needs permission to use Apple Script >>> I placed it directly under the line >>> This app requires permission to access your Media Library >>> 4. I edited the stack script of the stack revSaveAsStandalone, better said i modified the handler performAdHocCodesign pAppBundle >>> I commented out the line put "codesign --deep -f -s -" && quote & pAppBundle & quote into tShell >>> and put the following lines after that line >>> if there is a file revEnvironmentUserResourcesPath()&"/entitlements/entitlement.plist" >>> then >>> put "codesign --deep --entitlements" && quote &revEnvironmentUserResourcesPath()&"/entitlements/entitlement.plist" & Quote && "-f -s -" && quote & pAppBundle & quote into tShell >>> else >>> put "codesign --deep -f -s -" && quote & pAppBundle & quote into tShell >>> end if >>> Now when i create a macOS standalone the standalone contains the needed information in the info.plist and LC does an adhoc codesigning, as it did before, but now with entitlements. >>> With this created app the security dialog pops up right away. >>> If i want, for whatever reason, to create an macOS without that modification, then i just have to rename my entitlements.plist file and LC does the normal adhoc code signing as it did before. >>> The above steps 3 and 4 have to be done for each LC edition that does have this 'problem'. But if you are like me then you need to do this only for the most current version. >>> Hope this helps the one or other. >>> 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 Fri Mar 18 17:28:00 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 18 Mar 2022 21:28:00 +0000 Subject: Solution for how to allow LC 9.6.6 and up standalones to control other apps in macOS - was:Excel_Lib on Mac In-Reply-To: <493FB232-5B4D-42FE-A0A6-78D6C82BAAE5@m-r-d.de> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> <493FB232-5B4D-42FE-A0A6-78D6C82BAAE5@m-r-d.de> Message-ID: I might beg to differ. I created an app with 9.6.7 rc2 after giving it permissions to control Excel for Mac. After building the standalone, it has no problems sending Apple Events to Excel for Mac. I will double check later. Bob S > On Mar 18, 2022, at 12:17 , matthias rebbe via use-livecode wrote: > > First of all there is a bug report already. Unfortunately LC stuff is not able to reproduce the problem. > But there a some users who reported that it is not possible in LC 9.6.6 and up to control an other app from within a LC script using Apple script if the app was not already listed under Livecode in System preferences/Security&Privacy/Automation. For whatever reason there was not the typical security pop up asking for confirmation. > > As a workaround it is possible to run the stack first with LC 9.6.3. With that version the dialog pops up and the user can confirm. After that the stack works also with 9.6.6 and up and is able to control that other app. > > But what about standalones created with LC 9.6.6 and up? They will not show up the dialog. From bobsneidar at iotecdigital.com Fri Mar 18 17:30:37 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 18 Mar 2022 21:30:37 +0000 Subject: Solution for how to allow LC 9.6.6 and up standalones to control other apps in macOS - was:Excel_Lib on Mac In-Reply-To: References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> <493FB232-5B4D-42FE-A0A6-78D6C82BAAE5@m-r-d.de> Message-ID: <928D462B-2C77-41DB-B5F2-E09B1E0CF5D4@iotecdigital.com> Of course, I am running MacOS 10.7.2. YMMV Bob S > On Mar 18, 2022, at 14:28 , Bob Sneidar via use-livecode wrote: > > I might beg to differ. I created an app with 9.6.7 rc2 after giving it permissions to control Excel for Mac. After building the standalone, it has no problems sending Apple Events to Excel for Mac. > > I will double check later. > > Bob S > > >> On Mar 18, 2022, at 12:17 , matthias rebbe via use-livecode wrote: >> >> First of all there is a bug report already. Unfortunately LC stuff is not able to reproduce the problem. >> But there a some users who reported that it is not possible in LC 9.6.6 and up to control an other app from within a LC script using Apple script if the app was not already listed under Livecode in System preferences/Security&Privacy/Automation. For whatever reason there was not the typical security pop up asking for confirmation. >> >> As a workaround it is possible to run the stack first with LC 9.6.3. With that version the dialog pops up and the user can confirm. After that the stack works also with 9.6.6 and up and is able to control that other app. >> >> But what about standalones created with LC 9.6.6 and up? They will not show up the dialog. > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Fri Mar 18 17:50:56 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 18 Mar 2022 22:50:56 +0100 Subject: Solution for how to allow LC 9.6.6 and up standalones to control other apps in macOS - was:Excel_Lib on Mac In-Reply-To: <928D462B-2C77-41DB-B5F2-E09B1E0CF5D4@iotecdigital.com> References: <69BA40B8-9451-417C-9A2F-B3FA9E3A422B@iotecdigital.com> <5A11CCA0-9366-43AB-934D-A7CAFBA9182C@m-r-d.de> <9318DCB6-2B2C-4A3E-BE05-01DA472F2419@iotecdigital.com> <8C3B5D9A-38CF-4778-9B52-B75A7AB36D5C@m-r-d.de> <493FB232-5B4D-42FE-A0A6-78D6C82BAAE5@m-r-d.de> <928D462B-2C77-41DB-B5F2-E09B1E0CF5D4@iotecdigital.com> Message-ID: <2CDD5355-14FE-4A32-9035-D8327F9778A0@m-r-d.de> I think those problems are with newer macOS versions that come with those new privacy settings. > Am 18.03.2022 um 22:30 schrieb Bob Sneidar via use-livecode : > > Of course, I am running MacOS 10.7.2. YMMV > > Bob S > > >> On Mar 18, 2022, at 14:28 , Bob Sneidar via use-livecode wrote: >> >> I might beg to differ. I created an app with 9.6.7 rc2 after giving it permissions to control Excel for Mac. After building the standalone, it has no problems sending Apple Events to Excel for Mac. >> >> I will double check later. >> >> Bob S >> >> >>> On Mar 18, 2022, at 12:17 , matthias rebbe via use-livecode wrote: >>> >>> First of all there is a bug report already. Unfortunately LC stuff is not able to reproduce the problem. >>> But there a some users who reported that it is not possible in LC 9.6.6 and up to control an other app from within a LC script using Apple script if the app was not already listed under Livecode in System preferences/Security&Privacy/Automation. For whatever reason there was not the typical security pop up asking for confirmation. >>> >>> As a workaround it is possible to run the stack first with LC 9.6.3. With that version the dialog pops up and the user can confirm. After that the stack works also with 9.6.6 and up and is able to control that other app. >>> >>> But what about standalones created with LC 9.6.6 and up? They will not show up the dialog. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Fri Mar 18 18:00:38 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 18 Mar 2022 22:00:38 +0000 Subject: Excel Lib 1.4 In-Reply-To: <8AE5DBCD-C295-41C4-86A3-F50926117112@iotecdigital.com> References: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> <6A249D58-1D7C-4E5F-83A7-8A91B1E3CB3B@iotecdigital.com> <1DA7CE81-A042-4B55-8BDA-DF4A577601A2@m-r-d.de> <8AE5DBCD-C295-41C4-86A3-F50926117112@iotecdigital.com> Message-ID: Looks like Excel_Lib is a paid product to the tune of $99/year. For my purposes, that is more than I want to spend simply for the convenience of scraping some data out of an exported Crystal Reports file. Windows is trying to decompress what looks like a compressed vbscript, but Livecode for Windows balks at the decompress command and says it is not compressed data, although it certainly looks like it is in the variable watcher. I suspect it's been corrupted somehow. At any rate, I will probably look at getting the data from exported PDFs instead. Bob S > On Mar 17, 2022, at 09:47 , Bob Sneidar via use-livecode wrote: > > I have v1.4, not sure about the licensing. I will contact zryip presently. Meanwhile I was able to create a separate version of Excel_Lib. I just tested it and it works. > > Bob S > > >> On Mar 17, 2022, at 09:39 , matthias rebbe via use-livecode wrote: >> >> Are you using the open source or the commercial version? >> If i am not wrong then only the commercial license is available as 1.5 and the open source license is 1.2 or so. >> >> If you have the commercial license then you can download the most current version using the username and password that Zryip should have submitted to you. >> If you do not have those credentials, you could send an email to zryip.theslug at gmail.com and ask him to get access to the download area for the commercial lib. >> He normally replies quickly. >> >> Regards, >> >> Matthisa >> >> >>> Am 17.03.2022 um 16:48 schrieb Bob Sneidar via use-livecode : >>> >>> Also if anyone has version 1.5 of the library, would it be possible to send that to me off list? >>> >>> Bob S >>> >>> >>>> On Mar 17, 2022, at 08:43 , Bob Sneidar via use-livecode wrote: >>>> >>>> Does anyone use Excel_Lib? How do you get it to work?? Opening the documentation stack loads the necessary libraries and stacks, but the actual library is a substack of the documentation stack! Also, there are handlers which call on the PROPERTIES of that stack! So I cannot just copy the code out to a script only stack! >>>> >>>> This would mean I would have to include the entire documentation stack in my stackfiles for any project that uses it. That doesn't seem right to me. >>>> >>>> Bob S >>>> >>>> >>>>> On Mar 16, 2022, at 17:26 , Bob Sneidar wrote: >>>>> >>>>> Wow. The excel_lib I need is actually a substack of the documentation stack! Whaaaa??? >>>>> >>>>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Fri Mar 18 18:04:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 18 Mar 2022 22:04:30 +0000 Subject: Excel Lib 1.4 In-Reply-To: <8AE5DBCD-C295-41C4-86A3-F50926117112@iotecdigital.com> References: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> <6A249D58-1D7C-4E5F-83A7-8A91B1E3CB3B@iotecdigital.com> <1DA7CE81-A042-4B55-8BDA-DF4A577601A2@m-r-d.de> <8AE5DBCD-C295-41C4-86A3-F50926117112@iotecdigital.com> Message-ID: Does anyone have zryip's email? For whatever reason it's not in my address book, and his web page for submitting issues did not cc me when I submitted a request, so I do not think that is working. Bob S > On Mar 17, 2022, at 09:47 , Bob Sneidar via use-livecode wrote: > > I have v1.4, not sure about the licensing. I will contact zryip presently. Meanwhile I was able to create a separate version of Excel_Lib. I just tested it and it works. > > Bob S > > >> On Mar 17, 2022, at 09:39 , matthias rebbe via use-livecode wrote: >> >> Are you using the open source or the commercial version? >> If i am not wrong then only the commercial license is available as 1.5 and the open source license is 1.2 or so. >> >> If you have the commercial license then you can download the most current version using the username and password that Zryip should have submitted to you. >> If you do not have those credentials, you could send an email to zryip.theslug at gmail.com and ask him to get access to the download area for the commercial lib. >> He normally replies quickly. >> >> Regards, >> >> Matthisa >> >> >>> Am 17.03.2022 um 16:48 schrieb Bob Sneidar via use-livecode : >>> >>> Also if anyone has version 1.5 of the library, would it be possible to send that to me off list? >>> >>> Bob S >>> >>> >>>> On Mar 17, 2022, at 08:43 , Bob Sneidar via use-livecode wrote: >>>> >>>> Does anyone use Excel_Lib? How do you get it to work?? Opening the documentation stack loads the necessary libraries and stacks, but the actual library is a substack of the documentation stack! Also, there are handlers which call on the PROPERTIES of that stack! So I cannot just copy the code out to a script only stack! >>>> >>>> This would mean I would have to include the entire documentation stack in my stackfiles for any project that uses it. That doesn't seem right to me. >>>> >>>> Bob S >>>> >>>> >>>>> On Mar 16, 2022, at 17:26 , Bob Sneidar wrote: >>>>> >>>>> Wow. The excel_lib I need is actually a substack of the documentation stack! Whaaaa??? >>>>> >>>>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Fri Mar 18 18:15:20 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 18 Mar 2022 23:15:20 +0100 Subject: Excel Lib 1.4 In-Reply-To: References: <59D0A9C3-93A2-4FD1-B849-5D9D88C5BCB2@iotecdigital.com> <6A249D58-1D7C-4E5F-83A7-8A91B1E3CB3B@iotecdigital.com> <1DA7CE81-A042-4B55-8BDA-DF4A577601A2@m-r-d.de> <8AE5DBCD-C295-41C4-86A3-F50926117112@iotecdigital.com> Message-ID: <59378FD3-2340-4676-A02F-74A5F8B3BBD6@m-r-d.de> zryip.theslug at gmail.com > Am 18.03.2022 um 23:04 schrieb Bob Sneidar via use-livecode : > > Does anyone have zryip's email? For whatever reason it's not in my address book, and his web page for submitting issues did not cc me when I submitted a request, so I do not think that is working. > > Bob S > > >> On Mar 17, 2022, at 09:47 , Bob Sneidar via use-livecode wrote: >> >> I have v1.4, not sure about the licensing. I will contact zryip presently. Meanwhile I was able to create a separate version of Excel_Lib. I just tested it and it works. >> >> Bob S >> >> >>> On Mar 17, 2022, at 09:39 , matthias rebbe via use-livecode wrote: >>> >>> Are you using the open source or the commercial version? >>> If i am not wrong then only the commercial license is available as 1.5 and the open source license is 1.2 or so. >>> >>> If you have the commercial license then you can download the most current version using the username and password that Zryip should have submitted to you. >>> If you do not have those credentials, you could send an email to zryip.theslug at gmail.com and ask him to get access to the download area for the commercial lib. >>> He normally replies quickly. >>> >>> Regards, >>> >>> Matthisa >>> >>> >>>> Am 17.03.2022 um 16:48 schrieb Bob Sneidar via use-livecode : >>>> >>>> Also if anyone has version 1.5 of the library, would it be possible to send that to me off list? >>>> >>>> Bob S >>>> >>>> >>>>> On Mar 17, 2022, at 08:43 , Bob Sneidar via use-livecode wrote: >>>>> >>>>> Does anyone use Excel_Lib? How do you get it to work?? Opening the documentation stack loads the necessary libraries and stacks, but the actual library is a substack of the documentation stack! Also, there are handlers which call on the PROPERTIES of that stack! So I cannot just copy the code out to a script only stack! >>>>> >>>>> This would mean I would have to include the entire documentation stack in my stackfiles for any project that uses it. That doesn't seem right to me. >>>>> >>>>> Bob S >>>>> >>>>> >>>>>> On Mar 16, 2022, at 17:26 , Bob Sneidar wrote: >>>>>> >>>>>> Wow. The excel_lib I need is actually a substack of the documentation stack! Whaaaa??? >>>>>> >>>>>> 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 >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 keith.clarke at me.com Fri Mar 18 18:31:28 2022 From: keith.clarke at me.com (Keith Clarke) Date: Fri, 18 Mar 2022 22:31:28 +0000 Subject: How to access scripts on a modal card that is stuck / not visible? In-Reply-To: <17f9e0dfc18.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <17f9e0dfc18.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <706BCE1E-CC73-401B-AD86-6D5BDB202FA2@me.com> Thanks all for the hints and tips. I was able to access the guilty scripts from the message bar using edit script of Thanks Jaque! As this is just for a personal utility, I’ve made the Browser widget (which is only used for login) act as a rough and ready ‘modal dialogue’... - Browser widget sized to cover all clickable elements on the card other than a “Cancel” button, with its visible set to false - “Login” button with script to set the visible of control “Browser” to true and then build and set its authorisation request URL and headers - Browser widget script with browserNavigateComplete to confirm arrival at the post-authentication callback URL and then set the access_token of the stack (for global access) and set the visible of control “Browser” to false Seems to work OK, so now I can concentrate on the web service data - and the reason why I started building the stack! Best, Keith > On 18 Mar 2022, at 17:23, J. Landman Gay via use-livecode wrote: > > Modes are only for stacks and can't be used for individual cards. It sounds like the whole stack is going modal. There are several ways to edit a script for a control. > > 1. Click the script lines in the project browser, or right click the control in the app browser and choose "edit script". > 2. In the message box: edit script of . I.e., edit script of btn 1 > 3. Turn off messages in the toolbar. Then you can edit scripts as usual. > 4. Choose the edit tool, right click the control, choose to edit the script. > 5. If the stack is already in modal mode, use the message box to: toplevel . Or Cmd-Opt-Shift click the stack and choose toplevel from the Mode menu item. (I assume on Windows that's control-alt-shift.) > > There are also other keyboard shortcuts but those should get you started. Since the mode doesn't change unless you click the button, you should be able to edit the script normally if you don't do that. > > You can display a substack as a modal login, or use a group on the current card. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From curry at pair.com Fri Mar 18 18:56:03 2022 From: curry at pair.com (Curry Kenworthy) Date: Fri, 18 Mar 2022 18:56:03 -0400 Subject: Excel Lib 1.4 In-Reply-To: References: Message-ID: (Cough, cough) Or try the original.... Best wishes, Curry Kenworthy SpreadLib: Excel files to LC fields in 1 script line! "Excel-lent spreadsheet import and export for LiveCode" http://livecodeaddons.com/spreadlib.html Innovative Christian LiveCode Training and Consulting "Better Methods, Better Results" http://livecodeconsulting.com/ From curry at pair.com Fri Mar 18 19:16:02 2022 From: curry at pair.com (Curry Kenworthy) Date: Fri, 18 Mar 2022 19:16:02 -0400 Subject: Emojis in Text In-Reply-To: References: Message-ID: <79a3dbf4-77e8-9fcb-6289-2f1dc2337d4b@pair.com> Dan: > I save that text somewhere like a database. When I load it back > (into a LC field for display), it appears as a question mark. What up? Paul: > make sure they are not being lost in the upload to the database - > the database encoding needs to support some Unicode encoding like UFT8 I love Unicode Emojis. Very useful although not consistent between platforms! To/from a database usually needs more care with the methods, but Paul's info about encoding should get you back up and running. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" Innovative Christian LiveCode Training and Consulting http://livecodeconsulting.com/ From bobsneidar at iotecdigital.com Fri Mar 18 19:38:29 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 18 Mar 2022 23:38:29 +0000 Subject: ArrayEncode/Decode broken?? Message-ID: <6C93A651-5364-4BC9-B492-5CE47AE93CEC@iotecdigital.com> Hi all. I'm running 9.6.7 rc2. I have this code in a closeStackRequest handler: put the settings of me into tSettingsA put field "fldEAFilePath" into tSettingsA ["eafilepath"] put field "fldInvFilePath" into tSettingsA ["invfilepath"] put field "fldOutFilePath" into tSettingsA ["Outfilepath"] put the dgText [true] of group "dgVariance" into tSettingsA ["gridtext"] put arrayEncode(tSettingsA) into tSettingsText put the filename of this stack into tSettingsPath set the itemDelimiter to "/" put "settings.prefs" into item -1 of tSettingsPath open file tSettingsPath for write write tSettingsText to file tSettingsPath close file tSettingsPath Then in the openStack handler I have this: put the filename of this stack into tSettingsPath set the itemDelimiter to "/" put "settings.prefs" into item -1 of tSettingsPath open file tSettingsPath for read read from file tSettingsPath until eof put it after tSettingsText close file tSettingsPath put arrayDecode(tSettingsText) into tSettingsA set the settings of me to tSettingsA Instead of an array, I get the text "gr" which is the first 2 characters of the key "grid text" in the array. That can't be right! Bob S From bobsneidar at iotecdigital.com Fri Mar 18 19:47:37 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 18 Mar 2022 23:47:37 +0000 Subject: Excel Lib 1.4 In-Reply-To: References: Message-ID: <8B792A62-C130-4D6D-A476-787F018B8DF1@iotecdigital.com> I looked into my emails and found I had actually paid for a full license some time ago. There were instructions on how to get to the downloads page (which you cannot find by simply going to his website and clicking a link). I was able to get v1.5 and THAT is working in Windows now. I have no idea how I got that whacky 1.4 version with the library set as a substack of the documentation stack, but it's in the trash now! Bob S > On Mar 18, 2022, at 15:56 , Curry Kenworthy via use-livecode wrote: > > > (Cough, cough) > > Or try the original.... > > Best wishes, > > Curry Kenworthy > > SpreadLib: Excel files to LC fields in 1 script line! > "Excel-lent spreadsheet import and export for LiveCode" > http://livecodeaddons.com/spreadlib.html > > Innovative Christian LiveCode Training and Consulting > "Better Methods, Better Results" > 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 From alanstenhouse at hotmail.com Fri Mar 18 20:01:26 2022 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sat, 19 Mar 2022 10:31:26 +1030 Subject: use-livecode Digest, Vol 222, Issue 27 In-Reply-To: References: Message-ID: Yes, you should textencode() to UTF when storing and textdecode() when reading - at least doing that on mobile worked for me. cheers Alan > On 19 Mar 2022, at 8:01 am, Paul Dupuis via use-livecode-request at lists.runrev.com wrote: > > On 3/18/2022 12:18 PM, Dan Friedman via use-livecode wrote: >> I can't be the first to bring this up, so sorry if this has been asked already... >> >> Is there a current solution for Emojis in text? On a mobile device, in a native field, a user enters a emoji (no method to stop them that I can find). I save that text somewhere like a database. When I load it back (into a LC field for display), it appears as a question mark. What up? Anyone have knowledge on this topic? Is there a useEmojis property I don't know about? >> > > It probably depends on 2 things: > > 1) If the app the Emojis are created in is creating them as Unicode > Emojis or as images. If they are created as images, then they are > probably not getting transferred to the database correctly. If they are > Unicode, also make sure they are not being lost in the upload to the > database - the database encoding needs to support some Unicode encoding > like UFT8 > > 2) If the database has the correct data, then when loading it into a > LiveCode field you probably need to textDecode (see dictionary) the data > from UTF8 to LiveCode's native (UTF16) text. > > See https://unicode.org/emoji/charts/full-emoji-list.html as well From jacque at hyperactivesw.com Fri Mar 18 20:09:57 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 18 Mar 2022 19:09:57 -0500 Subject: ArrayEncode/Decode broken?? In-Reply-To: <6C93A651-5364-4BC9-B492-5CE47AE93CEC@iotecdigital.com> References: <6C93A651-5364-4BC9-B492-5CE47AE93CEC@iotecdigital.com> Message-ID: <17f9f826408.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I made the same mistake a while ago, until I remembered that the encoded array is binary. You have to write and read it to/from a binary file. If you just use "open file" you get text only. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On March 18, 2022 6:40:40 PM Bob Sneidar via use-livecode wrote: > Hi all. > > I'm running 9.6.7 rc2. I have this code in a closeStackRequest handler: > > put the settings of me into tSettingsA > put field "fldEAFilePath" into tSettingsA ["eafilepath"] > put field "fldInvFilePath" into tSettingsA ["invfilepath"] > put field "fldOutFilePath" into tSettingsA ["Outfilepath"] > put the dgText [true] of group "dgVariance" into tSettingsA ["gridtext"] > put arrayEncode(tSettingsA) into tSettingsText > put the filename of this stack into tSettingsPath > set the itemDelimiter to "/" > put "settings.prefs" into item -1 of tSettingsPath > open file tSettingsPath for write > write tSettingsText to file tSettingsPath > close file tSettingsPath > > Then in the openStack handler I have this: > > put the filename of this stack into tSettingsPath > set the itemDelimiter to "/" > put "settings.prefs" into item -1 of tSettingsPath > open file tSettingsPath for read > read from file tSettingsPath until eof > put it after tSettingsText > close file tSettingsPath > put arrayDecode(tSettingsText) into tSettingsA > set the settings of me to tSettingsA > > Instead of an array, I get the text "gr" which is the first 2 characters of > the key "grid text" in the array. That can't be right! > > 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 curry at pair.com Fri Mar 18 22:37:32 2022 From: curry at pair.com (Curry Kenworthy) Date: Fri, 18 Mar 2022 22:37:32 -0400 Subject: Excel Lib 1.4 In-Reply-To: <8B792A62-C130-4D6D-A476-787F018B8DF1@iotecdigital.com> References: <8B792A62-C130-4D6D-A476-787F018B8DF1@iotecdigital.com> Message-ID: <8f7e0fb8-eccc-947f-c1ce-da151e82ab4c@pair.com> Me: > Or try the original.... Meaning SpreadLib, the original LC spreadsheet import addon! My own Addon Store is finally back online this year, after going down when eSellerate died. Now with SendOwl. (And a few days ago, I got SpreadLib back up for sale.) It's linked below. Best wishes, Curry Kenworthy SpreadLib: Excel files to LC fields in 1 script line! "Excel-lent spreadsheet import and export for LiveCode" http://livecodeaddons.com/spreadlib.html Innovative Christian LiveCode Training and Consulting "Better Methods, Better Results" http://livecodeconsulting.com/ From paul at researchware.com Sat Mar 19 10:05:01 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 19 Mar 2022 10:05:01 -0400 Subject: Excel Lib 1.4 In-Reply-To: References: Message-ID: On 3/18/2022 6:56 PM, Curry Kenworthy via use-livecode wrote: > > SpreadLib: Excel files to LC fields in 1 script line! > "Excel-lent spreadsheet import and export for LiveCode" > http://livecodeaddons.com/spreadlib.html > I recommend Spreadlib for reading or writing Excel spreadsheets. We've used in in our products for sometime to easily enhance data imports and exports. From andre at andregarzia.com Sat Mar 19 12:25:10 2022 From: andre at andregarzia.com (Andre Garzia) Date: Sat, 19 Mar 2022 16:25:10 +0000 Subject: What happens if an Indy license renews these days? Message-ID: Hi Folks, My Indy license is up for renewal on Monday and given the new licensing scheme, I have no idea what will happen if I let it renew. Anyone has a clue? -- https://www.andregarzia.com Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia From matthias_livecode_150811 at m-r-d.de Sat Mar 19 13:21:44 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 19 Mar 2022 18:21:44 +0100 Subject: What happens if an Indy license renews these days? In-Reply-To: References: Message-ID: <6C509D92-C549-4087-86A1-B57DA7483193@m-r-d.de> Andre, didn‘t you get an email from LC some time ago. If i recall it correctly then the Indy license was transitioned to a Pro license but you keep your „old“ subscription price. Matthias Von meinem iPad gesendet > Am 19.03.2022 um 17:26 schrieb Andre Garzia via use-livecode : > > Hi Folks, > > My Indy license is up for renewal on Monday and given the new licensing > scheme, I have no idea what will happen if I let it renew. Anyone has a > clue? > > -- > https://www.andregarzia.com > Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat Mar 19 13:52:35 2022 From: andre at andregarzia.com (Andre Garzia) Date: Sat, 19 Mar 2022 17:52:35 +0000 Subject: What happens if an Indy license renews these days? In-Reply-To: <6C509D92-C549-4087-86A1-B57DA7483193@m-r-d.de> References: <6C509D92-C549-4087-86A1-B57DA7483193@m-r-d.de> Message-ID: Oh I missed the part about the indy licenses on that email. Thanks for reminding me. On Sat, 19 Mar 2022 at 17:23, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Andre, > didn‘t you get an email from LC some time ago. > > If i recall it correctly then the Indy license was transitioned to a Pro > license but you keep your „old“ subscription price. > > Matthias > > Von meinem iPad gesendet > > > Am 19.03.2022 um 17:26 schrieb Andre Garzia via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi Folks, > > > > My Indy license is up for renewal on Monday and given the new licensing > > scheme, I have no idea what will happen if I let it renew. Anyone has a > > clue? > > > > -- > > https://www.andregarzia.com > > Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia > > _______________________________________________ > > use-livecode mailing list > > use-livecode 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 > -- https://www.andregarzia.com Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia From paul at researchware.com Sat Mar 19 14:10:49 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 19 Mar 2022 14:10:49 -0400 Subject: How to extract a video clip... Message-ID: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> Hivemind, I have, in LiveCode, a list of media files (various formats mp4, mp3, etc.) and a list of start and end times for various clips from each of the files. A file may (and usually does) have several clips. Much to my disappointment, I can find NO way in LiveCode script to export a portion of the media from the start time to the end time. I hope with the revised media in LC10, this may get added! I CAN in LiveCode open the media in a Player object and play just the clip from startTime to endTime. Has anyone come up with a way, given just a file, start time, and end time, to output a new media file with just that clip? Perhaps a shell command to some already installed utility or a widget? I'd even consider installing a free command line utility IF it was relatively small (in terms of disk size) so I could packing in my app and have my app unpack it on startup (the first time). I need this capability on macOS and Windows at a minimum - other platforms are desirable, but a solution must be available for macOS and windows (need not be the SAME solution as long as the same result is achieved). Also, any solution needs to be local and not require a server based service. Thoughts? Ideas? From matthias_livecode_150811 at m-r-d.de Sat Mar 19 14:55:23 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 19 Mar 2022 19:55:23 +0100 Subject: How to extract a video clip... In-Reply-To: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> Message-ID: <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> You could use ffmpeg for this. Here‘s a post where it is described how to do it https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg Von meinem iPhone gesendet > Am 19.03.2022 um 19:12 schrieb Paul Dupuis via use-livecode : > > Hivemind, > > I have, in LiveCode, a list of media files (various formats mp4, mp3, etc.) and a list of start and end times for various clips from each of the files. A file may (and usually does) have several clips. > > Much to my disappointment, I can find NO way in LiveCode script to export a portion of the media from the start time to the end time. I hope with the revised media in LC10, this may get added! > > I CAN in LiveCode open the media in a Player object and play just the clip from startTime to endTime. > > Has anyone come up with a way, given just a file, start time, and end time, to output a new media file with just that clip? > > Perhaps a shell command to some already installed utility or a widget? I'd even consider installing a free command line utility IF it was relatively small (in terms of disk size) so I could packing in my app and have my app unpack it on startup (the first time). I need this capability on macOS and Windows at a minimum - other platforms are desirable, but a solution must be available for macOS and windows (need not be the SAME solution as long as the same result is achieved). Also, any solution needs to be local and not require a server based service. > > Thoughts? Ideas? > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Sat Mar 19 15:18:22 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 19 Mar 2022 15:18:22 -0400 Subject: How to extract a video clip... In-Reply-To: <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> Message-ID: <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote: > You could use ffmpeg for this. > > Heres a post where it is described how to do it > > https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg > > I have (and still am) considering ffmpeg. It was what I was alluding to with the mention of a command line utility called by shell() in my original post. To bundle the macOS (~35mb) and Windows (~77mb) adds that size (or that compressed) to my Standalone, so my app can install it on the users system (I have the sort of computer novice customers that you do NOT want to ask to download additional software of). That's not too bad a size increase as my App sits at about 200-230mb currently. Still, I asked the USE-LIST as you never know whether some one out there has made a widget that could just be part of the standalone app or someone knows of a clever technique or a smaller utility Thank you. From mkoob at rogers.com Sat Mar 19 15:50:37 2022 From: mkoob at rogers.com (Martin Koob) Date: Sat, 19 Mar 2022 15:50:37 -0400 Subject: How to extract a video clip... In-Reply-To: <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> References: <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> Message-ID: Hi Look up the mergAVVideoComposition commands etc. in the dictionary. They are for Mac and iOS. Lots of versatility to slice dice and concatenate clips in a video composition. If you are on Windows I guess the ffmpeg would work. Martin Sent from my iPhone > On Mar 19, 2022, at 3:19 PM, Paul Dupuis via use-livecode wrote: > > On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote: >> You could use ffmpeg for this. >> >> Here‘s a post where it is described how to do it >> >> https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg >> >> > > I have (and still am) considering ffmpeg. It was what I was alluding to with the mention of a command line utility called by shell() in my original post. To bundle the macOS (~35mb) and Windows (~77mb) adds that size (or that compressed) to my Standalone, so my app can install it on the users system (I have the sort of computer novice customers that you do NOT want to ask to download additional software of). That's not too bad a size increase as my App sits at about 200-230mb currently. > > Still, I asked the USE-LIST as you never know whether some one out there has made a widget that could just be part of the standalone app or someone knows of a clever technique or a smaller utility > > Thank you. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 19 15:56:25 2022 From: tom at makeshyft.com (Tom Glod) Date: Sat, 19 Mar 2022 15:56:25 -0400 Subject: How to extract a video clip... In-Reply-To: <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> Message-ID: > > > hmm.... what if you found how the file format stores data and perhaps > derive the data by reading the firt 1000 bytes of the files? and getting > the data you need? I'm saying that assuming that this info is available in the "header" of the file. From bobsneidar at iotecdigital.com Sat Mar 19 16:27:30 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 19 Mar 2022 20:27:30 +0000 Subject: ArrayEncode/Decode broken?? In-Reply-To: <17f9f826408.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <6C93A651-5364-4BC9-B492-5CE47AE93CEC@iotecdigital.com> <17f9f826408.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <5C302F4F-4D42-4683-A623-A9517F035555@iotecdigital.com> I’m so embarrassed. On my way to the beach this morning it hit me like a ton of bricks. DOH! Sent from my iPhone > On Mar 18, 2022, at 17:11, J. Landman Gay via use-livecode wrote: > > I made the same mistake a while ago, until I remembered that the encoded array is binary. You have to write and read it to/from a binary file. If you just use "open file" you get text only. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On March 18, 2022 6:40:40 PM Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> I'm running 9.6.7 rc2. I have this code in a closeStackRequest handler: >> >> put the settings of me into tSettingsA >> put field "fldEAFilePath" into tSettingsA ["eafilepath"] >> put field "fldInvFilePath" into tSettingsA ["invfilepath"] >> put field "fldOutFilePath" into tSettingsA ["Outfilepath"] >> put the dgText [true] of group "dgVariance" into tSettingsA ["gridtext"] >> put arrayEncode(tSettingsA) into tSettingsText >> put the filename of this stack into tSettingsPath >> set the itemDelimiter to "/" >> put "settings.prefs" into item -1 of tSettingsPath >> open file tSettingsPath for write >> write tSettingsText to file tSettingsPath >> close file tSettingsPath >> >> Then in the openStack handler I have this: >> >> put the filename of this stack into tSettingsPath >> set the itemDelimiter to "/" >> put "settings.prefs" into item -1 of tSettingsPath >> open file tSettingsPath for read >> read from file tSettingsPath until eof >> put it after tSettingsText >> close file tSettingsPath >> put arrayDecode(tSettingsText) into tSettingsA >> set the settings of me to tSettingsA >> >> Instead of an array, I get the text "gr" which is the first 2 characters of the key "grid text" in the array. That can't be right! >> >> 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 bobsneidar at iotecdigital.com Sat Mar 19 16:31:58 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 19 Mar 2022 20:31:58 +0000 Subject: Excel Lib 1.4 In-Reply-To: <8f7e0fb8-eccc-947f-c1ce-da151e82ab4c@pair.com> References: <8B792A62-C130-4D6D-A476-787F018B8DF1@iotecdigital.com> <8f7e0fb8-eccc-947f-c1ce-da151e82ab4c@pair.com> Message-ID: <5B55C000-B87D-4A07-8AC1-E24C1578CDC4@iotecdigital.com> I did check that out. But my specific application requires I produce a new spreadsheet, and I didn’t see with your product how to do that. Sent from my iPhone > On Mar 18, 2022, at 19:39, Curry Kenworthy via use-livecode wrote: > >  > Me: > > Or try the original.... > > Meaning SpreadLib, the original LC spreadsheet import addon! > > My own Addon Store is finally back online this year, > after going down when eSellerate died. Now with SendOwl. > > (And a few days ago, I got SpreadLib back up for sale.) > > It's linked below. > > Best wishes, > > Curry Kenworthy > > SpreadLib: Excel files to LC fields in 1 script line! > "Excel-lent spreadsheet import and export for LiveCode" > http://livecodeaddons.com/spreadlib.html > > Innovative Christian LiveCode Training and Consulting > "Better Methods, Better Results" > 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 From curry at pair.com Sat Mar 19 16:53:46 2022 From: curry at pair.com (Curry Kenworthy) Date: Sat, 19 Mar 2022 16:53:46 -0400 Subject: SpreadLib and SpreadOut (Was: Excel Lib 1.4) In-Reply-To: <5B55C000-B87D-4A07-8AC1-E24C1578CDC4@iotecdigital.com> References: <5B55C000-B87D-4A07-8AC1-E24C1578CDC4@iotecdigital.com> Message-ID: Me: >> Or try the original.... > Meaning SpreadLib, the original LC spreadsheet import addon! Bob: > I did check that out. But my specific application requires I produce > a new spreadsheet, and I didnt see with your product how to do that. Thanks. SpreadLib comes with SpreadOut for spreadsheet output: spreadOut the htmltext of field "spread",tColWidths (or) spreadOut tDataArray, tColWidths In the Try SpreadLib demo, click the Try SpreadOut button! (And the Summer SpreadLib Update will include SpreadOut too.) Best wishes, Curry Kenworthy SpreadLib: Excel files to LC fields in 1 script line! "Excel-lent spreadsheet import and export for LiveCode" http://livecodeaddons.com/spreadlib.html Innovative Christian LiveCode Training and Consulting "Better Methods, Better Results" http://livecodeconsulting.com/ From jacque at hyperactivesw.com Sat Mar 19 18:52:04 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 19 Mar 2022 17:52:04 -0500 Subject: ArrayEncode/Decode broken?? In-Reply-To: <5C302F4F-4D42-4683-A623-A9517F035555@iotecdigital.com> References: <6C93A651-5364-4BC9-B492-5CE47AE93CEC@iotecdigital.com> <17f9f826408.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <5C302F4F-4D42-4683-A623-A9517F035555@iotecdigital.com> Message-ID: <6dd1f306-eb40-22cd-b86a-fb00ca0cecc4@hyperactivesw.com> On 3/19/22 3:27 PM, Bob Sneidar via use-livecode wrote: > I’m so embarrassed. I was too but I caught myself before I hit the Send button. We get so used to LC reading our minds we're surprised when it doesn't. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Sat Mar 19 21:37:30 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 19 Mar 2022 21:37:30 -0400 Subject: How to extract a video clip... In-Reply-To: References: <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> Message-ID: <07c93076-4e6f-e432-9647-88ffd80ada68@researchware.com> Thanks Martin, My issue with mergeAV is that it is macOS/iOS only and I need macOS and Windows, so I would have to find another solution for Windows and if I use ffmpeg for Windows, I might as well use it for macOS as well so the same command line works across platforms and I am just installing a different version of ffmpeg based upon OS. If mergeAV was macOS and Windows, I would definitely prioritize it over ffmpeg as a solution. I appreciate the suggestion though. I did not know mergeAV could create clips. -- Paul On 3/19/2022 3:50 PM, Martin Koob via use-livecode wrote: > Hi > > Look up the mergAVVideoComposition commands etc. in the dictionary. > > They are for Mac and iOS. Lots of versatility to slice dice and concatenate clips in a video composition. > > If you are on Windows I guess the ffmpeg would work. > > > Martin > > Sent from my iPhone > >> On Mar 19, 2022, at 3:19 PM, Paul Dupuis via use-livecode wrote: >> >> On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote: >>> You could use ffmpeg for this. >>> >>> Heres a post where it is described how to do it >>> >>> https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg >>> >>> >> I have (and still am) considering ffmpeg. It was what I was alluding to with the mention of a command line utility called by shell() in my original post. To bundle the macOS (~35mb) and Windows (~77mb) adds that size (or that compressed) to my Standalone, so my app can install it on the users system (I have the sort of computer novice customers that you do NOT want to ask to download additional software of). That's not too bad a size increase as my App sits at about 200-230mb currently. >> >> Still, I asked the USE-LIST as you never know whether some one out there has made a widget that could just be part of the standalone app or someone knows of a clever technique or a smaller utility >> >> Thank you. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Sat Mar 19 21:59:49 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 19 Mar 2022 21:59:49 -0400 Subject: How to extract a video clip... In-Reply-To: <07c93076-4e6f-e432-9647-88ffd80ada68@researchware.com> References: <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <07c93076-4e6f-e432-9647-88ffd80ada68@researchware.com> Message-ID: <0C1A058E-12C7-42D0-AC9B-F65397CCF1A2@all-auctions.com> I was looking for some LiveCode lessons on how to use mergAV and there weren’t any. :-( Are there any good examples anywhere on how to use it? Thanks, Rick > On Mar 19, 2022, at 9:37 PM, Paul Dupuis via use-livecode wrote: > > If mergeAV was macOS and Windows, I would definitely prioritize it over ffmpeg as a solution. I appreciate the suggestion though. I did not know mergeAV could create clips. From phil at pdslabs.net Sun Mar 20 02:23:28 2022 From: phil at pdslabs.net (Phil Davis) Date: Sat, 19 Mar 2022 23:23:28 -0700 Subject: How to extract a video clip... In-Reply-To: <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> Message-ID: <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> Hi Paul, Your app doesn't have to install ffmpeg on the user's system - your app can run it from where it resides in your app's bundle. (Just reference it in your command line using its full path, not just 'ffmpeg'.) Phil Davis On 3/19/22 12:18 PM, Paul Dupuis via use-livecode wrote: > On 3/19/2022 2:55 PM, Matthias Rebbe via use-livecode wrote: >> You could use ffmpeg for this. >> >> Heres a post where it is described how to do it >> >> https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg >> >> >> > > I have (and still am) considering ffmpeg. It was what I was alluding > to with the mention of a command line utility called by shell() in my > original post. To bundle the macOS (~35mb) and Windows (~77mb) adds > that size (or that compressed) to my Standalone, so my app can install > it on the users system (I have the sort of computer novice customers > that you do NOT want to ask to download additional software of). > That's not too bad a size increase as my App sits at about 200-230mb > currently. > > Still, I asked the USE-LIST as you never know whether some one out > there has made a widget that could just be part of the standalone app > or someone knows of a clever technique or a smaller utility > > Thank you. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis 503-307-4363 From dvglasgow at gmail.com Sun Mar 20 12:37:40 2022 From: dvglasgow at gmail.com (David V Glasgow) Date: Sun, 20 Mar 2022 16:37:40 +0000 Subject: OT Re: What happens if an Indy license renews these days? In-Reply-To: <6C509D92-C549-4087-86A1-B57DA7483193@m-r-d.de> References: <6C509D92-C549-4087-86A1-B57DA7483193@m-r-d.de> Message-ID: <3F3AABF9-EB47-41F1-A327-645337E54BC9@gmail.com> Matthias, please could you also start reminding me of all the things I misread and forget in my emails ;-) Best wishes, David Glasgow > On 19 Mar 2022, at 5:21 pm, Matthias Rebbe via use-livecode wrote: > > Andre, > didn‘t you get an email from LC some time ago. > > If i recall it correctly then the Indy license was transitioned to a Pro license but you keep your „old“ subscription price. > > Matthias > > Von meinem iPad gesendet > >> Am 19.03.2022 um 17:26 schrieb Andre Garzia via use-livecode : >> >> Hi Folks, >> >> My Indy license is up for renewal on Monday and given the new licensing >> scheme, I have no idea what will happen if I let it renew. Anyone has a >> clue? >> >> -- >> https://www.andregarzia.com >> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 Sun Mar 20 13:41:33 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 20 Mar 2022 13:41:33 -0400 Subject: Counting Syllables In-Reply-To: <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> Message-ID: <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> I’m working on a project that requires an LC program to count the number of syllables in a paragraph. I don’t want to have to re-invent the wheel here if there is an existing solution to the problem. If not, what are all the rules I need to check? Suggestions? Thanks, Rick From marksmithhfx at gmail.com Sun Mar 20 14:17:53 2022 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 20 Mar 2022 18:17:53 +0000 Subject: (area used by) Keyboard in iOS 15.x In-Reply-To: <29BD96CF-5D22-4274-BBE9-1D550B9ED4F4@pidigital.co.uk> References: <80551386-5601-4217-9CB5-4C8547FA7A30@gmail.com> <29BD96CF-5D22-4274-BBE9-1D550B9ED4F4@pidigital.co.uk> Message-ID: Hi Sean, I finally got around to doing some further testing on this. Initial results were confusing so I used the “Mobile Orientations” LC lesson to do some testing with iPhoneSafeAreaInsets() This is a very simple stack with one button. The idea is it demonstrates how if you “allow” certain orientations the screen will redraw and the button will be repositioned (not appropriately, but it is suggested you can refine this further). So using this very simple stack I added a handler to my previous demo to get the iPhoneSafeAreaInset() values if the device orientationChanged and then displayed these with the button. I tested on both the sim and real device (iPhone12) and the results are not encouraging. on a 6S in the sim: portrait (0,20,0,0) L right (0,0,0,0) L left (0,0,0,0) P UD (0,0,0,0) iPhone 12 sim portrait (0,47,0,34) L right (0,47,0,34) L left (47,0,47,21) P UD (didn’t allow though it was included as allowable) iPhone 12 real portrait (0,47,0,34) L right (0,47,0,34) L left (0,47,0,47) (??) P UD (47,0,47,21) (again didn’t rotate screen but I copied the reported values anyway) I did lots more testing of course, which I won’t bore you with. Conclusion: even the initial results reported for the 12 are not ideal. The “34” you see for “bottom" on the 12 should really be 21. I tested this by manually inserting 21 and it looks much better than 34. Honestly, I don’t think iPhoneSafeAreaInset() returns realistic values for all coordinates, and therefore can’t really be depended on. Since I am only interested in portrait (at the moment), I will do some further testing to see if I can get reasonable results for most devices using this orientation (including inserting hard coded values where necessary). All the best, Mark > On Feb 11, 2022, at 12:31 PM, Pi Digital via use-livecode wrote: > > Hi Mark > > This is really useful to know. Thanks for all your testing and research. > > Just a note about what iPhoneSafeAreaInsets is for. It returns the number of pixels from the top (the second item, 47 in your case) to allow for the top notch and from the bottom (4th item, 34) to allow for the onscreen app switcher bar at the bottom of the screen. This is in portrait mode. This changes to be the 1st and 4th items (47,0,0,34) or 3rd and 4th (0,0,47,34) in landscape mode because the notch will be on the left or right but the app switcher remains at the bottom. If the phone is upside down and your app allows for this the you could have the notch at the bottom which will make it something like 0,0,0,81. > > Thanks and all the best > > Sean Cole > Pi Digital > > >> On 10 Feb 2022, at 22:13, Mark Smith wrote: >> >> Sorry, it appears I attached the wrong link. Hopefully this one works better!! >> >> https://www.dropbox.com/s/2igqdbroxy5onf7/Test%20Layout%2013.livecode.zip?dl=0 >> >> >> >>> On Feb 10, 2022, at 10:08 PM, Mark Smith wrote: >>> >>> Hello everyone, >>> >>> Once again thanks to the many of you who provided advice and suggestions. They were really very helpful in coding up this full working example. In the interests of sharing I have posted an example into a dropbox account, and will upload a copy to the forums at some point. This example takes a “dummy” layout of my Organize app (nothing is being saved, most features are not included) and redraws the main screen to fit the target device using just iPhoneSafeAreaInsets() and "the effective working screenRect" and nothing else (no fullscreenmode for example). It works remarkably well. I have tested it on a physical SE, 6S, 11, 12 and 13 mini and it adapts to each screen as you would expect. It is remarkably satisfying to see it adapt to changes in the keyboard size (predictive, not predictive) on the fly. No special code was required to do this. >>> >>> You’ll need to compile the example for iPhone and use a developer profile to install it on an iPhone device. The simulator does not really provide a useful simulation primarily because it does not simulate the behaviour of the keyboard very well (however, if you just want to see how the layout adapts, it is perfectly fine for that). Its possible I have not developed the most efficient method of coding the layout. If you have any suggestions, I’d be most grateful to receive them. >>> >>> UI tips: >>> 1. tapping once on white space below the dg entries dismisses the keyboard (so does the “down arrow” when it appears in the header bar). >>> 2. tapping twice adds a new blank line (or inserts the cursor into an existing one) (so does the “+” sign in the header bar). >>> >>> The rest should be obvious, I hope. All of the layout is in the card script. All of the dg code is in the dg handler and behavior script. >>> Finally, if you have any questions, please feel free to send them on. >>> >>> All the best, >>> Mark >>> >>> https://www.dropbox.com/s/nmri0dy5j5qtc8c/test.livecode.zip?dl=0 >>> >>> >>> >>>> On Dec 27, 2021, at 12:05 PM, Mark Smith wrote: >>>> >>>> Thank you Sean and Jacque, >>>> >>>> I’ve not had a chance to work on a complete solution but thought I would make a test run to see what “the effective working screenrect” was returning and as the following indicates, it does in fact take into consideration the keyboard. I just coded up one line to run whenever the status of the keyboard changed and tried it both with and without the “predictive” option turned on. As you can see, it was very sensitive to this change… >>>> >>>> without predictive: >>>> >>>> 9:37:14 PM keyboardActivated 0,0,375,451 >>>> 9:37:15 PM keyboardDeactivated 0,0,375,667 >>>> 9:37:18 PM keyboardActivated 0,0,375,451 >>>> 9:37:19 PM keyboardDeactivated 0,0,375,667 >>>> 9:37:19 PM keyboardActivated 0,0,375,451 >>>> 9:37:23 PM keyboardDeactivated 0,0,375,667 >>>> >>>> >>>> with predictive: >>>> >>>> 9:56:54 PM keyboardActivated 0,0,375,407 >>>> 9:56:55 PM keyboardDeactivated 0,0,375,667 >>>> 9:56:55 PM keyboardActivated 0,0,375,407 >>>> 9:56:57 PM keyboardDeactivated 0,0,375,667 >>>> >>>> In my particular case not all 4 value are immediately useful. For example, I have a fixed header and footer that need to be accommodated so the correct “useable” rect for me is: >>>> >>>> 0,69, 377, 618 (for no predictive) >>>> 0,69,377,456 ( for predictive) >>>> >>>> but this can easily be accommodated since the header/footer values don’t change. The beauty is I now have a rect lower bound (ie. keyboard height) that actually reflects where the keyboard is. >>>> >>>> Brilliant!! Thank you both, >>>> >>>> Mark >>>> >>>> Sean, I tried iPhoneSafeAreaInsets() but it appears it returns a constant set of values regardless of keyboard position on my iPhone 12 >>>> >>>> 11:51:22 AM keyboardActivated 0,47,0,34 >>>> 11:51:22 AM keyboardDeactivated 0,47,0,34 >>>> 11:51:26 AM keyboardActivated 0,47,0,34 >>>> 11:51:26 AM keyboardDeactivated 0,47,0,34 >>>> >>>> And didn’t change when I added / subtracted “predictive”. So, just the available usable space at the top and bottom of the screen. I haven’t adjusted my app yet to fully take advantage of the larger screen on a 12 (it was developed on a 6S) but when I get to more response design this will be useful to know where the usable top and bottom are. >>>> >>>> Cheers!! >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>> On Dec 25, 2021, at 5:25 PM, Sean Cole via use-livecode wrote: >>>>> >>>>> Another addendum to this I just noticed is in the latest RC, LC9.6.6RC1, >>>>> which has iphoneSafeAreaInsets for discerning the safe area from furniture >>>>> like the notch and so on. I haven't tested this but that may also include >>>>> things like the keyboard and predictive areas. I just thought it was worth >>>>> a mention here. >>>>> >>>>> Regards >>>>> Sean >>>>> >>>>> On Fri, 24 Dec 2021 at 20:44, J. Landman Gay via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>>> On 12/24/21 2:16 PM, Sean Cole via use-livecode wrote: >>>>>>> Just adding to what Jacquie wrote, there is also the effective working >>>>>>> screenrect. >>>>>> >>>>>> You're right, "effective" was added to account for the keyboard on mobile. >>>>>> I'd start with that. >>>>>> >>>>>> -- >>>>>> 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 From richmondmathewson at gmail.com Sun Mar 20 14:29:18 2022 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 20 Mar 2022 20:29:18 +0200 Subject: Counting Syllables In-Reply-To: <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> Message-ID: Well, syllables are language dependent, so let's suppose for the moment that you are ONLY working with English, the, presumably, you can set up vowels as item-delimiters: although you might get a bit mixed up with words sucj as 'beautiful' which, while having 5 vowels only has 3 syllables. Basically you have to work out how to detect V+C and open vowels at the end of words. On 20.03.22 19:41, Rick Harrison via use-livecode wrote: > Im working on a project that requires an LC program to count > the number of syllables in a paragraph. > > I dont want to have to re-invent the wheel here if there > is an existing solution to the problem. > > If not, what are all the rules I need to check? > > Suggestions? > > 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 harrison at all-auctions.com Sun Mar 20 14:51:14 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 20 Mar 2022 14:51:14 -0400 Subject: Counting Syllables In-Reply-To: References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> Message-ID: <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> Hi Richmond, Yes, English. Sorry I forgot to be specific, I thought it was implied. Yes, I have been counting vowels, but there appear to be a lot of exceptions, so there must be a lot more rules. I need to know what all the rules are to make it work if possible. There are websites out there on the internet that will count syllables in whatever text given to them so it must be possible. How are they doing it? Is it an algorithm ,or are they comparing the words to a database table that has all the dictionary information? Thanks, Rick > On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode wrote: > > Well, syllables are language dependent, so let's suppose for the moment that > you are ONLY working with English, the, presumably, you can set up vowels > as item-delimiters: although you might get a bit mixed up with words sucj > as 'beautiful' which, while having 5 vowels only has 3 syllables. > > Basically you have to work out how to detect V+C and open vowels at the > end of words. From colinholgate at gmail.com Sun Mar 20 15:12:23 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 20 Mar 2022 13:12:23 -0600 Subject: Counting Syllables In-Reply-To: <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> Message-ID: <204293C7-4933-484C-9010-7837D158E6CE@gmail.com> This post goes over some techniques: https://mholtzscher.github.io/2018/05/29/syllables/ > On Mar 20, 2022, at 12:51 PM, Rick Harrison via use-livecode wrote: > > Hi Richmond, > > Yes, English. Sorry I forgot to be specific, I thought it was implied. > > Yes, I have been counting vowels, but there appear to be a lot of exceptions, > so there must be a lot more rules. > > I need to know what all the rules are to make it work if possible. > > There are websites out there on the internet that will count > syllables in whatever text given to them so it must be possible. > How are they doing it? Is it an algorithm ,or are they comparing > the words to a database table that has all the dictionary information? > > Thanks, > > Rick > > >> On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode wrote: >> >> Well, syllables are language dependent, so let's suppose for the moment that >> you are ONLY working with English, the, presumably, you can set up vowels >> as item-delimiters: although you might get a bit mixed up with words sucj >> as 'beautiful' which, while having 5 vowels only has 3 syllables. >> >> Basically you have to work out how to detect V+C and open vowels at the >> end of words. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 richmondmathewson at gmail.com Sun Mar 20 15:57:08 2022 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 20 Mar 2022 21:57:08 +0200 Subject: Counting Syllables In-Reply-To: <204293C7-4933-484C-9010-7837D158E6CE@gmail.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> <204293C7-4933-484C-9010-7837D158E6CE@gmail.com> Message-ID: <2b3bc5c0-d45b-d5c5-44e3-4ca2611967bd@gmail.com> Frankly I'd go for isolated vowels (I, A), Vowel+ Consonant (In, On, An), and Consonant+ Vowel (La, Lo, Fi), you also have a problem with the semi-vowel Y, and the semi-vowel U ( 'yu' as un Union, and 'u' as in Utter). This is pretty impressive: https://syllablecounter.net/count I gave it 'Beautiful aesthetic foetuses' and it came up, correctly, with 9 syllables . . . the Q is what's the code: probably time to download the webpage and poke around a bit. On 20.03.22 21:12, Colin Holgate via use-livecode wrote: > This post goes over some techniques: > > https://mholtzscher.github.io/2018/05/29/syllables/ > > > >> On Mar 20, 2022, at 12:51 PM, Rick Harrison via use-livecode wrote: >> >> Hi Richmond, >> >> Yes, English. Sorry I forgot to be specific, I thought it was implied. >> >> Yes, I have been counting vowels, but there appear to be a lot of exceptions, >> so there must be a lot more rules. >> >> I need to know what all the rules are to make it work if possible. >> >> There are websites out there on the internet that will count >> syllables in whatever text given to them so it must be possible. >> How are they doing it? Is it an algorithm ,or are they comparing >> the words to a database table that has all the dictionary information? >> >> Thanks, >> >> Rick >> >> >>> On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode wrote: >>> >>> Well, syllables are language dependent, so let's suppose for the moment that >>> you are ONLY working with English, the, presumably, you can set up vowels >>> as item-delimiters: although you might get a bit mixed up with words sucj >>> as 'beautiful' which, while having 5 vowels only has 3 syllables. >>> >>> Basically you have to work out how to detect V+C and open vowels at the >>> end of words. >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 dochawk at gmail.com Sun Mar 20 18:42:26 2022 From: dochawk at gmail.com (doc hawk) Date: Sun, 20 Mar 2022 15:42:26 -0700 Subject: Emojis in Text In-Reply-To: <79a3dbf4-77e8-9fcb-6289-2f1dc2337d4b@pair.com> References: <79a3dbf4-77e8-9fcb-6289-2f1dc2337d4b@pair.com> Message-ID: <0E1C2D57-7F25-4D0A-80E8-B50BB11BAF88@gmail.com> curry culled, >I love Unicode Emojis. 😍 bah. If you can’t express yourself in ascii, you should keep your emotions to y0ourself! :_) From harrison at all-auctions.com Sun Mar 20 19:10:50 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 20 Mar 2022 19:10:50 -0400 Subject: Counting Syllables In-Reply-To: <204293C7-4933-484C-9010-7837D158E6CE@gmail.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> <204293C7-4933-484C-9010-7837D158E6CE@gmail.com> Message-ID: <45592024-2880-483A-BD3D-704ED1AB16DD@all-auctions.com> Hi Colin, Thanks for sharing this. I’m reading it now! Rick > On Mar 20, 2022, at 3:12 PM, Colin Holgate via use-livecode wrote: > > This post goes over some techniques: > > https://mholtzscher.github.io/2018/05/29/syllables/ > > > From harrison at all-auctions.com Sun Mar 20 19:20:07 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 20 Mar 2022 19:20:07 -0400 Subject: Counting Syllables In-Reply-To: <2b3bc5c0-d45b-d5c5-44e3-4ca2611967bd@gmail.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> <204293C7-4933-484C-9010-7837D158E6CE@gmail.com> <2b3bc5c0-d45b-d5c5-44e3-4ca2611967bd@gmail.com> Message-ID: <387507BE-913D-4F71-9538-775AEF0EA0EB@all-auctions.com> Hi Richmond, Yes, I came across syllablecounter.net which only intrigued me more. Unfortunately it reports the word triangle has 2 syllables which is incorrect. Any dictionary will tell you triangle has 3 syllables. Is there a rule for that or is it just an exception to some rule? Perhaps there are other examples out there I can find. Whatever happened to our pocket English Teacher App? (Oh sorry, I forgot, that one hasn’t been invented yet to my knowledge.) Thanks, Rick > On Mar 20, 2022, at 3:57 PM, Richmond via use-livecode wrote: > > Frankly I'd go for isolated vowels (I, A), Vowel+ Consonant (In, On, An), and Consonant+ Vowel (La, Lo, Fi), you > also have a problem with the semi-vowel Y, and the semi-vowel U ( 'yu' as un Union, and 'u' as in Utter). > > This is pretty impressive: https://syllablecounter.net/count > > I gave it 'Beautiful aesthetic foetuses' and it came up, correctly, with 9 syllables . . . the Q is what's the code: > probably time to download the webpage and poke around a bit. From harrison at all-auctions.com Sun Mar 20 20:25:15 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 20 Mar 2022 20:25:15 -0400 Subject: Counting Syllables In-Reply-To: <2b3bc5c0-d45b-d5c5-44e3-4ca2611967bd@gmail.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> <204293C7-4933-484C-9010-7837D158E6CE@gmail.com> <2b3bc5c0-d45b-d5c5-44e3-4ca2611967bd@gmail.com> Message-ID: I found this: https://www.dcc-cde.ca.gov/professionaldev/events/documents/syllabication-packet-2021-04.pdf I’m not sure how comprehensive it is yet, but it has me thinking! I tried looking up syllable in wikipedia and read more about it then I could ever practically use. You might want to take a look at the article just for fun anyway. https://en.wikipedia.org/wiki/Syllable Rick From klaus at major-k.de Mon Mar 21 07:46:15 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 21 Mar 2022 12:46:15 +0100 Subject: destroystack/destroywindow not working? Message-ID: <76906CBE-CAC6-4692-B77A-B75CD58C3FC1@major-k.de> Hi all, I have a stack with its destroystack/destroywindow properties set to true. When I close it and open another stack which has a substack with ther same name as a substack of the previous stack, I get this really annoying dialog: "A stack with that name is already in memory..." Shouldn't setting destroystack/destroywindow prevent this? Or am I misunderstanding the meaning of these props? Thanks for any insight! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Mon Mar 21 08:21:39 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 21 Mar 2022 13:21:39 +0100 Subject: destroystack/destroywindow not working? In-Reply-To: <76906CBE-CAC6-4692-B77A-B75CD58C3FC1@major-k.de> References: <76906CBE-CAC6-4692-B77A-B75CD58C3FC1@major-k.de> Message-ID: <299D93C4-7D51-430B-9C87-DB9A944D1C6B@major-k.de> Hi all, > Am 21.03.2022 um 12:46 schrieb Klaus major-k via use-livecode : > I have a stack with its destroystack/destroywindow > properties set to true. > > When I close it and open another stack which has a > substack with ther same name as a substack of the > previous stack, I get this really annoying dialog: > "A stack with that name is already in memory..." > > Shouldn't setting destroystack/destroywindow prevent this? > Or am I misunderstanding the meaning of these props? > > Thanks for any insight! looks like this is an IDE "feature"!? I just noticed the menuitem -> Close and remove from memory Go figure! :-D Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Mon Mar 21 09:08:40 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 21 Mar 2022 14:08:40 +0100 Subject: Empty Externals folder neccessary to run windows exe successfully? Message-ID: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> Hi all, the subject says it all, I don't have a Win PC at hand for testing. It is a simple app without any externals. Thank you! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From dvglasgow at gmail.com Mon Mar 21 09:13:59 2022 From: dvglasgow at gmail.com (David V Glasgow) Date: Mon, 21 Mar 2022 13:13:59 +0000 Subject: can I filter lines with a list of alternative OR strings? In-Reply-To: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> References: <422B5B36-60BD-411D-B49B-6A8270729C31@mail.com> Message-ID: <883C840F-98C0-4BFC-8AAF-C4503D44825C@gmail.com> Thanks, Dick! I’ll play with that and see how I get on. The filter is in a loop which mostly uses simple strings, so presumably I would need to separate any regex filters into a separate loop using 'with regex'. I have also learned that this is called “alternation”. Didn’t know that, so now I can investigate further! thanks again David G > On 6 Mar 2022, at 11:12 pm, Dick Kriesel via use-livecode wrote: > > >> On Mar 3, 2022, at 2:30 AM, David V Glasgow via use-livecode wrote: >> >> I can filter text using a single term plus a numerical range s eg: >> *re 1[0-5]* >> matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15 >> >> But is there a form where the alternatives are also text? eg something like: >> >> *big [“dog”, “cat”, “fish”]* > > Hi, David. > > regex supports alternation, so if you put "big dog|big fish" into tTarget then you can > > filter pText with regex tTarget > > > Does that work for you? > > — Dick > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon Mar 21 10:41:49 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 21 Mar 2022 15:41:49 +0100 Subject: Empty Externals folder neccessary to run windows exe successfully? In-Reply-To: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> References: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> Message-ID: Short answer, no. I always delete that folder, if it’s empty. Von meinem iPhone gesendet > Am 21.03.2022 um 14:09 schrieb Klaus major-k via use-livecode : > > Hi all, > > the subject says it all, I don't have a Win PC at hand for testing. > It is a simple app without any externals. > > Thank you! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 craig at starfirelighting.com Mon Mar 21 10:52:02 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 21 Mar 2022 10:52:02 -0400 Subject: destroystack/destroywindow not working? In-Reply-To: <299D93C4-7D51-430B-9C87-DB9A944D1C6B@major-k.de> References: <76906CBE-CAC6-4692-B77A-B75CD58C3FC1@major-k.de> <299D93C4-7D51-430B-9C87-DB9A944D1C6B@major-k.de> Message-ID: I have seen this on Mac forever. I actually do not believe the “destroy” family of features does anything at all. Craig > On Mar 21, 2022, at 8:21 AM, Klaus major-k via use-livecode wrote: > > Hi all, > >> Am 21.03.2022 um 12:46 schrieb Klaus major-k via use-livecode : >> I have a stack with its destroystack/destroywindow >> properties set to true. >> >> When I close it and open another stack which has a >> substack with ther same name as a substack of the >> previous stack, I get this really annoying dialog: >> "A stack with that name is already in memory..." >> >> Shouldn't setting destroystack/destroywindow prevent this? >> Or am I misunderstanding the meaning of these props? >> >> Thanks for any insight! > > looks like this is an IDE "feature"!? > > I just noticed the menuitem -> Close and remove from memory > Go figure! :-D > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 craig at starfirelighting.com Mon Mar 21 10:56:38 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 21 Mar 2022 10:56:38 -0400 Subject: Counting Syllables In-Reply-To: <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> Message-ID: <5343939C-810F-4F6D-B683-3DE2D844F960@starfirelighting.com> I would think one would need a database that maps all words with the number of syllables in those words. I am sure some sort of algorithm would do a creditable job, but I bet it would not do a perfect job. For example, and embedded “eau” is usually one syllable, but a word such as “miaou” is two syllables Craig > On Mar 20, 2022, at 2:51 PM, Rick Harrison via use-livecode wrote: > > Hi Richmond, > > Yes, English. Sorry I forgot to be specific, I thought it was implied. > > Yes, I have been counting vowels, but there appear to be a lot of exceptions, > so there must be a lot more rules. > > I need to know what all the rules are to make it work if possible. > > There are websites out there on the internet that will count > syllables in whatever text given to them so it must be possible. > How are they doing it? Is it an algorithm ,or are they comparing > the words to a database table that has all the dictionary information? > > Thanks, > > Rick > > >> On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode wrote: >> >> Well, syllables are language dependent, so let's suppose for the moment that >> you are ONLY working with English, the, presumably, you can set up vowels >> as item-delimiters: although you might get a bit mixed up with words sucj >> as 'beautiful' which, while having 5 vowels only has 3 syllables. >> >> Basically you have to work out how to detect V+C and open vowels at the >> end of words. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mon Mar 21 11:05:56 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 21 Mar 2022 16:05:56 +0100 Subject: Empty Externals folder neccessary to run windows exe successfully? In-Reply-To: References: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> Message-ID: Hi Matthias, > Am 21.03.2022 um 15:41 schrieb Matthias Rebbe via use-livecode : > > Short answer, no. I always delete that folder, if it’s empty. thank you very much! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From merakosp at gmail.com Mon Mar 21 12:08:39 2022 From: merakosp at gmail.com (panagiotis m) Date: Mon, 21 Mar 2022 18:08:39 +0200 Subject: Empty Externals folder neccessary to run windows exe successfully? In-Reply-To: References: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> Message-ID: Hello all, There is a bug report about it: https://quality.livecode.com/show_bug.cgi?id=20223 Cheers, Panos -- On Mon, 21 Mar 2022 at 17:06, Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Matthias, > > > Am 21.03.2022 um 15:41 schrieb Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com>: > > > > Short answer, no. I always delete that folder, if it’s empty. > > thank you very much! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 klaus at major-k.de Mon Mar 21 12:34:38 2022 From: klaus at major-k.de (Klaus major-k) Date: Mon, 21 Mar 2022 17:34:38 +0100 Subject: Empty Externals folder neccessary to run windows exe successfully? In-Reply-To: References: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> Message-ID: Hello Panos, > Am 21.03.2022 um 17:08 schrieb panagiotis m via use-livecode : > > Hello all, > > There is a bug report about it: > > https://quality.livecode.com/show_bug.cgi?id=20223 well, then finally pull the pull-request! 8-) > Cheers, > Panos Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From ahsoftware at sonic.net Mon Mar 21 12:40:21 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 21 Mar 2022 09:40:21 -0700 Subject: Empty Externals folder neccessary to run windows exe successfully? In-Reply-To: References: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> Message-ID: <5bd642fe-6651-47e5-896f-20d5b1e3cfd0@sonic.net> On 3/21/22 09:08, panagiotis m via use-livecode wrote: > Hello all, > > There is a bug report about it: > > https://quality.livecode.com/show_bug.cgi?id=20223 From *five years ago*. Status 'awaiting merge' Pull request in 2019 removed from the 9.6.0 milesone and still 'waiting for review' -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Mon Mar 21 14:29:56 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 21 Mar 2022 13:29:56 -0500 Subject: destroystack/destroywindow not working? In-Reply-To: <76906CBE-CAC6-4692-B77A-B75CD58C3FC1@major-k.de> References: <76906CBE-CAC6-4692-B77A-B75CD58C3FC1@major-k.de> Message-ID: I've seen this occasionally, where the mainstack is removed but the substacks are still in the list of available stacks. I think the IDE list of stacks in memory isn't updated correctly unless all substacks are marked as destroyed. At least, that's what it looks like. On 3/21/22 6:46 AM, Klaus major-k via use-livecode wrote: > Hi all, > > I have a stack with its destroystack/destroywindow > properties set to true. > > When I close it and open another stack which has a > substack with ther same name as a substack of the > previous stack, I get this really annoying dialog: > "A stack with that name is already in memory..." > > Shouldn't setting destroystack/destroywindow prevent this? > Or am I misunderstanding the meaning of these props? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From harrison at all-auctions.com Mon Mar 21 15:21:47 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 21 Mar 2022 15:21:47 -0400 Subject: Counting Syllables In-Reply-To: <5343939C-810F-4F6D-B683-3DE2D844F960@starfirelighting.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> <5343939C-810F-4F6D-B683-3DE2D844F960@starfirelighting.com> Message-ID: <44D21B72-9657-45BA-9CD6-D47925A3A275@all-auctions.com> “miaou” has 4 consecutive vowels so I’m not surprised it has 2 syllables. That may be a rule. The average person uses about 20,000 words on a regular basis. They know about 40,000 visually. It’s estimated there are about 1.25 million english words, but a lot of those are scientific terms. Anyone up to building a cross reference database that can be searched quickly? Rick > “miaou” is two syllables > On Mar 21, 2022, at 10:56 AM, Craig Newman via use-livecode wrote: > > I would think one would need a database that maps all words with the number of syllables in those words. I am sure some sort of algorithm would do a creditable job, but I bet it would not do a perfect job. For example, and embedded “eau” is usually one syllable, but a word such as “miaou” is two syllables > > Craig From paul at researchware.com Mon Mar 21 15:22:52 2022 From: paul at researchware.com (Paul Dupuis) Date: Mon, 21 Mar 2022 15:22:52 -0400 Subject: destroystack/destroywindow not working? In-Reply-To: References: <76906CBE-CAC6-4692-B77A-B75CD58C3FC1@major-k.de> Message-ID: <5b4e2f7f-9397-8ac1-dc99-59dec086a1f7@researchware.com> We use this code in an internal Installer builder app to ensure a stack is actually removed from memory: command removeStackFromMemory pStackName   set wholeMatches to true   repeat while pStackName is among the lines of revLoadedStacks(application)     set cursor to busy     set the destroyStack of stack pStackName to true     set the cantDelete of stack pStackName to false     lock messages     close stack pStackName     delete stack pStackName     unlock messages     wait 0.5 second with messages   end repeat   set cursor to arrow end removeStackFromMemory NOTE: The lock messages ensures that no closeSTack or deleteStack or related messages get processed when removing the stack from memory. The wait is necessary as it takes the engine some time to actually remove the stack, but it will do so - eventually ;-) I do not claim this is the most efficient way nor the fastest, only that it works. On 3/21/2022 2:29 PM, J. Landman Gay via use-livecode wrote: > I've seen this occasionally, where the mainstack is removed but the > substacks are still in the list of available stacks. I think the IDE > list of stacks in memory isn't updated correctly unless all substacks > are marked as destroyed. At least, that's what it looks like. > > > On 3/21/22 6:46 AM, Klaus major-k via use-livecode wrote: >> Hi all, >> >> I have a stack with its destroystack/destroywindow >> properties set to true. >> >> When I close it and open another stack which has a >> substack with ther same name as a substack of the >> previous stack, I get this really annoying dialog: >> "A stack with that name is already in memory..." >> >> Shouldn't setting destroystack/destroywindow prevent this? >> Or am I misunderstanding the meaning of these props? > > From matthias_livecode_150811 at m-r-d.de Mon Mar 21 16:04:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 21 Mar 2022 21:04:34 +0100 Subject: Empty Externals folder neccessary to run windows exe successfully? In-Reply-To: References: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> Message-ID: <688FD90B-B80E-4927-BEC2-3C00340EBA25@m-r-d.de> Hi Panos, in the bug report you link to a pull request which was removed for some reasons. Why not checking for emptiness of the externals folder and delete it seperately for each platform after the standalone was build and maybe only for Win and Linux, Either in the reSaveAsMacStandalone, revSaveAsWindowsStandalone, revSaveAsLinuxStandalone handlers and or combined in the currently empty revStandalonePostBuild handler of the stack revSaveAsStandalone? Would this avoid the problems Mark Waddingham was concerned about? I've added this code block here as a test at the end of the revSaveAsWindowsStandalone directly before the line with the call to revStandalonePostBuild This works so far. if pFolder ends with "Windows" -- standalones for both Win platforms were created (32 and 64 bit) -- or for one Win platform and at least for one other non windows platform then -- first delete the empty externals folder in Windows 32bit folder in case it exists if there is a folder (pfolder&"/externals") \ and files(pFolder &"/externals") is empty \ and folders(pfolder&"/externals") = ".." then delete folder pfolder&"/externals" end if -- then delete empty externals folder in Windows 64bit folder in case it exists if there is a folder (pfolder&&"x86-64/externals") \ and files(pFolder && "x86-64/externals") is empty \ and folders(pfolder && "x86-64/externals") = ".." then delete folder pfolder && "x86-64/externals" end if else -- a standalone either for Windows x86-32 or X86-64 and for no other platform, macOS or Linux , was created if there is a folder (pfolder&"/externals") \ and files(pFolder &"/externals") is empty \ and folders(pfolder&"/externals") = ".." then delete folder pfolder&"/externals" end if end if > Am 21.03.2022 um 17:08 schrieb panagiotis m via use-livecode : > > Hello all, > > There is a bug report about it: > > https://quality.livecode.com/show_bug.cgi?id=20223 > > Cheers, > Panos > -- > > On Mon, 21 Mar 2022 at 17:06, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Matthias, >> >>> Am 21.03.2022 um 15:41 schrieb Matthias Rebbe via use-livecode < >> use-livecode at lists.runrev.com>: >>> >>> Short answer, no. I always delete that folder, if it’s empty. >> >> thank you very much! >> >> >> Best >> >> Klaus >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> klaus at major-k.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 >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 21 16:13:40 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 21 Mar 2022 13:13:40 -0700 Subject: Empty Externals folder neccessary to run windows exe successfully? In-Reply-To: <688FD90B-B80E-4927-BEC2-3C00340EBA25@m-r-d.de> References: <0C7B4E15-8366-4C21-A515-5E2952CE0DB8@major-k.de> <688FD90B-B80E-4927-BEC2-3C00340EBA25@m-r-d.de> Message-ID: <04d7499c-cb32-657f-e815-ef3c4340f9b9@sonic.net> On 3/21/22 13:04, matthias rebbe via use-livecode wrote: > Hi Panos, > > in the bug report you link to a pull request which was removed for some reasons. Nice fix. I think *all* pull requests were orphaned when the opensource product was removed. -- Mark Wieder ahsoftware at gmail.com From craig at starfirelighting.com Mon Mar 21 16:18:16 2022 From: craig at starfirelighting.com (Craig Newman) Date: Mon, 21 Mar 2022 16:18:16 -0400 Subject: Counting Syllables In-Reply-To: <44D21B72-9657-45BA-9CD6-D47925A3A275@all-auctions.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> <5343939C-810F-4F6D-B683-3DE2D844F960@starfirelighting.com> <44D21B72-9657-45BA-9CD6-D47925A3A275@all-auctions.com> Message-ID: <578A4985-2F5A-4911-98B8-BFC61D70E079@starfirelighting.com> Such cases are rare, certainly, but “queue” comes to mind. I am sure that a vowel parsing routine will be reasonably accurate, but not perfect, as per the previous example. A quick search did not turn up any “list of all words and their syllable count”, but there still might be one. One site mentioned that algorithms were being used, but were “not perfect”. Craig > On Mar 21, 2022, at 3:21 PM, Rick Harrison via use-livecode wrote: > > “miaou” has 4 consecutive vowels so I’m not surprised it has 2 syllables. That may be a rule. > > The average person uses about 20,000 words on a regular basis. > > They know about 40,000 visually. > > It’s estimated there are about 1.25 million english words, but a lot of those are scientific terms. > > Anyone up to building a cross reference database that can be searched quickly? > > Rick > >> “miaou” is two syllables > >> On Mar 21, 2022, at 10:56 AM, Craig Newman via use-livecode wrote: >> >> I would think one would need a database that maps all words with the number of syllables in those words. I am sure some sort of algorithm would do a creditable job, but I bet it would not do a perfect job. For example, and embedded “eau” is usually one syllable, but a word such as “miaou” is two syllables >> >> 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 bobsneidar at iotecdigital.com Mon Mar 21 18:58:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 21 Mar 2022 22:58:33 +0000 Subject: There is no TextEdit.app??? Message-ID: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! put "/Applications/TextEdit.app" into tTextEditorPath if there is a folder tTextEditorPath then put true into tValidPath end if if tValidPath is false then put empty into tTextEditorPath end if That cannot be right. MacOS Catalina 10.15.7 LC 9.6.7 lc2. Bob S From bobsneidar at iotecdigital.com Mon Mar 21 19:06:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 21 Mar 2022 23:06:21 +0000 Subject: There is no TextEdit.app??? In-Reply-To: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> Message-ID: <62DA7DC8-A1C7-4457-9AB7-C140CA2ED3E8@iotecdigital.com> Also of great curiosity to me, set the tool to "Browse Tool" throws an error in the SE. set the tool to "browse tool" does NOT throw an error in the SE! Bob S > On Mar 21, 2022, at 15:58 , Bob Sneidar wrote: > > I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! > > put "/Applications/TextEdit.app" into tTextEditorPath > if there is a folder tTextEditorPath then > put true into tValidPath > end if > > if tValidPath is false then > put empty into tTextEditorPath > end if > > That cannot be right. > > MacOS Catalina 10.15.7 LC 9.6.7 lc2. > > Bob S > From bobsneidar at iotecdigital.com Mon Mar 21 19:12:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 21 Mar 2022 23:12:20 +0000 Subject: There is no TextEdit.app??? In-Reply-To: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> Message-ID: Also the launch command is not working with the TextEdit application. Bob S > On Mar 21, 2022, at 15:58 , Bob Sneidar via use-livecode wrote: > > I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! > > put "/Applications/TextEdit.app" into tTextEditorPath > if there is a folder tTextEditorPath then > put true into tValidPath > end if > > if tValidPath is false then > put empty into tTextEditorPath > end if > > That cannot be right. > > MacOS Catalina 10.15.7 LC 9.6.7 lc2. > > 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 Mon Mar 21 19:16:04 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 21 Mar 2022 23:16:04 +0000 Subject: There is no TextEdit.app??? In-Reply-To: References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> Message-ID: NVM on this one. Apparently the TextEdit.app application is actually in /System/Applications/ even though there is a TextEdit.app file in /Applications/. Must be a SymLink. Bob S > On Mar 21, 2022, at 16:12 , Bob Sneidar wrote: > > Also the launch command is not working with the TextEdit application. > > Bob S > > >> On Mar 21, 2022, at 15:58 , Bob Sneidar via use-livecode wrote: >> >> I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! >> >> put "/Applications/TextEdit.app" into tTextEditorPath >> if there is a folder tTextEditorPath then >> put true into tValidPath >> end if >> >> if tValidPath is false then >> put empty into tTextEditorPath >> end if >> >> That cannot be right. >> >> MacOS Catalina 10.15.7 LC 9.6.7 lc2. >> >> 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 harrison at all-auctions.com Mon Mar 21 20:26:07 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 21 Mar 2022 20:26:07 -0400 Subject: Counting Syllables In-Reply-To: <578A4985-2F5A-4911-98B8-BFC61D70E079@starfirelighting.com> References: <19d8902e-a1c0-6e30-a104-f8dcf16f1748@researchware.com> <3D4C0FD3-E832-4399-8B19-BA918F8FA625@m-r-d.de> <118d48a1-f02f-a867-71cc-552f31330206@researchware.com> <654b0330-5fa6-ca0f-f6f7-6b3bbadd43ad@pdslabs.net> <10331259-3860-4DA6-8954-C6A5668C1CE4@all-auctions.com> <891E002E-2F72-4F27-885B-96209262ACA6@all-auctions.com> <5343939C-810F-4F6D-B683-3DE2D844F960@starfirelighting.com> <44D21B72-9657-45BA-9CD6-D47925A3A275@all-auctions.com> <578A4985-2F5A-4911-98B8-BFC61D70E079@starfirelighting.com> Message-ID: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> I’ve tried a bunch of things. It’s 80-90% correct, but failing 10-20% of the time due to irregulars isn’t acceptable. I think I have to look into a database table lookup solution, but I’m dreading it. Thanks, Rick > On Mar 21, 2022, at 4:18 PM, Craig Newman via use-livecode wrote: > > Such cases are rare, certainly, but “queue” comes to mind. I am sure that a vowel parsing routine will be reasonably accurate, but not perfect, as per the previous example. > > A quick search did not turn up any “list of all words and their syllable count”, but there still might be one. One site mentioned that algorithms were being used, but were “not perfect”. > > Craig From brian at milby7.com Mon Mar 21 22:47:29 2022 From: brian at milby7.com (Brian Milby) Date: Mon, 21 Mar 2022 22:47:29 -0400 Subject: Counting Syllables In-Reply-To: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> References: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> Message-ID: Well, you could set up your rules and just database the exceptions. Then you at least have a guess for the words that you don’t “know” the answer for. If there is a database miss, then use the rule set. Sent from my iPhone > On Mar 21, 2022, at 8:27 PM, Rick Harrison via use-livecode wrote: > > I’ve tried a bunch of things. It’s 80-90% correct, but failing 10-20% of the time due to irregulars isn’t acceptable. > I think I have to look into a database table lookup solution, but I’m dreading it. > > Thanks, > > Rick > >> On Mar 21, 2022, at 4:18 PM, Craig Newman via use-livecode wrote: >> >> Such cases are rare, certainly, but “queue” comes to mind. I am sure that a vowel parsing routine will be reasonably accurate, but not perfect, as per the previous example. >> >> A quick search did not turn up any “list of all words and their syllable count”, but there still might be one. One site mentioned that algorithms were being used, but were “not perfect”. >> >> 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 andre at andregarzia.com Tue Mar 22 06:36:10 2022 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 22 Mar 2022 10:36:10 +0000 Subject: There is no TextEdit.app??? In-Reply-To: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> Message-ID: <24A77528-D358-4EF4-BE76-076F8EB45E2B@andregarzia.com> Bob, Another way to check if an application is installed on a mac is by using AppleScript. Here are some functions that work together to check if TextEdit is installed. function q txt return quote & txt & quote end q function isApplicationInstalledByBundleID pID put "try" & cr into tScript put "tell application " & q("Finder") & " to get application file id " & q(pID) & cr after tScript put "return true" & cr after tScript put "on error" & cr after tScript put "return false" & cr after tScript put "end try" & cr after tScript do tScript as “applescript" if the result is "{true}” then return true else return false end if end isApplicationInstalledByBundleID function isTextEditInstalled return isApplicationInstalledByBundleID("com.apple.TextEdit") end isTextEditInstalled > On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode wrote: > > I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! > > put "/Applications/TextEdit.app" into tTextEditorPath > if there is a folder tTextEditorPath then > put true into tValidPath > end if > > if tValidPath is false then > put empty into tTextEditorPath > end if > > That cannot be right. > > MacOS Catalina 10.15.7 LC 9.6.7 lc2. > > 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 andre at andregarzia.com Tue Mar 22 07:01:03 2022 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 22 Mar 2022 11:01:03 +0000 Subject: There is no TextEdit.app??? In-Reply-To: <24A77528-D358-4EF4-BE76-076F8EB45E2B@andregarzia.com> References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> <24A77528-D358-4EF4-BE76-076F8EB45E2B@andregarzia.com> Message-ID: Damn, I took a long time formatting that message so the source-code would be legible. Well, sorry, don’t know if it was my mail app or the mailing-list software, but something borked it. > On 22 Mar 2022, at 10:36, Andre Garzia wrote: > > Bob, > > Another way to check if an application is installed on a mac is by using AppleScript. Here are some functions that work together to check if TextEdit is installed. > > function q txt > return quote & txt & quote > end q > > function isApplicationInstalledByBundleID pID > put "try" & cr into tScript > put "tell application " & q("Finder") & " to get application file id " & q(pID) & cr after tScript > put "return true" & cr after tScript > put "on error" & cr after tScript > put "return false" & cr after tScript > put "end try" & cr after tScript > > do tScript as “applescript" > > if the result is "{true}” then > return true > else > return false > end if > end isApplicationInstalledByBundleID > > function isTextEditInstalled > return isApplicationInstalledByBundleID("com.apple.TextEdit") > end isTextEditInstalled > > > >> On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode wrote: >> >> I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! >> >> put "/Applications/TextEdit.app" into tTextEditorPath >> if there is a folder tTextEditorPath then >> put true into tValidPath >> end if >> >> if tValidPath is false then >> put empty into tTextEditorPath >> end if >> >> That cannot be right. >> >> MacOS Catalina 10.15.7 LC 9.6.7 lc2. >> >> 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 craig at starfirelighting.com Tue Mar 22 09:01:26 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 22 Mar 2022 09:01:26 -0400 Subject: There is no TextEdit.app??? In-Reply-To: References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> <24A77528-D358-4EF4-BE76-076F8EB45E2B@andregarzia.com> Message-ID: <3106B00E-D90C-46F1-8ED7-E014DA112B42@starfirelighting.com> Bob. There is no way that the uppercase/lowercase difference in a character in a literal can have that sort of effect. Are you saying you can duplicate this??? Craig > On Mar 22, 2022, at 7:01 AM, Andre Garzia via use-livecode wrote: > > Damn, I took a long time formatting that message so the source-code would be legible. Well, sorry, don’t know if it was my mail app or the mailing-list software, but something borked it. > >> On 22 Mar 2022, at 10:36, Andre Garzia wrote: >> >> Bob, >> >> Another way to check if an application is installed on a mac is by using AppleScript. Here are some functions that work together to check if TextEdit is installed. >> >> function q txt >> return quote & txt & quote >> end q >> >> function isApplicationInstalledByBundleID pID >> put "try" & cr into tScript >> put "tell application " & q("Finder") & " to get application file id " & q(pID) & cr after tScript >> put "return true" & cr after tScript >> put "on error" & cr after tScript >> put "return false" & cr after tScript >> put "end try" & cr after tScript >> >> do tScript as “applescript" >> >> if the result is "{true}” then >> return true >> else >> return false >> end if >> end isApplicationInstalledByBundleID >> >> function isTextEditInstalled >> return isApplicationInstalledByBundleID("com.apple.TextEdit") >> end isTextEditInstalled >> >> >> >>> On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode wrote: >>> >>> I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! >>> >>> put "/Applications/TextEdit.app" into tTextEditorPath >>> if there is a folder tTextEditorPath then >>> put true into tValidPath >>> end if >>> >>> if tValidPath is false then >>> put empty into tTextEditorPath >>> end if >>> >>> That cannot be right. >>> >>> MacOS Catalina 10.15.7 LC 9.6.7 lc2. >>> >>> 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 craig at starfirelighting.com Tue Mar 22 09:06:32 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 22 Mar 2022 09:06:32 -0400 Subject: Counting Syllables In-Reply-To: References: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> Message-ID: <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> If you have a database at all, it would cost nothing much in speed to just use the whole thing all the time. Put the database into an array, of the form: “cat 1” "chicken 2” “elephant 3” ‘miaou 1" … The hard part is finding that database. It would take quite a while to build and finalize your own. Craig > On Mar 21, 2022, at 10:47 PM, Brian Milby via use-livecode wrote: > > Well, you could set up your rules and just database the exceptions. Then you at least have a guess for the words that you don’t “know” the answer for. If there is a database miss, then use the rule set. From brian at milby7.com Tue Mar 22 09:47:19 2022 From: brian at milby7.com (Brian Milby) Date: Tue, 22 Mar 2022 09:47:19 -0400 Subject: Counting Syllables In-Reply-To: <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> References: <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> Message-ID: True about speed, but I was more thinking about storage space and tolerance to missing words. A complete dictionary would likely be faster. Brian Sent from my iPhone > On Mar 22, 2022, at 9:07 AM, Craig Newman via use-livecode wrote: > > If you have a database at all, it would cost nothing much in speed to just use the whole thing all the time. Put the database into an array, of the form: > “cat 1” > "chicken 2” > “elephant 3” > ‘miaou 1" > … > > The hard part is finding that database. It would take quite a while to build and finalize your own. > > Craig > > >> On Mar 21, 2022, at 10:47 PM, Brian Milby via use-livecode wrote: >> >> Well, you could set up your rules and just database the exceptions. Then you at least have a guess for the words that you don’t “know” the answer for. If there is a database miss, then use the rule set. > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 22 10:25:37 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 22 Mar 2022 10:25:37 -0400 Subject: Counting Syllables In-Reply-To: <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> References: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> Message-ID: Yes, that is where I’m at. An existing database would make things a lot easier. Rick > On Mar 22, 2022, at 9:06 AM, Craig Newman via use-livecode wrote: > > If you have a database at all, it would cost nothing much in speed to just use the whole thing all the time. Put the database into an array, of the form: > “cat 1” > "chicken 2” > “elephant 3” > ‘miaou 1" > … > > The hard part is finding that database. It would take quite a while to build and finalize your own. > > Craig From bobsneidar at iotecdigital.com Tue Mar 22 11:09:21 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 15:09:21 +0000 Subject: There is no TextEdit.app??? In-Reply-To: <3106B00E-D90C-46F1-8ED7-E014DA112B42@starfirelighting.com> References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> <24A77528-D358-4EF4-BE76-076F8EB45E2B@andregarzia.com> <3106B00E-D90C-46F1-8ED7-E014DA112B42@starfirelighting.com> Message-ID: <80FD4FEE-4B71-46B9-A9C5-875267146AD6@iotecdigital.com> Craig, the system is not case sensitive. Should the Symlink produce true for there is a folder? If so then I suppose it is a bug. But it's a minor one and it can be worked around. It makes sense for Apple to put such apps in the system, as deleting or worse yet modifying them would take more than admin credentials. Bob S > On Mar 22, 2022, at 06:01 , Craig Newman via use-livecode wrote: > > Bob. > > There is no way that the uppercase/lowercase difference in a character in a literal can have that sort of effect. Are you saying you can duplicate this??? > > Craig > >> On Mar 22, 2022, at 7:01 AM, Andre Garzia via use-livecode wrote: >> >> Damn, I took a long time formatting that message so the source-code would be legible. Well, sorry, don’t know if it was my mail app or the mailing-list software, but something borked it. >> >>> On 22 Mar 2022, at 10:36, Andre Garzia wrote: >>> >>> Bob, >>> >>> Another way to check if an application is installed on a mac is by using AppleScript. Here are some functions that work together to check if TextEdit is installed. >>> >>> function q txt >>> return quote & txt & quote >>> end q >>> >>> function isApplicationInstalledByBundleID pID >>> put "try" & cr into tScript >>> put "tell application " & q("Finder") & " to get application file id " & q(pID) & cr after tScript >>> put "return true" & cr after tScript >>> put "on error" & cr after tScript >>> put "return false" & cr after tScript >>> put "end try" & cr after tScript >>> >>> do tScript as “applescript" >>> >>> if the result is "{true}” then >>> return true >>> else >>> return false >>> end if >>> end isApplicationInstalledByBundleID >>> >>> function isTextEditInstalled >>> return isApplicationInstalledByBundleID("com.apple.TextEdit") >>> end isTextEditInstalled >>> >>> >>> >>>> On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode wrote: >>>> >>>> I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! >>>> >>>> put "/Applications/TextEdit.app" into tTextEditorPath >>>> if there is a folder tTextEditorPath then >>>> put true into tValidPath >>>> end if >>>> >>>> if tValidPath is false then >>>> put empty into tTextEditorPath >>>> end if >>>> >>>> That cannot be right. >>>> >>>> MacOS Catalina 10.15.7 LC 9.6.7 lc2. >>>> >>>> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 22 11:16:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 15:16:19 +0000 Subject: There is no TextEdit.app??? In-Reply-To: References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> Message-ID: <62E3FCEA-BCE5-42C7-B91A-4A0ED3A938F8@iotecdigital.com> Andre, the goal for me on this one is to get the path to the app so I can use it in the launch command. For some reason, using the short name of the app does not work with the launch command, although maybe it should. Also launch using just the filename does not launch the default app like you would think. Bob S > On Mar 21, 2022, at 16:16 , Bob Sneidar wrote: > > NVM on this one. Apparently the TextEdit.app application is actually in /System/Applications/ even though there is a TextEdit.app file in /Applications/. Must be a SymLink. > > Bob S > > >> On Mar 21, 2022, at 16:12 , Bob Sneidar wrote: >> >> Also the launch command is not working with the TextEdit application. >> >> Bob S >> >> >>> On Mar 21, 2022, at 15:58 , Bob Sneidar via use-livecode wrote: >>> >>> I have the following in a script, and it does not seem to be able to find the TextEdit.app application on a Mac! >>> >>> put "/Applications/TextEdit.app" into tTextEditorPath >>> if there is a folder tTextEditorPath then >>> put true into tValidPath >>> end if >>> >>> if tValidPath is false then >>> put empty into tTextEditorPath >>> end if >>> >>> That cannot be right. >>> >>> MacOS Catalina 10.15.7 LC 9.6.7 lc2. >>> >>> 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 andre at andregarzia.com Tue Mar 22 11:41:53 2022 From: andre at andregarzia.com (Andre Garzia) Date: Tue, 22 Mar 2022 15:41:53 +0000 Subject: There is no TextEdit.app??? In-Reply-To: <62E3FCEA-BCE5-42C7-B91A-4A0ED3A938F8@iotecdigital.com> References: <29A9C5C5-4208-497D-8D95-290E904DFD65@iotecdigital.com> <62E3FCEA-BCE5-42C7-B91A-4A0ED3A938F8@iotecdigital.com> Message-ID: Bob, AppleScript still your friend. Use this AppleScript from your LiveCode app: tell application "TextEdit" set targetFilePath to "Macintosh HD:Users:myuser:Downloads:test.txt" activate open file targetFilePath end tell Just remember to alter the destination of targetFilePath to be the file you want, and remember that paths are colon separated. On Tue, 22 Mar 2022 at 15:17, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Andre, the goal for me on this one is to get the path to the app so I can > use it in the launch command. For some reason, using the short name of the > app does not work with the launch command, although maybe it should. Also > launch using just the filename does not launch the default app like you > would think. > > Bob S > > > > On Mar 21, 2022, at 16:16 , Bob Sneidar > wrote: > > > > NVM on this one. Apparently the TextEdit.app application is actually in > /System/Applications/ even though there is a TextEdit.app file in > /Applications/. Must be a SymLink. > > > > Bob S > > > > > >> On Mar 21, 2022, at 16:12 , Bob Sneidar > wrote: > >> > >> Also the launch command is not working with the TextEdit application. > >> > >> Bob S > >> > >> > >>> On Mar 21, 2022, at 15:58 , Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> I have the following in a script, and it does not seem to be able to > find the TextEdit.app application on a Mac! > >>> > >>> put "/Applications/TextEdit.app" into tTextEditorPath > >>> if there is a folder tTextEditorPath then > >>> put true into tValidPath > >>> end if > >>> > >>> if tValidPath is false then > >>> put empty into tTextEditorPath > >>> end if > >>> > >>> That cannot be right. > >>> > >>> MacOS Catalina 10.15.7 LC 9.6.7 lc2. > >>> > >>> 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 > -- https://www.andregarzia.com Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia From bobsneidar at iotecdigital.com Tue Mar 22 14:18:27 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 18:18:27 +0000 Subject: ExcelLib in a standalone Message-ID: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> Hi all. I'll try to make this as succinct as possible. 1. Excel_Lib works in MacOS IDE 2. Excel_Lib works in MacOS Standalone 3. Excel_Lib works in Windows 7 IDE 4. Excel_Lib does NOT WORK in Windows 7 Standalone 5. Excel_Lib works in Windows 10 IDE 6. Excel_Lib does NOT WORK in Windows 10 standalone Is there something I am missing? I am not getting any alerts when it fails, it simply doesn't access the spreadsheet files and the data they contain. Bob S From matthias_livecode_150811 at m-r-d.de Tue Mar 22 15:20:31 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 22 Mar 2022 20:20:31 +0100 Subject: ExcelLib in a standalone In-Reply-To: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> Message-ID: <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> Bob, how did you include the library? As a separate stack or integrated in the .exe? Regards, Matthias > Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode : > > Hi all. I'll try to make this as succinct as possible. > > 1. Excel_Lib works in MacOS IDE > 2. Excel_Lib works in MacOS Standalone > 3. Excel_Lib works in Windows 7 IDE > 4. Excel_Lib does NOT WORK in Windows 7 Standalone > 5. Excel_Lib works in Windows 10 IDE > 6. Excel_Lib does NOT WORK in Windows 10 standalone > > Is there something I am missing? I am not getting any alerts when it fails, it simply doesn't access the spreadsheet files and the data they contain. > > 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 Tue Mar 22 16:07:34 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 20:07:34 +0000 Subject: ExcelLib in a standalone In-Reply-To: <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> Message-ID: <59556FE7-9E9F-4AB1-89A8-01349F1E8FFD@iotecdigital.com> The Excel_Lib file is at the same folder level as the application. In other words I can see Excel_Lib (and the other libraries) in the application folder. Bob S > On Mar 22, 2022, at 12:20 , matthias rebbe via use-livecode wrote: > > Bob, > > how did you include the library? As a separate stack or integrated in the .exe? > > Regards, > Matthias > >> Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode : >> >> Hi all. I'll try to make this as succinct as possible. >> >> 1. Excel_Lib works in MacOS IDE >> 2. Excel_Lib works in MacOS Standalone >> 3. Excel_Lib works in Windows 7 IDE >> 4. Excel_Lib does NOT WORK in Windows 7 Standalone >> 5. Excel_Lib works in Windows 10 IDE >> 6. Excel_Lib does NOT WORK in Windows 10 standalone >> >> Is there something I am missing? I am not getting any alerts when it fails, it simply doesn't access the spreadsheet files and the data they contain. >> >> 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 matthias_livecode_150811 at m-r-d.de Tue Mar 22 17:40:02 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 22 Mar 2022 22:40:02 +0100 Subject: ExcelLib in a standalone In-Reply-To: <59556FE7-9E9F-4AB1-89A8-01349F1E8FFD@iotecdigital.com> References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> <59556FE7-9E9F-4AB1-89A8-01349F1E8FFD@iotecdigital.com> Message-ID: Hm, i tried here and it works, but Excel is run/opened hidden. i needed to call XCEL_Application_Show to get Excel shown. Regards, Matthias > Am 22.03.2022 um 21:07 schrieb Bob Sneidar via use-livecode : > > The Excel_Lib file is at the same folder level as the application. In other words I can see Excel_Lib (and the other libraries) in the application folder. > > Bob S > > >> On Mar 22, 2022, at 12:20 , matthias rebbe via use-livecode wrote: >> >> Bob, >> >> how did you include the library? As a separate stack or integrated in the .exe? >> >> Regards, >> Matthias >> >>> Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode : >>> >>> Hi all. I'll try to make this as succinct as possible. >>> >>> 1. Excel_Lib works in MacOS IDE >>> 2. Excel_Lib works in MacOS Standalone >>> 3. Excel_Lib works in Windows 7 IDE >>> 4. Excel_Lib does NOT WORK in Windows 7 Standalone >>> 5. Excel_Lib works in Windows 10 IDE >>> 6. Excel_Lib does NOT WORK in Windows 10 standalone >>> >>> Is there something I am missing? I am not getting any alerts when it fails, it simply doesn't access the spreadsheet files and the data they contain. >>> >>> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Mar 22 17:49:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 21:49:19 +0000 Subject: ExcelLib in a standalone In-Reply-To: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> Message-ID: <13355098-0A07-4B88-8DC8-C454885B488B@iotecdigital.com> OK So I set up a debugging log to see where along the way I was going wrong. I found some anomalies, and fixed them and now it seems to be working. Bob S > On Mar 22, 2022, at 11:18 , Bob Sneidar via use-livecode wrote: > > Hi all. I'll try to make this as succinct as possible. > > 1. Excel_Lib works in MacOS IDE > 2. Excel_Lib works in MacOS Standalone > 3. Excel_Lib works in Windows 7 IDE > 4. Excel_Lib does NOT WORK in Windows 7 Standalone > 5. Excel_Lib works in Windows 10 IDE > 6. Excel_Lib does NOT WORK in Windows 10 standalone > > Is there something I am missing? I am not getting any alerts when it fails, it simply doesn't access the spreadsheet files and the data they contain. > > 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 Tue Mar 22 17:57:38 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 21:57:38 +0000 Subject: ExcelLib in a standalone In-Reply-To: References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> <59556FE7-9E9F-4AB1-89A8-01349F1E8FFD@iotecdigital.com> Message-ID: On the Mac, the library uses Apple Events, and for that to work it has to launch Excel and open the spreadsheet. On Windows, it uses some kind of Java library, so does not need to open the file or the app, which means it runs much faster on Windows, quite the anomaly these days. :-) Bob S > On Mar 22, 2022, at 14:40 , matthias rebbe via use-livecode wrote: > > Hm, > i tried here and it works, but Excel is run/opened hidden. i needed to call XCEL_Application_Show to get Excel shown. > > Regards, > Matthias > >> Am 22.03.2022 um 21:07 schrieb Bob Sneidar via use-livecode : >> >> The Excel_Lib file is at the same folder level as the application. In other words I can see Excel_Lib (and the other libraries) in the application folder. >> >> Bob S >> >> >>> On Mar 22, 2022, at 12:20 , matthias rebbe via use-livecode wrote: >>> >>> Bob, >>> >>> how did you include the library? As a separate stack or integrated in the .exe? >>> >>> Regards, >>> Matthias >>> >>>> Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode : >>>> >>>> Hi all. I'll try to make this as succinct as possible. >>>> >>>> 1. Excel_Lib works in MacOS IDE >>>> 2. Excel_Lib works in MacOS Standalone >>>> 3. Excel_Lib works in Windows 7 IDE >>>> 4. Excel_Lib does NOT WORK in Windows 7 Standalone >>>> 5. Excel_Lib works in Windows 10 IDE >>>> 6. Excel_Lib does NOT WORK in Windows 10 standalone >>>> >>>> Is there something I am missing? I am not getting any alerts when it fails, it simply doesn't access the spreadsheet files and the data they contain. >>>> >>>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 craig at starfirelighting.com Tue Mar 22 18:21:19 2022 From: craig at starfirelighting.com (Craig Newman) Date: Tue, 22 Mar 2022 18:21:19 -0400 Subject: Counting Syllables In-Reply-To: References: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> Message-ID: <6BC80A69-EAF5-4CC7-A035-CB92C81001B2@starfirelighting.com> Brian. Storage space should not be an issue. A typical dictionary , whether American (191,000) or British (280,000), with a median word length of about 8 chars, still only occupies a handful of MB of storage. Craig > On Mar 22, 2022, at 10:25 AM, Rick Harrison via use-livecode wrote: > > Yes, that is where I’m at. An existing database would make things a lot easier. > > Rick > >> On Mar 22, 2022, at 9:06 AM, Craig Newman via use-livecode wrote: >> >> If you have a database at all, it would cost nothing much in speed to just use the whole thing all the time. Put the database into an array, of the form: >> “cat 1” >> "chicken 2” >> “elephant 3” >> ‘miaou 1" >> … >> >> The hard part is finding that database. It would take quite a while to build and finalize your own. >> >> 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 bobsneidar at iotecdigital.com Tue Mar 22 18:36:05 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 22:36:05 +0000 Subject: Counting Syllables In-Reply-To: <6BC80A69-EAF5-4CC7-A035-CB92C81001B2@starfirelighting.com> References: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> <6BC80A69-EAF5-4CC7-A035-CB92C81001B2@starfirelighting.com> Message-ID: <0B96219D-941A-422B-B26D-99B76998120C@iotecdigital.com> That's because the British take 1.46 times as long as Americans to say anything. ;-) Bob S > On Mar 22, 2022, at 15:21 , Craig Newman via use-livecode wrote: > > Brian. > > Storage space should not be an issue. A typical dictionary , whether American (191,000) or British (280,000), with a median word length of about 8 chars, still only occupies a handful of MB of storage. > > Craig From matthias_livecode_150811 at m-r-d.de Tue Mar 22 19:06:59 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 23 Mar 2022 00:06:59 +0100 Subject: ExcelLib in a standalone In-Reply-To: References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> <59556FE7-9E9F-4AB1-89A8-01349F1E8FFD@iotecdigital.com> Message-ID: Bob, are you really sure that Java is used on Windows and not VisualBasicScript? Here my tests showed that Excel is definitely loaded. It was hidden on the desktop, but it was listed in TaskManager as a running process. > Am 22.03.2022 um 22:57 schrieb Bob Sneidar via use-livecode : > > On the Mac, the library uses Apple Events, and for that to work it has to launch Excel and open the spreadsheet. On Windows, it uses some kind of Java library, so does not need to open the file or the app, which means it runs much faster on Windows, quite the anomaly these days. :-) > > Bob S > > >> On Mar 22, 2022, at 14:40 , matthias rebbe via use-livecode wrote: >> >> Hm, >> i tried here and it works, but Excel is run/opened hidden. i needed to call XCEL_Application_Show to get Excel shown. >> >> Regards, >> Matthias >> >>> Am 22.03.2022 um 21:07 schrieb Bob Sneidar via use-livecode : >>> >>> The Excel_Lib file is at the same folder level as the application. In other words I can see Excel_Lib (and the other libraries) in the application folder. >>> >>> Bob S >>> >>> >>>> On Mar 22, 2022, at 12:20 , matthias rebbe via use-livecode wrote: >>>> >>>> Bob, >>>> >>>> how did you include the library? As a separate stack or integrated in the .exe? >>>> >>>> Regards, >>>> Matthias >>>> >>>>> Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode : >>>>> >>>>> Hi all. I'll try to make this as succinct as possible. >>>>> >>>>> 1. Excel_Lib works in MacOS IDE >>>>> 2. Excel_Lib works in MacOS Standalone >>>>> 3. Excel_Lib works in Windows 7 IDE >>>>> 4. Excel_Lib does NOT WORK in Windows 7 Standalone >>>>> 5. Excel_Lib works in Windows 10 IDE >>>>> 6. Excel_Lib does NOT WORK in Windows 10 standalone >>>>> >>>>> Is there something I am missing? I am not getting any alerts when it fails, it simply doesn't access the spreadsheet files and the data they contain. >>>>> >>>>> 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 >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode 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 Mar 22 19:14:15 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 23:14:15 +0000 Subject: ExcelLib in a standalone In-Reply-To: References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> <59556FE7-9E9F-4AB1-89A8-01349F1E8FFD@iotecdigital.com> Message-ID: Oh yes, that is what I read. Got my wires crossed. It's interesting that you found that Excel was running hidden. My hangups in the past may just have been that I was getting some kind of dialog but couldn't see it because the app was hidden. I say that because when I tried to shut down my Windows 7 VM earlier, it indicated that Excel was running, even though there was no visible window. Bob S > On Mar 22, 2022, at 16:06 , matthias rebbe via use-livecode wrote: > > Bob, > are you really sure that Java is used on Windows and not VisualBasicScript? > Here my tests showed that Excel is definitely loaded. It was hidden on the desktop, but it was listed in TaskManager as a running process. > > > > > From bobsneidar at iotecdigital.com Tue Mar 22 19:15:39 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 22 Mar 2022 23:15:39 +0000 Subject: ExcelLib in a standalone In-Reply-To: References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> <59556FE7-9E9F-4AB1-89A8-01349F1E8FFD@iotecdigital.com> Message-ID: <8B03B4A2-8A71-4B77-9B98-1C32EE2EC350@iotecdigital.com> That is to say, it IS Visual Basic doing the work. Bob S > On Mar 22, 2022, at 16:14 , Bob Sneidar wrote: > > Oh yes, that is what I read. Got my wires crossed. From matthias_livecode_150811 at m-r-d.de Wed Mar 23 03:40:20 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 23 Mar 2022 08:40:20 +0100 Subject: ExcelLib in a standalone In-Reply-To: References: <42E03054-A099-410C-A3F1-650348EBA758@iotecdigital.com> <4DBC92AE-F0C5-4A12-BD40-3465FB220C91@m-r-d.de> <59556FE7-9E9F-4AB1-89A8-01349F1E8FFD@iotecdigital.com> Message-ID: <02B0E6F8-55B3-4E23-9261-E278CD829677@m-r-d.de> > Am 23.03.2022 um 00:14 schrieb Bob Sneidar via use-livecode : > > Oh yes, that is what I read. Got my wires crossed. > > It's interesting that you found that Excel was running hidden. My hangups in the past may just have been that I was getting some kind of dialog but couldn't see it because the app was hidden. I say that because when I tried to shut down my Windows 7 VM earlier, it indicated that Excel was running, even though there was no visible window. > That's why i mentioned XCEL_Application_Show which shows the hidden Excel programm > Bob S > > >> On Mar 22, 2022, at 16:06 , matthias rebbe via use-livecode wrote: >> >> Bob, >> are you really sure that Java is used on Windows and not VisualBasicScript? >> Here my tests showed that Excel is definitely loaded. It was hidden on the desktop, but it was listed in TaskManager as a running process. >> >> >> >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dick.kriesel at mail.com Thu Mar 24 01:55:12 2022 From: dick.kriesel at mail.com (Dick Kriesel) Date: Wed, 23 Mar 2022 22:55:12 -0700 Subject: Counting Syllables In-Reply-To: References: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> Message-ID: <6A58C623-964B-4251-B02D-ED9C42871AE7@mail.com> > On Mar 22, 2022, at 7:25 AM, Rick Harrison via use-livecode wrote: > > An existing database would make things a lot easier. You could scrape an online dictionary to obtain the syllabification for each given word. For example, if you investigate https://www.dictionary.com/browse/syllabification , you can find the query that yielded "syl·lab·i·fi·ca·tion." You might find other dictionaries that make it easier. — Dick From andreas.bergendal at gmail.com Thu Mar 24 06:06:53 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Thu, 24 Mar 2022 11:06:53 +0100 Subject: Print to pdf fails on Windows with multiple pages Message-ID: <7D970986-5B0E-4FA2-89B5-B8B8626FFE68@gmail.com> Hi all, TL;DR: App/IDE crashes/fails when printing 30+ pages to single pdf, using Windows 10. Works fine on Mac. Windows memory issues? Long version: I have a stack/app where a crucial feature is printing to pdf. Om Mac (LC 9.6.6 or 9.6.7 rc1) this works flawlessly with 156 posts, resulting in a 312 page pdf file (around 4Mb): --- set the printScale to 0.714286 ## This matches the A4 proportion of the printed area set the printMargins to 0,0,0,0 open printing to pdf tFilename ## tFilename has been defined earlier in the process repeat for each line tLine in pKeyList ## pKeyList is a list of numerical keys fillFieldsWithData tLine ## This updates several fields on the card with new data from an array print card 1 from the topLeft of grc "page1" to the bottomRight of grc ”page1” ## An A4-shaped rect print break print card 1 from the topLeft of grc "page2" to the bottomRight of grc ”page2” ## An A4-shaped rect print break end repeat close printing ## (I also un/lock screen at appropriate places around this script, for speed) --- On Windows 10, which is what my client is using, this happens: - If run in the IDE, it sometimes manages to created the pdf, but usually fails (”printing failed” error), sometimes crashes LC silently - If run as standalone, it can create a pdf with max 15-20 posts (2x pages), but if I try more then it stalls and fails, or crashes. Another feature in the app is creating the 156 pdfs individually, and this works flawlessly also on Windows. So it’s creating the combined pdf that seems too taxing for poor old Windows, most of the time. The client needs both features to work. Is this ”memory exhaustion” (saw that term mentioned by LCMark in the Forum on a different pdf problem)? What can be done about it? Can I force Windows to dedicate more memory to my app? I’ve tried having the pdf created on C:, on a USB stick and in SharePoint (the client’s preferred destination), but all fail equally. Please advise! :) Best, Andreas From merakosp at gmail.com Thu Mar 24 07:18:01 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 24 Mar 2022 13:18:01 +0200 Subject: Print to pdf fails on Windows with multiple pages In-Reply-To: <7D970986-5B0E-4FA2-89B5-B8B8626FFE68@gmail.com> References: <7D970986-5B0E-4FA2-89B5-B8B8626FFE68@gmail.com> Message-ID: Hello Andreas, This sounds like this bug https://quality.livecode.com/show_bug.cgi?id=23088, which should be fixed in LC 9.6.6 RC-1 and newer. If this is not the case for you, could you attach a sample stack and the pdf to this report and reopen it? Or send it to me directly if they are confidential. Also, it might be worth checking with the 32bit version of LC for Windows Kind regards, Panos -- On Thu, 24 Mar 2022 at 12:08, Andreas Bergendal via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > TL;DR: > App/IDE crashes/fails when printing 30+ pages to single pdf, using Windows > 10. Works fine on Mac. Windows memory issues? > > > Long version: > I have a stack/app where a crucial feature is printing to pdf. > > Om Mac (LC 9.6.6 or 9.6.7 rc1) this works flawlessly with 156 posts, > resulting in a 312 page pdf file (around 4Mb): > > --- > set the printScale to 0.714286 ## This matches the A4 proportion of the > printed area > set the printMargins to 0,0,0,0 > > open printing to pdf tFilename ## tFilename has been defined earlier in > the process > > repeat for each line tLine in pKeyList ## pKeyList is a list of numerical > keys > fillFieldsWithData tLine ## This updates several fields on the card > with new data from an array > print card 1 from the topLeft of grc "page1" to the bottomRight of grc > ”page1” ## An A4-shaped rect > print break > print card 1 from the topLeft of grc "page2" to the bottomRight of grc > ”page2” ## An A4-shaped rect > print break > end repeat > > close printing ## (I also un/lock screen at appropriate places around this > script, for speed) > --- > > On Windows 10, which is what my client is using, this happens: > - If run in the IDE, it sometimes manages to created the pdf, but usually > fails (”printing failed” error), sometimes crashes LC silently > - If run as standalone, it can create a pdf with max 15-20 posts (2x > pages), but if I try more then it stalls and fails, or crashes. > > Another feature in the app is creating the 156 pdfs individually, and this > works flawlessly also on Windows. > So it’s creating the combined pdf that seems too taxing for poor old > Windows, most of the time. The client needs both features to work. > > Is this ”memory exhaustion” (saw that term mentioned by LCMark in the > Forum on a different pdf problem)? > > What can be done about it? Can I force Windows to dedicate more memory to > my app? > > I’ve tried having the pdf created on C:, on a USB stick and in SharePoint > (the client’s preferred destination), but all fail equally. > > Please advise! :) > > Best, > Andreas > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Mar 24 07:31:10 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 24 Mar 2022 12:31:10 +0100 Subject: playrate & templateimage Message-ID: <89EBED1C-B98E-4C1E-BB97-F2FD6AE094B8@major-k.de> Hi friends, LC never ceases to surprise me and I love that! 1. In earlier versions setting the "playrate" of a player object to a different value than 1 unfortunately also changed the PITCH of the sound/movie. Today I was delighted to find out that this is not the case anymore! PITCH does not change anymore when setting the PLAYRATE! Thanks for the hint, Frans! At least on a Mac. Is this also the case on Windows? When did this happen? And why didn't anybody tell me? :-D 2. The fact that we can also import/export snapshots from "the templateimage" also suprised me a lot earlier this week. A very handy feature, can make a lot of work unneccessary! Same from "the templateplayer" does not work however, but does not throw an error, just a small black image. Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From andreas.bergendal at gmail.com Thu Mar 24 09:13:04 2022 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Thu, 24 Mar 2022 14:13:04 +0100 Subject: Print to pdf fails on Windows with multiple pages Message-ID: <293C40B2-A79A-4C88-8ACE-5197FD13AD6A@gmail.com> Hi Panos, Interesting, I had not seen that bug report. Yes, it’s the same issue, and unfortunately it seems not fully solved in 9.6.x. I tried using 9.6.7 rc 2 Win 32bit and built both a 32bit and 64bit standalone, but neither did any better really. They can sometimes succeed on first run to create the full pdf, but after that it seems Windows calls it a day and refuses to repeat the effort. Since the stack/data is indeed confidential, I’ll make it available to you through other channels. Best, Andreas Panos wrote: > This sounds like this bug https://quality.livecode.com/show_bug.cgi?id=23088, > which should be fixed in LC 9.6.6 RC-1 and newer. > If this is not the case for you, could you attach a sample stack and the > pdf to this report and reopen it? Or send it to me directly if they are > confidential. Also, it might be worth checking with the 32bit version of LC > for Windows From harrison at all-auctions.com Thu Mar 24 09:34:47 2022 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 24 Mar 2022 09:34:47 -0400 Subject: Counting Syllables In-Reply-To: <6A58C623-964B-4251-B02D-ED9C42871AE7@mail.com> References: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> <6A58C623-964B-4251-B02D-ED9C42871AE7@mail.com> Message-ID: <6E78B3EC-AF4D-4D41-AA8D-94F0437AACE3@all-auctions.com> Yes, I’m looking into that. Web-scraping isn’t fun though, and it can be a lot of work. One also has to make sure it doesn’t violate company policies etc. I’m not a fan of getting sued. Rick > On Mar 24, 2022, at 1:55 AM, Dick Kriesel via use-livecode wrote: > > You could scrape an online dictionary to obtain the syllabification for each given word. > > For example, if you investigate https://www.dictionary.com/browse/syllabification >, you can find the query that yielded "syl·lab·i·fi·ca·tion." > > You might find other dictionaries that make it easier. > > — Dick From matthias_livecode_150811 at m-r-d.de Thu Mar 24 09:44:09 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 24 Mar 2022 14:44:09 +0100 Subject: Print to pdf fails on Windows with multiple pages In-Reply-To: References: <7D970986-5B0E-4FA2-89B5-B8B8626FFE68@gmail.com> Message-ID: I can replicate this here also with 10DP2. And have attached a sample stack so others could also test. But i could not attach the pdf. I am always getting this error here: "It looks like you didn't come from the right page (you have no valid token for the create_attachment action while processing the 'attachment.cgi' script). The reason could be one of: You clicked the "Back" button of your web browser after having successfully submitted changes, which is generally not a good idea (but harmless). You entered the URL in the address bar of your web browser directly, which should be safe. You clicked on a URL which redirected you here without your consent, in which case this action is much more critical. Are you sure you want to commit these changes anyway? This may result in unexpected and undesired results" So i uploaded it on my server and added a url to it. Regards, Matthias > Am 24.03.2022 um 12:18 schrieb panagiotis m via use-livecode : > > Hello Andreas, > > This sounds like this bug https://quality.livecode.com/show_bug.cgi?id=23088, > which should be fixed in LC 9.6.6 RC-1 and newer. > > If this is not the case for you, could you attach a sample stack and the > pdf to this report and reopen it? Or send it to me directly if they are > confidential. Also, it might be worth checking with the 32bit version of LC > for Windows > > Kind regards, > Panos > -- > >> .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 merakosp at gmail.com Thu Mar 24 09:54:54 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 24 Mar 2022 15:54:54 +0200 Subject: Print to pdf fails on Windows with multiple pages In-Reply-To: References: <7D970986-5B0E-4FA2-89B5-B8B8626FFE68@gmail.com> Message-ID: Hello all, Thank you for the update and the sample stack/files. I will reopen this bug report then, and we will investigate further. Kind regards, Panos -- On Thu, 24 Mar 2022 at 15:45, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > I can replicate this here also with 10DP2. > And have attached a sample stack so others could also test. > > But i could not attach the pdf. I am always getting this error here: > > "It looks like you didn't come from the right page (you have no valid > token for the create_attachment action while processing the > 'attachment.cgi' script). The reason could be one of: > You clicked the "Back" button of your web browser after having > successfully submitted changes, which is generally not a good idea (but > harmless). > You entered the URL in the address bar of your web browser directly, which > should be safe. > You clicked on a URL which redirected you here without your consent, in > which case this action is much more critical. > Are you sure you want to commit these changes anyway? This may result in > unexpected and undesired results" > > > So i uploaded it on my server and added a url to it. > > > Regards, > Matthias > > > > Am 24.03.2022 um 12:18 schrieb panagiotis m via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hello Andreas, > > > > This sounds like this bug > https://quality.livecode.com/show_bug.cgi?id=23088, > > which should be fixed in LC 9.6.6 RC-1 and newer. > > > > If this is not the case for you, could you attach a sample stack and the > > pdf to this report and reopen it? Or send it to me directly if they are > > confidential. Also, it might be worth checking with the 32bit version of > LC > > for Windows > > > > Kind regards, > > Panos > > -- > > > >> .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 rdimola at evergreeninfo.net Thu Mar 24 10:52:27 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 24 Mar 2022 10:52:27 -0400 Subject: LiveCode Server Shared Hosting Environment In-Reply-To: References: <7D970986-5B0E-4FA2-89B5-B8B8626FFE68@gmail.com> Message-ID: <003601d83f8e$ca946b60$5fbd4220$@net> Is there any way without root access to solve the problem of missing libraries preventing LiveCode server from running in a shared server environment? I'm getting this error when running the 9.6.6 64 bit server from the command line. ./livecode-server-pro: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by ./livecode-server-pro) ./livecode-server-pro: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by ./livecode-server-pro) ./livecode-server-pro: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./livecode-server-pro) Thanks in advance! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From panos.merakos at livecode.com Thu Mar 24 11:54:01 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 24 Mar 2022 17:54:01 +0200 Subject: [ANN] Release LC 10.0.0 DP-3 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 10.0.0 DP-3. You can find more details on the new features of this amazing release here: https://livecode.com/livecode-10-dp-3-release/ Enjoy! Kind regards The LiveCode Team -- From bobsneidar at iotecdigital.com Thu Mar 24 12:19:47 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 24 Mar 2022 16:19:47 +0000 Subject: playrate & templateimage In-Reply-To: <89EBED1C-B98E-4C1E-BB97-F2FD6AE094B8@major-k.de> References: <89EBED1C-B98E-4C1E-BB97-F2FD6AE094B8@major-k.de> Message-ID: <98AA88B5-7B42-4CB5-97E5-5A855D8B52DF@iotecdigital.com> Now THAT is interesting. I used to play guitar along with music in my iTunes. The problem is that recording studios used to alter the pitch of their songs (and so the time of the song) slightly, in order to get the songs to play within the limits imposed by Radio stations, and to get everything to fit onto an LP. (That was a vinyl disc that spun at 33 1/3 rotations per minute and a diamond stylus vibrated with the grooves on the LP, for those of you born after the 80's.) Even though these are not considerations anymore, recording studios STILL alter the pitch of songs slightly (not sure why) so each song I played along with I had to do a quick re-tune of the guitar! It was so frustrating I eventually just stopped doing that. I wonder if there is a way to change the PITCH without changing the PLAYRATE, or a way to still change both? Bob S > On Mar 24, 2022, at 04:31 , Klaus major-k via use-livecode wrote: > > Hi friends, > > LC never ceases to surprise me and I love that! > > 1. In earlier versions setting the "playrate" of a player object to a different value than 1 > unfortunately also changed the PITCH of the sound/movie. > > Today I was delighted to find out that this is not the case anymore! > PITCH does not change anymore when setting the PLAYRATE! > Thanks for the hint, Frans! > > At least on a Mac. Is this also the case on Windows? > > When did this happen? > And why didn't anybody tell me? :-D > > 2. The fact that we can also import/export snapshots from "the templateimage" > also suprised me a lot earlier this week. > A very handy feature, can make a lot of work unneccessary! > > Same from "the templateplayer" does not work however, but does not throw > an error, just a small black image. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 craig at starfirelighting.com Thu Mar 24 13:22:52 2022 From: craig at starfirelighting.com (Craig Newman) Date: Thu, 24 Mar 2022 13:22:52 -0400 Subject: Counting Syllables In-Reply-To: <6E78B3EC-AF4D-4D41-AA8D-94F0437AACE3@all-auctions.com> References: <424E7DDF-3491-4728-B8CE-CA3B14381D70@all-auctions.com> <1AA44D9B-6028-49CF-BE25-C75312E0F025@starfirelighting.com> <6A58C623-964B-4251-B02D-ED9C42871AE7@mail.com> <6E78B3EC-AF4D-4D41-AA8D-94F0437AACE3@all-auctions.com> Message-ID: <10313F3B-974F-495F-8220-68DCE9844712@starfirelighting.com> I am actually having trouble finding a dictionary “dump” that would provide a list of words along with a syllabic entry attached. If such a thing exists, we only need a dozen lines of code and ten minutes to create a database mapping each word to its syllable count. Anyone know of such a resource? Craig > On Mar 24, 2022, at 9:34 AM, Rick Harrison via use-livecode wrote: > > Yes, I’m looking into that. Web-scraping isn’t fun though, and it can be a lot of work. > One also has to make sure it doesn’t violate company policies etc. I’m not a fan > of getting sued. > > Rick > >> On Mar 24, 2022, at 1:55 AM, Dick Kriesel via use-livecode wrote: >> >> You could scrape an online dictionary to obtain the syllabification for each given word. >> >> For example, if you investigate https://www.dictionary.com/browse/syllabification >, you can find the query that yielded "syl·lab·i·fi·ca·tion." >> >> You might find other dictionaries that make it easier. >> >> — Dick > > _______________________________________________ > use-livecode mailing list > use-livecode 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 jerry at jhjensen.com Thu Mar 24 13:31:11 2022 From: jerry at jhjensen.com (Jerry Jensen) Date: Thu, 24 Mar 2022 10:31:11 -0700 Subject: playrate & templateimage In-Reply-To: <98AA88B5-7B42-4CB5-97E5-5A855D8B52DF@iotecdigital.com> References: <89EBED1C-B98E-4C1E-BB97-F2FD6AE094B8@major-k.de> <98AA88B5-7B42-4CB5-97E5-5A855D8B52DF@iotecdigital.com> Message-ID: Izotope > On Mar 24, 2022, at 9:19 AM, Bob Sneidar via use-livecode wrote: > > Now THAT is interesting. I used to play guitar along with music in my iTunes. The problem is that recording studios used to alter the pitch of their songs (and so the time of the song) slightly, in order to get the songs to play within the limits imposed by Radio stations, and to get everything to fit onto an LP. (That was a vinyl disc that spun at 33 1/3 rotations per minute and a diamond stylus vibrated with the grooves on the LP, for those of you born after the 80's.) > > Even though these are not considerations anymore, recording studios STILL alter the pitch of songs slightly (not sure why) so each song I played along with I had to do a quick re-tune of the guitar! It was so frustrating I eventually just stopped doing that. > > I wonder if there is a way to change the PITCH without changing the PLAYRATE, or a way to still change both? > > Bob S > > >> On Mar 24, 2022, at 04:31 , Klaus major-k via use-livecode wrote: >> >> Hi friends, >> >> LC never ceases to surprise me and I love that! >> >> 1. In earlier versions setting the "playrate" of a player object to a different value than 1 >> unfortunately also changed the PITCH of the sound/movie. >> >> Today I was delighted to find out that this is not the case anymore! >> PITCH does not change anymore when setting the PLAYRATE! >> Thanks for the hint, Frans! >> >> At least on a Mac. Is this also the case on Windows? >> >> When did this happen? >> And why didn't anybody tell me? :-D >> >> 2. The fact that we can also import/export snapshots from "the templateimage" >> also suprised me a lot earlier this week. >> A very handy feature, can make a lot of work unneccessary! >> >> Same from "the templateplayer" does not work however, but does not throw >> an error, just a small black image. >> >> >> Best >> >> Klaus >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> klaus at major-k.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 > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 Thu Mar 24 13:37:20 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 24 Mar 2022 18:37:20 +0100 Subject: playrate & templateimage In-Reply-To: References: <89EBED1C-B98E-4C1E-BB97-F2FD6AE094B8@major-k.de> <98AA88B5-7B42-4CB5-97E5-5A855D8B52DF@iotecdigital.com> Message-ID: <087C1E9F-75FA-45CA-8452-5B7E96A24B03@major-k.de> Am 24.03.2022 um 18:31 schrieb Jerry Jensen via use-livecode : > > Izotope Gesundheit! :-D >> On Mar 24, 2022, at 9:19 AM, Bob Sneidar via use-livecode wrote: >> >> Now THAT is interesting. I used to play guitar along with music in my iTunes. The problem is that recording studios used to alter the pitch of their songs (and so the time of the song) slightly, in order to get the songs to play within the limits imposed by Radio stations, and to get everything to fit onto an LP. (That was a vinyl disc that spun at 33 1/3 rotations per minute and a diamond stylus vibrated with the grooves on the LP, for those of you born after the 80's.) >> >> Even though these are not considerations anymore, recording studios STILL alter the pitch of songs slightly (not sure why) so each song I played along with I had to do a quick re-tune of the guitar! It was so frustrating I eventually just stopped doing that. >> >> I wonder if there is a way to change the PITCH without changing the PLAYRATE, or a way to still change both? >> >> Bob S >> >> >>> On Mar 24, 2022, at 04:31 , Klaus major-k via use-livecode wrote: >>> >>> Hi friends, >>> >>> LC never ceases to surprise me and I love that! >>> >>> 1. In earlier versions setting the "playrate" of a player object to a different value than 1 >>> unfortunately also changed the PITCH of the sound/movie. >>> >>> Today I was delighted to find out that this is not the case anymore! >>> PITCH does not change anymore when setting the PLAYRATE! >>> Thanks for the hint, Frans! >>> >>> At least on a Mac. Is this also the case on Windows? >>> >>> When did this happen? >>> And why didn't anybody tell me? :-D >>> >>> 2. The fact that we can also import/export snapshots from "the templateimage" >>> also suprised me a lot earlier this week. >>> A very handy feature, can make a lot of work unneccessary! >>> >>> Same from "the templateplayer" does not work however, but does not throw >>> an error, just a small black image. >>> >>> >>> Best >>> >>> Klaus >>> -- >>> Klaus Major >>> https://www.major-k.de >>> https://www.major-k.de/bass >>> klaus at major-k.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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode 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 -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Thu Mar 24 16:58:23 2022 From: klaus at major-k.de (Klaus major-k) Date: Thu, 24 Mar 2022 21:58:23 +0100 Subject: keyup not always working Message-ID: Hi, I have this in the card script to provide some shortcuts to a player object: ---------------------------------- on keyup tKey ## Have been bitten by this in the past :-D if the selectedfield <> EMPTY then pass keyup end if switch tKey ## This ALWAYS works: case SPACE set the paused of player 1 to NOT (the paused of player 1) check_time break ## This only works about one out of ten times? case "r" set the currenttime of player 1 to 0 check_time break default pass keyup break end switch end keyup --------------------------------------- So I added this as a workaround: ------------------------------------- on keydown tKey if the selectedfield <> EMPTY then pass keydown end if switch tKey ## This ALWAYS works! case "r" set the currenttime of player 1 to 0 check_time break default pass keydown break end switch end keydown -------------------------------------- Any idea why KEYUP does not work as exspected? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jerry at jhjensen.com Thu Mar 24 17:06:47 2022 From: jerry at jhjensen.com (Jerry Jensen) Date: Thu, 24 Mar 2022 14:06:47 -0700 Subject: playrate & templateimage In-Reply-To: <087C1E9F-75FA-45CA-8452-5B7E96A24B03@major-k.de> References: <89EBED1C-B98E-4C1E-BB97-F2FD6AE094B8@major-k.de> <98AA88B5-7B42-4CB5-97E5-5A855D8B52DF@iotecdigital.com> <087C1E9F-75FA-45CA-8452-5B7E96A24B03@major-k.de> Message-ID: <2A0C509A-3CC0-4D88-8787-D8A64A856EB8@jhjensen.com> > On Mar 24, 2022, at 10:37 AM, Klaus major-k via use-livecode wrote: > > Am 24.03.2022 um 18:31 schrieb Jerry Jensen via use-livecode : >> >> Izotope > > Gesundheit! :-D Ha! I last said Gesundheit after a dinner companion exclaimed about her salad: "Jicama!" >>> I wonder if there is a way to change the PITCH without changing the PLAYRATE, or a way to still change both? >>> >>> Bob S >>> From paul at researchware.com Thu Mar 24 17:07:41 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 24 Mar 2022 17:07:41 -0400 Subject: Weird Standalone Builder issue Message-ID: I'm on Windows 10, using LC 9.6.6, and building for macOS and Windows I have a folder called "Utilities" and in it I have the Windows version of an open source video utility called ffmpeg (specific file is just called "ffmpeg.exe". In the same "Utilities" folder, I have the macOS version of ffmpeg (called "ffmpeg" with no extension) In the standalone setting, under the Copy Files tab, I added the folder "Utilities" and then I build for macOS and Windows; Results: For Windows I get C:\Users\paul\Desktop\HR460-LC9xx\HyperRESEARCH\Windows\Utilities\ and in that folder I have BOTH "ffmpeg.exe" (windows version) AND "ffmpeg" (macOS version) as expected. I intent in the "on standaloneSaved" message to remove the one that is NOT for the target platform For macOS, there is weirdness, as I get C:\Users\paul\Desktop\HR460-LC9xx\HyperRESEARCH\MacOSX\HyperRESEARCH.app\Contents\MacOS\Utilities\ with "ffmpeg" (the macOS version) AND C:\Users\paul\Desktop\HR460-LC9xx\HyperRESEARCH\MacOSX\HyperRESEARCH.app\Contents\Resources\_MacOS\Utilities\ with "ffmpeg.exe" (the windows version) So, not what I expected? The Standalone Builder somehow places the macOS version of the utility in .app bundle in Contents\MacOS\Utilities\ and splits the Windows version out to the app bundle at Contents\Resources\_MacOS\Utilities\ How does it know that the file "ffmpeg" is a macOS compatible command line binary??? This is not a problem form me as I can use revDeleteFolder to remove Contents\Resources\_MacOS\Utilities\ on the mac build and revDeleteFile to remove "ffmepeg" from the Utilities folder on Windows and I am left with the right utility for the right platform. I could also just copy the utilities from the project folder each build during the "on standaloneSaved" message handler. I am mostly curious as to why the Standalone Builder splits the files/folder for macOS and leaves them together for Windows? From bobsneidar at iotecdigital.com Thu Mar 24 17:26:59 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 24 Mar 2022 21:26:59 +0000 Subject: keyup not always working In-Reply-To: References: Message-ID: <9B0C4C3E-604C-4B7E-BF3F-2AC24D3B870C@iotecdigital.com> I have also run into this. I use rawKeyDown though, that always seems to work. Have you tried rawKeyUp? Bob S > On Mar 24, 2022, at 13:58 , Klaus major-k via use-livecode wrote: > > Hi, > > I have this in the card script to provide some shortcuts to a player object: > ---------------------------------- > on keyup tKey > > ## Have been bitten by this in the past :-D > if the selectedfield <> EMPTY then > pass keyup > end if > switch tKey > > ## This ALWAYS works: > case SPACE > set the paused of player 1 to NOT (the paused of player 1) > check_time > break > > ## This only works about one out of ten times? > case "r" > set the currenttime of player 1 to 0 > check_time > break > default > pass keyup > break > end switch > end keyup > --------------------------------------- > So I added this as a workaround: > ------------------------------------- > on keydown tKey > if the selectedfield <> EMPTY then > pass keydown > end if > switch tKey > > ## This ALWAYS works! > case "r" > set the currenttime of player 1 to 0 > check_time > break > default > pass keydown > break > end switch > end keydown > -------------------------------------- > Any idea why KEYUP does not work as exspected? > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.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 neville.smythe at optusnet.com.au Thu Mar 24 23:45:12 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Fri, 25 Mar 2022 14:45:12 +1100 Subject: Plugin changes not saved In-Reply-To: References: Message-ID: <9E0D52FC-008F-4FB5-AD3E-B6AEEC2B4984@optusnet.com.au> I hadn’t realised that LC does not offer to save changes to plugin stacks when it quits. Foo! I have therefore updated nsPropertyMapper (version 3.6. Revision 9) in Sample Stacks so changes to favorites and settings will be available on the next launch, there wasn’t much point to the favorites feature if they weren’t being saved! There is also an update to nsScriptDatabase (version 1.3) Neville From klaus at major-k.de Fri Mar 25 04:36:13 2022 From: klaus at major-k.de (Klaus major-k) Date: Fri, 25 Mar 2022 09:36:13 +0100 Subject: keyup not always working In-Reply-To: <9B0C4C3E-604C-4B7E-BF3F-2AC24D3B870C@iotecdigital.com> References: <9B0C4C3E-604C-4B7E-BF3F-2AC24D3B870C@iotecdigital.com> Message-ID: <33DE0138-C496-42CF-841D-326445269CEC@major-k.de> Hi Bob, > Am 24.03.2022 um 22:26 schrieb Bob Sneidar via use-livecode : > > I have also run into this. I use rawKeyDown though, that always seems to work. Have you tried rawKeyUp? no, since keydown does work, but I will keep this in mind, thank you! > Bob S > > >> On Mar 24, 2022, at 13:58 , Klaus major-k via use-livecode wrote: >> >> Hi, >> >> I have this in the card script to provide some shortcuts to a player object: >> ---------------------------------- >> on keyup tKey >> >> ## Have been bitten by this in the past :-D >> if the selectedfield <> EMPTY then >> pass keyup >> end if >> switch tKey >> >> ## This ALWAYS works: >> case SPACE >> set the paused of player 1 to NOT (the paused of player 1) >> check_time >> break >> >> ## This only works about one out of ten times? >> case "r" >> set the currenttime of player 1 to 0 >> check_time >> break >> default >> pass keyup >> break >> end switch >> end keyup >> --------------------------------------- >> So I added this as a workaround: >> ------------------------------------- >> on keydown tKey >> if the selectedfield <> EMPTY then >> pass keydown >> end if >> switch tKey >> >> ## This ALWAYS works! >> case "r" >> set the currenttime of player 1 to 0 >> check_time >> break >> default >> pass keydown >> break >> end switch >> end keydown >> -------------------------------------- >> Any idea why KEYUP does not work as exspected? Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From mark at livecode.com Fri Mar 25 09:05:20 2022 From: mark at livecode.com (Mark Waddingham) Date: Fri, 25 Mar 2022 13:05:20 +0000 Subject: Weird Standalone Builder issue In-Reply-To: References: Message-ID: On 2022-03-24 21:07, Paul Dupuis via use-livecode wrote: > I'm on Windows 10, using LC 9.6.6, and building for macOS and Windows > ... > This is not a problem form me as I can use revDeleteFolder to remove > Contents\Resources\_MacOS\Utilities\ on the mac build and > revDeleteFile to remove "ffmepeg" from the Utilities folder on Windows > and I am left with the right utility for the right platform. I could > also just copy the utilities from the project folder each build during > the "on standaloneSaved" message handler. > > I am mostly curious as to why the Standalone Builder splits the > files/folder for macOS and leaves them together for Windows? So this is by design although its been so many years since this was done my memory is a little hazy! I think the evolution of this was as follows: - originally copy files were put next to the executable (i.e. Contents/MacOS on macOS) - Apple made that path read-only and things had to be put in .app/Contents/Resources - the s/b started doing that, but we added internal redirects to the low-level file functions in the engine so code wouldn't see a difference - Apple then made it so that Apple executables could not be launched from anywhere except from Contents/MacOS - so we made it so the s/b sniffed the header of all files copied for Mach-O files and left those in Contents/MacOS Basically, we've tried to make changes to Apple's structuring requirements transparent to developers all the way along - and its worked fine up until now, but admittedly looks a little strange if you dig around into things! I've been pondering whether we should ditch the mechanism soon though: - remove the magic redirection - require code to use specialFolderPath("resources") to find non-executable resources - require code to use (a new) specialFolderPath("executable resources") to find executable resources (which would only be different to the above on macOS systems) - keep the magic sniffing of files in the S/B so executables still go in Contents/MacOS This may break some really old code - but would remove some rather fiddly code in the engine which does the magical redirection - and mean things would be structured as expected (with the new definition of expected). FWIW, even with the above you would still have to branch code to do what you want as the macOS exes would be in a different place (because they need to be!) so it wouldn't resolve that - but at least you wouldn't have been 'surprised' by what you found! Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From paul at researchware.com Fri Mar 25 11:04:48 2022 From: paul at researchware.com (Paul Dupuis) Date: Fri, 25 Mar 2022 11:04:48 -0400 Subject: Weird Standalone Builder issue In-Reply-To: References: Message-ID: <23d36624-cd83-f8a0-7a55-140529db70f1@researchware.com> On 3/25/2022 9:05 AM, Mark Waddingham via use-livecode wrote: > On 2022-03-24 21:07, Paul Dupuis via use-livecode wrote: >> I'm on Windows 10, using LC 9.6.6, and building for macOS and Windows >> ... >> This is not a problem form me as I can use revDeleteFolder to remove >> Contents\Resources\_MacOS\Utilities\ on the mac build and >> revDeleteFile to remove "ffmepeg" from the Utilities folder on Windows >> and I am left with the right utility for the right platform. I could >> also just copy the utilities from the project folder each build during >> the "on standaloneSaved" message handler. >> >> I am mostly curious as to why the Standalone Builder splits the >> files/folder for macOS and leaves them together for Windows? > > So this is by design although its been so many years since this was > done my memory is a little hazy! > > I think the evolution of this was as follows: >    - originally copy files were put next to the executable (i.e. > Contents/MacOS on macOS) >    - Apple made that path read-only and things had to be put in > .app/Contents/Resources >    - the s/b started doing that, but we added internal redirects to > the low-level file functions in the engine so code wouldn't see a > difference >    - Apple then made it so that Apple executables could not be > launched from anywhere except from Contents/MacOS >    - so we made it so the s/b sniffed the header of all files copied > for Mach-O files and left those in Contents/MacOS > > Basically, we've tried to make changes to Apple's structuring > requirements transparent to developers all the way along - and its > worked fine up until now, but admittedly looks a little strange if you > dig around into things! > > I've been pondering whether we should ditch the mechanism soon though: > >    - remove the magic redirection >    - require code to use specialFolderPath("resources") to find > non-executable resources >    - require code to use (a new) specialFolderPath("executable > resources") to find executable resources (which would only be > different to the above on macOS systems) >    - keep the magic sniffing of files in the S/B so executables still > go in Contents/MacOS > > This may break some really old code - but would remove some rather > fiddly code in the engine which does the magical redirection - and > mean things would be structured as expected (with the new definition > of expected). > > FWIW, even with the above you would still have to branch code to do > what you want as the macOS exes would be in a different place (because > they need to be!) so it wouldn't resolve that - but at least you > wouldn't have been 'surprised' by what you found! > > Warmest Regards, > > Mark. > Mark, Thank you! Now that you mention it, I do seem to remember a period of time when Apple seem to keep changing it's mind on where stuff was supposed to be located. With Apple's drive towards sandboxing and extensive permissioning system, I expect that keeping up with it, while trying to keep it as simple as possible for LiveCode developers, will be an ongoing headache for all of you in Scotland! I DO appreciate the explanation! -- Paul. From martyknappster at gmail.com Fri Mar 25 14:49:55 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Fri, 25 Mar 2022 11:49:55 -0700 Subject: More code signing woes... Message-ID: <34EA7270-9D26-436F-89C6-77B14D587251@gmail.com> This involves the Levure framework and the Sparkle update feature. I would post my question in the forums where Levure is discussed but I am unable to login and LC has not been able to fix the issue yet. Thought I'd post here hoping someone else has run across this. One reason I use Levure is the capability to use the Sparkle update framework for getting the latest version to my customers. It's been working great. I just built a new version of my app with LC 9.6.6. I use AppWrapper to codesign and it also builds a DMG file and uploads to Apple to notarize. Apple accepts and all is good. With this latest build, people who download via a browser link have no issue. But for some who try to update from the current install (via Sparkle), it goes through the process of downloading but when they choose to "Install and Relaunch" it silently fails - the app quits but does not relaunch and is not updated. Others get an error 3001 - the update is "improperly signed" - but it's just a zipped copy of the app Apple accepted. I can download that same file in a browser and it works fine. So lots of unhappy campers… --- Marty Knapp From paul at researchware.com Sat Mar 26 11:26:37 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 26 Mar 2022 11:26:37 -0400 Subject: IDE bait and switch ;-) Message-ID: <29e7f95a-bace-8205-470f-d31def186882@researchware.com> So I was doing some coding today and in the IDE as you type a keyword, the syntax options popup. You can arrow down to the one you want and press tab to have the code template for the syntax filled in. I was typing a 'repeat for each..." loop when I notices the popup list of syntax options had a "... with index"! WOW, I thought, some new syntax was added to included an automatic counter variable with a 'for each' loop. This is great! I could really use a syntax like "repeat for each line tLine in container with index" where "index" gets auto incremented for each loop. I immediately opened the dictionary (LC 9.6.6) to check the syntax and usage and was surprised to find NO reference to the "with index" (apparent) syntax. Well, okay, sometime the Dictionary fails to get updated with the latest stuff, so I'll go back to the IDE and just try it! So I pick that syntax options and I get: put 0 into tIndex repeat for each line tLine in container   add 1 to tIndex   -- code end repeat Which, of course, is how we all do it. While it is nice the IDE syntax feature kindly placed this whole code snippet, I feel like a "Bait and Switch" was just pulled on me! An now I really want LC, Ltd. to add a "with tIndex" syntax to the repeat for each loop structure! From jacque at hyperactivesw.com Sat Mar 26 15:40:28 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 26 Mar 2022 14:40:28 -0500 Subject: IDE bait and switch ;-) In-Reply-To: <29e7f95a-bace-8205-470f-d31def186882@researchware.com> References: <29e7f95a-bace-8205-470f-d31def186882@researchware.com> Message-ID: On 3/26/22 10:26 AM, Paul Dupuis via use-livecode wrote: > An now I really want LC, Ltd. to add a "with tIndex" syntax to the repeat for each loop structure! That would be awesome. Feature request, maybe? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rdimola at evergreeninfo.net Sat Mar 26 20:52:33 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 26 Mar 2022 20:52:33 -0400 Subject: IDE bait and switch ;-) In-Reply-To: References: <29e7f95a-bace-8205-470f-d31def186882@researchware.com> Message-ID: <001f01d84174$f4c40b10$de4c2130$@net> I've wanted it since I started using LC with the loop by chunks(lines/items) concept. It's full form should also have start and increment. Repeat for each line tLine in MyVar index tIdxVar start 1 increment 2. This would be such a coding time saver and make for cleaner code. Doing the initialize and increment in C would be much faster than LCS. Anything to speed up loops would be helpful. 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 J. Landman Gay via use-livecode Sent: Saturday, March 26, 2022 3:40 PM To: How to use LiveCode Cc: J. Landman Gay Subject: Re: IDE bait and switch ;-) On 3/26/22 10:26 AM, Paul Dupuis via use-livecode wrote: > An now I really want LC, Ltd. to add a "with tIndex" syntax to the repeat for each loop structure! That would be awesome. Feature request, maybe? -- 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 klaus at major-k.de Sun Mar 27 04:33:14 2022 From: klaus at major-k.de (Klaus major-k) Date: Sun, 27 Mar 2022 10:33:14 +0200 Subject: playrate & templateimage In-Reply-To: <89EBED1C-B98E-4C1E-BB97-F2FD6AE094B8@major-k.de> References: <89EBED1C-B98E-4C1E-BB97-F2FD6AE094B8@major-k.de> Message-ID: <6896D913-26E1-4B2D-A596-601F610B6857@major-k.de> Hi all, > Am 24.03.2022 um 12:31 schrieb Klaus major-k via use-livecode : > > Hi friends, > > LC never ceases to surprise me and I love that! > > 1. In earlier versions setting the "playrate" of a player object to a different value than 1 > unfortunately also changed the PITCH of the sound/movie. > > Today I was delighted to find out that this is not the case anymore! > PITCH does not change anymore when setting the PLAYRATE! > Thanks for the hint, Frans! > > At least on a Mac. Is this also the case on Windows? could someone please test it and report here? Thank you! > When did this happen? > ... Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From paul at researchware.com Sun Mar 27 10:18:07 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 27 Mar 2022 10:18:07 -0400 Subject: tags in menus other than Pulldown (menubar) menus Message-ID: <625a4c89-ff97-2793-ca87-3418d4ce2c4f@researchware.com> Here is another LC wish list for practical reasons: I with that the menu item format for "regular" (pulldown/menubar) menus of: []