From matthias_livecode_150811 at m-r-d.de Sun Nov 1 12:09:51 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 1 Nov 2020 18:09:51 +0100 Subject: Need to track click on a MacStatusMenu without menu items Message-ID: <0B8ADAAE-5EAE-40CB-A871-A05E5625E907@m-r-d.de> Hi i am currently working on a Mac OS app which makes use of the MacStatusMenu Library. Now i need a way to track a click on a Mac Status Menu icon which does not have any menu items. Is this somehow possible? Currently i am only able to track the click of a menu item of a Mac Status Menu. But if no menu item is set and i click directly on the status menu icon, i do not get anything back. Any ideas? Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code From monte at appisle.net Mon Nov 2 04:07:50 2020 From: monte at appisle.net (Monte Goulding) Date: Mon, 2 Nov 2020 20:07:50 +1100 Subject: Need to track click on a MacStatusMenu without menu items In-Reply-To: <0B8ADAAE-5EAE-40CB-A871-A05E5625E907@m-r-d.de> References: <0B8ADAAE-5EAE-40CB-A871-A05E5625E907@m-r-d.de> Message-ID: <4FFEB848-C708-42D8-9A16-7C8EBB224D43@appisle.net> Hi Matthias It would be possible to add to the library I think. Should just be a matter of setting an action which posts a callback on the button of the NSStatusItem. If you want to have a play the library is open source ;-) Cheers Monte > On 2 Nov 2020, at 4:09 am, matthias rebbe via use-livecode wrote: > > Hi > > i am currently working on a Mac OS app which makes use of the MacStatusMenu Library. > Now i need a way to track a click on a Mac Status Menu icon which does not have any menu items. > > Is this somehow possible? > > Currently i am only able to track the click of a menu item of a Mac Status Menu. > But if no menu item is set and i click directly on the status menu icon, i do not get anything back. > > Any ideas? > > Regards, > Matthias > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Mon Nov 2 04:26:53 2020 From: monte at appisle.net (Monte Goulding) Date: Mon, 2 Nov 2020 20:26:53 +1100 Subject: mergeJSON on server problem In-Reply-To: <30162a76-9166-4d35-84b8-2a1758559a5b@Spark> References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <0a6bce62-55b8-a70c-4ed8-fbae761780d7@sonic.net> <30162a76-9166-4d35-84b8-2a1758559a5b@Spark> Message-ID: > On 1 Nov 2020, at 6:21 am, David Bovill via use-livecode wrote: > > Thanks Mark - I may give fastjson a go. > > I tracked down the problem to the "\u00a0? unicode character in the json I fetched, which was causing mergeJSON to fail. This hack fixed the issue in a temporary way. > replace "\u00a0? with empty in episodeJson -- hack to remove "?" > > Any thoughts on safe encoding of data I fetch fro jsonrpc calls so that it plays nicely with Livecode? Hi David The following seems to work without error: put format("[ \"\\u00a0\" ]") into tJSON; get JSONToArray(tJSON); put tJSON && it[1] Cheers Monte From matthias_livecode_150811 at m-r-d.de Mon Nov 2 07:03:02 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 2 Nov 2020 13:03:02 +0100 Subject: Need to track click on a MacStatusMenu without menu items In-Reply-To: <4FFEB848-C708-42D8-9A16-7C8EBB224D43@appisle.net> References: <0B8ADAAE-5EAE-40CB-A871-A05E5625E907@m-r-d.de> <4FFEB848-C708-42D8-9A16-7C8EBB224D43@appisle.net> Message-ID: <5868655A-470A-4DBD-975C-3DB94A7A9E44@m-r-d.de> Hi Monte, thanks for responding and assuming that it might be possible with adjustments to the source code. Regarding Livecode Builder, i am afraid i am a hopeless case. ;) Tried so many times to follow the widget course and other resources, but it seems i will never understand that stuff completely. I was even able to adjust the source code of the clock widget to disable the day/night color switch. But as soon as ObjectC is involved i am lost. Anyway, one doesn't have to be able to do everything. Hey, i am very good in making fresh pasta. Okay that doesn't help me here. ;) All the best, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 02.11.2020 um 10:07 schrieb Monte Goulding via use-livecode : > > Hi Matthias > > It would be possible to add to the library I think. Should just be a matter of setting an action which posts a callback on the button of the NSStatusItem. If you want to have a play the library is open source ;-) > > Cheers > > Monte > >> On 2 Nov 2020, at 4:09 am, matthias rebbe via use-livecode wrote: >> >> Hi >> >> i am currently working on a Mac OS app which makes use of the MacStatusMenu Library. >> Now i need a way to track a click on a Mac Status Menu icon which does not have any menu items. >> >> Is this somehow possible? >> >> Currently i am only able to track the click of a menu item of a Mac Status Menu. >> But if no menu item is set and i click directly on the status menu icon, i do not get anything back. >> >> Any ideas? >> >> Regards, >> Matthias >> >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 2 09:40:39 2020 From: marksmithhfx at gmail.com (Mark Smith) Date: Mon, 2 Nov 2020 14:40:39 +0000 Subject: Need to track click on a MacStatusMenu without menu items In-Reply-To: <5868655A-470A-4DBD-975C-3DB94A7A9E44@m-r-d.de> References: <0B8ADAAE-5EAE-40CB-A871-A05E5625E907@m-r-d.de> <4FFEB848-C708-42D8-9A16-7C8EBB224D43@appisle.net> <5868655A-470A-4DBD-975C-3DB94A7A9E44@m-r-d.de> Message-ID: <681A4933-2D13-43CF-8B37-437C7F71948C@gmail.com> Can I just add, that ?fresh pasta? comment made my day :) Thank you > On Nov 2, 2020, at 12:03 PM, matthias rebbe via use-livecode wrote: > > Hi Monte, > > thanks for responding and assuming that it might be possible with adjustments to the source code. > > Regarding Livecode Builder, i am afraid i am a hopeless case. ;) > Tried so many times to follow the widget course and other resources, but it seems i will never understand that stuff completely. I was even able to adjust the source code of the clock widget to disable the day/night color switch. But as soon as ObjectC is involved i am lost. > > Anyway, one doesn't have to be able to do everything. > Hey, i am very good in making fresh pasta. Okay that doesn't help me here. ;) > > > All the best, > Matthias > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 02.11.2020 um 10:07 schrieb Monte Goulding via use-livecode : >> >> Hi Matthias >> >> It would be possible to add to the library I think. Should just be a matter of setting an action which posts a callback on the button of the NSStatusItem. If you want to have a play the library is open source ;-) >> >> Cheers >> >> Monte >> >>> On 2 Nov 2020, at 4:09 am, matthias rebbe via use-livecode wrote: >>> >>> Hi >>> >>> i am currently working on a Mac OS app which makes use of the MacStatusMenu Library. >>> Now i need a way to track a click on a Mac Status Menu icon which does not have any menu items. >>> >>> Is this somehow possible? >>> >>> Currently i am only able to track the click of a menu item of a Mac Status Menu. >>> But if no menu item is set and i click directly on the status menu icon, i do not get anything back. >>> >>> Any ideas? >>> >>> Regards, >>> Matthias >>> >>> >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Nov 2 10:30:06 2020 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 2 Nov 2020 15:30:06 +0000 Subject: Audio recording in LC community on Windows? Message-ID: <3AA774A1-AB4D-4997-B427-06371CC07348@byu.edu> HI all, From the beginning of Rev/LC we could do basic audio recording cross platform, at least on Mac and Windows, using the QuickTime framework. QT went away a few years ago, and it took some time for that capability to be restored. On Mac we can do it in all LC editions, including Community, using mergMicrophone. However the mergMicrophone external is not available on Windows. Now you can do audio recording on Windows using camera controls, *but only in Indy and above*. In other words, unless I have missed something, Windows Community users have lost this functionality. There is no longer feature parity between Mac and Windows on Community. That?s a problem for me in teaching LiveCode in my college level courses. (Linux users, I?m not trying to ignore you here; I just don?t have a firm grasp on what?s possible on Linux.) So my questions: - Is there a way to do audio recording in LC Community on Windows that I?m not aware of? - If not, should I approach the mother ship and request that we get feature parity on all the desktop platforms? Thanks all. I look forward to hearing your ideas. Devin Devin Asay Director Office of Digital Humanities Brigham Young University From stephen at barncard.com Mon Nov 2 10:44:19 2020 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 2 Nov 2020 07:44:19 -0800 Subject: Need to track click on a MacStatusMenu without menu items In-Reply-To: <681A4933-2D13-43CF-8B37-437C7F71948C@gmail.com> References: <0B8ADAAE-5EAE-40CB-A871-A05E5625E907@m-r-d.de> <4FFEB848-C708-42D8-9A16-7C8EBB224D43@appisle.net> <5868655A-470A-4DBD-975C-3DB94A7A9E44@m-r-d.de> <681A4933-2D13-43CF-8B37-437C7F71948C@gmail.com> Message-ID: That is absolutely the proper metaphor. We just want to make good pasta, we don?t want to deal with other languages. It?s enough of an alphabet soup with web stuff. On Mon, Nov 2, 2020 at 06:41 Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Can I just add, that ?fresh pasta? comment made my day :) > > Thank you > > > On Nov 2, 2020, at 12:03 PM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Monte, > > > > thanks for responding and assuming that it might be possible with > adjustments to the source code. > > > > Regarding Livecode Builder, i am afraid i am a hopeless case. ;) > > Tried so many times to follow the widget course and other resources, but > it seems i will never understand that stuff completely. I was even able to > adjust the source code of the clock widget to disable the day/night color > switch. But as soon as ObjectC is involved i am lost. > > > > Anyway, one doesn't have to be able to do everything. > > Hey, i am very good in making fresh pasta. Okay that doesn't help me > here. ;) > > > > > > All the best, > > Matthias > > > > - > > Matthias Rebbe > > Life Is Too Short For Boring Code > > > >> Am 02.11.2020 um 10:07 schrieb Monte Goulding via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Hi Matthias > >> > >> It would be possible to add to the library I think. Should just be a > matter of setting an action which posts a callback on the button of the > NSStatusItem. If you want to have a play the library is open source ;-) > >> > >> Cheers > >> > >> Monte > >> > >>> On 2 Nov 2020, at 4:09 am, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Hi > >>> > >>> i am currently working on a Mac OS app which makes use of the > MacStatusMenu Library. > >>> Now i need a way to track a click on a Mac Status Menu icon which does > not have any menu items. > >>> > >>> Is this somehow possible? > >>> > >>> Currently i am only able to track the click of a menu item of a Mac > Status Menu. > >>> But if no menu item is set and i click directly on the status menu > icon, i do not get anything back. > >>> > >>> Any ideas? > >>> > >>> Regards, > >>> Matthias > >>> > >>> > >>> > >>> - > >>> Matthias Rebbe > >>> Life Is Too Short For Boring Code > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 matthias_livecode_150811 at m-r-d.de Mon Nov 2 11:37:54 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 2 Nov 2020 17:37:54 +0100 Subject: Updated NotarizeHelperStack now with entitlements support Message-ID: <93EA8482-D26A-4D70-AD3E-BD84B0BC76EA@m-r-d.de> Hi, just a quick note that i've upgraded the NotarizeHelperStack in the Livecode lesson https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore The stack now allows to add entitlements for code signing an app. And i added Xcode 11 support for fetching the ASC provider. Hope this is of any help for the one or other. Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code From rdimola at evergreeninfo.net Mon Nov 2 12:19:50 2020 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 2 Nov 2020 12:19:50 -0500 Subject: Need to track click on a MacStatusMenu without menu items In-Reply-To: References: <0B8ADAAE-5EAE-40CB-A871-A05E5625E907@m-r-d.de> <4FFEB848-C708-42D8-9A16-7C8EBB224D43@appisle.net> <5868655A-470A-4DBD-975C-3DB94A7A9E44@m-r-d.de> <681A4933-2D13-43CF-8B37-437C7F71948C@gmail.com> Message-ID: <005601d6b13c$62a06040$27e120c0$@net> As it is the pasta has several seasonings. 1) SQL 2)Regex. If you do any web stuff add the alphabet soup of html and JavaScript. Add the side dishes of lists, xml, json and you can see why this old brain did not have the pallet for any of the "C"s , "Java" or "php" grains that I would have to process in to pasta. 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 Stephen Barncard via use-livecode Sent: Monday, November 02, 2020 10:44 AM To: How to use LiveCode Cc: Stephen Barncard Subject: Re: Need to track click on a MacStatusMenu without menu items That is absolutely the proper metaphor. We just want to make good pasta, we don?t want to deal with other languages. It?s enough of an alphabet soup with web stuff. On Mon, Nov 2, 2020 at 06:41 Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Can I just add, that ?fresh pasta? comment made my day :) > > Thank you > > > On Nov 2, 2020, at 12:03 PM, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Monte, > > > > thanks for responding and assuming that it might be possible with > adjustments to the source code. > > > > Regarding Livecode Builder, i am afraid i am a hopeless case. ;) > > Tried so many times to follow the widget course and other resources, > > but > it seems i will never understand that stuff completely. I was even > able to adjust the source code of the clock widget to disable the > day/night color switch. But as soon as ObjectC is involved i am lost. > > > > Anyway, one doesn't have to be able to do everything. > > Hey, i am very good in making fresh pasta. Okay that doesn't help me > here. ;) > > > > > > All the best, > > Matthias > > > > - > > Matthias Rebbe > > Life Is Too Short For Boring Code > > > >> Am 02.11.2020 um 10:07 schrieb Monte Goulding via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Hi Matthias > >> > >> It would be possible to add to the library I think. Should just be > >> a > matter of setting an action which posts a callback on the button of > the NSStatusItem. If you want to have a play the library is open > source ;-) > >> > >> Cheers > >> > >> Monte > >> > >>> On 2 Nov 2020, at 4:09 am, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> Hi > >>> > >>> i am currently working on a Mac OS app which makes use of the > MacStatusMenu Library. > >>> Now i need a way to track a click on a Mac Status Menu icon which > >>> does > not have any menu items. > >>> > >>> Is this somehow possible? > >>> > >>> Currently i am only able to track the click of a menu item of a > >>> Mac > Status Menu. > >>> But if no menu item is set and i click directly on the status menu > icon, i do not get anything back. > >>> > >>> Any ideas? > >>> > >>> Regards, > >>> Matthias > >>> > >>> > >>> > >>> - > >>> Matthias Rebbe > >>> Life Is Too Short For Boring Code > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 _______________________________________________ use-livecode mailing list use-livecode at 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 Mon Nov 2 12:53:05 2020 From: mkoob at rogers.com (Martin Koob) Date: Mon, 2 Nov 2020 12:53:05 -0500 Subject: Updated NotarizeHelperStack now with entitlements support In-Reply-To: <93EA8482-D26A-4D70-AD3E-BD84B0BC76EA@m-r-d.de> References: <93EA8482-D26A-4D70-AD3E-BD84B0BC76EA@m-r-d.de> Message-ID: Hi Matthias Thanks so much for keeping this great tool updated. I will be needing this in a day or so. Best regards, Martin Koob > On Nov 2, 2020, at 11:37 AM, matthias rebbe via use-livecode wrote: > > Hi, > > just a quick note that i've upgraded the NotarizeHelperStack in the Livecode lesson > https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore > > The stack now allows to add entitlements for code signing an app. > And i added Xcode 11 support for fetching the ASC provider. > > Hope this is of any help for the one or other. > > Regards, > > Matthias > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Mon Nov 2 12:59:19 2020 From: livfoss at mac.com (Graham Samuel) Date: Mon, 2 Nov 2020 18:59:19 +0100 Subject: Ideas on iOS GPS tracking needed Message-ID: <6C855814-1850-4975-B185-1731EFCD6DA2@mac.com> Sorry this is a bit long. For a long time I?ve been tinkering with an app that uses the GPS on iPhones to show how far ?as the crow flies? the user is from some base point, which is set before the journey starts. It?s intended for walkers and cyclists, and I was using a beta version in the first French lockdown, which forbade one walking more than 1km from one?s house. I put the completion of this aside, but now we?re in the second French lockdown and it looks worth finishing - but I have some issues which I believe are not just down to my bad coding (though of course that?s more than possible), and I wonder if anyone else has thought about this stuff. The basic idea is extremely simple, as you can imagine, and it wasn?t hard to code. The app keeps working out the point-to-point distance from the base and tests it against the permitted limit. If the limit is exceeded, it sounds an alarm. If the user goes back within the limit, the alarm stops. Everything else is just cosmetic, really. The issue I have is that in every journey of say 40 minutes to an hour, the iPhone appears to generate a few ?bad? GPS readings. When I say bad, I mean way beyond the published accuracy of the GPS (which varies up to about 70m). Sometimes the GPS wants to tell me that I?ve walked half a kilometer in three seconds! I have analysed a lot of data (.gpx files) from other apps for walkers, drivers and cyclists and I don?t see such glaring anomalies; and using such apps on my main test phone (an iPhone X), I don?t see these strange readings affecting the data. Assuming this isn?t just a stupid coding error on my part (OK, a risky assumption), I need to find a solution, either by increasing the accuracy of the readings, or by finding the anomalies as they occur and eliminating them. I know no way of doing the first, and although I have ideas for the second (check apparent speed, for example), none seems foolproof. As the app works in real time, a retroactive curve-fitting solution is no good for me, even if my maths was up to coding it (Kalman filter, anyone?). Has anyone tried anything like this, and if so, did you find any anomalies in the data, and how did you cope with them? I?d be grateful for any ideas. Graham From tore.nilsen at me.com Mon Nov 2 13:00:23 2020 From: tore.nilsen at me.com (Tore Nilsen) Date: Mon, 2 Nov 2020 19:00:23 +0100 Subject: Audio recording in LC community on Windows? In-Reply-To: <3AA774A1-AB4D-4997-B427-06371CC07348@byu.edu> References: <3AA774A1-AB4D-4997-B427-06371CC07348@byu.edu> Message-ID: Feature parity between Mac and Windows is a necessity for me as well. I teach at an upper secondary school (high school) in Norway, and we are obliged to use software that supports both platforms, as students bring their own computers and should not be required to install two OS-es to do their work. I think a request for feature parity would be in its place. Best regards Tore Nilsen > 2. nov. 2020 kl. 16:30 skrev Devin Asay via use-livecode : > > HI all, > > From the beginning of Rev/LC we could do basic audio recording cross platform, at least on Mac and Windows, using the QuickTime framework. QT went away a few years ago, and it took some time for that capability to be restored. On Mac we can do it in all LC editions, including Community, using mergMicrophone. However the mergMicrophone external is not available on Windows. Now you can do audio recording on Windows using camera controls, *but only in Indy and above*. In other words, unless I have missed something, Windows Community users have lost this functionality. There is no longer feature parity between Mac and Windows on Community. That?s a problem for me in teaching LiveCode in my college level courses. (Linux users, I?m not trying to ignore you here; I just don?t have a firm grasp on what?s possible on Linux.) > > So my questions: > > - Is there a way to do audio recording in LC Community on Windows that I?m not aware of? > > - If not, should I approach the mother ship and request that we get feature parity on all the desktop platforms? > > Thanks all. I look forward to hearing your ideas. > > Devin > > > Devin Asay > Director > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Nov 2 14:06:45 2020 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 2 Nov 2020 21:06:45 +0200 Subject: [ANN] This Week in LiveCode 243 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #243 here: https://bit.ly/2HY64Jp This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to your e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From iphonelagi at gmail.com Mon Nov 2 14:30:17 2020 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 2 Nov 2020 19:30:17 +0000 Subject: IOS Screen resizing /EXACT FIT not working as before Message-ID: Hi, On an IOS app we have been using the setfullscreenmode of stack "XYZ" to exactfit. Although it isn't perfect in the sense it doesn't try to use the "notch" it has been working well. We have compiled with the latest livecode stable and the latest XCODE and now the there is a greater margin on either side and the top (especially on the iphone plus) We did notice this happened randomly and very very rarely on the previous version of xcode and the previous stable livecode but it wasn't a "HARD" error and not on everybody's IPHONE 8 plus Anybody have any ideas the best way to make the App resize well on all the new ones? The dimensions of the stack are 414 by 736 (the logical resolution of the iphone 8 plus) . To date it has scaled pretty well down and up but now on the iphone we have more of it is not scaling up properly. Any suggestions for making this work SIMPLY ie we don't need it to bother too much about the notch as long as it uses as much real estate for the different sizes. The App looked fine on the X as well even if it didn't go right down to the bottom. I am not one to follow the latesdFads ghis is a business program so there is no dark mode or other stupid ideas to make people upgrade for no reason other than its different. Any ideas or help appreciated. Lagi -- KIndest Regards Lagi From jacque at hyperactivesw.com Mon Nov 2 15:52:27 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 2 Nov 2020 14:52:27 -0600 Subject: IOS Screen resizing /EXACT FIT not working as before In-Reply-To: References: Message-ID: <3d5cf69d-8400-3a64-70c7-4139a678e7d9@hyperactivesw.com> Try fullscreenMode "showAll" or "noBorder". I generally use showAll. There will be black bars at the sides or top/bottom on some devices depending on which mode you choose but the advantage is that it retains the stack ratio. At least one dimension will always fit. You can obscure the black bars by setting the backcolor of the stack to a matching or complimentary color. The unused areas will fill with that color instead of showing black. On 11/2/20 1:30 PM, Lagi Pittas via use-livecode wrote: > Hi, > > On an IOS app we have been using the > > setfullscreenmode of stack "XYZ" to exactfit. > > Although it isn't perfect in the sense it doesn't try to use the "notch" it > has been working well. > > We have compiled with the latest livecode stable and the latest XCODE and > now the there is > a greater margin on either side and the top (especially on the iphone plus) > > We did notice this happened randomly and very very rarely on the previous > version of xcode and the previous stable livecode but it > wasn't a "HARD" error and not on everybody's IPHONE 8 plus > > Anybody have any ideas the best way to make the App resize well on all the > new ones? > > The dimensions of the stack are 414 by 736 (the logical resolution of the > iphone 8 plus) . > > To date it has scaled pretty well down and up but now on the iphone we have > more of it is not scaling up properly. > > Any suggestions for making this work SIMPLY ie we don't need it to bother > too much about the notch as long as it uses as much > real estate for the different sizes. The App looked fine on the X as well > even if it didn't go right down to the bottom. > > I am not one to follow the latesdFads ghis is a business program so there > is no dark mode or other stupid ideas to make > people upgrade for no reason other than its different. > > Any ideas or help appreciated. > > > Lagi > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Mon Nov 2 18:50:45 2020 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Mon, 2 Nov 2020 15:50:45 -0800 Subject: Updated NotarizeHelperStack now with entitlements support In-Reply-To: <93EA8482-D26A-4D70-AD3E-BD84B0BC76EA@m-r-d.de> References: <93EA8482-D26A-4D70-AD3E-BD84B0BC76EA@m-r-d.de> Message-ID: <967E3323-C9C4-473E-866A-34574E41218A@elementarysoftware.com> Awesome. That stack is SO helpful!!!!! Thank you. -- 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 Nov 2, 2020, at 8:37 AM, matthias rebbe via use-livecode wrote: > > Hi, > > just a quick note that i've upgraded the NotarizeHelperStack in the Livecode lesson > https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore > > The stack now allows to add entitlements for code signing an app. > And i added Xcode 11 support for fetching the ASC provider. > > Hope this is of any help for the one or other. > > Regards, > > Matthias > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 2 19:09:35 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 02 Nov 2020 18:09:35 -0600 Subject: Updated NotarizeHelperStack now with entitlements support In-Reply-To: <967E3323-C9C4-473E-866A-34574E41218A@elementarysoftware.com> References: <93EA8482-D26A-4D70-AD3E-BD84B0BC76EA@m-r-d.de> <967E3323-C9C4-473E-866A-34574E41218A@elementarysoftware.com> Message-ID: <1758b700218.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I concur, it's an amazing tool. Thanks for making Apple useable for us mere mortals. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 2, 2020 5:52:57 PM scott--- via use-livecode wrote: > Awesome. That stack is SO helpful!!!!! Thank you. > -- > 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 Nov 2, 2020, at 8:37 AM, matthias rebbe via use-livecode >> wrote: >> >> Hi, >> >> just a quick note that i've upgraded the NotarizeHelperStack in the >> Livecode lesson >> https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore >> >> The stack now allows to add entitlements for code signing an app. >> And i added Xcode 11 support for fetching the ASC provider. >> >> Hope this is of any help for the one or other. >> >> Regards, >> >> Matthias >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 3 03:47:17 2020 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 3 Nov 2020 10:47:17 +0200 Subject: IOS Screen resizing /EXACT FIT not working as before In-Reply-To: <3d5cf69d-8400-3a64-70c7-4139a678e7d9@hyperactivesw.com> References: <3d5cf69d-8400-3a64-70c7-4139a678e7d9@hyperactivesw.com> Message-ID: Hello Lagi, In the iPhone 8 Plus device, could you check in Settings -> Display and Brightness and then scroll down and in the "Display Zoom" section, does it say "Standard" or "Zoomed" ? If it says Zoomed, then the stack will scale as if it was on an iPhone 8. Changing this to Standard will cause the stack to scale as before. Kind regards, Panos -- On Mon, 2 Nov 2020 at 22:53, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > Try fullscreenMode "showAll" or "noBorder". I generally use showAll. There > will be black bars > at the sides or top/bottom on some devices depending on which mode you > choose but the advantage > is that it retains the stack ratio. At least one dimension will always fit. > > You can obscure the black bars by setting the backcolor of the stack to a > matching or > complimentary color. The unused areas will fill with that color instead of > showing black. > > On 11/2/20 1:30 PM, Lagi Pittas via use-livecode wrote: > > Hi, > > > > On an IOS app we have been using the > > > > setfullscreenmode of stack "XYZ" to exactfit. > > > > Although it isn't perfect in the sense it doesn't try to use the "notch" > it > > has been working well. > > > > We have compiled with the latest livecode stable and the latest XCODE and > > now the there is > > a greater margin on either side and the top (especially on the iphone > plus) > > > > We did notice this happened randomly and very very rarely on the previous > > version of xcode and the previous stable livecode but it > > wasn't a "HARD" error and not on everybody's IPHONE 8 plus > > > > Anybody have any ideas the best way to make the App resize well on all > the > > new ones? > > > > The dimensions of the stack are 414 by 736 (the logical resolution of the > > iphone 8 plus) . > > > > To date it has scaled pretty well down and up but now on the iphone we > have > > more of it is not scaling up properly. > > > > Any suggestions for making this work SIMPLY ie we don't need it to bother > > too much about the notch as long as it uses as much > > real estate for the different sizes. The App looked fine on the X as well > > even if it didn't go right down to the bottom. > > > > I am not one to follow the latesdFads ghis is a business program so there > > is no dark mode or other stupid ideas to make > > people upgrade for no reason other than its different. > > > > Any ideas or help appreciated. > > > > > > Lagi > > > > > -- > 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 keith.clarke at me.com Tue Nov 3 07:14:20 2020 From: keith.clarke at me.com (Keith Clarke) Date: Tue, 3 Nov 2020 12:14:20 +0000 Subject: Query large CSV file as a data source? Message-ID: Hi folks, I?ve a 3GB CSV file with 18M rows from which I need to create a subset CSV file for the rows containing tString. The following script results in LiveCode becoming unresponsive, so I?m wondering if I?m missing an obvious trick or what alternative approach I might take... on mouseUp pButtonNumber -- Select CSV File answer file prompt as sheet put it into tFile put tFile into field "File" -- Process CSV extract put URL ("file:" & tFile) into tText put line 1 of tText into field "List" filter lines of tText with "*tString*" put tText into field tList end mouseUp I don?t normally deal with large data sets, so maybe LiveCode isn?t the best tool for this but Excel 365 seems to only offer CSV file import, not query. Any thoughts greatly appreciated. Thanks & regards, Keith From matthias_livecode_150811 at m-r-d.de Tue Nov 3 08:37:40 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 3 Nov 2020 14:37:40 +0100 Subject: Query large CSV file as a data source? In-Reply-To: References: Message-ID: <505DFA02-4386-43A8-8E0A-C58FE025CFB4@m-r-d.de> Couldn't you read the file partially you would open the file for read open file tFile for read then in a repeat loop you could read e.g. 10000 lines and process the data read from file tFile for 10000 lines Just a thought. - Matthias Rebbe Life Is Too Short For Boring Code > Am 03.11.2020 um 13:14 schrieb Keith Clarke via use-livecode : > > Hi folks, > I?ve a 3GB CSV file with 18M rows from which I need to create a subset CSV file for the rows containing tString. The following script results in LiveCode becoming unresponsive, so I?m wondering if I?m missing an obvious trick or what alternative approach I might take... > on mouseUp pButtonNumber > > -- Select CSV File > > answer file prompt as sheet > > put it into tFile > > put tFile into field "File" > > -- Process CSV extract > > put URL ("file:" & tFile) into tText > > put line 1 of tText into field "List" > > filter lines of tText with "*tString*" > > put tText into field tList > > end mouseUp > > I don?t normally deal with large data sets, so maybe LiveCode isn?t the best tool for this but Excel 365 seems to only offer CSV file import, not query. > > Any thoughts greatly appreciated. > > 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 keith.clarke at me.com Tue Nov 3 09:14:44 2020 From: keith.clarke at me.com (Keith Clarke) Date: Tue, 3 Nov 2020 14:14:44 +0000 Subject: Query large CSV file as a data source? In-Reply-To: <505DFA02-4386-43A8-8E0A-C58FE025CFB4@m-r-d.de> References: <505DFA02-4386-43A8-8E0A-C58FE025CFB4@m-r-d.de> Message-ID: Thank you Matthias, I wasn?t aware of that ability to open the file and read its contents straight from the disk. A quick experiment looks positive - no hanging and fast access - so I just need to work on the loop. Much obliged. Best, Keith > On 3 Nov 2020, at 13:37, matthias rebbe via use-livecode wrote: > > Couldn't you read the file partially > > you would open the file for read > > open file tFile for read > > then in a repeat loop you could read e.g. 10000 lines and process the data > > read from file tFile for 10000 lines > > > Just a thought. > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 03.11.2020 um 13:14 schrieb Keith Clarke via use-livecode : >> >> Hi folks, >> I?ve a 3GB CSV file with 18M rows from which I need to create a subset CSV file for the rows containing tString. The following script results in LiveCode becoming unresponsive, so I?m wondering if I?m missing an obvious trick or what alternative approach I might take... >> on mouseUp pButtonNumber >> >> -- Select CSV File >> >> answer file prompt as sheet >> >> put it into tFile >> >> put tFile into field "File" >> >> -- Process CSV extract >> >> put URL ("file:" & tFile) into tText >> >> put line 1 of tText into field "List" >> >> filter lines of tText with "*tString*" >> >> put tText into field tList >> >> end mouseUp >> >> I don?t normally deal with large data sets, so maybe LiveCode isn?t the best tool for this but Excel 365 seems to only offer CSV file import, not query. >> >> Any thoughts greatly appreciated. >> >> Thanks & regards, >> Keith >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Nov 3 10:09:32 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 3 Nov 2020 16:09:32 +0100 Subject: Query large CSV file as a data source? In-Reply-To: References: <505DFA02-4386-43A8-8E0A-C58FE025CFB4@m-r-d.de> Message-ID: Regarding the loop. you could do a put the detailed files to get the file size of that csv file. With that size you would now how often you have to run the loop - Matthias Rebbe Life Is Too Short For Boring Code > Am 03.11.2020 um 15:14 schrieb Keith Clarke via use-livecode : > > Thank you Matthias, I wasn?t aware of that ability to open the file and read its contents straight from the disk. > > A quick experiment looks positive - no hanging and fast access - so I just need to work on the loop. > > Much obliged. > > Best, > Keith > >> On 3 Nov 2020, at 13:37, matthias rebbe via use-livecode wrote: >> >> Couldn't you read the file partially >> >> you would open the file for read >> >> open file tFile for read >> >> then in a repeat loop you could read e.g. 10000 lines and process the data >> >> read from file tFile for 10000 lines >> >> >> Just a thought. >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >>> Am 03.11.2020 um 13:14 schrieb Keith Clarke via use-livecode : >>> >>> Hi folks, >>> I?ve a 3GB CSV file with 18M rows from which I need to create a subset CSV file for the rows containing tString. The following script results in LiveCode becoming unresponsive, so I?m wondering if I?m missing an obvious trick or what alternative approach I might take... >>> on mouseUp pButtonNumber >>> >>> -- Select CSV File >>> >>> answer file prompt as sheet >>> >>> put it into tFile >>> >>> put tFile into field "File" >>> >>> -- Process CSV extract >>> >>> put URL ("file:" & tFile) into tText >>> >>> put line 1 of tText into field "List" >>> >>> filter lines of tText with "*tString*" >>> >>> put tText into field tList >>> >>> end mouseUp >>> >>> I don?t normally deal with large data sets, so maybe LiveCode isn?t the best tool for this but Excel 365 seems to only offer CSV file import, not query. >>> >>> Any thoughts greatly appreciated. >>> >>> Thanks & regards, >>> Keith >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 3 17:02:24 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Nov 2020 22:02:24 +0000 Subject: Query large CSV file as a data source? In-Reply-To: References: <505DFA02-4386-43A8-8E0A-C58FE025CFB4@m-r-d.de> Message-ID: <8CF77FF4-F2AC-43F3-A65C-60302EB1A771@iotecdigital.com> Just read for 10,000 lines and check for empty each time. Bob S > On Nov 3, 2020, at 7:09 AM, matthias rebbe via use-livecode wrote: > > Regarding the loop. > > you could do a > > put the detailed files > > to get the file size of that csv file. > > With that size you would now how often you have to run the loop > > > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 03.11.2020 um 15:14 schrieb Keith Clarke via use-livecode : >> >> Thank you Matthias, I wasn?t aware of that ability to open the file and read its contents straight from the disk. >> >> A quick experiment looks positive - no hanging and fast access - so I just need to work on the loop. >> >> Much obliged. >> >> Best, >> Keith >> >>> On 3 Nov 2020, at 13:37, matthias rebbe via use-livecode wrote: >>> >>> Couldn't you read the file partially >>> >>> you would open the file for read >>> >>> open file tFile for read >>> >>> then in a repeat loop you could read e.g. 10000 lines and process the data >>> >>> read from file tFile for 10000 lines >>> >>> >>> Just a thought. >>> >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >>> >>>> Am 03.11.2020 um 13:14 schrieb Keith Clarke via use-livecode : >>>> >>>> Hi folks, >>>> I?ve a 3GB CSV file with 18M rows from which I need to create a subset CSV file for the rows containing tString. The following script results in LiveCode becoming unresponsive, so I?m wondering if I?m missing an obvious trick or what alternative approach I might take... >>>> on mouseUp pButtonNumber >>>> >>>> -- Select CSV File >>>> >>>> answer file prompt as sheet >>>> >>>> put it into tFile >>>> >>>> put tFile into field "File" >>>> >>>> -- Process CSV extract >>>> >>>> put URL ("file:" & tFile) into tText >>>> >>>> put line 1 of tText into field "List" >>>> >>>> filter lines of tText with "*tString*" >>>> >>>> put tText into field tList >>>> >>>> end mouseUp >>>> >>>> I don?t normally deal with large data sets, so maybe LiveCode isn?t the best tool for this but Excel 365 seems to only offer CSV file import, not query. >>>> >>>> Any thoughts greatly appreciated. >>>> >>>> Thanks & regards, >>>> Keith >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 3 17:39:44 2020 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Wed, 4 Nov 2020 09:09:44 +1030 Subject: Ideas on iOS GPS tracking needed In-Reply-To: References: Message-ID: Hi Graham Are you checking the horizontal accuracy of each reading? (It's part of the array of data with your lat-longs, as well as speed, etc - though not on every phone). If not, try that and see if the anomalous readings are hugely out. From my experience, that's normally the case. If so, the easiest thing is to drop them in the short term, unless you get too many and then you may need to be a bit fancier. If you do, would love to hear the solution that you come up with. HTH, cheers Alan > On 4 Nov 2020, at 3:30 am, Graham Samuel wrote: > > From: Graham Samuel > To: How to use LiveCode > Subject: Ideas on iOS GPS tracking needed > Message-ID: <6C855814-1850-4975-B185-1731EFCD6DA2 at mac.com> > Content-Type: text/plain; charset=utf-8 > > Sorry this is a bit long. > > For a long time I?ve been tinkering with an app that uses the GPS on iPhones to show how far ?as the crow flies? the user is from some base point, which is set before the journey starts. It?s intended for walkers and cyclists, and I was using a beta version in the first French lockdown, which forbade one walking more than 1km from one?s house. I put the completion of this aside, but now we?re in the second French lockdown and it looks worth finishing - but I have some issues which I believe are not just down to my bad coding (though of course that?s more than possible), and I wonder if anyone else has thought about this stuff. > > The basic idea is extremely simple, as you can imagine, and it wasn?t hard to code. The app keeps working out the point-to-point distance from the base and tests it against the permitted limit. If the limit is exceeded, it sounds an alarm. If the user goes back within the limit, the alarm stops. Everything else is just cosmetic, really. > > The issue I have is that in every journey of say 40 minutes to an hour, the iPhone appears to generate a few ?bad? GPS readings. When I say bad, I mean way beyond the published accuracy of the GPS (which varies up to about 70m). Sometimes the GPS wants to tell me that I?ve walked half a kilometer in three seconds! > > I have analysed a lot of data (.gpx files) from other apps for walkers, drivers and cyclists and I don?t see such glaring anomalies; and using such apps on my main test phone (an iPhone X), I don?t see these strange readings affecting the data. > > Assuming this isn?t just a stupid coding error on my part (OK, a risky assumption), I need to find a solution, either by increasing the accuracy of the readings, or by finding the anomalies as they occur and eliminating them. I know no way of doing the first, and although I have ideas for the second (check apparent speed, for example), none seems foolproof. As the app works in real time, a retroactive curve-fitting solution is no good for me, even if my maths was up to coding it (Kalman filter, anyone?). > > Has anyone tried anything like this, and if so, did you find any anomalies in the data, and how did you cope with them? > > I?d be grateful for any ideas. > > Graham From bobsneidar at iotecdigital.com Tue Nov 3 17:55:09 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 3 Nov 2020 22:55:09 +0000 Subject: Ideas on iOS GPS tracking needed In-Reply-To: References: Message-ID: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> Seems to me if you are tracking linear movement, you need to average the trending values, say the last 5 or 10 reads, against a time base, and reject the ones outside an acceptable tolerance. You may reject some good data here and there, but something grossly outside tolerance should be pretty easy to grok. Sounds easy, huh? :-) But it really is. For a car moving at 60mph, obviously the trend is going to be greater than a person walking, and slower than a small airplane. For an alien spacecraft traveling at insane speeds and making wild maneuvers, I?m afraid you are on your own. The tolerance can be a percentage of the average of the last x reads or the last x seconds. Seconds makes more sense to me since if you drop 2 or 3 reads it will skew the averages significantly. That is likely how Google Maps does it. Bob S On Nov 3, 2020, at 2:39 PM, Alan Stenhouse via use-livecode > wrote: Hi Graham Are you checking the horizontal accuracy of each reading? (It's part of the array of data with your lat-longs, as well as speed, etc - though not on every phone). If not, try that and see if the anomalous readings are hugely out. From my experience, that's normally the case. If so, the easiest thing is to drop them in the short term, unless you get too many and then you may need to be a bit fancier. If you do, would love to hear the solution that you come up with. HTH, cheers Alan From matthias_livecode_150811 at m-r-d.de Tue Nov 3 18:01:29 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 4 Nov 2020 00:01:29 +0100 Subject: Query large CSV file as a data source? In-Reply-To: <8CF77FF4-F2AC-43F3-A65C-60302EB1A771@iotecdigital.com> References: <505DFA02-4386-43A8-8E0A-C58FE025CFB4@m-r-d.de> <8CF77FF4-F2AC-43F3-A65C-60302EB1A771@iotecdigital.com> Message-ID: <10A1C271-AC06-464A-AFA3-0D991FD95264@m-r-d.de> > Am 03.11.2020 um 23:02 schrieb Bob Sneidar via use-livecode : > > Just read for 10,000 lines and check for empty each time. > To be honest, i've never used the read file for ... lines. I was expecting that there might be an error if one tries to read more lines than there are left for read Good to know that one can just read in a loop without calculating the loop count first. - Matthias Rebbe Life Is Too Short For Boring Code > Bob S > > >> On Nov 3, 2020, at 7:09 AM, matthias rebbe via use-livecode wrote: >> >> Regarding the loop. >> >> you could do a >> >> put the detailed files >> >> to get the file size of that csv file. >> >> With that size you would now how often you have to run the loop >> >> >> >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >>> Am 03.11.2020 um 15:14 schrieb Keith Clarke via use-livecode : >>> >>> Thank you Matthias, I wasn?t aware of that ability to open the file and read its contents straight from the disk. >>> >>> A quick experiment looks positive - no hanging and fast access - so I just need to work on the loop. >>> >>> Much obliged. >>> >>> Best, >>> Keith >>> >>>> On 3 Nov 2020, at 13:37, matthias rebbe via use-livecode wrote: >>>> >>>> Couldn't you read the file partially >>>> >>>> you would open the file for read >>>> >>>> open file tFile for read >>>> >>>> then in a repeat loop you could read e.g. 10000 lines and process the data >>>> >>>> read from file tFile for 10000 lines >>>> >>>> >>>> Just a thought. >>>> >>>> >>>> - >>>> Matthias Rebbe >>>> Life Is Too Short For Boring Code >>>> >>>>> Am 03.11.2020 um 13:14 schrieb Keith Clarke via use-livecode : >>>>> >>>>> Hi folks, >>>>> I?ve a 3GB CSV file with 18M rows from which I need to create a subset CSV file for the rows containing tString. The following script results in LiveCode becoming unresponsive, so I?m wondering if I?m missing an obvious trick or what alternative approach I might take... >>>>> on mouseUp pButtonNumber >>>>> >>>>> -- Select CSV File >>>>> >>>>> answer file prompt as sheet >>>>> >>>>> put it into tFile >>>>> >>>>> put tFile into field "File" >>>>> >>>>> -- Process CSV extract >>>>> >>>>> put URL ("file:" & tFile) into tText >>>>> >>>>> put line 1 of tText into field "List" >>>>> >>>>> filter lines of tText with "*tString*" >>>>> >>>>> put tText into field tList >>>>> >>>>> end mouseUp >>>>> >>>>> I don?t normally deal with large data sets, so maybe LiveCode isn?t the best tool for this but Excel 365 seems to only offer CSV file import, not query. >>>>> >>>>> Any thoughts greatly appreciated. >>>>> >>>>> Thanks & regards, >>>>> Keith >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iphonelagi at gmail.com Tue Nov 3 19:08:27 2020 From: iphonelagi at gmail.com (Lagi Pittas) Date: Wed, 4 Nov 2020 00:08:27 +0000 Subject: IOS Screen resizing /EXACT FIT not working as before In-Reply-To: References: <3d5cf69d-8400-3a64-70c7-4139a678e7d9@hyperactivesw.com> Message-ID: Hi, Thanks for that hint Jacque will certainly have a look at that. Panos - we have 4 Iphone pluses and they are all set to standard - all worked fine before. But I checked mine and another just in case an IOS update changed it - nope both still standard. Thanks though - every suggestion comes in useful sometime (is that a Dean Martin song?) Regards lagi On Tue, 3 Nov 2020 at 08:48, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello Lagi, > > In the iPhone 8 Plus device, could you check in Settings -> Display and > Brightness and then scroll down and in the "Display Zoom" section, does it > say "Standard" or "Zoomed" ? > > If it says Zoomed, then the stack will scale as if it was on an iPhone 8. > Changing this to Standard will cause the stack to scale as before. > > Kind regards, > Panos > -- > > On Mon, 2 Nov 2020 at 22:53, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Try fullscreenMode "showAll" or "noBorder". I generally use showAll. > There > > will be black bars > > at the sides or top/bottom on some devices depending on which mode you > > choose but the advantage > > is that it retains the stack ratio. At least one dimension will always > fit. > > > > You can obscure the black bars by setting the backcolor of the stack to a > > matching or > > complimentary color. The unused areas will fill with that color instead > of > > showing black. > > > > On 11/2/20 1:30 PM, Lagi Pittas via use-livecode wrote: > > > Hi, > > > > > > On an IOS app we have been using the > > > > > > setfullscreenmode of stack "XYZ" to exactfit. > > > > > > Although it isn't perfect in the sense it doesn't try to use the > "notch" > > it > > > has been working well. > > > > > > We have compiled with the latest livecode stable and the latest XCODE > and > > > now the there is > > > a greater margin on either side and the top (especially on the iphone > > plus) > > > > > > We did notice this happened randomly and very very rarely on the > previous > > > version of xcode and the previous stable livecode but it > > > wasn't a "HARD" error and not on everybody's IPHONE 8 plus > > > > > > Anybody have any ideas the best way to make the App resize well on all > > the > > > new ones? > > > > > > The dimensions of the stack are 414 by 736 (the logical resolution of > the > > > iphone 8 plus) . > > > > > > To date it has scaled pretty well down and up but now on the iphone we > > have > > > more of it is not scaling up properly. > > > > > > Any suggestions for making this work SIMPLY ie we don't need it to > bother > > > too much about the notch as long as it uses as much > > > real estate for the different sizes. The App looked fine on the X as > well > > > even if it didn't go right down to the bottom. > > > > > > I am not one to follow the latesdFads ghis is a business program so > there > > > is no dark mode or other stupid ideas to make > > > people upgrade for no reason other than its different. > > > > > > Any ideas or help appreciated. > > > > > > > > > Lagi > > > > > > > > > -- > > 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 > -- KIndest Regards Lagi From ahsoftware at sonic.net Tue Nov 3 19:20:39 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 3 Nov 2020 16:20:39 -0800 Subject: IOS Screen resizing /EXACT FIT not working as before In-Reply-To: References: <3d5cf69d-8400-3a64-70c7-4139a678e7d9@hyperactivesw.com> Message-ID: On 11/3/20 4:08 PM, Lagi Pittas via use-livecode wrote: > Thanks though - every suggestion comes in useful sometime (is that a Dean > Martin song?) LOL -- Mark Wieder ahsoftware at gmail.com From alex at tweedly.net Tue Nov 3 19:48:57 2020 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 4 Nov 2020 00:48:57 +0000 Subject: Plotting Equations that Bifurcate In-Reply-To: References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> Message-ID: <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> On 31/10/2020 02:28, Roger Guay via use-livecode wrote: > Lots of clever ideas here, Alex, but I think you?re missing the point of what I ultimately want to do. I'm building a plotting program for which I want to plot any equation including those that have multiple values of y for a given x. An equation might branch at any point and might even have multiple branches both of which are unknown before plotting. > > Of course, there?s always the possibility that I?m not fully comprehending your suggestions??? What does NB stand for? Are you suggesting creating a new polygon every time a branch is detected? That just might work?! Hi Roger. You're right - I missed the point; I jumped to the assumption that you were asking about a fairly small, specific issue - so leapt too quickly to a code sample. But before I address the general question(s), let me get the little points out of the way :-) NB - sorry, kind of common usage in British English. Actually, it's from a Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take note of'. "a new polygon every branch" - yes, perfectly possible. Also possible is what I did in the first case of the code sample -? a new 'sequence of points' for each branch, and then stitch those together (with blank lines between) into a single polygon; but that's, for now, a detail. The essence of the problem is that your app will (somehow) develop a number of 'sequences of *data* points' - and then those need to be translated into equivalent sets of *display* points (by either a plotting library, or by your own code) to allow it to be displayed appropriately. There are at least two possible plotting libraries that might do what you want (or do something close enough that they could be useful). By coincidence, they were both discussed at the San Jose LC conference in 2019.If you have access to the video / papers from that you might already have some of the info you need; I don't know if the conference papers are ever put out for more general usage later. Option A. Monte described a wrapper for the JSPlot library. It's a very powerful library capable of many kinds of graphs / plots, and very quick and capable. The most obvious downside is that it needs to be used within a browser widget - but well worth looking at it if you can. Option B. I did a library called "GraphMaker" - a pure-Livecode plotting library. It is (I think) fairly easy to use - but that may not be the case for someone else coming to it new. I know it can handle this case of bifurcating plots (using multiple sequences of data points). The conference slides were a decent, if very brief, introduction; the lengthier documentation was, maybe, not quite complete. However, it does come with a demo app that uses the library to draw a variety of graph types. Main advantage is it's pure LC, and hopefully easy to use - both in understanding and in ease of integration into an app (you just create a suitable group to contain the graph, set its rect properly and pass in all the point data along with various parameters.? It has nowhere near the coverage of different graph types that JSPlot does - it's basically line, bar and scatter plots, with primary X-axis, and can have shading, etc. Option C. Roll your own. I'd certainly suggest investigating the use of an existing library first. There's quite a lot of effort needs to go into determining how to scale the data to the space available, how to label the axes, how to add tick marks, grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 90% of the effort of creating the library. If you'd like to try out my library, the latest version can be found at https://www.tweedly.org/lcms.lc/GraphMaker (sorry - I haven't formatted it into my usual download structure - so this is simply a page that gives links that allow you to download the 2 files you need and 2 more files you don't need.) Of course, I'll be happy to help out in any way I can with it. Alex. P.S. the demo app includes an example of a 'branching' plot (Graph 3). From harrison at all-auctions.com Wed Nov 4 12:16:00 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 4 Nov 2020 12:16:00 -0500 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> Message-ID: Greetings LiveCoders, I have an LC server format file that uses a Javascript video player. The video player has a nice time progress bar that shows how far the user has played the video. All of that works just fine. What I would like to do is check what that time completion variable is when the user clicks on a button to leave the video so I will know if they finished watching it all the way to the end of the video or not. I then want to make a note of it in my database which requires that I am able to send that javascript variable value over to a LiveCode variable. I?ve been looking at Session Cookies to see if LiveCode can read a Javascript Session Cookie, but so far have been unsuccessful. Ideas, code or suggestions anyone? Thanks! Rick From irog at mac.com Wed Nov 4 13:09:39 2020 From: irog at mac.com (Roger Guay) Date: Wed, 4 Nov 2020 10:09:39 -0800 Subject: Plotting Equations that Bifurcate In-Reply-To: <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> Message-ID: <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> Hi Alex, Thanks for your continued interest in my little project. I have succeeded in implementing a multiple polygon approach, but it ain?t elegant as they say! I seem to recall that I learned a lot from your GraphMaker some time ago, but as I try to review your latest on your website, I run into repeated errors about ?can?t find handler gmSetCustomMarker?. I can?t seem to make any headway to resolve this. Am I supposed to do something with the ?Library?? I could not find instructions anywhere. Meanwhile, I should explain further that I am trying to expand on a stack that I built 2 or 3 years ago called CoupDeGraph which you can find in the Example Stacks of LiveCode. Put simply, I am currently trying to expand on CoupDeGraph to be able to handle double-valued equations. Again, thanks for your help Roger > On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode wrote: > > On 31/10/2020 02:28, Roger Guay via use-livecode wrote: > >> Lots of clever ideas here, Alex, but I think you?re missing the point of what I ultimately want to do. I'm building a plotting program for which I want to plot any equation including those that have multiple values of y for a given x. An equation might branch at any point and might even have multiple branches both of which are unknown before plotting. >> >> Of course, there?s always the possibility that I?m not fully comprehending your suggestions??? What does NB stand for? Are you suggesting creating a new polygon every time a branch is detected? That just might work?! > > Hi Roger. You're right - I missed the point; I jumped to the assumption that you were asking about a fairly small, specific issue - so leapt too quickly to a code sample. But before I address the general question(s), let me get the little points out of the way :-) > > NB - sorry, kind of common usage in British English. Actually, it's from a Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take note of'. > > "a new polygon every branch" - yes, perfectly possible. Also possible is what I did in the first case of the code sample - a new 'sequence of points' for each branch, and then stitch those together (with blank lines between) into a single polygon; but that's, for now, a detail. > > The essence of the problem is that your app will (somehow) develop a number of 'sequences of *data* points' - and then those need to be translated into equivalent sets of *display* points (by either a plotting library, or by your own code) to allow it to be displayed appropriately. > > There are at least two possible plotting libraries that might do what you want (or do something close enough that they could be useful). By coincidence, they were both discussed at the San Jose LC conference in 2019.If you have access to the video / papers from that you might already have some of the info you need; I don't know if the conference papers are ever put out for more general usage later. > > Option A. Monte described a wrapper for the JSPlot library. It's a very powerful library capable of many kinds of graphs / plots, and very quick and capable. The most obvious downside is that it needs to be used within a browser widget - but well worth looking at it if you can. > > Option B. I did a library called "GraphMaker" - a pure-Livecode plotting library. It is (I think) fairly easy to use - but that may not be the case for someone else coming to it new. I know it can handle this case of bifurcating plots (using multiple sequences of data points). The conference slides were a decent, if very brief, introduction; the lengthier documentation was, maybe, not quite complete. However, it does come with a demo app that uses the library to draw a variety of graph types. Main advantage is it's pure LC, and hopefully easy to use - both in understanding and in ease of integration into an app (you just create a suitable group to contain the graph, set its rect properly and pass in all the point data along with various parameters. It has nowhere near the coverage of different graph types that JSPlot does - it's basically line, bar and scatter plots, with primary X-axis, and can have shading, etc. > > Option C. Roll your own. > > I'd certainly suggest investigating the use of an existing library first. There's quite a lot of effort needs to go into determining how to scale the data to the space available, how to label the axes, how to add tick marks, grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 90% of the effort of creating the library. > > If you'd like to try out my library, the latest version can be found at > > https://www.tweedly.org/lcms.lc/GraphMaker > > (sorry - I haven't formatted it into my usual download structure - so this is simply a page that gives links that allow you to download the 2 files you need and 2 more files you don't need.) > > Of course, I'll be happy to help out in any way I can with it. > > Alex. > > P.S. the demo app includes an example of a 'branching' plot (Graph 3). > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 4 14:04:29 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 4 Nov 2020 20:04:29 +0100 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> Message-ID: <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> Hi Rick, i just did a quick test and created an html file which wrote a cookie with javascript Then in LC Server i used the array $_cookie to read the content of the cookie Doing a put $_Cookie["username"] returned Rick Regards Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 04.11.2020 um 18:16 schrieb Rick Harrison via use-livecode : > > Greetings LiveCoders, > > I have an LC server format file that uses a Javascript video player. > The video player has a nice time progress bar that shows how far > the user has played the video. All of that works just fine. > > What I would like to do is check what that time completion variable > is when the user clicks on a button to leave the video so I will know > if they finished watching it all the way to the end of the video or not. > I then want to make a note of it in my database which requires that > I am able to send that javascript variable value over to a LiveCode > variable. > > I?ve been looking at Session Cookies to see if LiveCode can read > a Javascript Session Cookie, but so far have been unsuccessful. > > Ideas, code or suggestions anyone? > > 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 Wed Nov 4 16:10:00 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 4 Nov 2020 16:10:00 -0500 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> Message-ID: Hi Matthias, I just tried your code and it didn?t go across from one format file to the next. I got: username = ?username? What?s wrong? If you can give me your full code for both mini format files I will try it and we can see the results exactly. Thanks for helping! Rick > On Nov 4, 2020, at 2:04 PM, matthias rebbe via use-livecode wrote: > > > > Then in LC Server i used the array $_cookie to read the content of the cookie > > Doing a > put $_Cookie["username"] From matthias_livecode_150811 at m-r-d.de Wed Nov 4 16:35:34 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 4 Nov 2020 22:35:34 +0100 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> Message-ID: Hi Rick, there are two files: writecookies.html readcookies.lc See the code of each here https://livecode.dermattes.de/javascript/showcode.lc - Matthias Rebbe Life Is Too Short For Boring Code > Am 04.11.2020 um 22:10 schrieb Rick Harrison via use-livecode : > > Hi Matthias, > > I just tried your code and it didn?t go across from one format file to the next. > > I got: username = ?username? > > What?s wrong? > > If you can give me your full code for both mini format files I will try it > and we can see the results exactly. > > Thanks for helping! > > Rick > >> On Nov 4, 2020, at 2:04 PM, matthias rebbe via use-livecode wrote: >> >> >> >> Then in LC Server i used the array $_cookie to read the content of the cookie >> >> Doing a >> put $_Cookie["username"] > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Wed Nov 4 17:57:55 2020 From: livfoss at mac.com (Graham Samuel) Date: Wed, 4 Nov 2020 23:57:55 +0100 Subject: Ideas on iOS GPS tracking needed In-Reply-To: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> Message-ID: <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> Thanks Alan and Bob - I was beginning to think I was alone on this one? Yes, I do look at horizontal accuracy. I found out the following using my iPhone XS. 1. Horizontal accuracy tends to be rather poor for the first 10 to 20 readings after activation, typically 65 metres. In context, a test walking round my garden, which is about 110 x 60 meters, can quite often be woefully inaccurate at the beginning. 2. Even when has settled down it is still quite variable, but tends to settle to an average less than 10 metres after a time. 3. Occasionally it throws colossal anomalies, like 5000 metres, with a corresponding crazy waypoint taking someone on foot right out of the park. Of course I can catch the really big ones and ignore them, especially as they are infrequent (maybe two or three in an hour?s walk); but on my tests, the issue is the points that are a bit out, which can be fairly subtle - I mean if you draw them on a map, they are obvious to the human eye, but detecting them is quite difficult. For those, Bob?s idea is a good one, though of course it works best after the trip has been going for while. Anyway, thanks, I'm planning to use it. I agree seconds is the way to go - especially if the app doesn?t know the intended speed (it might be walking, cycling or driving for example). You can tell the user what you?re doing (some apps do this) but I prefer not to ask the user to make that choice. I just bought a little app from the App Store, GPSOdometer by Kevin Willett. This does more or less what I want my app to do (it?s cosmetically quite different), and it offers a ?Filter Level? setting, which effectively allows the user to decide how much horizontal (in)accuracy to accept. The level varies between 0.05 and 2.00, where a higher number means a larger tolerance of inaccuracies. I?ve written to Kevin to ask for a little more detail - of course he doesn?t have to reply, but I hope he does. I will come back to the list to say how I got on. You never know, this may help others eventually. Graham PS The only test data I have been able to find for the XCode Simulator is a bike ride in California which runs along giving a succession of GPS . It is quite useful, but naturally it doesn?t involve anomalies. > On 3 Nov 2020, at 23:55, Bob Sneidar via use-livecode wrote: > > Seems to me if you are tracking linear movement, you need to average the trending values, say the last 5 or 10 reads, against a time base, and reject the ones outside an acceptable tolerance. You may reject some good data here and there, but something grossly outside tolerance should be pretty easy to grok. > > Sounds easy, huh? :-) But it really is. For a car moving at 60mph, obviously the trend is going to be greater than a person walking, and slower than a small airplane. For an alien spacecraft traveling at insane speeds and making wild maneuvers, I?m afraid you are on your own. The tolerance can be a percentage of the average of the last x reads or the last x seconds. Seconds makes more sense to me since if you drop 2 or 3 reads it will skew the averages significantly. That is likely how Google Maps does it. > > Bob S > > > On Nov 3, 2020, at 2:39 PM, Alan Stenhouse via use-livecode > wrote: > > Hi Graham > > Are you checking the horizontal accuracy of each reading? (It's part of the array of data with your lat-longs, as well as speed, etc - though not on every phone). > > If not, try that and see if the anomalous readings are hugely out. From my experience, that's normally the case. If so, the easiest thing is to drop them in the short term, unless you get too many and then you may need to be a bit fancier. If you do, would love to hear the solution that you come up with. > > HTH, cheers > > Alan > > On 4 Nov 2020, at 3:30 am, Graham Samuel > wrote: > > From: Graham Samuel > > To: How to use LiveCode > > Subject: Ideas on iOS GPS tracking needed > Message-ID: <6C855814-1850-4975-B185-1731EFCD6DA2 at mac.com > > Content-Type: text/plain; charset=utf-8 > > Sorry this is a bit long. > > For a long time I?ve been tinkering with an app that uses the GPS on iPhones to show how far ?as the crow flies? the user is from some base point, which is set before the journey starts. It?s intended for walkers and cyclists, and I was using a beta version in the first French lockdown, which forbade one walking more than 1km from one?s house. I put the completion of this aside, but now we?re in the second French lockdown and it looks worth finishing - but I have some issues which I believe are not just down to my bad coding (though of course that?s more than possible), and I wonder if anyone else has thought about this stuff. > > The basic idea is extremely simple, as you can imagine, and it wasn?t hard to code. The app keeps working out the point-to-point distance from the base and tests it against the permitted limit. If the limit is exceeded, it sounds an alarm. If the user goes back within the limit, the alarm stops. Everything else is just cosmetic, really. > > The issue I have is that in every journey of say 40 minutes to an hour, the iPhone appears to generate a few ?bad? GPS readings. When I say bad, I mean way beyond the published accuracy of the GPS (which varies up to about 70m). Sometimes the GPS wants to tell me that I?ve walked half a kilometer in three seconds! > > I have analysed a lot of data (.gpx files) from other apps for walkers, drivers and cyclists and I don?t see such glaring anomalies; and using such apps on my main test phone (an iPhone X), I don?t see these strange readings affecting the data. > > Assuming this isn?t just a stupid coding error on my part (OK, a risky assumption), I need to find a solution, either by increasing the accuracy of the readings, or by finding the anomalies as they occur and eliminating them. I know no way of doing the first, and although I have ideas for the second (check apparent speed, for example), none seems foolproof. As the app works in real time, a retroactive curve-fitting solution is no good for me, even if my maths was up to coding it (Kalman filter, anyone?). > > Has anyone tried anything like this, and if so, did you find any anomalies in the data, and how did you cope with them? > > I?d be grateful for any ideas. > > Graham From scott at elementarysoftware.com Wed Nov 4 18:03:24 2020 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 4 Nov 2020 15:03:24 -0800 Subject: Plotting Equations that Bifurcate In-Reply-To: <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> Message-ID: I assume the expanded version will be called SedanDeGraph. ? Scott > On Nov 4, 2020, at 10:09 AM, Roger Guay via use-livecode wrote: > > Hi Alex, > > Thanks for your continued interest in my little project. I have succeeded in implementing a multiple polygon approach, but it ain?t elegant as they say! > > I seem to recall that I learned a lot from your GraphMaker some time ago, but as I try to review your latest on your website, I run into repeated errors about ?can?t find handler gmSetCustomMarker?. I can?t seem to make any headway to resolve this. Am I supposed to do something with the ?Library?? I could not find instructions anywhere. > > Meanwhile, I should explain further that I am trying to expand on a stack that I built 2 or 3 years ago called CoupDeGraph which you can find in the Example Stacks of LiveCode. Put simply, I am currently trying to expand on CoupDeGraph to be able to handle double-valued equations. > > Again, thanks for your help > > Roger > >> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode wrote: >> >> On 31/10/2020 02:28, Roger Guay via use-livecode wrote: >> >>> Lots of clever ideas here, Alex, but I think you?re missing the point of what I ultimately want to do. I'm building a plotting program for which I want to plot any equation including those that have multiple values of y for a given x. An equation might branch at any point and might even have multiple branches both of which are unknown before plotting. >>> >>> Of course, there?s always the possibility that I?m not fully comprehending your suggestions??? What does NB stand for? Are you suggesting creating a new polygon every time a branch is detected? That just might work?! >> >> Hi Roger. You're right - I missed the point; I jumped to the assumption that you were asking about a fairly small, specific issue - so leapt too quickly to a code sample. But before I address the general question(s), let me get the little points out of the way :-) >> >> NB - sorry, kind of common usage in British English. Actually, it's from a Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take note of'. >> >> "a new polygon every branch" - yes, perfectly possible. Also possible is what I did in the first case of the code sample - a new 'sequence of points' for each branch, and then stitch those together (with blank lines between) into a single polygon; but that's, for now, a detail. >> >> The essence of the problem is that your app will (somehow) develop a number of 'sequences of *data* points' - and then those need to be translated into equivalent sets of *display* points (by either a plotting library, or by your own code) to allow it to be displayed appropriately. >> >> There are at least two possible plotting libraries that might do what you want (or do something close enough that they could be useful). By coincidence, they were both discussed at the San Jose LC conference in 2019.If you have access to the video / papers from that you might already have some of the info you need; I don't know if the conference papers are ever put out for more general usage later. >> >> Option A. Monte described a wrapper for the JSPlot library. It's a very powerful library capable of many kinds of graphs / plots, and very quick and capable. The most obvious downside is that it needs to be used within a browser widget - but well worth looking at it if you can. >> >> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting library. It is (I think) fairly easy to use - but that may not be the case for someone else coming to it new. I know it can handle this case of bifurcating plots (using multiple sequences of data points). The conference slides were a decent, if very brief, introduction; the lengthier documentation was, maybe, not quite complete. However, it does come with a demo app that uses the library to draw a variety of graph types. Main advantage is it's pure LC, and hopefully easy to use - both in understanding and in ease of integration into an app (you just create a suitable group to contain the graph, set its rect properly and pass in all the point data along with various parameters. It has nowhere near the coverage of different graph types that JSPlot does - it's basically line, bar and scatter plots, with primary X-axis, and can have shading, etc. >> >> Option C. Roll your own. >> >> I'd certainly suggest investigating the use of an existing library first. There's quite a lot of effort needs to go into determining how to scale the data to the space available, how to label the axes, how to add tick marks, grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 90% of the effort of creating the library. >> >> If you'd like to try out my library, the latest version can be found at >> >> https://www.tweedly.org/lcms.lc/GraphMaker >> >> (sorry - I haven't formatted it into my usual download structure - so this is simply a page that gives links that allow you to download the 2 files you need and 2 more files you don't need.) >> >> Of course, I'll be happy to help out in any way I can with it. >> >> Alex. >> >> P.S. the demo app includes an example of a 'branching' plot (Graph 3). >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 4 18:09:40 2020 From: irog at mac.com (Roger Guay) Date: Wed, 4 Nov 2020 15:09:40 -0800 Subject: Plotting Equations that Bifurcate In-Reply-To: References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> Message-ID: <07AF247C-3C6B-40F1-937F-F1CD390C1668@mac.com> Oooh, I like it! How about VanDeGraph? Roger > On Nov 4, 2020, at 3:03 PM, scott--- via use-livecode wrote: > > I assume the expanded version will be called SedanDeGraph. > ? > Scott > >> On Nov 4, 2020, at 10:09 AM, Roger Guay via use-livecode wrote: >> >> Hi Alex, >> >> Thanks for your continued interest in my little project. I have succeeded in implementing a multiple polygon approach, but it ain?t elegant as they say! >> >> I seem to recall that I learned a lot from your GraphMaker some time ago, but as I try to review your latest on your website, I run into repeated errors about ?can?t find handler gmSetCustomMarker?. I can?t seem to make any headway to resolve this. Am I supposed to do something with the ?Library?? I could not find instructions anywhere. >> >> Meanwhile, I should explain further that I am trying to expand on a stack that I built 2 or 3 years ago called CoupDeGraph which you can find in the Example Stacks of LiveCode. Put simply, I am currently trying to expand on CoupDeGraph to be able to handle double-valued equations. >> >> Again, thanks for your help >> >> Roger >> >>> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode wrote: >>> >>> On 31/10/2020 02:28, Roger Guay via use-livecode wrote: >>> >>>> Lots of clever ideas here, Alex, but I think you?re missing the point of what I ultimately want to do. I'm building a plotting program for which I want to plot any equation including those that have multiple values of y for a given x. An equation might branch at any point and might even have multiple branches both of which are unknown before plotting. >>>> >>>> Of course, there?s always the possibility that I?m not fully comprehending your suggestions??? What does NB stand for? Are you suggesting creating a new polygon every time a branch is detected? That just might work?! >>> >>> Hi Roger. You're right - I missed the point; I jumped to the assumption that you were asking about a fairly small, specific issue - so leapt too quickly to a code sample. But before I address the general question(s), let me get the little points out of the way :-) >>> >>> NB - sorry, kind of common usage in British English. Actually, it's from a Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take note of'. >>> >>> "a new polygon every branch" - yes, perfectly possible. Also possible is what I did in the first case of the code sample - a new 'sequence of points' for each branch, and then stitch those together (with blank lines between) into a single polygon; but that's, for now, a detail. >>> >>> The essence of the problem is that your app will (somehow) develop a number of 'sequences of *data* points' - and then those need to be translated into equivalent sets of *display* points (by either a plotting library, or by your own code) to allow it to be displayed appropriately. >>> >>> There are at least two possible plotting libraries that might do what you want (or do something close enough that they could be useful). By coincidence, they were both discussed at the San Jose LC conference in 2019.If you have access to the video / papers from that you might already have some of the info you need; I don't know if the conference papers are ever put out for more general usage later. >>> >>> Option A. Monte described a wrapper for the JSPlot library. It's a very powerful library capable of many kinds of graphs / plots, and very quick and capable. The most obvious downside is that it needs to be used within a browser widget - but well worth looking at it if you can. >>> >>> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting library. It is (I think) fairly easy to use - but that may not be the case for someone else coming to it new. I know it can handle this case of bifurcating plots (using multiple sequences of data points). The conference slides were a decent, if very brief, introduction; the lengthier documentation was, maybe, not quite complete. However, it does come with a demo app that uses the library to draw a variety of graph types. Main advantage is it's pure LC, and hopefully easy to use - both in understanding and in ease of integration into an app (you just create a suitable group to contain the graph, set its rect properly and pass in all the point data along with various parameters. It has nowhere near the coverage of different graph types that JSPlot does - it's basically line, bar and scatter plots, with primary X-axis, and can have shading, etc. >>> >>> Option C. Roll your own. >>> >>> I'd certainly suggest investigating the use of an existing library first. There's quite a lot of effort needs to go into determining how to scale the data to the space available, how to label the axes, how to add tick marks, grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 90% of the effort of creating the library. >>> >>> If you'd like to try out my library, the latest version can be found at >>> >>> https://www.tweedly.org/lcms.lc/GraphMaker >>> >>> (sorry - I haven't formatted it into my usual download structure - so this is simply a page that gives links that allow you to download the 2 files you need and 2 more files you don't need.) >>> >>> Of course, I'll be happy to help out in any way I can with it. >>> >>> Alex. >>> >>> P.S. the demo app includes an example of a 'branching' plot (Graph 3). >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 4 18:31:05 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 4 Nov 2020 18:31:05 -0500 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> Message-ID: Hi Matthias, Well, that works fine! I?ll have to study what I did differently to figure why my method didn?t work. Will this work with Session variables too? Thanks, Rick > On Nov 4, 2020, at 4:35 PM, matthias rebbe via use-livecode wrote: > > Hi Rick, > > there are two files: > > writecookies.html > readcookies.lc > > See the code of each here > https://livecode.dermattes.de/javascript/showcode.lc > > - > Matthias Rebbe From jerry at jhjensen.com Wed Nov 4 18:37:43 2020 From: jerry at jhjensen.com (Jerry Jensen) Date: Wed, 4 Nov 2020 15:37:43 -0800 Subject: Plotting Equations that Bifurcate In-Reply-To: <07AF247C-3C6B-40F1-937F-F1CD390C1668@mac.com> References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> <07AF247C-3C6B-40F1-937F-F1CD390C1668@mac.com> Message-ID: Neil DeGraph Tyson? > On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode wrote: > > Oooh, I like it! How about VanDeGraph? > > Roger > >> On Nov 4, 2020, at 3:03 PM, scott--- via use-livecode wrote: >> >> I assume the expanded version will be called SedanDeGraph. >> ? >> Scott >> >>> On Nov 4, 2020, at 10:09 AM, Roger Guay via use-livecode wrote: >>> >>> Hi Alex, >>> >>> Thanks for your continued interest in my little project. I have succeeded in implementing a multiple polygon approach, but it ain?t elegant as they say! >>> >>> I seem to recall that I learned a lot from your GraphMaker some time ago, but as I try to review your latest on your website, I run into repeated errors about ?can?t find handler gmSetCustomMarker?. I can?t seem to make any headway to resolve this. Am I supposed to do something with the ?Library?? I could not find instructions anywhere. >>> >>> Meanwhile, I should explain further that I am trying to expand on a stack that I built 2 or 3 years ago called CoupDeGraph which you can find in the Example Stacks of LiveCode. Put simply, I am currently trying to expand on CoupDeGraph to be able to handle double-valued equations. >>> >>> Again, thanks for your help >>> >>> Roger >>> >>>> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode wrote: >>>> >>>> On 31/10/2020 02:28, Roger Guay via use-livecode wrote: >>>> >>>>> Lots of clever ideas here, Alex, but I think you?re missing the point of what I ultimately want to do. I'm building a plotting program for which I want to plot any equation including those that have multiple values of y for a given x. An equation might branch at any point and might even have multiple branches both of which are unknown before plotting. >>>>> >>>>> Of course, there?s always the possibility that I?m not fully comprehending your suggestions??? What does NB stand for? Are you suggesting creating a new polygon every time a branch is detected? That just might work?! >>>> >>>> Hi Roger. You're right - I missed the point; I jumped to the assumption that you were asking about a fairly small, specific issue - so leapt too quickly to a code sample. But before I address the general question(s), let me get the little points out of the way :-) >>>> >>>> NB - sorry, kind of common usage in British English. Actually, it's from a Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take note of'. >>>> >>>> "a new polygon every branch" - yes, perfectly possible. Also possible is what I did in the first case of the code sample - a new 'sequence of points' for each branch, and then stitch those together (with blank lines between) into a single polygon; but that's, for now, a detail. >>>> >>>> The essence of the problem is that your app will (somehow) develop a number of 'sequences of *data* points' - and then those need to be translated into equivalent sets of *display* points (by either a plotting library, or by your own code) to allow it to be displayed appropriately. >>>> >>>> There are at least two possible plotting libraries that might do what you want (or do something close enough that they could be useful). By coincidence, they were both discussed at the San Jose LC conference in 2019.If you have access to the video / papers from that you might already have some of the info you need; I don't know if the conference papers are ever put out for more general usage later. >>>> >>>> Option A. Monte described a wrapper for the JSPlot library. It's a very powerful library capable of many kinds of graphs / plots, and very quick and capable. The most obvious downside is that it needs to be used within a browser widget - but well worth looking at it if you can. >>>> >>>> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting library. It is (I think) fairly easy to use - but that may not be the case for someone else coming to it new. I know it can handle this case of bifurcating plots (using multiple sequences of data points). The conference slides were a decent, if very brief, introduction; the lengthier documentation was, maybe, not quite complete. However, it does come with a demo app that uses the library to draw a variety of graph types. Main advantage is it's pure LC, and hopefully easy to use - both in understanding and in ease of integration into an app (you just create a suitable group to contain the graph, set its rect properly and pass in all the point data along with various parameters. It has nowhere near the coverage of different graph types that JSPlot does - it's basically line, bar and scatter plots, with primary X-axis, and can have shading, etc. >>>> >>>> Option C. Roll your own. >>>> >>>> I'd certainly suggest investigating the use of an existing library first. There's quite a lot of effort needs to go into determining how to scale the data to the space available, how to label the axes, how to add tick marks, grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 90% of the effort of creating the library. >>>> >>>> If you'd like to try out my library, the latest version can be found at >>>> >>>> https://www.tweedly.org/lcms.lc/GraphMaker >>>> >>>> (sorry - I haven't formatted it into my usual download structure - so this is simply a page that gives links that allow you to download the 2 files you need and 2 more files you don't need.) >>>> >>>> Of course, I'll be happy to help out in any way I can with it. >>>> >>>> Alex. >>>> >>>> P.S. the demo app includes an example of a 'branching' plot (Graph 3). >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 4 18:43:40 2020 From: irog at mac.com (Roger Guay) Date: Wed, 4 Nov 2020 15:43:40 -0800 Subject: Plotting Equations that Bifurcate In-Reply-To: References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> <07AF247C-3C6B-40F1-937F-F1CD390C1668@mac.com> Message-ID: <606501D2-1372-4E8F-86B8-F56375DEE954@mac.com> I was thinking of taking a tangent approach. How about PlotDuJour? > On Nov 4, 2020, at 3:37 PM, Jerry Jensen via use-livecode wrote: > > Neil DeGraph Tyson? > >> On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode wrote: >> >> Oooh, I like it! How about VanDeGraph? >> >> Roger >> >>> On Nov 4, 2020, at 3:03 PM, scott--- via use-livecode wrote: >>> >>> I assume the expanded version will be called SedanDeGraph. >>> ? >>> Scott >>> >>>> On Nov 4, 2020, at 10:09 AM, Roger Guay via use-livecode wrote: >>>> >>>> Hi Alex, >>>> >>>> Thanks for your continued interest in my little project. I have succeeded in implementing a multiple polygon approach, but it ain?t elegant as they say! >>>> >>>> I seem to recall that I learned a lot from your GraphMaker some time ago, but as I try to review your latest on your website, I run into repeated errors about ?can?t find handler gmSetCustomMarker?. I can?t seem to make any headway to resolve this. Am I supposed to do something with the ?Library?? I could not find instructions anywhere. >>>> >>>> Meanwhile, I should explain further that I am trying to expand on a stack that I built 2 or 3 years ago called CoupDeGraph which you can find in the Example Stacks of LiveCode. Put simply, I am currently trying to expand on CoupDeGraph to be able to handle double-valued equations. >>>> >>>> Again, thanks for your help >>>> >>>> Roger >>>> >>>>> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode wrote: >>>>> >>>>> On 31/10/2020 02:28, Roger Guay via use-livecode wrote: >>>>> >>>>>> Lots of clever ideas here, Alex, but I think you?re missing the point of what I ultimately want to do. I'm building a plotting program for which I want to plot any equation including those that have multiple values of y for a given x. An equation might branch at any point and might even have multiple branches both of which are unknown before plotting. >>>>>> >>>>>> Of course, there?s always the possibility that I?m not fully comprehending your suggestions??? What does NB stand for? Are you suggesting creating a new polygon every time a branch is detected? That just might work?! >>>>> >>>>> Hi Roger. You're right - I missed the point; I jumped to the assumption that you were asking about a fairly small, specific issue - so leapt too quickly to a code sample. But before I address the general question(s), let me get the little points out of the way :-) >>>>> >>>>> NB - sorry, kind of common usage in British English. Actually, it's from a Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take note of'. >>>>> >>>>> "a new polygon every branch" - yes, perfectly possible. Also possible is what I did in the first case of the code sample - a new 'sequence of points' for each branch, and then stitch those together (with blank lines between) into a single polygon; but that's, for now, a detail. >>>>> >>>>> The essence of the problem is that your app will (somehow) develop a number of 'sequences of *data* points' - and then those need to be translated into equivalent sets of *display* points (by either a plotting library, or by your own code) to allow it to be displayed appropriately. >>>>> >>>>> There are at least two possible plotting libraries that might do what you want (or do something close enough that they could be useful). By coincidence, they were both discussed at the San Jose LC conference in 2019.If you have access to the video / papers from that you might already have some of the info you need; I don't know if the conference papers are ever put out for more general usage later. >>>>> >>>>> Option A. Monte described a wrapper for the JSPlot library. It's a very powerful library capable of many kinds of graphs / plots, and very quick and capable. The most obvious downside is that it needs to be used within a browser widget - but well worth looking at it if you can. >>>>> >>>>> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting library. It is (I think) fairly easy to use - but that may not be the case for someone else coming to it new. I know it can handle this case of bifurcating plots (using multiple sequences of data points). The conference slides were a decent, if very brief, introduction; the lengthier documentation was, maybe, not quite complete. However, it does come with a demo app that uses the library to draw a variety of graph types. Main advantage is it's pure LC, and hopefully easy to use - both in understanding and in ease of integration into an app (you just create a suitable group to contain the graph, set its rect properly and pass in all the point data along with various parameters. It has nowhere near the coverage of different graph types that JSPlot does - it's basically line, bar and scatter plots, with primary X-axis, and can have shading, etc. >>>>> >>>>> Option C. Roll your own. >>>>> >>>>> I'd certainly suggest investigating the use of an existing library first. There's quite a lot of effort needs to go into determining how to scale the data to the space available, how to label the axes, how to add tick marks, grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 90% of the effort of creating the library. >>>>> >>>>> If you'd like to try out my library, the latest version can be found at >>>>> >>>>> https://www.tweedly.org/lcms.lc/GraphMaker >>>>> >>>>> (sorry - I haven't formatted it into my usual download structure - so this is simply a page that gives links that allow you to download the 2 files you need and 2 more files you don't need.) >>>>> >>>>> Of course, I'll be happy to help out in any way I can with it. >>>>> >>>>> Alex. >>>>> >>>>> P.S. the demo app includes an example of a 'branching' plot (Graph 3). >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 4 18:58:06 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 4 Nov 2020 15:58:06 -0800 Subject: Plotting Equations that Bifurcate In-Reply-To: References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> <07AF247C-3C6B-40F1-937F-F1CD390C1668@mac.com> Message-ID: <2cdd828e-a3cb-b265-d4bd-69e9bd34eac7@sonic.net> On 11/4/20 3:37 PM, Jerry Jensen via use-livecode wrote: > Neil DeGraph Tyson? > >> On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode wrote: >> >> Oooh, I like it! How about VanDeGraph? The Graph is Always Greener. -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Wed Nov 4 19:00:53 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 5 Nov 2020 01:00:53 +0100 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> Message-ID: What do you mean with session variables? To be honest i am not very used with Javascript. I just did a quick test to write a cookie with JS and read it with LC server. ;) Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 05.11.2020 um 00:31 schrieb Rick Harrison via use-livecode : > > Hi Matthias, > > Well, that works fine! > > I?ll have to study what I did differently to figure why my method didn?t work. > > Will this work with Session variables too? > > Thanks, > > Rick > >> On Nov 4, 2020, at 4:35 PM, matthias rebbe via use-livecode wrote: >> >> Hi Rick, >> >> there are two files: >> >> writecookies.html >> readcookies.lc >> >> See the code of each here >> https://livecode.dermattes.de/javascript/showcode.lc >> >> - >> Matthias Rebbe > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Nov 4 20:01:19 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Nov 2020 01:01:19 +0000 Subject: Plotting Equations that Bifurcate In-Reply-To: <2cdd828e-a3cb-b265-d4bd-69e9bd34eac7@sonic.net> References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> <07AF247C-3C6B-40F1-937F-F1CD390C1668@mac.com> <2cdd828e-a3cb-b265-d4bd-69e9bd34eac7@sonic.net> Message-ID: The plot sickens? Bob S On Nov 4, 2020, at 3:58 PM, Mark Wieder via use-livecode > wrote: On 11/4/20 3:37 PM, Jerry Jensen via use-livecode wrote: Neil DeGraph Tyson? On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode > wrote: Oooh, I like it! How about VanDeGraph? The Graph is Always Greener. -- Mark Wieder ahsoftware at gmail.com From irog at mac.com Wed Nov 4 20:07:45 2020 From: irog at mac.com (Roger Guay) Date: Wed, 4 Nov 2020 17:07:45 -0800 Subject: Plotting Equations that Bifurcate In-Reply-To: References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> <07AF247C-3C6B-40F1-937F-F1CD390C1668@mac.com> <2cdd828e-a3cb-b265-d4bd-69e9bd34eac7@sonic.net> Message-ID: PlotPurri and Plotpular R > On Nov 4, 2020, at 5:01 PM, Bob Sneidar via use-livecode wrote: > > The plot sickens? > > Bob S > > > On Nov 4, 2020, at 3:58 PM, Mark Wieder via use-livecode > wrote: > > On 11/4/20 3:37 PM, Jerry Jensen via use-livecode wrote: > Neil DeGraph Tyson? > On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode > wrote: > > Oooh, I like it! How about VanDeGraph? > > The Graph is Always Greener. > > -- > 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 harrison at all-auctions.com Wed Nov 4 20:12:40 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 4 Nov 2020 20:12:40 -0500 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> Message-ID: <04C0AD38-E66B-4DD7-9037-B03832E2A33D@all-auctions.com> Hi Matthias, Session Variables are like cookies except they auto-expire at the end of a browser session like when you close a tab or window. In Javascript one would set a session variable this way: One would retrieve the session variable in Javascript this way: In LiveCode one would set a session variable like this: To retrieve the session variable in LiveCode: So, I?m wondering that since we are able to have LiveCode retrieve Javascript cookies, then perhaps it can retrieve Javascript session variables too. I just haven?t quite made the connection yet. Your thoughts? Rick > On Nov 4, 2020, at 7:00 PM, matthias rebbe via use-livecode wrote: > > What do you mean with session variables? > > To be honest i am not very used with Javascript. > I just did a quick test to write a cookie with JS and read it with LC server. ;) > > Regards, > Matthias From alex at tweedly.net Wed Nov 4 20:28:11 2020 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 5 Nov 2020 01:28:11 +0000 Subject: Plotting Equations that Bifurcate In-Reply-To: <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <7ed9c697-7daa-6615-6bec-a62d5399bdeb@tweedly.net> <29156838-7D2B-41CC-B4F7-5567B8B412A5@mac.com> Message-ID: <15791ff0-1e9d-b9c9-e74c-a68385400544@tweedly.net> Hi, gmSetCustomMarker is the first gm Library handler called in the demo app - so it sounds like the library isn't being downloaded or set up properly. I found one combination of browser and laptop here where the .livecodescript file is displayed as though it were a text file, rather than being downloaded! No idea why !! So, I've uploaded a ZIP archive. Visit https://www.tweedly.org/lcms.lc/GraphMaker again, and use the archive link to download the zip fie and decompress it. Then open the demo app in the IDE. In the IDE, you could set a breakpoint in 'openstack' on card 1 of the demo app, and verify that the library is being properly found in the 'start using tt' line, e.g. by checking the stacksinuse just after it. If the library is properly loaded, then the "can't find handler gmSetCustomMarker" problm should disappear. Cool - I'll go take a look at CoupDeGraph. I've been wondering how you handle multi-bifurcating functions - but that'll be a separate email (after I've looked at CoupDeGraph :-) Alex. On 04/11/2020 18:09, Roger Guay via use-livecode wrote: > Hi Alex, > > Thanks for your continued interest in my little project. I have succeeded in implementing a multiple polygon approach, but it ain?t elegant as they say! > > I seem to recall that I learned a lot from your GraphMaker some time ago, but as I try to review your latest on your website, I run into repeated errors about ?can?t find handler gmSetCustomMarker?. I can?t seem to make any headway to resolve this. Am I supposed to do something with the ?Library?? I could not find instructions anywhere. > > Meanwhile, I should explain further that I am trying to expand on a stack that I built 2 or 3 years ago called CoupDeGraph which you can find in the Example Stacks of LiveCode. Put simply, I am currently trying to expand on CoupDeGraph to be able to handle double-valued equations. > > Again, thanks for your help > > Roger > >> On Nov 3, 2020, at 4:48 PM, Alex Tweedly via use-livecode wrote: >> >> On 31/10/2020 02:28, Roger Guay via use-livecode wrote: >> >>> Lots of clever ideas here, Alex, but I think you?re missing the point of what I ultimately want to do. I'm building a plotting program for which I want to plot any equation including those that have multiple values of y for a given x. An equation might branch at any point and might even have multiple branches both of which are unknown before plotting. >>> >>> Of course, there?s always the possibility that I?m not fully comprehending your suggestions??? What does NB stand for? Are you suggesting creating a new polygon every time a branch is detected? That just might work?! >> Hi Roger. You're right - I missed the point; I jumped to the assumption that you were asking about a fairly small, specific issue - so leapt too quickly to a code sample. But before I address the general question(s), let me get the little points out of the way :-) >> >> NB - sorry, kind of common usage in British English. Actually, it's from a Latin phrase - "Nota Bene" - meaning "note well". So basically just 'take note of'. >> >> "a new polygon every branch" - yes, perfectly possible. Also possible is what I did in the first case of the code sample - a new 'sequence of points' for each branch, and then stitch those together (with blank lines between) into a single polygon; but that's, for now, a detail. >> >> The essence of the problem is that your app will (somehow) develop a number of 'sequences of *data* points' - and then those need to be translated into equivalent sets of *display* points (by either a plotting library, or by your own code) to allow it to be displayed appropriately. >> >> There are at least two possible plotting libraries that might do what you want (or do something close enough that they could be useful). By coincidence, they were both discussed at the San Jose LC conference in 2019.If you have access to the video / papers from that you might already have some of the info you need; I don't know if the conference papers are ever put out for more general usage later. >> >> Option A. Monte described a wrapper for the JSPlot library. It's a very powerful library capable of many kinds of graphs / plots, and very quick and capable. The most obvious downside is that it needs to be used within a browser widget - but well worth looking at it if you can. >> >> Option B. I did a library called "GraphMaker" - a pure-Livecode plotting library. It is (I think) fairly easy to use - but that may not be the case for someone else coming to it new. I know it can handle this case of bifurcating plots (using multiple sequences of data points). The conference slides were a decent, if very brief, introduction; the lengthier documentation was, maybe, not quite complete. However, it does come with a demo app that uses the library to draw a variety of graph types. Main advantage is it's pure LC, and hopefully easy to use - both in understanding and in ease of integration into an app (you just create a suitable group to contain the graph, set its rect properly and pass in all the point data along with various parameters. It has nowhere near the coverage of different graph types that JSPlot does - it's basically line, bar and scatter plots, with primary X-axis, and can have shading, etc. >> >> Option C. Roll your own. >> >> I'd certainly suggest investigating the use of an existing library first. There's quite a lot of effort needs to go into determining how to scale the data to the space available, how to label the axes, how to add tick marks, grid lines and (perhaps) multiple Y-axes. That stuff probably accounted for 90% of the effort of creating the library. >> >> If you'd like to try out my library, the latest version can be found at >> >> https://www.tweedly.org/lcms.lc/GraphMaker >> >> (sorry - I haven't formatted it into my usual download structure - so this is simply a page that gives links that allow you to download the 2 files you need and 2 more files you don't need.) >> >> Of course, I'll be happy to help out in any way I can with it. >> >> Alex. >> >> P.S. the demo app includes an example of a 'branching' plot (Graph 3). >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From theaford at btinternet.com Thu Nov 5 02:47:21 2020 From: theaford at btinternet.com (Terence Heaford) Date: Thu, 5 Nov 2020 07:47:21 +0000 Subject: Segmented Control Widget Message-ID: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> I have been messing about with the Segmented Control Widget and have been trying to apply a tooltip. I noted that the tooltip can only be applied to the whole control, it does not appear possible to have a tooltip for each segment. Is this possible and if so could someone please advise. All the best Terry From matthias_livecode_150811 at m-r-d.de Thu Nov 5 07:18:35 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 5 Nov 2020 13:18:35 +0100 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: <04C0AD38-E66B-4DD7-9037-B03832E2A33D@all-auctions.com> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> <04C0AD38-E66B-4DD7-9037-B03832E2A33D@all-auctions.com> Message-ID: <7A1C0DE8-57F1-4C19-9652-598878AE70B1@m-r-d.de> Rick, you are mixing something. $_session array is stored on the server while sessionstorage is stored on the clients computer. I am not sure that there is a direct way to let Livecode Server read sessionstorage directly from the clients computer, but i might be wrong. At least PHP is not able. One way would be to use Javascript to read the storagesession and post it to a LC Server script using Ajax. You could even do this from one single LC server script. In the script you would check if the $_POST array contains any data. If the $_POST array is empty, then you have to execute the javascript that fetches the sessionstorage data and if there is sessionstorage then it posts that data to the script again. If the $_POST array is not empty, then you can continue the script using the sessionstorage data. At least this is the way how it is done in .php I've used this method a lot for processing form data. HTH Matthias > Am 05.11.2020 um 02:12 schrieb Rick Harrison via use-livecode : > > Hi Matthias, > > Session Variables are like cookies except they auto-expire at the end of a browser session > like when you close a tab or window. > > In Javascript one would set a session variable this way: > > > > > One would retrieve the session variable in Javascript this way: > > > > > > In LiveCode one would set a session variable like this: > > > start session > > put ?Matthias? into VarFirstName > > put VarFirstName into $_SESSION["NewFirstName?] > > stop session > > ?> > > To retrieve the session variable in LiveCode: > > > start session > > put $_SESSION["NewFirstName?] into VarFirstName > > stop session > > ?> > > So, I?m wondering that since we are able to have LiveCode retrieve Javascript cookies, > then perhaps it can retrieve Javascript session variables too. > > I just haven?t quite made the connection yet. > > Your thoughts? > > Rick > >> On Nov 4, 2020, at 7:00 PM, matthias rebbe via use-livecode wrote: >> >> What do you mean with session variables? >> >> To be honest i am not very used with Javascript. >> I just did a quick test to write a cookie with JS and read it with LC server. ;) >> >> Regards, >> Matthias > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode - Matthias Rebbe Life Is Too Short For Boring Code From david.bovill at gmail.com Thu Nov 5 07:24:56 2020 From: david.bovill at gmail.com (David Bovill) Date: Thu, 5 Nov 2020 12:24:56 +0000 Subject: mergeJSON on server problem In-Reply-To: References: <855168A4-F707-4321-AB9B-0D3A962CD2E0@mac.com> <3CB8250E-ADD5-4356-8601-D3FAA98D53BF@iotecdigital.com> <2620C4B3-20E9-4717-BB1B-0B9E84B17D82@gmail.com> <000201d6aef7$e0599250$a10cb6f0$@starfirelighting.com> <94C3A5ED-98A5-47FE-81C8-EAAD0F4BA012@mac.com> <0C18F9D7-32EF-40DA-A90D-CF45B72D1AB5@mac.com> <2392ac57-8e49-2a90-da50-e13188d6b42a@tweedly.net> <0a6bce62-55b8-a70c-4ed8-fbae761780d7@sonic.net> <30162a76-9166-4d35-84b8-2a1758559a5b@Spark> Message-ID: Let me dig into this in more detail with some tests - other data encoding is causing problems. Note I only find this on the unix server not with the local MacOS version of the same code and data. I?m going to refer to this stack overflow answer regarding encoding: https://stackoverflow.com/questions/583562/json-character-encoding-is-utf-8-well-supported-by-browsers-or-should-i-use-nu On 2 Nov 2020, 09:28 +0000, Monte Goulding via use-livecode , wrote: > > > > On 1 Nov 2020, at 6:21 am, David Bovill via use-livecode wrote: > > > > Thanks Mark - I may give fastjson a go. > > > > I tracked down the problem to the "\u00a0? unicode character in the json I fetched, which was causing mergeJSON to fail. This hack fixed the issue in a temporary way. > > replace "\u00a0? with empty in episodeJson -- hack to remove "?" > > > > Any thoughts on safe encoding of data I fetch fro jsonrpc calls so that it plays nicely with Livecode? > > Hi David > > The following seems to work without error: > put format("[ \"\\u00a0\" ]") into tJSON; get JSONToArray(tJSON); put tJSON && it[1] > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at liverpool.ac.uk Thu Nov 5 10:03:16 2020 From: phil at liverpool.ac.uk (Jimmieson, Phil) Date: Thu, 5 Nov 2020 15:03:16 +0000 Subject: Ideas on iOS GPS tracking needed In-Reply-To: <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> Message-ID: <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> Hi Graham, PS The only test data I have been able to find for the XCode Simulator is a bike ride in California which runs along giving a succession of GPS . It is quite useful, but naturally it doesn?t involve anomalies. You can make your own location simulations to run in the iOS simulator. They are .gpx files containing coordinate information in XML format. I created one for my students to use on my App Development (in Swift) module. I managed to hack it together and made a simulated walk/run around part of the Liverpool University Campus. To make one these you need GPS coordinates (I got them from Google Maps) and times - the difference in time from the last step determines the speed that the marker travels from the previous step. Since it was done by hand, the times between steps don?t match well with the distances and so the walk turns into a very fast run once or twice, but it works as an example. Copy and paste the text below into a text file and save it with a ?.gpx? extension. Ashton Building step 1 step 2 step 3 step 4 step 5 step 6 step 7 step 8 step 9 step 10 step 11 step 12 -- Phil Jimmieson University of Liverpool, Computer Science Department Ashton Bldg, Ashton Street, Liverpool. L69 3BX 0151 795 4236 From rdimola at evergreeninfo.net Thu Nov 5 12:48:10 2020 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 5 Nov 2020 12:48:10 -0500 Subject: New Google PlayStore Console In-Reply-To: <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> Message-ID: <003701d6b39b$d6c81d30$84585790$@net> I received these 3 warnings when uploading APKs using the new Google Play Console. The first one I've been seeing for a while. Anyone know about the last 2? I assume the second one is LCs use of the JVM. Warning This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users' devices than it needs to be. Larger apps see lower install success rates and take up storage on users' devices. Warning This APK contains Java/Kotlin code, which might be obfuscated. We recommend you upload a deobfuscation file to make your crashes and ANRs easier to analyze and debug. Learn More Warning This APK contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug. Learn More Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From jacque at hyperactivesw.com Thu Nov 5 15:10:57 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 5 Nov 2020 14:10:57 -0600 Subject: Segmented Control Widget In-Reply-To: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> References: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> Message-ID: On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote: > I have been messing about with the Segmented Control Widget and have been trying to apply a tooltip. > > I noted that the tooltip can only be applied to the whole control, it does not appear possible to have a tooltip for each segment. > > Is this possible and if so could someone please advise. I've done this with a custom control group, it should work with a widget too. Calculate the rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the appropriate string. You can also add a mouseMove handler to do the same thing if you want to change tooltips as the mouseLoc changes inside the widget. If the updated tooltip doesn't display reliably, set the tooltip to empty, wait a millisecond or so, and then set it to the new string. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Thu Nov 5 17:43:59 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Nov 2020 22:43:59 +0000 Subject: Segmented Control Widget In-Reply-To: References: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> Message-ID: The segmented control is fairly limited. Most of the widgets are. The properties you see are the properties you get. I did however, with a bit of clever scripting, develop a tabbed object group that works as well or better that the built in tabbed button. And for a bonus, it looks in Windows the same as it loos on the Mac. Really, the Windows UI is really horrible for LC. I just gotta say. It puts the Ugh in Ughly. Bob S > On Nov 5, 2020, at 12:10 PM, J. Landman Gay via use-livecode wrote: > > On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote: >> I have been messing about with the Segmented Control Widget and have been trying to apply a tooltip. >> I noted that the tooltip can only be applied to the whole control, it does not appear possible to have a tooltip for each segment. >> Is this possible and if so could someone please advise. > > I've done this with a custom control group, it should work with a widget too. Calculate the rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the appropriate string. You can also add a mouseMove handler to do the same thing if you want to change tooltips as the mouseLoc changes inside the widget. > > If the updated tooltip doesn't display reliably, set the tooltip to empty, wait a millisecond or so, and then set it to the new string. > > -- > 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 Thu Nov 5 20:59:27 2020 From: tom at makeshyft.com (Tom Glod) Date: Thu, 5 Nov 2020 20:59:27 -0500 Subject: New Google PlayStore Console In-Reply-To: <003701d6b39b$d6c81d30$84585790$@net> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> <003701d6b39b$d6c81d30$84585790$@net> Message-ID: following, On Thu, Nov 5, 2020 at 12:46 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > I received these 3 warnings when uploading APKs using the new Google Play > Console. The first one I've been seeing for a while. Anyone know about the > last 2? I assume the second one is LCs use of the JVM. > > Warning > This APK results in unused code and resources being sent to users. Your > app could be smaller if you used the Android App Bundle. By not optimizing > your app for device configurations, your app is larger to download and > install on users' devices than it needs to be. Larger apps see lower > install success rates and take up storage on users' devices. > > Warning > This APK contains Java/Kotlin code, which might be obfuscated. We > recommend you upload a deobfuscation file to make your crashes and ANRs > easier to analyze and debug. Learn More > > Warning > This APK contains native code, and you've not uploaded debug symbols. We > recommend you upload a symbol file to make your crashes and ANRs easier to > analyze and debug. Learn More > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From harrison at all-auctions.com Thu Nov 5 21:54:33 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 5 Nov 2020 21:54:33 -0500 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> Message-ID: Hi Matthias, I found the problem. You had: put $_Cookie["username?] It shouldn?t have the quotes. put $_Cookie[username] works fine. I think I made the same mistake sometime! LOL Cookies reside in the client?s web-browser which is why as users were are always clearing them out. So, LiveCode can read Javascript cookies! Yay! It?s good enough for now. I?ll revisit Javascript session variables later. Thanks for your help! Rick > On Nov 4, 2020, at 2:04 PM, matthias rebbe via use-livecode wrote: > > Hi Rick, > > i just did a quick test and created an html file which wrote a cookie with javascript > > > > Then in LC Server i used the array $_cookie to read the content of the cookie > > Doing a > put $_Cookie["username"] > > returned Rick > > > Regards > Matthias From matthias_livecode_150811 at m-r-d.de Fri Nov 6 06:04:17 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 6 Nov 2020 12:04:17 +0100 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> Message-ID: <70BD240E-5C60-448C-A803-CCA86234B791@m-r-d.de> I doubt that the qoutes were the problem. ;) Your put $_cookie[username] will replace the content of the var username. In your case, if the value of variable username for example is Peter then LC would replace $_cookie[username] with $_cookie["Peter"] If username wasn't used before then LC uses username as the value of username In this case LC would replace $_cookie[username] with $_cookie["username"]. So for example put "hallo" into tArray["mytext"] put tArray["mytext"] --returns hallo put tArray[mytext] -- returns hallo put "test" into mytext put tArray[mytext] -- returns nothing So i am not sure, what the problem was, but definitely not the quotes. ;) Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 06.11.2020 um 03:54 schrieb Rick Harrison via use-livecode : > > Hi Matthias, > > I found the problem. > > You had: put $_Cookie["username?] > > It shouldn?t have the quotes. > > put $_Cookie[username] > > works fine. > > I think I made the same mistake sometime! LOL > > Cookies reside in the client?s web-browser which is why > as users were are always clearing them out. > > So, LiveCode can read Javascript cookies! Yay! > > It?s good enough for now. I?ll revisit Javascript session variables later. > > Thanks for your help! > > Rick > >> On Nov 4, 2020, at 2:04 PM, matthias rebbe via use-livecode wrote: >> >> Hi Rick, >> >> i just did a quick test and created an html file which wrote a cookie with javascript >> >> >> >> Then in LC Server i used the array $_cookie to read the content of the cookie >> >> Doing a >> put $_Cookie["username"] >> >> returned Rick >> >> >> Regards >> Matthias > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From theaford at btinternet.com Fri Nov 6 11:11:47 2020 From: theaford at btinternet.com (Terence Heaford) Date: Fri, 6 Nov 2020 16:11:47 +0000 Subject: Segmented Control Widget In-Reply-To: References: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> Message-ID: <5E983005-0042-4E2B-AD10-5696910D29E1@btinternet.com> Thanks for your suggestion will give it a try. All the best Terry > On 5 Nov 2020, at 20:10, J. Landman Gay via use-livecode wrote: > > On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote: >> I have been messing about with the Segmented Control Widget and have been trying to apply a tooltip. >> I noted that the tooltip can only be applied to the whole control, it does not appear possible to have a tooltip for each segment. >> Is this possible and if so could someone please advise. > > I've done this with a custom control group, it should work with a widget too. Calculate the rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the appropriate string. You can also add a mouseMove handler to do the same thing if you want to change tooltips as the mouseLoc changes inside the widget. > > If the updated tooltip doesn't display reliably, set the tooltip to empty, wait a millisecond or so, and then set it to the new string. > > -- > 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 theaford at btinternet.com Fri Nov 6 11:15:07 2020 From: theaford at btinternet.com (Terence Heaford) Date: Fri, 6 Nov 2020 16:15:07 +0000 Subject: Segmented Control Widget In-Reply-To: References: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> Message-ID: I can see the advantages of doing it yourself and intend trying both methods as suggested by yourself and Jaqueline. I have noted when trying some of the widgets that they do seem to be rather incomplete. All the best Terry > On 5 Nov 2020, at 22:43, Bob Sneidar via use-livecode wrote: > > The segmented control is fairly limited. Most of the widgets are. The properties you see are the properties you get. I did however, with a bit of clever scripting, develop a tabbed object group that works as well or better that the built in tabbed button. And for a bonus, it looks in Windows the same as it loos on the Mac. Really, the Windows UI is really horrible for LC. I just gotta say. It puts the Ugh in Ughly. > > Bob S > > >> On Nov 5, 2020, at 12:10 PM, J. Landman Gay via use-livecode wrote: >> >> On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote: >>> I have been messing about with the Segmented Control Widget and have been trying to apply a tooltip. >>> I noted that the tooltip can only be applied to the whole control, it does not appear possible to have a tooltip for each segment. >>> Is this possible and if so could someone please advise. >> >> I've done this with a custom control group, it should work with a widget too. Calculate the rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the appropriate string. You can also add a mouseMove handler to do the same thing if you want to change tooltips as the mouseLoc changes inside the widget. >> >> If the updated tooltip doesn't display reliably, set the tooltip to empty, wait a millisecond or so, and then set it to the new string. >> >> -- >> 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 Fri Nov 6 11:42:15 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 6 Nov 2020 11:42:15 -0500 Subject: Pass Javascript Session Cookie to LiveCode Variable? In-Reply-To: <70BD240E-5C60-448C-A803-CCA86234B791@m-r-d.de> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <254DD730-75C4-4956-ACEC-9B4F13D902C1@m-r-d.de> <70BD240E-5C60-448C-A803-CCA86234B791@m-r-d.de> Message-ID: Hi Matthias, Hmm, I should never do things when I?m tired. I do the following all the time with LC session variables and they do use the quotes. put $_SESSION["userid"] into Varuserid Yet the following works nicely and no array is needed:
" put "VarAdditionResult = " & VarAdditionResult put "

" ?> So $_cookie[AdditionResult] and $_cookie[?AdditionResult?] are different variables? I will have to play around some more. I?m happy that at least something is working now. I just need to know why. Cheers, Rick > On Nov 6, 2020, at 6:04 AM, matthias rebbe via use-livecode wrote: > > I doubt that the qoutes were the problem. ;) > > Your > put $_cookie[username] > will replace the content of the var username. > In your case, if the value of variable username for example is Peter then > LC would replace $_cookie[username] with $_cookie["Peter"] > > If username wasn't used before then LC uses username as the value of username > > In this case LC would replace $_cookie[username] with $_cookie["username"]. > > So for example > put "hallo" into tArray["mytext"] > put tArray["mytext"] --returns hallo > put tArray[mytext] -- returns hallo > put "test" into mytext > put tArray[mytext] -- returns nothing > > So i am not sure, what the problem was, but definitely not the quotes. ;) > > Regards, > Matthias > > From david.bovill at gmail.com Fri Nov 6 16:28:44 2020 From: david.bovill at gmail.com (David Bovill) Date: Fri, 6 Nov 2020 21:28:44 +0000 Subject: Is the DateFormat read only? In-Reply-To: References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> Message-ID: <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> Why does: get?"Fri, 06 Nov 2020 10:57:37 +0300" convert?it?to?internet?date put?it ? give "Fri, 06 Nov 2020 10:57:37 +0000" Just?seems to strip the timezone info? On 30 Oct 2020, 21:29 +0000, How to use LiveCode , wrote: > > ToUniversalTime From david.bovill at gmail.com Fri Nov 6 17:29:01 2020 From: david.bovill at gmail.com (David Bovill) Date: Fri, 6 Nov 2020 22:29:01 +0000 Subject: Basic question: Time Zone Library In-Reply-To: <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> Message-ID: <292c40d9-f841-4e6e-9b43-0d10f75a334c@Spark> Just created a handler that I want to use in a Livecode server that uses the Time Zone Library handler TimeZones(). So: 1. How do I find where the library is? 2. How do I add it so the server code can use it? On 6 Nov 2020, 21:28 +0000, How to use LiveCode , wrote: > > ToUniversalTime From matthias_livecode_150811 at m-r-d.de Fri Nov 6 18:11:01 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sat, 7 Nov 2020 00:11:01 +0100 Subject: Basic question: Time Zone Library In-Reply-To: <292c40d9-f841-4e6e-9b43-0d10f75a334c@Spark> References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> <292c40d9-f841-4e6e-9b43-0d10f75a334c@Spark> Message-ID: <991D2BEC-962C-4498-A963-C3AD53AB9F7C@m-r-d.de> Hi, i am not sure if this is still the way how to do it with newer LC Server versions, but at least it still works with LC 9.6.1 First copy the folder of of the time zone library to your server for example into a folder extension Then, to use the library you'll have to put the following 2 lines before your time zone specific code. set the revLibraryMapping["tz"] to "/home/ua829968/public_html/livecode.dermattes.de/tz-test/extensions/com.livecode.library.timezone/code/x86_64-linux/tz.so" load extension from file "./extensions/com.livecode.library.timezone/module.lcm" //here comes your timezone script In the first line you define where the needed shared libraries are located. It must contain the complete path to the shared libraries. In the above example the shared library for 64bit Linux is used. The second line then loads the extension. Mark Waddingham provided that information here 2 years ago https://www.mail-archive.com/use-livecode at lists.runrev.com/msg97605.html Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 06.11.2020 um 23:29 schrieb David Bovill via use-livecode : > > Just created a handler that I want to use in a Livecode server that uses the Time Zone Library handler TimeZones(). So: > > 1. How do I find where the library is? > 2. How do I add it so the server code can use it? > > On 6 Nov 2020, 21:28 +0000, How to use LiveCode , wrote: >> >> ToUniversalTime > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Fri Nov 6 19:34:55 2020 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 7 Nov 2020 00:34:55 +0000 Subject: Is the DateFormat read only? In-Reply-To: <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> Message-ID: <74794806-e06e-986e-6d19-4c93bb312cbf@tweedly.net> I don't think it "strips" the TZ info - it simply ignores it. I think the key phrase is in the dictionary as : > *Note:* The *convert* command assumes all dates / times are in local > time except for 'the seconds', which is taken to be universal time. > So it assume syou date is in local time (regardless of the +0300), and therefore your example returns +0000 for you (I assume you're in the UK, or equivalent,? now). It does the same for me, and returns the date with "+0000". However, the same code run on my LC server (wherever on-rev is these days), changes the +0300 to -0500 - i.e. it's taken as local time where the server is. I assume you should be able to do something with the TimeZone library - but I'm struggling to figure that out. > ?? local tNow > ?? put the seconds into tNow > ?? put FromUniversalTime(tNow,"US/Central") into tt > ?? put tNow && tt > ?? put FromUniversalTime(tNow,"US/Alaska") into tt > ?? put CR & tt after msg gives me 1604709030 1604709030 1604709030 so I don't have a clue? what it was trying to do !?! Alex. On 06/11/2020 21:28, David Bovill via use-livecode wrote: > Why does: > > get?"Fri, 06 Nov 2020 10:57:37 +0300" > convert?it?to?internet?date > put?it > > ? give > "Fri, 06 Nov 2020 10:57:37 +0000" > > Just?seems to strip the timezone info? > On 30 Oct 2020, 21:29 +0000, How to use LiveCode , wrote: >> ToUniversalTime > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From theaford at btinternet.com Sat Nov 7 03:39:50 2020 From: theaford at btinternet.com (Terence Heaford) Date: Sat, 7 Nov 2020 08:39:50 +0000 Subject: Segmented Control Widget In-Reply-To: References: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> Message-ID: > On 5 Nov 2020, at 20:10, J. Landman Gay via use-livecode wrote: > > I've done this with a custom control group, it should work with a widget too. Calculate the rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the appropriate string. You can also add a mouseMove handler to do the same thing if you want to change tooltips as the mouseLoc changes inside the widget. I placed the segmented control widget in a group and put a simple on mouseEnter beep end mouseEnter in the script of the group. This did not implement a beep sound. I placed the same script in the segmented control and that did not make a beep either. I read the dictionary for mouseEnter and it does not apply to a group, I assume it also does not apply to the segmented control widget. I then created three standard buttons and placed those in a group. Placed the above script in the group. and each time the mouse entered a button it beeped. It did not beep upon entering the group. Is all this the correct behaviour? If it is then it is not possible to create your own tooltip for a segmented control widget unless there is some more fiddling that can be done. It seems creating your own segmented control may be the only solution. Any ideas Thanks Terry From livfoss at mac.com Sat Nov 7 04:42:01 2020 From: livfoss at mac.com (Graham Samuel) Date: Sat, 7 Nov 2020 10:42:01 +0100 Subject: Issue with 'beep' on iOS Message-ID: <0A392369-AB2E-4F20-8BA8-54D0220BC5BB@mac.com> In my iOS app, I create a special beep sound, as explained in the LC Dictionary entry for ?beep?. It works fine on the Simulator, but on a real phone, there?s no sound. Vibration works OK. I have not turned off sound on the phone, and I have checked to see if any other controls on the phone might be wrongly set but I can?t find any. Ring tones, system sounds, music and sounds from external sources work. I seem to remember it worked before I upgraded to iOS 14. Can anyone suggest what?s happening? From livfoss at mac.com Sat Nov 7 05:27:04 2020 From: livfoss at mac.com (Graham Samuel) Date: Sat, 7 Nov 2020 11:27:04 +0100 Subject: Is the DateFormat read only? In-Reply-To: <74794806-e06e-986e-6d19-4c93bb312cbf@tweedly.net> References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> <74794806-e06e-986e-6d19-4c93bb312cbf@tweedly.net> Message-ID: I am as confused as anyone else as to what you are trying to do, but just in case, this little function seems to work for me to get the ?standard? UTC date format which I have to use in my app to put time stamps into GPX files. It apparently produces the correct time zone. Doubtless it could be more elegantly coded. Hope it helps - who knows? Graham function fUTCTime local t1,t2,t3 -- this gets the current time and puts it into UTC format, i.e YYYY-MM-DDThh:mm:ssTZD put word 5 to 6 of the internet date into t3 -- we are interested in the time and time zone put the long time into t1 convert t1 to dateItems -- format is yyyy,m,d,h,m,s,day no. put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of t1) &"T" & word 1 of t3 into t2 put word 2 of t3 into t1 -- the time zone indication get char 1 of t1 ? the code for 0 (zero) is Z, apparently if it <> "+" and it <> "-? then put "Z" after t2 else put t1 after t2 end if return t2 end fUTCTime function f2digits theNum -- add a leading zero. We don't check if there are more than two digits if number of chars of theNum = 1 then return ("0" & theNum) else return theNum end if end f2digits > On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode wrote: > > I don't think it "strips" the TZ info - it simply ignores it. I think the key phrase is in the dictionary as : > >> *Note:* The *convert* command assumes all dates / times are in local time except for 'the seconds', which is taken to be universal time. >> > So it assume syou date is in local time (regardless of the +0300), and therefore your example returns +0000 for you (I assume you're in the UK, or equivalent, now). It does the same for me, and returns the date with "+0000". > > However, the same code run on my LC server (wherever on-rev is these days), changes the +0300 to -0500 - i.e. it's taken as local time where the server is. > > > I assume you should be able to do something with the TimeZone library - but I'm struggling to figure that out. > >> local tNow >> put the seconds into tNow >> put FromUniversalTime(tNow,"US/Central") into tt >> put tNow && tt >> put FromUniversalTime(tNow,"US/Alaska") into tt >> put CR & tt after msg > gives me > > 1604709030 1604709030 > > 1604709030 > > so I don't have a clue what it was trying to do !?! > > Alex. > > On 06/11/2020 21:28, David Bovill via use-livecode wrote: >> Why does: >> >> get "Fri, 06 Nov 2020 10:57:37 +0300" >> convert it to internet date >> put it >> >> ? give >> "Fri, 06 Nov 2020 10:57:37 +0000" >> >> Just seems to strip the timezone info? >> On 30 Oct 2020, 21:29 +0000, How to use LiveCode , wrote: >>> ToUniversalTime >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Nov 7 07:57:14 2020 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 7 Nov 2020 12:57:14 +0000 Subject: Is the DateFormat read only? In-Reply-To: References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> <74794806-e06e-986e-6d19-4c93bb312cbf@tweedly.net> Message-ID: <20d56910-75f5-85a3-ae36-c6d0b34ad8e5@tweedly.net> Thanks Graham. That does indeed work - on your local system. The issue I am trying to deal with (and maybe it's related to what David is doing) is dealing with time zone issues on a LC web server. If you want to timestamp when some event happens, you can do that as a UTC timestamp using a function like this one of yours; but that leaves you two problems. ?- presenting those timestamps back to the user - which should be in *their* local time ?- allowing the user to provide their own timestamp - again should be local for them. Most advice I've found via Google, etc. suggests keeping the timestamps in UTC, and asking the user to provide their timezone - usually when they 'register'. You can then use PHP (or ...) functions to convert a date/time between UTC and their local zone. You might hope to do that in LC using 'convert .. to internet date' - but that doesn't work because that conversion (seems to) assume a local time, and then simply fill in the time offset for the local system (i.e. the problem David reported). You should be able to do it using the TimeZone library - but I haven't figured out how to to do that, or I'm using it wrong, or something. (I didn't know about the Timezone library until David mentioned it yesterday.) I'm currently using an ugly (though working :-) workaround using e.g. put "America/New_York" into timeZone *put*shell("TZ=" & timeZone & " date") into tmp and working it all out from there (assumes Unix server - don't know if it works on others). Alex. On 07/11/2020 10:27, Graham Samuel via use-livecode wrote: > I am as confused as anyone else as to what you are trying to do, but just in case, this little function seems to work for me to get the ?standard? UTC date format which I have to use in my app to put time stamps into GPX files. It apparently produces the correct time zone. Doubtless it could be more elegantly coded. > > Hope it helps - who knows? > > Graham > > function fUTCTime > local t1,t2,t3 > -- this gets the current time and puts it into UTC format, i.e YYYY-MM-DDThh:mm:ssTZD > put word 5 to 6 of the internet date into t3 -- we are interested in the time and time zone > put the long time into t1 > convert t1 to dateItems -- format is yyyy,m,d,h,m,s,day no. > put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of t1) &"T" & word 1 of t3 into t2 > put word 2 of t3 into t1 -- the time zone indication > get char 1 of t1 ? the code for 0 (zero) is Z, apparently > if it <> "+" and it <> "-? then > put "Z" after t2 > else > put t1 after t2 > end if > return t2 > end fUTCTime > > function f2digits theNum > -- add a leading zero. We don't check if there are more than two digits > if number of chars of theNum = 1 then > return ("0" & theNum) > else > return theNum > end if > end f2digits > > >> On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode wrote: >> >> I don't think it "strips" the TZ info - it simply ignores it. I think the key phrase is in the dictionary as : >> >>> *Note:* The *convert* command assumes all dates / times are in local time except for 'the seconds', which is taken to be universal time. >>> >> So it assume syou date is in local time (regardless of the +0300), and therefore your example returns +0000 for you (I assume you're in the UK, or equivalent, now). It does the same for me, and returns the date with "+0000". >> >> However, the same code run on my LC server (wherever on-rev is these days), changes the +0300 to -0500 - i.e. it's taken as local time where the server is. >> >> >> I assume you should be able to do something with the TimeZone library - but I'm struggling to figure that out. >> >>> local tNow >>> put the seconds into tNow >>> put FromUniversalTime(tNow,"US/Central") into tt >>> put tNow && tt >>> put FromUniversalTime(tNow,"US/Alaska") into tt >>> put CR & tt after msg >> gives me >> >> 1604709030 1604709030 >> >> 1604709030 >> >> so I don't have a clue what it was trying to do !?! >> >> Alex. >> >> On 06/11/2020 21:28, David Bovill via use-livecode wrote: >>> Why does: >>> >>> get "Fri, 06 Nov 2020 10:57:37 +0300" >>> convert it to internet date >>> put it >>> >>> ? give >>> "Fri, 06 Nov 2020 10:57:37 +0000" >>> >>> Just seems to strip the timezone info? >>> On 30 Oct 2020, 21:29 +0000, How to use LiveCode , wrote: >>>> ToUniversalTime >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andrew at midwestcoastmedia.com Sat Nov 7 09:17:13 2020 From: andrew at midwestcoastmedia.com (Andrew at MidWest Coast Media) Date: Sat, 7 Nov 2020 09:17:13 -0500 Subject: IOS Screen resizing /EXACT FIT not working as before In-Reply-To: References: Message-ID: <6762837D-8350-405C-8681-38D987CF872B@midwestcoastmedia.com> I?m having a similar issue with ?letterbox? on an a project. It has fit fine for years: exact fit on older devices with black bars on top/bottom of newer devices. But when I rebuild now, it shows black bars on all 4 sides of an iPhone 11. (old build currently on AppStore renders just on top/bottom) Unfortunately because of how it was designed (for 5s device size with NO resize handler), ?exactFit? will kill navigation on modern devices. The project needs a UI overhaul, and I?m using this as motivation for the client, but it seems that somewhere a change was made on how iOS device sizes are determined. I noticed a lot of chatter recently about this affecting the iPhone Plus models when zoomed. Perhaps Apple made a change in Xcode 11 if nothing has changed in LiveCode. -Andrew Bell From matthias_livecode_150811 at m-r-d.de Sat Nov 7 09:36:18 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sat, 7 Nov 2020 15:36:18 +0100 Subject: Is the DateFormat read only? In-Reply-To: <20d56910-75f5-85a3-ae36-c6d0b34ad8e5@tweedly.net> References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> <74794806-e06e-986e-6d19-4c93bb312cbf@tweedly.net> <20d56910-75f5-85a3-ae36-c6d0b34ad8e5@tweedly.net> Message-ID: <2BE167CA-3244-4BEA-BD96-E4CCD4B1A2A3@m-r-d.de> Alex, i've posted already some info about how to use the time zone library in Livecode server in my comment to David's post "Aw: Basic question: Time Zone Library". Here it is again and a little bit more detailed. 1. copy the folder com.livecode.library.timezone from the LC extensions folder to your webserver into a folder extensions. The extensions folder can be found in the App Bundle on macOS or in the windows program folder e.g. C:\Program Files (x86)\RunRev\LiveCode Business 9.6.1 2. place your .lc script in the same folder where the extensions folder exists. 3. configure/set the path where the shared library for your server os is located (see line 3 in the sample script below) 4. load the extension module.lcm (see line 4 in the sample script below) The following script uses the time zone library to output the available time zones " in tTZ put tTZ ?> - Matthias Rebbe Life Is Too Short For Boring Code > Am 07.11.2020 um 13:57 schrieb Alex Tweedly via use-livecode : > > Thanks Graham. That does indeed work - on your local system. > > The issue I am trying to deal with (and maybe it's related to what David is doing) is dealing with time zone issues on a LC web server. If you want to timestamp when some event happens, you can do that as a UTC timestamp using a function like this one of yours; but that leaves you two problems. > > - presenting those timestamps back to the user - which should be in *their* local time > - allowing the user to provide their own timestamp - again should be local for them. > > Most advice I've found via Google, etc. suggests keeping the timestamps in UTC, and asking the user to provide their timezone - usually when they 'register'. You can then use PHP (or ...) functions to convert a date/time between UTC and their local zone. > > You might hope to do that in LC using 'convert .. to internet date' - but that doesn't work because that conversion (seems to) assume a local time, and then simply fill in the time offset for the local system (i.e. the problem David reported). > > You should be able to do it using the TimeZone library - but I haven't figured out how to to do that, or I'm using it wrong, or something. (I didn't know about the Timezone library until David mentioned it yesterday.) > > I'm currently using an ugly (though working :-) workaround using e.g. > > put "America/New_York" into timeZone > > *put*shell("TZ=" & timeZone & " date") into tmp > > and working it all out from there (assumes Unix server - don't know if it works on others). > > Alex. > > > > On 07/11/2020 10:27, Graham Samuel via use-livecode wrote: >> I am as confused as anyone else as to what you are trying to do, but just in case, this little function seems to work for me to get the ?standard? UTC date format which I have to use in my app to put time stamps into GPX files. It apparently produces the correct time zone. Doubtless it could be more elegantly coded. >> >> Hope it helps - who knows? >> >> Graham >> >> function fUTCTime >> local t1,t2,t3 >> -- this gets the current time and puts it into UTC format, i.e YYYY-MM-DDThh:mm:ssTZD >> put word 5 to 6 of the internet date into t3 -- we are interested in the time and time zone >> put the long time into t1 >> convert t1 to dateItems -- format is yyyy,m,d,h,m,s,day no. >> put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of t1) &"T" & word 1 of t3 into t2 >> put word 2 of t3 into t1 -- the time zone indication >> get char 1 of t1 ? the code for 0 (zero) is Z, apparently >> if it <> "+" and it <> "-? then >> put "Z" after t2 >> else >> put t1 after t2 >> end if >> return t2 >> end fUTCTime >> >> function f2digits theNum >> -- add a leading zero. We don't check if there are more than two digits >> if number of chars of theNum = 1 then >> return ("0" & theNum) >> else >> return theNum >> end if >> end f2digits >> >> >>> On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode wrote: >>> >>> I don't think it "strips" the TZ info - it simply ignores it. I think the key phrase is in the dictionary as : >>> >>>> *Note:* The *convert* command assumes all dates / times are in local time except for 'the seconds', which is taken to be universal time. >>>> >>> So it assume syou date is in local time (regardless of the +0300), and therefore your example returns +0000 for you (I assume you're in the UK, or equivalent, now). It does the same for me, and returns the date with "+0000". >>> >>> However, the same code run on my LC server (wherever on-rev is these days), changes the +0300 to -0500 - i.e. it's taken as local time where the server is. >>> >>> >>> I assume you should be able to do something with the TimeZone library - but I'm struggling to figure that out. >>> >>>> local tNow >>>> put the seconds into tNow >>>> put FromUniversalTime(tNow,"US/Central") into tt >>>> put tNow && tt >>>> put FromUniversalTime(tNow,"US/Alaska") into tt >>>> put CR & tt after msg >>> gives me >>> >>> 1604709030 1604709030 >>> >>> 1604709030 >>> >>> so I don't have a clue what it was trying to do !?! >>> >>> Alex. >>> >>> On 06/11/2020 21:28, David Bovill via use-livecode wrote: >>>> Why does: >>>> >>>> get "Fri, 06 Nov 2020 10:57:37 +0300" >>>> convert it to internet date >>>> put it >>>> >>>> ? give >>>> "Fri, 06 Nov 2020 10:57:37 +0000" >>>> >>>> Just seems to strip the timezone info? >>>> On 30 Oct 2020, 21:29 +0000, How to use LiveCode , wrote: >>>>> ToUniversalTime >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Nov 7 10:26:47 2020 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 7 Nov 2020 15:26:47 +0000 Subject: Is the DateFormat read only? In-Reply-To: <2BE167CA-3244-4BEA-BD96-E4CCD4B1A2A3@m-r-d.de> References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> <74794806-e06e-986e-6d19-4c93bb312cbf@tweedly.net> <20d56910-75f5-85a3-ae36-c6d0b34ad8e5@tweedly.net> <2BE167CA-3244-4BEA-BD96-E4CCD4B1A2A3@m-r-d.de> Message-ID: <4f470e6d-07a7-ad5b-c81e-8755a6164407@tweedly.net> Thank you Matthias. Those detailed instructions will come in handy for me - when/if I get that far. The problem I mentioned a couple of emails ago in this thread was in the IDE - haven\t yet got as far as doing it on the server. I tested out the TimeZone library with a couple of randomly chosen timezones - and they all came back incorrect (i.e. unchanged from UTC even though the timezones should have been different). I know that if you pass in a timezone that is not in the local machine's database, it will silently return the UTC value - but that's not the case here. I've now looked at it more closely - some of these timezones give the right answer, some give the wrong answer - though they are all in the TimeZones() list. All on my MacBook Pro, OSX 10.13.6, LC 9.6 ... > ?? local tTimeZones, tAllTheTimeZones > ?? put timezones() into tAllTheTimeZones > ?? put "UTC" & CR after tTimeZones > ?? put "America/New_York" & CR after tTimeZones > ?? put "America/Anchorage" & CR after tTimeZones > ?? put "junktotest" & CR after tTimeZones > ?? put "US/Central" & CR after tTimeZones > ?? put "US/Alaska" & CR after tTimeZones > > ?? repeat for each line L in tTimeZones > ????? if L is among the lines of tAllTheTimeZones then > ???????? put L && FromUniversalTime(the seconds,L) &CR after msg > ????? else > ???????? put L && "is not in the database" &CR after msg > ????? end if > ?? end repeat gives > UTC 1604762435 > America/New_York 1604744435 > America/Anchorage 1604730035 > junktotest is not in the database > US/Central 1604762435 > US/Alaska 1604762435 > Note the last two (which happened to be the ones I chose in my earlier test) wrongly show the UTC time, though they are clearly in the TimeZones() list. Maybe just a bug and I should report it ? Alex On 07/11/2020 14:36, matthias rebbe via use-livecode wrote: > Alex, > > i've posted already some info about how to use the time zone library in Livecode server in my comment to David's post "Aw: Basic question: Time Zone Library". > > Here it is again and a little bit more detailed. > > 1. copy the folder com.livecode.library.timezone from the LC extensions folder to your webserver into a folder extensions. The extensions folder can be found in the App Bundle on macOS or in the windows program folder > e.g. C:\Program Files (x86)\RunRev\LiveCode Business 9.6.1 > > 2. place your .lc script in the same folder where the extensions folder exists. > > 3. configure/set the path where the shared library for your server os is located (see line 3 in the sample script below) > 4. load the extension module.lcm (see line 4 in the sample script below) > > The following script uses the time zone library to output the available time zones > > put the folder into tBasePath > set the revLibraryMapping["tz"] to tBasePath &"/extensions/com.livecode.library.timezone/code/x86_64-linux/tz.so" > load extension from file tBasePath & "/extensions/com.livecode.library.timezone/module.lcm" > put timezones() into tTZ > replace return with "
" in tTZ > put tTZ > ?> > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 07.11.2020 um 13:57 schrieb Alex Tweedly via use-livecode : >> >> Thanks Graham. That does indeed work - on your local system. >> >> The issue I am trying to deal with (and maybe it's related to what David is doing) is dealing with time zone issues on a LC web server. If you want to timestamp when some event happens, you can do that as a UTC timestamp using a function like this one of yours; but that leaves you two problems. >> >> - presenting those timestamps back to the user - which should be in *their* local time >> - allowing the user to provide their own timestamp - again should be local for them. >> >> Most advice I've found via Google, etc. suggests keeping the timestamps in UTC, and asking the user to provide their timezone - usually when they 'register'. You can then use PHP (or ...) functions to convert a date/time between UTC and their local zone. >> >> You might hope to do that in LC using 'convert .. to internet date' - but that doesn't work because that conversion (seems to) assume a local time, and then simply fill in the time offset for the local system (i.e. the problem David reported). >> >> You should be able to do it using the TimeZone library - but I haven't figured out how to to do that, or I'm using it wrong, or something. (I didn't know about the Timezone library until David mentioned it yesterday.) >> >> I'm currently using an ugly (though working :-) workaround using e.g. >> >> put "America/New_York" into timeZone >> >> *put*shell("TZ=" & timeZone & " date") into tmp >> >> and working it all out from there (assumes Unix server - don't know if it works on others). >> >> Alex. >> >> >> >> On 07/11/2020 10:27, Graham Samuel via use-livecode wrote: >>> I am as confused as anyone else as to what you are trying to do, but just in case, this little function seems to work for me to get the ?standard? UTC date format which I have to use in my app to put time stamps into GPX files. It apparently produces the correct time zone. Doubtless it could be more elegantly coded. >>> >>> Hope it helps - who knows? >>> >>> Graham >>> >>> function fUTCTime >>> local t1,t2,t3 >>> -- this gets the current time and puts it into UTC format, i.e YYYY-MM-DDThh:mm:ssTZD >>> put word 5 to 6 of the internet date into t3 -- we are interested in the time and time zone >>> put the long time into t1 >>> convert t1 to dateItems -- format is yyyy,m,d,h,m,s,day no. >>> put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of t1) &"T" & word 1 of t3 into t2 >>> put word 2 of t3 into t1 -- the time zone indication >>> get char 1 of t1 ? the code for 0 (zero) is Z, apparently >>> if it <> "+" and it <> "-? then >>> put "Z" after t2 >>> else >>> put t1 after t2 >>> end if >>> return t2 >>> end fUTCTime >>> >>> function f2digits theNum >>> -- add a leading zero. We don't check if there are more than two digits >>> if number of chars of theNum = 1 then >>> return ("0" & theNum) >>> else >>> return theNum >>> end if >>> end f2digits >>> >>> >>>> On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode wrote: >>>> >>>> I don't think it "strips" the TZ info - it simply ignores it. I think the key phrase is in the dictionary as : >>>> >>>>> *Note:* The *convert* command assumes all dates / times are in local time except for 'the seconds', which is taken to be universal time. >>>>> >>>> So it assume syou date is in local time (regardless of the +0300), and therefore your example returns +0000 for you (I assume you're in the UK, or equivalent, now). It does the same for me, and returns the date with "+0000". >>>> >>>> However, the same code run on my LC server (wherever on-rev is these days), changes the +0300 to -0500 - i.e. it's taken as local time where the server is. >>>> >>>> >>>> I assume you should be able to do something with the TimeZone library - but I'm struggling to figure that out. >>>> >>>>> local tNow >>>>> put the seconds into tNow >>>>> put FromUniversalTime(tNow,"US/Central") into tt >>>>> put tNow && tt >>>>> put FromUniversalTime(tNow,"US/Alaska") into tt >>>>> put CR & tt after msg >>>> gives me >>>> >>>> 1604709030 1604709030 >>>> >>>> 1604709030 >>>> >>>> so I don't have a clue what it was trying to do !?! >>>> >>>> Alex. >>>> >>>> On 06/11/2020 21:28, David Bovill via use-livecode wrote: >>>>> Why does: >>>>> >>>>> get "Fri, 06 Nov 2020 10:57:37 +0300" >>>>> convert it to internet date >>>>> put it >>>>> >>>>> ? give >>>>> "Fri, 06 Nov 2020 10:57:37 +0000" >>>>> >>>>> Just seems to strip the timezone info? >>>>> On 30 Oct 2020, 21:29 +0000, How to use LiveCode , wrote: >>>>>> ToUniversalTime >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From iphonelagi at gmail.com Sat Nov 7 10:29:40 2020 From: iphonelagi at gmail.com (Lagi Pittas) Date: Sat, 7 Nov 2020 15:29:40 +0000 Subject: IOS Screen resizing /EXACT FIT not working as before In-Reply-To: <6762837D-8350-405C-8681-38D987CF872B@midwestcoastmedia.com> References: <6762837D-8350-405C-8681-38D987CF872B@midwestcoastmedia.com> Message-ID: Hi I was told today that the App is unusable on smaller iphones on which it was originally designed - ny smaller I mean 6 and 7 It is usable on the bigger screens (albeit it looks "wrong") but a lot of people still stick with smaller screens. Lagi On Sat, 7 Nov 2020 at 14:18, Andrew at MidWest Coast Media via use-livecode wrote: > I?m having a similar issue with ?letterbox? on an a project. It has fit > fine for years: exact fit on older devices with black bars on top/bottom of > newer devices. But when I rebuild now, it shows black bars on all 4 sides > of an iPhone 11. (old build currently on AppStore renders just on > top/bottom) > > Unfortunately because of how it was designed (for 5s device size with NO > resize handler), ?exactFit? will kill navigation on modern devices. The > project needs a UI overhaul, and I?m using this as motivation for the > client, but it seems that somewhere a change was made on how iOS device > sizes are determined. I noticed a lot of chatter recently about this > affecting the iPhone Plus models when zoomed. Perhaps Apple made a change > in Xcode 11 if nothing has changed in LiveCode. > > -Andrew Bell > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- KIndest Regards Lagi From david.bovill at gmail.com Sat Nov 7 14:02:02 2020 From: david.bovill at gmail.com (David Bovill) Date: Sat, 7 Nov 2020 19:02:02 +0000 Subject: Basic question: Time Zone Library In-Reply-To: <991D2BEC-962C-4498-A963-C3AD53AB9F7C@m-r-d.de> References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> <292c40d9-f841-4e6e-9b43-0d10f75a334c@Spark> <991D2BEC-962C-4498-A963-C3AD53AB9F7C@m-r-d.de> Message-ID: Thanks Matthias - very helpful. Looks like there is no dictionary entry for revLibraryMapping :( On 6 Nov 2020, 23:11 +0000, matthias rebbe via use-livecode , wrote: > Hi, > > i am not sure if this is still the way how to do it with newer LC Server versions, but at least it still works with LC 9.6.1 > > First copy the folder of of the time zone library to your server for example into a folder extension > > Then, to use the library you'll have to put the following 2 lines before your time zone specific code. > > set the revLibraryMapping["tz"] to "/home/ua829968/public_html/livecode.dermattes.de/tz-test/extensions/com.livecode.library.timezone/code/x86_64-linux/tz.so" > load extension from file "./extensions/com.livecode.library.timezone/module.lcm" > //here comes your timezone script > > > > In the first line you define where the needed shared libraries are located. It must contain the complete path to the shared libraries. In the above example the shared library for 64bit Linux is used. The second line then loads the extension. > > Mark Waddingham provided that information here 2 years ago > https://www.mail-archive.com/use-livecode at lists.runrev.com/msg97605.html > > Regards, > > Matthias > > > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > Am 06.11.2020 um 23:29 schrieb David Bovill via use-livecode : > > > > Just created a handler that I want to use in a Livecode server that uses the Time Zone Library handler TimeZones(). So: > > > > 1. How do I find where the library is? > > 2. How do I add it so the server code can use it? > > > > On 6 Nov 2020, 21:28 +0000, How to use LiveCode , wrote: > > > > > > ToUniversalTime > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david.bovill at gmail.com Sat Nov 7 14:11:08 2020 From: david.bovill at gmail.com (David Bovill) Date: Sat, 7 Nov 2020 19:11:08 +0000 Subject: Is the DateFormat read only? In-Reply-To: <2BE167CA-3244-4BEA-BD96-E4CCD4B1A2A3@m-r-d.de> References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> <74794806-e06e-986e-6d19-4c93bb312cbf@tweedly.net> <20d56910-75f5-85a3-ae36-c6d0b34ad8e5@tweedly.net> <2BE167CA-3244-4BEA-BD96-E4CCD4B1A2A3@m-r-d.de> Message-ID: <40a7d7f8-5dae-4bc9-a2d7-55c89e2a00a4@Spark> Looks like a bug to me. So I?d say yes? I?m pretty puzzled why convert does not work with internet date. It seems a bit of a waste to make the internet date a format that you can only display and not??manipulate? Tests here indicate that converting an internet date to seconds makes no difference with regard to the time zone bit you include - to illustrate here is a function that I had to make to convert internet dates: function?date_GetInternetSeconds iDate ?? ?put?word?-1?of?iDate?into?iDateOffset ?? ?convert?iDate?to seconds?-- this ignores the last "+0050" iDateOffset bit ?? ?_AddInternetDateOffset iDate, iDateOffset ?? ?return?iDate end?date_GetInternetSeconds private command?_AddInternetDateOffset @dateInSeconds, iDateOffset ?? ?put?char?2?to?3?of?iDateOffset?into?sHours ?? ?put?char?4?to?5?of?iDateOffset?into?sMin ?? ?-- ?? ?if?char?1?of?iDateOffset =?"+"then ?? ? ? ? ? ?add?sHours *?60*60?to?dateInSeconds ?? ? ? ? ? ?add?sMin *?60?to?dateInSeconds ?? ? ? ?else ?? ? ? ? ? ?subtract?sHours *?60*60?from?dateInSeconds ?? ? ? ? ? ?subtract?sMin *?60?from?dateInSeconds ?? ?end?if end_AddInternetDateOffset Does this really make sense? On 7 Nov 2020, 14:37 +0000, matthias rebbe via use-livecode , wrote: > Alex, > > i've posted already some info about how to use the time zone library in Livecode server in my comment to David's post "Aw: Basic question: Time Zone Library". > > Here it is again and a little bit more detailed. > > 1. copy the folder com.livecode.library.timezone from the LC extensions folder to your webserver into a folder extensions. The extensions folder can be found in the App Bundle on macOS or in the windows program folder > e.g. C:\Program Files (x86)\RunRev\LiveCode Business 9.6.1 > > 2. place your .lc script in the same folder where the extensions folder exists. > > 3. configure/set the path where the shared library for your server os is located (see line 3 in the sample script below) > 4. load the extension module.lcm (see line 4 in the sample script below) > > The following script uses the time zone library to output the available time zones > > put the folder into tBasePath > set the revLibraryMapping["tz"] to tBasePath &"/extensions/com.livecode.library.timezone/code/x86_64-linux/tz.so" > load extension from file tBasePath & "/extensions/com.livecode.library.timezone/module.lcm" > put timezones() into tTZ > replace return with "
" in tTZ > put tTZ > ?> > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > Am 07.11.2020 um 13:57 schrieb Alex Tweedly via use-livecode : > > > > Thanks Graham. That does indeed work - on your local system. > > > > The issue I am trying to deal with (and maybe it's related to what David is doing) is dealing with time zone issues on a LC web server. If you want to timestamp when some event happens, you can do that as a UTC timestamp using a function like this one of yours; but that leaves you two problems. > > > > - presenting those timestamps back to the user - which should be in *their* local time > > - allowing the user to provide their own timestamp - again should be local for them. > > > > Most advice I've found via Google, etc. suggests keeping the timestamps in UTC, and asking the user to provide their timezone - usually when they 'register'. You can then use PHP (or ...) functions to convert a date/time between UTC and their local zone. > > > > You might hope to do that in LC using 'convert .. to internet date' - but that doesn't work because that conversion (seems to) assume a local time, and then simply fill in the time offset for the local system (i.e. the problem David reported). > > > > You should be able to do it using the TimeZone library - but I haven't figured out how to to do that, or I'm using it wrong, or something. (I didn't know about the Timezone library until David mentioned it yesterday.) > > > > I'm currently using an ugly (though working :-) workaround using e.g. > > > > put "America/New_York" into timeZone > > > > *put*shell("TZ=" & timeZone & " date") into tmp > > > > and working it all out from there (assumes Unix server - don't know if it works on others). > > > > Alex. > > > > > > > > On 07/11/2020 10:27, Graham Samuel via use-livecode wrote: > > > I am as confused as anyone else as to what you are trying to do, but just in case, this little function seems to work for me to get the ?standard? UTC date format which I have to use in my app to put time stamps into GPX files. It apparently produces the correct time zone. Doubtless it could be more elegantly coded. > > > > > > Hope it helps - who knows? > > > > > > Graham > > > > > > function fUTCTime > > > local t1,t2,t3 > > > -- this gets the current time and puts it into UTC format, i.e YYYY-MM-DDThh:mm:ssTZD > > > put word 5 to 6 of the internet date into t3 -- we are interested in the time and time zone > > > put the long time into t1 > > > convert t1 to dateItems -- format is yyyy,m,d,h,m,s,day no. > > > put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of t1) &"T" & word 1 of t3 into t2 > > > put word 2 of t3 into t1 -- the time zone indication > > > get char 1 of t1 ? the code for 0 (zero) is Z, apparently > > > if it <> "+" and it <> "-? then > > > put "Z" after t2 > > > else > > > put t1 after t2 > > > end if > > > return t2 > > > end fUTCTime > > > > > > function f2digits theNum > > > -- add a leading zero. We don't check if there are more than two digits > > > if number of chars of theNum = 1 then > > > return ("0" & theNum) > > > else > > > return theNum > > > end if > > > end f2digits > > > > > > > > > > On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode wrote: > > > > > > > > I don't think it "strips" the TZ info - it simply ignores it. I think the key phrase is in the dictionary as : > > > > > > > > > *Note:* The *convert* command assumes all dates / times are in local time except for 'the seconds', which is taken to be universal time. > > > > > > > > > So it assume syou date is in local time (regardless of the +0300), and therefore your example returns +0000 for you (I assume you're in the UK, or equivalent, now). It does the same for me, and returns the date with "+0000". > > > > > > > > However, the same code run on my LC server (wherever on-rev is these days), changes the +0300 to -0500 - i.e. it's taken as local time where the server is. > > > > > > > > > > > > I assume you should be able to do something with the TimeZone library - but I'm struggling to figure that out. > > > > > > > > > local tNow > > > > > put the seconds into tNow > > > > > put FromUniversalTime(tNow,"US/Central") into tt > > > > > put tNow && tt > > > > > put FromUniversalTime(tNow,"US/Alaska") into tt > > > > > put CR & tt after msg > > > > gives me > > > > > > > > 1604709030 1604709030 > > > > > > > > 1604709030 > > > > > > > > so I don't have a clue what it was trying to do !?! > > > > > > > > Alex. > > > > > > > > On 06/11/2020 21:28, David Bovill via use-livecode wrote: > > > > > Why does: > > > > > > > > > > get "Fri, 06 Nov 2020 10:57:37 +0300" > > > > > convert it to internet date > > > > > put it > > > > > > > > > > ? give > > > > > "Fri, 06 Nov 2020 10:57:37 +0000" > > > > > > > > > > Just seems to strip the timezone info? > > > > > On 30 Oct 2020, 21:29 +0000, How to use LiveCode , wrote: > > > > > > ToUniversalTime > > > > > _______________________________________________ > > > > > use-livecode mailing list > > > > > use-livecode at lists.runrev.com > > > > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at lists.runrev.com > > > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Nov 8 12:27:08 2020 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sun, 8 Nov 2020 17:27:08 -0000 Subject: Is the DateFormat read only? In-Reply-To: References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> Message-ID: This enhancement request (which from various paths has a 14 year history) is still relevant IMHO: https://quality.livecode.com/show_bug.cgi?id=4636 (It also has a handy suggestion from Mark Waddingham of a function to return "ISO date time" (as the discussions in the report shows, a misnomer), complete with presumed correct time zone.) On 30/10/2020 21:28, J. Landman Gay via use-livecode wrote: > Good point. For our situation, hours were enough so I guess I ignored the rest > (it was a long time ago and the code is old.) > > On 10/30/20 3:24 PM, Alex Tweedly via use-livecode wrote: >> But that will only work for those time zones whose variation from UTC is an >> exact number of hours. >> >> the internet date has 4 digits so that it can handle hour and minute >> variations - you could change >> >> ?? subtract (char 1 to -3 of last word of the internet date) from item 4 of >> tTime >> >> to >> >> ?? put the last word of the internet time into tmp >> ?? subtract (char 1 to -3 of tmp) from item 4 of tTime >> ?? subtract (char 1 of tmp & char -2 to -1 of tmp) ) from item 5 of tTime >> >> and then you would be handling all cases correctly. >> >> Alex. >> >> On 30/10/2020 20:06, J. Landman Gay via use-livecode wrote: >>> On 10/29/20 4:33 PM, Graham Samuel via use-livecode wrote: >>>> The only souci with this format is that it gives the month in alpha, >>>> presumably according to the nationality of the OS. But it?s easy to get >>>> the numeric month in other ways. Still, it is just a little bit fiddly to >>>> create a full UTC date of the format: >>>> >>>> YYYY-MM-DDThh:mm:ssTZD >>> >>> Here's something I use: >>> >>> ? put the seconds into tTime >>> ? convert tTime to dateitems >>> ? subtract (char 1 to -3 of last word of the internet date) from item 4 of >>> tTime >>> ? convert tTime to dateitems >>> ? set the numberformat to "00" >>> ? put item 1 of tTime &"-"& (item 2 of tTime)+0 &"-"& (item 3 of tTime)+0 & >>> "T" & (item 4 of tTime)+0 &":"& \ >>> ??????? (item 5 of tTime)+0 &":"& (item 6 of tTime)+0 & "Z" into tTimestamp >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > From General.2018 at outlook.com Sun Nov 8 12:58:01 2020 From: General.2018 at outlook.com (General 2018) Date: Sun, 8 Nov 2020 17:58:01 +0000 Subject: Code Signing and Kernel Mode drivers Message-ID: Hi , Are the standard Livecode .dll that are included with the standalone Kernel mode drivers ?? The reason for asking is that codesigning for Windows 10 needs a more expensive certificate if kernel mode drivers signing is required. Regards Cam From paul at researchware.com Sun Nov 8 13:05:50 2020 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 Nov 2020 13:05:50 -0500 Subject: Code Signing and Kernel Mode drivers In-Reply-To: References: Message-ID: <195c623e-20b7-0947-624f-09a7113a7aa5@researchware.com> The basic windows code signing cert works fine. You do not need the more expensive "EV" certificate. On 11/8/2020 12:58 PM, General 2018 via use-livecode wrote: > Hi , > > Are the standard Livecode .dll that are included with the standalone Kernel mode drivers ?? > > The reason for asking is that codesigning for Windows 10 needs a more expensive certificate if kernel mode drivers signing is required. > > Regards > Cam > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Nov 8 21:57:21 2020 From: irog at mac.com (Roger Guay) Date: Sun, 8 Nov 2020 18:57:21 -0800 Subject: The Most Stupid Question Ever? Message-ID: Please tell me why this doesn?t work: on mouseUp put "start" wait for 5 seconds put "stop" end mouseUp ?start? never appears in the message box and after 5 seconds, ?stop? appears From ahsoftware at sonic.net Sun Nov 8 23:02:37 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 8 Nov 2020 20:02:37 -0800 Subject: The Most Stupid Question Ever? In-Reply-To: References: Message-ID: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> On 11/8/20 6:57 PM, Roger Guay via use-livecode wrote: > Please tell me why this doesn?t work: > > on mouseUp > > put "start" > > wait for 5 seconds > > put "stop" > > end mouseUp > > ?start? never appears in the message box and after 5 seconds, ?stop? appears The wait command is blocking anything else from happening (like updating the messagebox). After five seconds the messagebox gets "start" followed immediately by "stop". To allow events to happen while waiting try on mouseUp put "start" wait for 5 seconds with messages put "stop" end mouseUp -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Mon Nov 9 00:05:26 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 8 Nov 2020 21:05:26 -0800 Subject: The Most Stupid Question Ever? In-Reply-To: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> Message-ID: On 11/8/20 8:02 PM, Mark Wieder via use-livecode wrote: > On 11/8/20 6:57 PM, Roger Guay via use-livecode wrote: >> Please tell me why this doesn?t work: ...and that is, btw, hardly a stupid question. You want stupid you'll have to get in line after me. -- Mark Wieder ahsoftware at gmail.com From irog at mac.com Mon Nov 9 01:31:48 2020 From: irog at mac.com (Roger Guay) Date: Sun, 8 Nov 2020 22:31:48 -0800 Subject: The Most Stupid Question Ever? In-Reply-To: References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> Message-ID: Thank you, Mark. You?re very kind! And very helpful. I do remember now how one needs to wait with messages. Roger > On Nov 8, 2020, at 9:05 PM, Mark Wieder via use-livecode wrote: > > On 11/8/20 8:02 PM, Mark Wieder via use-livecode wrote: >> On 11/8/20 6:57 PM, Roger Guay via use-livecode wrote: >>> Please tell me why this doesn?t work: > > ...and that is, btw, hardly a stupid question. > You want stupid you'll have to get in line after me. > > -- > 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 mailkeliko01 at gmail.com Mon Nov 9 07:17:04 2020 From: mailkeliko01 at gmail.com (Riko Abadi) Date: Mon, 9 Nov 2020 19:17:04 +0700 Subject: New Google PlayStore Console In-Reply-To: <003701d6b39b$d6c81d30$84585790$@net> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> <003701d6b39b$d6c81d30$84585790$@net> Message-ID: Hai Ralph, whether this problem has been resolved? . Pada tanggal Jum, 6 Nov 2020 00.46, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> menulis: > I received these 3 warnings when uploading APKs using the new Google Play > Console. The first one I've been seeing for a while. Anyone know about the > last 2? I assume the second one is LCs use of the JVM. > > Warning > This APK results in unused code and resources being sent to users. Your > app could be smaller if you used the Android App Bundle. By not optimizing > your app for device configurations, your app is larger to download and > install on users' devices than it needs to be. Larger apps see lower > install success rates and take up storage on users' devices. > > Warning > This APK contains Java/Kotlin code, which might be obfuscated. We > recommend you upload a deobfuscation file to make your crashes and ANRs > easier to analyze and debug. Learn More > > Warning > This APK contains native code, and you've not uploaded debug symbols. We > recommend you upload a symbol file to make your crashes and ANRs easier to > analyze and debug. Learn More > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Nov 9 09:13:33 2020 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 9 Nov 2020 09:13:33 -0500 Subject: New Google PlayStore Console In-Reply-To: References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> <003701d6b39b$d6c81d30$84585790$@net> Message-ID: <002c01d6b6a2$84fc4210$8ef4c630$@net> No it isn't. Apparently no one on the list has any input on the implications of this is. I will have to take this to the mother ship and file a QCC report. 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 Riko Abadi via use-livecode Sent: Monday, November 09, 2020 7:17 AM To: How to use LiveCode Cc: Riko Abadi Subject: Re: New Google PlayStore Console Hai Ralph, whether this problem has been resolved? . Pada tanggal Jum, 6 Nov 2020 00.46, Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> menulis: > I received these 3 warnings when uploading APKs using the new Google > Play Console. The first one I've been seeing for a while. Anyone know > about the last 2? I assume the second one is LCs use of the JVM. > > Warning > This APK results in unused code and resources being sent to users. > Your app could be smaller if you used the Android App Bundle. By not > optimizing your app for device configurations, your app is larger to > download and install on users' devices than it needs to be. Larger > apps see lower install success rates and take up storage on users' devices. > > Warning > This APK contains Java/Kotlin code, which might be obfuscated. We > recommend you upload a deobfuscation file to make your crashes and > ANRs easier to analyze and debug. Learn More > > Warning > This APK contains native code, and you've not uploaded debug symbols. > We recommend you upload a symbol file to make your crashes and ANRs > easier to analyze and debug. Learn More > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode at 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 Nov 9 11:52:41 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 9 Nov 2020 16:52:41 +0000 Subject: Segmented Control Widget In-Reply-To: References: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> Message-ID: <38829052-A67B-45A3-8F82-92486B88F782@iotecdigital.com> I believe so. In my custom tabbed object group, I had to put transparent buttons over the tabs, then have a way to size and rearrange the buttons to match the size of the tabs, just so I could get it to respond to mouse messages and drag/drop operations. It's so ugly it's cute. Like a shar-pei. Bob S > On Nov 7, 2020, at 24:39 , Terence Heaford via use-livecode wrote: > > > >> On 5 Nov 2020, at 20:10, J. Landman Gay via use-livecode wrote: >> >> I've done this with a custom control group, it should work with a widget too. Calculate the rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the appropriate string. You can also add a mouseMove handler to do the same thing if you want to change tooltips as the mouseLoc changes inside the widget. > > > I placed the segmented control widget in a group and put a simple > > on mouseEnter > beep > end mouseEnter > > in the script of the group. > > This did not implement a beep sound. > I placed the same script in the segmented control and that did not make a beep either. > > > I read the dictionary for mouseEnter and it does not apply to a group, I assume it also does not apply to the segmented control widget. > > > I then created three standard buttons and placed those in a group. > Placed the above script in the group. > and each time the mouse entered a button it beeped. It did not beep upon entering the group. > > Is all this the correct behaviour? > > If it is then it is not possible to create your own tooltip for a segmented control widget unless there is some more fiddling that can be done. > > It seems creating your own segmented control may be the only solution. > > Any ideas > > Thanks > > Terry > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Nov 9 11:58:02 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 9 Nov 2020 16:58:02 +0000 Subject: Is the DateFormat read only? In-Reply-To: References: <537833A9-F0DA-40BF-8634-1D8FCBFB18B8@mac.com> <9CCF1ED2-1445-4FC5-931E-31D1CEB70B3E@mac.com> <244C756C-77DC-4470-A646-0D38BE314902@me.com> <0663717E-B59A-4864-85AD-CBDDA25D246D@mac.com> <175755b38d0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <04527EBE-0870-4613-9468-9F7F6AA0FCC7@mac.com> <7f37385e-a173-4e32-b732-eb95319f17a2@Spark> <74794806-e06e-986e-6d19-4c93bb312cbf@tweedly.net> Message-ID: <4839E912-A0C6-4F37-A782-CCD1605C7867@iotecdigital.com> Your code contains a smart quote and an em dash. This works: function fUTCTime local t1,t2,t3 -- this gets the current time and puts it into UTC format, i.e YYYY-MM-DDThh:mm:ssTZD put word 5 to 6 of the internet date into t3 -- we are interested in the time and time zone put the long time into t1 convert t1 to dateItems -- format is yyyy,m,d,h,m,s,day no. put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of t1) &"T" & word 1 of t3 into t2 put word 2 of t3 into t1 -- the time zone indication get char 1 of t1 -- the code for 0 (zero) is Z, apparently if it <> "+" and it <> "-" then put "Z" after t2 else put t1 after t2 end if return t2 end fUTCTime function f2digits theNum -- add a leading zero. We don't check if there are more than two digits if number of chars of theNum = 1 then return ("0" & theNum) else return theNum end if end f2digits Bob S > On Nov 7, 2020, at 02:27 , Graham Samuel via use-livecode wrote: > > function fUTCTime > local t1,t2,t3 > -- this gets the current time and puts it into UTC format, i.e YYYY-MM-DDThh:mm:ssTZD > put word 5 to 6 of the internet date into t3 -- we are interested in the time and time zone > put the long time into t1 > convert t1 to dateItems -- format is yyyy,m,d,h,m,s,day no. > put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of t1) &"T" & word 1 of t3 into t2 > put word 2 of t3 into t1 -- the time zone indication > get char 1 of t1 ? the code for 0 (zero) is Z, apparently > if it <> "+" and it <> "-? then > put "Z" after t2 > else > put t1 after t2 > end if > return t2 > end fUTCTime > > function f2digits theNum > -- add a leading zero. We don't check if there are more than two digits > if number of chars of theNum = 1 then > return ("0" & theNum) > else > return theNum > end if > end f2digits > > >> On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode wrote: >> >> I don't think it "strips" the TZ info - it simply ignores it. I think the key phrase is in the dictionary as : >> >>> *Note:* The *convert* command assumes all dates / times are in local time except for 'the seconds', which is taken to be universal time. >>> >> So it assume syou date is in local time (regardless of the +0300), and therefore your example returns +0000 for you (I assume you're in the UK, or equivalent, now). It does the same for me, and returns the date with "+0000". >> >> However, the same code run on my LC server (wherever on-rev is these days), changes the +0300 to -0500 - i.e. it's taken as local time where the server is. >> >> >> I assume you should be able to do something with the TimeZone library - but I'm struggling to figure that out. >> >>> local tNow >>> put the seconds into tNow >>> put FromUniversalTime(tNow,"US/Central") into tt >>> put tNow && tt >>> put FromUniversalTime(tNow,"US/Alaska") into tt >>> put CR & tt after msg >> gives me >> >> 1604709030 1604709030 >> >> 1604709030 >> >> so I don't have a clue what it was trying to do !?! >> >> Alex. >> >> On 06/11/2020 21:28, David Bovill via use-livecode wrote: >>> Why does: >>> >>> get "Fri, 06 Nov 2020 10:57:37 +0300" >>> convert it to internet date >>> put it >>> >>> ? give >>> "Fri, 06 Nov 2020 10:57:37 +0000" >>> >>> Just seems to strip the timezone info? >>> On 30 Oct 2020, 21:29 +0000, How to use LiveCode , wrote: >>>> ToUniversalTime >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Nov 9 12:03:55 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 9 Nov 2020 17:03:55 +0000 Subject: The Most Stupid Question Ever? In-Reply-To: References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> Message-ID: <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> I have seen this sort of thing before with the wait command. Very frustrating. Apparently Livecode is not *strictly* single threaded. Bob S > On Nov 8, 2020, at 22:31 , Roger Guay via use-livecode wrote: > > Thank you, Mark. You?re very kind! And very helpful. I do remember now how one needs to wait with messages. > > Roger > >> On Nov 8, 2020, at 9:05 PM, Mark Wieder via use-livecode wrote: >> >> On 11/8/20 8:02 PM, Mark Wieder via use-livecode wrote: >>> On 11/8/20 6:57 PM, Roger Guay via use-livecode wrote: >>>> Please tell me why this doesn?t work: >> >> ...and that is, btw, hardly a stupid question. >> You want stupid you'll have to get in line after me. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Nov 9 12:44:43 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 09 Nov 2020 11:44:43 -0600 Subject: New Google PlayStore Console In-Reply-To: <002c01d6b6a2$84fc4210$8ef4c630$@net> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> <003701d6b39b$d6c81d30$84585790$@net> <002c01d6b6a2$84fc4210$8ef4c630$@net> Message-ID: <175ae1c2710.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I've never seen the last two, but that might imply you're using widgets or other extensions I've never used. The last submission I made about a month ago only got the first one. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 9, 2020 8:12:57 AM Ralph DiMola via use-livecode wrote: > No it isn't. Apparently no one on the list has any input on the implications > of this is. I will have to take this to the mother ship and file a QCC > report. > > 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 Riko Abadi via use-livecode > Sent: Monday, November 09, 2020 7:17 AM > To: How to use LiveCode > Cc: Riko Abadi > Subject: Re: New Google PlayStore Console > > Hai Ralph, > > whether this problem has been resolved? > > . > > Pada tanggal Jum, 6 Nov 2020 00.46, Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> menulis: > >> I received these 3 warnings when uploading APKs using the new Google >> Play Console. The first one I've been seeing for a while. Anyone know >> about the last 2? I assume the second one is LCs use of the JVM. >> >> Warning >> This APK results in unused code and resources being sent to users. >> Your app could be smaller if you used the Android App Bundle. By not >> optimizing your app for device configurations, your app is larger to >> download and install on users' devices than it needs to be. Larger >> apps see lower install success rates and take up storage on users' > devices. >> >> Warning >> This APK contains Java/Kotlin code, which might be obfuscated. We >> recommend you upload a deobfuscation file to make your crashes and >> ANRs easier to analyze and debug. Learn More >> >> Warning >> This APK contains native code, and you've not uploaded debug symbols. >> We recommend you upload a symbol file to make your crashes and ANRs >> easier to analyze and debug. Learn More >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Nov 9 14:27:16 2020 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 9 Nov 2020 21:27:16 +0200 Subject: [ANN] This Week in LiveCode 244 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #244 here: https://bit.ly/3naApUe This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to your e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From rdimola at evergreeninfo.net Mon Nov 9 14:48:49 2020 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Mon, 9 Nov 2020 14:48:49 -0500 Subject: New Google PlayStore Console In-Reply-To: <175ae1c2710.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> <003701d6b39b$d6c81d30$84585790$@net> <002c01d6b6a2$84fc4210$8ef4c630$@net> <175ae1c2710.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <005e01d6b6d1$5b2611d0$11723570$@net> I submitted a week earlier with the same widgets/externals using the "classic" console and only received the first one. This seems to be connected to the "new and improved" console. 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: Monday, November 09, 2020 12:45 PM To: How to use LiveCode Cc: J. Landman Gay Subject: RE: New Google PlayStore Console I've never seen the last two, but that might imply you're using widgets or other extensions I've never used. The last submission I made about a month ago only got the first one. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 9, 2020 8:12:57 AM Ralph DiMola via use-livecode wrote: > No it isn't. Apparently no one on the list has any input on the > implications of this is. I will have to take this to the mother ship > and file a QCC report. > > 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 Riko Abadi via use-livecode > Sent: Monday, November 09, 2020 7:17 AM > To: How to use LiveCode > Cc: Riko Abadi > Subject: Re: New Google PlayStore Console > > Hai Ralph, > > whether this problem has been resolved? > > . > > Pada tanggal Jum, 6 Nov 2020 00.46, Ralph DiMola via use-livecode < > use-livecode at lists.runrev.com> menulis: > >> I received these 3 warnings when uploading APKs using the new Google >> Play Console. The first one I've been seeing for a while. Anyone know >> about the last 2? I assume the second one is LCs use of the JVM. >> >> Warning >> This APK results in unused code and resources being sent to users. >> Your app could be smaller if you used the Android App Bundle. By not >> optimizing your app for device configurations, your app is larger to >> download and install on users' devices than it needs to be. Larger >> apps see lower install success rates and take up storage on users' > devices. >> >> Warning >> This APK contains Java/Kotlin code, which might be obfuscated. We >> recommend you upload a deobfuscation file to make your crashes and >> ANRs easier to analyze and debug. Learn More >> >> Warning >> This APK contains native code, and you've not uploaded debug symbols. >> We recommend you upload a symbol file to make your crashes and ANRs >> easier to analyze and debug. Learn More >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Nov 9 15:48:13 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 9 Nov 2020 14:48:13 -0600 Subject: New Google PlayStore Console In-Reply-To: <005e01d6b6d1$5b2611d0$11723570$@net> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> <7E483874-59FB-432D-907E-952FA17714EE@liverpool.ac.uk> <003701d6b39b$d6c81d30$84585790$@net> <002c01d6b6a2$84fc4210$8ef4c630$@net> <175ae1c2710.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <005e01d6b6d1$5b2611d0$11723570$@net> Message-ID: <9878cef8-7347-9031-4972-ea4f3f81f176@hyperactivesw.com> I *think* I was using the "new and improved" console when I submitted but I can't be positive. I did switch over before the deadline but I did some hopping back and forth and can't quite remember which I was using when I finally hit the Submit button. I don't care for the change, to be honest. I thought they were unimprovements. On 11/9/20 1:48 PM, Ralph DiMola via use-livecode wrote: > I submitted a week earlier with the same widgets/externals using the > "classic" console and only received the first one. This seems to be > connected to the "new and improved" console. > > 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: Monday, November 09, 2020 12:45 PM > To: How to use LiveCode > Cc: J. Landman Gay > Subject: RE: New Google PlayStore Console > > I've never seen the last two, but that might imply you're using widgets or > other extensions I've never used. The last submission I made about a month > ago only got the first one. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | > http://www.hyperactivesw.com On November 9, 2020 8:12:57 AM Ralph DiMola via > use-livecode wrote: > >> No it isn't. Apparently no one on the list has any input on the >> implications of this is. I will have to take this to the mother ship >> and file a QCC report. >> >> 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 Riko Abadi via use-livecode >> Sent: Monday, November 09, 2020 7:17 AM >> To: How to use LiveCode >> Cc: Riko Abadi >> Subject: Re: New Google PlayStore Console >> >> Hai Ralph, >> >> whether this problem has been resolved? >> >> . >> >> Pada tanggal Jum, 6 Nov 2020 00.46, Ralph DiMola via use-livecode < >> use-livecode at lists.runrev.com> menulis: >> >>> I received these 3 warnings when uploading APKs using the new Google >>> Play Console. The first one I've been seeing for a while. Anyone know >>> about the last 2? I assume the second one is LCs use of the JVM. >>> >>> Warning >>> This APK results in unused code and resources being sent to users. >>> Your app could be smaller if you used the Android App Bundle. By not >>> optimizing your app for device configurations, your app is larger to >>> download and install on users' devices than it needs to be. Larger >>> apps see lower install success rates and take up storage on users' >> devices. >>> >>> Warning >>> This APK contains Java/Kotlin code, which might be obfuscated. We >>> recommend you upload a deobfuscation file to make your crashes and >>> ANRs easier to analyze and debug. Learn More >>> >>> Warning >>> This APK contains native code, and you've not uploaded debug symbols. >>> We recommend you upload a symbol file to make your crashes and ANRs >>> easier to analyze and debug. Learn More >>> >>> Ralph DiMola >>> IT Director >>> Evergreen Information Services >>> rdimola at evergreeninfo.net >>> -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From martyknappster at gmail.com Mon Nov 9 16:10:27 2020 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 9 Nov 2020 13:10:27 -0800 Subject: Windows startup issue Message-ID: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> I have a customer who is having a weird issue with a Windows app built in LC (9.6.1). It worked fine for about a month, it works fine here for me all the time and it works fine for all our other customers. On startup is begins to launch then gets a bunch of errors: 269,76,1 262,67,1 252,67,1 241,67,1 353,0,0 573,68,1 253,68,1 241,67,1 353,0,0 But it only happens for this *one* person. They have the latest version of Windows 10, have tried multiple installs and uninstalls, turned off virus software, etc. I have downloaded from the same link I've sent him, installed and it runs fine for me and all our other customers. I know it's along shot, but has anybody seen anything like this or offer any advice? --- Marty From paul at researchware.com Mon Nov 9 16:27:15 2020 From: paul at researchware.com (Paul Dupuis) Date: Mon, 9 Nov 2020 16:27:15 -0500 Subject: Windows startup issue In-Reply-To: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> References: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> Message-ID: <37ae26ee-ea11-51bf-bc2a-8374bc96ef1c@researchware.com> The first things is to determine what the error codes mean. I forget off teh top of my head, but I things of the first 2 numbers one is a line number and the other an error code? Hopefully someone can chime in who knows for sure. Knowing the errors will tell you more about what the likely cause may be. I suspect it is some sort of permissions issue. In all most all instances where we have run into a weird startup issue with just one customer, it has turned out to be permissions related. For example, does you application create any preferences or license files or temporary files? Or try to save anything to disk behind the scenes (i.e. not a user driven file save dialog)? If so, chances are the place you are trying to write to is read-only. It could be many other things, but this has been the most common issue like this we've run into. On 11/9/2020 4:10 PM, Marty Knapp via use-livecode wrote: > I have a customer who is having a weird issue with a Windows app built in LC (9.6.1). It worked fine for about a month, it works fine here for me all the time and it works fine for all our other customers. > > On startup is begins to launch then gets a bunch of errors: > > 269,76,1 > 262,67,1 > 252,67,1 > 241,67,1 > 353,0,0 > 573,68,1 > 253,68,1 > 241,67,1 > 353,0,0 > > But it only happens for this *one* person. They have the latest version of Windows 10, have tried multiple installs and uninstalls, turned off virus software, etc. I have downloaded from the same link I've sent him, installed and it runs fine for me and all our other customers. > > I know it's along shot, but has anybody seen anything like this or offer any advice? > --- > Marty > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 9 16:38:17 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 9 Nov 2020 15:38:17 -0600 Subject: Windows startup issue In-Reply-To: <37ae26ee-ea11-51bf-bc2a-8374bc96ef1c@researchware.com> References: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> <37ae26ee-ea11-51bf-bc2a-8374bc96ef1c@researchware.com> Message-ID: <086987fd-d9ea-6ac9-ab24-4a3adccda6e8@hyperactivesw.com> Right, the first number is the error code and the second is the line number in the script. It does look like a permissions error: 269 Operators is: error in right operand 262 import: can't open file, mask file or display 252 if-then: error in condition expression 241 Handler: error in statement 353 Object Name: 573 Handler: can't find handler 253 if-then: error in statement 241 Handler: error in statement 353 Object Name: The top line is the one that is usually the main error, the second line in this case indicates a file couldn't be opened. The remainder of the lines indicate the message path that led to the error, in reverse order. The list was generated by a free utility called "LiveCode Lookup Errors" which you can find in Sample Stacks in LC's tool bar. On 11/9/20 3:27 PM, Paul Dupuis via use-livecode wrote: > The first things is to determine what the error codes mean. I forget off teh top of my head, > but I things of the first 2 numbers one is a line number and the other an error code? > > Hopefully someone can chime in who knows for sure. Knowing the errors will tell you more about > what the likely cause may be. > > I suspect it is some sort of permissions issue. In all most all instances where we have run > into a weird startup issue with just one customer, it has turned out to be permissions related. > For example, does you application create any preferences or license files or temporary files? > Or try to save anything to disk behind the scenes (i.e. not a user driven file save dialog)? If > so, chances are the place you are trying to write to is read-only. > > It could be many other things, but this has been the most common issue like this we've run into. > > > On 11/9/2020 4:10 PM, Marty Knapp via use-livecode wrote: >> I have a customer who is having a weird issue with a Windows app built in LC (9.6.1). It >> worked fine for about a month, it works fine here for me all the time and it works fine for >> all our other customers. >> >> On startup is begins to launch then gets a bunch of errors: >> >> 269,76,1 >> 262,67,1 >> 252,67,1 >> 241,67,1 >> 353,0,0 >> 573,68,1 >> 253,68,1 >> 241,67,1 >> 353,0,0 >> >> But it only happens for this *one* person. They have the latest version of Windows 10, have >> tried multiple installs and uninstalls, turned off virus software, etc. I have downloaded >> from the same link I've sent him, installed and it runs fine for me and all our other customers. >> >> I know it's along shot, but has anybody seen anything like this or offer any advice? >> --- >> Marty >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Mon Nov 9 16:54:46 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 9 Nov 2020 13:54:46 -0800 Subject: Windows startup issue In-Reply-To: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> References: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> Message-ID: <83c549e1-8df5-5a7f-a070-5dbb0097e7ec@fourthworld.com> Marty Knapp wrote: > I have a customer who is having a weird issue with a Windows app built in LC (9.6.1). It worked fine for about a month, it works fine here for me all the time and it works fine for all our other customers. > > On startup is begins to launch then gets a bunch of errors: > > 269,76,1 > 262,67,1 > 252,67,1 > 241,67,1 > 353,0,0 > 573,68,1 > 253,68,1 > 241,67,1 > 353,0,0 Where do those appear? And WTH happened to LC's error reporting dialog? I see more and more error info reports like this in recent years. Presenting anything like this to either devs or end-users is a horrible experience. We can do better. -- 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 General.2018 at outlook.com Mon Nov 9 17:04:47 2020 From: General.2018 at outlook.com (General 2018) Date: Mon, 9 Nov 2020 22:04:47 +0000 Subject: Code Signing and Kernel Mode drivers In-Reply-To: <195c623e-20b7-0947-624f-09a7113a7aa5@researchware.com> References: , <195c623e-20b7-0947-624f-09a7113a7aa5@researchware.com> Message-ID: Great thanks ! Regards Cam > On 8 Nov 2020, at 18:06, Paul Dupuis via use-livecode wrote: > > ?The basic windows code signing cert works fine. You do not need the more expensive "EV" certificate. > >> On 11/8/2020 12:58 PM, General 2018 via use-livecode wrote: >> Hi , >> >> Are the standard Livecode .dll that are included with the standalone Kernel mode drivers ?? >> >> The reason for asking is that codesigning for Windows 10 needs a more expensive certificate if kernel mode drivers signing is required. >> >> Regards >> Cam >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 9 17:10:08 2020 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 9 Nov 2020 14:10:08 -0800 Subject: Windows startup issue In-Reply-To: <83c549e1-8df5-5a7f-a070-5dbb0097e7ec@fourthworld.com> References: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> <83c549e1-8df5-5a7f-a070-5dbb0097e7ec@fourthworld.com> Message-ID: <30110BD6-9FAD-48D6-930B-171ED7228156@gmail.com> The errors show up in a dialog window. The section of code referenced is just checking the status a a custom font. On Windows we install the font with an Inno installer (and on Mac we just start using an embedded font). Here's my code with the line numbers added. 67 being referenced several times in the error: 67) if "MyCustomeFontName" is in the fontNames then 68) put "installed" into tFontStatus 69) else put "loaded" into tFontStatus --- Marty > On Nov 9, 2020, at 1:54 PM, Richard Gaskin via use-livecode wrote: > > Marty Knapp wrote: > >> I have a customer who is having a weird issue with a Windows app built in LC (9.6.1). It worked fine for about a month, it works fine here for me all the time and it works fine for all our other customers. >> On startup is begins to launch then gets a bunch of errors: >> 269,76,1 >> 262,67,1 >> 252,67,1 >> 241,67,1 >> 353,0,0 >> 573,68,1 >> 253,68,1 >> 241,67,1 >> 353,0,0 > > Where do those appear? > > And WTH happened to LC's error reporting dialog? > > I see more and more error info reports like this in recent years. Presenting anything like this to either devs or end-users is a horrible experience. > > We can do better. > > -- > 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 Mon Nov 9 17:41:38 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 9 Nov 2020 16:41:38 -0600 Subject: Windows startup issue In-Reply-To: <83c549e1-8df5-5a7f-a070-5dbb0097e7ec@fourthworld.com> References: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> <83c549e1-8df5-5a7f-a070-5dbb0097e7ec@fourthworld.com> Message-ID: <37a775fa-350f-3449-3791-05bfb2488e4c@hyperactivesw.com> On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote: > Where do those appear? > > And WTH happened to LC's error reporting dialog? Standalones have always reported this way on both desktop and mobile. It is up to the developer to include the translated references if they want to see those. Generally I don't bother, I provide the optional built-in ability to send email to support or save a file. I can translate the numbers myself since the meanings usually mean nothing to the end-user anyway. The IDE does still translate for us. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Nov 9 17:52:22 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 9 Nov 2020 16:52:22 -0600 Subject: Windows startup issue In-Reply-To: <30110BD6-9FAD-48D6-930B-171ED7228156@gmail.com> References: <92CE5674-27AB-4D43-9DCF-EF369BC2EC94@gmail.com> <83c549e1-8df5-5a7f-a070-5dbb0097e7ec@fourthworld.com> <30110BD6-9FAD-48D6-930B-171ED7228156@gmail.com> Message-ID: <7d599590-edbd-14df-3612-8657a3ddb19c@hyperactivesw.com> That should work, I don't see anything in those three lines that would fail -- except maybe if "the fontnames" couldn't be retrieved on that machine. It almost looks like the engine thinks "the fontnames" is a custom function since it's reporting it can't find the handler. I'm not sure how you'd fix that. I suppose you could wrap the clause in a "try" structure and if it errors, assume the font isn't there. On 11/9/20 4:10 PM, Marty Knapp via use-livecode wrote: > The errors show up in a dialog window. > > The section of code referenced is just checking the status a a custom font. On Windows we install the font with an Inno installer (and on Mac we just start using an embedded font). Here's my code with the line numbers added. 67 being referenced several times in the error: > > 67) if "MyCustomeFontName" is in the fontNames then > 68) put "installed" into tFontStatus > 69) else put "loaded" into tFontStatus > > --- > Marty > >> On Nov 9, 2020, at 1:54 PM, Richard Gaskin via use-livecode wrote: >> >> Marty Knapp wrote: >> >>> I have a customer who is having a weird issue with a Windows app built in LC (9.6.1). It worked fine for about a month, it works fine here for me all the time and it works fine for all our other customers. >>> On startup is begins to launch then gets a bunch of errors: >>> 269,76,1 >>> 262,67,1 >>> 252,67,1 >>> 241,67,1 >>> 353,0,0 >>> 573,68,1 >>> 253,68,1 >>> 241,67,1 >>> 353,0,0 >> >> Where do those appear? >> >> And WTH happened to LC's error reporting dialog? >> >> I see more and more error info reports like this in recent years. Presenting anything like this to either devs or end-users is a horrible experience. >> >> We can do better. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Nov 10 02:14:48 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 9 Nov 2020 23:14:48 -0800 Subject: Windows startup issue In-Reply-To: <37a775fa-350f-3449-3791-05bfb2488e4c@hyperactivesw.com> References: <37a775fa-350f-3449-3791-05bfb2488e4c@hyperactivesw.com> Message-ID: <7fd2628a-71de-2a41-9582-2738cc4aa4ae@fourthworld.com> J. Landman Gay wrote: > On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote: >> And WTH happened to LC's error reporting dialog? > > Standalones have always reported this way on both desktop and mobile. > It is up to the developer to include the translated references if > they want to see those. Generally I don't bother, I provide the > optional built-in ability to send email to support or save a file. > I can translate the numbers myself since the meanings usually mean > nothing to the end-user anyway. I've been using my own error-reporting for so long I can't recall seeing the default standalone handling. I have made a couple of quickies where I just used LC's error reporting, but clumsy as that design is at least the output from the "Send Report" button is more useful than the raw list of triplet integers. How has such ungraceful error handling become acceptable? Why is the least useful thing the easiest for new developers to do? Shouldn't it be easy for LC devs to deliver a great application experience? -- 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 theaford at btinternet.com Tue Nov 10 02:55:13 2020 From: theaford at btinternet.com (Terence Heaford) Date: Tue, 10 Nov 2020 07:55:13 +0000 Subject: Segmented Control Widget In-Reply-To: <38829052-A67B-45A3-8F82-92486B88F782@iotecdigital.com> References: <0D626041-CF07-43F0-846B-CD6B5CD05C6E@btinternet.com> <38829052-A67B-45A3-8F82-92486B88F782@iotecdigital.com> Message-ID: I will give this a try. It?s a shame that widgets always seem to be incomplete in one way or another. Thanks for your help. All the best Terry > On 9 Nov 2020, at 16:52, Bob Sneidar via use-livecode wrote: > > In my custom tabbed object group, I had to put transparent buttons over the tabs From livfoss at mac.com Tue Nov 10 07:51:16 2020 From: livfoss at mac.com (Graham Samuel) Date: Tue, 10 Nov 2020 13:51:16 +0100 Subject: Ideas on iOS GPS tracking needed In-Reply-To: <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> References: <4EC9A610-0D2A-4F37-9BB5-4F4FDE2AFEC6@iotecdigital.com> <000367E1-8DC6-4EA6-BB1C-5AA7EE2A9279@mac.com> Message-ID: <5C061D0C-1855-4E7E-94DD-B5A403CA1DF3@mac.com> Just a little more info for those that are interested. In general, it is extremely frustrating having to recreate a solution to a problem which has clearly been solved already many times. I can list several iOS apps which I use personally that appear to give reasonably accurate measures of how far someone has walked, run or cycled. Yet I still have not cracked the problem of inaccuracy which essentially causes all the trouble. Still trying, obviously. I did come across an interesting document, an MSc thesis by Benjamin Bennett, a graduate student at the University of Oregon, written in 2018, entitled "Accurate Distance Calculation Using GPS While Performing Low Speed Activity ?. https://scholarsbank.uoregon.edu/xmlui/bitstream/handle/1794/23827/Bennett_oregon_0171N_12262.pdf?sequence=1&isAllowed=y Bennett used Android devices, using of course GPS coords, including speed. His preoccupations with walking and cycling were very relevant. He himself found that the raw GPS point-to-point calculation was pretty good, but I am having a really good look at his other methods. His use of speed is interesting: in general the speed data gave terrible results, except that it was a very accurate way of assessing that the user had stopped moving! This is needed because if you simple keep the phone stationary and measure successive GPS readings, the GPS inaccuracies cause variations which falsely add to the distance calculation. So it would be good to include ?idling? detection, which he did. [BTW, you can get the speed from the GPS in iOS in LC via mobileSensorReading, although it?s only mentioned in a footnote in the LC Dictionary. It?s an array element with the expected key ?speed?. Minor update to the Dictionary needed.] Sorry if all this seems tedious. Despite the frustrations, I still find it fascinating. Graham PS Kevin Willett did answer me, but he wasn?t very forthcoming about exactly how he filters out inaccuracies. Of course he was under no obligation to do so! > On 4 Nov 2020, at 23:57, Graham Samuel wrote: > > Thanks Alan and Bob - I was beginning to think I was alone on this one? > > Yes, I do look at horizontal accuracy. I found out the following using my iPhone XS. > > 1. Horizontal accuracy tends to be rather poor for the first 10 to 20 readings after activation, typically 65 metres. In context, a test walking round my garden, which is about 110 x 60 meters, can quite often be woefully inaccurate at the beginning. > > 2. Even when has settled down it is still quite variable, but tends to settle to an average less than 10 metres after a time. > > 3. Occasionally it throws colossal anomalies, like 5000 metres, with a corresponding crazy waypoint taking someone on foot right out of the park. > > Of course I can catch the really big ones and ignore them, especially as they are infrequent (maybe two or three in an hour?s walk); but on my tests, the issue is the points that are a bit out, which can be fairly subtle - I mean if you draw them on a map, they are obvious to the human eye, but detecting them is quite difficult. For those, Bob?s idea is a good one, though of course it works best after the trip has been going for while. Anyway, thanks, I'm planning to use it. I agree seconds is the way to go - especially if the app doesn?t know the intended speed (it might be walking, cycling or driving for example). You can tell the user what you?re doing (some apps do this) but I prefer not to ask the user to make that choice. > > I just bought a little app from the App Store, GPSOdometer by Kevin Willett. This does more or less what I want my app to do (it?s cosmetically quite different), and it offers a ?Filter Level? setting, which effectively allows the user to decide how much horizontal (in)accuracy to accept. The level varies between 0.05 and 2.00, where a higher number means a larger tolerance of inaccuracies. I?ve written to Kevin to ask for a little more detail - of course he doesn?t have to reply, but I hope he does. > > I will come back to the list to say how I got on. You never know, this may help others eventually. > > Graham > > PS The only test data I have been able to find for the XCode Simulator is a bike ride in California which runs along giving a succession of GPS . It is quite useful, but naturally it doesn?t involve anomalies. > > >> On 3 Nov 2020, at 23:55, Bob Sneidar via use-livecode > wrote: >> >> Seems to me if you are tracking linear movement, you need to average the trending values, say the last 5 or 10 reads, against a time base, and reject the ones outside an acceptable tolerance. You may reject some good data here and there, but something grossly outside tolerance should be pretty easy to grok. >> >> Sounds easy, huh? :-) But it really is. For a car moving at 60mph, obviously the trend is going to be greater than a person walking, and slower than a small airplane. For an alien spacecraft traveling at insane speeds and making wild maneuvers, I?m afraid you are on your own. The tolerance can be a percentage of the average of the last x reads or the last x seconds. Seconds makes more sense to me since if you drop 2 or 3 reads it will skew the averages significantly. That is likely how Google Maps does it. >> >> Bob S >> >> >> On Nov 3, 2020, at 2:39 PM, Alan Stenhouse via use-livecode >> wrote: >> >> Hi Graham >> >> Are you checking the horizontal accuracy of each reading? (It's part of the array of data with your lat-longs, as well as speed, etc - though not on every phone). >> >> If not, try that and see if the anomalous readings are hugely out. From my experience, that's normally the case. If so, the easiest thing is to drop them in the short term, unless you get too many and then you may need to be a bit fancier. If you do, would love to hear the solution that you come up with. >> >> HTH, cheers >> >> Alan >> >> On 4 Nov 2020, at 3:30 am, Graham Samuel > wrote: >> >> From: Graham Samuel > >> To: How to use LiveCode > >> Subject: Ideas on iOS GPS tracking needed >> Message-ID: <6C855814-1850-4975-B185-1731EFCD6DA2 at mac.com > >> Content-Type: text/plain; charset=utf-8 >> >> Sorry this is a bit long. >> >> For a long time I?ve been tinkering with an app that uses the GPS on iPhones to show how far ?as the crow flies? the user is from some base point, which is set before the journey starts. It?s intended for walkers and cyclists, and I was using a beta version in the first French lockdown, which forbade one walking more than 1km from one?s house. I put the completion of this aside, but now we?re in the second French lockdown and it looks worth finishing - but I have some issues which I believe are not just down to my bad coding (though of course that?s more than possible), and I wonder if anyone else has thought about this stuff. >> >> The basic idea is extremely simple, as you can imagine, and it wasn?t hard to code. The app keeps working out the point-to-point distance from the base and tests it against the permitted limit. If the limit is exceeded, it sounds an alarm. If the user goes back within the limit, the alarm stops. Everything else is just cosmetic, really. >> >> The issue I have is that in every journey of say 40 minutes to an hour, the iPhone appears to generate a few ?bad? GPS readings. When I say bad, I mean way beyond the published accuracy of the GPS (which varies up to about 70m). Sometimes the GPS wants to tell me that I?ve walked half a kilometer in three seconds! >> >> I have analysed a lot of data (.gpx files) from other apps for walkers, drivers and cyclists and I don?t see such glaring anomalies; and using such apps on my main test phone (an iPhone X), I don?t see these strange readings affecting the data. >> >> Assuming this isn?t just a stupid coding error on my part (OK, a risky assumption), I need to find a solution, either by increasing the accuracy of the readings, or by finding the anomalies as they occur and eliminating them. I know no way of doing the first, and although I have ideas for the second (check apparent speed, for example), none seems foolproof. As the app works in real time, a retroactive curve-fitting solution is no good for me, even if my maths was up to coding it (Kalman filter, anyone?). >> >> Has anyone tried anything like this, and if so, did you find any anomalies in the data, and how did you cope with them? >> >> I?d be grateful for any ideas. >> >> Graham From craig at starfirelighting.com Tue Nov 10 13:58:38 2020 From: craig at starfirelighting.com (Craig newman) Date: Tue, 10 Nov 2020 13:58:38 -0500 Subject: The Most Stupid Question Ever? In-Reply-To: <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> Message-ID: <00c001d6b793$8002f000$8008d000$@starfirelighting.com> Not stupid. Wierder than you think. Substitute "field 1" for the message box. Works just fine, like it ought to. Craig -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Monday, November 09, 2020 12:04 PM To: How to use LiveCode Cc: Bob Sneidar Subject: Re: The Most Stupid Question Ever? I have seen this sort of thing before with the wait command. Very frustrating. Apparently Livecode is not *strictly* single threaded. Bob S > On Nov 8, 2020, at 22:31 , Roger Guay via use-livecode wrote: > > Thank you, Mark. You?re very kind! And very helpful. I do remember now how one needs to wait with messages. > > Roger > >> On Nov 8, 2020, at 9:05 PM, Mark Wieder via use-livecode wrote: >> >> On 11/8/20 8:02 PM, Mark Wieder via use-livecode wrote: >>> On 11/8/20 6:57 PM, Roger Guay via use-livecode wrote: >>>> Please tell me why this doesn?t work: >> >> ...and that is, btw, hardly a stupid question. >> You want stupid you'll have to get in line after me. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Nov 10 15:03:46 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 10 Nov 2020 20:03:46 +0000 Subject: The Most Stupid Question Ever? In-Reply-To: <00c001d6b793$8002f000$8008d000$@starfirelighting.com> References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> <00c001d6b793$8002f000$8008d000$@starfirelighting.com> Message-ID: Ah! That would have to mean that script interaction with the message box is using send in time! Bob S On Nov 10, 2020, at 10:58 AM, Craig newman via use-livecode > wrote: Not stupid. Wierder than you think. Substitute "field 1" for the message box. Works just fine, like it ought to. Craig -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode Sent: Monday, November 09, 2020 12:04 PM To: How to use LiveCode > Cc: Bob Sneidar > Subject: Re: The Most Stupid Question Ever? I have seen this sort of thing before with the wait command. Very frustrating. Apparently Livecode is not *strictly* single threaded. Bob S From jacque at hyperactivesw.com Tue Nov 10 15:37:10 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 10 Nov 2020 14:37:10 -0600 Subject: Windows startup issue In-Reply-To: <7fd2628a-71de-2a41-9582-2738cc4aa4ae@fourthworld.com> References: <37a775fa-350f-3449-3791-05bfb2488e4c@hyperactivesw.com> <7fd2628a-71de-2a41-9582-2738cc4aa4ae@fourthworld.com> Message-ID: <60e91d58-8bed-f80d-ddff-70b8c6f9817e@hyperactivesw.com> On 11/10/20 1:14 AM, Richard Gaskin via use-livecode wrote: > J. Landman Gay wrote: > > > On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote: > >> And WTH happened to LC's error reporting dialog? > > > > Standalones have always reported this way on both desktop and mobile. > > It is up to the developer to include the translated references if > > they want to see those. Generally I don't bother, I provide the > > optional built-in ability to send email to support or save a file. > > I can translate the numbers myself since the meanings usually mean > > nothing to the end-user anyway. > > I've been using my own error-reporting for so long I can't recall seeing the default standalone > handling. > > I have made a couple of quickies where I just used LC's error reporting, but clumsy as that > design is at least the output from the "Send Report" button is more useful than the raw list of > triplet integers. > > How has such ungraceful error handling become acceptable? > > Why is the least useful thing the easiest for new developers to do? > > Shouldn't it be easy for LC devs to deliver a great application experience? > I can't remember a time when it *didn't* report the triplets outside of the IDE. That's why you and I wrote the Error Lookup stack. ;) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From irog at mac.com Tue Nov 10 15:55:18 2020 From: irog at mac.com (Roger Guay) Date: Tue, 10 Nov 2020 12:55:18 -0800 Subject: The Most Stupid Question Ever? In-Reply-To: References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> <00c001d6b793$8002f000$8008d000$@starfirelighting.com> Message-ID: <4C7823FF-1676-483C-922A-6CFBA4A4F07C@mac.com> Weirder of Weider??? R > On Nov 10, 2020, at 12:03 PM, Bob Sneidar via use-livecode wrote: > > Wierder than you think. From paul at researchware.com Tue Nov 10 16:11:12 2020 From: paul at researchware.com (Paul Dupuis) Date: Tue, 10 Nov 2020 16:11:12 -0500 Subject: Windows startup issue In-Reply-To: <7fd2628a-71de-2a41-9582-2738cc4aa4ae@fourthworld.com> References: <37a775fa-350f-3449-3791-05bfb2488e4c@hyperactivesw.com> <7fd2628a-71de-2a41-9582-2738cc4aa4ae@fourthworld.com> Message-ID: <923f184d-80f4-cedf-9c0e-fc3ba3585f8c@researchware.com> On 11/10/2020 2:14 AM, Richard Gaskin via use-livecode wrote: > J. Landman Gay wrote: > > > On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote: > >> And WTH happened to LC's error reporting dialog? > > > > Standalones have always reported this way on both desktop and mobile. > > It is up to the developer to include the translated references if > > they want to see those. Generally I don't bother, I provide the > > optional built-in ability to send email to support or save a file. > > I can translate the numbers myself since the meanings usually mean > > nothing to the end-user anyway. > > I've been using my own error-reporting for so long I can't recall > seeing the default standalone handling. > > I have made a couple of quickies where I just used LC's error > reporting, but clumsy as that design is at least the output from the > "Send Report" button is more useful than the raw list of triplet > integers. > > How has such ungraceful error handling become acceptable? > > Why is the least useful thing the easiest for new developers to do? > > Shouldn't it be easy for LC devs to deliver a great application > experience? > One big thing that LC could do to let developer's improve error handling and standalone troubleshooting would be to include the "scriptExecutionErrors" in Standalones. I know it is along list, but would it really add that many more bytes to Standalones relative to the current engine size? I know you can replicate having the error text present by copying the scriptExecutionErrors to a custom property in your standalone, but then you have to be sure to update it with each engine release. To just have it included when you build a standalone would be much better. From ambassador at fourthworld.com Tue Nov 10 16:28:55 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Nov 2020 13:28:55 -0800 Subject: Windows startup issue In-Reply-To: <60e91d58-8bed-f80d-ddff-70b8c6f9817e@hyperactivesw.com> References: <60e91d58-8bed-f80d-ddff-70b8c6f9817e@hyperactivesw.com> Message-ID: Yes, I had my part of the code handy from my custom error handling. But at the time it seemed to me the tool was for edge cases where one might encounter raw error data with no UI. It never occurred to me to ship an application without error handling, and back then I'd never used LC's so I just assumed it was at least as good as my own. Since then I've learned that providing any UI for error handling at all is turned OFF by default. Off. As in, "Let's make providing a near-useless solution the thing we guide new developers to deliver to their customers." I was brainstorming with Mark Wieder a few weeks ago about adding static analysis to IDE error reporting, aiming for something closer to the helpful guidance Clang provides. Even if we did little more than show the var values causing something to trip up, it would save tremendous time. Aiming higher seems useful. Other tools are getting better all the time. And that's for just the IDE. If LC devs are comfortable with state-of-the-art-circa-2003, what we have in the IDE is at least adequate. For end-users, though, that's where we really want to shine. It's where we NEED to shine. We want new devs picking up LC to look like heroes, and to deliver that high-quality experience with less effort than they'd put in with other tools. That's the point. That's why we use LC. If we can't do that, why are we here? Everything is undergoing perpetual change. With products there's new customer acquisition on the one side, and attrition on the other. As long as change is happening, why not direct some of it? Why not aim a little higher, to reduce attrition while attracting new users? Sure, we'd all like to see that happen, but a hundred paper cuts unattended undermine that goal. And as paper cuts go, error handling cuts deep. It only happen when something went wrong. It's an especially sensitive moment in the user journey. We can either lose the user's trust, or retain it. So much about the confidence end-users have in our work hinges on how we handle when things go wrong. Why not aim higher than the least useful experience? Or to put this more clearly: 254,11,34 301,2,43 262,67,1 12,22,1 132,1,44 73,68,1 241,67,1 353,0,0 433,2,0 201,0,0 88,3,22 322,4,20 568,22,0 -- Richard Gaskin Fourth World Systems J. Landman Gay wrote: > On 11/10/20 1:14 AM, Richard Gaskin via use-livecode wrote: >> J. Landman Gay wrote: >> >> > On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote: >> >> And WTH happened to LC's error reporting dialog? >> > >> > Standalones have always reported this way on both desktop and mobile. >> > It is up to the developer to include the translated references if >> > they want to see those. Generally I don't bother, I provide the >> > optional built-in ability to send email to support or save a file. >> > I can translate the numbers myself since the meanings usually mean >> > nothing to the end-user anyway. >> >> I've been using my own error-reporting for so long I can't recall seeing the default standalone >> handling. >> >> I have made a couple of quickies where I just used LC's error reporting, but clumsy as that >> design is at least the output from the "Send Report" button is more useful than the raw list of >> triplet integers. > >> How has such ungraceful error handling become acceptable? >> >> Why is the least useful thing the easiest for new developers to do? >> >> Shouldn't it be easy for LC devs to deliver a great application experience? >> > > I can't remember a time when it *didn't* report the triplets outside of the IDE. That's why you > and I wrote the Error Lookup stack. ;) > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From craig at starfirelighting.com Tue Nov 10 17:34:53 2020 From: craig at starfirelighting.com (Craig newman) Date: Tue, 10 Nov 2020 17:34:53 -0500 Subject: The Most Stupid Question Ever? In-Reply-To: <4C7823FF-1676-483C-922A-6CFBA4A4F07C@mac.com> References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> <00c001d6b793$8002f000$8008d000$@starfirelighting.com> <4C7823FF-1676-483C-922A-6CFBA4A4F07C@mac.com> Message-ID: <00c901d6b7b1$b5aa4e60$20feeb20$@starfirelighting.com> I am switching between the forum discussion about this and here. The plain old wait command, (without "with messages") works fine when the target field is on another stack. So it not the fact that the field is not "local". There is something about the message box itself, ostensibly just a stack, that matters. This is not the first time that msg has been caught acting oddly. I am actually gratified to know that LC works "normally", as long as msg is not in the mix. Craig -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Roger Guay via use-livecode Sent: Tuesday, November 10, 2020 3:55 PM To: How to use LiveCode Cc: Roger Guay Subject: Re: The Most Stupid Question Ever? Weirder of Weider??? R > On Nov 10, 2020, at 12:03 PM, Bob Sneidar via use-livecode wrote: > > Wierder than you think. _______________________________________________ use-livecode mailing list use-livecode at 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 Nov 10 18:14:39 2020 From: craig at starfirelighting.com (Craig newman) Date: Tue, 10 Nov 2020 18:14:39 -0500 Subject: The Most Stupid Question Ever? References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> <00c001d6b793$8002f000$8008d000$@starfirelighting.com> <4C7823FF-1676-483C-922A-6CFBA4A4F07C@mac.com> Message-ID: <00ca01d6b7b7$43fab3d0$cbf01b70$@starfirelighting.com> "Send in time". Hmmm So the line "put start" is actually delayed until after the wait command, er, starts, and gets stuck there? And if one uses "wait with messages" that stuck command can worm its way out and back into play? So then LC knows when the message box is about to be the target, and therefore acts differently than with any other container. The actual already executed command "put" is left stranded, unrequited, because the next line in sequence, not yet executed, has foreknowledge that the upcoming target is the message box, and is girding itself to access it?? Odd. Craig -----Original Message----- From: Craig newman [mailto:craig at starfirelighting.com] Sent: Tuesday, November 10, 2020 5:35 PM To: 'How to use LiveCode' Subject: RE: The Most Stupid Question Ever? I am switching between the forum discussion about this and here. The plain old wait command, (without "with messages") works fine when the target field is on another stack. So it not the fact that the field is not "local". There is something about the message box itself, ostensibly just a stack, that matters. This is not the first time that msg has been caught acting oddly. I am actually gratified to know that LC works "normally", as long as msg is not in the mix. Craig -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Roger Guay via use-livecode Sent: Tuesday, November 10, 2020 3:55 PM To: How to use LiveCode Cc: Roger Guay Subject: Re: The Most Stupid Question Ever? Weirder of Weider??? R > On Nov 10, 2020, at 12:03 PM, Bob Sneidar via use-livecode wrote: > > Wierder than you think. _______________________________________________ use-livecode mailing list use-livecode at 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 Nov 10 18:31:44 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 10 Nov 2020 23:31:44 +0000 Subject: The Most Stupid Question Ever? In-Reply-To: References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> <00c001d6b793$8002f000$8008d000$@starfirelighting.com> Message-ID: <69CE669A-5B78-4052-8D53-6151EE9CF3EB@iotecdigital.com> I vaguely remember long time, many moons, this came up. The upshot of the conversation is that because the message box is a stack file in it?s own right, certain features would only work this way, or it would interfere with other things if it didn?t work this way. I dunno, it was all all so hazy back then, what with having to watch for dinosaurs and large predators with teeth like swords. Bob S > On Nov 10, 2020, at 12:03 PM, Bob Sneidar via use-livecode wrote: > > Ah! That would have to mean that script interaction with the message box is using send in time! > > Bob S > > > On Nov 10, 2020, at 10:58 AM, Craig newman via use-livecode > wrote: > > Not stupid. Wierder than you think. > > Substitute "field 1" for the message box. Works just fine, like it ought to. > > Craig > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Bob Sneidar via use-livecode > Sent: Monday, November 09, 2020 12:04 PM > To: How to use LiveCode > > Cc: Bob Sneidar > > Subject: Re: The Most Stupid Question Ever? > > I have seen this sort of thing before with the wait command. Very frustrating. Apparently Livecode is not *strictly* single threaded. > > 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 jacque at hyperactivesw.com Tue Nov 10 19:45:29 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 10 Nov 2020 18:45:29 -0600 Subject: Windows startup issue In-Reply-To: References: <60e91d58-8bed-f80d-ddff-70b8c6f9817e@hyperactivesw.com> Message-ID: On 11/10/20 3:28 PM, Richard Gaskin via use-livecode wrote: > But at the time it seemed to me the tool was for edge cases where one might encounter raw error > data with no UI.? It never occurred to me to ship an application without error handling, and > back then I'd never used LC's so I just assumed it was at least as good as my own. We shouldn't confuse our own error handling with compiler errors. I include extensive logging and error reporting when "the result" or something similar in my scripts fail. As developers, it's our job to do that. The cryptic numbers only occur when a compiler error happens. A well-tested stack won't have many of those by the time it's distributed. The one in question here is an odd one-off which only happened for one user. So it sounds like you're asking LC to translate its compiler errors in standalones. These are infrequent enough for me that the numbers aren't much of a concern; they largely happen during development and those are translated for us. But Paul's suggestion that standalones include the entire error list isn't a bad one, though I'd like it to be optional. Users don't care what the descriptions are and I can look them up, but some might want those included. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Tue Nov 10 19:52:25 2020 From: paul at researchware.com (Paul Dupuis) Date: Tue, 10 Nov 2020 19:52:25 -0500 Subject: Windows startup issue In-Reply-To: References: <60e91d58-8bed-f80d-ddff-70b8c6f9817e@hyperactivesw.com> Message-ID: <0f75a873-6cd3-d401-f3ab-c91c7a0e5210@researchware.com> On 11/10/2020 7:45 PM, J. Landman Gay via use-livecode wrote: > But Paul's suggestion that standalones include the entire error list > isn't a bad one, though I'd like it to be optional. Users don't care > what the descriptions are and I can look them up, but some might want > those included. I imagine that they could be added to the Inclusions - if on automatic, use of the "scriptExecutionErrors" in your code would lead to automatic inclusion. If on manual, you get to include them or not. From ambassador at fourthworld.com Tue Nov 10 21:32:54 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Nov 2020 18:32:54 -0800 Subject: Windows startup issue In-Reply-To: References: Message-ID: <18a3c905-6f7c-fdff-dc5a-66195a711896@fourthworld.com> J. Landman Gay jacque wrote: > On 11/10/20 3:28 PM, Richard Gaskin via use-livecode wrote: >> But at the time it seemed to me the tool was for edge cases where one >> might encounter raw error data with no UI. It never occurred to me >> to ship an application without error handling, and >> back then I'd never used LC's so I just assumed it was at least as >> good as my own. > > We shouldn't confuse our own error handling with compiler errors. I > include extensive logging and error reporting when "the result" or > something similar in my scripts fail. As developers, > it's our job to do that. Of course, which is why I've not been able to find the recipe for seeing these lists of error info people keep mentioning here and in the forums. But given the number of times they're cited, it's clear a lot of people are encountering them unexpectedly. > The cryptic numbers only occur when a compiler error happens. A well- > tested stack won't have many of those by the time it's distributed. > The one in question here is an odd one-off which only happened for > one user. Compiler errors or execution errors? If this is limited to compiler errors I'm wondering what went wrong earlier in the workflow that so many people are able to close their scripts and move on without noticing that the Script Editor has been trying to get their attention, and that the scripts don't run at all until they're compiled. The Dictionary says compilation errors are only reported in "the result" after an unsuccessful attempt to set the script of an object (apparently the old scriptParsingError message is no longer sent, though oddly enough a handler for it remains in the IDE). Do we have that many people writing self-modifying code? Execution errors are what I was referring to in my last post. As thorough as we may be, in any sufficiently complex code base there's likely to be some error condition we didn't explicitly code for. Our choices are to handle those ourselves with an errorDialog handler, or remember to click the checkbox in the Standalone Builder to use LC's Execution Error reporting stack. If you don't do either, errors fail silently (at least when I just tested it here with a simple test stack). But oddly, when I include LC's Execution Error dialog, the result was, shall we say, not as expected: http://fourthworld.net/lc/lc-err-dialog.png That's in v9.6.1. Their exec err stack used to work. I wonder when it broke. So for exec errors, at a minimum it would be very helpful to have the Execution Error reporting window option set to be included by default in new standalones, so that it can become possible for folks to know what happened when behavior starts getting wonky. Later on I have a wish list of improvements for that dialog, but having some means of knowing when an error occurs in a form suitable for end-users seems a reasonable minimum to expect. Hard to say what's in play in this thread (and perhaps others like it) where the only reported symptom is a list of error info, since Marty's description was: "The errors show up in a dialog window." Is that an answer dialog? Is that an LC lib that does that, something Marty wrote, or...? How can I get a standalone to show me a list of error info like that? Whatever that recipe is, that's the thing we'll want to fix. > So it sounds like you're asking LC to translate its compiler errors > in standalones. These are infrequent enough for me that the numbers > aren't much of a concern; they largely happen during development and > those are translated for us. But Paul's suggestion that standalones > include the entire error list isn't a bad one, though I'd like it to > be optional. It looks they did that some time ago - kinda. The revIDELookupError function in "revIDELibrary" includes this tantalizing line: get line tCode of the scriptExecutionErrors So it looks like a built-in function now, right? Not quite: doesn't work in a standalone. I'm guessing they copy the latest value that returns into their Execution Error dialog when you add that checkbox, so custom things can do the same. Still an extra step, but much easier than the old method we used to use of having to remember which custom property - and before that, which hidden field -- of which stack that list was stored in. But that's for seasoned pros willing to roll their own. First we need to figure out how people are unexpectedly seeing lists of raw error info and turn that into a more useful experience. Then we can look at enhancing LC's Execution Error dialog, and have the default be on rather than off. After that there are a hundred other paper cuts, but let's see if we can knock these off first. -- 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 ambassador at fourthworld.com Tue Nov 10 22:38:06 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Nov 2020 19:38:06 -0800 Subject: Windows startup issue In-Reply-To: <0f75a873-6cd3-d401-f3ab-c91c7a0e5210@researchware.com> References: <0f75a873-6cd3-d401-f3ab-c91c7a0e5210@researchware.com> Message-ID: Paul Dupuis wrote: > I imagine that they could be added to the Inclusions - if on > automatic, use of the "scriptExecutionErrors" in your code > would lead to automatic inclusion. If on manual, you get to > include them or not. FWIW it's only 29k uncompressed, 7k compressed. -- 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 Wed Nov 11 01:53:20 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 11 Nov 2020 00:53:20 -0600 Subject: Windows startup issue In-Reply-To: <18a3c905-6f7c-fdff-dc5a-66195a711896@fourthworld.com> References: <18a3c905-6f7c-fdff-dc5a-66195a711896@fourthworld.com> Message-ID: <175b6148700.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Sorry, I meant execution errors. You're supposed to read my mind. I keep telling my husband that but he doesn't always get it either. ;) I've used the built-in error reporting mechanism in the past and it worked well; I usually choose the email option and it works on both deaktop and mobile. I wasn't aware it was broken. I think it would be difficult to include that automatically since it requires some input, at least an email address and ideally a prompt. I suppose a default file could be generated but the user wouldn't know it unless they were notified. Lately I've been catching the errorDialog message and handling it myself. But thinking back to the built-in method, I think it did include the definitions. It's been a while since we got one of those, but I vaguely recall reading an email and understanding the problem without needing to look up any numbers. In that case we just need to include error handling in standalone settings, which apparently adds the definitions to the app. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 10, 2020 8:34:57 PM Richard Gaskin via use-livecode wrote: > > Compiler errors or execution errors? From jacque at hyperactivesw.com Wed Nov 11 01:58:16 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 11 Nov 2020 00:58:16 -0600 Subject: Windows startup issue In-Reply-To: <175b6148700.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <18a3c905-6f7c-fdff-dc5a-66195a711896@fourthworld.com> <175b6148700.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <175b6190b40.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I just saw your execution error image, I haven't seen an empty dialog before. Did you include a prompt? I'll try a test tomorrow. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 11, 2020 12:55:22 AM "J. Landman Gay via use-livecode" wrote: > Sorry, I meant execution errors. You're supposed to read my mind. I keep > telling my husband that but he doesn't always get it either. ;) > > I've used the built-in error reporting mechanism in the past and it worked > well; I usually choose the email option and it works on both deaktop and > mobile. I wasn't aware it was broken. I think it would be difficult to > include that automatically since it requires some input, at least an email > address and ideally a prompt. I suppose a default file could be generated > but the user wouldn't know it unless they were notified. > > > Lately I've been catching the errorDialog message and handling it myself. > But thinking back to the built-in method, I think it did include the > definitions. It's been a while since we got one of those, but I vaguely > recall reading an email and understanding the problem without needing to > look up any numbers. In that case we just need to include error handling in > standalone settings, which apparently adds the definitions to the app. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On November 10, 2020 8:34:57 PM Richard Gaskin via use-livecode > wrote: >> >> Compiler errors or execution errors? > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 11 06:04:23 2020 From: dvglasgow at gmail.com (David V Glasgow) Date: Wed, 11 Nov 2020 11:04:23 +0000 Subject: The Most Stupid Question Ever? In-Reply-To: <00ca01d6b7b7$43fab3d0$cbf01b70$@starfirelighting.com> References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> <00c001d6b793$8002f000$8008d000$@starfirelighting.com> <4C7823FF-1676-483C-922A-6CFBA4A4F07C@mac.com> <00ca01d6b7b7$43fab3d0$cbf01b70$@starfirelighting.com> Message-ID: <3C0BB426-8386-49C8-8320-BCD8651FEC85@gmail.com> > On 10 Nov 2020, at 11:14 pm, Craig newman via use-livecode wrote: > > So then LC knows when the message box is about to be the target, and > therefore acts differently than with any other container. The actual already > executed command "put" is left stranded, unrequited, because the next line > in sequence, not yet executed, has foreknowledge that the upcoming target > is the message box, and is girding itself to access it?? "Spooky action at a distance"? From williamdesmet at gmail.com Wed Nov 11 06:38:15 2020 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 11 Nov 2020 12:38:15 +0100 Subject: Best way to add an image to an oval graphic? Message-ID: Hi there, When I set the BackgroundPattern of an graphic oval to the image ID, the image is not centered inside the oval graphic. What is a better way to add an image to a graphic oval (and center it? greetings, William From craig at starfirelighting.com Wed Nov 11 09:50:31 2020 From: craig at starfirelighting.com (Craig newman) Date: Wed, 11 Nov 2020 09:50:31 -0500 Subject: Best way to add an image to an oval graphic? In-Reply-To: References: Message-ID: <00d101d6b83a$00d26250$027726f0$@starfirelighting.com> Hi. I made an oval graphic and set the backGroundPattern to the ID of a random image I imported to the card. It filled the grc perfectly. Do you have a screenshot of what you are seeing? Craig -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of William de Smet via use-livecode Sent: Wednesday, November 11, 2020 6:38 AM To: How to use LiveCode Cc: William de Smet Subject: Best way to add an image to an oval graphic? Hi there, When I set the BackgroundPattern of an graphic oval to the image ID, the image is not centered inside the oval graphic. What is a better way to add an image to a graphic oval (and center it? greetings, William _______________________________________________ use-livecode mailing list use-livecode at 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 Nov 11 11:16:46 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Nov 2020 16:16:46 +0000 Subject: The Most Stupid Question Ever? In-Reply-To: <3C0BB426-8386-49C8-8320-BCD8651FEC85@gmail.com> References: <2309f239-112f-3f75-b41e-a19b3c4d0327@sonic.net> <7733BADC-8D89-4E0C-9698-7B04D7A82D88@iotecdigital.com> <00c001d6b793$8002f000$8008d000$@starfirelighting.com> <4C7823FF-1676-483C-922A-6CFBA4A4F07C@mac.com> <00ca01d6b7b7$43fab3d0$cbf01b70$@starfirelighting.com> <3C0BB426-8386-49C8-8320-BCD8651FEC85@gmail.com> Message-ID: The message box is not a container. It?s a stack. A stack that tracks global properties, global variables, pending messages and stacks in use actively. It stands to reason then that it has to be either in the message path somehow. I?m not sure how that affects things, but I have noticed while attempting to track the contents of variables while a script was executing buy putting values in the msg that it doesn?t update until idle irregardless of whether I issue a wait or no, unless I use with messages. Bob S On Nov 11, 2020, at 3:04 AM, David V Glasgow via use-livecode > wrote: So then LC knows when the message box is about to be the target, and therefore acts differently than with any other container. The actual already executed command "put" is left stranded, unrequited, because the next line in sequence, not yet executed, has foreknowledge that the upcoming target is the message box, and is girding itself to access it?? From williamdesmet at gmail.com Wed Nov 11 11:20:02 2020 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 11 Nov 2020 17:20:02 +0100 Subject: Best way to add an image to an oval graphic? In-Reply-To: <00d101d6b83a$00d26250$027726f0$@starfirelighting.com> References: <00d101d6b83a$00d26250$027726f0$@starfirelighting.com> Message-ID: Hi Graig, I think I understand it a bit better now. The image I used has different dimensions than the graphic oval. See screenshot: https://ibb.co/0tXkLHy I could scale the image down to the same size (width) as the oval graphic but then I don;t get the center of the image. Because it is a pattern? Is it possible to get the center of the image in the oval graphic? LC 9.6.1 greetings, William Op wo 11 nov. 2020 om 15:51 schreef Craig newman via use-livecode < use-livecode at lists.runrev.com>: > Hi. > > I made an oval graphic and set the backGroundPattern to the ID of a random > image I imported to the card. It filled the grc perfectly. Do you have a > screenshot of what you are seeing? > > Craig > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On > Behalf > Of William de Smet via use-livecode > Sent: Wednesday, November 11, 2020 6:38 AM > To: How to use LiveCode > Cc: William de Smet > Subject: Best way to add an image to an oval graphic? > > Hi there, > > When I set the BackgroundPattern of an graphic oval to the image ID, the > image is not centered inside the oval graphic. > What is a better way to add an image to a graphic oval (and center it? > > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 11 11:40:42 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Nov 2020 16:40:42 +0000 Subject: Best way to add an image to an oval graphic? In-Reply-To: References: <00d101d6b83a$00d26250$027726f0$@starfirelighting.com> Message-ID: <2FB3DC3F-572C-4C91-A6C0-6960052CB73E@iotecdigital.com> As a pattern of a graphic, I don?t think so. Even scaling the graphic does not shrink or alter the position of the pattern. Why are you using a graphic instead of just an image? I think you can mask an image, so it should be possible to only show through what you want. Ideally though, just create an image file the size and appearance that you want in Livecode, unless you need it to change. Bob S On Nov 11, 2020, at 8:20 AM, William de Smet via use-livecode > wrote: Hi Graig, I think I understand it a bit better now. The image I used has different dimensions than the graphic oval. See screenshot: https://ibb.co/0tXkLHy I could scale the image down to the same size (width) as the oval graphic but then I don;t get the center of the image. Because it is a pattern? Is it possible to get the center of the image in the oval graphic? LC 9.6.1 greetings, William From bobsneidar at iotecdigital.com Wed Nov 11 11:44:10 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Nov 2020 16:44:10 +0000 Subject: Best way to add an image to an oval graphic? In-Reply-To: <2FB3DC3F-572C-4C91-A6C0-6960052CB73E@iotecdigital.com> References: <00d101d6b83a$00d26250$027726f0$@starfirelighting.com> <2FB3DC3F-572C-4C91-A6C0-6960052CB73E@iotecdigital.com> Message-ID: <7EE298C9-59FD-4BA6-96DA-97ED3AD96FC8@iotecdigital.com> I should have said just create an image file the size and appearance that you want it to be, then import it into Livecode. Bob S On Nov 11, 2020, at 8:40 AM, Bob Sneidar via use-livecode > wrote: Ideally though, just create an image file the size and appearance that you want in Livecode, unless you need it to change. From jacque at hyperactivesw.com Wed Nov 11 11:48:37 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 11 Nov 2020 10:48:37 -0600 Subject: Best way to add an image to an oval graphic? In-Reply-To: References: <00d101d6b83a$00d26250$027726f0$@starfirelighting.com> Message-ID: <175b8358688.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Patterns are drawn from the top left so you'd need to create an image with the same dimensions as the oval with its content already centered. This will only work if the oval never changes its size. Another way is to place the image behind the oval graphic and group them. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 11, 2020 10:22:38 AM William de Smet via use-livecode wrote: > Hi Graig, > > I think I understand it a bit better now. > The image I used has different dimensions than the graphic oval. > See screenshot: https://ibb.co/0tXkLHy > > I could scale the image down to the same size (width) as the oval graphic > but then I don;t get the center of the image. > Because it is a pattern? > Is it possible to get the center of the image in the oval graphic? > > LC 9.6.1 > > > > greetings, > > > William > > > > > Op wo 11 nov. 2020 om 15:51 schreef Craig newman via use-livecode < > use-livecode at lists.runrev.com>: > >> Hi. >> >> I made an oval graphic and set the backGroundPattern to the ID of a random >> image I imported to the card. It filled the grc perfectly. Do you have a >> screenshot of what you are seeing? >> >> Craig >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On >> Behalf >> Of William de Smet via use-livecode >> Sent: Wednesday, November 11, 2020 6:38 AM >> To: How to use LiveCode >> Cc: William de Smet >> Subject: Best way to add an image to an oval graphic? >> >> Hi there, >> >> When I set the BackgroundPattern of an graphic oval to the image ID, the >> image is not centered inside the oval graphic. >> What is a better way to add an image to a graphic oval (and center it? >> >> >> greetings, >> >> William >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 11 13:18:21 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Nov 2020 10:18:21 -0800 Subject: Best way to add an image to an oval graphic? In-Reply-To: References: Message-ID: Using the backgroundPattern seems intuitive, but read the fine print: image dimensions have very specific requirements, and not heeding those can yield unpredictable results. Earlier this year I had a project that used backgroundPattern as a way to use the graphic shape to mask an image. It worked well in most circumstances, with a satisfying range of images sizes - until it didn't. We eventually found some images that would render at a fraction of actual size, tiling across. I had to ditch it and find another approach, which led to the thread here a few months ago about keyhole effect. The result of that is you can use a graphic placed on top of an image as a mark, with the graphic's backgroundColor set to black and the ink set to blendDstIn. That combo will give you a lot of flexibility for centering and even resizing your masking graphic over the image. -- 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 ambassador at fourthworld.com Wed Nov 11 13:21:19 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Nov 2020 10:21:19 -0800 Subject: The Most Stupid Question Ever? In-Reply-To: References: Message-ID: <0c34dec1-ca1c-6c78-abc7-13975fb67c24@fourthworld.com> Details on how the Message Box behaves, which explains the seeming anomaly and is perhaps just fun to know (esp. if you ever want to write a drop-in Message Box replacement): https://forums.livecode.com/viewtopic.php?f=9&t=34903#p198108 -- 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 williamdesmet at gmail.com Thu Nov 12 04:27:36 2020 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 12 Nov 2020 10:27:36 +0100 Subject: Best way to add an image to an oval graphic? In-Reply-To: References: Message-ID: Thanks all for directing me into a different approach! greetings, William Op wo 11 nov. 2020 om 19:19 schreef Richard Gaskin via use-livecode < use-livecode at lists.runrev.com>: > Using the backgroundPattern seems intuitive, but read the fine print: > image dimensions have very specific requirements, and not heeding those > can yield unpredictable results. > > Earlier this year I had a project that used backgroundPattern as a way > to use the graphic shape to mask an image. It worked well in most > circumstances, with a satisfying range of images sizes - until it didn't. > > We eventually found some images that would render at a fraction of > actual size, tiling across. > > I had to ditch it and find another approach, which led to the thread > here a few months ago about keyhole effect. > > The result of that is you can use a graphic placed on top of an image as > a mark, with the graphic's backgroundColor set to black and the ink set > to blendDstIn. > > That combo will give you a lot of flexibility for centering and even > resizing your masking graphic over the image. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From williamdesmet at gmail.com Thu Nov 12 08:48:46 2020 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 12 Nov 2020 14:48:46 +0100 Subject: How do I shorten this script? Use 'repeat with'? Message-ID: Hi there, Another question today. How do I shorten this script? ---- set the loc of grc "k1" to cardWidth/2,cardHeight/2 set the topleft of grc "k2" to (item 1 of topright of grc "k1" -1, item 2 of topright of grc "k1") set the topleft of grc "k3" to (item 1 of topright of grc "k2" -1, item 2 of topright of grc "k2") set the topleft of grc "k4" to (item 1 of topright of grc "k3" -1, item 2 of topright of grc "k3") set the topleft of grc "k5" to (item 1 of topright of grc "k4" -1, item 2 of topright of grc "k4") ---- I know I should use 'repeat with' but I am stuck. repeat with x = 2 to 4 put "k" & x into tName set the topleft of grc tName to (item 1 of topright of. grc....?.... , item 2 of topright of grc ...?....) end repeat Any help is appreciated! greetings, William From hakan at exformedia.se Thu Nov 12 08:57:46 2020 From: hakan at exformedia.se (hakan at exformedia.se) Date: Thu, 12 Nov 2020 14:57:46 +0100 Subject: How do I shorten this script? Use 'repeat with'? In-Reply-To: References: Message-ID: You could use two variables like tName and tPrevious set the loc of grc "k1" to cardWidth/2,cardHeight/2 put ?k1? into tPrevious repeat with i = 2 to 5 ? ?put ?k? & i into tName ? ?set the topleft of grc tName to the topright of grc tPrevious ? ?put tName into tPrevious end repeat Coding out of my head so reserve for mistakes! :-H?kan On 12 Nov 2020, 14:50 +0100, William de Smet via use-livecode , wrote: > Hi there, > > Another question today. > How do I shorten this script? > ---- > set the loc of grc "k1" to cardWidth/2,cardHeight/2 > set the topleft of grc "k2" to (item 1 of topright of grc "k1" -1, item 2 > of topright of grc "k1") > set the topleft of grc "k3" to (item 1 of topright of grc "k2" -1, item 2 > of topright of grc "k2") > set the topleft of grc "k4" to (item 1 of topright of grc "k3" -1, item 2 > of topright of grc "k3") > set the topleft of grc "k5" to (item 1 of topright of grc "k4" -1, item 2 > of topright of grc "k4") > ---- > > I know I should use 'repeat with' but I am stuck. > repeat with x = 2 to 4 > put "k" & x into tName > set the topleft of grc tName to (item 1 of topright of. grc....?.... , item > 2 of topright of grc ...?....) > end repeat > > > Any help is appreciated! > > > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From williamdesmet at gmail.com Thu Nov 12 09:14:06 2020 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 12 Nov 2020 15:14:06 +0100 Subject: How do I shorten this script? Use 'repeat with'? In-Reply-To: References: Message-ID: Yes, two variables must be the way! Your suggestion however throws an error (no such object). greetings, William Op do 12 nov. 2020 om 14:57 schreef : > You could use two variables like tName and tPrevious > > set the loc of grc "k1" to cardWidth/2,cardHeight/2 > put ?k1? into tPrevious > repeat with i = 2 to 5 > put ?k? & i into tName > set the topleft of grc tName to the topright of grc tPrevious > put tName into tPrevious > end repeat > > Coding out of my head so reserve for mistakes! > > :-H?kan > On 12 Nov 2020, 14:50 +0100, William de Smet via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > Hi there, > > Another question today. > How do I shorten this script? > ---- > set the loc of grc "k1" to cardWidth/2,cardHeight/2 > set the topleft of grc "k2" to (item 1 of topright of grc "k1" -1, item 2 > of topright of grc "k1") > set the topleft of grc "k3" to (item 1 of topright of grc "k2" -1, item 2 > of topright of grc "k2") > set the topleft of grc "k4" to (item 1 of topright of grc "k3" -1, item 2 > of topright of grc "k3") > set the topleft of grc "k5" to (item 1 of topright of grc "k4" -1, item 2 > of topright of grc "k4") > ---- > > I know I should use 'repeat with' but I am stuck. > repeat with x = 2 to 4 > put "k" & x into tName > set the topleft of grc tName to (item 1 of topright of. grc....?.... , item > 2 of topright of grc ...?....) > end repeat > > > Any help is appreciated! > > > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From williamdesmet at gmail.com Thu Nov 12 10:00:19 2020 From: williamdesmet at gmail.com (William de Smet) Date: Thu, 12 Nov 2020 16:00:19 +0100 Subject: How do I shorten this script? Use 'repeat with'? In-Reply-To: References: Message-ID: I added 'the name of grc "k1" to the script and now it works. Thanks! set the loc of grc "k1" to cardWidth/2,cardHeight/2 put the name of grc "k1" into tPrevious repeat with x = 2 to 5 put "k" & x into tName set the topleft of grc tName to (item 1 of topright of grc tPrevious -1, item 2 of topright of grc tPrevious) put tName into tPrevious end repeat greetings, William Op do 12 nov. 2020 om 15:14 schreef William de Smet : > Yes, two variables must be the way! > > Your suggestion however throws an error (no such object). > > greetings, > > William > > > > > > Op do 12 nov. 2020 om 14:57 schreef : > >> You could use two variables like tName and tPrevious >> >> set the loc of grc "k1" to cardWidth/2,cardHeight/2 >> put ?k1? into tPrevious >> repeat with i = 2 to 5 >> put ?k? & i into tName >> set the topleft of grc tName to the topright of grc tPrevious >> put tName into tPrevious >> end repeat >> >> Coding out of my head so reserve for mistakes! >> >> :-H?kan >> On 12 Nov 2020, 14:50 +0100, William de Smet via use-livecode < >> use-livecode at lists.runrev.com>, wrote: >> >> Hi there, >> >> Another question today. >> How do I shorten this script? >> ---- >> set the loc of grc "k1" to cardWidth/2,cardHeight/2 >> set the topleft of grc "k2" to (item 1 of topright of grc "k1" -1, item 2 >> of topright of grc "k1") >> set the topleft of grc "k3" to (item 1 of topright of grc "k2" -1, item 2 >> of topright of grc "k2") >> set the topleft of grc "k4" to (item 1 of topright of grc "k3" -1, item 2 >> of topright of grc "k3") >> set the topleft of grc "k5" to (item 1 of topright of grc "k4" -1, item 2 >> of topright of grc "k4") >> ---- >> >> I know I should use 'repeat with' but I am stuck. >> repeat with x = 2 to 4 >> put "k" & x into tName >> set the topleft of grc tName to (item 1 of topright of. grc....?.... , >> item >> 2 of topright of grc ...?....) >> end repeat >> >> >> Any help is appreciated! >> >> >> >> greetings, >> >> William >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Nov 12 19:30:22 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 13 Nov 2020 01:30:22 +0100 Subject: Reading key values in info.plist file iOS or Mac using XML library? Message-ID: <6DE62275-BF35-4000-9CCC-F73F260EBFFB@m-r-d.de> Hi, does anyone know if it is possible to use the xml library to read values from an info.plist file? Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code From bobsneidar at iotecdigital.com Thu Nov 12 19:43:11 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 13 Nov 2020 00:43:11 +0000 Subject: Reading key values in info.plist file iOS or Mac using XML library? In-Reply-To: <6DE62275-BF35-4000-9CCC-F73F260EBFFB@m-r-d.de> References: <6DE62275-BF35-4000-9CCC-F73F260EBFFB@m-r-d.de> Message-ID: <166E3191-EB5B-4F55-9621-BDAD3D928396@iotecdigital.com> It is certainly possible! But depending on the complexity of the xml document it may not be easy. I?ve posted before that I attempted to work with an exported XML document from a Toshiba Copier?s Templates (scan presets), but the document was mindbogglingly complex. One issue I ran into is keys which have the same name, so trying to convert the xml to an array failed just on that score. Without knowing what the structure of the XML is supposed to be, a data dictionary for the XML document as it were, I may as well be reading the output of Data?s positronic interface. Bob S > On Nov 12, 2020, at 4:30 PM, matthias rebbe via use-livecode wrote: > > Hi, > > does anyone know if it is possible to use the xml library to read values from an info.plist file? > > > Regards, > > Matthias > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 12 20:24:21 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 13 Nov 2020 02:24:21 +0100 Subject: Reading key values in info.plist file iOS or Mac using XML library? In-Reply-To: <166E3191-EB5B-4F55-9621-BDAD3D928396@iotecdigital.com> References: <6DE62275-BF35-4000-9CCC-F73F260EBFFB@m-r-d.de> <166E3191-EB5B-4F55-9621-BDAD3D928396@iotecdigital.com> Message-ID: - Matthias Rebbe Life Is Too Short For Boring Code > Am 13.11.2020 um 01:43 schrieb Bob Sneidar via use-livecode : > > It is certainly possible! But depending on the complexity of the xml document it may not be easy. I?ve posted before that I attempted to work with an exported XML document from a Toshiba Copier?s Templates (scan presets), but the document was mindbogglingly complex. One issue I ran into is keys which have the same name, so trying to convert the xml to an array failed just on that score. Without knowing what the structure of the XML is supposed to be, a data dictionary for the XML document as it were, I may as well be reading the output of Data?s positronic interface. > the .plist file contains several entry with same names (string and key) e.g. CFBundleDevelopmentRegion English CFBundleDisplayName mOTP CFBundleName mOTP So it seems that is then not possible to use the xml library. Anyway i will read the values using line offset put line lineoffset("CFBundleDisplayName",tPlist)+1 into .... which then "returns" the string value of CFBundleDisplayName one line below. This will work as long as the line with the .... value is directly after the line with the .. values. Thanks. > Bob S > > >> On Nov 12, 2020, at 4:30 PM, matthias rebbe via use-livecode wrote: >> >> Hi, >> >> does anyone know if it is possible to use the xml library to read values from an info.plist file? >> >> >> Regards, >> >> Matthias >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 12 20:29:19 2020 From: paul at researchware.com (Paul Dupuis) Date: Thu, 12 Nov 2020 20:29:19 -0500 Subject: Reading key values in info.plist file iOS or Mac using XML library? In-Reply-To: <6DE62275-BF35-4000-9CCC-F73F260EBFFB@m-r-d.de> References: <6DE62275-BF35-4000-9CCC-F73F260EBFFB@m-r-d.de> Message-ID: I have an on standaloneSaved handler that reads and writes an updated info.plist for my standalone that adds additional document types since the standalone builder only allows a single document type. On 11/12/2020 7:30 PM, matthias rebbe via use-livecode wrote: > Hi, > > does anyone know if it is possible to use the xml library to read values from an info.plist file? > > > Regards, > > Matthias > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 12 20:32:07 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 13 Nov 2020 02:32:07 +0100 Subject: Reading key values in info.plist file iOS or Mac using XML library? In-Reply-To: References: <6DE62275-BF35-4000-9CCC-F73F260EBFFB@m-r-d.de> Message-ID: <2B8D33D8-A5D2-4ED0-B84D-B696B1AB8155@m-r-d.de> Are you using the xml library for that? Anyway, would you like to share your handler? Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 13.11.2020 um 02:29 schrieb Paul Dupuis via use-livecode : > > I have an on standaloneSaved handler that reads and writes an updated info.plist for my standalone that adds additional document types since the standalone builder only allows a single document type. > > On 11/12/2020 7:30 PM, matthias rebbe via use-livecode wrote: >> Hi, >> >> does anyone know if it is possible to use the xml library to read values from an info.plist file? >> >> >> Regards, >> >> Matthias >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hakan at exformedia.se Fri Nov 13 03:39:31 2020 From: hakan at exformedia.se (hakan at exformedia.se) Date: Fri, 13 Nov 2020 09:39:31 +0100 Subject: How do I shorten this script? Use 'repeat with'? In-Reply-To: References: Message-ID: Great! For me it works without adding 'the name of grc ?k1??. This works perfectly: ? ?set the loc of grc "k1" to the width of this card/2, the height of this card/2 ? ?put "k1" into tPrevious ? ?repeat with i = 2 to 5 ?? ? ?put "k" & i into tName ?? ? ?set the topleft of grc tName to item 1 of the topright of grc tPrevious - 1, item 2 of the topright of grc tPrevious ?? ? ?put tName into tPrevious ? ?end repeat Did you maybe forget ?grc? somewhere? :-H?kan On 12 Nov 2020, 16:00 +0100, williamdesmet at gmail.com, wrote: > > I added 'the name of grc "k1" to the script and now it works. From paul at researchware.com Fri Nov 13 08:09:45 2020 From: paul at researchware.com (Paul Dupuis) Date: Fri, 13 Nov 2020 08:09:45 -0500 Subject: Reading key values in info.plist file iOS or Mac using XML library? In-Reply-To: <2B8D33D8-A5D2-4ED0-B84D-B696B1AB8155@m-r-d.de> References: <6DE62275-BF35-4000-9CCC-F73F260EBFFB@m-r-d.de> <2B8D33D8-A5D2-4ED0-B84D-B696B1AB8155@m-r-d.de> Message-ID: On 11/12/2020 8:32 PM, matthias rebbe via use-livecode wrote: > Are you using the xml library for that? > Anyway, would you like to share your handler? Yes, and yes (below). tDocTypes contains a cr delimited list of addition document types to add to the pList file. Also, the old use of uniEncode/uniDecode should be replaced with textEncode. This is code is working with LC9.6.1 ??? -- updating the generated plist file ??? put tMac64BuildFolder&tAppName&".app/Contents/Info.plist" into tSrcFile -- overwrite original ??? -- ??? if there is a file tSrcFile then ????? put revXMLCreateTreeFromFile(tSrcFile,true,true,false) into tTreeID ????? if tTreeID begins with "xmlerr" then ??????? answer error "

Error reading XML plist file for updating document types during build.

"&tTreeID&"

" ????? else ??????? -- list of document types ,, ??????? put "HyperTRANSCRIBE Files,StandaloneDoc.icns,ht2,HTh2"&cr into tDocTypes ??????? -- XML template ??????? put ""&cr&"CFBundleTypeExtensions"&cr&""&cr&"[[tExtension]]"&cr&""&cr into tXMLTemplate ??????? put "CFBundleTypeIconFile"&cr&"[[tIconFile]]"&cr&"CFBundleTypeName"&cr after tXMLTemplate ??????? put "[[tDocName]]"&cr&"CFBundleTypeOSTypes"&cr&""&cr&"[[tTypeCode]]"&cr after tXMLTemplate ??????? put ""&cr&"CFBundleTypeRole"&cr&"Editor"&cr&""&cr after tXMLTemplate ??????? -- add document types under parent at end ??????? repeat for each line tDocType in tDocTypes ????????? put item 1 of tDocType into tDocName ????????? put item 2 of tDocType into tIconFile ????????? put item 3 of tDocType into tExtension ????????? put item 4 of tDocType into tTypeCode ????????? put merge(tXMLTemplate) into tNodeContents ????????? revXMLAppend tTreeID, "/plist/dict/array",tNodeContents ??????? end repeat ??????? -- output updated plist ??????? get empty -- clear 'it' for any possible error from revXMLText that places the error in 'it' ??????? put revXMLText(tTreeID,,true) into tXMLText ??????? if it is not empty then ????????? answer error "

Error writing updated XML plist file.

"&it&"

" ??????? end if ??????? put uniDecode(uniEncode(tXMLText),"UTF8") into URL ("file:"&tSrcFile) ????? end if ??? end if From livfoss at mac.com Fri Nov 13 08:26:50 2020 From: livfoss at mac.com (Graham Samuel) Date: Fri, 13 Nov 2020 14:26:50 +0100 Subject: Sensor questions Message-ID: <46095B21-A0A4-4443-A060-8FD639308A80@mac.com> A couple of more general questions about mobile sensor functions in LC. 1. The dictionary seems to offer messages only from those sensors which are associated with native sensors in the device such as an accelerometer. Suppose I have an external sensor, for example a heart monitor connected via Bluetooth - how do I access that? 2. If a script processes sensor input by responding to messages from the sensor as they come in (as for example it does with locationChanged messages associated with GPS), what happens when the processing time for the sensor message exceeds the time between sensor inputs? Is it necessary for the script to detect that an instance of the message is already running, or does LC itself inhibit this recursion-like behaviour? Up to now I have kind of dealt with this by limiting the processing of locationChanged messages via a timer, but this is not a general solution. Can anyone explain what happens - I think the answer lies in the message queue, which I don?t fully understand. Graham From dan at clearvisiontech.com Fri Nov 13 16:03:02 2020 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 13 Nov 2020 21:03:02 +0000 Subject: Anyone heard of "App Clips"? Message-ID: <10DD7ED2-AF80-4448-AD15-554A0CB4DDE5@clearvisiontech.com> I have a client asking for us to implement a "App Clip". Anyone know if LC can deal with this? https://developer.apple.com/app-clips/ -Dan From jacque at hyperactivesw.com Fri Nov 13 16:19:15 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 13 Nov 2020 15:19:15 -0600 Subject: How do I shorten this script? Use 'repeat with'? In-Reply-To: References: Message-ID: Here's another way: set the loc of grc "k1" to the loc of this cd repeat with x = 2 to 4 set the topleft of grc ("K" & x) to the topright of grc ("k" & x-1) set the left of grc ("k" & x) to the left of grc ("k" & x) - 1 end repeat I find it easier to move the graphic one pixel in a second line of script than to mess around with all those "item 1 of ..."s. On 11/12/20 7:48 AM, William de Smet via use-livecode wrote: > Hi there, > > Another question today. > How do I shorten this script? > ---- > set the loc of grc "k1" to cardWidth/2,cardHeight/2 > set the topleft of grc "k2" to (item 1 of topright of grc "k1" -1, item 2 > of topright of grc "k1") > set the topleft of grc "k3" to (item 1 of topright of grc "k2" -1, item 2 > of topright of grc "k2") > set the topleft of grc "k4" to (item 1 of topright of grc "k3" -1, item 2 > of topright of grc "k3") > set the topleft of grc "k5" to (item 1 of topright of grc "k4" -1, item 2 > of topright of grc "k4") > ---- > > I know I should use 'repeat with' but I am stuck. > repeat with x = 2 to 4 > put "k" & x into tName > set the topleft of grc tName to (item 1 of topright of. grc....?.... , item > 2 of topright of grc ...?....) > end repeat > > > Any help is appreciated! > > > > greetings, > > William > _______________________________________________ > use-livecode mailing list > use-livecode 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 irog at mac.com Sat Nov 14 19:03:09 2020 From: irog at mac.com (Roger Guay) Date: Sat, 14 Nov 2020 16:03:09 -0800 Subject: Delete Menu Item from Option Menu Button Message-ID: <66EC1B04-AF7D-4B05-AB83-910075AA13C3@mac.com> Can someone tell me how to delete a menuItem from an Option Menu button programmatically? Standing by ready to apply dope slap. Roger From ahsoftware at sonic.net Sat Nov 14 19:31:47 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 14 Nov 2020 16:31:47 -0800 Subject: Delete Menu Item from Option Menu Button In-Reply-To: <66EC1B04-AF7D-4B05-AB83-910075AA13C3@mac.com> References: <66EC1B04-AF7D-4B05-AB83-910075AA13C3@mac.com> Message-ID: On 11/14/20 4:03 PM, Roger Guay via use-livecode wrote: > Can someone tell me how to delete a menuItem from an Option Menu button programmatically? > > Standing by ready to apply dope slap. No dope slap necessary - it's not really obvious. The menuItems are stored as the text of the button, so you can get and set it easily. put button into tText -- edit tText here -- you can do a lineOffset and delete line x of tText put tText into button -- Mark Wieder ahsoftware at gmail.com From irog at mac.com Sat Nov 14 20:05:56 2020 From: irog at mac.com (Roger Guay) Date: Sat, 14 Nov 2020 17:05:56 -0800 Subject: Delete Menu Item from Option Menu Button In-Reply-To: References: <66EC1B04-AF7D-4B05-AB83-910075AA13C3@mac.com> Message-ID: <6B76D064-DDC3-4F5F-BED0-965DB5F63139@mac.com> Thanks, Mark. That?s the approach I was trying but had forgotten about lineOffset. Instead, i was trying the Find command etc and making no headway. Roger > On Nov 14, 2020, at 4:31 PM, Mark Wieder via use-livecode wrote: > > On 11/14/20 4:03 PM, Roger Guay via use-livecode wrote: >> Can someone tell me how to delete a menuItem from an Option Menu button programmatically? >> Standing by ready to apply dope slap. > > No dope slap necessary - it's not really obvious. > The menuItems are stored as the text of the button, so you can get and set it easily. > > put button into tText > -- edit tText here > -- you can do a lineOffset and delete line x of tText > put tText into button > > -- > 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 scott at elementarysoftware.com Sun Nov 15 05:15:04 2020 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Sun, 15 Nov 2020 02:15:04 -0800 Subject: Standardizing codepoints Message-ID: I?m a little over my head in this area so I may not be describing this quite right? Some unicode glyphs seem to be describable with different (arrangements of) codepoints. Is it possible to coerce the glyph to be described in a ?standard? way? -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ From hakan at exformedia.se Sun Nov 15 08:31:01 2020 From: hakan at exformedia.se (hakan at exformedia.se) Date: Sun, 15 Nov 2020 14:31:01 +0100 Subject: Standardizing codepoints In-Reply-To: References: Message-ID: <8a3018f6-07f9-4081-a78c-f2cd1f503d2f@Spark> What do you mean with standard? Do you mean that some combined codepoints show up as one glyph and your question is if there is one codepoint for every such combination? Or do you mean that several seemingly identical glyphs might have different codepoints? Unicode actually has a good introduction on their site:?https://www.unicode.org/versions/Unicode10.0.0/ch01.pdf that might answer some of your questions. :-H?kan On 15 Nov 2020, 11:16 +0100, scott--- via use-livecode , wrote: > I?m a little over my head in this area so I may not be describing this quite right? > Some unicode glyphs seem to be describable with different (arrangements of) codepoints. Is it possible to coerce the glyph to be described in a ?standard? way? > > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Nov 15 10:04:20 2020 From: paul at researchware.com (Paul Dupuis) Date: Sun, 15 Nov 2020 10:04:20 -0500 Subject: Big Sur bugs In-Reply-To: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> Message-ID: <0bd8d4c2-00f0-4259-c05e-735c9f9764b4@researchware.com> So Big Sur was released on the 12th. It is not our in user's hands. Does anyone (or LiveCode corporate) have any update about Big Sur compatibility? We have customer's inquiring. We can not afford the time to jump through Apple's hoops for any of their beta versions. Now that the release is out, we can start testing our apps with it IF we can get it installed over one of our Catalina VMs but it would be nice to know what testing LC Ltd has done or others have done? On 10/8/2020 8:31 PM, Marty Knapp via use-livecode wrote: > In my testing of LC apps running under Big Sur I have run into the following bugs running LC 9.6.1: > > 1) Tabbed buttons: The background of the highlighted tab is now white by default. Since LC renders the text for the highlighted button as white, it is not readable until you switch to another tab. Work-around - set the backgroundColor of the button to black. Bug report 22879 > > 2) Window Shape: Setting the windowShape of a stack to an imported image no longer works. It will show the rectangle of the stack. Bug report 22880 > > 3) SystemVersion: Big Sur is designated by Apple as version 11 but LC will report it as 10.16. Easy enough to code around until it?s fixed. Bug report 22887 > > 4) Printing: LC hangs as I mentioned in a previous post. Bug report 22930 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Nov 15 10:31:37 2020 From: merakosp at gmail.com (panagiotis merakos) Date: Sun, 15 Nov 2020 17:31:37 +0200 Subject: Big Sur bugs In-Reply-To: <0bd8d4c2-00f0-4259-c05e-735c9f9764b4@researchware.com> References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <0bd8d4c2-00f0-4259-c05e-735c9f9764b4@researchware.com> Message-ID: Hello Paul, Here are the bugs that have been discovered so far, either by LC users or by us (LiveCode Ltd): https://quality.livecode.com/buglist.cgi?regetlastlist=97748 The 2 serious ones have been addressed and are to be tested in our pre-release build. There are another 2 cosmetic bugs, and one that seems to affect only the new ARM Macs. These bugfixes are expected to appear in the upcoming release of LC 9.6.2 RC-1. Kind regards, Panos -- On Sun, 15 Nov 2020 at 17:05, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > So Big Sur was released on the 12th. It is not our in user's hands. > > Does anyone (or LiveCode corporate) have any update about Big Sur > compatibility? We have customer's inquiring. We can not afford the time > to jump through Apple's hoops for any of their beta versions. Now that > the release is out, we can start testing our apps with it IF we can get > it installed over one of our Catalina VMs but it would be nice to know > what testing LC Ltd has done or others have done? > > > On 10/8/2020 8:31 PM, Marty Knapp via use-livecode wrote: > > In my testing of LC apps running under Big Sur I have run into the > following bugs running LC 9.6.1: > > > > 1) Tabbed buttons: The background of the highlighted tab is now white by > default. Since LC renders the text for the highlighted button as white, it > is not readable until you switch to another tab. Work-around - set the > backgroundColor of the button to black. Bug report 22879 > > > > 2) Window Shape: Setting the windowShape of a stack to an imported image > no longer works. It will show the rectangle of the stack. Bug report 22880 > > > > 3) SystemVersion: Big Sur is designated by Apple as version 11 but LC > will report it as 10.16. Easy enough to code around until it?s fixed. Bug > report 22887 > > > > 4) Printing: LC hangs as I mentioned in a previous post. Bug report 22930 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Nov 15 10:33:58 2020 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Sun, 15 Nov 2020 15:33:58 -0000 Subject: Sensor questions In-Reply-To: <46095B21-A0A4-4443-A060-8FD639308A80@mac.com> References: <46095B21-A0A4-4443-A060-8FD639308A80@mac.com> Message-ID: <71d9df1e-c7a1-5236-81db-6692423e41aa@cogapp.com> Hi Graham, By no means a complete answer to your question, but if you have a bluetooth sensor to work with, take a look at mergBLE. I don't think I'd be confident enough to code with it for an abstract case, but if you have an actual unit to test I would expect you should be able to interface to it. Ben On 13/11/2020 13:26, Graham Samuel via use-livecode wrote: > A couple of more general questions about mobile sensor functions in LC. > > 1. The dictionary seems to offer messages only from those sensors which are associated with native sensors in the device such as an accelerometer. Suppose I have an external sensor, for example a heart monitor connected via Bluetooth - how do I access that? > > 2. If a script processes sensor input by responding to messages from the sensor as they come in (as for example it does with locationChanged messages associated with GPS), what happens when the processing time for the sensor message exceeds the time between sensor inputs? Is it necessary for the script to detect that an instance of the message is already running, or does LC itself inhibit this recursion-like behaviour? Up to now I have kind of dealt with this by limiting the processing of locationChanged messages via a timer, but this is not a general solution. Can anyone explain what happens - I think the answer lies in the message queue, which I don?t fully understand. > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Nov 15 11:24:06 2020 From: paul at researchware.com (Paul Dupuis) Date: Sun, 15 Nov 2020 11:24:06 -0500 Subject: Big Sur bugs In-Reply-To: References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <0bd8d4c2-00f0-4259-c05e-735c9f9764b4@researchware.com> Message-ID: <49ee2ba3-c637-fbd3-ac7f-0a8b3194fed7@researchware.com> Panos, Thank you for the rapid-response update! The link you provide presents me with the error "There is no with the id '97748'. " Just knowing a compatible LC release is on its way in 9.6.1 is a help, but I'd love to see the list of bugs if there is an alternate URL to view them. On 11/15/2020 10:31 AM, panagiotis merakos via use-livecode wrote: > Hello Paul, > > Here are the bugs that have been discovered so far, either by LC users or > by us (LiveCode Ltd): > > https://quality.livecode.com/buglist.cgi?regetlastlist=97748 > > The 2 serious ones have been addressed and are to be tested in our > pre-release build. There are another 2 cosmetic bugs, and one that seems to > affect only the new ARM Macs. > > These bugfixes are expected to appear in the upcoming release of LC 9.6.2 > RC-1. > > Kind regards, > Panos > -- > > On Sun, 15 Nov 2020 at 17:05, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> So Big Sur was released on the 12th. It is not our in user's hands. >> >> Does anyone (or LiveCode corporate) have any update about Big Sur >> compatibility? We have customer's inquiring. We can not afford the time >> to jump through Apple's hoops for any of their beta versions. Now that >> the release is out, we can start testing our apps with it IF we can get >> it installed over one of our Catalina VMs but it would be nice to know >> what testing LC Ltd has done or others have done? >> >> >> On 10/8/2020 8:31 PM, Marty Knapp via use-livecode wrote: >>> In my testing of LC apps running under Big Sur I have run into the >> following bugs running LC 9.6.1: >>> 1) Tabbed buttons: The background of the highlighted tab is now white by >> default. Since LC renders the text for the highlighted button as white, it >> is not readable until you switch to another tab. Work-around - set the >> backgroundColor of the button to black. Bug report 22879 >>> 2) Window Shape: Setting the windowShape of a stack to an imported image >> no longer works. It will show the rectangle of the stack. Bug report 22880 >>> 3) SystemVersion: Big Sur is designated by Apple as version 11 but LC >> will report it as 10.16. Easy enough to code around until it?s fixed. Bug >> report 22887 >>> 4) Printing: LC hangs as I mentioned in a previous post. Bug report 22930 >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 15 11:27:06 2020 From: klaus at major-k.de (Klaus major-k) Date: Sun, 15 Nov 2020 17:27:06 +0100 Subject: Big Sur bugs In-Reply-To: <49ee2ba3-c637-fbd3-ac7f-0a8b3194fed7@researchware.com> References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <0bd8d4c2-00f0-4259-c05e-735c9f9764b4@researchware.com> <49ee2ba3-c637-fbd3-ac7f-0a8b3194fed7@researchware.com> Message-ID: Hi Paul, > Am 15.11.2020 um 17:24 schrieb Paul Dupuis via use-livecode : > > Panos, > > Thank you for the rapid-response update! > > The link you provide presents me with the error "There is no with the id '97748'. " > Just knowing a compatible LC release is on its way in 9.6.1 is a help, but I'd love to see the list > of bugs if there is an alternate URL to view them. yes, the links give an error. But just enter -> Big Sur in the search field on the page and hit RETURN! :-) Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From colinholgate at gmail.com Sun Nov 15 11:33:05 2020 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 15 Nov 2020 09:33:05 -0700 Subject: Big Sur bugs In-Reply-To: References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <0bd8d4c2-00f0-4259-c05e-735c9f9764b4@researchware.com> Message-ID: I haven?t tested much, but LiveCode seems to work normally in Big Sur on Intel, and on the M1 chip machines there is a ? in front of each menu item, but otherwise it?s working. From paul at researchware.com Sun Nov 15 11:47:22 2020 From: paul at researchware.com (Paul Dupuis) Date: Sun, 15 Nov 2020 11:47:22 -0500 Subject: Big Sur bugs In-Reply-To: References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <0bd8d4c2-00f0-4259-c05e-735c9f9764b4@researchware.com> <49ee2ba3-c637-fbd3-ac7f-0a8b3194fed7@researchware.com> Message-ID: <0e7a60b5-e4f9-7af5-f99a-2e3bfe9eed32@researchware.com> On 11/15/2020 11:27 AM, Klaus major-k via use-livecode wrote: > But just enter -> Big Sur > in the search field on the page and hit RETURN!:-) Thank you! From richmondmathewson at gmail.com Sun Nov 15 11:50:56 2020 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 15 Nov 2020 18:50:56 +0200 Subject: Standardizing codepoints In-Reply-To: References: Message-ID: <608aaf0e-577a-4d1b-439a-549ae69ec22e@gmail.com> I don't know what sort of situation you are describing. I can only imagine you mean describing something like ? as either u + circumflex, or circumflexed u (ie, on glyph). If you go here: https://www.unicode.org/charts/ apart from going blue in the face at the absolutely mind-blowing extent of the thing, you can isolate almost every glyph you can imagine as a single glyph (rather than a combination of several0. If you are referring to surrogate pairs: forget them quickly, they are old hat and guaranteed to give you a permanent cluster headache. Best, Richmond. On 15.11.20 12:15, scott--- via use-livecode wrote: > I?m a little over my head in this area so I may not be describing this quite right? > Some unicode glyphs seem to be describable with different (arrangements of) codepoints. Is it possible to coerce the glyph to be described in a ?standard? way? > > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 15 12:21:29 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 15 Nov 2020 11:21:29 -0600 Subject: Standardizing codepoints In-Reply-To: References: Message-ID: <175cced0da8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> See the normalizeText entry in the dictionary, I think that might be what you mean. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 15, 2020 4:17:14 AM scott--- via use-livecode wrote: > I?m a little over my head in this area so I may not be describing this > quite right? > Some unicode glyphs seem to be describable with different (arrangements of) > codepoints. Is it possible to coerce the glyph to be described in a > ?standard? way? > > -- > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web https://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-360-734-4701 > ------------------------------------------------------ > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Nov 15 12:50:03 2020 From: martyknappster at gmail.com (Marty Knapp) Date: Sun, 15 Nov 2020 09:50:03 -0800 Subject: Big Sur bugs In-Reply-To: <0e7a60b5-e4f9-7af5-f99a-2e3bfe9eed32@researchware.com> References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <0bd8d4c2-00f0-4259-c05e-735c9f9764b4@researchware.com> <49ee2ba3-c637-fbd3-ac7f-0a8b3194fed7@researchware.com> <0e7a60b5-e4f9-7af5-f99a-2e3bfe9eed32@researchware.com> Message-ID: <3EBC3634-EF7F-4045-83A8-C91A412DBDD5@gmail.com> Here?s a work-around for the tabbed button issue (the text of the hilited tab is white on a white background, thus unreadable) on preOpenCard if the platform is "MacOS" and BigSur() is true then repeat with x=1 to the number of btns of this stack if the menuMode of btn x of this stack is "tabbed" then set the backgroundColor of btn x of this stack to black end if end repeat else repeat with x=1 to the number of btns of this stack if the menuMode of btn x of this stack is "tabbed" then set the backgroundColor of btn x of this stack to empty end if end repeat end if pass preOpenCard end preOpenCard function BigSur --LC 9.6.1 reports "Big Sur" as version as 10.16, though Apple is calling it 11 - this covers both set the itemDelimiter to "." put the systemVersion into tVersion if item 1 of tVersion>10 or item 2 of tVersion>15 then return true else return false end BigSur Just put this in your main stack and Bob?s your uncle. Speaking of Bob, he has a customer control that circumvents the issue too. I?ll let him chime in to let you know where you can find that, ?Marty From kee.nethery at elloco.com Sun Nov 15 14:47:59 2020 From: kee.nethery at elloco.com (Kee Nethery) Date: Sun, 15 Nov 2020 11:47:59 -0800 Subject: Big Sur bugs In-Reply-To: <3EBC3634-EF7F-4045-83A8-C91A412DBDD5@gmail.com> References: <3EBC3634-EF7F-4045-83A8-C91A412DBDD5@gmail.com> Message-ID: Just to prevent bugs with earlier versions of macOS, please change: if item 1 of tVersion>10 or item 2 of tVersion>15 then to: if (item 1 of tVersion=10 and item 2 of tVersion>15) or (item 1 of tVersion>10) then Kee Nethery > On Nov 15, 2020, at 9:51 AM, Marty Knapp via use-livecode wrote: > > if item 1 of tVersion>10 or item 2 of tVersion>15 then From bvlahos at mac.com Sun Nov 15 14:56:16 2020 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 15 Nov 2020 11:56:16 -0800 Subject: Enabling "About MyApp" In-Reply-To: <081d3dfa-1d44-d0f7-1d76-f8ea21a87bfc@fourthworld.com> References: <1356188370.13648.1589230064799@myemail.cox.net> <081d3dfa-1d44-d0f7-1d76-f8ea21a87bfc@fourthworld.com> Message-ID: I have a app that has the About as the last item in the Help menu. It works in the Windows build but not in the Mac build (MacOS 10.14.6). It worked in previous versions. I don?t see anything wrong. The symptoms on the Mac is that the About item is in the correct place but the script is not run when selected. LiveCode 9.6.1 Indy. Not sure why the script isn?t run. Any suggestions? Bill Vlahos > On May 11, 2020, at 4:40 PM, Richard Gaskin via use-livecode wrote: > > GEORGE WOOD wrote: > > > How can I activate the "About MyApp" under the Apple menu? > > On other OSes the "About" item is usually the last item in the Help menu. If you put your About item there, you'll find that when LC automatically translates its menu objects for the Mac menu bar it'll move your About item to the application menu. > > In fact, a similar thing happens with "Preferences". On most platforms it's the last item in the Edit menu, and when you put a "Preferences" item there the automatic menu bar change that LC does will put it in the application menu as well, below About. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Nov 16 12:46:34 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Nov 2020 17:46:34 +0000 Subject: Delete Menu Item from Option Menu Button In-Reply-To: References: <66EC1B04-AF7D-4B05-AB83-910075AA13C3@mac.com> Message-ID: I always use ?the text of? to make it more readable. Bob S On Nov 14, 2020, at 4:31 PM, Mark Wieder via use-livecode > wrote: On 11/14/20 4:03 PM, Roger Guay via use-livecode wrote: Can someone tell me how to delete a menuItem from an Option Menu button programmatically? Standing by ready to apply dope slap. No dope slap necessary - it's not really obvious. The menuItems are stored as the text of the button, so you can get and set it easily. put button into tText -- edit tText here -- you can do a lineOffset and delete line x of tText put tText into button -- Mark Wieder ahsoftware at gmail.com From panos.merakos at livecode.com Mon Nov 16 13:02:27 2020 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 16 Nov 2020 20:02:27 +0200 Subject: [ANN] This Week in LiveCode 245 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #245 here: https://bit.ly/32SGLzQ This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to your e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From bvlahos at mac.com Mon Nov 16 13:52:22 2020 From: bvlahos at mac.com (Bill Vlahos) Date: Mon, 16 Nov 2020 10:52:22 -0800 Subject: Enabling "About MyApp" In-Reply-To: References: <1356188370.13648.1589230064799@myemail.cox.net> <081d3dfa-1d44-d0f7-1d76-f8ea21a87bfc@fourthworld.com> Message-ID: <106C62A5-7AB2-4A3C-ACE6-AC4788AB2296@mac.com> This seems to be a bug in 9.6.1 for MacOS. Add a case statement for just ?About?. The case statement for ?About MyApp? won?t be recognized. Thanks to Elanor at LiveCode for pointing this out. Regards, Bill Vlahos > On Nov 15, 2020, at 11:56 AM, Bill Vlahos via use-livecode wrote: > > I have a app that has the About as the last item in the Help menu. > > It works in the Windows build but not in the Mac build (MacOS 10.14.6). It worked in previous versions. I don?t see anything wrong. > > The symptoms on the Mac is that the About item is in the correct place but the script is not run when selected. > > LiveCode 9.6.1 Indy. > > Not sure why the script isn?t run. > > Any suggestions? > > Bill Vlahos > >> On May 11, 2020, at 4:40 PM, Richard Gaskin via use-livecode wrote: >> >> GEORGE WOOD wrote: >> >>> How can I activate the "About MyApp" under the Apple menu? >> >> On other OSes the "About" item is usually the last item in the Help menu. If you put your About item there, you'll find that when LC automatically translates its menu objects for the Mac menu bar it'll move your About item to the application menu. >> >> In fact, a similar thing happens with "Preferences". On most platforms it's the last item in the Edit menu, and when you put a "Preferences" item there the automatic menu bar change that LC does will put it in the application menu as well, below About. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Mon Nov 16 16:58:44 2020 From: sean at pidigital.co.uk (Pi Digital) Date: Mon, 16 Nov 2020 21:58:44 +0000 Subject: Downloading LC9 Message-ID: Hi I?ve been getting weird errors in MacOS (Catalina 10.15.7) where LC is saying there is a script error in a data grid of the startup window and also the script editor is not opening at all from any stack card or object. So I?ve decided to delete and reload LC. But the download is taking FOREVER. I?ve tried different browsers, restarting macOS, downloading via windows but I?m only getting 100kbps max. I did a speed test and have 300Mbps download capability but LC remains stupid slow. Anyone else get this too? Sean Cole Pi Digital From merakosp at gmail.com Mon Nov 16 17:11:54 2020 From: merakosp at gmail.com (panagiotis merakos) Date: Tue, 17 Nov 2020 00:11:54 +0200 Subject: Downloading LC9 In-Reply-To: References: Message-ID: Hello Sean, *>>>>>>and also the script editor is not opening at all from any stack card or object* this sounds like a symptom of corrupted Preferences, please try deleting your LC preferences in /Users/{username}/Library/Preferences/RunRev/* Regarding the slow download speed- seems to work fine for me here, maybe it was an intermittent issue? kind regards Panos - On Mon, 16 Nov 2020 at 23:59, Pi Digital via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi > > I?ve been getting weird errors in MacOS (Catalina 10.15.7) where LC is > saying there is a script error in a data grid of the startup window and > also the script editor is not opening at all from any stack card or object. > So I?ve decided to delete and reload LC. But the download is taking > FOREVER. I?ve tried different browsers, restarting macOS, downloading via > windows but I?m only getting 100kbps max. I did a speed test and have > 300Mbps download capability but LC remains stupid slow. > > Anyone else get this too? > > Sean Cole > Pi Digital > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 16 17:17:15 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 16 Nov 2020 23:17:15 +0100 Subject: Downloading LC9 In-Reply-To: References: Message-ID: <0D187424-51C0-42E6-BB63-1D28BFDFED99@m-r-d.de> I am currently downloading LC 9.6.1 Business Mac with a download rate 3,7 - 4,5Mibt/s. Or did you download an other version?. Regards, Matthias Matthias Rebbe Software & Support Externer Datenschutz Bramkampsieke 13 32312 L?bbecke Tel +49 5741 310000 +49 160 5504462 Fax: +49 5741 310002 eMail: matthias at m-r-d.de BR5 Konverter - BR5 -> MP3 > Am 16.11.2020 um 22:58 schrieb Pi Digital via use-livecode >: > > Hi > > I?ve been getting weird errors in MacOS (Catalina 10.15.7) where LC is saying there is a script error in a data grid of the startup window and also the script editor is not opening at all from any stack card or object. So I?ve decided to delete and reload LC. But the download is taking FOREVER. I?ve tried different browsers, restarting macOS, downloading via windows but I?m only getting 100kbps max. I did a speed test and have 300Mbps download capability but LC remains stupid slow. > > Anyone else get this too? > > Sean Cole > Pi Digital > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode - Matthias Rebbe Life Is Too Short For Boring Code From waprothero at gmail.com Mon Nov 16 18:28:39 2020 From: waprothero at gmail.com (William Prothero) Date: Mon, 16 Nov 2020 15:28:39 -0800 Subject: Design Question In-Reply-To: <0D187424-51C0-42E6-BB63-1D28BFDFED99@m-r-d.de> References: <0D187424-51C0-42E6-BB63-1D28BFDFED99@m-r-d.de> Message-ID: <2C05C05A-0B38-4C95-A424-59B32582D7D1@gmail.com> Folks, I?m refining an application I used to teach Plate Tectonics when I was a working prof. The application?s core is access to Earth data (that scientists used to develop the theory of plate tectonics) and capturing and annotating plots that can be incorporated into student writing. I am adding features that give the student (and teacher) more direction about how to use the material. The final student product would be some kind of short writeup with figures, that presents student results of their exploration using the data in the application. The major goal is to have students learn about the process of doing science and writing about their results. However, I am thinking hard about how to proceed. It seems the effort to make this app work with learning management systems would be huge, something I?m definitely not up for. Yet, an assignment with text and figures needs to be packaged in some way that is easy for students to use, but can be transmitted to the teacher (who will make comments, assign a grade, and return it to the student) in some efficient way. What I?m thinking, at the simplest level, is to export the text and figures of the student?s work and let the student create a final product using word, Pages, google classroom, or some other application I haven?t thought about but which they would normally have access to. I?d love to have any of you teachers? ideas and/or experience with great ways to proceed. Thanks, Bill William A. Prothero https://earthlearningsolutions.org From bvlahos at mac.com Tue Nov 17 00:51:24 2020 From: bvlahos at mac.com (Bill Vlahos) Date: Mon, 16 Nov 2020 21:51:24 -0800 Subject: Publishing Mac Apps Message-ID: If I want to distribute Mac apps should I get a $99 Apple Developer account and Notarize them? I don?t anticipate putting apps in the Apple App Store? Are there other considerations or options to avoid problems as Apple continues to enforce more restrictions? Thanks, Bill Vlahos From sundown.pacifier at icloud.com Tue Nov 17 01:02:55 2020 From: sundown.pacifier at icloud.com (John Balgenorth) Date: Mon, 16 Nov 2020 22:02:55 -0800 Subject: Publishing Mac Apps In-Reply-To: References: Message-ID: <0F5195E8-CE45-463A-99FD-7E6005F73DC2@icloud.com> I think that makes it easiest and safest for the end user. If you did not code sign the app they could probably still use it but it would be a hassle. JB > On Nov 16, 2020, at 9:52 PM, Bill Vlahos via use-livecode wrote: > > ?If I want to distribute Mac apps should I get a $99 Apple Developer account and Notarize them? I don?t anticipate putting apps in the Apple App Store? > > Are there other considerations or options to avoid problems as Apple continues to enforce more restrictions? > > Thanks, > Bill Vlahos > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 17 05:14:35 2020 From: dvglasgow at gmail.com (David V Glasgow) Date: Tue, 17 Nov 2020 10:14:35 +0000 Subject: Design Question In-Reply-To: <2C05C05A-0B38-4C95-A424-59B32582D7D1@gmail.com> References: <0D187424-51C0-42E6-BB63-1D28BFDFED99@m-r-d.de> <2C05C05A-0B38-4C95-A424-59B32582D7D1@gmail.com> Message-ID: <9BEB1284-B98E-4BD4-B3D5-669E575CEE26@gmail.com> Oooh! For once I might make a contribution! I had the same issue in a healthcare context. These IT systems vary tremendously between services, are complex and often hard to connect with - either by design, or by lack of interest in supporting other software. I found the best way to get a combo education and training/clinical app to be accepted was to create it with no dependencies (local or online), no attempt to connect with management systems, no writing of data anywhere, just the ability to copy and paste charts and data that nurses can incorporate into other reports. Although clinical information systems are hostile to most actions, they have to allow pictures (like x rays and other scans) and spread sheet data to be pasted into the record. Ironically, they almost all allow Word documents to be incorporated into the clinical record too. Nurses don?t need to be shown how to do these things, because they wrestle with ugly, poorly designed clinical information systems on a daily basis. In other words, you?re on the money, I think. Cheers, David G > On 16 Nov 2020, at 11:28 pm, William Prothero via use-livecode wrote: > > Folks, > I?m refining an application I used to teach Plate Tectonics when I was a working prof. The application?s core is access to Earth data (that scientists used to develop the theory of plate tectonics) and capturing and annotating plots that can be incorporated into student writing. > > I am adding features that give the student (and teacher) more direction about how to use the material. The final student product would be some kind of short writeup with figures, that presents student results of their exploration using the data in the application. The major goal is to have students learn about the process of doing science and writing about their results. > > However, I am thinking hard about how to proceed. It seems the effort to make this app work with learning management systems would be huge, something I?m definitely not up for. Yet, an assignment with text and figures needs to be packaged in some way that is easy for students to use, but can be transmitted to the teacher (who will make comments, assign a grade, and return it to the student) in some efficient way. What I?m thinking, at the simplest level, is to export the text and figures of the student?s work and let the student create a final product using word, Pages, google classroom, or some other application I haven?t thought about but which they would normally have access to. > > I?d love to have any of you teachers? ideas and/or experience with great ways to proceed. > > Thanks, > Bill > > William A. Prothero > https://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 livfoss at mac.com Tue Nov 17 05:59:36 2020 From: livfoss at mac.com (Graham Samuel) Date: Tue, 17 Nov 2020 11:59:36 +0100 Subject: Publishing Mac Apps In-Reply-To: <0F5195E8-CE45-463A-99FD-7E6005F73DC2@icloud.com> References: <0F5195E8-CE45-463A-99FD-7E6005F73DC2@icloud.com> Message-ID: <77987532-B1B2-4F05-8880-41C5C2E7F0FB@mac.com> I agree (from limited experience I admit). The hassle referred to usually includes messages from the OS that many non-tech users will find mysterious, confusing and generally off-putting. Quite a lot of users don?t really understand the requirement to log in just to get some bit of software updated, let alone installed, so the burden then falls to the developer to write an essay explaining what the user has to do and sending it by email etc. Of course we all need security, but the whole thing has got out of hand IMHO. I think maybe Windows is worse, with its insistence on changing passwords after a time even if you?re working on an unconnected machine in the middle of nowhere? Graham > On 17 Nov 2020, at 07:02, John Balgenorth via use-livecode wrote: > > I think that makes it easiest and safest for > the end user. If you did not code sign the > app they could probably still use it but it > would be a hassle. > > JB > >> On Nov 16, 2020, at 9:52 PM, Bill Vlahos via use-livecode wrote: >> >> ?If I want to distribute Mac apps should I get a $99 Apple Developer account and Notarize them? I don?t anticipate putting apps in the Apple App Store? >> >> Are there other considerations or options to avoid problems as Apple continues to enforce more restrictions? >> >> Thanks, >> Bill Vlahos >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at elementarysoftware.com Tue Nov 17 08:27:30 2020 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 17 Nov 2020 05:27:30 -0800 Subject: Standardizing codepoints In-Reply-To: <175cced0da8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <175cced0da8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <550DF399-74C0-4F3E-A172-24CC3B45E89A@elementarysoftware.com> Thank you all for your advice. Jacque, normalizeText() was what I had vaguely remembered but couldn?t find. Richmond, I am working on a library that removes emojis from text and replaces them with imageSource... so that the text can be printed to PDF on mobile. You are correct about the ?going blue in the face? bit. And I?m pretty sure what I?m doing is just one step up from nothing. ? Scott > On Nov 15, 2020, at 9:21 AM, J. Landman Gay via use-livecode wrote: > > See the normalizeText entry in the dictionary, I think that might be what you mean. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On November 15, 2020 4:17:14 AM scott--- via use-livecode wrote: > >> I?m a little over my head in this area so I may not be describing this quite right? >> Some unicode glyphs seem to be describable with different (arrangements of) codepoints. Is it possible to coerce the glyph to be described in a ?standard? way? >> >> -- >> Scott Morrow >> >> Elementary Software >> (Now with 20% less chalk dust!) >> web https://elementarysoftware.com/ >> email scott at elementarysoftware.com >> booth 1-360-734-4701 >> ------------------------------------------------------ From livfoss at mac.com Tue Nov 17 10:25:39 2020 From: livfoss at mac.com (Graham Samuel) Date: Tue, 17 Nov 2020 16:25:39 +0100 Subject: Suspend in iOS, or when is a mobile app running? Message-ID: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> Sorry if this is documented somewhere but I can?t find it. On desktop platforms, LC gives us ?suspend? which is fired when the app goes into the background. I seem to be having some problems with iOS, in that when the screen locks (triggered by user action or a time limit), my app seems to stop getting messages from the OS, so is in some sense suspended. This seems to call for something like ?suspend? for mobiles. Does such a message exist? Another thing that happens with iOS apps that use Location Services is that the user is sometimes asked via a popu-up on the screen of the device whether the app should be allowed to use these services when it?s not running. I don?t know what triggers these user messages, nor am exactly certain what ?not running? means - presumably if the app has been properly quit, that?s something other than ?not running?. In the Standalone Settings for mobile, one can set Location Services as being a requirement, but there doesn?t seem to be a setting corresponding to this user choice. Has anyone a clear understanding of all this? I would love to see an explanation. TIA Graham From hakan at exformedia.se Tue Nov 17 10:50:58 2020 From: hakan at exformedia.se (hakan at exformedia.se) Date: Tue, 17 Nov 2020 16:50:58 +0100 Subject: Suspend in iOS, or when is a mobile app running? In-Reply-To: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> References: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> Message-ID: <77c83afe-3318-4c86-9faa-29bb5afdaeeb@Spark> I?m not sure what you mean with ?suspend? on mobile. You only run one application at a time. If your app goes out due to a phone call or any other event it will normally quit your app and send a closeStack message and some more. If you want to create an application that doesn?t allow the screen lock to kick in you can do that via mobileLockIdleTimer, but don?t forget to unlock when you don?t need it anymore! The first time you ask for location data the phone will pop up a message asking the user to allow location tracking (as that is a privacy feature). You need to check if you are allowed to track before trying to get location data. If the user disallows location tracking your app will never get any location data how much you even try! An app can also ask for location tracking as a background execution task. This is where the user selects ?Always? instead of ?When app is in use?. Then your app might get location data even if it is not the front-most application. Then your app will still get locations change updates. This is available as an experimental feature under the ?Standalone Application Settings? for iOS. I say might, because you can never be 100% sure. If the user starts an app that requires all memory your app might still be thrown out and terminated, but iOS is really good at shuffling memory so it usually works. I haven?t tried this experimental feature though so I can?t say if it works OK in LiveCode, but if you have a device for testing you can give it a try! Applications that will get permissions for always track location can also set up "location notifications?. Then your app will startup when you arrive or leave a specified location. E.g. this is how Remainders work when you set a Remainder to trigger based on location. E.g. When I leave home. :-H?kan On 17 Nov 2020, 16:26 +0100, Graham Samuel via use-livecode , wrote: > Sorry if this is documented somewhere but I can?t find it. > > On desktop platforms, LC gives us ?suspend? which is fired when the app goes into the background. I seem to be having some problems with iOS, in that when the screen locks (triggered by user action or a time limit), my app seems to stop getting messages from the OS, so is in some sense suspended. This seems to call for something like ?suspend? for mobiles. Does such a message exist? > > Another thing that happens with iOS apps that use Location Services is that the user is sometimes asked via a popu-up on the screen of the device whether the app should be allowed to use these services when it?s not running. I don?t know what triggers these user messages, nor am exactly certain what ?not running? means - presumably if the app has been properly quit, that?s something other than ?not running?. In the Standalone Settings for mobile, one can set Location Services as being a requirement, but there doesn?t seem to be a setting corresponding to this user choice. > > Has anyone a clear understanding of all this? I would love to see an explanation. > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 17 12:09:23 2020 From: prothero at earthlearningsolutions.org (ELS Prothero) Date: Tue, 17 Nov 2020 09:09:23 -0800 Subject: Design Question In-Reply-To: References: Message-ID: <30BBC4D1-389A-413E-981A-6300B6967443@earthlearningsolutions.org> I?m re-sending this because I used the wrong email server. Bill William Prothero http://es.earthednet.org > On Nov 17, 2020, at 8:46 AM, William Prothero wrote: > > ?David and Graham, > One approach that occurred to me is this. > There are 2 components to the work that students would ?hand in? to their teacher. It would consist of simple text and images. So, would it be practical to create a simple pdf as a single file that includes these elements and send that to the teacher as an attachment? The teacher could then either base grading on that pdf alone or use another small app that I write (or other pdf editing software) to add comments and/or a grade to the pdf and return it to the student. > > I haven?t tried to create PDFs in Livecode, but from some of the postings, it seems practical. I?m not sure about the deconstruction in a Livecode app, but a quick google search shows a lot of apps for annotating PDFs. > > Tnx for any comments or wisdom. > > Best, > Bill > > William Prothero > http://earthlearningsolutions.org > >> On Nov 17, 2020, at 2:15 AM, David V Glasgow wrote: >> >> ?Oooh! For once I might make a contribution! >> >> I had the same issue in a healthcare context. These IT systems vary tremendously between services, are complex and often hard to connect with - either by design, or by lack of interest in supporting other software. >> >> I found the best way to get a combo education and training/clinical app to be accepted was to create it with no dependencies (local or online), no attempt to connect with management systems, no writing of data anywhere, just the ability to copy and paste charts and data that nurses can incorporate into other reports. Although clinical information systems are hostile to most actions, they have to allow pictures (like x rays and other scans) and spread sheet data to be pasted into the record. Ironically, they almost all allow Word documents to be incorporated into the clinical record too. Nurses don?t need to be shown how to do these things, because they wrestle with ugly, poorly designed clinical information systems on a daily basis. >> >> In other words, you?re on the money, I think. >> >> Cheers, >> >> David G >> >>>> On 16 Nov 2020, at 11:28 pm, William Prothero via use-livecode wrote: >>> >>> Folks, >>> I?m refining an application I used to teach Plate Tectonics when I was a working prof. The application?s core is access to Earth data (that scientists used to develop the theory of plate tectonics) and capturing and annotating plots that can be incorporated into student writing. >>> >>> I am adding features that give the student (and teacher) more direction about how to use the material. The final student product would be some kind of short writeup with figures, that presents student results of their exploration using the data in the application. The major goal is to have students learn about the process of doing science and writing about their results. >>> >>> However, I am thinking hard about how to proceed. It seems the effort to make this app work with learning management systems would be huge, something I?m definitely not up for. Yet, an assignment with text and figures needs to be packaged in some way that is easy for students to use, but can be transmitted to the teacher (who will make comments, assign a grade, and return it to the student) in some efficient way. What I?m thinking, at the simplest level, is to export the text and figures of the student?s work and let the student create a final product using word, Pages, google classroom, or some other application I haven?t thought about but which they would normally have access to. >>> >>> I?d love to have any of you teachers? ideas and/or experience with great ways to proceed. >>> >>> Thanks, >>> Bill >>> >>> William A. Prothero >>> https://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 ambassador at fourthworld.com Tue Nov 17 13:10:36 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 17 Nov 2020 10:10:36 -0800 Subject: Design Question In-Reply-To: <2C05C05A-0B38-4C95-A424-59B32582D7D1@gmail.com> References: <2C05C05A-0B38-4C95-A424-59B32582D7D1@gmail.com> Message-ID: William Prothero wrote: > It seems the effort to make this app work with learning management > systems would be huge, something I?m definitely not up for. It may not be. I've made standards-compliant courseware in the past (a while ago; the data format was XML ), and it wasn't as bad as I'd thought. With so much work on the modern standards I'd imagine they're far better documented and based on more common conventions than they were in yesteryear. But maybe the key question is: are your customers asking for LMS interoperability specifically? In some segments it can make the difference between being a contender and not being considered at all. But I've seen many other segments that seem to have abandoned hope of a standards-driven world of interoperable courseware, quite happy to kludge together whatever they need to eventually arrive at a means of tracking assessment. If no one's asking you for LMS compatibility, there would seem to need to bother. If PDF suffices, it's certainly easy to do in LC. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Tue Nov 17 13:54:52 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 Nov 2020 12:54:52 -0600 Subject: Suspend in iOS, or when is a mobile app running? In-Reply-To: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> References: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> Message-ID: <175d78f4078.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Android has always acted like this and now that iOS apps run in the background like Android does, it behaves the same way. At least our problems are cross-platform now. An app will stay in RAM until the user specifically quits or until the OS needs the memory. When that happens, the OS wipes the app and it effectively shuts down. We get no warning, except for a shutDown message. Android recommends we store the last state of the app and restore it when it starts up again. I'd love to get a message when the app goes into the background but so far there is none. Storing every little change as it happens seems tedious and wasteful. I haven't had much luck with storing changes on shutdown but it's worth a try, it's been a while since I did it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 17, 2020 9:27:50 AM Graham Samuel via use-livecode wrote: > Sorry if this is documented somewhere but I can?t find it. > > On desktop platforms, LC gives us ?suspend? which is fired when the app > goes into the background. I seem to be having some problems with iOS, in > that when the screen locks (triggered by user action or a time limit), my > app seems to stop getting messages from the OS, so is in some sense > suspended. This seems to call for something like ?suspend? for mobiles. > Does such a message exist? > > Another thing that happens with iOS apps that use Location Services is that > the user is sometimes asked via a popu-up on the screen of the device > whether the app should be allowed to use these services when it?s not > running. I don?t know what triggers these user messages, nor am exactly > certain what ?not running? means - presumably if the app has been properly > quit, that?s something other than ?not running?. In the Standalone Settings > for mobile, one can set Location Services as being a requirement, but there > doesn?t seem to be a setting corresponding to this user choice. > > Has anyone a clear understanding of all this? I would love to see an > explanation. > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hlowe at me.com Tue Nov 17 14:07:57 2020 From: hlowe at me.com (HENRY LOWE) Date: Tue, 17 Nov 2020 11:07:57 -0800 Subject: Suspend in iOS, or when is a mobile app running? In-Reply-To: <175d78f4078.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> <175d78f4078.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <8B314385-8599-4142-A700-1B599F2CF5FB@me.com> On iOS use mergNotify as below. Works well for me. on openStack mergNotify "UIApplicationWillResignActiveNotification" mergNotify "UIApplicationDidBecomeActiveNotification" end openStack on UIApplicationWillResignActiveNotification pUserInfo // Your code before the app goes to background -- your code here to handle going to the background end UIApplicationWillResignActiveNotification on UIApplicationDidBecomeActiveNotification pUserInfo // Your code after the app comes back to foreground -- your code here to handle your app becoming active end UIApplicationDidBecomeActiveNotification Henry > On Nov 17, 2020, at 10:54 AM, J. Landman Gay via use-livecode wrote: > > Android has always acted like this and now that iOS apps run in the background like Android does, it behaves the same way. At least our problems are cross-platform now. > > An app will stay in RAM until the user specifically quits or until the OS needs the memory. When that happens, the OS wipes the app and it effectively shuts down. We get no warning, except for a shutDown message. Android recommends we store the last state of the app and restore it when it starts up again. > > I'd love to get a message when the app goes into the background but so far there is none. Storing every little change as it happens seems tedious and wasteful. I haven't had much luck with storing changes on shutdown but it's worth a try, it's been a while since I did it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On November 17, 2020 9:27:50 AM Graham Samuel via use-livecode wrote: > >> Sorry if this is documented somewhere but I can?t find it. >> >> On desktop platforms, LC gives us ?suspend? which is fired when the app goes into the background. I seem to be having some problems with iOS, in that when the screen locks (triggered by user action or a time limit), my app seems to stop getting messages from the OS, so is in some sense suspended. This seems to call for something like ?suspend? for mobiles. Does such a message exist? >> >> Another thing that happens with iOS apps that use Location Services is that the user is sometimes asked via a popu-up on the screen of the device whether the app should be allowed to use these services when it?s not running. I don?t know what triggers these user messages, nor am exactly certain what ?not running? means - presumably if the app has been properly quit, that?s something other than ?not running?. In the Standalone Settings for mobile, one can set Location Services as being a requirement, but there doesn?t seem to be a setting corresponding to this user choice. >> >> Has anyone a clear understanding of all this? I would love to see an explanation. >> >> TIA >> >> Graham >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From waprothero at gmail.com Tue Nov 17 14:18:57 2020 From: waprothero at gmail.com (William Prothero) Date: Tue, 17 Nov 2020 11:18:57 -0800 Subject: Design Question In-Reply-To: References: <2C05C05A-0B38-4C95-A424-59B32582D7D1@gmail.com> Message-ID: Richard, I kinda like the pdf idea. Seems it would give me a way to encapsulate and format the text and images and perhaps a fairly defined pdf format would make it straightforward to edit it using Livecode as well. Best, Bill William A. Prothero https://earthlearningsolutions.org > On Nov 17, 2020, at 10:10 AM, Richard Gaskin via use-livecode wrote: > > William Prothero wrote: > > > It seems the effort to make this app work with learning management > > systems would be huge, something I?m definitely not up for. > > It may not be. I've made standards-compliant courseware in the past (a while ago; the data format was XML ), and it wasn't as bad as I'd thought. With so much work on the modern standards I'd imagine they're far better documented and based on more common conventions than they were in yesteryear. > > But maybe the key question is: are your customers asking for LMS interoperability specifically? > > In some segments it can make the difference between being a contender and not being considered at all. > > But I've seen many other segments that seem to have abandoned hope of a standards-driven world of interoperable courseware, quite happy to kludge together whatever they need to eventually arrive at a means of tracking assessment. > > If no one's asking you for LMS compatibility, there would seem to need to bother. > > If PDF suffices, it's certainly easy to do in LC. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jiml at netrin.com Tue Nov 17 15:45:07 2020 From: jiml at netrin.com (Jim Lambert) Date: Tue, 17 Nov 2020 12:45:07 -0800 Subject: Design Question In-Reply-To: References: Message-ID: <5FFF9D14-BB6A-4C54-86D4-8B76FD3D5F28@netrin.com> > The application's core is access to Earth data (that scientists used to develop the theory of plate tectonics) and capturing and annotating plots that can be incorporated into student writing. If the 'student writing' is created in some other program then wouldn't it be sufficient to allow a student to copy text, data and plots from your program and paste them into whatever writing program the student uses? If the 'student writing' is created in your program could their work be exported as PDF that is then imported into the 'learning management system" and/or shared with the teacher? Jim Lambert From marksmithhfx at gmail.com Tue Nov 17 17:39:24 2020 From: marksmithhfx at gmail.com (Mark Smith) Date: Tue, 17 Nov 2020 22:39:24 +0000 Subject: Suspend in iOS, or when is a mobile app running? In-Reply-To: <175d78f4078.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> <175d78f4078.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <53C006A0-768C-4B3B-8F29-B62A7C4045ED@gmail.com> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. Mark > On Nov 17, 2020, at 6:54 PM, J. Landman Gay via use-livecode wrote: > > Android has always acted like this and now that iOS apps run in the background like Android does, it behaves the same way. At least our problems are cross-platform now. > > An app will stay in RAM until the user specifically quits or until the OS needs the memory. When that happens, the OS wipes the app and it effectively shuts down. We get no warning, except for a shutDown message. Android recommends we store the last state of the app and restore it when it starts up again. > > I'd love to get a message when the app goes into the background but so far there is none. Storing every little change as it happens seems tedious and wasteful. I haven't had much luck with storing changes on shutdown but it's worth a try, it's been a while since I did it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On November 17, 2020 9:27:50 AM Graham Samuel via use-livecode wrote: > >> Sorry if this is documented somewhere but I can?t find it. >> >> On desktop platforms, LC gives us ?suspend? which is fired when the app goes into the background. I seem to be having some problems with iOS, in that when the screen locks (triggered by user action or a time limit), my app seems to stop getting messages from the OS, so is in some sense suspended. This seems to call for something like ?suspend? for mobiles. Does such a message exist? >> >> Another thing that happens with iOS apps that use Location Services is that the user is sometimes asked via a popu-up on the screen of the device whether the app should be allowed to use these services when it?s not running. I don?t know what triggers these user messages, nor am exactly certain what ?not running? means - presumably if the app has been properly quit, that?s something other than ?not running?. In the Standalone Settings for mobile, one can set Location Services as being a requirement, but there doesn?t seem to be a setting corresponding to this user choice. >> >> Has anyone a clear understanding of all this? I would love to see an explanation. >> >> TIA >> >> Graham >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at elementarysoftware.com Tue Nov 17 19:42:03 2020 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 17 Nov 2020 16:42:03 -0800 Subject: Design Question In-Reply-To: References: <2C05C05A-0B38-4C95-A424-59B32582D7D1@gmail.com> Message-ID: <389E9785-AFD6-4E54-916B-CAAA81C02264@elementarysoftware.com> For getting it FROM the student, why not just use a livecode stack file. It could contain everything and be highly editable. For returning it TO the student you could use a pdf. -- 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 Nov 17, 2020, at 11:18 AM, William Prothero via use-livecode wrote: > > Richard, > I kinda like the pdf idea. Seems it would give me a way to encapsulate and format the text and images and perhaps a fairly defined pdf format would make it straightforward to edit it using Livecode as well. > Best, > Bill > > William A. Prothero > https://earthlearningsolutions.org > >> On Nov 17, 2020, at 10:10 AM, Richard Gaskin via use-livecode wrote: >> >> William Prothero wrote: >> >>> It seems the effort to make this app work with learning management >>> systems would be huge, something I?m definitely not up for. >> >> It may not be. I've made standards-compliant courseware in the past (a while ago; the data format was XML ), and it wasn't as bad as I'd thought. With so much work on the modern standards I'd imagine they're far better documented and based on more common conventions than they were in yesteryear. >> >> But maybe the key question is: are your customers asking for LMS interoperability specifically? >> >> In some segments it can make the difference between being a contender and not being considered at all. >> >> But I've seen many other segments that seem to have abandoned hope of a standards-driven world of interoperable courseware, quite happy to kludge together whatever they need to eventually arrive at a means of tracking assessment. >> >> If no one's asking you for LMS compatibility, there would seem to need to bother. >> >> If PDF suffices, it's certainly easy to do in LC. >> >> -- >> 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 ambassador at fourthworld.com Tue Nov 17 19:49:09 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 17 Nov 2020 16:49:09 -0800 Subject: Design Question In-Reply-To: <389E9785-AFD6-4E54-916B-CAAA81C02264@elementarysoftware.com> References: <389E9785-AFD6-4E54-916B-CAAA81C02264@elementarysoftware.com> Message-ID: Scott Morrow wrote: > For getting it FROM the student, why not just use a livecode stack > file. It could contain everything and be highly editable. ^ this LiveCode stack files are an underrated document format. -- 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 iphonelagi at gmail.com Wed Nov 18 05:20:45 2020 From: iphonelagi at gmail.com (Lagi Pittas) Date: Wed, 18 Nov 2020 10:20:45 +0000 Subject: Design Question In-Reply-To: References: <389E9785-AFD6-4E54-916B-CAAA81C02264@elementarysoftware.com> Message-ID: Hi, I had 70 PS POS systems in the field and I saved the list of items and other info after each addition it worked 99.9% of the time. But when it failed (4 or 5 times a year) usually the same customer (same hardware same windows 7 )I had to log in and copy a blank livecode stack. In the end I had to save the info in the Sqlite database - No problems since. The stackfile never seemed to damage because of a power failure/outage or anything - but had a greater chance if that was the case. The funny thing was if you did switch the power off off without doing a proper shutdown there was no damage 99.9% of the time. Never did get to the bottom of it. Regards Lagi On Wed, 18 Nov 2020 at 00:50, Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > Scott Morrow wrote: > > > For getting it FROM the student, why not just use a livecode stack > > file. It could contain everything and be highly editable. > > ^ this > > LiveCode stack files are an underrated document format. > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- KIndest Regards Lagi From livfoss at mac.com Wed Nov 18 05:30:35 2020 From: livfoss at mac.com (Graham Samuel) Date: Wed, 18 Nov 2020 11:30:35 +0100 Subject: Suspend in iOS, or when is a mobile app running? In-Reply-To: <53C006A0-768C-4B3B-8F29-B62A7C4045ED@gmail.com> References: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> <175d78f4078.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <53C006A0-768C-4B3B-8F29-B62A7C4045ED@gmail.com> Message-ID: Thanks to all who replied on this topic - lots of this is new to me! So far, for me the big thing missing is how to **force** iOS to continue sending messages to the app in the background, or alternatively force iOS itself to ask the user the question when the app calls for location data for the first time. Although I have set the ?experimental? setting of Location Authorization Type to ?Always' in my Sstandalone Application Settings, this does not seem either to ensure access nor to force the message. Maybe wading around in the iOS SDK documentation will help, though somehow I doubt it. To repeat myself, I have noticed that the following apps which I have used personally, don?t seem to get the OS to ask a question of the user, and yet they unfailingly continue to process the equivalent of locationChanged messages from the GPS when they?re in the background: Strava SityTrail TomTom GO GB & Parks and presumably Google Maps and Apple?s own Maps. They appear to run (i.e execute code, not just sit in RAM) while in the background.I just don?t know how they do it so consistently. It?s frustrating to try to solve a problem that?s obviously been solved many times before, but just happens not to be in the public domain. I am not sure I will live long enough to come out the other side of all this (I?m including the issue of tracking a route taking into account GPS inaccuracies and anomalies), but if I do, I?ll write it up. Graham > On 17 Nov 2020, at 23:39, Mark Smith via use-livecode wrote: > > And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). > > Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. > > Mark > > >> On Nov 17, 2020, at 6:54 PM, J. Landman Gay via use-livecode wrote: >> >> Android has always acted like this and now that iOS apps run in the background like Android does, it behaves the same way. At least our problems are cross-platform now. >> >> An app will stay in RAM until the user specifically quits or until the OS needs the memory. When that happens, the OS wipes the app and it effectively shuts down. We get no warning, except for a shutDown message. Android recommends we store the last state of the app and restore it when it starts up again. >> >> I'd love to get a message when the app goes into the background but so far there is none. Storing every little change as it happens seems tedious and wasteful. I haven't had much luck with storing changes on shutdown but it's worth a try, it's been a while since I did it. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On November 17, 2020 9:27:50 AM Graham Samuel via use-livecode wrote: >> >>> Sorry if this is documented somewhere but I can?t find it. >>> >>> On desktop platforms, LC gives us ?suspend? which is fired when the app goes into the background. I seem to be having some problems with iOS, in that when the screen locks (triggered by user action or a time limit), my app seems to stop getting messages from the OS, so is in some sense suspended. This seems to call for something like ?suspend? for mobiles. Does such a message exist? >>> >>> Another thing that happens with iOS apps that use Location Services is that the user is sometimes asked via a popu-up on the screen of the device whether the app should be allowed to use these services when it?s not running. I don?t know what triggers these user messages, nor am exactly certain what ?not running? means - presumably if the app has been properly quit, that?s something other than ?not running?. In the Standalone Settings for mobile, one can set Location Services as being a requirement, but there doesn?t seem to be a setting corresponding to this user choice. >>> >>> Has anyone a clear understanding of all this? I would love to see an explanation. >>> >>> TIA >>> >>> Graham >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 18 07:15:26 2020 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 Nov 2020 13:15:26 +0100 Subject: Can LC read QR-Code? Message-ID: Hi friends, I know that LC can generate QR-Codes, but can it also read them? On mobile? Thanks for any hint. Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From andrew at midwestcoastmedia.com Wed Nov 18 08:43:08 2020 From: andrew at midwestcoastmedia.com (Andrew at MidWest Coast Media) Date: Wed, 18 Nov 2020 08:43:08 -0500 Subject: Apple commissions Message-ID: <6F3B63B7-3162-4D84-916B-83428A7B358F@midwestcoastmedia.com> Apple, in what seems to me like a giant screw you to Epic Games (or leveraging in current court battles), is cutting their piece of the pie in half for small developers: 30% --> 15% https://www.engadget.com/apple-small-business-program-15-percent-112259064.html As someone earning substantially south of $1M annually I am super excited about this. Big Sur begins to combine the iOS and macOS platforms opening up a larger platform AND offers a larger revenue cut. -Andrew Bell From klaus at major-k.de Wed Nov 18 09:29:49 2020 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 Nov 2020 15:29:49 +0100 Subject: Can LC read QR-Code? In-Reply-To: References: Message-ID: <05E62174-6275-4BF2-9C04-C78F6522D503@major-k.de> Hi all, > Am 18.11.2020 um 13:15 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I know that LC can generate QR-Codes, but can it also read them? > On mobile? Thanks for any hint. found it under BARCODE! 8-) Question, the dictionary says the "Android Barcode Library" works with LC INDY. But I remember there was one feature falsely reported as supported by INDY, but was BUSINESS only in the end. Was it this library? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From sean at pidigital.co.uk Wed Nov 18 09:29:46 2020 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Wed, 18 Nov 2020 14:29:46 +0000 Subject: Apple commissions In-Reply-To: <6F3B63B7-3162-4D84-916B-83428A7B358F@midwestcoastmedia.com> References: <6F3B63B7-3162-4D84-916B-83428A7B358F@midwestcoastmedia.com> Message-ID: Cooool. That's amazing news. Thanks for the heads up. Sean Cole *Pi Digital * On Wed, 18 Nov 2020 at 13:43, Andrew at MidWest Coast Media via use-livecode wrote: > Apple, in what seems to me like a giant screw you to Epic Games (or > leveraging in current court battles), is cutting their piece of the pie in > half for small developers: 30% --> 15% > > https://www.engadget.com/apple-small-business-program-15-percent-112259064.html > < > https://www.engadget.com/apple-small-business-program-15-percent-112259064.html > > > > As someone earning substantially south of $1M annually I am super excited > about this. Big Sur begins to combine the iOS and macOS platforms opening > up a larger platform AND offers a larger revenue cut. > > -Andrew Bell > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Wed Nov 18 09:31:17 2020 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Wed, 18 Nov 2020 14:31:17 +0000 Subject: Apple commissions In-Reply-To: References: <6F3B63B7-3162-4D84-916B-83428A7B358F@midwestcoastmedia.com> Message-ID: The news page from Apple: https://www.apple.com/newsroom/2020/11/apple-announces-app-store-small-business-program/ Sean Cole *Pi Digital * On Wed, 18 Nov 2020 at 14:29, Sean Cole (Pi) wrote: > Cooool. That's amazing news. Thanks for the heads up. > > Sean Cole > *Pi Digital * > > > On Wed, 18 Nov 2020 at 13:43, Andrew at MidWest Coast Media via > use-livecode wrote: > >> Apple, in what seems to me like a giant screw you to Epic Games (or >> leveraging in current court battles), is cutting their piece of the pie in >> half for small developers: 30% --> 15% >> >> https://www.engadget.com/apple-small-business-program-15-percent-112259064.html >> < >> https://www.engadget.com/apple-small-business-program-15-percent-112259064.html >> > >> >> As someone earning substantially south of $1M annually I am super excited >> about this. Big Sur begins to combine the iOS and macOS platforms opening >> up a larger platform AND offers a larger revenue cut. >> >> -Andrew Bell >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From jeejeestudio at gmail.com Wed Nov 18 09:34:15 2020 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Wed, 18 Nov 2020 15:34:15 +0100 Subject: Can LC read QR-Code? In-Reply-To: <05E62174-6275-4BF2-9C04-C78F6522D503@major-k.de> References: <05E62174-6275-4BF2-9C04-C78F6522D503@major-k.de> Message-ID: <3f2cb65f-9fc5-a8ea-96e0-74c9867e7b7a@gmail.com> It works in INDY, mein freund :) Op 18-11-2020 om 15:29 schreef Klaus major-k via use-livecode: > Hi all, > >> Am 18.11.2020 um 13:15 schrieb Klaus major-k via use-livecode : >> >> Hi friends, >> >> I know that LC can generate QR-Codes, but can it also read them? >> On mobile? Thanks for any hint. > found it under BARCODE! 8-) > > Question, the dictionary says the "Android Barcode Library" works with LC INDY. > But I remember there was one feature falsely reported as supported by INDY, but > was BUSINESS only in the end. Was it this library? > > Thanks in advance! > > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > 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 jeejeestudio at gmail.com Wed Nov 18 09:40:07 2020 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Wed, 18 Nov 2020 15:40:07 +0100 Subject: Apple commissions In-Reply-To: References: <6F3B63B7-3162-4D84-916B-83428A7B358F@midwestcoastmedia.com> Message-ID: Thanks! Wow 1 milion dollars, whish i could earn that in a year. Op 18-11-2020 om 15:31 schreef Sean Cole (Pi) via use-livecode: > The news page from Apple: > https://www.apple.com/newsroom/2020/11/apple-announces-app-store-small-business-program/ > > Sean Cole > *Pi Digital * > > > On Wed, 18 Nov 2020 at 14:29, Sean Cole (Pi) wrote: > >> Cooool. That's amazing news. Thanks for the heads up. >> >> Sean Cole >> *Pi Digital * >> >> >> On Wed, 18 Nov 2020 at 13:43, Andrew at MidWest Coast Media via >> use-livecode wrote: >> >>> Apple, in what seems to me like a giant screw you to Epic Games (or >>> leveraging in current court battles), is cutting their piece of the pie in >>> half for small developers: 30% --> 15% >>> >>> https://www.engadget.com/apple-small-business-program-15-percent-112259064.html >>> < >>> https://www.engadget.com/apple-small-business-program-15-percent-112259064.html >>> As someone earning substantially south of $1M annually I am super excited >>> about this. Big Sur begins to combine the iOS and macOS platforms opening >>> up a larger platform AND offers a larger revenue cut. >>> >>> -Andrew Bell >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 18 09:41:20 2020 From: klaus at major-k.de (Klaus major-k) Date: Wed, 18 Nov 2020 15:41:20 +0100 Subject: Can LC read QR-Code? In-Reply-To: <3f2cb65f-9fc5-a8ea-96e0-74c9867e7b7a@gmail.com> References: <05E62174-6275-4BF2-9C04-C78F6522D503@major-k.de> <3f2cb65f-9fc5-a8ea-96e0-74c9867e7b7a@gmail.com> Message-ID: <66680B4F-F86A-4EAA-88DC-488352530BB6@major-k.de> Dag JeeJee, > Am 18.11.2020 um 15:34 schrieb JeeJeeStudio via use-livecode : > > It works in INDY, mein freund :) dat is mooi, hartelijk bedankt, beste vriend! :-) > Op 18-11-2020 om 15:29 schreef Klaus major-k via use-livecode: >> Hi all, >>> Am 18.11.2020 um 13:15 schrieb Klaus major-k via use-livecode : >>> Hi friends, >>> >>> I know that LC can generate QR-Codes, but can it also read them? >>> On mobile? Thanks for any hint. >> found it under BARCODE! 8-) >> >> Question, the dictionary says the "Android Barcode Library" works with LC INDY. >> But I remember there was one feature falsely reported as supported by INDY, but >> was BUSINESS only in the end. Was it this library? Groetjes 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 Nov 18 12:05:25 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Nov 2020 17:05:25 +0000 Subject: Design Question In-Reply-To: References: <389E9785-AFD6-4E54-916B-CAAA81C02264@elementarysoftware.com> Message-ID: <6538EF14-2211-44D5-A85E-987F9667D25A@iotecdigital.com> Does your stack auto-save anything at any time? If power fails during a save operation, there will be another stack file of the same name preceded by a tilde (~). Deleting the tilde will restore the prior version of the stack file. Sometimes a power outage can damage the partition of the HDD. I would have UPS backups on all the systems you deem critical, and check these UPS systems every three months or replace them outright every three years (typical life expectancy of a lead acid battery). Bob S On Nov 18, 2020, at 2:20 AM, Lagi Pittas via use-livecode > wrote: Hi, I had 70 PS POS systems in the field and I saved the list of items and other info after each addition it worked 99.9% of the time. But when it failed (4 or 5 times a year) usually the same customer (same hardware same windows 7 )I had to log in and copy a blank livecode stack. In the end I had to save the info in the Sqlite database - No problems since. The stackfile never seemed to damage because of a power failure/outage or anything - but had a greater chance if that was the case. The funny thing was if you did switch the power off off without doing a proper shutdown there was no damage 99.9% of the time. Never did get to the bottom of it. Regards Lagi From jeejeestudio at gmail.com Wed Nov 18 12:55:18 2020 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Wed, 18 Nov 2020 18:55:18 +0100 Subject: Can LC read QR-Code? In-Reply-To: <66680B4F-F86A-4EAA-88DC-488352530BB6@major-k.de> References: <05E62174-6275-4BF2-9C04-C78F6522D503@major-k.de> <3f2cb65f-9fc5-a8ea-96e0-74c9867e7b7a@gmail.com> <66680B4F-F86A-4EAA-88DC-488352530BB6@major-k.de> Message-ID: Geen dank Klaus. Schone abend noch! Gruessen, Jerry Op 18-11-2020 om 15:41 schreef Klaus major-k via use-livecode: > Dag JeeJee, > >> Am 18.11.2020 um 15:34 schrieb JeeJeeStudio via use-livecode : >> >> It works in INDY, mein freund :) > dat is mooi, hartelijk bedankt, beste vriend! :-) > >> Op 18-11-2020 om 15:29 schreef Klaus major-k via use-livecode: >>> Hi all, >>>> Am 18.11.2020 um 13:15 schrieb Klaus major-k via use-livecode : >>>> Hi friends, >>>> >>>> I know that LC can generate QR-Codes, but can it also read them? >>>> On mobile? Thanks for any hint. >>> found it under BARCODE! 8-) >>> >>> Question, the dictionary says the "Android Barcode Library" works with LC INDY. >>> But I remember there was one feature falsely reported as supported by INDY, but >>> was BUSINESS only in the end. Was it this library? > Groetjes > > 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 paul at researchware.com Wed Nov 18 13:06:48 2020 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 Nov 2020 13:06:48 -0500 Subject: Big Sur bugs In-Reply-To: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> Message-ID: <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> Has any experienced any problems playing back media (.mp3 audio files or .mp4 video) under macOS Big Sur? I just ran into an issue where none of my media is playing (at all) in a LC9.6.1 built stand-alone under Big Sur. From davros at bellaliant.net Wed Nov 18 13:34:14 2020 From: davros at bellaliant.net (John McKenzie) Date: Wed, 18 Nov 2020 14:34:14 -0400 Subject: PDF Manipulation was Design Question Message-ID: <20201118143414.2e7ad770@poesidon> Comments people were making to William in the Design Question thread have caused me to question some things and I am going to the list here to get an answer. Can Livecode edit existing PDF files? I would think this far beyond its scope and just not the sort of thing it would be involved with. Am I wrong on that though? At my work we have a, frankly stupid, situation that could be made so much easier if we had software do a simple function. All that is needed is that a PDF file that comes to me gets some of its text changed and the changes are according to a specific pattern. I thought about getting around to making something that would do that in one of the more powerful scripting languages. However, if I could use Livecode it would have some advantages. Namely it would be easier to create and be very multi-platform. So here I am having assumed that Livecode is not a tool that could do what I want but now asking can I use it to automate editing text in a PDF file? The edits are simple, BTW. I work at an airport and it would just need to replace a flight number with the flight number and code next to it. The code is always the same for a particular route. So for example, if the incoming PDF has the text "WS252" on it I would want it changed to "WS252 LV". Each file would have 20-30 flights to change like this. Thanks. From paul at researchware.com Wed Nov 18 13:57:41 2020 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 Nov 2020 13:57:41 -0500 Subject: Big Sur bugs In-Reply-To: <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> Message-ID: I just filed bug https://quality.livecode.com/show_bug.cgi?id=22986 Media is dead under Big Sur On 11/18/2020 1:06 PM, Paul Dupuis via use-livecode wrote: > Has any experienced any problems playing back media (.mp3 audio files > or .mp4 video) under macOS Big Sur? > > I just ran into an issue where none of my media is playing (at all) in > a LC9.6.1 built stand-alone under Big Sur. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Nov 18 14:21:33 2020 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 18 Nov 2020 21:21:33 +0200 Subject: Big Sur bugs In-Reply-To: References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> Message-ID: @Paul Dupuis Hmm that is strange, the player works for me. I used the video you attached in the bug report. Are you by any chance using a new Silicon (ARM) Mac? I am curious to see if other folks can reproduce this bug. Kind regards, Panos -- On Wed, 18 Nov 2020 at 20:58, Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > I just filed bug https://quality.livecode.com/show_bug.cgi?id=22986 > > Media is dead under Big Sur > > > On 11/18/2020 1:06 PM, Paul Dupuis via use-livecode wrote: > > Has any experienced any problems playing back media (.mp3 audio files > > or .mp4 video) under macOS Big Sur? > > > > I just ran into an issue where none of my media is playing (at all) in > > a LC9.6.1 built stand-alone under Big Sur. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 18 15:02:18 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Nov 2020 20:02:18 +0000 Subject: PDF Manipulation was Design Question In-Reply-To: <20201118143414.2e7ad770@poesidon> References: <20201118143414.2e7ad770@poesidon> Message-ID: <54B38115-5129-4256-95B0-425ECC0567F9@iotecdigital.com> On Nov 18, 2020, at 10:34 AM, John McKenzie via use-livecode > wrote: Comments people were making to William in the Design Question thread have caused me to question some things and I am going to the list here to get an answer. Can Livecode edit existing PDF files? I would think this far beyond its scope and just not the sort of thing it would be involved with. Am I wrong on that though? Short answer, no. Long answer, it depends. On a Macintosh, AppleScript can be used to manipulate form objects, but as far as the actual ?burned in? content, I do not think so. This is on purpose, as if this were possible, PDFs could not be secure. Also if the PDF has been secured, nothing can modify it. On a PC, there are libraries for C++ and Java that allow manipulation of PDFs, again dependent on the PDFs own security settings. In either case, Acrobat has certain security features built in, so that some things cannot be modified by an API if it does not have the proper security context. It is kind of like variable scoping, but from a security point of view. That may not be a great analogy, but to get more info read the Javascript API to learn what I am talking about. https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf Bob S At my work we have a, frankly stupid, situation that could be made so much easier if we had software do a simple function. All that is needed is that a PDF file that comes to me gets some of its text changed and the changes are according to a specific pattern. I thought about getting around to making something that would do that in one of the more powerful scripting languages. However, if I could use Livecode it would have some advantages. Namely it would be easier to create and be very multi-platform. So here I am having assumed that Livecode is not a tool that could do what I want but now asking can I use it to automate editing text in a PDF file? The edits are simple, BTW. I work at an airport and it would just need to replace a flight number with the flight number and code next to it. The code is always the same for a particular route. So for example, if the incoming PDF has the text "WS252" on it I would want it changed to "WS252 LV". Each file would have 20-30 flights to change like this. Thanks. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Wed Nov 18 15:05:03 2020 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 Nov 2020 15:05:03 -0500 Subject: Big Sur bugs In-Reply-To: References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> Message-ID: <78df6801-247c-f7df-9bb1-c5b29941a1f8@researchware.com> No, however, I am running Big Sur in a Virtual Box VM under macOS Mojave. All other Big Sur features and functions appear to work fine in the VM (we just can not afford Apple hardware for every version of their OS from Mavericks to Big Sur. VM's are a lot more versatile as they can be clones, snapshotted, and restored when things get messed up) If I try to just double click on the video under Big Sure, it opens the Quicktime Player (?) and I get a "unknown error occurred (-101). I am glad to hear it is working for you Panos - very glad. Both our commercial apps depend on the player object and I was in a panic! I'd ask anyone following this thread to please take time to test media under Big Sur. I would be ecstatic to learn in is a VM issue. We'll then move to our backup of installing on a partition for a dual (actually more than dual as we have about 5 version of macOS each on its own partition) boot system. -- Paul On 11/18/2020 2:21 PM, panagiotis merakos wrote: > @Paul Dupuis > > Hmm that is strange, the player works for me. I used the video you > attached in the bug report. Are you by any chance using a new Silicon > (ARM) Mac? > > I am curious to see if other folks can reproduce this bug. > > Kind regards, > Panos > -- > > On Wed, 18 Nov 2020 at 20:58, Paul Dupuis via use-livecode > > > wrote: > > I just filed bug > https://quality.livecode.com/show_bug.cgi?id=22986 > > > Media is dead under Big Sur > > > On 11/18/2020 1:06 PM, Paul Dupuis via use-livecode wrote: > > Has any experienced any problems playing back media (.mp3 audio > files > > or .mp4 video) under macOS Big Sur? > > > > I just ran into an issue where none of my media is playing (at > all) in > > a LC9.6.1 built stand-alone under Big Sur. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 18 15:05:37 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 18 Nov 2020 14:05:37 -0600 Subject: Suspend in iOS, or when is a mobile app running? In-Reply-To: <53C006A0-768C-4B3B-8F29-B62A7C4045ED@gmail.com> References: <91F75AEA-2D7A-4203-8E7F-678D94030167@mac.com> <175d78f4078.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <53C006A0-768C-4B3B-8F29-B62A7C4045ED@gmail.com> Message-ID: That's good to know. Now all we need is an Android equivalent. On 11/17/20 4:39 PM, Mark Smith wrote: > And just a reminder that, under iOS, you?ll have to register to receive a ? > UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that > (PS only register once in your stack script ? I learned the hard way). It?s documented under > mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on > shutdownRequest? handlers were being ignored). > > Jacque, I believe this is what you are looking for to be notified when you go into the > background. I do some db cleanup at that time and it seems to work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Nov 18 15:07:43 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 18 Nov 2020 14:07:43 -0600 Subject: Big Sur bugs In-Reply-To: <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> Message-ID: On 11/18/20 12:06 PM, Paul Dupuis via use-livecode wrote: > Has any experienced any problems playing back media (.mp3 audio files or .mp4 video) under > macOS Big Sur? > > I just ran into an issue where none of my media is playing (at all) in a LC9.6.1 built > stand-alone under Big Sur. I haven't built an app in Big Sur yet, but an app built in Mojave plays audio when run in Big Sur. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Nov 18 15:15:45 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Nov 2020 20:15:45 +0000 Subject: PDF Manipulation was Design Question In-Reply-To: <54B38115-5129-4256-95B0-425ECC0567F9@iotecdigital.com> References: <20201118143414.2e7ad770@poesidon> <54B38115-5129-4256-95B0-425ECC0567F9@iotecdigital.com> Message-ID: <18BC6A47-B6B0-4803-8F06-BB8F80E52B1E@iotecdigital.com> If you are talking about form data, there IS a way to configure a PDF so that it reads a data file contains just form data and populates with the new data. This works with Mac and Windows, and I assume with Linux, but the caveat is that the PDF has to be configured to do this first. The format is not difficult to grok. I use it in my Forms Generator app extensively to fill blank forms with data from an SQL server. I have handlers for reading and creating these files (they end in .fdf). It get?s a little more difficult to understand when dealing with things like check boxes and radio buttons, and especially tables. For instance the two default values for a checkbox (unless you modify the checkbox object in the PDF) is false and yes. My application has an interface for importing a pre-existing fillable form (preconfigured to read the pdf file of course), creating relationships between the database columns and the form objects, and saving those relationships along with the binary data to recreate the pdf on demand, in the SQL database. Is that what you need? Bob S On Nov 18, 2020, at 12:02 PM, Bob Sneidar via use-livecode > wrote: At my work we have a, frankly stupid, situation that could be made so much easier if we had software do a simple function. All that is needed is that a PDF file that comes to me gets some of its text changed and the changes are according to a specific pattern. From hlowe at me.com Wed Nov 18 15:15:59 2020 From: hlowe at me.com (hlowe at me.com) Date: Wed, 18 Nov 2020 14:15:59 -0600 (CST) Subject: Suspend in iOS, or when is a mobile app running? Message-ID: <924915242.2655.1605730559690.JavaMail.administrator@n4.nabble.com> Test _____________________________________ Sent from http://runtime-revolution.278305.n4.nabble.com From merakosp at gmail.com Wed Nov 18 15:17:13 2020 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 18 Nov 2020 22:17:13 +0200 Subject: Big Sur bugs In-Reply-To: References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> Message-ID: @Paul I tested on a VM too, but on Parallels, not on VirtualBox. If Quicktime cannot open the video either, then it sounds like a VM issue. It would be great if anyone running Big Sur natively could give some input. Regards, Panos On Wed, Nov 18, 2020, 22:08 J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 11/18/20 12:06 PM, Paul Dupuis via use-livecode wrote: > > Has any experienced any problems playing back media (.mp3 audio files or > .mp4 video) under > > macOS Big Sur? > > > > I just ran into an issue where none of my media is playing (at all) in a > LC9.6.1 built > > stand-alone under Big Sur. > > I haven't built an app in Big Sur yet, but an app built in Mojave plays > audio when run in Big Sur. > > -- > 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 bobsneidar at iotecdigital.com Wed Nov 18 15:18:58 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Nov 2020 20:18:58 +0000 Subject: PDF Manipulation was Design Question In-Reply-To: <18BC6A47-B6B0-4803-8F06-BB8F80E52B1E@iotecdigital.com> References: <20201118143414.2e7ad770@poesidon> <54B38115-5129-4256-95B0-425ECC0567F9@iotecdigital.com> <18BC6A47-B6B0-4803-8F06-BB8F80E52B1E@iotecdigital.com> Message-ID: <728D962C-F440-4C12-A817-4100E1F94B9B@iotecdigital.com> That should have read preconfigured to read the FDF file (stupid spell correct!) Bob S On Nov 18, 2020, at 12:15 PM, Bob Sneidar via use-livecode > wrote: preconfigured to read the pdf file of course From paul at researchware.com Wed Nov 18 15:23:00 2020 From: paul at researchware.com (Paul Dupuis) Date: Wed, 18 Nov 2020 15:23:00 -0500 Subject: Big Sur bugs In-Reply-To: References: <534C1E66-29FA-4B63-B3F3-5BE219E1A9E2@gmail.com> <117e6b36-ba89-fdcb-7c3e-7f53281212c9@researchware.com> Message-ID: <146100d7-8fb4-07e6-b3e8-720b6288af04@researchware.com> Jacque, Thank you! My blood pressure is already going down to more normal levels. I will work on the assumtion it is a VM issue for now and set up a partitioned Big Sur install. On 11/18/2020 3:07 PM, J. Landman Gay via use-livecode wrote: > On 11/18/20 12:06 PM, Paul Dupuis via use-livecode wrote: >> Has any experienced any problems playing back media (.mp3 audio files >> or .mp4 video) under macOS Big Sur? >> >> I just ran into an issue where none of my media is playing (at all) >> in a LC9.6.1 built stand-alone under Big Sur. > > I haven't built an app in Big Sur yet, but an app built in Mojave > plays audio when run in Big Sur. > From devin_asay at byu.edu Wed Nov 18 16:17:07 2020 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 18 Nov 2020 21:17:07 +0000 Subject: Script colorization not working Message-ID: <94E3A5C2-94C2-4D0D-8462-ECD90E173A44@byu.edu> Hi all, One of my students is having a problem where the script colorization is not working completely. That is, the bold face style is applied for things like **on** mouseUp and **end** mouseUp, and commands are boldfaced. But nothing else is colorized. We have checked all of her script editor preferences. Colorization is set to default. There is nothing in the script editor menu that would affect this as far as I can tell. My student likes script colorization and finds it very helpful, so she?s anxious to get it fixed. Has anyone ever seen this? Any suggestions for how to fix it? She?s on Mac, probably Catalina, LiveCode Community 9.6.1. Devin Devin Asay Director Office of Digital Humanities Brigham Young University From merakosp at gmail.com Wed Nov 18 16:26:41 2020 From: merakosp at gmail.com (panagiotis merakos) Date: Wed, 18 Nov 2020 23:26:41 +0200 Subject: Script colorization not working In-Reply-To: <94E3A5C2-94C2-4D0D-8462-ECD90E173A44@byu.edu> References: <94E3A5C2-94C2-4D0D-8462-ECD90E173A44@byu.edu> Message-ID: Hello Devin, A rough guess is that she is on Big Sur. There is a known issue where colorization is lost if the default font (Source Code Pro) is used. If this is the case, she can try switching to a different font, and the issue will be fixed. Kind regards, Panos -- On Wed, 18 Nov 2020 at 23:18, Devin Asay via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all, > > One of my students is having a problem where the script colorization is > not working completely. That is, the bold face style is applied for things > like **on** mouseUp and **end** mouseUp, and commands are boldfaced. But > nothing else is colorized. > > We have checked all of her script editor preferences. Colorization is set > to default. > > There is nothing in the script editor menu that would affect this as far > as I can tell. > > My student likes script colorization and finds it very helpful, so she?s > anxious to get it fixed. > > Has anyone ever seen this? Any suggestions for how to fix it? > > She?s on Mac, probably Catalina, LiveCode Community 9.6.1. > > Devin > > > Devin Asay > Director > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From devin_asay at byu.edu Wed Nov 18 16:29:10 2020 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 18 Nov 2020 21:29:10 +0000 Subject: Script colorization not working In-Reply-To: References: <94E3A5C2-94C2-4D0D-8462-ECD90E173A44@byu.edu> Message-ID: <950D9994-3D0A-4C87-915A-8309D32595BC@byu.edu> Thanks, Panos! I believe I did notice that she is using Source Code Pro. I?ll have her look into that. Devin > On Nov 18, 2020, at 2:26 PM, panagiotis merakos via use-livecode wrote: > > Hello Devin, > > A rough guess is that she is on Big Sur. There is a known issue where > colorization is lost if the default font (Source Code Pro) is used. If this > is the case, she can try switching to a different font, and the issue will > be fixed. > > Kind regards, > Panos > -- > > On Wed, 18 Nov 2020 at 23:18, Devin Asay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> One of my students is having a problem where the script colorization is >> not working completely. That is, the bold face style is applied for things >> like **on** mouseUp and **end** mouseUp, and commands are boldfaced. But >> nothing else is colorized. >> >> We have checked all of her script editor preferences. Colorization is set >> to default. >> >> There is nothing in the script editor menu that would affect this as far >> as I can tell. >> >> My student likes script colorization and finds it very helpful, so she?s >> anxious to get it fixed. >> >> Has anyone ever seen this? Any suggestions for how to fix it? >> >> She?s on Mac, probably Catalina, LiveCode Community 9.6.1. >> >> Devin >> >> >> Devin Asay >> Director >> Office of Digital Humanities >> Brigham Young University >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 Director Office of Digital Humanities Brigham Young University From Bernd.Niggemann at uni-wh.de Wed Nov 18 18:00:28 2020 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Wed, 18 Nov 2020 23:00:28 +0000 Subject: Script colorization not working Message-ID: <6D5B5D63-F3DC-47CE-8C62-FB4D3754A22F@uni-wh.de> panagiotis merakos via use-livecode Wed, 18 Nov 2020 13:28:22 -0800 Hello Devin, A rough guess is that she is on Big Sur. There is a known issue where colorization is lost if the default font (Source Code Pro) is used. If this is the case, she can try switching to a different font, and the issue will be fixed. Kind regards, Panos It seems there is a new release of Source Code Pro that removes an experimental offending "SVG table with colored glyphs" from the font that causes the problem on Big Sur. https://github.com/adobe-fonts/source-code-pro/releases/tag/2.032R-ro%2F1.052R-it%2F1.012R-VAR The discussiion of the problem is here https://github.com/adobe-fonts/source-code-pro/issues/250 Kind regards Bernd From bvlahos at mac.com Wed Nov 18 22:20:13 2020 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 18 Nov 2020 19:20:13 -0800 Subject: Windows shell command with path Message-ID: I want to issue a command line prompt to a program in ?Program Files (x86)\AppFolder\MyApp?. When I go to the command line my path is already ?C:\Windows\System32> which is too deep. I have to cd .. twice to get to Program Files (x86)\etc. If I issue the shell command to ?C:\Program Files (x86)\etc. it can?t find the path. How can I issue the shell command to an application in the Program Files (x86)\AppFolder\MyApp?? Thanks, Bill From merakosp at gmail.com Thu Nov 19 02:55:52 2020 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 19 Nov 2020 09:55:52 +0200 Subject: Windows shell command with path In-Reply-To: References: Message-ID: Hello Bill, Is the "shellCommand" property of any help in this case? Kind regards, Panos -- On Thu, 19 Nov 2020 at 05:21, Bill Vlahos via use-livecode < use-livecode at lists.runrev.com> wrote: > I want to issue a command line prompt to a program in ?Program Files > (x86)\AppFolder\MyApp?. > > When I go to the command line my path is already ?C:\Windows\System32> > which is too deep. I have to cd .. twice to get to Program Files (x86)\etc. > > If I issue the shell command to ?C:\Program Files (x86)\etc. it can?t find > the path. > > How can I issue the shell command to an application in the Program Files > (x86)\AppFolder\MyApp?? > > Thanks, > Bill > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 19 09:19:43 2020 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 19 Nov 2020 14:19:43 +0000 Subject: Downloading LC9 In-Reply-To: <0D187424-51C0-42E6-BB63-1D28BFDFED99@m-r-d.de> References: <0D187424-51C0-42E6-BB63-1D28BFDFED99@m-r-d.de> Message-ID: Panos, *>>>>>>and also the script editor is not opening at all from any stack card > or object* > this sounds like a symptom of corrupted Preferences, please try deleting > your LC preferences in /Users/{username}/Library/Preferences/RunRev/* > > Panos I have deleted ALL LC/RunRev prefs and reinstalled LC so many times now and it still eludes me. I have to now try to 'edit script' twice before it shows up and breakpoints are being bypassed. Screen recording: https://www.dropbox.com/s/yzp4w5dcm1nento/Screen%20Recording%202020-11-19%20at%2013.53.21.mov?dl=0 At 1:34 it has me place a new breakpoint and the login btn, when pressed, goes straight to this handler so should get held there no problem, but it just ploughs on through the rest of the script. The same in 9.6.0 and 9.6.1 BTW, there are some broken scripts for the scripteditor itself that get caught if you do a Message Watcher. Has the following crash log: rocess: LiveCode-Indy [21126] > Path: /Applications/LiveCode Indy > 9.6.0.app/Contents/MacOS/LiveCode-Indy > Identifier: com.runrev.livecode > Version: 9.6.0.15516 (9.6.0.15516) > Code Type: X86-64 (Native) > Parent Process: ??? [1] > Responsible: LiveCode-Indy [21126] > User ID: 501 > Date/Time: 2020-11-19 14:08:03.363 +0000 > OS Version: Mac OS X 10.15.7 (19H2) > Report Version: 12 > Anonymous UUID: DB1D2510-2FE8-B930-09F0-D4A26445A63D > > Time Awake Since Boot: 470000 seconds > System Integrity Protection: enabled > Crashed Thread: 0 Dispatch queue: com.apple.main-thread > Exception Type: EXC_BAD_ACCESS (SIGSEGV) > Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008 > Exception Note: EXC_CORPSE_NOTIFY > VM Regions Near 0x8: > --> > __TEXT 000000010cc57000-000000010d40a000 [ 7884K] > r-x/rwx SM=COW /Applications/LiveCode Indy > 9.6.0.app/Contents/MacOS/LiveCode-Indy > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread ... > Thread 0 crashed with X86 Thread State (64-bit): > rax: 0x0000000000000000 rbx: 0x00007f960c15d070 rcx: > 0x00007f9646a4abc0 rdx: 0x0000000000000000 > rdi: 0x00007f9646a4abc0 rsi: 0x00007f960c15d080 rbp: > 0x00007ffee2fa2300 rsp: 0x00007ffee2fa2300 > r8: 0x0000000000006185 r9: 0x0000000000000000 r10: > 0x00007f9646a00000 r11: 0x00007f9646a51ac0 > r12: 0x0000000000000000 r13: 0x000000010db75ed0 r14: > 0x00007f9646a4abc0 r15: 0x00007f960c15d070 > rip: 0x000000010cda9290 rfl: 0x0000000000010206 cr2: 0x0000000000000008 > > Logical CPU: 0 > Error Code: 0x00000006 (no mapping for user data write) > Trap Number: 14 Screen recording of that: https://www.dropbox.com/s/borcnx9zu5ipdgg/Screen%20Recording%202020-11-19%20at%2014.13.06.mov?dl=0 That is driving me absolutely nuts. I'm going round in circles and getting nothing done. And as usual, clients breathing down my neck. Any clues? Sean Cole *Pi Digital* On Mon, 16 Nov 2020 at 22:17, matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > I am currently downloading LC 9.6.1 Business Mac with a download rate 3,7 > - 4,5Mibt/s. > > Or did you download an other version?. > > Regards, > Matthias > > > Matthias Rebbe > Software & Support > Externer Datenschutz > Bramkampsieke 13 > 32312 L?bbecke > Tel +49 5741 310000 > +49 160 5504462 > Fax: +49 5741 310002 > eMail: matthias at m-r-d.de > > BR5 Konverter - BR5 -> MP3 > > > Am 16.11.2020 um 22:58 schrieb Pi Digital via use-livecode < > use-livecode at lists.runrev.com >: > > > > Hi > > > > I?ve been getting weird errors in MacOS (Catalina 10.15.7) where LC is > saying there is a script error in a data grid of the startup window and > also the script editor is not opening at all from any stack card or object. > So I?ve decided to delete and reload LC. But the download is taking > FOREVER. I?ve tried different browsers, restarting macOS, downloading via > windows but I?m only getting 100kbps max. I did a speed test and have > 300Mbps download capability but LC remains stupid slow. > > > > Anyone else get this too? > > > > Sean Cole > > Pi Digital > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 19 10:19:25 2020 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 Nov 2020 16:19:25 +0100 Subject: filter Message-ID: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> Hi all, I am surely missing something here with filter. I have a field with some lines like: ... [500] text yadda yadda [100] ... And want to filter the field that only the lines with [...] remain in the field. So I thought ... filter fld 1 with "[*" ... would do the job, but that EMPTIES the field!? Obviously this [ interferes with some REGEX mechanism of filter? So what should I use now? Any hints very appreciated! Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From mark at livecode.com Thu Nov 19 10:38:52 2020 From: mark at livecode.com (Mark Waddingham) Date: Thu, 19 Nov 2020 15:38:52 +0000 Subject: filter In-Reply-To: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> Message-ID: <946f75c79a873f9f4f97397678bf477e@livecode.com> > So I thought > ... > filter fld 1 with "[*" > ... > would do the job, but that EMPTIES the field!? > Obviously this [ interferes with some REGEX mechanism of filter? > So what should I use now? I think: filter fld 1 with "[[]*" Should do the trick... Basically, you can use '[...]' to 'escape' the operators in the wildcard pattern (i.e. *, [ and ?). Hope this helps, Mark. P.S. Wildcard patterns are a lot simpler than general regexes, but 'filter' can do both "filter ... with regex pattern ..." interprets the pattern the same as matchText/replaceText. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From keith.clarke at me.com Thu Nov 19 10:38:32 2020 From: keith.clarke at me.com (Keith Clarke) Date: Thu, 19 Nov 2020 15:38:32 +0000 Subject: filter In-Reply-To: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> Message-ID: <0313A02A-46C2-42A2-B46A-F91B0F17C698@me.com> Hi Klaus, Maybe iterate the lines - untested... repeat for each line l in fld 1 if and( offset( ?[?, l) > 0 , offset(?]?, l) > 0 ) then put line l of fld 1 into tList end repeat put tList Best, Keith > On 19 Nov 2020, at 15:19, Klaus major-k via use-livecode wrote: > > Hi all, > > I am surely missing something here with filter. > > I have a field with some lines like: > ... > [500] > text yadda > yadda > [100] > ... > And want to filter the field that only the lines with [...] remain in the field. > > So I thought > ... > filter fld 1 with "[*" > ... > would do the job, but that EMPTIES the field!? > Obviously this [ interferes with some REGEX mechanism of filter? > So what should I use now? > > Any hints very appreciated! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > 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 Thu Nov 19 10:50:51 2020 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 Nov 2020 16:50:51 +0100 Subject: filter In-Reply-To: <946f75c79a873f9f4f97397678bf477e@livecode.com> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <946f75c79a873f9f4f97397678bf477e@livecode.com> Message-ID: <1F25F5B6-1EC3-4B1F-AA4B-9D65F2D677E2@major-k.de> Hi Mark, > Am 19.11.2020 um 16:38 schrieb Mark Waddingham via use-livecode : > >> So I thought >> ... >> filter fld 1 with "[*" >> ... >> would do the job, but that EMPTIES the field!? >> Obviously this [ interferes with some REGEX mechanism of filter? >> So what should I use now? > I think: > filter fld 1 with "[[]*" > Should do the trick... > Basically, you can use '[...]' to 'escape' the operators in the wildcard pattern (i.e. *, [ and ?). ah, get it! So I added this accordingly: ... filter fld 1 with "[[]*[]]" ... to be on the safe side and it works like a charme! > Hope this helps, Yes, it does, thank you very much! > Mark. > > P.S. Wildcard patterns are a lot simpler than general regexes, but 'filter' can do both "filter ... with regex pattern ..." interprets the pattern the same as matchText/replaceText. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Thu Nov 19 10:51:57 2020 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 Nov 2020 16:51:57 +0100 Subject: filter In-Reply-To: <0313A02A-46C2-42A2-B46A-F91B0F17C698@me.com> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <0313A02A-46C2-42A2-B46A-F91B0F17C698@me.com> Message-ID: Hi Keith, > Am 19.11.2020 um 16:38 schrieb Keith Clarke via use-livecode : > > Hi Klaus, > Maybe iterate the lines - untested... > repeat for each line l in fld 1 > if and( offset( ?[?, l) > 0 , offset(?]?, l) > 0 ) then put line l of fld 1 into tList > end repeat > put tList yes, sure, but "lazy moi" wanted to use FILTER and also understand why my first script did not work. :-) > Best, > Keith Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From keith.clarke at me.com Thu Nov 19 11:15:26 2020 From: keith.clarke at me.com (Keith Clarke) Date: Thu, 19 Nov 2020 16:15:26 +0000 Subject: filter In-Reply-To: References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <0313A02A-46C2-42A2-B46A-F91B0F17C698@me.com> Message-ID: <4B7C2737-0236-4453-A1CC-A55D1679399F@me.com> Ha, yes I understand that desire - and Mark?s one-character escape trick beats my hack to bypass the lair of the regex demon! :D Best, Keith > On 19 Nov 2020, at 15:51, Klaus major-k via use-livecode wrote: > > Hi Keith, > >> Am 19.11.2020 um 16:38 schrieb Keith Clarke via use-livecode : >> >> Hi Klaus, >> Maybe iterate the lines - untested... >> repeat for each line l in fld 1 >> if and( offset( ?[?, l) > 0 , offset(?]?, l) > 0 ) then put line l of fld 1 into tList >> end repeat >> put tList > > yes, sure, but "lazy moi" wanted to use FILTER and also understand why my first script did not work. :-) > >> Best, >> Keith > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > 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 sean at pidigital.co.uk Thu Nov 19 11:30:49 2020 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 19 Nov 2020 16:30:49 +0000 Subject: Downloading LC9 In-Reply-To: References: <0D187424-51C0-42E6-BB63-1D28BFDFED99@m-r-d.de> Message-ID: It just corrupted my stack too this time. Good job I have dropbox backups. Sean Cole *Pi Digital * On Thu, 19 Nov 2020 at 14:19, Sean Cole (Pi) wrote: > Panos, > > *>>>>>>and also the script editor is not opening at all from any stack card >> or object* >> this sounds like a symptom of corrupted Preferences, please try deleting >> your LC preferences in /Users/{username}/Library/Preferences/RunRev/* >> >> Panos > > > I have deleted ALL LC/RunRev prefs and reinstalled LC so many times now > and it still eludes me. I have to now try to 'edit script' twice before it > shows up and breakpoints are being bypassed. > > Screen recording: > > https://www.dropbox.com/s/yzp4w5dcm1nento/Screen%20Recording%202020-11-19%20at%2013.53.21.mov?dl=0 > > At 1:34 it has me place a new breakpoint and the login btn, when pressed, > goes straight to this handler so should get held there no problem, but it > just ploughs on through the rest of the script. > The same in 9.6.0 and 9.6.1 > BTW, there are some broken scripts for the scripteditor itself that get > caught if you do a Message Watcher. Has the following crash log: > > rocess: LiveCode-Indy [21126] >> Path: /Applications/LiveCode Indy >> 9.6.0.app/Contents/MacOS/LiveCode-Indy >> Identifier: com.runrev.livecode >> Version: 9.6.0.15516 (9.6.0.15516) >> Code Type: X86-64 (Native) >> Parent Process: ??? [1] >> Responsible: LiveCode-Indy [21126] >> User ID: 501 >> Date/Time: 2020-11-19 14:08:03.363 +0000 >> OS Version: Mac OS X 10.15.7 (19H2) >> Report Version: 12 >> Anonymous UUID: DB1D2510-2FE8-B930-09F0-D4A26445A63D >> >> Time Awake Since Boot: 470000 seconds >> System Integrity Protection: enabled >> Crashed Thread: 0 Dispatch queue: com.apple.main-thread >> Exception Type: EXC_BAD_ACCESS (SIGSEGV) >> Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008 >> Exception Note: EXC_CORPSE_NOTIFY >> VM Regions Near 0x8: >> --> >> __TEXT 000000010cc57000-000000010d40a000 [ 7884K] >> r-x/rwx SM=COW /Applications/LiveCode Indy >> 9.6.0.app/Contents/MacOS/LiveCode-Indy >> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread > > ... > >> Thread 0 crashed with X86 Thread State (64-bit): >> rax: 0x0000000000000000 rbx: 0x00007f960c15d070 rcx: >> 0x00007f9646a4abc0 rdx: 0x0000000000000000 >> rdi: 0x00007f9646a4abc0 rsi: 0x00007f960c15d080 rbp: >> 0x00007ffee2fa2300 rsp: 0x00007ffee2fa2300 >> r8: 0x0000000000006185 r9: 0x0000000000000000 r10: >> 0x00007f9646a00000 r11: 0x00007f9646a51ac0 >> r12: 0x0000000000000000 r13: 0x000000010db75ed0 r14: >> 0x00007f9646a4abc0 r15: 0x00007f960c15d070 >> rip: 0x000000010cda9290 rfl: 0x0000000000010206 cr2: >> 0x0000000000000008 >> >> Logical CPU: 0 >> Error Code: 0x00000006 (no mapping for user data write) >> Trap Number: 14 > > Screen recording of that: > > https://www.dropbox.com/s/borcnx9zu5ipdgg/Screen%20Recording%202020-11-19%20at%2014.13.06.mov?dl=0 > > That is driving me absolutely nuts. I'm going round in circles and getting > nothing done. And as usual, clients breathing down my neck. > > Any clues? > > Sean Cole > *Pi Digital* > > On Mon, 16 Nov 2020 at 22:17, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I am currently downloading LC 9.6.1 Business Mac with a download rate 3,7 >> - 4,5Mibt/s. >> >> Or did you download an other version?. >> >> Regards, >> Matthias >> >> >> Matthias Rebbe >> Software & Support >> Externer Datenschutz >> Bramkampsieke 13 >> 32312 L?bbecke >> Tel +49 5741 310000 >> +49 160 5504462 >> Fax: +49 5741 310002 >> eMail: matthias at m-r-d.de >> >> BR5 Konverter - BR5 -> MP3 >> >> > Am 16.11.2020 um 22:58 schrieb Pi Digital via use-livecode < >> use-livecode at lists.runrev.com >: >> > >> > Hi >> > >> > I?ve been getting weird errors in MacOS (Catalina 10.15.7) where LC is >> saying there is a script error in a data grid of the startup window and >> also the script editor is not opening at all from any stack card or object. >> So I?ve decided to delete and reload LC. But the download is taking >> FOREVER. I?ve tried different browsers, restarting macOS, downloading via >> windows but I?m only getting 100kbps max. I did a speed test and have >> 300Mbps download capability but LC remains stupid slow. >> > >> > Anyone else get this too? >> > >> > Sean Cole >> > Pi Digital >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Nov 19 11:49:57 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 19 Nov 2020 16:49:57 +0000 Subject: filter In-Reply-To: <4B7C2737-0236-4453-A1CC-A55D1679399F@me.com> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <0313A02A-46C2-42A2-B46A-F91B0F17C698@me.com> <4B7C2737-0236-4453-A1CC-A55D1679399F@me.com> Message-ID: No one escapes the lair of the Regex Demon. Except for maybe Riddick. Bob S On Nov 19, 2020, at 8:15 AM, Keith Clarke via use-livecode > wrote: Ha, yes I understand that desire - and Mark?s one-character escape trick beats my hack to bypass the lair of the regex demon! :D Best, Keith From ahsoftware at sonic.net Thu Nov 19 12:07:46 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 19 Nov 2020 09:07:46 -0800 Subject: filter In-Reply-To: <946f75c79a873f9f4f97397678bf477e@livecode.com> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <946f75c79a873f9f4f97397678bf477e@livecode.com> Message-ID: On 11/19/20 7:38 AM, Mark Waddingham via use-livecode wrote: > I think: > > ? filter fld 1 with "[[]*" > > Should do the trick... As an alternative, filter fld 1 with regex pattern "^\[+" also does the trick. -- Mark Wieder ahsoftware at gmail.com From klaus at major-k.de Thu Nov 19 12:09:58 2020 From: klaus at major-k.de (Klaus major-k) Date: Thu, 19 Nov 2020 18:09:58 +0100 Subject: filter In-Reply-To: References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <946f75c79a873f9f4f97397678bf477e@livecode.com> Message-ID: <53DABE5C-5D54-4283-98F7-8FFD34ACC6FA@major-k.de> Hi Mark, > Am 19.11.2020 um 18:07 schrieb Mark Wieder via use-livecode : > On 11/19/20 7:38 AM, Mark Waddingham via use-livecode wrote: >> I think: >> filter fld 1 with "[[]*" >> Should do the trick... > As an alternative, > filter fld 1 with regex pattern "^\[+" > also does the trick. thanks, but REGEX is still a TAD over my head. ;-) > -- > Mark Wieder > ahsoftware at gmail.com Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From keith.clarke at me.com Thu Nov 19 12:17:43 2020 From: keith.clarke at me.com (Keith Clarke) Date: Thu, 19 Nov 2020 17:17:43 +0000 Subject: filter In-Reply-To: References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <0313A02A-46C2-42A2-B46A-F91B0F17C698@me.com> <4B7C2737-0236-4453-A1CC-A55D1679399F@me.com> Message-ID: The chronicles of regex - a potential blockbuster there, Bob! :-) Best, Keith > On 19 Nov 2020, at 16:49, Bob Sneidar via use-livecode wrote: > > No one escapes the lair of the Regex Demon. Except for maybe Riddick. > > Bob S > > > On Nov 19, 2020, at 8:15 AM, Keith Clarke via use-livecode > wrote: > > Ha, yes I understand that desire - and Mark?s one-character escape trick beats my hack to bypass the lair of the regex demon! :D > Best, > 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 devin_asay at byu.edu Thu Nov 19 14:00:02 2020 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 19 Nov 2020 19:00:02 +0000 Subject: Script colorization not working In-Reply-To: References: <94E3A5C2-94C2-4D0D-8462-ECD90E173A44@byu.edu> Message-ID: Thanks Panos, and Bernd also for the tip on the new version of Source Code Pro. The student was indeed using Source Code Pro, and when she changed to a different font for the script editor, it fixed the problem. Devin > On Nov 18, 2020, at 2:26 PM, panagiotis merakos via use-livecode wrote: > > Hello Devin, > > A rough guess is that she is on Big Sur. There is a known issue where > colorization is lost if the default font (Source Code Pro) is used. If this > is the case, she can try switching to a different font, and the issue will > be fixed. > > Kind regards, > Panos > -- > > On Wed, 18 Nov 2020 at 23:18, Devin Asay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all, >> >> One of my students is having a problem where the script colorization is >> not working completely. That is, the bold face style is applied for things >> like **on** mouseUp and **end** mouseUp, and commands are boldfaced. But >> nothing else is colorized. >> >> We have checked all of her script editor preferences. Colorization is set >> to default. >> >> There is nothing in the script editor menu that would affect this as far >> as I can tell. >> >> My student likes script colorization and finds it very helpful, so she?s >> anxious to get it fixed. >> >> Has anyone ever seen this? Any suggestions for how to fix it? >> >> She?s on Mac, probably Catalina, LiveCode Community 9.6.1. >> >> Devin >> >> >> Devin Asay >> Director >> Office of Digital Humanities >> Brigham Young University >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode 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 Director Office of Digital Humanities Brigham Young University From bobsneidar at iotecdigital.com Thu Nov 19 14:03:26 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 19 Nov 2020 19:03:26 +0000 Subject: filter In-Reply-To: References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <0313A02A-46C2-42A2-B46A-F91B0F17C698@me.com> <4B7C2737-0236-4453-A1CC-A55D1679399F@me.com> Message-ID: I don?t think I could watch! Oh the horror!!!!! Bob S > On Nov 19, 2020, at 9:17 AM, Keith Clarke via use-livecode wrote: > > The chronicles of regex - a potential blockbuster there, Bob! :-) > Best, > Keith > >> On 19 Nov 2020, at 16:49, Bob Sneidar via use-livecode wrote: >> >> No one escapes the lair of the Regex Demon. Except for maybe Riddick. >> >> Bob S >> >> >> On Nov 19, 2020, at 8:15 AM, Keith Clarke via use-livecode > wrote: >> >> Ha, yes I understand that desire - and Mark?s one-character escape trick beats my hack to bypass the lair of the regex demon! :D >> Best, >> Keith From davros at bellaliant.net Thu Nov 19 14:28:13 2020 From: davros at bellaliant.net (John McKenzie) Date: Thu, 19 Nov 2020 15:28:13 -0400 Subject: PDF Manipulation was Design Question In-Reply-To: <54B38115-5129-4256-95B0-425ECC0567F9@iotecdigital.com> References: <20201118143414.2e7ad770@poesidon> <54B38115-5129-4256-95B0-425ECC0567F9@iotecdigital.com> Message-ID: <20201119152813.54d311eb@poesidon> Bob S: Thanks for replying to my post. It seems the situation is as I thought although making a GUI with Livecode to activate an external library is easier than using other tools to make a GUI for an external library. When I started this conversation I assumed I would something like that. No, it is not form data we are dealing with. A static, non-secure, PDF file is sent to us. We print it, scan it, label the flights with the needed codes by hand, scan the printed copy with the labels and email the scan to someone. Hoping to improve the situation to at least the point where they send the PDF file and then we run a programme that creates a new PDF which is sent back to the originator. I have successfully used the FDF data format for something unrelated but at work in the past. It would be great if it were the case here, but alas, it is not. From dochawk at gmail.com Thu Nov 19 15:24:52 2020 From: dochawk at gmail.com (doc hawk) Date: Thu, 19 Nov 2020 12:24:52 -0800 Subject: PDF Manipulation was Design Question In-Reply-To: <20201119152813.54d311eb@poesidon> References: <20201118143414.2e7ad770@poesidon> <54B38115-5129-4256-95B0-425ECC0567F9@iotecdigital.com> <20201119152813.54d311eb@poesidon> Message-ID: <4F82F00A-CDEF-48C2-BA7C-53CF7B48CD8A@gmail.com> *IF* the pdf files are simple enough, there are some substitutions that you can ?just make?. A string literal can be replaced with a string of the same length. It could also be replaced with a shorter string and space-padded for the extra space. You want to put a string that is three characters longer, as I understand. *IF* there are three characters of white space or comment before the linefeed preceding the next ?real? data, you could also substitute. Encryption would obviously stop this. Also, it?s common in some autogenerated forms to find things like ?T e x t? instead of ?Text?, or even spacing information between characters. When my ambition comes back, I?m working on livecode to ?layer? pdfs for form filling. I just have to get the hang of the spacing. It seems that a pdf can be included as an object in another pdf. If the pdf widget could actually, well, output a pdf, rather than a screen-density image of it, my life would be *so* much easier and I could sell this thing I?ve put together over a decade tomorrow . . . Or look at the source code of PyPDF2 (it?s BSD/Free licensing, not GPL, so you don?t get contaminated), which has all kinds of pdf manipulation stuff (I?ll leave it to others to comment on the effects on your health of reading that much python . . . From craig at starfirelighting.com Thu Nov 19 17:29:24 2020 From: craig at starfirelighting.com (Craig newman) Date: Thu, 19 Nov 2020 17:29:24 -0500 Subject: filter In-Reply-To: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> Message-ID: <015001d6bec3$6f332010$4d996030$@starfirelighting.com> Klaus. I use "filter" here and there, mostly with regex or wildCards. But nothing works for me either,: Filter yourText with "[" Filter yourText where each contains "[" Not sure what is going on. Where is Thieery? Craig -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Klaus major-k via use-livecode Sent: Thursday, November 19, 2020 10:19 AM To: How to use LiveCode Cc: Klaus major-k Subject: filter Hi all, I am surely missing something here with filter. I have a field with some lines like: ... [500] text yadda yadda [100] ... And want to filter the field that only the lines with [...] remain in the field. So I thought ... filter fld 1 with "[*" ... would do the job, but that EMPTIES the field!? Obviously this [ interferes with some REGEX mechanism of filter? So what should I use now? Any hints very appreciated! Best Klaus -- Klaus Major https://www.major-k.de 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 ahsoftware at sonic.net Thu Nov 19 18:55:25 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 19 Nov 2020 15:55:25 -0800 Subject: filter In-Reply-To: <53DABE5C-5D54-4283-98F7-8FFD34ACC6FA@major-k.de> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <946f75c79a873f9f4f97397678bf477e@livecode.com> <53DABE5C-5D54-4283-98F7-8FFD34ACC6FA@major-k.de> Message-ID: <577ff1d7-93a2-4aac-aaf6-532bd31cf41a@sonic.net> On 11/19/20 9:09 AM, Klaus major-k via use-livecode wrote: > Hi Mark, > >> Am 19.11.2020 um 18:07 schrieb Mark Wieder via use-livecode : >> On 11/19/20 7:38 AM, Mark Waddingham via use-livecode wrote: >>> I think: >>> filter fld 1 with "[[]*" >>> Should do the trick... >> As an alternative, >> filter fld 1 with regex pattern "^\[+" >> also does the trick. > > thanks, but REGEX is still a TAD over my head. ;-) Not really... this is at least as simple as what you just coded: ^ = start at beginning of line \[ = a literal "[" character ("\" escapes whatever comes next) + = at least one of those characters -- Mark Wieder ahsoftware at gmail.com From waprothero at gmail.com Thu Nov 19 19:11:30 2020 From: waprothero at gmail.com (William Prothero) Date: Thu, 19 Nov 2020 16:11:30 -0800 Subject: Design Question In-Reply-To: <5FFF9D14-BB6A-4C54-86D4-8B76FD3D5F28@netrin.com> References: <5FFF9D14-BB6A-4C54-86D4-8B76FD3D5F28@netrin.com> Message-ID: <961882E9-76E1-4D75-B492-7D6374F93D9B@gmail.com> Jim: What I?m thinking is that my app would allow students to write their text and create the images. I would export the ?composition? in pdf format. That would be imported into the LMS or sent to the teacher external to my app. The teacher could then comment on the writing either in the LMS or an email to the student. One thing I'm careful of is making it difficult for a student to copy work from the web, so I try program to forbid paste operations. All of the figures also have the student?s login name on them. I thank everyone who?s commented on this and in the process I?ve gotten some clarity on the best path forward. Best, Bill William A. Prothero https://earthlearningsolutions.org > On Nov 17, 2020, at 12:45 PM, Jim Lambert via use-livecode wrote: > > >> The application's core is access to Earth data (that scientists used to develop the theory of plate tectonics) and capturing and annotating plots that can be incorporated into student writing. > > If the 'student writing' is created in some other program then wouldn't it be sufficient to allow a student to copy text, data and plots from your program and paste them into whatever writing program the student uses? > > If the 'student writing' is created in your program could their work be exported as PDF that is then imported into the 'learning management system" and/or shared with the teacher? > > Jim Lambert > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri Nov 20 03:44:15 2020 From: klaus at major-k.de (Klaus major-k) Date: Fri, 20 Nov 2020 09:44:15 +0100 Subject: filter In-Reply-To: <577ff1d7-93a2-4aac-aaf6-532bd31cf41a@sonic.net> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <946f75c79a873f9f4f97397678bf477e@livecode.com> <53DABE5C-5D54-4283-98F7-8FFD34ACC6FA@major-k.de> <577ff1d7-93a2-4aac-aaf6-532bd31cf41a@sonic.net> Message-ID: <54F7273B-C7A7-46BD-B280-5D4B0A02FD2D@major-k.de> Hi Mark, > Am 20.11.2020 um 00:55 schrieb Mark Wieder via use-livecode : > On 11/19/20 9:09 AM, Klaus major-k via use-livecode wrote: >> Hi Mark, >>> Am 19.11.2020 um 18:07 schrieb Mark Wieder via use-livecode : >>> On 11/19/20 7:38 AM, Mark Waddingham via use-livecode wrote: >>>> I think: >>>> filter fld 1 with "[[]*" >>>> Should do the trick... >>> As an alternative, >>> filter fld 1 with regex pattern "^\[+" >>> also does the trick. >> thanks, but REGEX is still a TAD over my head. ;-) > Not really... how do you know? 8-) > this is at least as simple as what you just coded: > > ^ = start at beginning of line > \[ = a literal "[" character ("\" escapes whatever comes next) > + = at least one of those characters Thank you, now I am ready to challenge Thierry! :-D > -- > Mark Wieder > ahsoftware at gmail.com Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From dvglasgow at gmail.com Fri Nov 20 06:27:18 2020 From: dvglasgow at gmail.com (David V Glasgow) Date: Fri, 20 Nov 2020 11:27:18 +0000 Subject: filter In-Reply-To: <54F7273B-C7A7-46BD-B280-5D4B0A02FD2D@major-k.de> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <946f75c79a873f9f4f97397678bf477e@livecode.com> <53DABE5C-5D54-4283-98F7-8FFD34ACC6FA@major-k.de> <577ff1d7-93a2-4aac-aaf6-532bd31cf41a@sonic.net> <54F7273B-C7A7-46BD-B280-5D4B0A02FD2D@major-k.de> Message-ID: <0B157AE6-68A3-498B-B35C-E394159506EE@gmail.com> Apologies for barging in, but I am confused by regex generally and in this specific example by the function of the terminal ?+? If you are only finding one character, why do you need to specify 'at least one' of one char? Cheers David G > On 20 Nov 2020, at 8:44 am, Klaus major-k via use-livecode wrote: > >> ^ = start at beginning of line >> \[ = a literal "[" character ("\" escapes whatever comes next) >> + = at least one of those characters From waprothero at gmail.com Fri Nov 20 10:17:21 2020 From: waprothero at gmail.com (William Prothero) Date: Fri, 20 Nov 2020 07:17:21 -0800 Subject: Design Question In-Reply-To: <389E9785-AFD6-4E54-916B-CAAA81C02264@elementarysoftware.com> References: <2C05C05A-0B38-4C95-A424-59B32582D7D1@gmail.com> <389E9785-AFD6-4E54-916B-CAAA81C02264@elementarysoftware.com> Message-ID: Scott: You are absolutely correct. I have noticed, though, that busy profs prefer to use apps they are already familiar with and adding an app to look at student work for a single assignment would most likely put them off. So, I?m wanting to get student work in a format that can be either viewed with common apps (e.g. word, excel, etc) but possibly with a custom livecode app as an option. I?m still working to finish the student part of the app itself, but this design rumination is very helpful. Best, Bill William A. Prothero https://earthlearningsolutions.org > On Nov 17, 2020, at 4:42 PM, scott--- via use-livecode wrote: > > For getting it FROM the student, why not just use a livecode stack file. It could contain everything and be highly editable. For returning it TO the student you could use a pdf. > -- > 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 Nov 17, 2020, at 11:18 AM, William Prothero via use-livecode wrote: >> >> Richard, >> I kinda like the pdf idea. Seems it would give me a way to encapsulate and format the text and images and perhaps a fairly defined pdf format would make it straightforward to edit it using Livecode as well. >> Best, >> Bill >> >> William A. Prothero >> https://earthlearningsolutions.org >> >>> On Nov 17, 2020, at 10:10 AM, Richard Gaskin via use-livecode wrote: >>> >>> William Prothero wrote: >>> >>>> It seems the effort to make this app work with learning management >>>> systems would be huge, something I?m definitely not up for. >>> >>> It may not be. I've made standards-compliant courseware in the past (a while ago; the data format was XML ), and it wasn't as bad as I'd thought. With so much work on the modern standards I'd imagine they're far better documented and based on more common conventions than they were in yesteryear. >>> >>> But maybe the key question is: are your customers asking for LMS interoperability specifically? >>> >>> In some segments it can make the difference between being a contender and not being considered at all. >>> >>> But I've seen many other segments that seem to have abandoned hope of a standards-driven world of interoperable courseware, quite happy to kludge together whatever they need to eventually arrive at a means of tracking assessment. >>> >>> If no one's asking you for LMS compatibility, there would seem to need to bother. >>> >>> If PDF suffices, it's certainly easy to do in LC. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Fri Nov 20 10:23:00 2020 From: livfoss at mac.com (Graham Samuel) Date: Fri, 20 Nov 2020 16:23:00 +0100 Subject: iOS notification app goes into background doesn't seem to work Message-ID: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? Graham > On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode wrote: > > > > On iOS use mergNotify as below. Works well for me. > > on openStack > mergNotify "UIApplicationWillResignActiveNotification" > mergNotify "UIApplicationDidBecomeActiveNotification" > end openStack > > on UIApplicationWillResignActiveNotification pUserInfo > // Your code before the app goes to background > -- your code here to handle going to the background > end UIApplicationWillResignActiveNotification > > on UIApplicationDidBecomeActiveNotification pUserInfo > // Your code after the app comes back to foreground > -- your code here to handle your app becoming active > end UIApplicationDidBecomeActiveNotification > > Henry > On 17 Nov 2020, at 23:39, Mark Smith via use-livecode wrote: > > And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). > > Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. > > Mark From marksmithhfx at gmail.com Fri Nov 20 11:21:41 2020 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 20 Nov 2020 16:21:41 +0000 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> Message-ID: <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") for example? 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script > On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode wrote: > > Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. > > I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. > > Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? > > Graham > > >> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode wrote: >> >> >> >> On iOS use mergNotify as below. Works well for me. >> >> on openStack >> mergNotify "UIApplicationWillResignActiveNotification" >> mergNotify "UIApplicationDidBecomeActiveNotification" >> end openStack >> >> on UIApplicationWillResignActiveNotification pUserInfo >> // Your code before the app goes to background >> -- your code here to handle going to the background >> end UIApplicationWillResignActiveNotification >> >> on UIApplicationDidBecomeActiveNotification pUserInfo >> // Your code after the app comes back to foreground >> -- your code here to handle your app becoming active >> end UIApplicationDidBecomeActiveNotification >> >> Henry > >> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode wrote: >> >> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >> >> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >> >> 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 ahsoftware at sonic.net Fri Nov 20 12:55:27 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 20 Nov 2020 09:55:27 -0800 Subject: filter In-Reply-To: <0B157AE6-68A3-498B-B35C-E394159506EE@gmail.com> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <946f75c79a873f9f4f97397678bf477e@livecode.com> <53DABE5C-5D54-4283-98F7-8FFD34ACC6FA@major-k.de> <577ff1d7-93a2-4aac-aaf6-532bd31cf41a@sonic.net> <54F7273B-C7A7-46BD-B280-5D4B0A02FD2D@major-k.de> <0B157AE6-68A3-498B-B35C-E394159506EE@gmail.com> Message-ID: <8a07df35-dcb8-34a4-95f5-300713006512@sonic.net> On 11/20/20 3:27 AM, David V Glasgow via use-livecode wrote: > Apologies for barging in, but I am confused by regex generally and in this specific example by the function of the terminal ?+? If you are only finding one character, why do you need to specify 'at least one' of one char? Ha! Yeah, I actually mistyped that (moi?). "^\[" is all that's necessary for the filter command. ...but Klaus' form of "[[]*[]]" is actually better if the field has [500] and then text -- Mark Wieder ahsoftware at gmail.com From klaus at major-k.de Fri Nov 20 13:16:44 2020 From: klaus at major-k.de (Klaus major-k) Date: Fri, 20 Nov 2020 19:16:44 +0100 Subject: reading QR-code on Mac from an imported image Message-ID: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> Hi all, ist is possible to read the QR-code from an imported image on the Mac? If yes, how? The dictionary did not really enlighten me... Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From bobsneidar at iotecdigital.com Fri Nov 20 15:07:16 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 20 Nov 2020 20:07:16 +0000 Subject: filter In-Reply-To: <8a07df35-dcb8-34a4-95f5-300713006512@sonic.net> References: <83295AF8-2973-4225-BDB6-DAC3EE9555FD@major-k.de> <946f75c79a873f9f4f97397678bf477e@livecode.com> <53DABE5C-5D54-4283-98F7-8FFD34ACC6FA@major-k.de> <577ff1d7-93a2-4aac-aaf6-532bd31cf41a@sonic.net> <54F7273B-C7A7-46BD-B280-5D4B0A02FD2D@major-k.de> <0B157AE6-68A3-498B-B35C-E394159506EE@gmail.com> <8a07df35-dcb8-34a4-95f5-300713006512@sonic.net> Message-ID: <4756911D-998C-4375-8C56-3147FC59DDC9@iotecdigital.com> Yeah, not confusing at all. ;-P Bob S On Nov 20, 2020, at 9:55 AM, Mark Wieder via use-livecode > wrote: On 11/20/20 3:27 AM, David V Glasgow via use-livecode wrote: Apologies for barging in, but I am confused by regex generally and in this specific example by the function of the terminal ?+? If you are only finding one character, why do you need to specify 'at least one' of one char? Ha! Yeah, I actually mistyped that (moi?). "^\[" is all that's necessary for the filter command. ...but Klaus' form of "[[]*[]]" is actually better if the field has [500] and then text -- Mark Wieder ahsoftware at gmail.com From livfoss at mac.com Fri Nov 20 16:48:12 2020 From: livfoss at mac.com (Graham Samuel) Date: Fri, 20 Nov 2020 22:48:12 +0100 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> Message-ID: Thanks Mark I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn?t. It?s likely that I made a silly mistake but I can?t see what it is. I put other stuff in the log, so it?s not just a case of the text being overwritten. Obviously the app does go into the background, since it is detected coming back to the foreground. This test was on the Xcode simulator, but I got essentially the same results on a real iPhone. Strange. Graham > On 20 Nov 2020, at 17:21, Mark Smith wrote: > > Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. > put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") > > for example? > > 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script > 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script > > > > >> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode > wrote: >> >> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. >> >> I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. >> >> Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? >> >> Graham >> >> >>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode > wrote: >>> >>> >>> >>> On iOS use mergNotify as below. Works well for me. >>> >>> on openStack >>> mergNotify "UIApplicationWillResignActiveNotification" >>> mergNotify "UIApplicationDidBecomeActiveNotification" >>> end openStack >>> >>> on UIApplicationWillResignActiveNotification pUserInfo >>> // Your code before the app goes to background >>> -- your code here to handle going to the background >>> end UIApplicationWillResignActiveNotification >>> >>> on UIApplicationDidBecomeActiveNotification pUserInfo >>> // Your code after the app comes back to foreground >>> -- your code here to handle your app becoming active >>> end UIApplicationDidBecomeActiveNotification >>> >>> Henry >> >>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode > wrote: >>> >>> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >>> >>> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >>> >>> 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 bvlahos at mac.com Fri Nov 20 19:59:23 2020 From: bvlahos at mac.com (Bill Vlahos) Date: Fri, 20 Nov 2020 16:59:23 -0800 Subject: Mac inclusions. Is there one for file changed? Message-ID: <375E29F4-4DBE-4B9B-817F-1EE552FE4D10@mac.com> Where can I find documentation on the inclusions? I?m looking to see if there is an option to mark the traffic light icon that a file hasn?t needs to be saved? I have a feeling it exists but I don?t see how to find out. Thank you, Bill Vlahos From klaus at major-k.de Sat Nov 21 05:57:12 2020 From: klaus at major-k.de (Klaus major-k) Date: Sat, 21 Nov 2020 11:57:12 +0100 Subject: Google and OpenSource apps Message-ID: Hi friends, quick question: Does Google allow apps that have been created with the Community Version of LC? Apple does definitively not, as I know. Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Sat Nov 21 05:58:27 2020 From: klaus at major-k.de (Klaus major-k) Date: Sat, 21 Nov 2020 11:58:27 +0100 Subject: Google and OpenSource apps In-Reply-To: References: Message-ID: > Am 21.11.2020 um 11:57 schrieb Klaus major-k via use-livecode : > > Hi friends, > > quick question: > Does Google allow apps that have been created with the Community Version of LC? of course I mean mobile apps for Android. > Apple does definitively not, as I know. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > klaus at major-k.de -- Klaus Major https://www.major-k.de klaus at major-k.de From brahma at hindu.org Sat Nov 21 17:12:42 2020 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 21 Nov 2020 22:12:42 +0000 Subject: On Browser Widget/Google, the "smart" Font Sizer to Go Center, on Android phone? Message-ID: There is a small font resizer, it goes up or down _____ _____ | - | | + | Is it possible to go center? Its lies to the right of margin of the browser widget, and we have the page ?Go Right? which conflicts with the font resizer. BR From brahma at hindu.org Sat Nov 21 17:37:09 2020 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 21 Nov 2020 22:37:09 +0000 Subject: On Browser Widget/Google, the "smart" Font Sizer to Go Center, on Android phone? In-Reply-To: References: Message-ID: Well com.livecode.widget.browser but I would not know where to begin? There is a small font resizer, it goes up or down _____ _____ | - | | + | Is it possible to go center? Its lies to the right of margin of the browser widget, and we have the page ?Go Right? which conflicts with the font resizer. BR From marksmithhfx at gmail.com Sat Nov 21 18:33:12 2020 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 21 Nov 2020 23:33:12 +0000 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> Message-ID: Graham, I think there might be a problem. I just re-enabled this code in one of my applications and the only thing I am seeing is the WillResignActiveNotification message, and not the DidBecomeActiveNotification message. Odd also because it is the exact opposite of what you are seeing, so we are both seeing half of the story, just not the same half :) I?ll keep it enabled and see if I can spot any patterns. Mark > On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode wrote: > > Thanks Mark > > I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn?t. It?s likely that I made a silly mistake but I can?t see what it is. I put other stuff in the log, so it?s not just a case of the text being overwritten. Obviously the app does go into the background, since it is detected coming back to the foreground. This test was on the Xcode simulator, but I got essentially the same results on a real iPhone. > > Strange. > > Graham > > >> On 20 Nov 2020, at 17:21, Mark Smith wrote: >> >> Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. >> put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") >> >> for example? >> >> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script >> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script >> >> >> >> >>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode > wrote: >>> >>> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. >>> >>> I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. >>> >>> Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? >>> >>> Graham >>> >>> >>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode > wrote: >>>> >>>> >>>> >>>> On iOS use mergNotify as below. Works well for me. >>>> >>>> on openStack >>>> mergNotify "UIApplicationWillResignActiveNotification" >>>> mergNotify "UIApplicationDidBecomeActiveNotification" >>>> end openStack >>>> >>>> on UIApplicationWillResignActiveNotification pUserInfo >>>> // Your code before the app goes to background >>>> -- your code here to handle going to the background >>>> end UIApplicationWillResignActiveNotification >>>> >>>> on UIApplicationDidBecomeActiveNotification pUserInfo >>>> // Your code after the app comes back to foreground >>>> -- your code here to handle your app becoming active >>>> end UIApplicationDidBecomeActiveNotification >>>> >>>> Henry >>> >>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode > wrote: >>>> >>>> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >>>> >>>> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >>>> >>>> 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 marksmithhfx at gmail.com Sun Nov 22 07:30:03 2020 From: marksmithhfx at gmail.com (Mark Smith) Date: Sun, 22 Nov 2020 12:30:03 +0000 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> Message-ID: <5F79402F-140F-41B4-B6A0-F22CBEB83101@gmail.com> Hi Graham, So, apparently not 100% accurate but here are the results of some late hour testing yesterday (I was also interested in evaluating something I needed to occur around the time the date changed, hence the late hour testing.). But as you can see, I had 3 ResignActiveNotifications before the first DidBecomeActive occurred. 2:33:58 PM UIApplicationWillResignActiveNotification detected in SS 11:22:40 PM UIApplicationWillResignActiveNotification detected in SS 11:25:50 PM UIApplicationWillResignActiveNotification detected in SS 11:33:19 PM UIApplicationDidBecomeActiveNotification detected in SS 11:33:26 PM UIApplicationWillResignActiveNotification detected in SS 1:21:48 AM UIApplicationDidBecomeActiveNotification detected in SS 1:29:38 AM UIApplicationWillResignActiveNotification detected in SS > On Nov 21, 2020, at 11:33 PM, Mark Smith wrote: > > Graham, I think there might be a problem. I just re-enabled this code in one of my applications and the only thing I am seeing is the WillResignActiveNotification message, and not the DidBecomeActiveNotification message. Odd also because it is the exact opposite of what you are seeing, so we are both seeing half of the story, just not the same half :) I?ll keep it enabled and see if I can spot any patterns. > > Mark > > >> On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode wrote: >> >> Thanks Mark >> >> I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn?t. It?s likely that I made a silly mistake but I can?t see what it is. I put other stuff in the log, so it?s not just a case of the text being overwritten. Obviously the app does go into the background, since it is detected coming back to the foreground. This test was on the Xcode simulator, but I got essentially the same results on a real iPhone. >> >> Strange. >> >> Graham >> >> >>> On 20 Nov 2020, at 17:21, Mark Smith wrote: >>> >>> Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. >>> put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") >>> >>> for example? >>> >>> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script >>> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script >>> >>> >>> >>> >>>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode > wrote: >>>> >>>> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. >>>> >>>> I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. >>>> >>>> Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? >>>> >>>> Graham >>>> >>>> >>>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode > wrote: >>>>> >>>>> >>>>> >>>>> On iOS use mergNotify as below. Works well for me. >>>>> >>>>> on openStack >>>>> mergNotify "UIApplicationWillResignActiveNotification" >>>>> mergNotify "UIApplicationDidBecomeActiveNotification" >>>>> end openStack >>>>> >>>>> on UIApplicationWillResignActiveNotification pUserInfo >>>>> // Your code before the app goes to background >>>>> -- your code here to handle going to the background >>>>> end UIApplicationWillResignActiveNotification >>>>> >>>>> on UIApplicationDidBecomeActiveNotification pUserInfo >>>>> // Your code after the app comes back to foreground >>>>> -- your code here to handle your app becoming active >>>>> end UIApplicationDidBecomeActiveNotification >>>>> >>>>> Henry >>>> >>>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode > wrote: >>>>> >>>>> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >>>>> >>>>> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >>>>> >>>>> 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 klaus at major-k.de Sun Nov 22 15:25:33 2020 From: klaus at major-k.de (Klaus major-k) Date: Sun, 22 Nov 2020 21:25:33 +0100 Subject: Getting a real number from scientific notation Message-ID: Hi friends, see subject. I have some values in a CSV with this notation According to the dictionary I tried: on mouseUp pMouseButton put "4.21911E+11" into tSN set itemdel to "+" put char 1 to -2 of item 2 of tSN into t1 put item 2 of tSN into t2 put t1*10^t2 into tRes #x*10^y. end mouseUp But tRes is also in scientific notation -> 1e+11 When I set a breakpoint and doubleclick that value the little popup palette shows a real number however!? What am I missing and is this the correct way to do what I need? Thanks a lot in advance! Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Sun Nov 22 15:30:34 2020 From: klaus at major-k.de (Klaus major-k) Date: Sun, 22 Nov 2020 21:30:34 +0100 Subject: Getting a real number from scientific notation In-Reply-To: References: Message-ID: Please, this is quite urgent, my customer is waiting impatiently, so if someone has an idea... > Am 22.11.2020 um 21:25 schrieb Klaus major-k via use-livecode : > > Hi friends, > > see subject. > > I have some values in a CSV with this notation > According to the dictionary I tried: > on mouseUp pMouseButton > put "4.21911E+11" into tSN > set itemdel to "+" > put char 1 to -2 of item 2 of tSN into t1 > put item 2 of tSN into t2 > put t1*10^t2 into tRes > #x*10^y. > end mouseUp > > But tRes is also in scientific notation -> 1e+11 > When I set a breakpoint and doubleclick that value > the little popup palette shows a real number however!? > > What am I missing and is this the correct way to do what I need? > > Thanks a lot in advance! Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From paul at researchware.com Sun Nov 22 15:44:29 2020 From: paul at researchware.com (Paul Dupuis) Date: Sun, 22 Nov 2020 15:44:29 -0500 Subject: Getting a real number from scientific notation In-Reply-To: References: Message-ID: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> So, if you want to concert form scientific notation to a real number, you can use the "format" function (see dictionary). Example: putformat("%1.0f",4.21911E+11) -- outputs 421911000000 Is that shat yo are looking for? On 11/22/2020 3:30 PM, Klaus major-k via use-livecode wrote: > Please, this is quite urgent, my customer is waiting impatiently, > so if someone has an idea... > >> Am 22.11.2020 um 21:25 schrieb Klaus major-k via use-livecode : >> >> Hi friends, >> >> see subject. >> >> I have some values in a CSV with this notation >> According to the dictionary I tried: >> on mouseUp pMouseButton >> put "4.21911E+11" into tSN >> set itemdel to "+" >> put char 1 to -2 of item 2 of tSN into t1 >> put item 2 of tSN into t2 >> put t1*10^t2 into tRes >> #x*10^y. >> end mouseUp >> >> But tRes is also in scientific notation -> 1e+11 >> When I set a breakpoint and doubleclick that value >> the little popup palette shows a real number however!? >> >> What am I missing and is this the correct way to do what I need? >> >> Thanks a lot in advance! > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > 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 Sun Nov 22 15:47:41 2020 From: klaus at major-k.de (Klaus major-k) Date: Sun, 22 Nov 2020 21:47:41 +0100 Subject: Getting a real number from scientific notation In-Reply-To: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> Message-ID: Hi Paul, > Am 22.11.2020 um 21:44 schrieb Paul Dupuis via use-livecode : > > So, if you want to concert form scientific notation to a real number, you can use the "format" function (see dictionary). Example: > putformat("%1.0f",4.21911E+11) -- outputs 421911000000 > Is that shat yo are looking for? YES, thanks a BUNCH, that is exactly what I need! Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From brahma at hindu.org Sun Nov 22 19:47:07 2020 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 23 Nov 2020 00:47:07 +0000 Subject: Develop Audio Message-ID: I am back to the ?Listen? module. That is audio? Can you send me off list, scripts for Back Pause/Play Forward A script that opens one music file? It has been ?many moons? that were done? http://dev.himalayanacademy.com/screenshots/single-music-file.png Brahmanathaswami From livfoss at mac.com Mon Nov 23 09:23:54 2020 From: livfoss at mac.com (Graham Samuel) Date: Mon, 23 Nov 2020 15:23:54 +0100 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: <5F79402F-140F-41B4-B6A0-F22CBEB83101@gmail.com> References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> <5F79402F-140F-41B4-B6A0-F22CBEB83101@gmail.com> Message-ID: Thanks Mark Well, it does seem to be a bug, but is it in iOS or LC? It is weird that you get inconsistent results. Mine are more consistent, but still wrong. I plan to write to the mother ship and ask their opinion. I am also getting perhaps related inconsistencies in the use of locationChanged messages to get GPS readings, or I think I am. It looks like sometimes when the app goes into the background it switches off the effect of mobileStartTrackingSensor "location" which a script can only do by calling mobileStopTrackingSensor. The apparent effect is that GPS readings just stop coming in, although other activity (in my case, a stopwatch-like timer) continues without a break. I am haunted by the idea that I?ve made some mistake in coding, of course, but it I haven?t then I need to know somehow that the readings have stopped and correct the situation before gaps appear in the record, i.e. within about a second. Can?t do that if I?m not notified of the switch to the background. I have tried to look at the iOS SDK documentation but have become terminally confused - it seems to suggest that apps that go into the background are suspended and ?do not receive events?. If that?s so, how do timer and navigation apps work? They still seem to be doing stuff even while the user is using another app to read the news, make a phone call or whatever. There must be a state between being active and just sitting in RAM and doing nothing. What is that state called and how does one invoke it? Over my head... Graham > On 22 Nov 2020, at 13:30, Mark Smith wrote: > > Hi Graham, > > So, apparently not 100% accurate but here are the results of some late hour testing yesterday (I was also interested in evaluating something I needed to occur around the time the date changed, hence the late hour testing.). But as you can see, I had 3 ResignActiveNotifications before the first DidBecomeActive occurred. > > 2:33:58 PM UIApplicationWillResignActiveNotification detected in SS > > 11:22:40 PM UIApplicationWillResignActiveNotification detected in SS > > 11:25:50 PM UIApplicationWillResignActiveNotification detected in SS > > 11:33:19 PM UIApplicationDidBecomeActiveNotification detected in SS > > 11:33:26 PM UIApplicationWillResignActiveNotification detected in SS > > 1:21:48 AM UIApplicationDidBecomeActiveNotification detected in SS > > 1:29:38 AM UIApplicationWillResignActiveNotification detected in SS > > > >> On Nov 21, 2020, at 11:33 PM, Mark Smith > wrote: >> >> Graham, I think there might be a problem. I just re-enabled this code in one of my applications and the only thing I am seeing is the WillResignActiveNotification message, and not the DidBecomeActiveNotification message. Odd also because it is the exact opposite of what you are seeing, so we are both seeing half of the story, just not the same half :) I?ll keep it enabled and see if I can spot any patterns. >> >> Mark >> >> >>> On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode > wrote: >>> >>> Thanks Mark >>> >>> I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn?t. It?s likely that I made a silly mistake but I can?t see what it is. I put other stuff in the log, so it?s not just a case of the text being overwritten. Obviously the app does go into the background, since it is detected coming back to the foreground. This test was on the Xcode simulator, but I got essentially the same results on a real iPhone. >>> >>> Strange. >>> >>> Graham >>> >>> >>>> On 20 Nov 2020, at 17:21, Mark Smith > wrote: >>>> >>>> Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. >>>> put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") >>>> >>>> for example? >>>> >>>> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script >>>> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script >>>> >>>> >>>> >>>> >>>>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode >> wrote: >>>>> >>>>> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. >>>>> >>>>> I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. >>>>> >>>>> Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? >>>>> >>>>> Graham >>>>> >>>>> >>>>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode >> wrote: >>>>>> >>>>>> >>>>>> >>>>>> On iOS use mergNotify as below. Works well for me. >>>>>> >>>>>> on openStack >>>>>> mergNotify "UIApplicationWillResignActiveNotification" >>>>>> mergNotify "UIApplicationDidBecomeActiveNotification" >>>>>> end openStack >>>>>> >>>>>> on UIApplicationWillResignActiveNotification pUserInfo >>>>>> // Your code before the app goes to background >>>>>> -- your code here to handle going to the background >>>>>> end UIApplicationWillResignActiveNotification >>>>>> >>>>>> on UIApplicationDidBecomeActiveNotification pUserInfo >>>>>> // Your code after the app comes back to foreground >>>>>> -- your code here to handle your app becoming active >>>>>> end UIApplicationDidBecomeActiveNotification >>>>>> >>>>>> Henry >>>>> >>>>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode >> wrote: >>>>>> >>>>>> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >>>>>> >>>>>> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >>>>>> >>>>>> 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 klaus at major-k.de Mon Nov 23 09:25:42 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 15:25:42 +0100 Subject: reading QR-code on Mac from an imported image In-Reply-To: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> References: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> Message-ID: No idea? Anyone? > Am 20.11.2020 um 19:16 schrieb Klaus major-k via use-livecode : > > Hi all, > > ist is possible to read the QR-code from an imported image > on the Mac? If yes, how? > The dictionary did not really enlighten me... > > Thanks in advance! > > > Best > > Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Mon Nov 23 09:26:09 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 15:26:09 +0100 Subject: Google and OpenSource apps In-Reply-To: References: Message-ID: <10506A0D-E283-4AFC-B509-CB1B357A10EA@major-k.de> No idea? Anyone? > Am 21.11.2020 um 11:57 schrieb Klaus major-k via use-livecode : > > Hi friends, > > quick question: > Does Google allow apps that have been created with the Community Version of LC? > > Apple does definitively not, as I know. > > > Best > > Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From craig at starfirelighting.com Mon Nov 23 09:57:15 2020 From: craig at starfirelighting.com (Craig newman) Date: Mon, 23 Nov 2020 09:57:15 -0500 Subject: Getting a real number from scientific notation In-Reply-To: References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> Message-ID: <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> Klaus. Old fashioned way: Set the numberFormat to "0" Answer "4.21911E+11" + 0 Craig -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Klaus major-k via use-livecode Sent: Sunday, November 22, 2020 3:48 PM To: How to use LiveCode Cc: Klaus major-k Subject: Re: Getting a real number from scientific notation Hi Paul, > Am 22.11.2020 um 21:44 schrieb Paul Dupuis via use-livecode : > > So, if you want to concert form scientific notation to a real number, you can use the "format" function (see dictionary). Example: > putformat("%1.0f",4.21911E+11) -- outputs 421911000000 Is that shat yo > are looking for? YES, thanks a BUNCH, that is exactly what I need! Best Klaus -- Klaus Major https://www.major-k.de 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 Nov 23 11:42:48 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 17:42:48 +0100 Subject: Getting a real number from scientific notation In-Reply-To: <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> Message-ID: <628EC0BF-CBE0-4D3B-950F-105B089DFB18@major-k.de> Hi Craig, > Am 23.11.2020 um 15:57 schrieb Craig newman via use-livecode : > > Klaus. > > Old fashioned way: > Set the numberFormat to "0" > Answer "4.21911E+11" + 0 oh, cool, thank you! > Craig Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Mon Nov 23 12:17:49 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 23 Nov 2020 11:17:49 -0600 Subject: Google and OpenSource apps In-Reply-To: <10506A0D-E283-4AFC-B509-CB1B357A10EA@major-k.de> References: <10506A0D-E283-4AFC-B509-CB1B357A10EA@major-k.de> Message-ID: <175f61c9248.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I don't know. But I see a lot of free apps in the Play Store that are based on open source libraries. The information might be buried in the developer term of service docs. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 23, 2020 8:27:21 AM Klaus major-k via use-livecode wrote: > No idea? Anyone? > >> Am 21.11.2020 um 11:57 schrieb Klaus major-k via use-livecode >> : >> >> Hi friends, >> >> quick question: >> Does Google allow apps that have been created with the Community Version of LC? >> >> Apple does definitively not, as I know. >> >> >> Best >> >> Klaus > > -- > Klaus Major > https://www.major-k.de > 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 Nov 23 12:41:00 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 18:41:00 +0100 Subject: Google and OpenSource apps In-Reply-To: <175f61c9248.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <10506A0D-E283-4AFC-B509-CB1B357A10EA@major-k.de> <175f61c9248.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <8AFADD88-AF1A-4406-9AE1-1A490EE39890@major-k.de> Hi Jaque, > Am 23.11.2020 um 18:17 schrieb J. Landman Gay via use-livecode : > > I don't know. But I see a lot of free apps in the Play Store that are based on open source libraries. The information might be buried in the developer term of service docs. thank you, so the answer is probably yes. :-) > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Mon Nov 23 12:58:41 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 23 Nov 2020 11:58:41 -0600 Subject: Google and OpenSource apps In-Reply-To: <8AFADD88-AF1A-4406-9AE1-1A490EE39890@major-k.de> References: <10506A0D-E283-4AFC-B509-CB1B357A10EA@major-k.de> <175f61c9248.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <8AFADD88-AF1A-4406-9AE1-1A490EE39890@major-k.de> Message-ID: <175f641fc68.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> With the caution that apps made from open source libraries usually can't charge money. It depends on the license. Libraries aren't the same as development IDEs. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 23, 2020 11:42:26 AM Klaus major-k via use-livecode wrote: > Hi Jaque, > >> Am 23.11.2020 um 18:17 schrieb J. Landman Gay via use-livecode >> : >> >> I don't know. But I see a lot of free apps in the Play Store that are based >> on open source libraries. The information might be buried in the developer >> term of service docs. > > thank you, so the answer is probably yes. :-) > >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > 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 ambassador at fourthworld.com Mon Nov 23 12:59:10 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 23 Nov 2020 09:59:10 -0800 Subject: Google and OpenSource apps In-Reply-To: References: Message-ID: <6455a156-7830-be4f-4f65-c39c74d91bcf@fourthworld.com> Klaus - > Does Google allow apps that have been created with the Community Version of LC? > > Apple does definitively not, as I know. AFAIK Apple has no policy prohibiting any open source app, provided it meets their other requirements. The issue with deploying apps governed specifically by the Gnu Public License (GPL, which is used for LC Community distribution) has to do with Apple's limitation on the number of downloads per account. That restriction is viewed as rendering Apple's ToS logically incompatible with the freedoms guaranteed in the GPL, which expressly require no limitations on usage. AFAIK Google has no such limit on downloads, so their ToS is seen as compatible with the GPL. -- 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 jiml at netrin.com Mon Nov 23 13:21:42 2020 From: jiml at netrin.com (Jim Lambert) Date: Mon, 23 Nov 2020 10:21:42 -0800 Subject: reading QR-code on Mac from an imported image In-Reply-To: References: Message-ID: <9751D2C4-7F31-495C-B66F-165AA5A55F0F@netrin.com> Klaus, Would this help you? https://zxing.org/w/decode.jspx Jim Lambert From klaus at major-k.de Mon Nov 23 13:29:17 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 19:29:17 +0100 Subject: reading QR-code on Mac from an imported image In-Reply-To: <9751D2C4-7F31-495C-B66F-165AA5A55F0F@netrin.com> References: <9751D2C4-7F31-495C-B66F-165AA5A55F0F@netrin.com> Message-ID: <8BFD7E60-B05A-4F93-9076-90528F953C60@major-k.de> Hi Jim, > Am 23.11.2020 um 19:21 schrieb Jim Lambert via use-livecode : > > Klaus, > > Would this help you? > https://zxing.org/w/decode.jspx thank you, but no. I was hoping we could do this with and inside of LC with a build-in lib or external or whatever, as the subject says. > Jim Lambert Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Mon Nov 23 13:43:02 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 23 Nov 2020 12:43:02 -0600 Subject: reading QR-code on Mac from an imported image In-Reply-To: References: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> Message-ID: <175f66a96f0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Right, no idea. I've heard the barcode reader can read QR codes but that requires camera access and is for scanning external images. I've never heard of a utility that can read the binary content of an image to interpret a code. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 23, 2020 8:27:03 AM Klaus major-k via use-livecode wrote: > No idea? Anyone? > >> Am 20.11.2020 um 19:16 schrieb Klaus major-k via use-livecode >> : >> >> Hi all, >> >> ist is possible to read the QR-code from an imported image >> on the Mac? If yes, how? >> The dictionary did not really enlighten me... >> >> Thanks in advance! >> >> >> Best >> >> Klaus > > -- > Klaus Major > https://www.major-k.de > 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 ambassador at fourthworld.com Mon Nov 23 13:50:04 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 23 Nov 2020 10:50:04 -0800 Subject: Google and OpenSource apps In-Reply-To: <175f641fc68.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <175f641fc68.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <763dfe37-4fe8-6df1-7b9f-8cd4031fa863@fourthworld.com> J. Landman Gay wrote: > With the caution that apps made from open source libraries usually > can't charge money. It depends on the license. Given the range of licenses out there I suppose anything's possible, but I've never seen an open source license that explicitly prohibits per-use end-user cost. The GNU Public License (GPL) governing LC Community Edition expresses no opinion on costs at all. Indeed, in the early days of the GPL none other than its inventor, Richard Stallman, used to sell floppies containing his GPL-governed utilities (though it was a modest fee, just enough to cover his material costs and time). The "free" described in the GPL and other open source licenses isn't about money ("gratis") but freedom ("libre"). This ambiguity with "free" is among the many limitations of our language, but few speak Latin so the license was written in English, with descriptions of how "free" applies. :) But although there are no licensing constraints on fees one may charge for the distribution of a finished software, those who receive the software do have the right to expect access to the source code at no additional cost. And the GPL also grants them the freedom to modify the source code however they like, and to distribute their modified version and its source to whomever they like, at any price they like, which can (and use does) include zero. So while there's no copyright constraint on charging for open source works, the restriction is simply pragmatic: If you build a business model solely on per-user fees, and you choose a license that allows the user to have access to the source and to distribute modified versions of it, you will likely sell exactly one copy, to a user who will exercise those freedoms. The GPL is an excellent license when your goal is about sharing for users, and proliferation of derivative works by other developers. More permissive licenses like MIT may be useful for models benefiting from open source process and proprietary consumer deployment. Proprietary licenses may be needed for other business models. And with LC, they offer three models: - Community, governed by GPL, favoring sharing. - Community Plus, a proprietary license for free-as-in-gratis deployment to iOS and elsewhere. - Indy and Business, for proprietary use also allowing per-use fee-based distribution. And as Jacque noted, some bundled components may have their own licensing restrictions, where only some are dual-licensed and others proprietary-only - see license and functionality breakdown here: https://livecode.com/products/livecode-platform/pricing/ -- 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 MikeKerner at roadrunner.com Mon Nov 23 14:31:25 2020 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 23 Nov 2020 14:31:25 -0500 Subject: reading QR-code on Mac from an imported image In-Reply-To: <175f66a96f0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> <175f66a96f0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: why not ask LC if they will compile the external from ios to macos? On Mon, Nov 23, 2020 at 1:43 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > Right, no idea. I've heard the barcode reader can read QR codes but that > requires camera access and is for scanning external images. I've never > heard of a utility that can read the binary content of an image to > interpret a code. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On November 23, 2020 8:27:03 AM Klaus major-k via use-livecode > wrote: > > > No idea? Anyone? > > > >> Am 20.11.2020 um 19:16 schrieb Klaus major-k via use-livecode > >> : > >> > >> Hi all, > >> > >> ist is possible to read the QR-code from an imported image > >> on the Mac? If yes, how? > >> The dictionary did not really enlighten me... > >> > >> Thanks in advance! > >> > >> > >> Best > >> > >> Klaus > > > > -- > > Klaus Major > > https://www.major-k.de > > 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 > -- 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 panos.merakos at livecode.com Mon Nov 23 14:44:04 2020 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 23 Nov 2020 21:44:04 +0200 Subject: [ANN] Release 9.6.2 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.2 RC-1. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 9.6.2 RC-1 comes with more than 35 changes, including: New Features - Support for the newly released MacOS Big Sur - Support for building with Xcode 12.1, using the iOS 14.1 SDK - New tsNet and mergExt builds, built with the iOS 14.1 SDK Bug Fixes: - Fixed crash with mobilePickPhoto on Android 11 - Fixed 'revIsSpeaking()' function on Windows - Faster deployment to iOS simulator - Several fixes related to modal dialogs on MacOS - Several dictionary fixes and documentation improvements For the full list of all fixes, updates and enhancements please see the release notes: http://downloads.livecode.com/livecode/9_6_2/LiveCodeNotes-9_6_2_rc_1.pdf 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.04 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.1.x - LiveCode builds iOS apps using the iOS 14.1 SDK There is a full list of working LiveCode/macOS/Xcode combinations here: https://livecode.com/docs/9-5-0/faq/faq/ 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 end of June 2020, Apple is only accepting apps built using iOS13 SDKs. This means that, if you wish to submit apps to the AppStore you will have to be running at least macOS 10.14 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 Builder at http://forums.livecode.com/viewforum.php?f=93 Have fun! The LiveCode Team -- From panos.merakos at livecode.com Mon Nov 23 15:35:07 2020 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 23 Nov 2020 22:35:07 +0200 Subject: [ANN] This Week in LiveCode 246 Message-ID: Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #246 here: https://bit.ly/2UTzR8V This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to your e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From andrew at midwestcoastmedia.com Mon Nov 23 15:39:23 2020 From: andrew at midwestcoastmedia.com (Andrew at MidWest Coast Media) Date: Mon, 23 Nov 2020 15:39:23 -0500 Subject: reading QR-code on Mac from an imported image In-Reply-To: References: Message-ID: You should be able to use mergAV with the source set as library or album. I use the live camera (?video?) to read barcodes. mergAVRequestMediaAccess "video" --Andrew Bell on mouseDown mergAVRequestMediaAccess --?audio? ## DEPRECATED parameter requirement end mouseDown on mouseUp if platform() <> "iphone" then answer "Sorry, the barcode scanner feature is currently unavailable on this platform." exit mouseUp else wait 500 milliseconds with messages mergAVCamStartBarcodeReader end if // platform() end mouseUp on mergAVCamBarcodeFound pBarcode, pType answer pType && ?barcode found? & cr & pBarcode mergAVCamDelete end mergAVCamBarcodeFound > Subject: Re: reading QR-code on Mac from an imported image > > No idea? Anyone? > >> Am 20.11.2020 um 19:16 schrieb Klaus major-k via use-livecode : >> >> Hi all, >> >> ist is possible to read the QR-code from an imported image >> on the Mac? If yes, how? >> The dictionary did not really enlighten me... >> >> Thanks in advance! >> >> >> Best >> >> Klaus > > -- > Klaus Major From klaus at major-k.de Mon Nov 23 16:38:05 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 22:38:05 +0100 Subject: reading QR-code on Mac from an imported image In-Reply-To: References: Message-ID: <3B7ED413-470F-4A54-90A1-220725D209A2@major-k.de> Hi Andrew, > Am 23.11.2020 um 21:39 schrieb Andrew at MidWest Coast Media via use-livecode : > > You should be able to use mergAV with the source set as library or album. I use the live camera (?video?) to read barcodes. > mergAVRequestMediaAccess "video" > --Andrew Bell > on mouseDown > ... > end mergAVCamBarcodeFound thank you! I knew about this, but how does this work with an IMPORTED image? 8-) Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From irog at mac.com Mon Nov 23 16:50:44 2020 From: irog at mac.com (Roger Guay) Date: Mon, 23 Nov 2020 13:50:44 -0800 Subject: Getting a real number from scientific notation In-Reply-To: <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> Message-ID: <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> Oops, doesn?t work here. I have this script: on MouseUp set the numberformat to ?0" put 4.21911e+11 End mouseUp puts 4.21911e+11 into msg box What am I missing? Roger > On Nov 23, 2020, at 6:57 AM, Craig newman via use-livecode wrote: > > Klaus. > > Old fashioned way: > > Set the numberFormat to "0" > Answer "4.21911E+11" + 0 > > Craig > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Klaus major-k via use-livecode > Sent: Sunday, November 22, 2020 3:48 PM > To: How to use LiveCode > Cc: Klaus major-k > Subject: Re: Getting a real number from scientific notation > > Hi Paul, > >> Am 22.11.2020 um 21:44 schrieb Paul Dupuis via use-livecode > : >> >> So, if you want to concert form scientific notation to a real number, you > can use the "format" function (see dictionary). Example: >> putformat("%1.0f",4.21911E+11) -- outputs 421911000000 Is that shat yo >> are looking for? > > YES, thanks a BUNCH, that is exactly what I need! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > 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 Mon Nov 23 16:55:41 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 22:55:41 +0100 Subject: Getting a real number from scientific notation In-Reply-To: <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> Message-ID: <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> Hi Roger, you forgot + 0 :-) on MouseUp set the numberformat to 0 # NO quotes around this 0 or LC gives an error put 4.21911e+11 + 0 End mouseUp -> 421911000000 > Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode : > on MouseUp > set the numberformat to ?0" > put 4.21911e+11 > End mouseUp > puts 4.21911e+11 into msg box > What am I missing? > > Roger Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Mon Nov 23 17:09:42 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 23:09:42 +0100 Subject: Getting a real number from scientific notation In-Reply-To: <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> Message-ID: Correction! > Am 23.11.2020 um 22:55 schrieb Klaus major-k via use-livecode : > ... > on MouseUp > set the numberformat to 0 > # NO quotes around this 0 or LC gives an error Quotes are in fact allowed for the numberformat, but I copied the script from my mail client and those were obviously Curky Quotes. > put 4.21911e+11 + 0 > End mouseUp -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Mon Nov 23 17:10:44 2020 From: klaus at major-k.de (Klaus major-k) Date: Mon, 23 Nov 2020 23:10:44 +0100 Subject: Getting a real number from scientific notation In-Reply-To: References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> Message-ID: > Am 23.11.2020 um 23:09 schrieb Klaus major-k via use-livecode : > > Correction! > >> Am 23.11.2020 um 22:55 schrieb Klaus major-k via use-livecode : >> ... >> on MouseUp >> set the numberformat to 0 >> # NO quotes around this 0 or LC gives an error > > Quotes are in fact allowed for the numberformat, but I copied the > script from my mail client and those were obviously Curky Quotes. Curly not Curky of course 8-) -- Klaus Major https://www.major-k.de klaus at major-k.de From irog at mac.com Mon Nov 23 17:24:58 2020 From: irog at mac.com (Roger Guay) Date: Mon, 23 Nov 2020 14:24:58 -0800 Subject: Getting a real number from scientific notation In-Reply-To: <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> Message-ID: That works. Thanks, Klaus! Roger > On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode wrote: > > Hi Roger, > > you forgot + 0 :-) > > on MouseUp > set the numberformat to 0 # NO quotes around this 0 or LC gives an error > put 4.21911e+11 + 0 > End mouseUp > > -> 421911000000 > >> Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode : >> on MouseUp >> set the numberformat to ?0" >> put 4.21911e+11 >> End mouseUp >> puts 4.21911e+11 into msg box >> What am I missing? >> >> Roger > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > 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 Nov 23 17:44:50 2020 From: craig at starfirelighting.com (Craig newman) Date: Mon, 23 Nov 2020 17:44:50 -0500 Subject: Getting a real number from scientific notation In-Reply-To: References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> Message-ID: <000801d6c1ea$408cddd0$c1a69970$@starfirelighting.com> Nope. The "numberFormat" property is perfectly happy with quotes around its formatExpression. It is also perfectly happy without it. But I always use quotes for things like this. Craig -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Roger Guay via use-livecode Sent: Monday, November 23, 2020 5:25 PM To: How to use LiveCode Cc: Roger Guay Subject: Re: Getting a real number from scientific notation That works. Thanks, Klaus! Roger > On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode wrote: > > Hi Roger, > > you forgot + 0 :-) > > on MouseUp > set the numberformat to 0 # NO quotes around this 0 or LC gives an > error put 4.21911e+11 + 0 End mouseUp > > -> 421911000000 > >> Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode : >> on MouseUp >> set the numberformat to ?0" >> put 4.21911e+11 >> End mouseUp >> puts 4.21911e+11 into msg box >> What am I missing? >> >> Roger > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > 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 irog at mac.com Mon Nov 23 18:52:20 2020 From: irog at mac.com (Roger Guay) Date: Mon, 23 Nov 2020 15:52:20 -0800 Subject: Getting a real number from scientific notation In-Reply-To: <000801d6c1ea$408cddd0$c1a69970$@starfirelighting.com> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> <000801d6c1ea$408cddd0$c1a69970$@starfirelighting.com> Message-ID: <59BF61A9-1B3B-4F82-B1D3-EE6096F77609@mac.com> Yaknow, this whole thing is confusing. Turns out you don?t even need to set the numberFormat. put 4.21911e+11 + 0 results in 421910000000. Roger > On Nov 23, 2020, at 2:44 PM, Craig newman via use-livecode wrote: > > Nope. > > The "numberFormat" property is perfectly happy with quotes around its formatExpression. It is also perfectly happy without it. But I always use quotes for things like this. > > Craig > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Roger Guay via use-livecode > Sent: Monday, November 23, 2020 5:25 PM > To: How to use LiveCode > Cc: Roger Guay > Subject: Re: Getting a real number from scientific notation > > That works. Thanks, Klaus! > > Roger > > > >> On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode wrote: >> >> Hi Roger, >> >> you forgot + 0 :-) >> >> on MouseUp >> set the numberformat to 0 # NO quotes around this 0 or LC gives an >> error put 4.21911e+11 + 0 End mouseUp >> >> -> 421911000000 >> >>> Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode : >>> on MouseUp >>> set the numberformat to ?0" >>> put 4.21911e+11 >>> End mouseUp >>> puts 4.21911e+11 into msg box >>> What am I missing? >>> >>> Roger >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> https://www.major-k.de >> 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 jacque at hyperactivesw.com Mon Nov 23 19:02:53 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 23 Nov 2020 18:02:53 -0600 Subject: Google and OpenSource apps In-Reply-To: <6455a156-7830-be4f-4f65-c39c74d91bcf@fourthworld.com> References: <6455a156-7830-be4f-4f65-c39c74d91bcf@fourthworld.com> Message-ID: On 11/23/20 11:59 AM, Richard Gaskin via use-livecode wrote: > The issue with deploying apps governed specifically by the Gnu Public License (GPL, which is > used for LC Community distribution) has to do with Apple's limitation on the number of > downloads per account. > > That restriction is viewed as rendering Apple's ToS logically incompatible with the freedoms > guaranteed in the GPL, which expressly require no limitations on usage. The restriction is only for the number of beta testers though. Is that enough to qualify for the restriction? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Mon Nov 23 19:09:36 2020 From: paul at researchware.com (Paul Dupuis) Date: Mon, 23 Nov 2020 19:09:36 -0500 Subject: Getting a real number from scientific notation In-Reply-To: <59BF61A9-1B3B-4F82-B1D3-EE6096F77609@mac.com> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> <000801d6c1ea$408cddd0$c1a69970$@starfirelighting.com> <59BF61A9-1B3B-4F82-B1D3-EE6096F77609@mac.com> Message-ID: All this is why I prefer format() over numberFormat. The function is more versatile and you get exactly what you specify with less guess work. On 11/23/2020 6:52 PM, Roger Guay via use-livecode wrote: > Yaknow, this whole thing is confusing. Turns out you don?t even need to set the numberFormat. > put 4.21911e+11 + 0 results in 421910000000. > > Roger > >> On Nov 23, 2020, at 2:44 PM, Craig newman via use-livecode wrote: >> >> Nope. >> >> The "numberFormat" property is perfectly happy with quotes around its formatExpression. It is also perfectly happy without it. But I always use quotes for things like this. >> >> Craig >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Roger Guay via use-livecode >> Sent: Monday, November 23, 2020 5:25 PM >> To: How to use LiveCode >> Cc: Roger Guay >> Subject: Re: Getting a real number from scientific notation >> >> That works. Thanks, Klaus! >> >> Roger >> >> >> >>> On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode wrote: >>> >>> Hi Roger, >>> >>> you forgot + 0 :-) >>> >>> on MouseUp >>> set the numberformat to 0 # NO quotes around this 0 or LC gives an >>> error put 4.21911e+11 + 0 End mouseUp >>> >>> -> 421911000000 >>> >>>> Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode : >>>> on MouseUp >>>> set the numberformat to ?0" >>>> put 4.21911e+11 >>>> End mouseUp >>>> puts 4.21911e+11 into msg box >>>> What am I missing? >>>> >>>> Roger >>> Best >>> >>> Klaus >>> >>> -- >>> Klaus Major >>> https://www.major-k.de >>> 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 From ambassador at fourthworld.com Mon Nov 23 19:33:05 2020 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 23 Nov 2020 16:33:05 -0800 Subject: Google and OpenSource apps In-Reply-To: References: Message-ID: <8e2890aa-d080-b65e-84d6-53f08d692918@fourthworld.com> J. Landman Gay wrote: > On 11/23/20 11:59 AM, Richard Gaskin via use-livecode wrote: >> The issue with deploying apps governed specifically by the Gnu Public License (GPL, which is >> used for LC Community distribution) has to do with Apple's limitation on the number of >> downloads per account. >> >> That restriction is viewed as rendering Apple's ToS logically incompatible with the freedoms >> guaranteed in the GPL, which expressly require no limitations on usage. > > > The restriction is only for the number of beta testers though. Is that enough to qualify for > the restriction? The issue was with customer accounts, not dev accounts, which IIRC are restricted to a 10-device limit. -- 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 irog at mac.com Mon Nov 23 19:43:28 2020 From: irog at mac.com (Roger Guay) Date: Mon, 23 Nov 2020 16:43:28 -0800 Subject: Getting a real number from scientific notation In-Reply-To: References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> <000801d6c1ea$408cddd0$c1a69970$@starfirelighting.com> <59BF61A9-1B3B-4F82-B1D3-EE6096F77609@mac.com> Message-ID: Unfortunately, there are not enough examples in the dictionary for an amateur like myself to understand it! Roger > On Nov 23, 2020, at 4:09 PM, Paul Dupuis via use-livecode wrote: > > All this is why I prefer format() over numberFormat. The function is more versatile and you get exactly what you specify with less guess work. > > On 11/23/2020 6:52 PM, Roger Guay via use-livecode wrote: >> Yaknow, this whole thing is confusing. Turns out you don?t even need to set the numberFormat. >> put 4.21911e+11 + 0 results in 421910000000. >> >> Roger >> >>> On Nov 23, 2020, at 2:44 PM, Craig newman via use-livecode wrote: >>> >>> Nope. >>> >>> The "numberFormat" property is perfectly happy with quotes around its formatExpression. It is also perfectly happy without it. But I always use quotes for things like this. >>> >>> Craig >>> >>> -----Original Message----- >>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Roger Guay via use-livecode >>> Sent: Monday, November 23, 2020 5:25 PM >>> To: How to use LiveCode >>> Cc: Roger Guay >>> Subject: Re: Getting a real number from scientific notation >>> >>> That works. Thanks, Klaus! >>> >>> Roger >>> >>> >>> >>>> On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode wrote: >>>> >>>> Hi Roger, >>>> >>>> you forgot + 0 :-) >>>> >>>> on MouseUp >>>> set the numberformat to 0 # NO quotes around this 0 or LC gives an >>>> error put 4.21911e+11 + 0 End mouseUp >>>> >>>> -> 421911000000 >>>> >>>>> Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode : >>>>> on MouseUp >>>>> set the numberformat to ?0" >>>>> put 4.21911e+11 >>>>> End mouseUp >>>>> puts 4.21911e+11 into msg box >>>>> What am I missing? >>>>> >>>>> Roger >>>> Best >>>> >>>> Klaus >>>> >>>> -- >>>> Klaus Major >>>> https://www.major-k.de >>>> 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 From ahsoftware at sonic.net Mon Nov 23 19:44:45 2020 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 23 Nov 2020 16:44:45 -0800 Subject: Google and OpenSource apps In-Reply-To: <763dfe37-4fe8-6df1-7b9f-8cd4031fa863@fourthworld.com> References: <175f641fc68.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <763dfe37-4fe8-6df1-7b9f-8cd4031fa863@fourthworld.com> Message-ID: On 11/23/20 10:50 AM, Richard Gaskin via use-livecode wrote: > The "free" described in the GPL and other open source licenses isn't > about money ("gratis") but freedom ("libre"). This ambiguity with "free" > is among the many limitations of our language, but few speak Latin so > the license was written in English, with descriptions of how "free" > applies. :) Nadia Eghbal gave and interesting LongNow talk last week on opensource software maintenance, explaining along the way Jacob Thornton's distinction between free as in beer free as in speech free as in puppy https://www.youtube.com/watch?v=aX0pPg-gyX8 and if you've got a free hour, the whole talk is worth the listen https://www.youtube.com/watch?v=YnI1nz2CBnI -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Mon Nov 23 19:55:45 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 Nov 2020 00:55:45 +0000 Subject: Getting a real number from scientific notation In-Reply-To: References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> <000801d6c1ea$408cddd0$c1a69970$@starfirelighting.com> <59BF61A9-1B3B-4F82-B1D3-EE6096F77609@mac.com> Message-ID: <5EEB52FF-216B-4DC8-A3C5-F5B66620624A@iotecdigital.com> It?s more than that. There is so much to RegEx, and the different iterations of it, that no dictionary could really cover it. If you want to familiarize yourself with Regex, you really need to visit a tutorial site. Heck, even when you google how to do something, you will likely get a discussion going as to why the first solution posted won?t work right for situation x or y, then someone will contradict that person and before you know it 5 or 6 of the people who actually KNOW Regex will jump into the fray. You may or may not get a really good answer. Bob S > On Nov 23, 2020, at 4:43 PM, Roger Guay via use-livecode wrote: > > Unfortunately, there are not enough examples in the dictionary for an amateur like myself to understand it! > > Roger > >> On Nov 23, 2020, at 4:09 PM, Paul Dupuis via use-livecode wrote: >> >> All this is why I prefer format() over numberFormat. The function is more versatile and you get exactly what you specify with less guess work. >> >> On 11/23/2020 6:52 PM, Roger Guay via use-livecode wrote: >>> Yaknow, this whole thing is confusing. Turns out you don?t even need to set the numberFormat. >>> put 4.21911e+11 + 0 results in 421910000000. >>> >>> Roger >>> >>>> On Nov 23, 2020, at 2:44 PM, Craig newman via use-livecode wrote: >>>> >>>> Nope. >>>> >>>> The "numberFormat" property is perfectly happy with quotes around its formatExpression. It is also perfectly happy without it. But I always use quotes for things like this. >>>> >>>> Craig >>>> >>>> -----Original Message----- >>>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Roger Guay via use-livecode >>>> Sent: Monday, November 23, 2020 5:25 PM >>>> To: How to use LiveCode >>>> Cc: Roger Guay >>>> Subject: Re: Getting a real number from scientific notation >>>> >>>> That works. Thanks, Klaus! >>>> >>>> Roger >>>> >>>> >>>> >>>>> On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode wrote: >>>>> >>>>> Hi Roger, >>>>> >>>>> you forgot + 0 :-) >>>>> >>>>> on MouseUp >>>>> set the numberformat to 0 # NO quotes around this 0 or LC gives an >>>>> error put 4.21911e+11 + 0 End mouseUp >>>>> >>>>> -> 421911000000 >>>>> >>>>>> Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode : >>>>>> on MouseUp >>>>>> set the numberformat to ?0" >>>>>> put 4.21911e+11 >>>>>> End mouseUp >>>>>> puts 4.21911e+11 into msg box >>>>>> What am I missing? >>>>>> >>>>>> Roger >>>>> Best >>>>> >>>>> Klaus >>>>> >>>>> -- >>>>> Klaus Major >>>>> https://www.major-k.de >>>>> 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 From harrison at all-auctions.com Mon Nov 23 20:25:27 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Mon, 23 Nov 2020 20:25:27 -0500 Subject: LC PayPal Server Integration In-Reply-To: <59BF61A9-1B3B-4F82-B1D3-EE6096F77609@mac.com> References: <3bf23356-79da-41d9-eb5b-303d0495621b@researchware.com> <01c201d6c1a8$eeae86d0$cc0b9470$@starfirelighting.com> <8C042F4D-3436-4B58-8076-741B9E7A7ABF@mac.com> <3452EF56-DB62-4CC6-A662-10E3A0DE8B55@major-k.de> <000801d6c1ea$408cddd0$c1a69970$@starfirelighting.com> <59BF61A9-1B3B-4F82-B1D3-EE6096F77609@mac.com> Message-ID: <619EE37A-9F99-4740-8262-338C1865F8D6@all-auctions.com> Hi, I have noticed that PayPal has changed things rather dramatically since the last time I used them for accepting payments for my website. It used to be long ago that you could send your amount, and sales tax information to PayPal with one button. Now the easiest way I can figure how to do this kind of thing involves my having to make several PayPal buttons in advance, and then use my sales tax table to determine which button to show to the user to get PayPal to charge the correct amounts. How are you integrating LiveCode Server with PayPal these days? Do you have any good examples? I find the PayPal website to be a bit of a morass with all of their different ways of doing things. Thanks in advance! Rick From klaus at major-k.de Tue Nov 24 07:32:59 2020 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 Nov 2020 13:32:59 +0100 Subject: Strange bug Message-ID: Hi friends, FYI: I found a very strange and serious bug, if you have a minute, please take a look: A real showstopper in my opinion! With an example stack (in my dropbox, my browser does not allow me to select a file as attachment!?). Shows the problem clearly on a Mac. May probably work correctly on Windows, maybe not. Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Tue Nov 24 07:34:34 2020 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 Nov 2020 13:34:34 +0100 Subject: Strange bug In-Reply-To: References: Message-ID: <165B2D81-1306-4B68-B64D-13FBC52585D5@major-k.de> > Am 24.11.2020 um 13:32 schrieb Klaus major-k via use-livecode : > > Hi friends, > > FYI: I found a very strange and serious bug, if you have a minute, please take a look: > > A real showstopper in my opinion! > > With an example stack (in my dropbox, my browser does not allow me to select > a file as attachment!?). Shows the problem clearly on a Mac. > May probably work correctly on Windows, maybe not. > > > Best > > Klaus just tested, this is also already happening in LC 5.02!? -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Tue Nov 24 08:17:24 2020 From: klaus at major-k.de (Klaus major-k) Date: Tue, 24 Nov 2020 14:17:24 +0100 Subject: Strange bug In-Reply-To: <176EC110-A1B7-4A6E-A96B-D6C4E70E39BE@major-k.de> References: <165B2D81-1306-4B68-B64D-13FBC52585D5@major-k.de> <0E689D80-B1ED-4B76-BF12-8FF736E046C8@m-r-d.de> <176EC110-A1B7-4A6E-A96B-D6C4E70E39BE@major-k.de> Message-ID: Hi Matthias, > Am 24.11.2020 um 14:02 schrieb Klaus major-k : > > Hi Matthias, > >> Am 24.11.2020 um 13:46 schrieb improve-revolution-010908 at m-r-d.de: >> >> May this is because the drapDrop message is still processed or how this is called in english. > > yes, that is what I think, too. > >> As a workaround couldn't you use something like this >> send "importMe" && pURL&&",Rental M1" to me in 50 milliseconds >> in the DragDrop handler instead of calling importMe directly? > > thank you, will try this. > > I already tried this as first line in the importme handler: > -> wait 1 secs with messages > But that did not help. > >> Matthias Rebbe YES, that did the trick, thanks a lot! :-) Will add this as a comment to the bug report. Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From paul at researchware.com Tue Nov 24 08:44:53 2020 From: paul at researchware.com (Paul Dupuis) Date: Tue, 24 Nov 2020 08:44:53 -0500 Subject: LC9.6.2rc build issues? Message-ID: So, I have a large applications. Under 9.6.1 STABLE I open the main stack and build the standalone (Windows and macOS) without issue. I just tried it under 9.6.2rc1 and I get an infinite loop of "duplicate stacks" errors and it keeps trying to reload the app over and over?!?!? I had to force quit (on Windows 10). Any one else have any problems? From paul at researchware.com Tue Nov 24 08:54:11 2020 From: paul at researchware.com (Paul Dupuis) Date: Tue, 24 Nov 2020 08:54:11 -0500 Subject: LC9.6.2rc build issues? In-Reply-To: References: Message-ID: <8640f5d3-5603-fd93-224b-a19309c87be9@researchware.com> okay, this did not happen the next time I tried. The first time I have made a number of changes to two substacks in the mainstack (and saved) and then tried building the standalone and got the errors and loop. The second time I made no changes. I just opened the mainstack (and let the app startup) and then build the standalones using 962rc1 and it worked. I have to try making changes again and see if I can get the issue to repeat itself. On 11/24/2020 8:44 AM, Paul Dupuis via use-livecode wrote: > So, I have a large applications. Under 9.6.1 STABLE I open the main > stack and build the standalone (Windows and macOS) without issue. > > I just tried it under 9.6.2rc1 and I get an infinite loop of > "duplicate stacks" errors and it keeps trying to reload the app over > and over?!?!? I had to force quit (on Windows 10). > > Any one else have any problems? > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Nov 24 09:06:04 2020 From: paul at researchware.com (Paul Dupuis) Date: Tue, 24 Nov 2020 09:06:04 -0500 Subject: LC9.6.2rc build issues? In-Reply-To: <8640f5d3-5603-fd93-224b-a19309c87be9@researchware.com> References: <8640f5d3-5603-fd93-224b-a19309c87be9@researchware.com> Message-ID: <83921091-8427-4fba-1647-61abd889bc10@researchware.com> On 11/24/2020 8:54 AM, Paul Dupuis via use-livecode wrote: > I have to try making changes again and see if I can get the issue to > repeat itself. Now trying to repeat the build issue in LC962rc1, I made an edit to a button script. Applied the change, closed the substack window (getting prompted to save my changes), and the LC just exited. Then trying a 3rd time, everything worked as expected. Maybe it was a bad preferences file that fixed itself or .... gremlins! From benr_mc at cogapp.com Tue Nov 24 09:24:53 2020 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 24 Nov 2020 14:24:53 -0000 Subject: Mac standalone install in menu bar Message-ID: <80eb9362-e21c-532b-81b4-a40039e0e36a@cogapp.com> Is it possible to create an using LC that once launched installs itself in the menu bar? TIA, Ben From skiplondon at gmail.com Tue Nov 24 10:36:12 2020 From: skiplondon at gmail.com (Skip Kimpel) Date: Tue, 24 Nov 2020 10:36:12 -0500 Subject: MP3 ID3 tag writer Message-ID: Has anybody written a library for this? Looking to write ID3 tags for mp3 files including the addition to mp3 artwork. Thoughts? SKIP From richmondmathewson at gmail.com Tue Nov 24 10:57:36 2020 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 24 Nov 2020 17:57:36 +0200 Subject: Strange bug In-Reply-To: References: Message-ID: Yes, as described (LC 9.6.1, macOS 11.1 Beta). On 24.11.20 14:32, Klaus major-k via use-livecode wrote: > Hi friends, > > FYI: I found a very strange and serious bug, if you have a minute, please take a look: > > A real showstopper in my opinion! > > With an example stack (in my dropbox, my browser does not allow me to select > a file as attachment!?). Shows the problem clearly on a Mac. > May probably work correctly on Windows, maybe not. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > 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 matthias_livecode_150811 at m-r-d.de Tue Nov 24 10:59:08 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 24 Nov 2020 16:59:08 +0100 Subject: MP3 ID3 tag writer In-Reply-To: References: Message-ID: <83695B80-8CD5-47DF-97F5-14625B0D24DB@m-r-d.de> The late Mark Smith (the Bass Player) had written a library. http://marksmith.on-rev.com/revstuff/files/libID3.zip Here's an overview of his rev stacks: http://marksmith.on-rev.com/revstuff/ - Matthias Rebbe Life Is Too Short For Boring Code > Am 24.11.2020 um 16:36 schrieb Skip Kimpel via use-livecode : > > Has anybody written a library for this? Looking to write ID3 tags for mp3 > files including the addition to mp3 artwork. > > Thoughts? > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 24 11:01:16 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 24 Nov 2020 17:01:16 +0100 Subject: Mac standalone install in menu bar In-Reply-To: <80eb9362-e21c-532b-81b4-a40039e0e36a@cogapp.com> References: <80eb9362-e21c-532b-81b4-a40039e0e36a@cogapp.com> Message-ID: <802B12E4-EBF5-4DA6-859D-B0F656628DEB@m-r-d.de> On Mac there is the Mac Status Menu library available in LC9.6 and lower. Regards, Matthias - Matthias Rebbe Life Is Too Short For Boring Code > Am 24.11.2020 um 15:24 schrieb Ben Rubinstein via use-livecode : > > Is it possible to create an using LC that once launched installs itself in the menu bar? > > 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 matthias_livecode_150811 at m-r-d.de Tue Nov 24 11:09:03 2020 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 24 Nov 2020 17:09:03 +0100 Subject: MP3 ID3 tag writer In-Reply-To: <83695B80-8CD5-47DF-97F5-14625B0D24DB@m-r-d.de> References: <83695B80-8CD5-47DF-97F5-14625B0D24DB@m-r-d.de> Message-ID: <14159C24-3124-4CDF-838E-25DE880245A8@m-r-d.de> I just noticed, that the files are not available anymore. I've uploaded a zip archive of those files here https://dl.qck.nu/?dl=MarkSmith.zip - Matthias Rebbe Life Is Too Short For Boring Code > Am 24.11.2020 um 16:59 schrieb matthias rebbe via use-livecode : > > The late Mark Smith (the Bass Player) had written a library. > > http://marksmith.on-rev.com/revstuff/files/libID3.zip > > Here's an overview of his rev stacks: > > http://marksmith.on-rev.com/revstuff/ > > - > Matthias Rebbe > Life Is Too Short For Boring Code > >> Am 24.11.2020 um 16:36 schrieb Skip Kimpel via use-livecode : >> >> Has anybody written a library for this? Looking to write ID3 tags for mp3 >> files including the addition to mp3 artwork. >> >> Thoughts? >> >> SKIP >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 24 11:54:11 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 24 Nov 2020 16:54:11 +0000 Subject: Strange bug In-Reply-To: References: Message-ID: I will attest to the fact that strange things happen with drag drop and not just with Livecode. For instance if I drag a PDF to a mounted share, often, but not every time, Mail becomes unresponsive and I have to quit it and relaunch it. Also when drag dropping files from the Finder onto a Livecode object I get the ?snap back? visual, and then the next drag drop operation will not work until I click the title bar of the LC window I am dragging to, or else move the window in some way. Bob S > On Nov 24, 2020, at 4:32 AM, Klaus major-k via use-livecode wrote: > > Hi friends, > > FYI: I found a very strange and serious bug, if you have a minute, please take a look: > > A real showstopper in my opinion! > > With an example stack (in my dropbox, my browser does not allow me to select > a file as attachment!?). Shows the problem clearly on a Mac. > May probably work correctly on Windows, maybe not. > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > 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 skiplondon at gmail.com Tue Nov 24 12:37:24 2020 From: skiplondon at gmail.com (Skip Kimpel) Date: Tue, 24 Nov 2020 12:37:24 -0500 Subject: MP3 ID3 tag writer In-Reply-To: <14159C24-3124-4CDF-838E-25DE880245A8@m-r-d.de> References: <83695B80-8CD5-47DF-97F5-14625B0D24DB@m-r-d.de> <14159C24-3124-4CDF-838E-25DE880245A8@m-r-d.de> Message-ID: Thank you! SKIP On Tue, Nov 24, 2020 at 11:09 AM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > I just noticed, that the files are not available anymore. > > I've uploaded a zip archive of those files here > > https://dl.qck.nu/?dl=MarkSmith.zip > > > - > Matthias Rebbe > Life Is Too Short For Boring Code > > > Am 24.11.2020 um 16:59 schrieb matthias rebbe via use-livecode < > use-livecode at lists.runrev.com>: > > > > The late Mark Smith (the Bass Player) had written a library. > > > > http://marksmith.on-rev.com/revstuff/files/libID3.zip > > > > Here's an overview of his rev stacks: > > > > http://marksmith.on-rev.com/revstuff/ > > > > - > > Matthias Rebbe > > Life Is Too Short For Boring Code > > > >> Am 24.11.2020 um 16:36 schrieb Skip Kimpel via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Has anybody written a library for this? Looking to write ID3 tags for > mp3 > >> files including the addition to mp3 artwork. > >> > >> Thoughts? > >> > >> SKIP > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skiplondon at gmail.com Tue Nov 24 12:39:18 2020 From: skiplondon at gmail.com (Skip Kimpel) Date: Tue, 24 Nov 2020 12:39:18 -0500 Subject: MP3 ID3 tag writer In-Reply-To: References: <83695B80-8CD5-47DF-97F5-14625B0D24DB@m-r-d.de> <14159C24-3124-4CDF-838E-25DE880245A8@m-r-d.de> Message-ID: Looking at that zip file, I don't see the library attached. Also, does anybody have an idea if what ID3 version this is compatible with? SKIP On Tue, Nov 24, 2020 at 12:37 PM Skip Kimpel wrote: > Thank you! > > SKIP > > On Tue, Nov 24, 2020 at 11:09 AM matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I just noticed, that the files are not available anymore. >> >> I've uploaded a zip archive of those files here >> >> https://dl.qck.nu/?dl=MarkSmith.zip >> >> >> - >> Matthias Rebbe >> Life Is Too Short For Boring Code >> >> > Am 24.11.2020 um 16:59 schrieb matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com>: >> > >> > The late Mark Smith (the Bass Player) had written a library. >> > >> > http://marksmith.on-rev.com/revstuff/files/libID3.zip >> > >> > Here's an overview of his rev stacks: >> > >> > http://marksmith.on-rev.com/revstuff/ >> > >> > - >> > Matthias Rebbe >> > Life Is Too Short For Boring Code >> > >> >> Am 24.11.2020 um 16:36 schrieb Skip Kimpel via use-livecode < >> use-livecode at lists.runrev.com>: >> >> >> >> Has anybody written a library for this? Looking to write ID3 tags for >> mp3 >> >> files including the addition to mp3 artwork. >> >> >> >> Thoughts? >> >> >> >> SKIP >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From skiplondon at gmail.com Tue Nov 24 12:42:33 2020 From: skiplondon at gmail.com (Skip Kimpel) Date: Tue, 24 Nov 2020 12:42:33 -0500 Subject: MP3 ID3 tag writer In-Reply-To: References: <83695B80-8CD5-47DF-97F5-14625B0D24DB@m-r-d.de> <14159C24-3124-4CDF-838E-25DE880245A8@m-r-d.de> Message-ID: Also found this by Paul McClernan: https://github.com/PaulMcClernan/id3lib SKIP On Tue, Nov 24, 2020 at 12:39 PM Skip Kimpel wrote: > Looking at that zip file, I don't see the library attached. Also, does > anybody have an idea if what ID3 version this is compatible with? > > SKIP > > On Tue, Nov 24, 2020 at 12:37 PM Skip Kimpel wrote: > >> Thank you! >> >> SKIP >> >> On Tue, Nov 24, 2020 at 11:09 AM matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I just noticed, that the files are not available anymore. >>> >>> I've uploaded a zip archive of those files here >>> >>> https://dl.qck.nu/?dl=MarkSmith.zip >>> >>> >>> - >>> Matthias Rebbe >>> Life Is Too Short For Boring Code >>> >>> > Am 24.11.2020 um 16:59 schrieb matthias rebbe via use-livecode < >>> use-livecode at lists.runrev.com>: >>> > >>> > The late Mark Smith (the Bass Player) had written a library. >>> > >>> > http://marksmith.on-rev.com/revstuff/files/libID3.zip >>> > >>> > Here's an overview of his rev stacks: >>> > >>> > http://marksmith.on-rev.com/revstuff/ >>> > >>> > - >>> > Matthias Rebbe >>> > Life Is Too Short For Boring Code >>> > >>> >> Am 24.11.2020 um 16:36 schrieb Skip Kimpel via use-livecode < >>> use-livecode at lists.runrev.com>: >>> >> >>> >> Has anybody written a library for this? Looking to write ID3 tags >>> for mp3 >>> >> files including the addition to mp3 artwork. >>> >> >>> >> Thoughts? >>> >> >>> >> SKIP >>> >> _______________________________________________ >>> >> use-livecode mailing list >>> >> use-livecode at lists.runrev.com >>> >> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> >> http://lists.runrev.com/mailman/listinfo/use-livecode >>> > >>> > >>> > _______________________________________________ >>> > use-livecode mailing list >>> > use-livecode at lists.runrev.com >>> > Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> > http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 Nov 24 16:05:25 2020 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 24 Nov 2020 21:05:25 -0000 Subject: Mac standalone install in menu bar In-Reply-To: <802B12E4-EBF5-4DA6-859D-B0F656628DEB@m-r-d.de> References: <80eb9362-e21c-532b-81b4-a40039e0e36a@cogapp.com> <802B12E4-EBF5-4DA6-859D-B0F656628DEB@m-r-d.de> Message-ID: On 24/11/2020 16:01, matthias rebbe via use-livecode wrote: > On Mac there is the Mac Status Menu library available in LC9.6 and lower. Thank you Matthias - just what I needed. Ben From jiml at netrin.com Tue Nov 24 16:12:07 2020 From: jiml at netrin.com (Jim Lambert) Date: Tue, 24 Nov 2020 13:12:07 -0800 Subject: MP3 ID3 tag writer In-Reply-To: References: Message-ID: Thank you for this, Matthias. Danke sehr. Jim Lambert > Matthias wrote: > > Re: MP3 ID3 tag writer > I just noticed, that the files are not available anymore. > > I've uploaded a zip archive of those files here > > https://dl.qck.nu/?dl=MarkSmith.zip > > > - > Matthias Rebbe From livfoss at mac.com Tue Nov 24 17:18:44 2020 From: livfoss at mac.com (Graham Samuel) Date: Tue, 24 Nov 2020 23:18:44 +0100 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> <5F79402F-140F-41B4-B6A0-F22CBEB83101@gmail.com> Message-ID: An very timely and helpful update from Elanor at the mother ship. My problems with mergNotify were there because the string representing the specific notification ?UIApplicationWillResignActiveNotification? was in curly quotes! I literally didn?t see this, and the script editor didn?t report an error. It might have done something with the colorisation, but as I?m partly colour blind I never take much notice of this aspect of scripts. How the quotes got there is a mystery, as I thought I had simply copied these lines of script from an earlier mail by Henry Lowe, but apparently not. So, problem solved at the price of my red face. The question about what being ?in the background? actually means remains, and I hope to have an answer for that soon. If I get any info I will send it to the list as a new topic. Elanor also said: > I don't know if the issue Mark is seeing is the same one but if you are replying on the list just ask him to contact Support and I'll take a look at his stack too. Graham > On 23 Nov 2020, at 15:23, Graham Samuel via use-livecode wrote: > > Thanks Mark > > Well, it does seem to be a bug, but is it in iOS or LC? It is weird that you get inconsistent results. Mine are more consistent, but still wrong. I plan to write to the mother ship and ask their opinion. > > I am also getting perhaps related inconsistencies in the use of locationChanged messages to get GPS readings, or I think I am. It looks like sometimes when the app goes into the background it switches off the effect of > mobileStartTrackingSensor "location" > > which a script can only do by calling mobileStopTrackingSensor. > > The apparent effect is that GPS readings just stop coming in, although other activity (in my case, a stopwatch-like timer) continues without a break. I am haunted by the idea that I?ve made some mistake in coding, of course, but it I haven?t then I need to know somehow that the readings have stopped and correct the situation before gaps appear in the record, i.e. within about a second. Can?t do that if I?m not notified of the switch to the background. > > I have tried to look at the iOS SDK documentation but have become terminally confused - it seems to suggest that apps that go into the background are suspended and ?do not receive events?. If that?s so, how do timer and navigation apps work? They still seem to be doing stuff even while the user is using another app to read the news, make a phone call or whatever. There must be a state between being active and just sitting in RAM and doing nothing. What is that state called and how does one invoke it? > > Over my head... > > Graham > >> On 22 Nov 2020, at 13:30, Mark Smith wrote: >> >> Hi Graham, >> >> So, apparently not 100% accurate but here are the results of some late hour testing yesterday (I was also interested in evaluating something I needed to occur around the time the date changed, hence the late hour testing.). But as you can see, I had 3 ResignActiveNotifications before the first DidBecomeActive occurred. >> >> 2:33:58 PM UIApplicationWillResignActiveNotification detected in SS >> >> 11:22:40 PM UIApplicationWillResignActiveNotification detected in SS >> >> 11:25:50 PM UIApplicationWillResignActiveNotification detected in SS >> >> 11:33:19 PM UIApplicationDidBecomeActiveNotification detected in SS >> >> 11:33:26 PM UIApplicationWillResignActiveNotification detected in SS >> >> 1:21:48 AM UIApplicationDidBecomeActiveNotification detected in SS >> >> 1:29:38 AM UIApplicationWillResignActiveNotification detected in SS >> >> >> >>> On Nov 21, 2020, at 11:33 PM, Mark Smith > wrote: >>> >>> Graham, I think there might be a problem. I just re-enabled this code in one of my applications and the only thing I am seeing is the WillResignActiveNotification message, and not the DidBecomeActiveNotification message. Odd also because it is the exact opposite of what you are seeing, so we are both seeing half of the story, just not the same half :) I?ll keep it enabled and see if I can spot any patterns. >>> >>> Mark >>> >>> >>>> On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode > wrote: >>>> >>>> Thanks Mark >>>> >>>> I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn?t. It?s likely that I made a silly mistake but I can?t see what it is. I put other stuff in the log, so it?s not just a case of the text being overwritten. Obviously the app does go into the background, since it is detected coming back to the foreground. This test was on the Xcode simulator, but I got essentially the same results on a real iPhone. >>>> >>>> Strange. >>>> >>>> Graham >>>> >>>> >>>>> On 20 Nov 2020, at 17:21, Mark Smith > wrote: >>>>> >>>>> Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. >>>>> put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") >>>>> >>>>> for example? >>>>> >>>>> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script >>>>> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script >>>>> >>>>> >>>>> >>>>> >>>>>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode >> wrote: >>>>>> >>>>>> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. >>>>>> >>>>>> I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. >>>>>> >>>>>> Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? >>>>>> >>>>>> Graham >>>>>> >>>>>> >>>>>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode >> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> On iOS use mergNotify as below. Works well for me. >>>>>>> >>>>>>> on openStack >>>>>>> mergNotify "UIApplicationWillResignActiveNotification" >>>>>>> mergNotify "UIApplicationDidBecomeActiveNotification" >>>>>>> end openStack >>>>>>> >>>>>>> on UIApplicationWillResignActiveNotification pUserInfo >>>>>>> // Your code before the app goes to background >>>>>>> -- your code here to handle going to the background >>>>>>> end UIApplicationWillResignActiveNotification >>>>>>> >>>>>>> on UIApplicationDidBecomeActiveNotification pUserInfo >>>>>>> // Your code after the app comes back to foreground >>>>>>> -- your code here to handle your app becoming active >>>>>>> end UIApplicationDidBecomeActiveNotification >>>>>>> >>>>>>> Henry >>>>>> >>>>>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode >> wrote: >>>>>>> >>>>>>> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >>>>>>> >>>>>>> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >>>>>>> >>>>>>> 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 mkoob at rogers.com Tue Nov 24 18:27:16 2020 From: mkoob at rogers.com (Martin Koob) Date: Tue, 24 Nov 2020 18:27:16 -0500 Subject: Moving files to Windows' Recycle Bin in LiveCode -- is it possible? References: Message-ID: Hi. On the Mac I have a handler that can move a folder to the trash by using an AppleScript that I call with a shell command. I have a custom property of the stack ?Scripts" cDeleteMacFolderScript that contains a template script tell application "Finder" delete "**foldertodelete**" end tell Then I have the following handler on deletemacOSfolder folderMacpath put the cDeleteMacFolderScript of stack ?Scripts" into thescript replace "**foldertodelete**" with folderMacpath in thescript do thescript as applescript end deletemacOSfolder It works a charm, run it and the folder ends up in the Trash Easy-peasy. I have been trying to do the same thing with Windows and not having any luck. First Challenge was finding the path to the recycle bin. Using SpecialfolderPath() to get the path for the Recycle Bin did not work. See the bug report here. https://quality.livecode.com/show_bug.cgi?id=22995 I did manage write a script using the Windows shell commands to get a path to the user?s Recycle Bin and then move a directory to it using the LiveCode rename command. The folder is actually moved to the user's Recycle Bin but when you Open the Recycle Bin in the Windows Explorer GUI you don?t see the folder. Here is the script I used. on mouseUp pButtonNumber answer folder "Select the folder to move to Recycle Bin folder." put it into tFoldertoRecycle if platform() is "win32" or platform() is "win64" then MoveFolderToRecycleBin tFolderToRecycle end if end mouseUp command MoveFolderToRecycleBin pFolderToMove put SpecialFolderPath_RecycleBinFolder() into tRecycleBinPath replace "/" with "\" in tRecycleBinPath set the itemDelimiter to "\" put the last item of pFolderToMove into tFolderName put tRecycleBinPath & "\" & tFolderName into tRecycleBinPath put pFolderToMove into line 1 of field 1 put tRecycleBinPath &Cr &CR into line 2 of field 1 rename folder pFolderToMove to tRecycleBinPath end MoveFolderToRecycleBin function SpecialFolderPath_RecycleBinFolder put shell ("whoami /user") into tUserInformation set the itemDelimiter to space put item 2 of line 7 of tUserInformation into tUserSID put "C:\$Recycle.Bin\" & tUserSID into tUserRecycleBinPath return tUserRecycleBinPath end SpecialFolderPath_RecycleBinFolder You can see that the folder was actually moved there by using the Windows Command Prompt program. If you type: C:\> cd \$Recycle.Bin C: \$Recycle.Bin> dir /s /a You will get a listing of the contents of the directory and the subdirectories including the one that contains the files in the logged in user?s recycle bin. - files or folders the user dragged there in the GUI are there (but their file names are not the same as their actual names) - folders I moved there using the script above are also there (their folder names are the same as they were in their original location). I have read a lot of posts and documentation on the Recycle Bin and know far more than I ever wanted to know about it but it seems that simply moving a file to the users directory for the user?s Recycle Bin does not actually put it in the ?RecycleBin" as seen in the Windows Explorer GUI. I found a post that says that here. https://superuser.com/questions/1520290/how-to-access-another-windows-10-installations-recycle-bin-files-on-a-partition This folder (Recycle Bin) is a special folder, because if you double-click the folder within Explorer, it will open the Recycle Bin program, rather than show the contents of that folder. As a result, it will show you all files deleted in your current Windows Installation, and not what is actually inside that folder. I don?t see any other way of Recycling a folder, or a file for that matter using the shell short of buying and installing one of a couple of utility programs that popped up in some of my searches. I can?t expect users to do that. I know you can delete a folder and its contents using the revDeleteFolder Command. This removes the folder and files instantly. I was hoping there was a way to just move them the Recycle Bin but it does not appear to be possible from shell. However the fact that there are utilities that do it mean there must be some way programmatically. Does anyone know of a way to accomplish this? Thanks Martin Koob VideoLinkwell From marksmithhfx at gmail.com Tue Nov 24 20:00:18 2020 From: marksmithhfx at gmail.com (Mark Smith) Date: Wed, 25 Nov 2020 01:00:18 +0000 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> <5F79402F-140F-41B4-B6A0-F22CBEB83101@gmail.com> Message-ID: <6EF9268E-7068-4BF7-8981-CAE98B9728C8@gmail.com> Thanks Graham, Nope, just checked and my quotes are not curly. Over a 48 hour period of testing, with multiple startups and shutdowns (33 in total, these were mostly in/out of background not actual exits and restarts) I only saw 3 instances of a double shutdown notification (applicationWillResignActiveNotification) without an intervening startup (applicationDidBecomeActiveNotification) so it?s evidently a very small problem (10% ?). I?ll send the log to Elanor to let her know. From my perspective, not something I am going to fret about. > On Nov 24, 2020, at 10:18 PM, Graham Samuel via use-livecode wrote: > > An very timely and helpful update from Elanor at the mother ship. My problems with mergNotify were there because the string representing the specific notification ?UIApplicationWillResignActiveNotification? was in curly quotes! I literally didn?t see this, and the script editor didn?t report an error. It might have done something with the colorisation, but as I?m partly colour blind I never take much notice of this aspect of scripts. How the quotes got there is a mystery, as I thought I had simply copied these lines of script from an earlier mail by Henry Lowe, but apparently not. So, problem solved at the price of my red face. > > The question about what being ?in the background? actually means remains, and I hope to have an answer for that soon. If I get any info I will send it to the list as a new topic. > > Elanor also said: > >> I don't know if the issue Mark is seeing is the same one but if you are replying on the list just ask him to contact Support and I'll take a look at his stack too. > > > > Graham > >> On 23 Nov 2020, at 15:23, Graham Samuel via use-livecode wrote: >> >> Thanks Mark >> >> Well, it does seem to be a bug, but is it in iOS or LC? It is weird that you get inconsistent results. Mine are more consistent, but still wrong. I plan to write to the mother ship and ask their opinion. >> >> I am also getting perhaps related inconsistencies in the use of locationChanged messages to get GPS readings, or I think I am. It looks like sometimes when the app goes into the background it switches off the effect of >> mobileStartTrackingSensor "location" >> >> which a script can only do by calling mobileStopTrackingSensor. >> >> The apparent effect is that GPS readings just stop coming in, although other activity (in my case, a stopwatch-like timer) continues without a break. I am haunted by the idea that I?ve made some mistake in coding, of course, but it I haven?t then I need to know somehow that the readings have stopped and correct the situation before gaps appear in the record, i.e. within about a second. Can?t do that if I?m not notified of the switch to the background. >> >> I have tried to look at the iOS SDK documentation but have become terminally confused - it seems to suggest that apps that go into the background are suspended and ?do not receive events?. If that?s so, how do timer and navigation apps work? They still seem to be doing stuff even while the user is using another app to read the news, make a phone call or whatever. There must be a state between being active and just sitting in RAM and doing nothing. What is that state called and how does one invoke it? >> >> Over my head... >> >> Graham >> >>> On 22 Nov 2020, at 13:30, Mark Smith wrote: >>> >>> Hi Graham, >>> >>> So, apparently not 100% accurate but here are the results of some late hour testing yesterday (I was also interested in evaluating something I needed to occur around the time the date changed, hence the late hour testing.). But as you can see, I had 3 ResignActiveNotifications before the first DidBecomeActive occurred. >>> >>> 2:33:58 PM UIApplicationWillResignActiveNotification detected in SS >>> >>> 11:22:40 PM UIApplicationWillResignActiveNotification detected in SS >>> >>> 11:25:50 PM UIApplicationWillResignActiveNotification detected in SS >>> >>> 11:33:19 PM UIApplicationDidBecomeActiveNotification detected in SS >>> >>> 11:33:26 PM UIApplicationWillResignActiveNotification detected in SS >>> >>> 1:21:48 AM UIApplicationDidBecomeActiveNotification detected in SS >>> >>> 1:29:38 AM UIApplicationWillResignActiveNotification detected in SS >>> >>> >>> >>>> On Nov 21, 2020, at 11:33 PM, Mark Smith > wrote: >>>> >>>> Graham, I think there might be a problem. I just re-enabled this code in one of my applications and the only thing I am seeing is the WillResignActiveNotification message, and not the DidBecomeActiveNotification message. Odd also because it is the exact opposite of what you are seeing, so we are both seeing half of the story, just not the same half :) I?ll keep it enabled and see if I can spot any patterns. >>>> >>>> Mark >>>> >>>> >>>>> On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode > wrote: >>>>> >>>>> Thanks Mark >>>>> >>>>> I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn?t. It?s likely that I made a silly mistake but I can?t see what it is. I put other stuff in the log, so it?s not just a case of the text being overwritten. Obviously the app does go into the background, since it is detected coming back to the foreground. This test was on the Xcode simulator, but I got essentially the same results on a real iPhone. >>>>> >>>>> Strange. >>>>> >>>>> Graham >>>>> >>>>> >>>>>> On 20 Nov 2020, at 17:21, Mark Smith > wrote: >>>>>> >>>>>> Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. >>>>>> put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") >>>>>> >>>>>> for example? >>>>>> >>>>>> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script >>>>>> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode >> wrote: >>>>>>> >>>>>>> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. >>>>>>> >>>>>>> I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. >>>>>>> >>>>>>> Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? >>>>>>> >>>>>>> Graham >>>>>>> >>>>>>> >>>>>>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode >> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On iOS use mergNotify as below. Works well for me. >>>>>>>> >>>>>>>> on openStack >>>>>>>> mergNotify "UIApplicationWillResignActiveNotification" >>>>>>>> mergNotify "UIApplicationDidBecomeActiveNotification" >>>>>>>> end openStack >>>>>>>> >>>>>>>> on UIApplicationWillResignActiveNotification pUserInfo >>>>>>>> // Your code before the app goes to background >>>>>>>> -- your code here to handle going to the background >>>>>>>> end UIApplicationWillResignActiveNotification >>>>>>>> >>>>>>>> on UIApplicationDidBecomeActiveNotification pUserInfo >>>>>>>> // Your code after the app comes back to foreground >>>>>>>> -- your code here to handle your app becoming active >>>>>>>> end UIApplicationDidBecomeActiveNotification >>>>>>>> >>>>>>>> Henry >>>>>>> >>>>>>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode >> wrote: >>>>>>>> >>>>>>>> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >>>>>>>> >>>>>>>> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >>>>>>>> >>>>>>>> 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 marksmithhfx at gmail.com Tue Nov 24 20:16:06 2020 From: marksmithhfx at gmail.com (Mark Smith) Date: Wed, 25 Nov 2020 01:16:06 +0000 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: <6EF9268E-7068-4BF7-8981-CAE98B9728C8@gmail.com> References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> <5F79402F-140F-41B4-B6A0-F22CBEB83101@gmail.com> <6EF9268E-7068-4BF7-8981-CAE98B9728C8@gmail.com> Message-ID: <670109F9-F218-46FF-A40B-632AB4F0EE4D@gmail.com> Hi Graham, figured it out. If I replace the app, and while developing I do that pretty frequently, the first ?WillBecomeActive? does not get detected because the app has not yet registered for notifications. So over 48 hours I saw 3 such events and while I did not record the times I installed, if I replaced it 3 times then this data would make perfect sense. I hope that is clear, and if not feel free to ask me to explain it better. But I think the data indicate that everything is working A-OK. Sorry for any confusion I might have caused, but at least I got to the bottom of my own problem :) I?ll send Elanor an email to confirm and let her know. Mark > On Nov 25, 2020, at 1:00 AM, Mark Smith wrote: > > Thanks Graham, > > Nope, just checked and my quotes are not curly. Over a 48 hour period of testing, with multiple startups and shutdowns (33 in total, these were mostly in/out of background not actual exits and restarts) I only saw 3 instances of a double shutdown notification (applicationWillResignActiveNotification) without an intervening startup (applicationDidBecomeActiveNotification) so it?s evidently a very small problem (10% ?). I?ll send the log to Elanor to let her know. From my perspective, not something I am going to fret about. > >> On Nov 24, 2020, at 10:18 PM, Graham Samuel via use-livecode wrote: >> >> An very timely and helpful update from Elanor at the mother ship. My problems with mergNotify were there because the string representing the specific notification ?UIApplicationWillResignActiveNotification? was in curly quotes! I literally didn?t see this, and the script editor didn?t report an error. It might have done something with the colorisation, but as I?m partly colour blind I never take much notice of this aspect of scripts. How the quotes got there is a mystery, as I thought I had simply copied these lines of script from an earlier mail by Henry Lowe, but apparently not. So, problem solved at the price of my red face. >> >> The question about what being ?in the background? actually means remains, and I hope to have an answer for that soon. If I get any info I will send it to the list as a new topic. >> >> Elanor also said: >> >>> I don't know if the issue Mark is seeing is the same one but if you are replying on the list just ask him to contact Support and I'll take a look at his stack too. >> >> >> >> Graham >> >>> On 23 Nov 2020, at 15:23, Graham Samuel via use-livecode wrote: >>> >>> Thanks Mark >>> >>> Well, it does seem to be a bug, but is it in iOS or LC? It is weird that you get inconsistent results. Mine are more consistent, but still wrong. I plan to write to the mother ship and ask their opinion. >>> >>> I am also getting perhaps related inconsistencies in the use of locationChanged messages to get GPS readings, or I think I am. It looks like sometimes when the app goes into the background it switches off the effect of >>> mobileStartTrackingSensor "location" >>> >>> which a script can only do by calling mobileStopTrackingSensor. >>> >>> The apparent effect is that GPS readings just stop coming in, although other activity (in my case, a stopwatch-like timer) continues without a break. I am haunted by the idea that I?ve made some mistake in coding, of course, but it I haven?t then I need to know somehow that the readings have stopped and correct the situation before gaps appear in the record, i.e. within about a second. Can?t do that if I?m not notified of the switch to the background. >>> >>> I have tried to look at the iOS SDK documentation but have become terminally confused - it seems to suggest that apps that go into the background are suspended and ?do not receive events?. If that?s so, how do timer and navigation apps work? They still seem to be doing stuff even while the user is using another app to read the news, make a phone call or whatever. There must be a state between being active and just sitting in RAM and doing nothing. What is that state called and how does one invoke it? >>> >>> Over my head... >>> >>> Graham >>> >>>> On 22 Nov 2020, at 13:30, Mark Smith wrote: >>>> >>>> Hi Graham, >>>> >>>> So, apparently not 100% accurate but here are the results of some late hour testing yesterday (I was also interested in evaluating something I needed to occur around the time the date changed, hence the late hour testing.). But as you can see, I had 3 ResignActiveNotifications before the first DidBecomeActive occurred. >>>> >>>> 2:33:58 PM UIApplicationWillResignActiveNotification detected in SS >>>> >>>> 11:22:40 PM UIApplicationWillResignActiveNotification detected in SS >>>> >>>> 11:25:50 PM UIApplicationWillResignActiveNotification detected in SS >>>> >>>> 11:33:19 PM UIApplicationDidBecomeActiveNotification detected in SS >>>> >>>> 11:33:26 PM UIApplicationWillResignActiveNotification detected in SS >>>> >>>> 1:21:48 AM UIApplicationDidBecomeActiveNotification detected in SS >>>> >>>> 1:29:38 AM UIApplicationWillResignActiveNotification detected in SS >>>> >>>> >>>> >>>>> On Nov 21, 2020, at 11:33 PM, Mark Smith > wrote: >>>>> >>>>> Graham, I think there might be a problem. I just re-enabled this code in one of my applications and the only thing I am seeing is the WillResignActiveNotification message, and not the DidBecomeActiveNotification message. Odd also because it is the exact opposite of what you are seeing, so we are both seeing half of the story, just not the same half :) I?ll keep it enabled and see if I can spot any patterns. >>>>> >>>>> Mark >>>>> >>>>> >>>>>> On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode > wrote: >>>>>> >>>>>> Thanks Mark >>>>>> >>>>>> I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn?t. It?s likely that I made a silly mistake but I can?t see what it is. I put other stuff in the log, so it?s not just a case of the text being overwritten. Obviously the app does go into the background, since it is detected coming back to the foreground. This test was on the Xcode simulator, but I got essentially the same results on a real iPhone. >>>>>> >>>>>> Strange. >>>>>> >>>>>> Graham >>>>>> >>>>>> >>>>>>> On 20 Nov 2020, at 17:21, Mark Smith > wrote: >>>>>>> >>>>>>> Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. >>>>>>> put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") >>>>>>> >>>>>>> for example? >>>>>>> >>>>>>> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script >>>>>>> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode >> wrote: >>>>>>>> >>>>>>>> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. >>>>>>>> >>>>>>>> I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. >>>>>>>> >>>>>>>> Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? >>>>>>>> >>>>>>>> Graham >>>>>>>> >>>>>>>> >>>>>>>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode >> wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On iOS use mergNotify as below. Works well for me. >>>>>>>>> >>>>>>>>> on openStack >>>>>>>>> mergNotify "UIApplicationWillResignActiveNotification" >>>>>>>>> mergNotify "UIApplicationDidBecomeActiveNotification" >>>>>>>>> end openStack >>>>>>>>> >>>>>>>>> on UIApplicationWillResignActiveNotification pUserInfo >>>>>>>>> // Your code before the app goes to background >>>>>>>>> -- your code here to handle going to the background >>>>>>>>> end UIApplicationWillResignActiveNotification >>>>>>>>> >>>>>>>>> on UIApplicationDidBecomeActiveNotification pUserInfo >>>>>>>>> // Your code after the app comes back to foreground >>>>>>>>> -- your code here to handle your app becoming active >>>>>>>>> end UIApplicationDidBecomeActiveNotification >>>>>>>>> >>>>>>>>> Henry >>>>>>>> >>>>>>>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode >> wrote: >>>>>>>>> >>>>>>>>> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >>>>>>>>> >>>>>>>>> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >>>>>>>>> >>>>>>>>> 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 mailkeliko01 at gmail.com Wed Nov 25 01:22:44 2020 From: mailkeliko01 at gmail.com (Riko Abadi) Date: Wed, 25 Nov 2020 13:22:44 +0700 Subject: Android App Bundle format. Message-ID: Starting August 2021, the Google Play Console will require all new apps to Publish with the Android App Bundle format. https://android-developers.googleblog.com/2020/11/new-android-app-bundle-and-target-api.html What do you think as a livecode developer? From scott at elementarysoftware.com Wed Nov 25 09:56:31 2020 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 25 Nov 2020 06:56:31 -0800 Subject: iOS Emoji keyboard does not print to PDF?! In-Reply-To: References: <272e0857-c426-876c-c642-9ccdeb3d629d@gmail.com> <6BD04126-1B2B-4142-9B8D-65ACF3D4EC5F@elementarysoftware.com> Message-ID: I put together a library stack that removes emojis from a field and replaces them with an imageSource so that the field can print to pdf on mobile. I wasn?t sure how to build a generalized solution that looked for emojis inside a range of codepoints so I settled for a brute-force solution. Hopefully bug 22982 gets solved and this lib will become irrelevant. Feel free to use. (MIT license) https://www.elementarysoftware.com/livecode/emojiswaplib.html -- 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 Oct 26, 2020, at 2:13 AM, William de Smet via use-livecode wrote: > > Thanks for answering Scott! > Not a big issue for me at the moment. > > Greetings, > > William > > > Op ma 26 okt. 2020 om 03:57 schreef scott--- via use-livecode < > use-livecode at lists.runrev.com>: > >> I think that emojis not rendering to PDF has been a longstanding issue? >> and I thought that I had filed a bug report on this but looking at >> bugzilla, I failed to find it. (sigh). I have code in two of my apps that >> alert the user, should PDF creation fail, that they should remove emojis >> from their text. I have on my to-do list a workaround project that would >> use imageSource to substitute for known emoji codes. So, while none of this >> is of any help, I feel your pain :- ) >> >> -- >> 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 Oct 25, 2020, at 2:34 PM, William de Smet via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi Richmond, >>> >>> That?s the short version of the code. >>> Like I said it works fine as long as it is text only. When an Emoji from >> the iOS keyboard is added the Emoji is not printed in the PDF. >>> >>> >>> >>> >>> >>> >>>> Op 25 okt. 2020 om 21:13 heeft Richmond via use-livecode < >> use-livecode at lists.runrev.com> het volgende geschreven: >>>> >>>> ?" 'export snapshot' to PDF as PNG" sounds a bit odd. >>>> >>>>> On 25.10.20 21:47, William de Smet via use-livecode wrote: >>>>> Hi there, >>>>> >>>>> A simple iOS app in which the user chooses the iOS keyboard to add >> text and >>>>> an Emoji to a standard LC text field. >>>>> I use 'export snapshot' to PDF as PNG to print to PDF. >>>>> When there is only text in the field all text is printed to the PDF but >>>>> when an Emoji is added the Emoji is not printed to the PDF. >>>>> Am I missing something? >>>>> Do I need to add some code? >>>>> >>>>> iOS 13 >>>>> LC 9,6,1 Indy >>>>> >>>>> >>>>> greetings, >>>>> >>>>> William >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode From bvlahos at mac.com Wed Nov 25 17:28:43 2020 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 25 Nov 2020 14:28:43 -0800 Subject: LC 9.6.2RC fix for tabs still a problem for Big Sur Message-ID: My application is a standalone stub that opens a stack. If I open the stack in the IDE, the tabs look correct. If my application opens the stack, the tabs have the artifact that the selected tab is white text on a white background. Strange. If I create a standalone with tabs they look correct in both the IDE and the standalone. I don?t know what would be different when my application opens the stack. Thanks for any suggestions. Bill Vlahos From bobsneidar at iotecdigital.com Wed Nov 25 18:16:10 2020 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 25 Nov 2020 23:16:10 +0000 Subject: LC 9.6.2RC fix for tabs still a problem for Big Sur In-Reply-To: References: Message-ID: <0AEFAC4A-16CE-40B4-B291-B3DA3C496CB7@iotecdigital.com> Precisely why I created my tab group object. Bob S On Nov 25, 2020, at 2:28 PM, Bill Vlahos via use-livecode > wrote: My application is a standalone stub that opens a stack. If I open the stack in the IDE, the tabs look correct. If my application opens the stack, the tabs have the artifact that the selected tab is white text on a white background. Strange. If I create a standalone with tabs they look correct in both the IDE and the standalone. I don?t know what would be different when my application opens the stack. Thanks for any suggestions. Bill Vlahos From bvlahos at mac.com Wed Nov 25 19:52:52 2020 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 25 Nov 2020 16:52:52 -0800 Subject: LC 9.6.2RC fix for tabs still a problem for Big Sur In-Reply-To: References: Message-ID: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> I figured out the problem. Even though I set the backgroundColor of the stack to empty, I also needed to set the backgroundColor of my stub application to empty too. Regards, Bill > On Nov 25, 2020, at 2:28 PM, Bill Vlahos via use-livecode wrote: > > My application is a standalone stub that opens a stack. > > If I open the stack in the IDE, the tabs look correct. If my application opens the stack, the tabs have the artifact that the selected tab is white text on a white background. Strange. > > If I create a standalone with tabs they look correct in both the IDE and the standalone. > > I don?t know what would be different when my application opens the stack. > > Thanks for any suggestions. > > Bill Vlahos > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Nov 26 00:52:47 2020 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Wed, 25 Nov 2020 21:52:47 -0800 Subject: Chromebook apps? In-Reply-To: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> Message-ID: <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> Folks: My son is a 5?th grade teacher. He tells me that apps for elementary school learning must run on ChromeBooks to be used in elementary school. I just want to verify that this means I would be developing an Android app for a Chromebook. I also wonder if there are minimal requirements for a Chromebook that will run Android apps. I?m in the ?thinking about it? stage right now, but would like to hear about any experience or gotchas I need to be aware of for Chromebook apps. Thanks, Bill William A. Prothero Santa Barbara, CA. 93105 http://earthlearningsolutions.org/ From jacque at hyperactivesw.com Thu Nov 26 02:55:35 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 26 Nov 2020 01:55:35 -0600 Subject: Chromebook apps? In-Reply-To: <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> Message-ID: <176038ce8d8.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Right, for Chromebooks you'd develop an Android app. I've been testing two different client projects on Chromebooks. For the most part they run okay, depending on the hardware. One of my apps in particular runs beautifully in tablet mode, but if you rotate the screen to desktop mode it loses its window coordinates and draws incorrectly. That's probably my fault, since the app is locked to portrait orientation. In portrait mode, with fullscreenMode on, it looks great and behaves well. If you launch it in desktop mode it opens in a window the size of the original stack and works fine as long as you don't try to resize the window. But appearance and behavior can vary depending on the Chromebook. I'm having pretty good luck with my Lenovo but my client's Asus sometimes doesn't draw the content quite right. I can't recall the details, something about color I think. I'd love it if LC could look at Chromebook support at some point. It's almost there already, and as you say, Chromebook support is almost mandatory if you are developing for the education market. In fact, with so many schools closed down and students working remotely, Chromebooks are in such high demand that they've become harder to find. They're very popular. Our market is college and university students and a lot of them use Chromebooks. When they ask, we tell them the app may run on their Chromebook but we can't provide support. On a more personal note, I love my Chromebook. They're very fast (they wake from sleep before the lid is fully opened,) virtually immune to malware, lightweight, inexpensive, and extremely portable. They've come a long way from the time when they were basically just a big web browser. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 25, 2020 11:54:54 PM prothero--- via use-livecode wrote: > Folks: > My son is a 5?th grade teacher. He tells me that apps for elementary school > learning must run on ChromeBooks to be used in elementary school. I just > want to verify that this means I would be developing an Android app for a > Chromebook. > > I also wonder if there are minimal requirements for a Chromebook that will > run Android apps. I?m in the ?thinking about it? stage right now, but would > like to hear about any experience or gotchas I need to be aware of for > Chromebook apps. > > Thanks, > Bill > > William A. Prothero > 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 richmondmathewson at gmail.com Thu Nov 26 08:30:31 2020 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 26 Nov 2020 15:30:31 +0200 Subject: Chromebook apps? In-Reply-To: <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> Message-ID: <6ebe8038-0174-6dab-fb72-b8f36f83629a@gmail.com> Is a Chromebook app an Android app? Or, to put things another way . . . I thought I'd be clever and design something for kids at my school to use on their Android phones and tablets . . . Fantastic idea that foundered badly when I worked out that a lot of ANdroid tablets ran on INTEL chips so LiveCode builds for Android wouldn't run on them. Sorry to be damp squish. On 26.11.20 7:52, prothero--- via use-livecode wrote: > Folks: > My son is a 5?th grade teacher. He tells me that apps for elementary school learning must run on ChromeBooks to be used in elementary school. I just want to verify that this means I would be developing an Android app for a Chromebook. > > I also wonder if there are minimal requirements for a Chromebook that will run Android apps. I?m in the ?thinking about it? stage right now, but would like to hear about any experience or gotchas I need to be aware of for Chromebook apps. > > Thanks, > Bill > > William A. Prothero > 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 merakosp at gmail.com Thu Nov 26 08:42:41 2020 From: merakosp at gmail.com (panagiotis merakos) Date: Thu, 26 Nov 2020 15:42:41 +0200 Subject: Chromebook apps? In-Reply-To: <6ebe8038-0174-6dab-fb72-b8f36f83629a@gmail.com> References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> <6ebe8038-0174-6dab-fb72-b8f36f83629a@gmail.com> Message-ID: Hello Richmond, >>>>>>so LiveCode builds for Android wouldn't run on them. LC supports both arm (armv7, arm64) and Intel (x86, x86_64) on Android. Kind regards, Panos -- On Thu, 26 Nov 2020 at 15:31, Richmond via use-livecode < use-livecode at lists.runrev.com> wrote: > Is a Chromebook app an Android app? > > Or, to put things another way . . . > > I thought I'd be clever and design something for kids at my school to > use on their Android > phones and tablets . . . > > Fantastic idea that foundered badly when I worked out that a lot of > ANdroid tablets ran on INTEL chips > so LiveCode builds for Android wouldn't run on them. > > Sorry to be damp squish. > > On 26.11.20 7:52, prothero--- via use-livecode wrote: > > Folks: > > My son is a 5?th grade teacher. He tells me that apps for elementary > school learning must run on ChromeBooks to be used in elementary school. I > just want to verify that this means I would be developing an Android app > for a Chromebook. > > > > I also wonder if there are minimal requirements for a Chromebook that > will run Android apps. I?m in the ?thinking about it? stage right now, but > would like to hear about any experience or gotchas I need to be aware of > for Chromebook apps. > > > > Thanks, > > Bill > > > > William A. Prothero > > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 26 09:17:35 2020 From: klaus at major-k.de (Klaus major-k) Date: Thu, 26 Nov 2020 15:17:35 +0100 Subject: scrollbars of treeview widget Message-ID: <335F968A-27CD-4B3A-8B16-FE69DBBE43DD@major-k.de> Hi friends, FYI: I just created an enhancement request to make the scrollbars of the treeview widget a TAD wider, feel free to add a comment. Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From brian at milby7.com Thu Nov 26 09:26:55 2020 From: brian at milby7.com (Brian Milby) Date: Thu, 26 Nov 2020 09:26:55 -0500 Subject: scrollbars of treeview widget In-Reply-To: <335F968A-27CD-4B3A-8B16-FE69DBBE43DD@major-k.de> References: <335F968A-27CD-4B3A-8B16-FE69DBBE43DD@major-k.de> Message-ID: <1C2DD7FD-8938-41FF-92AB-F6FC7507F042@milby7.com> Very easy to implement. I would suggest a setting for the width. I think the intent was to mimic the look of the mobile scroller which isn?t normally grabbed. Sent from my iPhone > On Nov 26, 2020, at 9:18 AM, Klaus major-k via use-livecode wrote: > > ?Hi friends, > > FYI: > I just created an enhancement request to make the scrollbars > of the treeview widget a TAD wider, feel free to add a comment. > > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > 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 Thu Nov 26 09:30:58 2020 From: klaus at major-k.de (Klaus major-k) Date: Thu, 26 Nov 2020 15:30:58 +0100 Subject: scrollbars of treeview widget In-Reply-To: <1C2DD7FD-8938-41FF-92AB-F6FC7507F042@milby7.com> References: <335F968A-27CD-4B3A-8B16-FE69DBBE43DD@major-k.de> <1C2DD7FD-8938-41FF-92AB-F6FC7507F042@milby7.com> Message-ID: <27DD16E8-BA5D-4437-B952-C1577957C34D@major-k.de> Hi Brian, > Am 26.11.2020 um 15:26 schrieb Brian Milby via use-livecode : > > Very easy to implement. OK, good to hear, please add this already to LC9.6.2 RC2. 8-) > I would suggest a setting for the width. I think the intent was to mimic the look of the mobile scroller which isn?t normally grabbed. Hey, the desktop is still alive, and we ususally GRAB things here, mes amis! :-D Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From livfoss at mac.com Thu Nov 26 11:04:22 2020 From: livfoss at mac.com (Graham Samuel) Date: Thu, 26 Nov 2020 17:04:22 +0100 Subject: iOS notification app goes into background doesn't seem to work In-Reply-To: <670109F9-F218-46FF-A40B-632AB4F0EE4D@gmail.com> References: <8EC2DA6D-A422-4BC6-B80B-0834A475E4C6@mac.com> <38A3F1C3-1BD7-4809-B2E2-9C8B0D70E543@gmail.com> <5F79402F-140F-41B4-B6A0-F22CBEB83101@gmail.com> <6EF9268E-7068-4BF7-8981-CAE98B9728C8@gmail.com> <670109F9-F218-46FF-A40B-632AB4F0EE4D@gmail.com> Message-ID: <25D095D3-4BA5-4C83-8750-4A106098A376@mac.com> Hi Mark - glad you got an explanation. I am still getting some anomalies in these notifications, and more importantly from my point of view I?m seeing problems with receiving sensor messages when the app goes into the background. Elanor thinks there is a bug there (tho so far unconfirmed - 22999). I will let this dog (or dogs) sleep until I hear more from the mother ship. Graham > On 25 Nov 2020, at 02:16, Mark Smith wrote: > > Hi Graham, figured it out. If I replace the app, and while developing I do that pretty frequently, the first ?WillBecomeActive? does not get detected because the app has not yet registered for notifications. So over 48 hours I saw 3 such events and while I did not record the times I installed, if I replaced it 3 times then this data would make perfect sense. I hope that is clear, and if not feel free to ask me to explain it better. But I think the data indicate that everything is working A-OK. > > Sorry for any confusion I might have caused, but at least I got to the bottom of my own problem :) I?ll send Elanor an email to confirm and let her know. > > Mark > > >> On Nov 25, 2020, at 1:00 AM, Mark Smith wrote: >> >> Thanks Graham, >> >> Nope, just checked and my quotes are not curly. Over a 48 hour period of testing, with multiple startups and shutdowns (33 in total, these were mostly in/out of background not actual exits and restarts) I only saw 3 instances of a double shutdown notification (applicationWillResignActiveNotification) without an intervening startup (applicationDidBecomeActiveNotification) so it?s evidently a very small problem (10% ?). I?ll send the log to Elanor to let her know. From my perspective, not something I am going to fret about. >> >>> On Nov 24, 2020, at 10:18 PM, Graham Samuel via use-livecode wrote: >>> >>> An very timely and helpful update from Elanor at the mother ship. My problems with mergNotify were there because the string representing the specific notification ?UIApplicationWillResignActiveNotification? was in curly quotes! I literally didn?t see this, and the script editor didn?t report an error. It might have done something with the colorisation, but as I?m partly colour blind I never take much notice of this aspect of scripts. How the quotes got there is a mystery, as I thought I had simply copied these lines of script from an earlier mail by Henry Lowe, but apparently not. So, problem solved at the price of my red face. >>> >>> The question about what being ?in the background? actually means remains, and I hope to have an answer for that soon. If I get any info I will send it to the list as a new topic. >>> >>> Elanor also said: >>> >>>> I don't know if the issue Mark is seeing is the same one but if you are replying on the list just ask him to contact Support and I'll take a look at his stack too. >>> >>> >>> >>> Graham >>> >>>> On 23 Nov 2020, at 15:23, Graham Samuel via use-livecode wrote: >>>> >>>> Thanks Mark >>>> >>>> Well, it does seem to be a bug, but is it in iOS or LC? It is weird that you get inconsistent results. Mine are more consistent, but still wrong. I plan to write to the mother ship and ask their opinion. >>>> >>>> I am also getting perhaps related inconsistencies in the use of locationChanged messages to get GPS readings, or I think I am. It looks like sometimes when the app goes into the background it switches off the effect of >>>> mobileStartTrackingSensor "location" >>>> >>>> which a script can only do by calling mobileStopTrackingSensor. >>>> >>>> The apparent effect is that GPS readings just stop coming in, although other activity (in my case, a stopwatch-like timer) continues without a break. I am haunted by the idea that I?ve made some mistake in coding, of course, but it I haven?t then I need to know somehow that the readings have stopped and correct the situation before gaps appear in the record, i.e. within about a second. Can?t do that if I?m not notified of the switch to the background. >>>> >>>> I have tried to look at the iOS SDK documentation but have become terminally confused - it seems to suggest that apps that go into the background are suspended and ?do not receive events?. If that?s so, how do timer and navigation apps work? They still seem to be doing stuff even while the user is using another app to read the news, make a phone call or whatever. There must be a state between being active and just sitting in RAM and doing nothing. What is that state called and how does one invoke it? >>>> >>>> Over my head... >>>> >>>> Graham >>>> >>>>> On 22 Nov 2020, at 13:30, Mark Smith wrote: >>>>> >>>>> Hi Graham, >>>>> >>>>> So, apparently not 100% accurate but here are the results of some late hour testing yesterday (I was also interested in evaluating something I needed to occur around the time the date changed, hence the late hour testing.). But as you can see, I had 3 ResignActiveNotifications before the first DidBecomeActive occurred. >>>>> >>>>> 2:33:58 PM UIApplicationWillResignActiveNotification detected in SS >>>>> >>>>> 11:22:40 PM UIApplicationWillResignActiveNotification detected in SS >>>>> >>>>> 11:25:50 PM UIApplicationWillResignActiveNotification detected in SS >>>>> >>>>> 11:33:19 PM UIApplicationDidBecomeActiveNotification detected in SS >>>>> >>>>> 11:33:26 PM UIApplicationWillResignActiveNotification detected in SS >>>>> >>>>> 1:21:48 AM UIApplicationDidBecomeActiveNotification detected in SS >>>>> >>>>> 1:29:38 AM UIApplicationWillResignActiveNotification detected in SS >>>>> >>>>> >>>>> >>>>>> On Nov 21, 2020, at 11:33 PM, Mark Smith > wrote: >>>>>> >>>>>> Graham, I think there might be a problem. I just re-enabled this code in one of my applications and the only thing I am seeing is the WillResignActiveNotification message, and not the DidBecomeActiveNotification message. Odd also because it is the exact opposite of what you are seeing, so we are both seeing half of the story, just not the same half :) I?ll keep it enabled and see if I can spot any patterns. >>>>>> >>>>>> Mark >>>>>> >>>>>> >>>>>>> On Nov 20, 2020, at 9:48 PM, Graham Samuel via use-livecode > wrote: >>>>>>> >>>>>>> Thanks Mark >>>>>>> >>>>>>> I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn?t. It?s likely that I made a silly mistake but I can?t see what it is. I put other stuff in the log, so it?s not just a case of the text being overwritten. Obviously the app does go into the background, since it is detected coming back to the foreground. This test was on the Xcode simulator, but I got essentially the same results on a real iPhone. >>>>>>> >>>>>>> Strange. >>>>>>> >>>>>>> Graham >>>>>>> >>>>>>> >>>>>>>> On 20 Nov 2020, at 17:21, Mark Smith > wrote: >>>>>>>> >>>>>>>> Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your ?sandbox? to your device. You?ll find the log file in there. >>>>>>>> put the long time && "UIApplicationWillResignActiveNotification detected" & return after url ("file:" & specialFolderPath("documents") & "/log.txt") >>>>>>>> >>>>>>>> for example? >>>>>>>> >>>>>>>> 10:39:05 AM UIApplicationWillResignActiveNotification detected in Stack Script >>>>>>>> 10:57:23 AM UIApplicationDidBecomeActiveNotification detected in Stack Script >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> On Nov 20, 2020, at 3:23 PM, Graham Samuel via use-livecode >> wrote: >>>>>>>>> >>>>>>>>> Thanks to Mark Smith and Henry Lowe, I know that I?m supposed to set up mergNotify for two notifications as below. >>>>>>>>> >>>>>>>>> I believe I?ve done this, and I?ve set a monitoring action (putting a text into a field) to show that these notifications have happened. >>>>>>>>> >>>>>>>>> Of course it may be just me, but so far, I only seem to get the notification when the app comes back into the foreground (so logically it must have gone the background first), but I just don?t get the ?going in to the background' notification, or at least my monitoring doesn?t work. Is there some trick of timing that I?ve missed? >>>>>>>>> >>>>>>>>> Graham >>>>>>>>> >>>>>>>>> >>>>>>>>>> On 17 Nov 2020, at 20:07, HENRY LOWE via use-livecode >> wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On iOS use mergNotify as below. Works well for me. >>>>>>>>>> >>>>>>>>>> on openStack >>>>>>>>>> mergNotify "UIApplicationWillResignActiveNotification" >>>>>>>>>> mergNotify "UIApplicationDidBecomeActiveNotification" >>>>>>>>>> end openStack >>>>>>>>>> >>>>>>>>>> on UIApplicationWillResignActiveNotification pUserInfo >>>>>>>>>> // Your code before the app goes to background >>>>>>>>>> -- your code here to handle going to the background >>>>>>>>>> end UIApplicationWillResignActiveNotification >>>>>>>>>> >>>>>>>>>> on UIApplicationDidBecomeActiveNotification pUserInfo >>>>>>>>>> // Your code after the app comes back to foreground >>>>>>>>>> -- your code here to handle your app becoming active >>>>>>>>>> end UIApplicationDidBecomeActiveNotification >>>>>>>>>> >>>>>>>>>> Henry >>>>>>>>> >>>>>>>>>> On 17 Nov 2020, at 23:39, Mark Smith via use-livecode >> wrote: >>>>>>>>>> >>>>>>>>>> And just a reminder that, under iOS, you?ll have to register to receive a ? UIApplicationWillResignActiveNotification? message, and then write a handler to respond to that (PS only register once in your stack script ? I learned the hard way). It?s documented under mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my ?on shutdownRequest? handlers were being ignored). >>>>>>>>>> >>>>>>>>>> Jacque, I believe this is what you are looking for to be notified when you go into the background. I do some db cleanup at that time and it seems to work. >>>>>>>>>> >>>>>>>>>> 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 prothero at earthlearningsolutions.org Thu Nov 26 11:48:26 2020 From: prothero at earthlearningsolutions.org (ELS Prothero) Date: Thu, 26 Nov 2020 08:48:26 -0800 Subject: Chromebook apps? In-Reply-To: <176038ce8d8.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <176038ce8d8.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <17ABEBBC-1B3E-4D64-8D3E-BA69EEA0636D@earthlearningsolutions.org> Thanks for the perspective, Jacque, Hmm, it could be venturing into a swamp for me, tho. Given the popularity of Chromebooks, it would be great if Livecode could be invested in support for them. In my own case, I need to be cautious about where I spend my effort. I?m a happily retired ex-educator and giving away any apps I make, so getting into an area with a lot of deployment idiosyncrasies may not be realistic. Have a nice thanksgiving, all Yanks and Yank sympathizers! Bill William Prothero http://es.earthednet.org > On Nov 25, 2020, at 11:56 PM, J. Landman Gay via use-livecode wrote: > > ?Right, for Chromebooks you'd develop an Android app. I've been testing two different client projects on Chromebooks. For the most part they run okay, depending on the hardware. One of my apps in particular runs beautifully in tablet mode, but if you rotate the screen to desktop mode it loses its window coordinates and draws incorrectly. That's probably my fault, since the app is locked to portrait orientation. In portrait mode, with fullscreenMode on, it looks great and behaves well. If you launch it in desktop mode it opens in a window the size of the original stack and works fine as long as you don't try to resize the window. > > > But appearance and behavior can vary depending on the Chromebook. I'm having pretty good luck with my Lenovo but my client's Asus sometimes doesn't draw the content quite right. I can't recall the details, something about color I think. I'd love it if LC could look at Chromebook support at some point. It's almost there already, and as you say, Chromebook support is almost mandatory if you are developing for the education market. In fact, with so many schools closed down and students working remotely, Chromebooks are in such high demand that they've become harder to find. They're very popular. Our market is college and university students and a lot of them use Chromebooks. When they ask, we tell them the app may run on their Chromebook but we can't provide support. > > > On a more personal note, I love my Chromebook. They're very fast (they wake from sleep before the lid is fully opened,) virtually immune to malware, lightweight, inexpensive, and extremely portable. They've come a long way from the time when they were basically just a big web browser. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On November 25, 2020 11:54:54 PM prothero--- via use-livecode wrote: >> >> Folks: >> My son is a 5?th grade teacher. He tells me that apps for elementary school learning must run on ChromeBooks to be used in elementary school. I just want to verify that this means I would be developing an Android app for a Chromebook. >> >> I also wonder if there are minimal requirements for a Chromebook that will run Android apps. I?m in the ?thinking about it? stage right now, but would like to hear about any experience or gotchas I need to be aware of for Chromebook apps. >> >> Thanks, >> Bill >> >> William A. Prothero >> 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 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 26 12:18:53 2020 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 26 Nov 2020 11:18:53 -0600 Subject: Chromebook apps? In-Reply-To: <6ebe8038-0174-6dab-fb72-b8f36f83629a@gmail.com> References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> <6ebe8038-0174-6dab-fb72-b8f36f83629a@gmail.com> Message-ID: <1760590a048.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Android apps run in an emulator on Chromebooks. I forgot to mention that the emulator is only 32-bit so you have to build ARM 7 apps for Chromebook. I haven't needed to build an x86 app, my tests have all run okay on three different models. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 26, 2020 7:32:50 AM Richmond via use-livecode wrote: > Is a Chromebook app an Android app? > > Or, to put things another way . . . > > I thought I'd be clever and design something for kids at my school to > use on their Android > phones and tablets . . . > > Fantastic idea that foundered badly when I worked out that a lot of > ANdroid tablets ran on INTEL chips > so LiveCode builds for Android wouldn't run on them. > > Sorry to be damp squish. > > On 26.11.20 7:52, prothero--- via use-livecode wrote: >> Folks: >> My son is a 5?th grade teacher. He tells me that apps for elementary school >> learning must run on ChromeBooks to be used in elementary school. I just >> want to verify that this means I would be developing an Android app for a >> Chromebook. >> >> I also wonder if there are minimal requirements for a Chromebook that will >> run Android apps. I?m in the ?thinking about it? stage right now, but would >> like to hear about any experience or gotchas I need to be aware of for >> Chromebook apps. >> >> Thanks, >> Bill >> >> William A. Prothero >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Nov 26 12:28:23 2020 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 26 Nov 2020 12:28:23 -0500 Subject: Chromebook apps? In-Reply-To: <1760590a048.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> <6ebe8038-0174-6dab-fb72-b8f36f83629a@gmail.com> <1760590a048.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <004401d6c419$8ddb14e0$a9913ea0$@net> Haven't looked close at CBs but if it's x86 then an x86 build performance will be 8-10 times faster than an app running in an arm emulator. At least that's what I measured using an x86 Android tablet. 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: Thursday, November 26, 2020 12:19 PM To: How to use LiveCode Cc: J. Landman Gay Subject: Re: Chromebook apps? Android apps run in an emulator on Chromebooks. I forgot to mention that the emulator is only 32-bit so you have to build ARM 7 apps for Chromebook. I haven't needed to build an x86 app, my tests have all run okay on three different models. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On November 26, 2020 7:32:50 AM Richmond via use-livecode wrote: > Is a Chromebook app an Android app? > > Or, to put things another way . . . > > I thought I'd be clever and design something for kids at my school to > use on their Android phones and tablets . . . > > Fantastic idea that foundered badly when I worked out that a lot of > ANdroid tablets ran on INTEL chips so LiveCode builds for Android > wouldn't run on them. > > Sorry to be damp squish. > > On 26.11.20 7:52, prothero--- via use-livecode wrote: >> Folks: >> My son is a 5?th grade teacher. He tells me that apps for elementary >> school learning must run on ChromeBooks to be used in elementary >> school. I just want to verify that this means I would be developing >> an Android app for a Chromebook. >> >> I also wonder if there are minimal requirements for a Chromebook that >> will run Android apps. I?m in the ?thinking about it? stage right >> now, but would like to hear about any experience or gotchas I need to >> be aware of for Chromebook apps. >> >> Thanks, >> Bill >> >> William A. Prothero >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Thu Nov 26 12:26:24 2020 From: kee.nethery at elloco.com (Kee Nethery) Date: Thu, 26 Nov 2020 09:26:24 -0800 Subject: Chromebook apps? In-Reply-To: <1760590a048.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1760590a048.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: If you are deploying a single purpose system, for example voter registration or data collection or multiuser simulations/games, Chromebooks are the way to go. And I can see LiveCode as the software for those single purpose custom built systems. Kee Nethery > On Nov 26, 2020, at 9:19 AM, J. Landman Gay via use-livecode wrote: > > ?Android apps run in an emulator on Chromebooks. I forgot to mention that the emulator is only 32-bit so you have to build ARM 7 apps for Chromebook. I haven't needed to build an x86 app, my tests have all run okay on three different models. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com >> On November 26, 2020 7:32:50 AM Richmond via use-livecode wrote: >> >> Is a Chromebook app an Android app? >> >> Or, to put things another way . . . >> >> I thought I'd be clever and design something for kids at my school to >> use on their Android >> phones and tablets . . . >> >> Fantastic idea that foundered badly when I worked out that a lot of >> ANdroid tablets ran on INTEL chips >> so LiveCode builds for Android wouldn't run on them. >> >> Sorry to be damp squish. >> >>> On 26.11.20 7:52, prothero--- via use-livecode wrote: >>> Folks: >>> My son is a 5?th grade teacher. He tells me that apps for elementary school learning must run on ChromeBooks to be used in elementary school. I just want to verify that this means I would be developing an Android app for a Chromebook. >>> >>> I also wonder if there are minimal requirements for a Chromebook that will run Android apps. I?m in the ?thinking about it? stage right now, but would like to hear about any experience or gotchas I need to be aware of for Chromebook apps. >>> >>> Thanks, >>> Bill >>> >>> William A. Prothero >>> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Nov 26 14:14:40 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 26 Nov 2020 14:14:40 -0500 Subject: Chromebook apps? In-Reply-To: <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> Message-ID: <25C89C8A-96B6-40BC-BE42-77FF0FD8220B@all-auctions.com> Hi Bill, If you make your app a webpage instead by using a LiveCode Server, then everyone can just visit your website. It will run on all computers with web access, not just ChromeBooks. Good luck with whatever you decide to do! Rick > On Nov 26, 2020, at 12:52 AM, prothero--- via use-livecode wrote: > > Folks: > My son is a 5?th grade teacher. He tells me that apps for elementary school learning must run on ChromeBooks to be used in elementary school. I just want to verify that this means I would be developing an Android app for a Chromebook. > > I also wonder if there are minimal requirements for a Chromebook that will run Android apps. I?m in the ?thinking about it? stage right now, but would like to hear about any experience or gotchas I need to be aware of for Chromebook apps. > > Thanks, > Bill > > William A. Prothero > 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 prothero at earthlearningsolutions.org Fri Nov 27 00:46:50 2020 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Thu, 26 Nov 2020 21:46:50 -0800 Subject: Chromebook apps? In-Reply-To: <25C89C8A-96B6-40BC-BE42-77FF0FD8220B@all-auctions.com> References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> <25C89C8A-96B6-40BC-BE42-77FF0FD8220B@all-auctions.com> Message-ID: Rick: Thanks. I?ve considered that. But my app is pretty complex. There is interactive maps plotting earthquakes, elevations, ages, etc, graphics capture and editing, writing, lots of complex actions that I think would require a major time investment to do on the web. It is actually something I've thought about, but I?m not ready to take that on yet. In case you?re curious, my demo video of the old 32bit version that I?m building my update on is at: https://earthlearningsolutions.org Best, Bill William A. Prothero Santa Barbara, CA. 93105 http://earthlearningsolutions.org/ > On Nov 26, 2020, at 11:14 AM, Rick Harrison via use-livecode wrote: > > Hi Bill, > > If you make your app a webpage instead by using > a LiveCode Server, then everyone can just visit your > website. It will run on all computers with web > access, not just ChromeBooks. > > Good luck with whatever you decide to do! > > Rick > >> On Nov 26, 2020, at 12:52 AM, prothero--- via use-livecode wrote: >> >> Folks: >> My son is a 5?th grade teacher. He tells me that apps for elementary school learning must run on ChromeBooks to be used in elementary school. I just want to verify that this means I would be developing an Android app for a Chromebook. >> >> I also wonder if there are minimal requirements for a Chromebook that will run Android apps. I?m in the ?thinking about it? stage right now, but would like to hear about any experience or gotchas I need to be aware of for Chromebook apps. >> >> Thanks, >> Bill >> >> William A. Prothero >> 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jeejeestudio at gmail.com Fri Nov 27 09:21:53 2020 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Fri, 27 Nov 2020 15:21:53 +0100 Subject: Chromebook apps? In-Reply-To: References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> <6ebe8038-0174-6dab-fb72-b8f36f83629a@gmail.com> Message-ID: <74cf851e-08de-54ab-0553-875c1797c06a@gmail.com> And note that the Intel chips are a minor these days on Android, it's mostly ARM Op 26-11-2020 om 14:42 schreef panagiotis merakos via use-livecode: > Hello Richmond, > >>>>>>> so LiveCode builds for Android wouldn't run on them. > LC supports both arm (armv7, arm64) and Intel (x86, x86_64) on Android. > > Kind regards, > Panos > -- > > On Thu, 26 Nov 2020 at 15:31, Richmond via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Is a Chromebook app an Android app? >> >> Or, to put things another way . . . >> >> I thought I'd be clever and design something for kids at my school to >> use on their Android >> phones and tablets . . . >> >> Fantastic idea that foundered badly when I worked out that a lot of >> ANdroid tablets ran on INTEL chips >> so LiveCode builds for Android wouldn't run on them. >> >> Sorry to be damp squish. >> >> On 26.11.20 7:52, prothero--- via use-livecode wrote: >>> Folks: >>> My son is a 5?th grade teacher. He tells me that apps for elementary >> school learning must run on ChromeBooks to be used in elementary school. I >> just want to verify that this means I would be developing an Android app >> for a Chromebook. >>> I also wonder if there are minimal requirements for a Chromebook that >> will run Android apps. I?m in the ?thinking about it? stage right now, but >> would like to hear about any experience or gotchas I need to be aware of >> for Chromebook apps. >>> Thanks, >>> Bill >>> >>> William A. Prothero >>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Nov 27 12:22:07 2020 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 27 Nov 2020 12:22:07 -0500 Subject: Chromebook apps? In-Reply-To: References: <2B57CAC5-FB4E-4F56-947C-948A2BB6E362@mac.com> <86C23E83-DDEC-4EFC-AF91-9224C960EF49@earthlearningsolutions.org> <25C89C8A-96B6-40BC-BE42-77FF0FD8220B@all-auctions.com> Message-ID: <801FA4BF-AEDE-468B-978A-24E1895C4F71@all-auctions.com> Hi Bill, I took a look at your demo video of your app. I would agree that it is pretty complex and it would require a lot of javascript to provide the interactivity that you want. It would not be an easy web creation process for you. I can see you have put a lot of work into your app! This is the kind of thing we were hoping that LC HTML5 would be able to easily deliver to users, but as you know it hasn?t panned out that way. Good luck with your development work! Rick > On Nov 27, 2020, at 12:46 AM, prothero--- via use-livecode wrote: > > Rick: > Thanks. I?ve considered that. But my app is pretty complex. There is interactive maps plotting earthquakes, elevations, ages, etc, graphics capture and editing, writing, lots of complex actions that I think would require a major time investment to do on the web. It is actually something I've thought about, but I?m not ready to take that on yet. > > In case you?re curious, my demo video of the old 32bit version that I?m building my update on is at: https://earthlearningsolutions.org > > Best, > Bill > > William A. Prothero > Santa Barbara, CA. 93105 > http://earthlearningsolutions.org/ > From prothero at earthlearningsolutions.org Fri Nov 27 12:38:19 2020 From: prothero at earthlearningsolutions.org (ELS Prothero) Date: Fri, 27 Nov 2020 09:38:19 -0800 Subject: Chromebook apps? In-Reply-To: <801FA4BF-AEDE-468B-978A-24E1895C4F71@all-auctions.com> References: <801FA4BF-AEDE-468B-978A-24E1895C4F71@all-auctions.com> Message-ID: Rick, Thanks for your perspective. Frankly, I don?t think it will be particularly easy to make it an app either. I need to do a fair bit of code optimization and on the map, there will have to be a small magnifier that moves with the finger. In the meantime, the desktop version is coming along. Best, Bill William Prothero http://es.earthednet.org > On Nov 27, 2020, at 9:23 AM, Rick Harrison via use-livecode wrote: > > ?Hi Bill, > > I took a look at your demo video of your app. > I would agree that it is pretty complex and > it would require a lot of javascript to provide > the interactivity that you want. It would not > be an easy web creation process for you. > > I can see you have put a lot of work into > your app! > > This is the kind of thing we were hoping > that LC HTML5 would be able to easily > deliver to users, but as you know it hasn?t > panned out that way. > > Good luck with your development work! > > Rick > >> On Nov 27, 2020, at 12:46 AM, prothero--- via use-livecode wrote: >> >> Rick: >> Thanks. I?ve considered that. But my app is pretty complex. There is interactive maps plotting earthquakes, elevations, ages, etc, graphics capture and editing, writing, lots of complex actions that I think would require a major time investment to do on the web. It is actually something I've thought about, but I?m not ready to take that on yet. >> >> In case you?re curious, my demo video of the old 32bit version that I?m building my update on is at: https://earthlearningsolutions.org >> >> Best, >> Bill >> >> William A. Prothero >> 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 hakan at exformedia.se Fri Nov 27 23:01:24 2020 From: hakan at exformedia.se (hakan at exformedia.se) Date: Sat, 28 Nov 2020 05:01:24 +0100 Subject: reading QR-code on Mac from an imported image In-Reply-To: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> References: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> Message-ID: There is a free command line tool called zbar that you maybe could bundle or even create a library from. https://github.com/mchehab/zbar :-H?kan On 20 Nov 2020, 19:17 +0100, Klaus major-k via use-livecode , wrote: > Hi all, > > ist is possible to read the QR-code from an imported image > on the Mac? If yes, how? > The dictionary did not really enlighten me... > > Thanks in advance! > > > Best > > Klaus > -- > Klaus Major > https://www.major-k.de > 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 Sat Nov 28 17:32:06 2020 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sat, 28 Nov 2020 14:32:06 -0800 Subject: Trying to use the Segmented Control In-Reply-To: References: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> Message-ID: Folks: I?m trying to use the segmented control and a navigation button on a card. Its purpose is to go to various location in my app. The only message it seems to respond to is hiliteChanged. But when I then try to set the hilites to empty (so no segments are hilited), it triggers another hiliteChanged message. This makes it a real pain to use for what I want. I see there have been numerous discussions about this control. It?s been a time-waster for me. Bill William A. Prothero Santa Barbara, CA. 93105 http://earthlearningsolutions.org/ From rdimola at evergreeninfo.net Sat Nov 28 18:16:02 2020 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sat, 28 Nov 2020 18:16:02 -0500 Subject: Trying to use the Segmented Control In-Reply-To: References: <8578CB15-5C1F-430B-A29D-A514C9EE8C3C@major-k.de> Message-ID: <001401d6c5dc$73cab5f0$5b6021d0$@net> Put an lock/unlock messages around your code to keep from getting a message when you are doing those type of changes. 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 prothero--- via use-livecode Sent: Saturday, November 28, 2020 5:32 PM To: JJS via use-livecode Cc: prothero at earthlearningsolutions.org Subject: Trying to use the Segmented Control Folks: I?m trying to use the segmented control and a navigation button on a card. Its purpose is to go to various location in my app. The only message it seems to respond to is hiliteChanged. But when I then try to set the hilites to empty (so no segments are hilited), it triggers another hiliteChanged message. This makes it a real pain to use for what I want. I see there have been numerous discussions about this control. It?s been a time-waster for me. Bill William A. Prothero 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 brian at milby7.com Sat Nov 28 18:51:48 2020 From: brian at milby7.com (Brian Milby) Date: Sat, 28 Nov 2020 18:51:48 -0500 Subject: Trying to use the Segmented Control In-Reply-To: <001401d6c5dc$73cab5f0$5b6021d0$@net> References: <001401d6c5dc$73cab5f0$5b6021d0$@net> Message-ID: <2C88BA92-ABD5-4BA3-B1FD-58FCBAA71371@milby7.com> The widget isn?t impacted by lock messages. I have used it in the past to switch cards and just checked for the current card to avoid the loop. That doesn?t sound like it would work here. You could use a script local flag though. Set sNoAction to true before changing the hilight; in your hiliteChanged handler exit if sNoAction is true (but probably reset the flag before exiting). Sent from my iPhone > On Nov 28, 2020, at 6:14 PM, Ralph DiMola via use-livecode wrote: > > ?Put an lock/unlock messages around your code to keep from getting a message when you are doing those type of changes. > > 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 prothero--- via use-livecode > Sent: Saturday, November 28, 2020 5:32 PM > To: JJS via use-livecode > Cc: prothero at earthlearningsolutions.org > Subject: Trying to use the Segmented Control > > Folks: > I?m trying to use the segmented control and a navigation button on a card. Its purpose is to go to various location in my app. The only message it seems to respond to is hiliteChanged. But when I then try to set the hilites to empty (so no segments are hilited), it triggers another hiliteChanged message. This makes it a real pain to use for what I want. > > I see there have been numerous discussions about this control. It?s been a time-waster for me. > > Bill > > William A. Prothero > 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 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Nov 28 20:34:43 2020 From: prothero at earthlearningsolutions.org (ELS Prothero) Date: Sat, 28 Nov 2020 17:34:43 -0800 Subject: Trying to use the Segmented Control In-Reply-To: <2C88BA92-ABD5-4BA3-B1FD-58FCBAA71371@milby7.com> References: <2C88BA92-ABD5-4BA3-B1FD-58FCBAA71371@milby7.com> Message-ID: <1B18DB0A-3533-4EE5-8D6F-EDBA868AEF48@earthlearningsolutions.org> Brian and Ralph, Thanks. I gave up because there are easier, more obvious ways to do what I want. Several posts have mentioned shortcomings in the segmented control widget and I think if it would respond to mousedown and mouseup messages, it would be easier to use in more situations, as well. It could use an upgrade, in my humble opinion! Best, Bill William Prothero http://es.earthednet.org > On Nov 28, 2020, at 3:52 PM, Brian Milby via use-livecode wrote: > > ?The widget isn?t impacted by lock messages. I have used it in the past to switch cards and just checked for the current card to avoid the loop. That doesn?t sound like it would work here. You could use a script local flag though. Set sNoAction to true before changing the hilight; in your hiliteChanged handler exit if sNoAction is true (but probably reset the flag before exiting). > > Sent from my iPhone > >> On Nov 28, 2020, at 6:14 PM, Ralph DiMola via use-livecode wrote: >> >> ?Put an lock/unlock messages around your code to keep from getting a message when you are doing those type of changes. >> >> 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 prothero--- via use-livecode >> Sent: Saturday, November 28, 2020 5:32 PM >> To: JJS via use-livecode >> Cc: prothero at earthlearningsolutions.org >> Subject: Trying to use the Segmented Control >> >> Folks: >> I?m trying to use the segmented control and a navigation button on a card. Its purpose is to go to various location in my app. The only message it seems to respond to is hiliteChanged. But when I then try to set the hilites to empty (so no segments are hilited), it triggers another hiliteChanged message. This makes it a real pain to use for what I want. >> >> I see there have been numerous discussions about this control. It?s been a time-waster for me. >> >> Bill >> >> William A. Prothero >> 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 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Nov 30 06:05:19 2020 From: roland.huettmann at gmail.com (R.H.) Date: Mon, 30 Nov 2020 12:05:19 +0100 Subject: Trying to use the Segmented Control Message-ID: Basically, I think, it is a nice widget. --- But sometimes, I would like to show text with icons together, or each icon in a different color. Possible? --- Then I would like to import whatever icon or image and individually set its size, and margins individually. I like to have access to the details of each segment and it's look and feel. Even each segment's rect and other details should be modifiable. I would like to be able to define the size and the color of each object's border and dividing lines. The only way around is scripting lines or whatever to be used as an overlay -- which is a kludge. But is it possible using LCB to address individual parts and define a more detail-grained API? --- Messages: I do not understand why not standard mouse messages would work here and are not supported. Other messages than just "hilitedChange" should be detected. But it would be important, in my opinion, to allow each and every graphical widget to detect mouseWithin, mouseMove, mouseDown, mouseUp, mouseEnter, mouseLeave, etc. Is there anybody working on such widgets and updating them to newer versions? Is there a version history for each widget? The documentary of the widget (widgets) in the Dictionary could be enhanced with a first date of appearance and dates of new versions as well as enhancement requests or planned enhancements? I assume the author is LiveCode Ltd.? Roland