From terry.judd at unimelb.edu.au Thu Aug 1 02:39:45 2019 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 1 Aug 2019 06:39:45 +0000 Subject: V9.5 may still have issues In-Reply-To: <9522f080-1b37-8770-3f15-311cb357b07f@hyperactivesw.com> References: <7EE8BC8F-CC91-498C-8DCF-B28C47DFD8EB@iotecdigital.com> <9522f080-1b37-8770-3f15-311cb357b07f@hyperactivesw.com> Message-ID: <8CCE5831-4A7D-4D81-9DE2-082EB06F4584@unimelb.edu.au> Can't say I've been experiencing too many crashes (I'm currently using 9.0.4 and 9.5.0 dp1) but the problem where the breakpoint dots (and line numbers) don't keep up with or align with the appropriate script line seems to be a very common occurrence in 9.5 (haven't tried the 'stable' version of 9.5 yet). Terry... ?On 1/8/19, 12:26 pm, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: On 7/31/19 4:10 PM, Bob Sneidar via use-livecode wrote:e > I regularly crash to desktop about once every hour or two. Only once an hour? ;) Yeah, something is off. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Thu Aug 1 02:53:06 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 1 Aug 2019 08:53:06 +0200 Subject: V9.5 may still have issues In-Reply-To: <8CCE5831-4A7D-4D81-9DE2-082EB06F4584@unimelb.edu.au> References: <7EE8BC8F-CC91-498C-8DCF-B28C47DFD8EB@iotecdigital.com> <9522f080-1b37-8770-3f15-311cb357b07f@hyperactivesw.com> <8CCE5831-4A7D-4D81-9DE2-082EB06F4584@unimelb.edu.au> Message-ID: <5562F5AF-914F-4978-AEEE-1B62D4DFBF7F@m-r-d.de> Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 01.08.2019 um 08:39 schrieb Terry Judd via use-livecode >: > > Can't say I've been experiencing too many crashes (I'm currently using 9.0.4 and 9.5.0 dp1) but the problem where the breakpoint dots (and line numbers) don't keep up with or align with the appropriate script line seems to be a very common occurrence in 9.5 (haven't tried the 'stable' version of 9.5 yet). > Btw, if this happens here, i can fix it by pressing Tab to format the script and all is aligned correctly again. Matthias > Terry... > > ?On 1/8/19, 12:26 pm, "use-livecode on behalf of J. Landman Gay via use-livecode" on behalf of use-livecode at lists.runrev.com > wrote: > > On 7/31/19 4:10 PM, Bob Sneidar via use-livecode wrote:e >> I regularly crash to desktop about once every hour or two. > > Only once an hour? ;) > > Yeah, something is off. > > -- > 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 terry.judd at unimelb.edu.au Thu Aug 1 03:02:02 2019 From: terry.judd at unimelb.edu.au (Terry Judd) Date: Thu, 1 Aug 2019 07:02:02 +0000 Subject: V9.5 may still have issues In-Reply-To: <5562F5AF-914F-4978-AEEE-1B62D4DFBF7F@m-r-d.de> References: <7EE8BC8F-CC91-498C-8DCF-B28C47DFD8EB@iotecdigital.com> <9522f080-1b37-8770-3f15-311cb357b07f@hyperactivesw.com> <8CCE5831-4A7D-4D81-9DE2-082EB06F4584@unimelb.edu.au> <5562F5AF-914F-4978-AEEE-1B62D4DFBF7F@m-r-d.de> Message-ID: Thanks Mathias - I'll give that a try. Terry... ?On 1/8/19, 4:53 pm, "use-livecode on behalf of Matthias Rebbe via use-livecode" wrote: Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 01.08.2019 um 08:39 schrieb Terry Judd via use-livecode >: > > Can't say I've been experiencing too many crashes (I'm currently using 9.0.4 and 9.5.0 dp1) but the problem where the breakpoint dots (and line numbers) don't keep up with or align with the appropriate script line seems to be a very common occurrence in 9.5 (haven't tried the 'stable' version of 9.5 yet). > Btw, if this happens here, i can fix it by pressing Tab to format the script and all is aligned correctly again. Matthias > Terry... > > On 1/8/19, 12:26 pm, "use-livecode on behalf of J. Landman Gay via use-livecode" on behalf of use-livecode at lists.runrev.com > wrote: > > On 7/31/19 4:10 PM, Bob Sneidar via use-livecode wrote:e >> I regularly crash to desktop about once every hour or two. > > Only once an hour? ;) > > Yeah, something is off. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Thu Aug 1 06:09:08 2019 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 1 Aug 2019 13:09:08 +0300 Subject: [ANN] Release 9.5.0 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.5.0 STABLE. Getting the Release =================== You can get the release at https://downloads.livecode.com/livecode/ or via the automatic updater. Release Contents ================ LiveCode 9.5.0 STABLE comes with more than 100 bugfixes, compared to the previous STABLE version. Moreover, another 100+ bugfixes, including several memory leak fixes, that were fixed in LiveCode 9.0.x, are now merged into LiveCode 9.5.0. In addition, LiveCode 9.5.0 includes several amazing new features: - New Android Architectures (32/64bit) + support for the latest Google Play Store requirements - Windows 64 bit IDE & deployment support - Static linked code libraries for iOS device builds - Real boolean constants, Infinity constant - Math operation refactor - New container layer mode - New log command and logMessage property - Implement filter where clause - Progress, isSecure and allowUserInteraction features added to browser widget - New returnKeyType & keyboardType field property - Improved sort international to support lots of additional locales - Updated SQLite lib to the latest version - Added support for URI filenames and JSON storage/retrieval in SQLite DBs - Implemented modifier key state access for LCB (e.g. "key is down") - Implemented clip to path for LCB - Several enhancements to Tree View Widget - New mobileSetKeyboardDisplay and mobileGetKeyboardDisplay handlers - mobileSetKeyboardReturnKey on android - PDF Widget (Business Edition) - Android Barcode Scanner widget (Business Edition) - Mac status menu library 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. The full release notes are available from: http://downloads.livecode.com/livecode/9_5_0/LiveCodeNotes-9_5_0.pdf Feedback ======== Please report any bugs encountered on our BugZilla 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 david.bovill at gmail.com Thu Aug 1 07:49:21 2019 From: david.bovill at gmail.com (David Bovill) Date: Thu, 1 Aug 2019 12:49:21 +0100 Subject: Launching a cli server as background process in OSX In-Reply-To: <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> Message-ID: Thanks everyone - Mark - it's not an issue with accessing hugo from shell - get shell ("hugo server") works fine - it just blocks as the server process keeps running as it should do - so I want to background it. Richard - yes I've tried that. In fact I tried all these different techniques to the best of my ability: - *put shell ("hugo server")* - *put shell ("hugo server &")* - *get shell ("nohup hugo server >&/dev/null")* - *get shell ("screen hugo server")* *I've tried various combinations of this in a bash script:* #!/bin/bash > hugo server > wait > echo "All processes done!" - *get shell ("bash bg_hugo_server.sh")* - *open* process "bash bg_hugo_server.sh" - *launch "bg_hugo_server.sh"* It's something over the years I've had a go at several times. Always assumed there would be some way of doing it - so I spent half a day trying to no joy. I guess the question comes down to: - How do you nackground a persistant shell process in Livecode on OSX (and other platforms)? I'll try and get a simple test scenario... On Thu, 1 Aug 2019 at 03:16, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 7/31/19 6:04 PM, Richard Gaskin via use-livecode wrote: > > What works in Terminal generally works in LC's shell function. > > But not always. It's not a login shell, so the environment variables may > well be different. > > David - did you brew-install hugo? If so then my guess is that you need > to provide access to brew for the shell command. Maybe something like > > set the shellcommand to "/bin/bash" > get shell("source ~/.bash_profile ; hugo server ") > > -- > 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 david.bovill at gmail.com Thu Aug 1 07:55:30 2019 From: david.bovill at gmail.com (David Bovill) Date: Thu, 1 Aug 2019 12:55:30 +0100 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> Message-ID: The challenge is to figure out a technique we can use in Livecode to be able to call long running shell processes (typically something like an http server process) without blocking Livecode. To test this without asking anyone to install some cli I thought we could try it with an existing long running process that everyone should have in their terminal - vi So how do you: *put* shell ("vi") I've tested this and it does not crash here on latest OSX. You do have to type command-period a few times to unblock things - but it is more or less safe to try in the message box. I've also tried: *put* shell ("vi &") The aim is to out the process in the background, or some other technique - like make a bash script that contains the line that launches vi (ie "vi") - or perhaps uses screen or tmux, or some trick in Livecode (open process does not work for this on OSX)... Who can crack this tricky nut :) From matthias_livecode_150811 at m-r-d.de Thu Aug 1 08:39:39 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 1 Aug 2019 14:39:39 +0200 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> Message-ID: <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> This let me run it without blocking. It redirects the stdout and stderr if i recall it correct. "vi > /dev/null 2>&1 &" Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 01.08.2019 um 13:55 schrieb David Bovill via use-livecode >: > > The challenge is to figure out a technique we can use in Livecode to be > able to call long running shell processes (typically something like an http > server process) without blocking Livecode. > > To test this without asking anyone to install some cli I thought we could > try it with an existing long running process that everyone should have in > their terminal - vi > > So how do you: > > *put* shell ("vi") > > I've tested this and it does not crash here on latest OSX. You do have to > type command-period a few times to unblock things - but it is more or less > safe to try in the message box. > > I've also tried: > > *put* shell ("vi &") > > The aim is to out the process in the background, or some other technique - > like make a bash script that contains the line that launches vi (ie "vi") - > or perhaps uses screen or tmux, or some trick in Livecode (open process > does not work for this on OSX)... > > Who can crack this tricky nut :) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 1 09:01:10 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 1 Aug 2019 15:01:10 +0200 Subject: Challenge: who can background this shell command? In-Reply-To: <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> Message-ID: I?ve tried my suggestion now with a freshly installed version of Mailhog. Just to make sure that it works with a background process. Maihog normally has to be started from Shell and rund as long as the terminal window stays open. When executing this script put "/users/matthias/downloads/temp/MailHog > /dev/null 2>&1 &" into tShell put shell(tShell) answer 1 MailHog started and runs in background while the script continued and showed the answer dialog. Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 01.08.2019 um 14:39 schrieb Matthias Rebbe via use-livecode >: > > This let me run it without blocking. It redirects the stdout and stderr if i recall it correct. > > "vi > /dev/null 2>&1 &" > > > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > > WinSignMaker Mac > > >> Am 01.08.2019 um 13:55 schrieb David Bovill via use-livecode >>: >> >> The challenge is to figure out a technique we can use in Livecode to be >> able to call long running shell processes (typically something like an http >> server process) without blocking Livecode. >> >> To test this without asking anyone to install some cli I thought we could >> try it with an existing long running process that everyone should have in >> their terminal - vi >> >> So how do you: >> >> *put* shell ("vi") >> >> I've tested this and it does not crash here on latest OSX. You do have to >> type command-period a few times to unblock things - but it is more or less >> safe to try in the message box. >> >> I've also tried: >> >> *put* shell ("vi &") >> >> The aim is to out the process in the background, or some other technique - >> like make a bash script that contains the line that launches vi (ie "vi") - >> or perhaps uses screen or tmux, or some trick in Livecode (open process >> does not work for this on OSX)... >> >> Who can crack this tricky nut :) >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Aug 1 09:20:17 2019 From: david.bovill at gmail.com (David Bovill) Date: Thu, 1 Aug 2019 14:20:17 +0100 Subject: Challenge: who can background this shell command? In-Reply-To: <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> Message-ID: That works in the message box - thanks Matthias. The only thing is I can't (yet) tell what port the server is running on - I can see from the terminal (using pgrep) the process id of the started server - but it does not appear to be serving correctly on the default server port... Do you think there is a way to redirect the output to Livecode's result or it variable - I seem to remember that there have been some changes to that to make such a construction possible in Livecode - alternatively maybe the output can be directed to a temporary file instead of " /dev/null"??? Nearly there :) On Thu, 1 Aug 2019 at 13:39, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > This let me run it without blocking. It redirects the stdout and stderr if > i recall it correct. > > "vi > /dev/null 2>&1 &" > > > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > > > Am 01.08.2019 um 13:55 schrieb David Bovill via use-livecode < > use-livecode at lists.runrev.com >: > > > > The challenge is to figure out a technique we can use in Livecode to be > > able to call long running shell processes (typically something like an > http > > server process) without blocking Livecode. > > > > To test this without asking anyone to install some cli I thought we could > > try it with an existing long running process that everyone should have in > > their terminal - vi > > > > So how do you: > > > > *put* shell ("vi") > > > > I've tested this and it does not crash here on latest OSX. You do have to > > type command-period a few times to unblock things - but it is more or > less > > safe to try in the message box. > > > > I've also tried: > > > > *put* shell ("vi &") > > > > The aim is to out the process in the background, or some other technique > - > > like make a bash script that contains the line that launches vi (ie > "vi") - > > or perhaps uses screen or tmux, or some trick in Livecode (open process > > does not work for this on OSX)... > > > > Who can crack this tricky nut :) > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jjs at krutt.org Thu Aug 1 09:23:59 2019 From: jjs at krutt.org (JJS) Date: Thu, 1 Aug 2019 15:23:59 +0200 Subject: increasing column width of DG keeps running Message-ID: hi, anyone ever had this: Increase the column width of a DG by clicking on the increase button. in the property inspector, keep the mouse down until you think the column is wide enough. Then it keeps running --read increasing the width-- forever, or until probably the max of 65000 somewhere. Have this in all versions of LC in win10. But never made a bug report yet. I can only stop this by ending LC in the task manager. Have you seen this? From matthias_livecode_150811 at m-r-d.de Thu Aug 1 09:54:46 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 1 Aug 2019 15:54:46 +0200 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> Message-ID: put "/users/matthias/downloads/temp/MailHog > /users/matthias/downloads/temp/hubbabubba.txt 2>&1 &" into tShell -- above redirects into file and then don?t ask me.. ;) put shell(tShell) answer URL "file:/users/matthias/downloads/temp/hubbabubba.txt" -- answer dialog shows content of file, which contains in my case the address and port it was binded to. 2019/08/01 15:46:01 Using in-memory storage 2019/08/01 15:46:01 [SMTP] Binding to address: 0.0.0.0:1025 [HTTP] Binding to address: 0.0.0.0:8025 2019/08/01 15:46:01 Serving under http://0.0.0.0:8025/ Creating API v1 with WebPath: Creating API v2 with WebPath: [APIv2] GET /api/v2/messages [APIv2] GET /api/v2/jim [APIv2] GET /api/v2/websocket [APIv1] KEEPALIVE /api/v1/events Be aware, that the background process runs untill you kill it from the shell. Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 01.08.2019 um 15:20 schrieb David Bovill via use-livecode >: > > That works in the message box - thanks Matthias. > > The only thing is I can't (yet) tell what port the server is running on - I > can see from the terminal (using pgrep) the process id of the started > server - but it does not appear to be serving correctly on the default > server port... > > Do you think there is a way to redirect the output to Livecode's result or > it variable - I seem to remember that there have been some changes to that > to make such a construction possible in Livecode - alternatively maybe the > output can be directed to a temporary file instead of " /dev/null"??? > > Nearly there :) > Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From matthias_livecode_150811 at m-r-d.de Thu Aug 1 10:39:56 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 1 Aug 2019 16:39:56 +0200 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> Message-ID: <16F26E77-22A0-497B-B11E-72EC68DFEB90@m-r-d.de> I just noticed that my last post was not easy to read I?ve used the following shell command to redirect to a file instead of to /dev/null /users/matthias/downloads/temp/MailHog > /users/matthias/downloads/temp/hubbabubba.txt 2>&1 & My script looked like this put "/users/matthias/downloads/temp/MailHog > /users/matthias/downloads/temp/hubbabubba.txt 2>&1 &" into tShell put shell(tShell) answer URL "file:/users/matthias/downloads/temp/hubbabubba.txt" The answer dialog showed up immediately after executing the shell and it contained the redirected stdout data. > filename redirects the stdout to a file 2 > &1 redirects stderr to stdout, which in my case is redirected to file hubbabubba.txt & puts the command in the background From bobsneidar at iotecdigital.com Thu Aug 1 10:47:03 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 1 Aug 2019 14:47:03 +0000 Subject: increasing column width of DG keeps running In-Reply-To: References: Message-ID: <83F3F6F4-DEFB-4DCC-BB51-6018D7266F58@iotecdigital.com> I can honestly say I have never used those controls. I type in the min, max and current width. I like round numbers. :-) Bob S > On Aug 1, 2019, at 06:23 , JJS via use-livecode wrote: > > hi, > > > anyone ever had this: > > Increase the column width of a DG by clicking on the increase button. in the property inspector, keep the mouse down until you think the column is wide enough. > > Then it keeps running --read increasing the width-- forever, or until probably the max of 65000 somewhere. > > Have this in all versions of LC in win10. But never made a bug report yet. > > I can only stop this by ending LC in the task manager. > > Have you seen this? From matthias_livecode_150811 at m-r-d.de Thu Aug 1 10:53:14 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 1 Aug 2019 16:53:14 +0200 Subject: Challenge: who can background this shell command? In-Reply-To: <16F26E77-22A0-497B-B11E-72EC68DFEB90@m-r-d.de> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <16F26E77-22A0-497B-B11E-72EC68DFEB90@m-r-d.de> Message-ID: <60E8B9F1-B873-4418-B565-1BAAAF8E73CA@m-r-d.de> Aaah, it seems the server has absorbed the greater character. command > filename redirects the stdout to a file, so any output from the command will be redirected to the file 2 > &1 redirects stderr to stdout, which in my case is redirected to file hubbabubba.txt the traling & puts the command in the background Please excuse my multiple postings. > Am 01.08.2019 um 16:39 schrieb Matthias Rebbe via use-livecode >: > > I just noticed that my last post was not easy to read > > I?ve used the following shell command to redirect to a file instead of to /dev/null > > /users/matthias/downloads/temp/MailHog > /users/matthias/downloads/temp/hubbabubba.txt 2>&1 & > > > My script looked like this > > put "/users/matthias/downloads/temp/MailHog > /users/matthias/downloads/temp/hubbabubba.txt 2>&1 &" into tShell > put shell(tShell) > answer URL "file:/users/matthias/downloads/temp/hubbabubba.txt" > > > The answer dialog showed up immediately after executing the shell and it contained the redirected stdout data. > > > > >> filename redirects the stdout to a file > 2 > &1 redirects stderr to stdout, which in my case is redirected to file hubbabubba.txt > > & puts the command in the background > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 1 11:08:07 2019 From: paul at researchware.com (Paul Dupuis) Date: Thu, 1 Aug 2019 11:08:07 -0400 Subject: increasing column width of DG keeps running In-Reply-To: References: Message-ID: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> On 8/1/2019 9:23 AM, JJS via use-livecode wrote: > hi, > > > anyone ever had this: > > Increase the column width of a DG by clicking on the increase button. > in the property inspector, keep the mouse down until you think the > column is wide enough. > > Then it keeps running --read increasing the width-- forever, or until > probably the max of 65000 somewhere. > > Have this in all versions of LC in win10. But never made a bug report > yet. > > I can only stop this by ending LC in the task manager. > > Have you seen this? > I develop under WIn10. Like Bob, I tend to type in numbers for column width rather than use the arrow, but I just created a new stack in LC905rc1, added a new DataGrid, created 2 columns and tried to resize the first column using the property inspector arrows. For Width, MinWidth and MaxWidth I could size upa nd down using the arrows without it continuing once I released the mouse. I did see a bug when editing column names. Add a column. Type in the Column name. The click on the Column label field of the PI and types a label. Press tab, get an error "object does not have that property" and the Col # name references as the object. I think the closeField handler in the PI for the column name is broken. I report the bug I found to the Quality Center as https://quality.livecode.com/show_bug.cgi?id=22281 From david.bovill at gmail.com Thu Aug 1 11:12:28 2019 From: david.bovill at gmail.com (David Bovill) Date: Thu, 1 Aug 2019 16:12:28 +0100 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> Message-ID: OK - so I have it working by writing to a temporary file. Trying to redirect the output to stdout - so that shell() return the information of the background process - but this freezes: - *put* shell ("hugo server 2>&1 &") into launchResult Even though: - command 2>&1 & redirects stderr to stdout? This is a working solution which writes to a temporary file - then reads from that file till the end of the message in order to get hold of the result: > *command* hugo_BackgroundServer projectName > * put* env_GetFolder (projectName) into projectFolder > *set* the defaultfolder to projectFolder > > *--* *put* the tempname & ".txt" into someFile > *put* "hugo server >" && someFile && "2>&1 &" into tShell > *put* shell (tShell) into shellResult > > *-- can take some time to start up so let's read from file till the end* > _ReadFromFile someFile > *put* the result into fileContents > *return* fileContents > *end* hugo_BackgroundServer > > *private* *command* _ReadFromFile someFile > *open* file someFile for > *read* *read* from file someFile until "Press Ctrl+C to stop" > *put* it into fileContents > *close* file someFile > *return* fileContents > *end* _ReadFromFile On Thu, 1 Aug 2019 at 14:55, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > put "/users/matthias/downloads/temp/MailHog > > /users/matthias/downloads/temp/hubbabubba.txt 2>&1 &" into tShell > > -- above redirects into file and then don?t ask me.. ;) > put shell(tShell) > answer URL "file:/users/matthias/downloads/temp/hubbabubba.txt" > -- answer dialog shows content of file, which contains in my case the > address and port it was binded to. > > > 2019/08/01 15:46:01 Using in-memory storage > 2019/08/01 15:46:01 [SMTP] Binding to address: 0.0.0.0:1025 > [HTTP] Binding to address: 0.0.0.0:8025 > 2019/08/01 15:46:01 Serving under http://0.0.0.0:8025/ < > http://0.0.0.0:8025/> > Creating API v1 with WebPath: > Creating API v2 with WebPath: > [APIv2] GET /api/v2/messages > [APIv2] GET /api/v2/jim > [APIv2] GET /api/v2/websocket > [APIv1] KEEPALIVE /api/v1/events > > > Be aware, that the background process runs untill you kill it from the > shell. > > Regards, > > Matthias > > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > > > Am 01.08.2019 um 15:20 schrieb David Bovill via use-livecode < > use-livecode at lists.runrev.com >: > > > > That works in the message box - thanks Matthias. > > > > The only thing is I can't (yet) tell what port the server is running on > - I > > can see from the terminal (using pgrep) the process id of the started > > server - but it does not appear to be serving correctly on the default > > server port... > > > > Do you think there is a way to redirect the output to Livecode's result > or > > it variable - I seem to remember that there have been some changes to > that > > to make such a construction possible in Livecode - alternatively maybe > the > > output can be directed to a temporary file instead of " /dev/null"??? > > > > Nearly there :) > > > > > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Thu Aug 1 11:27:13 2019 From: mark at livecode.com (Mark Waddingham) Date: Thu, 01 Aug 2019 17:27:13 +0200 Subject: Challenge: who can background this shell =?UTF-8?Q?command=3F?= In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> Message-ID: <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> On 2019-08-01 17:12, David Bovill via use-livecode wrote: > OK - so I have it working by writing to a temporary file. > > Trying to redirect the output to stdout - so that shell() return the > information of the background process - but this freezes: Okay so given you want to read/write to the process you launched it seems... What's wrong with open process? The *only* difference between open process on macOS compared to Linux (and Windows) is that if you try and open process an app-bundle (i.e. something ending with '.app') it will do the same as launch (as .app bundles aren't executables). The installer uses open (elevated) process to communicate with an instance of itself with elevated permissions. You can see the code for that here: The key routines are installerRun and installerMonitor (the latter is used to poll every 20 milliseconds to check if the child process has anything to say). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From david.bovill at gmail.com Thu Aug 1 11:55:24 2019 From: david.bovill at gmail.com (David Bovill) Date: Thu, 1 Aug 2019 16:55:24 +0100 Subject: Challenge: who can background this shell command? In-Reply-To: <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> Message-ID: OK - will try. My first attempt launched the process, but the server did not work and the openproccessids = 0 But will try to do this properly and report back - thanks Mark :) On Thu, 1 Aug 2019 at 16:27, Mark Waddingham via use-livecode < use-livecode at lists.runrev.com> wrote: > On 2019-08-01 17:12, David Bovill via use-livecode wrote: > > OK - so I have it working by writing to a temporary file. > > > > Trying to redirect the output to stdout - so that shell() return the > > information of the background process - but this freezes: > > Okay so given you want to read/write to the process you launched it > seems... > > What's wrong with open process? The *only* difference between open > process > on macOS compared to Linux (and Windows) is that if you try and open > process > an app-bundle (i.e. something ending with '.app') it will do the same as > launch (as .app bundles aren't executables). > > The installer uses open (elevated) process to communicate with an > instance > of itself with elevated permissions. You can see the code for that here: > > < > https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript > > > > The key routines are installerRun and installerMonitor (the latter is > used > to poll every 20 milliseconds to check if the child process has anything > to > say). > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Thu Aug 1 12:01:40 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 1 Aug 2019 10:01:40 -0600 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> Message-ID: <72032889-069D-467B-8169-0C215228A246@swcp.com> This is one approach I would explore. 1. Create a window group of one custom window using Terminal. Set it up to run the process and have distinctive colors and title. And, most importantly, to run the process. 2. Use open process to launch, not Terminal, but the group. This is the part where I'm very unsure. Or maybe Terminal but somehow specify group. I do have a vague feeling that groups are apps, but I might be off in some parallel universe. If not then maybe "do ... as AppleScript". The window would have the process output, logs and so on. Maybe. I'm not sure what the best way to shut it down would be. > On Aug 1, 2019, at 5:55 AM, David Bovill via use-livecode wrote: > > The challenge is to figure out a technique we can use in Livecode to be > able to call long running shell processes (typically something like an http > server process) without blocking Livecode. > > To test this without asking anyone to install some cli I thought we could > try it with an existing long running process that everyone should have in > their terminal - vi > > So how do you: > > *put* shell ("vi") > > I've tested this and it does not crash here on latest OSX. You do have to > type command-period a few times to unblock things - but it is more or less > safe to try in the message box. > > I've also tried: > > *put* shell ("vi &") > > The aim is to out the process in the background, or some other technique - > like make a bash script that contains the line that launches vi (ie "vi") - > or perhaps uses screen or tmux, or some trick in Livecode (open process > does not work for this on OSX)... > > Who can crack this tricky nut :) > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Thu Aug 1 12:03:00 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 1 Aug 2019 10:03:00 -0600 Subject: Challenge: who can background this shell command? In-Reply-To: <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> Message-ID: <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> So, this is a documentation problem? > On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode wrote: > > On 2019-08-01 17:12, David Bovill via use-livecode wrote: >> OK - so I have it working by writing to a temporary file. >> Trying to redirect the output to stdout - so that shell() return the >> information of the background process - but this freezes: > > Okay so given you want to read/write to the process you launched it seems... > > What's wrong with open process? The *only* difference between open process > on macOS compared to Linux (and Windows) is that if you try and open process > an app-bundle (i.e. something ending with '.app') it will do the same as > launch (as .app bundles aren't executables). > > The installer uses open (elevated) process to communicate with an instance > of itself with elevated permissions. You can see the code for that here: > > > > The key routines are installerRun and installerMonitor (the latter is used > to poll every 20 milliseconds to check if the child process has anything to > say). > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Thu Aug 1 12:15:08 2019 From: dsc at swcp.com (dsc at swcp.com) Date: Thu, 1 Aug 2019 10:15:08 -0600 Subject: Challenge: who can background this shell command? In-Reply-To: <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> Message-ID: I feel foolish. From the dictionary: Note: On OS X systems, you can use the open process command to start up an application, but not a Unix process. To work with a Unix process, use the shell func instead. When I saw this in the Dictionary, I thought, "Oh, when did this break?" I should have thought, "Oh, yeah?" > On Aug 1, 2019, at 10:03 AM, Dar Scott Consulting via use-livecode wrote: > > So, this is a documentation problem? > >> On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode wrote: >> >> On 2019-08-01 17:12, David Bovill via use-livecode wrote: >>> OK - so I have it working by writing to a temporary file. >>> Trying to redirect the output to stdout - so that shell() return the >>> information of the background process - but this freezes: >> >> Okay so given you want to read/write to the process you launched it seems... >> >> What's wrong with open process? The *only* difference between open process >> on macOS compared to Linux (and Windows) is that if you try and open process >> an app-bundle (i.e. something ending with '.app') it will do the same as >> launch (as .app bundles aren't executables). >> >> The installer uses open (elevated) process to communicate with an instance >> of itself with elevated permissions. You can see the code for that here: >> >> >> >> The key routines are installerRun and installerMonitor (the latter is used >> to poll every 20 milliseconds to check if the child process has anything to >> say). >> >> Warmest Regards, >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Everyone can create apps >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Thu Aug 1 13:08:55 2019 From: jjs at krutt.org (JJS) Date: Thu, 1 Aug 2019 19:08:55 +0200 Subject: increasing column width of DG keeps running In-Reply-To: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> References: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> Message-ID: <3832e74b-0d2f-36f0-55bc-03190308f0eb@krutt.org> ok thanks. I've never seen that error you describe. Only that sometimes when changing the standard column name into something else you'll have to do it twice. But i use a programmatic approach for that. Op 1-8-2019 om 17:08 schreef Paul Dupuis via use-livecode: > On 8/1/2019 9:23 AM, JJS via use-livecode wrote: >> hi, >> >> >> anyone ever had this: >> >> Increase the column width of a DG by clicking on the increase button. >> in the property inspector, keep the mouse down until you think the >> column is wide enough. >> >> Then it keeps running --read increasing the width-- forever, or until >> probably the max of 65000 somewhere. >> >> Have this in all versions of LC in win10. But never made a bug report >> yet. >> >> I can only stop this by ending LC in the task manager. >> >> Have you seen this? >> > > I develop under WIn10. Like Bob, I tend to type in numbers for column > width rather than use the arrow, but I just created a new stack in > LC905rc1, added a new DataGrid, created 2 columns and tried to resize > the first column using the property inspector arrows. For Width, > MinWidth and MaxWidth I could size upa nd down using the arrows > without it continuing once I released the mouse. > > I did see a bug when editing column names. Add a column. Type in the > Column name. The click on the Column label field of the PI and types a > label. Press tab, get an error "object does not have that property" > and the Col # name references as the object. I think the closeField > handler in the PI for the column name is broken. > > I report the bug I found to the Quality Center as > https://quality.livecode.com/show_bug.cgi?id=22281 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 1 13:14:47 2019 From: tom at makeshyft.com (Tom Glod) Date: Thu, 1 Aug 2019 13:14:47 -0400 Subject: [ANN] Release 9.5.0 In-Reply-To: References: Message-ID: Great release thank you. I remember Mark W was working on some engine optimizations like faster switch structures, faster array access...... etc. Wondering if those are included in this release? Thanks, Tom On Wed, Jul 31, 2019 at 11:53 AM panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 9.5.0 STABLE. > > Getting the Release > =================== > You can get the release at https://downloads.livecode.com/livecode/ or via > the automatic updater. > > > Release Contents > ================ > LiveCode 9.5.0 STABLE comes with more than 100 bugfixes, compared to the > previous STABLE version. Moreover, another 100+ bugfixes, including several > memory leak fixes, that were fixed in LiveCode 9.0.x, are now merged into > LiveCode 9.5.0. > > In addition, LiveCode 9.5.0 includes several amazing new features: > > - New Android Architectures (32/64bit) + support for the latest Google Play > Store requirements > - Windows 64 bit IDE & deployment support > - Static linked code libraries for iOS device builds > - Real boolean constants, Infinity constant > - Math operation refactor > - New container layer mode > - New log command and logMessage property > - Implement filter where clause > - Progress, isSecure and allowUserInteraction features added to browser > widget > - New returnKeyType & keyboardType field property > - Improved sort international to support lots of additional locales > - Updated SQLite lib to the latest version > - Added support for URI filenames and JSON storage/retrieval in SQLite DBs > - Implemented modifier key state access for LCB (e.g. "key is down") > - Implemented clip to path for LCB > - Several enhancements to Tree View Widget > - New mobileSetKeyboardDisplay and mobileGetKeyboardDisplay handlers > - mobileSetKeyboardReturnKey on android > - PDF Widget (Business Edition) > - Android Barcode Scanner widget (Business Edition) > - Mac status menu library > > > 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. > > The full release notes are available from: > > http://downloads.livecode.com/livecode/9_5_0/LiveCodeNotes-9_5_0.pdf > > > Feedback > ======== > Please report any bugs encountered on our BugZilla 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 > -- > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 1 13:23:03 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 1 Aug 2019 17:23:03 +0000 Subject: increasing column width of DG keeps running In-Reply-To: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> References: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> Message-ID: That's a long standing issue and I think it has to do with the way the TreeView widget is implemented. Correct me if I am wrong. When I create a column in the Datagrid, after naming it, I then have to click the column AGAIN to get it to refresh. Really frustrating. Bob S > On Aug 1, 2019, at 08:08 , Paul Dupuis via use-livecode wrote: > > I did see a bug when editing column names. Add a column. Type in the Column name. The click on the Column label field of the PI and types a label. Press tab, get an error "object does not have that property" and the Col # name references as the object. I think the closeField handler in the PI for the column name is broken. > > I report the bug I found to the Quality Center as https://quality.livecode.com/show_bug.cgi?id=22281 From dochawk at gmail.com Thu Aug 1 13:46:53 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 1 Aug 2019 10:46:53 -0700 Subject: Launching a cli server as background process in OSX In-Reply-To: References: Message-ID: <3714EA73-B2C4-4CA3-B4B4-17209D33E905@gmail.com> On Jul 31, 2019, at 3:56 PM, David Bovill via use-livecode wrote: > > The issue is that as the shell command runs until you forcibly exit (somecommand & | sleep 1) will launch somecommand as a background process and then sleeps 1 second before returning. somecommand could be a simple steel script or even an alias that specifies arguments, redirection, etc. ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From david.bovill at gmail.com Thu Aug 1 14:19:24 2019 From: david.bovill at gmail.com (David Bovill) Date: Thu, 1 Aug 2019 19:19:24 +0100 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> Message-ID: OK - I managed to get it to work with: - open process "/usr/local/bin/hugo server" for read which I did not think would work due to the two word shell command. Timing was an issue - so I had to use the method found here (thanks Mark) - https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript - which uses a send in 20 milliseconds when there is a timeout. basically it is complex timing logic, but more direct and probably robust than using a bunch of shell commands we put into the background. Still we have tow methods that work - restores my faith in the flexibility of Livecode! On Thu, 1 Aug 2019 at 17:15, dsc--- via use-livecode < use-livecode at lists.runrev.com> wrote: > I feel foolish. From the dictionary: > > > Note: On OS X systems, you can use the open process command to start up an > application, but not a Unix process. To work with a Unix process, use the > shell func instead. > > When I saw this in the Dictionary, I thought, "Oh, when did this break?" > > I should have thought, "Oh, yeah?" > > > > On Aug 1, 2019, at 10:03 AM, Dar Scott Consulting via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > So, this is a documentation problem? > > > >> On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> On 2019-08-01 17:12, David Bovill via use-livecode wrote: > >>> OK - so I have it working by writing to a temporary file. > >>> Trying to redirect the output to stdout - so that shell() return the > >>> information of the background process - but this freezes: > >> > >> Okay so given you want to read/write to the process you launched it > seems... > >> > >> What's wrong with open process? The *only* difference between open > process > >> on macOS compared to Linux (and Windows) is that if you try and open > process > >> an app-bundle (i.e. something ending with '.app') it will do the same as > >> launch (as .app bundles aren't executables). > >> > >> The installer uses open (elevated) process to communicate with an > instance > >> of itself with elevated permissions. You can see the code for that here: > >> > >> < > https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript > > > >> > >> The key routines are installerRun and installerMonitor (the latter is > used > >> to poll every 20 milliseconds to check if the child process has > anything to > >> say). > >> > >> Warmest Regards, > >> > >> Mark. > >> > >> -- > >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > >> LiveCode: Everyone can create apps > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Thu Aug 1 14:27:00 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 1 Aug 2019 12:27:00 -0600 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> Message-ID: I am not familiar with hugo. Do you type a ^c to shut down hugo server? In that case you might want to consider open for update. > On Aug 1, 2019, at 12:19 PM, David Bovill via use-livecode wrote: > > OK - I managed to get it to work with: > > - open process "/usr/local/bin/hugo server" for read > > which I did not think would work due to the two word shell command. > > Timing was an issue - so I had to use the method found here (thanks Mark) - > https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript > - > which uses a send in 20 milliseconds when there is a timeout. basically it > is complex timing logic, but more direct and probably robust than using a > bunch of shell commands we put into the background. Still we have tow > methods that work - restores my faith in the flexibility of Livecode! > > On Thu, 1 Aug 2019 at 17:15, dsc--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I feel foolish. From the dictionary: >> >> >> Note: On OS X systems, you can use the open process command to start up an >> application, but not a Unix process. To work with a Unix process, use the >> shell func instead. >> >> When I saw this in the Dictionary, I thought, "Oh, when did this break?" >> >> I should have thought, "Oh, yeah?" >> >> >>> On Aug 1, 2019, at 10:03 AM, Dar Scott Consulting via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> So, this is a documentation problem? >>> >>>> On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> >>>> On 2019-08-01 17:12, David Bovill via use-livecode wrote: >>>>> OK - so I have it working by writing to a temporary file. >>>>> Trying to redirect the output to stdout - so that shell() return the >>>>> information of the background process - but this freezes: >>>> >>>> Okay so given you want to read/write to the process you launched it >> seems... >>>> >>>> What's wrong with open process? The *only* difference between open >> process >>>> on macOS compared to Linux (and Windows) is that if you try and open >> process >>>> an app-bundle (i.e. something ending with '.app') it will do the same as >>>> launch (as .app bundles aren't executables). >>>> >>>> The installer uses open (elevated) process to communicate with an >> instance >>>> of itself with elevated permissions. You can see the code for that here: >>>> >>>> < >> https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript >>> >>>> >>>> The key routines are installerRun and installerMonitor (the latter is >> used >>>> to poll every 20 milliseconds to check if the child process has >> anything to >>>> say). >>>> >>>> Warmest Regards, >>>> >>>> Mark. >>>> >>>> -- >>>> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >>>> LiveCode: Everyone can create apps >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Thu Aug 1 15:45:18 2019 From: jjs at krutt.org (JJS) Date: Thu, 1 Aug 2019 21:45:18 +0200 Subject: increasing column width of DG keeps running In-Reply-To: References: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> Message-ID: <9613b716-a4d1-3278-d76a-6ab64237f3db@krutt.org> Yes indeed. So some 'tiny' things we still have. Also i had multiple lines of text on one row. I increased the row height. looked ok in the IDE but had the issue on mobile. I had to remove te DG and template, reopen the stack, and drag a new dg on it. After that 2 other DG's on other cards starts complaning they can't find their column behavior and opening the LC script of it, revsomething. So ultimately i also replaced these DG's(now without replacing the template). All works again. This is kind of doable when the Style is form, but not when it is table. If i do a dispatch"ResetList" to the group then i see the error again, so i commented it out. So before every major change on a DG it's best to save a copy first. Maybe i will report a bugreport on the increase issue. But further i'm happy with the DG's as they have a lot of potential. Op 1-8-2019 om 19:23 schreef Bob Sneidar via use-livecode: > That's a long standing issue and I think it has to do with the way the TreeView widget is implemented. Correct me if I am wrong. When I create a column in the Datagrid, after naming it, I then have to click the column AGAIN to get it to refresh. Really frustrating. > > Bob S > > >> On Aug 1, 2019, at 08:08 , Paul Dupuis via use-livecode wrote: >> >> I did see a bug when editing column names. Add a column. Type in the Column name. The click on the Column label field of the PI and types a label. Press tab, get an error "object does not have that property" and the Col # name references as the object. I think the closeField handler in the PI for the column name is broken. >> >> I report the bug I found to the Quality Center as https://quality.livecode.com/show_bug.cgi?id=22281 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 1 16:31:59 2019 From: tom at makeshyft.com (Tom Glod) Date: Thu, 1 Aug 2019 16:31:59 -0400 Subject: increasing column width of DG keeps running In-Reply-To: <9613b716-a4d1-3278-d76a-6ab64237f3db@krutt.org> References: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> <9613b716-a4d1-3278-d76a-6ab64237f3db@krutt.org> Message-ID: the runaway number thing was happening to me when changing row height on dg using the arrow in the property inspector...... but never with column width. On Thu, Aug 1, 2019 at 3:45 PM JJS via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes indeed. > > So some 'tiny' things we still have. > > Also i had multiple lines of text on one row. I increased the row > height. looked ok in the IDE but had the issue on mobile. I had to > remove te DG and template, reopen the stack, and drag a new dg on it. > After that 2 other DG's on other cards starts complaning they can't find > their column behavior and opening the LC script of it, revsomething. So > ultimately i also replaced these DG's(now without replacing the > template). All works again. > > This is kind of doable when the Style is form, but not when it is table. > > If i do a dispatch"ResetList" to the group then i see the error again, > so i commented it out. > > So before every major change on a DG it's best to save a copy first. > > Maybe i will report a bugreport on the increase issue. > > But further i'm happy with the DG's as they have a lot of potential. > > > Op 1-8-2019 om 19:23 schreef Bob Sneidar via use-livecode: > > That's a long standing issue and I think it has to do with the way the > TreeView widget is implemented. Correct me if I am wrong. When I create a > column in the Datagrid, after naming it, I then have to click the column > AGAIN to get it to refresh. Really frustrating. > > > > Bob S > > > > > >> On Aug 1, 2019, at 08:08 , Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> I did see a bug when editing column names. Add a column. Type in the > Column name. The click on the Column label field of the PI and types a > label. Press tab, get an error "object does not have that property" and the > Col # name references as the object. I think the closeField handler in the > PI for the column name is broken. > >> > >> I report the bug I found to the Quality Center as > https://quality.livecode.com/show_bug.cgi?id=22281 > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bogdanoff at me.com Thu Aug 1 17:03:58 2019 From: bogdanoff at me.com (Peter Bogdanoff) Date: Thu, 1 Aug 2019 14:03:58 -0700 Subject: increasing column width of DG keeps running In-Reply-To: References: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> Message-ID: I have seen this particular behavior in the property inspector when adjusting numbers in the Position tab. It happens sometimes, without any particular recipe that I?ve noticed. Closing the PI stops it. Peter Bogdanoff > On Aug 1, 2019, at 10:23 AM, Bob Sneidar via use-livecode wrote: > > That's a long standing issue and I think it has to do with the way the TreeView widget is implemented. Correct me if I am wrong. When I create a column in the Datagrid, after naming it, I then have to click the column AGAIN to get it to refresh. Really frustrating. > > Bob S > > >> On Aug 1, 2019, at 08:08 , Paul Dupuis via use-livecode wrote: >> >> I did see a bug when editing column names. Add a column. Type in the Column name. The click on the Column label field of the PI and types a label. Press tab, get an error "object does not have that property" and the Col # name references as the object. I think the closeField handler in the PI for the column name is broken. >> >> I report the bug I found to the Quality Center as https://quality.livecode.com/show_bug.cgi?id=22281 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 1 17:21:18 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 1 Aug 2019 21:21:18 +0000 Subject: 9.5.0 crash to desktop Message-ID: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 "stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5. Bob S From jjs at krutt.org Thu Aug 1 17:24:29 2019 From: jjs at krutt.org (JJS) Date: Thu, 1 Aug 2019 23:24:29 +0200 Subject: increasing column width of DG keeps running In-Reply-To: References: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> <9613b716-a4d1-3278-d76a-6ab64237f3db@krutt.org> Message-ID: <758b4757-4b4e-dc5c-20a7-ebb1a31af04d@krutt.org> Yes indeed, seen it with height too. Thanks. Op 1-8-2019 om 22:31 schreef Tom Glod via use-livecode: > the runaway number thing was happening to me when changing row height on dg > using the arrow in the property inspector...... but never with column width. > > On Thu, Aug 1, 2019 at 3:45 PM JJS via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Yes indeed. >> >> So some 'tiny' things we still have. >> >> Also i had multiple lines of text on one row. I increased the row >> height. looked ok in the IDE but had the issue on mobile. I had to >> remove te DG and template, reopen the stack, and drag a new dg on it. >> After that 2 other DG's on other cards starts complaning they can't find >> their column behavior and opening the LC script of it, revsomething. So >> ultimately i also replaced these DG's(now without replacing the >> template). All works again. >> >> This is kind of doable when the Style is form, but not when it is table. >> >> If i do a dispatch"ResetList" to the group then i see the error again, >> so i commented it out. >> >> So before every major change on a DG it's best to save a copy first. >> >> Maybe i will report a bugreport on the increase issue. >> >> But further i'm happy with the DG's as they have a lot of potential. >> >> >> Op 1-8-2019 om 19:23 schreef Bob Sneidar via use-livecode: >>> That's a long standing issue and I think it has to do with the way the >> TreeView widget is implemented. Correct me if I am wrong. When I create a >> column in the Datagrid, after naming it, I then have to click the column >> AGAIN to get it to refresh. Really frustrating. >>> Bob S >>> >>> >>>> On Aug 1, 2019, at 08:08 , Paul Dupuis via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> I did see a bug when editing column names. Add a column. Type in the >> Column name. The click on the Column label field of the PI and types a >> label. Press tab, get an error "object does not have that property" and the >> Col # name references as the object. I think the closeField handler in the >> PI for the column name is broken. >>>> I report the bug I found to the Quality Center as >> https://quality.livecode.com/show_bug.cgi?id=22281 >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Thu Aug 1 17:25:11 2019 From: jjs at krutt.org (JJS) Date: Thu, 1 Aug 2019 23:25:11 +0200 Subject: increasing column width of DG keeps running In-Reply-To: References: <706dc31f-4f62-a960-98e3-efde4f2fdcbf@researchware.com> Message-ID: <16561f62-6c05-7d9e-5a3b-a430a94fae76@krutt.org> Have to? test it, i'm not sure i could close it that way. Op 1-8-2019 om 23:03 schreef Peter Bogdanoff via use-livecode: > I have seen this particular behavior in the property inspector when adjusting numbers in the Position tab. It happens sometimes, without any particular recipe that I?ve noticed. Closing the PI stops it. > > Peter Bogdanoff > > >> On Aug 1, 2019, at 10:23 AM, Bob Sneidar via use-livecode wrote: >> >> That's a long standing issue and I think it has to do with the way the TreeView widget is implemented. Correct me if I am wrong. When I create a column in the Datagrid, after naming it, I then have to click the column AGAIN to get it to refresh. Really frustrating. >> >> Bob S >> >> >>> On Aug 1, 2019, at 08:08 , Paul Dupuis via use-livecode wrote: >>> >>> I did see a bug when editing column names. Add a column. Type in the Column name. The click on the Column label field of the PI and types a label. Press tab, get an error "object does not have that property" and the Col # name references as the object. I think the closeField handler in the PI for the column name is broken. >>> >>> I report the bug I found to the Quality Center as https://quality.livecode.com/show_bug.cgi?id=22281 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 1 17:25:35 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 1 Aug 2019 22:25:35 +0100 Subject: 9.5.0 crash to desktop In-Reply-To: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> Message-ID: <55A8AA56-73A1-416A-A937-EE50571F035F@pidigital.co.uk> Screen Record it first and post up to the quality site. #metoo Sean Cole Pi Digital Prod Ltd > On 1 Aug 2019, at 22:21, Bob Sneidar via use-livecode wrote: > > Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 "stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5. > > 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 jjs at krutt.org Thu Aug 1 17:26:09 2019 From: jjs at krutt.org (JJS) Date: Thu, 1 Aug 2019 23:26:09 +0200 Subject: 9.5.0 crash to desktop In-Reply-To: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> Message-ID: what are you doing, or what is running when that happens? Op 1-8-2019 om 23:21 schreef Bob Sneidar via use-livecode: > Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 "stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5. > > 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 dochawk at gmail.com Thu Aug 1 17:58:10 2019 From: dochawk at gmail.com (doc hawk) Date: Thu, 1 Aug 2019 14:58:10 -0700 Subject: 9.5.0 crash to desktop In-Reply-To: References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> Message-ID: On Aug 1, 2019, at 2:26 PM, JJS via use-livecode wrote: > > what are you doing, or what is running when that happens? When I?ve seen it with the dp and rc, it tends to be after I move objects, or perhaps copy and paste objects, and then a delay, a brief moment of returning to apparent function, and then *wham*. Particularly, when I use the group editor. I don?t think I?ve had a working screen recorder for four or five years . . . From mkoob at rogers.com Thu Aug 1 18:19:35 2019 From: mkoob at rogers.com (Martin Koob) Date: Thu, 1 Aug 2019 18:19:35 -0400 Subject: 9.5.0 crash to desktop In-Reply-To: References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> Message-ID: <11BCA7A1-7B1D-49FE-8118-E3966DB09D8E@rogers.com> Hi There are others who are seeing Crash to Desktop while debugging. There is a bug report where people can upload their crash logs to. You should upload yours there to give the LC team more data to work with, especially if you can reliably reproduce it. https://quality.livecode.com/show_bug.cgi?id=22130 Also as far as screen recording you can always use your smart phone. :-) Regards, Martin Koob > On Aug 1, 2019, at 5:58 PM, doc hawk via use-livecode wrote: > > > On Aug 1, 2019, at 2:26 PM, JJS via use-livecode > wrote: >> >> what are you doing, or what is running when that happens? > > > When I?ve seen it with the dp and rc, it tends to be after I move objects, or perhaps copy and paste objects, and then a delay, a brief moment of returning to apparent function, and then *wham*. > > Particularly, when I use the group editor. > > I don?t think I?ve had a working screen recorder for four or five years . . . From dochawk at gmail.com Thu Aug 1 19:31:21 2019 From: dochawk at gmail.com (doc hawk) Date: Thu, 1 Aug 2019 16:31:21 -0700 Subject: Transparent layer between pdf widget and field? Message-ID: <0F1F3B6B-8E46-4557-939A-DA535524C1A8@gmail.com> As I?ve had to build every form myself in the past, they were constructed of fields, lines, and boxes. As such, with them not being opaque, I could put a rectangle behind the group that was turned visible when the group was active, as a visual cue. Now that I?m using pdfs, this isn?t working as well, as I have fields laying over the pdf in many cases. Is it the colorOverlay property I need to do, with my rect above the pdf and below my fields? I want the pdf visible enough to read, but the fields in front of it. From sean at pidigital.co.uk Thu Aug 1 20:10:03 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Fri, 2 Aug 2019 01:10:03 +0100 Subject: 9.5.0 crash to desktop In-Reply-To: <11BCA7A1-7B1D-49FE-8118-E3966DB09D8E@rogers.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <11BCA7A1-7B1D-49FE-8118-E3966DB09D8E@rogers.com> Message-ID: <251514DC-A6EA-4622-81D5-9E9139D84224@pidigital.co.uk> If you are on macOS you have one built in to QuickTime. File>NewScreenRecording On Windows 10 With LC open Press the windows key and ?g? at the same time. This opens the GameBar dialogue (it?s meant for games but works equally well for any app). Check the ?yes, this is a game? box. Click ?start recording? (the red dot). I?ll let you guess what that does ;) Click the red bar with the timer to stop the recording. The camera icon takes screen shot images. The settings button allows you to select where and what to save. Sean Cole Pi Digital Prod Ltd > On 1 Aug 2019, at 23:19, Martin Koob via use-livecode wrote: > > Hi > > There are others who are seeing Crash to Desktop while debugging. > > There is a bug report where people can upload their crash logs to. You should upload yours there to give the LC team more data to work with, especially if you can reliably reproduce it. > > https://quality.livecode.com/show_bug.cgi?id=22130 > > Also as far as screen recording you can always use your smart phone. :-) > > > Regards, > > Martin Koob > > > > > >> On Aug 1, 2019, at 5:58 PM, doc hawk via use-livecode wrote: >> >> >>> On Aug 1, 2019, at 2:26 PM, JJS via use-livecode > wrote: >>> >>> what are you doing, or what is running when that happens? >> >> >> When I?ve seen it with the dp and rc, it tends to be after I move objects, or perhaps copy and paste objects, and then a delay, a brief moment of returning to apparent function, and then *wham*. >> >> Particularly, when I use the group editor. >> >> I don?t think I?ve had a working screen recorder for four or five years . . . > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Thu Aug 1 20:54:59 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 1 Aug 2019 18:54:59 -0600 Subject: Transparent layer between pdf widget and field? In-Reply-To: <0F1F3B6B-8E46-4557-939A-DA535524C1A8@gmail.com> References: <0F1F3B6B-8E46-4557-939A-DA535524C1A8@gmail.com> Message-ID: <76FE5C8A-F1FE-44E9-A80D-6551A282ED71@swcp.com> Maybe your rectangle can have its blend level and ink tweaked to provide the look you want. > On Aug 1, 2019, at 5:31 PM, doc hawk via use-livecode wrote: > > As I?ve had to build every form myself in the past, they were constructed of fields, lines, and boxes. As such, with them not being opaque, I could put a rectangle behind the group that was turned visible when the group was active, as a visual cue. > > Now that I?m using pdfs, this isn?t working as well, as I have fields laying over the pdf in many cases. > > Is it the colorOverlay property I need to do, with my rect above the pdf and below my fields? > > I want the pdf visible enough to read, but the fields in front of it. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 1 21:49:09 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 1 Aug 2019 18:49:09 -0700 Subject: 9.5.0 crash to desktop In-Reply-To: <251514DC-A6EA-4622-81D5-9E9139D84224@pidigital.co.uk> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <11BCA7A1-7B1D-49FE-8118-E3966DB09D8E@rogers.com> <251514DC-A6EA-4622-81D5-9E9139D84224@pidigital.co.uk> Message-ID: <33ff2a78-1963-9291-9b2e-196c92a83c58@sonic.net> On 8/1/19 5:10 PM, Pi Digital via use-livecode wrote: > On Windows 10 With LC open > > Press the windows key and ?g? at the same time. This opens the GameBar dialogue (it?s meant for games but works equally well for any app). > > Check the ?yes, this is a game? box. LOL. That's an utterly bizarre workflow, but I'm glad it works. I'm filing that away somewhere if I ever have to record the screen on Windows. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Thu Aug 1 21:54:10 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 01 Aug 2019 20:54:10 -0500 Subject: 9.5.0 crash to desktop In-Reply-To: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> Message-ID: <16c5008cdd0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Is it happening after debugging in the script editor? If so, please add comments and any crash logs to this bug report where they are being collected: https://quality.livecode.com/show_bug.cgi?id=22130 Include an explanation of what you were doing at the time and any other info that might help. You aren't the only one seeing this problem. If you can share your stack that would help a lot. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode wrote: > Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 > "stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5. > > 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 klaus at major-k.de Fri Aug 2 08:59:55 2019 From: klaus at major-k.de (Klaus major-k) Date: Fri, 2 Aug 2019 14:59:55 +0200 Subject: "template" stack in custom property Message-ID: <2E4AC947-A5FA-414D-B2A4-10CD575E0A24@major-k.de> Hi friends, I have done this a lot in the past, but currently got stuck with this in LC 9.5 I store a stack in a custom property and open it via script like: ... put "NewJob_" & the seconds into tName go invisible stack (the cTemplateStack of this stack) ## Works so far, the stack is in -> the openstacks ## However NOTHING that comes after that line will ever get executed? ## restarted LC a couple of time, no dice... ## Even the BREAKPOINT is being ignored!? breakpoint answer "asfasdasdasdasdasd" ... What's wrong with this? Any hints much appreciated! Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From david.bovill at gmail.com Fri Aug 2 09:13:38 2019 From: david.bovill at gmail.com (David Bovill) Date: Fri, 2 Aug 2019 14:13:38 +0100 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> Message-ID: Yes - ^c to shut down... but why for update? On Thu, 1 Aug 2019 at 19:27, Dar Scott Consulting via use-livecode < use-livecode at lists.runrev.com> wrote: > I am not familiar with hugo. Do you type a ^c to shut down hugo server? In > that case you might want to consider open for update. > > > On Aug 1, 2019, at 12:19 PM, David Bovill via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > OK - I managed to get it to work with: > > > > - open process "/usr/local/bin/hugo server" for read > > > > which I did not think would work due to the two word shell command. > > > > Timing was an issue - so I had to use the method found here (thanks > Mark) - > > > https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript > > - > > which uses a send in 20 milliseconds when there is a timeout. basically > it > > is complex timing logic, but more direct and probably robust than using a > > bunch of shell commands we put into the background. Still we have tow > > methods that work - restores my faith in the flexibility of Livecode! > > > > On Thu, 1 Aug 2019 at 17:15, dsc--- via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I feel foolish. From the dictionary: > >> > >> > >> Note: On OS X systems, you can use the open process command to start up > an > >> application, but not a Unix process. To work with a Unix process, use > the > >> shell func instead. > >> > >> When I saw this in the Dictionary, I thought, "Oh, when did this break?" > >> > >> I should have thought, "Oh, yeah?" > >> > >> > >>> On Aug 1, 2019, at 10:03 AM, Dar Scott Consulting via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> So, this is a documentation problem? > >>> > >>>> On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>>> > >>>> On 2019-08-01 17:12, David Bovill via use-livecode wrote: > >>>>> OK - so I have it working by writing to a temporary file. > >>>>> Trying to redirect the output to stdout - so that shell() return the > >>>>> information of the background process - but this freezes: > >>>> > >>>> Okay so given you want to read/write to the process you launched it > >> seems... > >>>> > >>>> What's wrong with open process? The *only* difference between open > >> process > >>>> on macOS compared to Linux (and Windows) is that if you try and open > >> process > >>>> an app-bundle (i.e. something ending with '.app') it will do the same > as > >>>> launch (as .app bundles aren't executables). > >>>> > >>>> The installer uses open (elevated) process to communicate with an > >> instance > >>>> of itself with elevated permissions. You can see the code for that > here: > >>>> > >>>> < > >> > https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript > >>> > >>>> > >>>> The key routines are installerRun and installerMonitor (the latter is > >> used > >>>> to poll every 20 milliseconds to check if the child process has > >> anything to > >>>> say). > >>>> > >>>> Warmest Regards, > >>>> > >>>> Mark. > >>>> > >>>> -- > >>>> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > >>>> LiveCode: Everyone can create apps > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>>> > >>> > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Aug 2 09:21:43 2019 From: david.bovill at gmail.com (David Bovill) Date: Fri, 2 Aug 2019 14:21:43 +0100 Subject: Polyglot and CodeRunner In-Reply-To: <608d8394-d956-1a80-a67b-d5e66a13a45d@fourthworld.com> References: <608d8394-d956-1a80-a67b-d5e66a13a45d@fourthworld.com> Message-ID: Does anyone combine Livecode with different programming languages - would be interesting to share any experiences. I mainly create wrappers for command line tools in Livecode. Sometimes interface with Javascript which I want to improve my workflow with. I was thinking of of extending the way I work with command line tools - then saw how https://coderunnerapp.com/ does it - so thought I'd see if we can get Livecode to work with CodeRunner first - has anyone done this? *How can I add my own languages to CodeRunner?*CodeRunner's run system is based on simple terminal commands, and therefore if you know the terminal commands involved in running/compiling code in your language, you can easily add it to CodeRunner. To add languages, go to Preferences -> Languages, and click the "+" button. In the "Run Command" text box, enter the command you use to run the language from the terminal. E.g. if the interpreter is called mylang, you would enter mylang $filename here. If your language uses several commands to run, you can use a CodeRunner compile script. Check the box "Language uses compile script" and click the "Edit Script..." button. This will open the compile script in the CodeRunner editor. The script will contain a further explanation of how to use it. From sean at pidigital.co.uk Fri Aug 2 10:00:06 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Fri, 2 Aug 2019 15:00:06 +0100 Subject: Polyglot and CodeRunner In-Reply-To: References: <608d8394-d956-1a80-a67b-d5e66a13a45d@fourthworld.com> Message-ID: The trouble with this and Peppermint is they are only for MacOS. So it doesn't really fall into the LC 'code once for all' bracket. Not that it isn't useful for some individual projects. But it would be even better if there was a code runner that was PC, Linux and Windows (and even mobile) friendly. But I definitely see the advantages for it. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On Fri, 2 Aug 2019 at 14:21, David Bovill via use-livecode < use-livecode at lists.runrev.com> wrote: > Does anyone combine Livecode with different programming languages - would > be interesting to share any experiences. I mainly create wrappers for > command line tools in Livecode. Sometimes interface with Javascript which I > want to improve my workflow with. > > I was thinking of of extending the way I work with command line tools - > then saw how https://coderunnerapp.com/ does it - so thought I'd see if we > can get Livecode to work with CodeRunner first - has anyone done this? > > > *How can I add my own languages to CodeRunner?*CodeRunner's run system is > based on simple terminal commands, and therefore if you know the terminal > commands involved in running/compiling code in your language, you can > easily add it to CodeRunner. To add languages, go to Preferences -> > Languages, and click the "+" button. In the "Run Command" text box, enter > the command you use to run the language from the terminal. E.g. if the > interpreter is called mylang, you would enter mylang $filename here. > > If your language uses several commands to run, you can use a CodeRunner > compile script. Check the box "Language uses compile script" and click the > "Edit Script..." button. This will open the compile script in the > CodeRunner editor. The script will contain a further explanation of how to > use it. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 2 10:00:58 2019 From: klaus at major-k.de (Klaus major-k) Date: Fri, 2 Aug 2019 16:00:58 +0200 Subject: "template" stack in custom property In-Reply-To: <2E4AC947-A5FA-414D-B2A4-10CD575E0A24@major-k.de> References: <2E4AC947-A5FA-414D-B2A4-10CD575E0A24@major-k.de> Message-ID: <4AAFC5CC-D4E4-4753-8614-47B157FB21A3@major-k.de> Hi all, I found a workaround by creating two handlers and use them with a little dealy. > Am 02.08.2019 um 14:59 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I have done this a lot in the past, but currently got stuck with this in LC 9.5 > I store a stack in a custom property and open it via script like: > ... > put "NewJob_" & the seconds into tName > go invisible stack (the cTemplateStack of this stack) > ## Works so far, the stack is in -> the openstacks > > ## However NOTHING that comes after that line will ever get executed? > ## restarted LC a couple of time, no dice... > > ## Even the BREAKPOINT is being ignored!? > breakpoint > answer "asfasdasdasdasdasd" > ... ... put "NewJob_" & the seconds into tName send "do_the_rest" to me in 1 go invisible stack (the cTemplateStack of this stack) ... command do_the_rest ## rename template stack ## etc... end do_the_rest Too funky!? Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From dsc at swcp.com Fri Aug 2 10:13:06 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Fri, 2 Aug 2019 08:13:06 -0600 Subject: Challenge: who can background this shell command? In-Reply-To: References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> Message-ID: <17B78AD3-70B3-4290-B356-5DC97F7DA172@swcp.com> I'm assuming you can send the ^c down the process connection. That is, write to the opened process. Wait a bit after that or look at the response, and then shut down the polling send-loop and then close the connection if it is not already closed, It might be that simply closing the connection to the process will cause it to shutdown gracefully. However, it would be nice to see the graceful shutdown. I'd collect the reads and put them in a field on a stack just for monitoring the output. You can make it development only or you can make it part of your thing. This will allow you to see what is going on. It also allows you to see why Dar's idea of sending ^c doesn't work. > On Aug 2, 2019, at 7:13 AM, David Bovill via use-livecode wrote: > > Yes - ^c to shut down... but why for update? > > On Thu, 1 Aug 2019 at 19:27, Dar Scott Consulting via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I am not familiar with hugo. Do you type a ^c to shut down hugo server? In >> that case you might want to consider open for update. >> >>> On Aug 1, 2019, at 12:19 PM, David Bovill via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> OK - I managed to get it to work with: >>> >>> - open process "/usr/local/bin/hugo server" for read >>> >>> which I did not think would work due to the two word shell command. >>> >>> Timing was an issue - so I had to use the method found here (thanks >> Mark) - >>> >> https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript >>> - >>> which uses a send in 20 milliseconds when there is a timeout. basically >> it >>> is complex timing logic, but more direct and probably robust than using a >>> bunch of shell commands we put into the background. Still we have tow >>> methods that work - restores my faith in the flexibility of Livecode! >>> >>> On Thu, 1 Aug 2019 at 17:15, dsc--- via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> I feel foolish. From the dictionary: >>>> >>>> >>>> Note: On OS X systems, you can use the open process command to start up >> an >>>> application, but not a Unix process. To work with a Unix process, use >> the >>>> shell func instead. >>>> >>>> When I saw this in the Dictionary, I thought, "Oh, when did this break?" >>>> >>>> I should have thought, "Oh, yeah?" >>>> >>>> >>>>> On Aug 1, 2019, at 10:03 AM, Dar Scott Consulting via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> So, this is a documentation problem? >>>>> >>>>>> On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> On 2019-08-01 17:12, David Bovill via use-livecode wrote: >>>>>>> OK - so I have it working by writing to a temporary file. >>>>>>> Trying to redirect the output to stdout - so that shell() return the >>>>>>> information of the background process - but this freezes: >>>>>> >>>>>> Okay so given you want to read/write to the process you launched it >>>> seems... >>>>>> >>>>>> What's wrong with open process? The *only* difference between open >>>> process >>>>>> on macOS compared to Linux (and Windows) is that if you try and open >>>> process >>>>>> an app-bundle (i.e. something ending with '.app') it will do the same >> as >>>>>> launch (as .app bundles aren't executables). >>>>>> >>>>>> The installer uses open (elevated) process to communicate with an >>>> instance >>>>>> of itself with elevated permissions. You can see the code for that >> here: >>>>>> >>>>>> < >>>> >> https://github.com/livecode/livecode/blob/develop/builder/installer_utilities.livecodescript >>>>> >>>>>> >>>>>> The key routines are installerRun and installerMonitor (the latter is >>>> used >>>>>> to poll every 20 milliseconds to check if the child process has >>>> anything to >>>>>> say). >>>>>> >>>>>> Warmest Regards, >>>>>> >>>>>> Mark. >>>>>> >>>>>> -- >>>>>> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >>>>>> LiveCode: Everyone can create apps >>>>>> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Fri Aug 2 10:36:27 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Aug 2019 14:36:27 +0000 Subject: 9.5.0 crash to desktop In-Reply-To: References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> Message-ID: <27DE92DF-25B8-4EE5-8EBC-60BFD284A49B@iotecdigital.com> It depends. Sometimes debugging stepping through code. Hovering over a variable to see it's value. Other times just working in my app. Recently I have been adding files to the database. I have a method where I drag files from the Finder onto a button or field, and import the files as binary data into a table in a mySQL database. Sometimes it's in the process of finding a record to attach the files to, like a "device" record for a particular site and customer. I can do this for 15 minutes and then the next time doing exactly the same thing, I crash to desktop. All versions of Community from 9.0.4 to 9.5 are doing it. Not sure what a screen capture would accomplish. The windows disappear, I get an error dialog. I have already posted the crash log from one of the CTDs on the QCC site. Bob S > On Aug 1, 2019, at 14:26 , JJS via use-livecode wrote: > > what are you doing, or what is running when that happens? > > Op 1-8-2019 om 23:21 schreef Bob Sneidar via use-livecode: >> Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 "stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Aug 2 10:40:10 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Aug 2019 14:40:10 +0000 Subject: Challenge: who can background this shell command? In-Reply-To: <17B78AD3-70B3-4290-B356-5DC97F7DA172@swcp.com> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> <17B78AD3-70B3-4290-B356-5DC97F7DA172@swcp.com> Message-ID: <120C0285-D04B-4E16-B7C1-0815AD5A2689@iotecdigital.com> This is a fascinating thread. When all this is sussed out, a nice thing to have is a function that takes arguements for all the heretofore literals, and does the deed. It can be added to the master library. Bob S > On Aug 2, 2019, at 07:13 , Dar Scott Consulting via use-livecode wrote: > > I'm assuming you can send the ^c down the process connection. That is, write to the opened process. Wait a bit after that or look at the response, and then shut down the polling send-loop and then close the connection if it is not already closed, > > It might be that simply closing the connection to the process will cause it to shutdown gracefully. However, it would be nice to see the graceful shutdown. > > I'd collect the reads and put them in a field on a stack just for monitoring the output. You can make it development only or you can make it part of your thing. This will allow you to see what is going on. It also allows you to see why Dar's idea of sending ^c doesn't work. From jjs at krutt.org Fri Aug 2 10:45:00 2019 From: jjs at krutt.org (JJS) Date: Fri, 2 Aug 2019 16:45:00 +0200 Subject: Polyglot and CodeRunner In-Reply-To: References: <608d8394-d956-1a80-a67b-d5e66a13a45d@fourthworld.com> Message-ID: <4a170eb6-4058-f43c-a1b7-43bcb782b669@krutt.org> i only use PHP now, but mainly to communicate with server/DB and ideal payments I started with Kotlin a week ago, a few online lessons for beginners. Because Kotlin is a java derative, runs multiplatform and natively on Android. And they say is easy to learn...well i already saw it's not so easy as Livecode, but just starting. Maybe it can be combined, don't know. Op 2-8-2019 om 16:00 schreef Sean Cole (Pi) via use-livecode: > The trouble with this and Peppermint is they are only for MacOS. So it > doesn't really fall into the LC 'code once for all' bracket. Not that it > isn't useful for some individual projects. But it would be even better if > there was a code runner that was PC, Linux and Windows (and even mobile) > friendly. But I definitely see the advantages for it. > > Sean Cole > *Pi Digital Productions Ltd* > www.pidigital.co.uk > +44(1634)402193 > +44(7702)116447 > 'Don't try to think outside the box. Just remember the truth: There is no > box!' > 'For then you realise it is not the box you are trying to look outside of, > but it is yourself!' > > eMail Ts & Cs Pi Digital > Productions Ltd is a UK registered limited company, no. 5255609 > > > On Fri, 2 Aug 2019 at 14:21, David Bovill via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Does anyone combine Livecode with different programming languages - would >> be interesting to share any experiences. I mainly create wrappers for >> command line tools in Livecode. Sometimes interface with Javascript which I >> want to improve my workflow with. >> >> I was thinking of of extending the way I work with command line tools - >> then saw how https://coderunnerapp.com/ does it - so thought I'd see if we >> can get Livecode to work with CodeRunner first - has anyone done this? >> >> >> *How can I add my own languages to CodeRunner?*CodeRunner's run system is >> based on simple terminal commands, and therefore if you know the terminal >> commands involved in running/compiling code in your language, you can >> easily add it to CodeRunner. To add languages, go to Preferences -> >> Languages, and click the "+" button. In the "Run Command" text box, enter >> the command you use to run the language from the terminal. E.g. if the >> interpreter is called mylang, you would enter mylang $filename here. >> >> If your language uses several commands to run, you can use a CodeRunner >> compile script. Check the box "Language uses compile script" and click the >> "Edit Script..." button. This will open the compile script in the >> CodeRunner editor. The script will contain a further explanation of how to >> use it. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Fri Aug 2 10:53:37 2019 From: jjs at krutt.org (JJS) Date: Fri, 2 Aug 2019 16:53:37 +0200 Subject: 9.5.0 crash to desktop In-Reply-To: <27DE92DF-25B8-4EE5-8EBC-60BFD284A49B@iotecdigital.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <27DE92DF-25B8-4EE5-8EBC-60BFD284A49B@iotecdigital.com> Message-ID: <3bffdd9e-ba4d-81a7-eca8-6975bc713cae@krutt.org> Ok strange, i almost never have a crash. I had once, and made a bug report a time ago, it was when the message box open and the message watcher. I thought it was fixed back then. Sometimes it hangs when pushing to device with test, but that's probably due to a wacky usb cable and it looses a command or so. Op 2-8-2019 om 16:36 schreef Bob Sneidar via use-livecode: > It depends. Sometimes debugging stepping through code. Hovering over a variable to see it's value. Other times just working in my app. Recently I have been adding files to the database. I have a method where I drag files from the Finder onto a button or field, and import the files as binary data into a table in a mySQL database. Sometimes it's in the process of finding a record to attach the files to, like a "device" record for a particular site and customer. I can do this for 15 minutes and then the next time doing exactly the same thing, I crash to desktop. All versions of Community from 9.0.4 to 9.5 are doing it. > > Not sure what a screen capture would accomplish. The windows disappear, I get an error dialog. I have already posted the crash log from one of the CTDs on the QCC site. > > Bob S > > >> On Aug 1, 2019, at 14:26 , JJS via use-livecode wrote: >> >> what are you doing, or what is running when that happens? >> >> Op 1-8-2019 om 23:21 schreef Bob Sneidar via use-livecode: >>> Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 "stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5. >>> >>> Bob S >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Fri Aug 2 11:13:07 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Fri, 2 Aug 2019 09:13:07 -0600 Subject: Challenge: who can background this shell command? In-Reply-To: <120C0285-D04B-4E16-B7C1-0815AD5A2689@iotecdigital.com> References: <91fe8e9d-16d0-0927-f8dc-8336991d7031@fourthworld.com> <774e54ac-0531-2b79-6cbd-490fcc560ecc@sonic.net> <4A3E5CF8-6A47-404A-993B-B0CF5EEA95F8@m-r-d.de> <76add4c2c7579bcfa4d5c9b969b4d0ae@livecode.com> <55086FC2-23F3-4429-8C0F-FC924BBF7A27@swcp.com> <17B78AD3-70B3-4290-B356-5DC97F7DA172@swcp.com> <120C0285-D04B-4E16-B7C1-0815AD5A2689@iotecdigital.com> Message-ID: <7C996816-E341-4410-ACBA-D638F637D9B5@swcp.com> And an especially nice thing (I'm dreaming) would be callbacks for process and device I/O, maybe even some sort of unification with sockets. That would remove the need for polling in a send loop. > On Aug 2, 2019, at 8:40 AM, Bob Sneidar via use-livecode wrote: > > This is a fascinating thread. When all this is sussed out, a nice thing to have is a function that takes arguements for all the heretofore literals, and does the deed. It can be added to the master library. > > Bob S > > >> On Aug 2, 2019, at 07:13 , Dar Scott Consulting via use-livecode wrote: >> >> I'm assuming you can send the ^c down the process connection. That is, write to the opened process. Wait a bit after that or look at the response, and then shut down the polling send-loop and then close the connection if it is not already closed, >> >> It might be that simply closing the connection to the process will cause it to shutdown gracefully. However, it would be nice to see the graceful shutdown. >> >> I'd collect the reads and put them in a field on a stack just for monitoring the output. You can make it development only or you can make it part of your thing. This will allow you to see what is going on. It also allows you to see why Dar's idea of sending ^c doesn't work. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Aug 2 11:26:47 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 02 Aug 2019 10:26:47 -0500 Subject: 9.5.0 crash to desktop In-Reply-To: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> Message-ID: <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Panos has diagnosed at least part of the problem. It has to do with red dot breakpoints. Using the breakpoint command instead may (will?) avoid the crash. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode wrote: > Hi all. Just letting everyone know I am crashing to desktop in 9.5.0 > "stable" (LOL) about very 10 minutes now. No bueno. Going back to 9.0.5. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Aug 2 11:29:02 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Aug 2019 15:29:02 +0000 Subject: 9.5.0 crash to desktop In-Reply-To: <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Hmmm... I did have a watch point set... I will clear all my breakpoints and see what happens. Bob S > On Aug 2, 2019, at 08:26 , J. Landman Gay via use-livecode wrote: > > Panos has diagnosed at least part of the problem. It has to do with red dot breakpoints. Using the breakpoint command instead may (will?) avoid the crash. > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode wrote: > > From bobsneidar at iotecdigital.com Fri Aug 2 11:31:09 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Aug 2019 15:31:09 +0000 Subject: 9.5.0 crash to desktop In-Reply-To: References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <01CED45E-098F-4D8F-8BA3-D5EA775C22AE@iotecdigital.com> Well I just discovered a new bug! I cannot delete a watch point. Richt-click delete nothing happens. Bob S > On Aug 2, 2019, at 08:29 , Bob Sneidar via use-livecode wrote: > > Hmmm... I did have a watch point set... I will clear all my breakpoints and see what happens. > > Bob S > > >> On Aug 2, 2019, at 08:26 , J. Landman Gay via use-livecode wrote: >> >> Panos has diagnosed at least part of the problem. It has to do with red dot breakpoints. Using the breakpoint command instead may (will?) avoid the crash. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode wrote: From bobsneidar at iotecdigital.com Fri Aug 2 11:32:31 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Aug 2019 15:32:31 +0000 Subject: 9.5.0 crash to desktop In-Reply-To: References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: It's a display bug. Quit LC, relaunch, watchpoint gone. Bob S > On Aug 2, 2019, at 08:29 , Bob Sneidar via use-livecode wrote: > > Hmmm... I did have a watch point set... I will clear all my breakpoints and see what happens. > > Bob S > > >> On Aug 2, 2019, at 08:26 , J. Landman Gay via use-livecode wrote: >> >> Panos has diagnosed at least part of the problem. It has to do with red dot breakpoints. Using the breakpoint command instead may (will?) avoid the crash. >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode wrote: >> >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Aug 2 12:02:38 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 02 Aug 2019 11:02:38 -0500 Subject: 9.5.0 crash to desktop In-Reply-To: References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <16c53119930.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> That sounds related somehow. On Mac, you're more apt to get a crash rather than just a visual glitch. What happens if you use the Developer menu to clear all breakpoints? Same thing? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 2, 2019 10:34:08 AM Bob Sneidar via use-livecode wrote: > It's a display bug. Quit LC, relaunch, watchpoint gone. > > Bob S > > >> On Aug 2, 2019, at 08:29 , Bob Sneidar via use-livecode >> wrote: >> >> Hmmm... I did have a watch point set... I will clear all my breakpoints and >> see what happens. >> >> Bob S >> >> >>> On Aug 2, 2019, at 08:26 , J. Landman Gay via use-livecode >>> wrote: >>> >>> Panos has diagnosed at least part of the problem. It has to do with red dot >>> breakpoints. Using the breakpoint command instead may (will?) avoid the crash. >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> On August 1, 2019 4:22:57 PM Bob Sneidar via use-livecode >>> wrote: >>> >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Aug 2 13:11:55 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 2 Aug 2019 17:11:55 +0000 Subject: 9.5.0 crash to desktop In-Reply-To: <16c53119930.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <16c53119930.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <8FA88F49-3C06-44A8-9AEE-1484CFDC0143@iotecdigital.com> Well interestingly, after clearing all my breakpoints, I have not had one CTD in 2 hours! Yeah, I think Panos is on to something. It explains also why the standalones I build are not crashing in the same way. Bob S > On Aug 2, 2019, at 09:02 , J. Landman Gay via use-livecode wrote: > > That sounds related somehow. On Mac, you're more apt to get a crash rather than just a visual glitch. What happens if you use the Developer menu to clear all breakpoints? Same thing? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 2, 2019 10:34:08 AM Bob Sneidar via use-livecode wrote: > > From ahsoftware at sonic.net Fri Aug 2 13:16:30 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 2 Aug 2019 10:16:30 -0700 Subject: ANN: PowerDebug 2.1.5 Message-ID: <0f155538-0dd1-caa4-6c20-68db0e519cbe@sonic.net> Hi- I have released a new version of PowerDebug, the first real update in three years. Note that PowerDebug does not seem to have the crash-to-desktop problems exhibited by the IDE debugger in LiveCode 9.x when deleting red-dot ghost breakpoints, so if you're currently experiencing the crashing problems you should be using PowerDebug, at least until the engine problems in LiveCode are resolved. Version 2.1.5 is significantly refactored in certain areas for speed and to fix some bugs relating to the display of variables when switching contexts and the display of multidimensional arrays. PowerDebug completely supports LC9.x and is backwards-compatible to at least version 4.x. Debugging of standalone applications is still supported on the same computer, cross-platform on multiple computers, and on different computers in the same local subnet. http://powerdebug.ahsoftware.net http://ahsoftware.net/PowerTools/BuyPowerDebug.lc **** For current users (I've gotten some bounced emails, so if you didn't get an update email from me, read on) NOTE: even if you have a beta version of 2.x you should download the most recent version. That's the only one guaranteed to have all the latest patches. As usual, your registration will never expire, so you have access to the latest versions. -- Mark Wieder ahsoftware at gmail.com -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Fri Aug 2 13:26:23 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 2 Aug 2019 19:26:23 +0200 Subject: ANN: PowerDebug 2.1.5 In-Reply-To: <0f155538-0dd1-caa4-6c20-68db0e519cbe@sonic.net> References: <0f155538-0dd1-caa4-6c20-68db0e519cbe@sonic.net> Message-ID: Great to hear and good timing. :) When i read your comment that you do not experience those crashes using PowerDebug, i?ve immediately searched for my registration email, but the link did not work anymore. So your update is just in time. Thank you very much. Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 02.08.2019 um 19:16 schrieb Mark Wieder via use-livecode >: > > Hi- > > I have released a new version of PowerDebug, the first real update in three years. > > Note that PowerDebug does not seem to have the crash-to-desktop problems exhibited by the IDE debugger in LiveCode 9.x when deleting red-dot ghost breakpoints, so if you're currently experiencing the crashing problems you should be using PowerDebug, at least until the engine problems in LiveCode are resolved. > > Version 2.1.5 is significantly refactored in certain areas for speed and to fix some bugs relating to the display of variables when switching contexts and the display of multidimensional arrays. > > PowerDebug completely supports LC9.x and is backwards-compatible to at least version 4.x. > Debugging of standalone applications is still supported on the same computer, cross-platform on multiple computers, and on different computers in the same local subnet. > > http://powerdebug.ahsoftware.net > http://ahsoftware.net/PowerTools/BuyPowerDebug.lc > > > **** > > For current users (I've gotten some bounced emails, so if you didn't get an update email from me, read on) > > NOTE: even if you have a beta version of 2.x you should download the most recent version. That's the only one guaranteed to have all the latest patches. > > As usual, your registration will never expire, so you have access to the latest versions. > > -- > Mark Wieder > ahsoftware at gmail.com > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri Aug 2 13:56:56 2019 From: klaus at major-k.de (Klaus major-k) Date: Fri, 2 Aug 2019 19:56:56 +0200 Subject: "template" stack in custom property In-Reply-To: <4AAFC5CC-D4E4-4753-8614-47B157FB21A3@major-k.de> References: <2E4AC947-A5FA-414D-B2A4-10CD575E0A24@major-k.de> <4AAFC5CC-D4E4-4753-8614-47B157FB21A3@major-k.de> Message-ID: <808E9616-3BB0-481D-832E-2D1C85C36586@major-k.de> Hi all, in case someone is interested. > Am 02.08.2019 um 16:00 schrieb Klaus major-k via use-livecode : > > Hi all, > > I found a workaround by creating two handlers and use them with a little dealy. > >> Am 02.08.2019 um 14:59 schrieb Klaus major-k via use-livecode : >> >> Hi friends, >> >> I have done this a lot in the past, but currently got stuck with this in LC 9.5 >> I store a stack in a custom property and open it via script like: >> ... >> put "NewJob_" & the seconds into tName lock messages ## Now every line in the handler is being executed. >> go invisible stack (the cTemplateStack of this stack) >> ## Works so far, the stack is in -> the openstacks >> >> ## However NOTHING that comes after that line will ever get executed? >> ## restarted LC a couple of time, no dice... >> >> ## Even the BREAKPOINT is being ignored!? >> breakpoint >> answer "asfasdasdasdasdasd" >> ... looks like this only happens if the stack in the CP does have a "pre-/openstack" handler!? If I add "lock messages" everything works as advertised. This does not happen if I go to a stack on my HD!? Oh my... :-/ Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Fri Aug 2 14:24:40 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 2 Aug 2019 13:24:40 -0500 Subject: "template" stack in custom property In-Reply-To: <808E9616-3BB0-481D-832E-2D1C85C36586@major-k.de> References: <2E4AC947-A5FA-414D-B2A4-10CD575E0A24@major-k.de> <4AAFC5CC-D4E4-4753-8614-47B157FB21A3@major-k.de> <808E9616-3BB0-481D-832E-2D1C85C36586@major-k.de> Message-ID: <84acc096-1204-bf39-77e4-4d04093c8756@hyperactivesw.com> On 8/2/19 12:56 PM, Klaus major-k via use-livecode wrote: > Hi all, > > in case someone is interested. > >> Am 02.08.2019 um 16:00 schrieb Klaus major-k via use-livecode : >> >> Hi all, >> >> I found a workaround by creating two handlers and use them with a little dealy. >> >>> Am 02.08.2019 um 14:59 schrieb Klaus major-k via use-livecode : >>> >>> Hi friends, >>> >>> I have done this a lot in the past, but currently got stuck with this in LC 9.5 >>> I store a stack in a custom property and open it via script like: >>> ... >>> put "NewJob_" & the seconds into tName > > lock messages > ## Now every line in the handler is being executed. > >>> go invisible stack (the cTemplateStack of this stack) >>> ## Works so far, the stack is in -> the openstacks >>> >>> ## However NOTHING that comes after that line will ever get executed? >>> ## restarted LC a couple of time, no dice... >>> >>> ## Even the BREAKPOINT is being ignored!? >>> breakpoint >>> answer "asfasdasdasdasdasd" >>> ... > > looks like this only happens if the stack in the CP does have a "pre-/openstack" handler!? > If I add "lock messages" everything works as advertised. > > This does not happen if I go to a stack on my HD!? > Oh my... :-/ I have seen many instances where the IDE does not recognize the defaultstack. Yesterday I had two stacks open, I clicked on one to bring it to the front, and the message box title bar correctly said it was the target stack for messages. But every command I put in the message box threw an error. I asked it what the defaultstack was and it answered correctly. But I couldn't get commands to work until I added a full path to the stack and used the send command: send "myMessage" to this card of stack "otherstack" Just typing "myMessage" into the message box always said it couldn't find the handler. It also couldn't find any objects I could see clearly on screen, etc. It was as if the stack wasn't there. Setting the defaultstack manually in the message box also didn't work. The "can't find handler" error, as well as not finding controls or cards, has been around for a while but I see it more oftn in the last few versions of LC 9. I haven't got a repeatable recipe yet so haven't reported it. Anyway, that sounds like what you are experiencing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From klaus at major-k.de Fri Aug 2 14:30:49 2019 From: klaus at major-k.de (Klaus major-k) Date: Fri, 2 Aug 2019 20:30:49 +0200 Subject: "template" stack in custom property In-Reply-To: <84acc096-1204-bf39-77e4-4d04093c8756@hyperactivesw.com> References: <2E4AC947-A5FA-414D-B2A4-10CD575E0A24@major-k.de> <4AAFC5CC-D4E4-4753-8614-47B157FB21A3@major-k.de> <808E9616-3BB0-481D-832E-2D1C85C36586@major-k.de> <84acc096-1204-bf39-77e4-4d04093c8756@hyperactivesw.com> Message-ID: <6D53E6F0-F286-4EB9-9200-A6F9DA7BABC6@major-k.de> Hi Jaque, > Am 02.08.2019 um 20:24 schrieb J. Landman Gay via use-livecode : > ... > The "can't find handler" error, as well as not finding controls or cards, has been around for a while but I see it more oftn in the last few versions of LC 9. I haven't got a repeatable recipe yet so haven't reported it. > > Anyway, that sounds like what you are experiencing. no, I don't think so, because LC obviously neglects the rest of the script but ONLY if the stack-to-be-opened has a pre-/openstack handler. Works if I add -> lock messages! And this only happens when I open a stack from within a custom property. If I do the same with a stack from my HD, everything works as exspected, so it does not sound like LC is not finding "the defaultstack". > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From dochawk at gmail.com Fri Aug 2 14:49:20 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Aug 2019 11:49:20 -0700 Subject: V9.5 may still have issues In-Reply-To: <9522f080-1b37-8770-3f15-311cb357b07f@hyperactivesw.com> References: <7EE8BC8F-CC91-498C-8DCF-B28C47DFD8EB@iotecdigital.com> <9522f080-1b37-8770-3f15-311cb357b07f@hyperactivesw.com> Message-ID: <634080DD-6EAC-4DCF-88E6-B41F91DFFA4D@gmail.com> On Jul 31, 2019, at 7:26 PM, J. Landman Gay via use-livecode wrote: > > Only once an hour? ;) > > Yeah, something is off. Download version 6; that should solve the problem . . . :) I *never* managed to get 6 to either stay up long enough or respect a red dot enough to do any work. I had to wait for 7 . . . ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From bogdanoff at me.com Fri Aug 2 16:06:55 2019 From: bogdanoff at me.com (Peter Bogdanoff) Date: Fri, 2 Aug 2019 13:06:55 -0700 Subject: "template" stack in custom property In-Reply-To: <6D53E6F0-F286-4EB9-9200-A6F9DA7BABC6@major-k.de> References: <2E4AC947-A5FA-414D-B2A4-10CD575E0A24@major-k.de> <4AAFC5CC-D4E4-4753-8614-47B157FB21A3@major-k.de> <808E9616-3BB0-481D-832E-2D1C85C36586@major-k.de> <84acc096-1204-bf39-77e4-4d04093c8756@hyperactivesw.com> <6D53E6F0-F286-4EB9-9200-A6F9DA7BABC6@major-k.de> Message-ID: Possibly related to this inability to focus properly is this bug I just filed: Bug 22285 - Can't focus on script window with property inspector custom properties tab open Only showing in LC 9.5. This can really create havoc if you don?t watch where the characters you are typing or pasting actually end up. Peter Bogdanoff ArtsInteractive > On Aug 2, 2019, at 11:30 AM, Klaus major-k via use-livecode wrote: > > Hi Jaque, > >> Am 02.08.2019 um 20:24 schrieb J. Landman Gay via use-livecode : >> ... >> The "can't find handler" error, as well as not finding controls or cards, has been around for a while but I see it more oftn in the last few versions of LC 9. I haven't got a repeatable recipe yet so haven't reported it. >> >> Anyway, that sounds like what you are experiencing. > > no, I don't think so, because LC obviously neglects the rest of the script > but ONLY if the stack-to-be-opened has a pre-/openstack handler. > > Works if I add -> lock messages! > > And this only happens when I open a stack from within a custom property. > If I do the same with a stack from my HD, everything works as exspected, so it does not sound > like LC is not finding "the defaultstack". > >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.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 dochawk at gmail.com Fri Aug 2 16:07:34 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 2 Aug 2019 13:07:34 -0700 Subject: Transparent layer between pdf widget and field? In-Reply-To: <76FE5C8A-F1FE-44E9-A80D-6551A282ED71@swcp.com> References: <0F1F3B6B-8E46-4557-939A-DA535524C1A8@gmail.com> <76FE5C8A-F1FE-44E9-A80D-6551A282ED71@swcp.com> Message-ID: <39F5B5DB-C389-4D34-93F4-506F6466298D@gmail.com> On Aug 1, 2019, at 5:54 PM, Dar Scott Consulting via use-livecode wrote: > > Maybe your rectangle can have its blend level and ink tweaked to provide the look you want. Ahh. blendLevel is the keyword I was looking for. I was looking for ?transparency? and the like. Blendlevel 85 and yellow seems perfect to lightly emphasize; thank you. ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From ambassador at fourthworld.com Fri Aug 2 22:33:00 2019 From: ambassador at fourthworld.com (ambassador at fourthworld.com) Date: Fri, 02 Aug 2019 22:33:00 -0400 Subject: "template" stack in custom property Message-ID: <58851fd6d19abed744a947b93eb56bbd@fourthworld.com> What are the advantage of instantiating the new stack from data in a prop rather than by cloning a substack? From brahma at hindu.org Sat Aug 3 10:14:09 2019 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sat, 3 Aug 2019 14:14:09 +0000 Subject: Save Standalone Settings Externally Message-ID: When working collaborately with a framework on Git Hub. There is always an issue of the stack that will be made the standalone for the app. No changes are made to binary MyMainStack.app other than settings in the standalone, which you may does simply for testing. Now, if you "pull" the project in Git Hub, you are prompted that the changes to MyMainStack.app need to be committed?etc. if you do, then you will get a conflict when you will pull. So the usual practice (for me anyway) is to a) be sure the only changes in the binary are to the SA settings, nothing else b) run git stash c) then pull Is there some way to externalize the SA setting so that they don?t change the binary? This way you could 1. Load SA setting for testing # call it "MyMainStack_SA-Setting.config" # git ignore would have a "MyMainStack_SA-Setting.config" so it does not track 1. Now whatever you do with SA settings for testing, does not check the binary stack. 2. Pull without conflict. And, now you know for sure that when you commit the MyMainStack.app changes where you are for sure changed anything else *other* that the standalone settings? Because you never save it? Of course, it you want to save the SA setting in the binary, you *could* save them?. BR From ahsoftware at sonic.net Sat Aug 3 10:39:28 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 3 Aug 2019 07:39:28 -0700 Subject: Save Standalone Settings Externally In-Reply-To: References: Message-ID: <37edda34-af80-34f3-72dc-56b60c43ffed@sonic.net> On 8/3/19 7:14 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > When working collaborately with a framework on Git Hub. There is always an issue of the stack that will be made the standalone for the app. > > No changes are made to binary MyMainStack.app other than settings in the standalone, which you may does simply for testing. > > Now, if you "pull" the project in Git Hub, you are prompted that the changes to MyMainStack.app need to be committed?etc. if you do, then you will get a conflict when you will pull. So the usual practice (for me anyway) is to Do you already have MyMainStack.app in your (and your team's) .gitignore file? -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Sat Aug 3 10:53:47 2019 From: brian at milby7.com (Brian Milby) Date: Sat, 3 Aug 2019 10:53:47 -0400 Subject: Save Standalone Settings Externally In-Reply-To: <37edda34-af80-34f3-72dc-56b60c43ffed@sonic.net> References: <37edda34-af80-34f3-72dc-56b60c43ffed@sonic.net> Message-ID: <86c974ef-b67c-4d1b-9cf6-4d2fb817adc8@Spark> No, that is a required file for the app and needs to be in the repo. Thanks, Brian On Aug 3, 2019, 10:40 AM -0400, Mark Wieder via use-livecode , wrote: > On 8/3/19 7:14 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > > When working collaborately with a framework on Git Hub. There is always an issue of the stack that will be made the standalone for the app. > > > > No changes are made to binary MyMainStack.app other than settings in the standalone, which you may does simply for testing. > > > > Now, if you "pull" the project in Git Hub, you are prompted that the changes to MyMainStack.app need to be committed?etc. if you do, then you will get a conflict when you will pull. So the usual practice (for me anyway) is to > > Do you already have MyMainStack.app in your (and your team's) .gitignore > file? > > -- > 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 paul at researchware.com Sat Aug 3 11:19:29 2019 From: paul at researchware.com (Paul Dupuis) Date: Sat, 3 Aug 2019 11:19:29 -0400 Subject: "template" stack in custom property In-Reply-To: <58851fd6d19abed744a947b93eb56bbd@fourthworld.com> References: <58851fd6d19abed744a947b93eb56bbd@fourthworld.com> Message-ID: On 8/2/2019 10:33 PM, ambassador--- via use-livecode wrote: > What are the advantage of instantiating the new stack from data in a > prop rather than by cloning a substack? > That was my question too. It is a very different way of storing a stack. I imagine that an: open invisible stack (the cSavedStack of stack "someOtherStack") would be like a open invisible URL in that it has to be loaded into memory, so it it is not the last line of the script, I would expect it should be followed by a "wait with messages" to allow all the new stack messages to fire. From ahsoftware at sonic.net Sat Aug 3 11:37:13 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 3 Aug 2019 08:37:13 -0700 Subject: Save Standalone Settings Externally In-Reply-To: <86c974ef-b67c-4d1b-9cf6-4d2fb817adc8@Spark> References: <37edda34-af80-34f3-72dc-56b60c43ffed@sonic.net> <86c974ef-b67c-4d1b-9cf6-4d2fb817adc8@Spark> Message-ID: On 8/3/19 7:53 AM, Brian Milby via use-livecode wrote: > No, that is a required file for the app and needs to be in the repo. Ah. My bad. I assumed the .app was the standalone itself. -- Mark Wieder ahsoftware at gmail.com From klaus at major-k.de Sat Aug 3 14:47:36 2019 From: klaus at major-k.de (Klaus major-k) Date: Sat, 3 Aug 2019 20:47:36 +0200 Subject: "template" stack in custom property In-Reply-To: References: <58851fd6d19abed744a947b93eb56bbd@fourthworld.com> Message-ID: <6B184BAF-D4ED-4763-8316-AF975727249B@major-k.de> Hi guys, > Am 03.08.2019 um 17:19 schrieb Paul Dupuis via use-livecode : > On 8/2/2019 10:33 PM, ambassador--- via use-livecode wrote: >> What are the advantage of instantiating the new stack from data in a prop rather than by cloning a substack? > That was my question too. well the first approach is much much cooler than the latter one, innit? :-) Jokes aside, one advantage is that someone else can create that "template" stack, my customer in this case, and since this is a separate stack file it can thus contain substacks, which can be another big advantage in some situations. > It is a very different way of storing a stack. I have never been representative. 8-) > I imagine that an: open invisible stack (the cSavedStack of stack "someOtherStack") > would be like a open invisible URL Yes. > in that it has to be loaded into memory, so it it is not the last line of the script, I would expect it should be followed by a "wait with messages" to allow all the new stack messages to fire. But as I wrote, if I load a stack from my hd, everything works as advertised!? Anyway, I have a nice workaround and a happy customer. Have a nice weekend. Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From matthias_livecode_150811 at m-r-d.de Sat Aug 3 15:30:06 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 3 Aug 2019 21:30:06 +0200 Subject: Updated Lesson and new Notarization Helper Stack Message-ID: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> For those who are interested. Today i?ve updated the Lesson on How to code sign and Notarize an app for distribution outside of the Mac Appstore. I?ve also included an updated version of my stack. The new version is now able to to the complete stuff from code signing up to notarizing and stapling your app or dmg. You just drap your app to the stack, enter some data and the stack does all the rest for you. The new lesson can be found here . Hope this is of some use for the one or the other. Regards, Matthias From jacque at hyperactivesw.com Sat Aug 3 15:58:09 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 3 Aug 2019 14:58:09 -0500 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> Message-ID: If you need to notarize a Mac app, this thing is a marvel. I was nervous about getting through Apple's new requirements for app distribution but Notarization Helper is as simple as it gets. I'd used AppWrapper in the past, but the new notarization and stapling process isn't included there yet, at least until AppWrapper comes out of beta. Matthias has made an all-in-one solution that requires nothing from the user but a couple of bits of info and a mouse click, and it works right within the LC IDE. This is a keeper. If you are distributing outside the Macc App Store, go get it. On 8/3/19 2:30 PM, Matthias Rebbe via use-livecode wrote: > For those who are interested. > > Today i?ve updated the Lesson on How to code sign and Notarize an app for distribution outside of the Mac Appstore. I?ve also included an updated version of my stack. The new version is now able to to the complete stuff from code signing up to notarizing and stapling your app or dmg. > > You just drap your app to the stack, enter some data and the stack does all the rest for you. > > The new lesson can be found here . > > Hope this is of some use for the one or the other. > > > 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 > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Sat Aug 3 16:14:09 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 3 Aug 2019 22:14:09 +0200 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> Message-ID: <05129BD4-9B24-488F-9D57-7677BFCB6A56@m-r-d.de> Jacque, thank you very much for your kind words. To be fair, App Wrapper 3.9.1, which is able to notarize, was released some days ago. Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 03.08.2019 um 21:58 schrieb J. Landman Gay via use-livecode >: > > If you need to notarize a Mac app, this thing is a marvel. I was nervous about getting through Apple's new requirements for app distribution but Notarization Helper is as simple as it gets. I'd used AppWrapper in the past, but the new notarization and stapling process isn't included there yet, at least until AppWrapper comes out of beta. Matthias has made an all-in-one solution that requires nothing from the user but a couple of bits of info and a mouse click, and it works right within the LC IDE. > > This is a keeper. If you are distributing outside the Macc App Store, go get it. > > On 8/3/19 2:30 PM, Matthias Rebbe via use-livecode wrote: >> For those who are interested. >> Today i?ve updated the Lesson on How to code sign and Notarize an app for distribution outside of the Mac Appstore. I?ve also included an updated version of my stack. The new version is now able to to the complete stuff from code signing up to notarizing and stapling your app or dmg. >> You just drap your app to the stack, enter some data and the stack does all the rest for you. >> The new lesson can be found here >. >> Hope this is of some use for the one or the other. >> 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 > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Aug 3 16:34:33 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 3 Aug 2019 15:34:33 -0500 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: <05129BD4-9B24-488F-9D57-7677BFCB6A56@m-r-d.de> References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> <05129BD4-9B24-488F-9D57-7677BFCB6A56@m-r-d.de> Message-ID: <083222cb-9f2f-f4ad-af9e-61fada5924ed@hyperactivesw.com> I wasn't aware of the AppWrapper update, but yours not only works seamlessly with LC, but it's free. That's a big plus, and you're generous to provide it to us. On 8/3/19 3:14 PM, Matthias Rebbe via use-livecode wrote: > Jacque, thank you very much for your kind words. > > To be fair, App Wrapper 3.9.1, which is able to notarize, was released some days ago. > > Regards, > Matthias > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > >> Am 03.08.2019 um 21:58 schrieb J. Landman Gay via use-livecode >: >> >> If you need to notarize a Mac app, this thing is a marvel. I was nervous about getting through Apple's new requirements for app distribution but Notarization Helper is as simple as it gets. I'd used AppWrapper in the past, but the new notarization and stapling process isn't included there yet, at least until AppWrapper comes out of beta. Matthias has made an all-in-one solution that requires nothing from the user but a couple of bits of info and a mouse click, and it works right within the LC IDE. >> >> This is a keeper. If you are distributing outside the Macc App Store, go get it. >> >> On 8/3/19 2:30 PM, Matthias Rebbe via use-livecode wrote: >>> For those who are interested. >>> Today i?ve updated the Lesson on How to code sign and Notarize an app for distribution outside of the Mac Appstore. I?ve also included an updated version of my stack. The new version is now able to to the complete stuff from code signing up to notarizing and stapling your app or dmg. >>> You just drap your app to the stack, enter some data and the stack does all the rest for you. >>> The new lesson can be found here >. >>> Hope this is of some use for the one or the other. >>> 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 >> >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From tom at makeshyft.com Sat Aug 3 20:56:47 2019 From: tom at makeshyft.com (Tom Glod) Date: Sat, 3 Aug 2019 20:56:47 -0400 Subject: Making "read from file" less blocky. Message-ID: Hey folks, I'm having trouble finding a combination of settings that allows my file loading to seem to happen in the background. repeat while read_result is not "eof" read from file ThisFile for (1024 * 1000) bytes put the result into read_result put it after IntoThisVariable add length(it) to amount_read TSTProgress amount_read,ExpectedSize,"%","Loading File ..." (Progress Indicator Handler) wait 10 milliseconds with messages end repeat no matter what I try, its still sluggish, and it seems like messages are still accumilating instead of being processed by the engine. Am I missing something? Normally waiting with messages sufficiently frees the engine to allow the UI to remain responsive. Thanks, Tom From dsc at swcp.com Sat Aug 3 22:08:45 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sat, 3 Aug 2019 20:08:45 -0600 Subject: Making "read from file" less blocky. In-Reply-To: References: Message-ID: <62C14D08-C382-4F03-8E43-F68548E36A1C@swcp.com> Alas, only read from socket allows a message to be sent upon completion. The step siblings read from file, read from process and read from driver do not. Here are a few things you might do: 1. Try making the file loading very fast and don't do it in the background. Change the cursor if need be. Try using URL with file: or binfile:, maybe that is fast. 2. Use a "send loop" to read in portions and update a progress bar. You can get help here on how to do that. 3. Process the file lazily and bring in parts as needed. 4. Figure out how to make the file read through networking. Somehow. Maybe. > On Aug 3, 2019, at 6:56 PM, Tom Glod via use-livecode wrote: > > Hey folks, > > I'm having trouble finding a combination of settings that allows my file > loading to seem to happen in the background. > > repeat while read_result is not "eof" > read from file ThisFile for (1024 * 1000) bytes > put the result into read_result > put it after IntoThisVariable > add length(it) to amount_read > TSTProgress amount_read,ExpectedSize,"%","Loading File ..." > (Progress Indicator Handler) > wait 10 milliseconds with messages > end repeat > > no matter what I try, its still sluggish, and it seems like messages are > still accumilating instead of being processed by the engine. > > Am I missing something? Normally waiting with messages sufficiently frees > the engine to allow the UI to remain responsive. > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jerry at jhjensen.com Sat Aug 3 22:36:33 2019 From: jerry at jhjensen.com (Jerry Jensen) Date: Sat, 3 Aug 2019 19:36:33 -0700 Subject: Making "read from file" less blocky. In-Reply-To: References: Message-ID: <05483797-18A8-4A6D-B4F3-7B1A753A9ABD@jhjensen.com> Hi Tom, I?ve done this in the past watching it instead of the result. I seem to remember eof was not useful. Maybe for a serial port it would be? As in: repeat forever read from file ThisFile for (1024 * 1000) bytes if it is empty then exit repeat ? do your stuff wait 0 with messages end repeat Onward, .Jerry non-sphere (tetrahedron?) It was a long time ago in, I think, LC 5, so YMMV. > On Aug 3, 2019, at 5:56 PM, Tom Glod via use-livecode wrote: > > Hey folks, > > I'm having trouble finding a combination of settings that allows my file > loading to seem to happen in the background. > > repeat while read_result is not "eof" > read from file ThisFile for (1024 * 1000) bytes > put the result into read_result > put it after IntoThisVariable > add length(it) to amount_read > TSTProgress amount_read,ExpectedSize,"%","Loading File ..." > (Progress Indicator Handler) > wait 10 milliseconds with messages > end repeat > > no matter what I try, its still sluggish, and it seems like messages are > still accumilating instead of being processed by the engine. > > Am I missing something? Normally waiting with messages sufficiently frees > the engine to allow the UI to remain responsive. > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Sat Aug 3 22:47:11 2019 From: tom at makeshyft.com (Tom Glod) Date: Sat, 3 Aug 2019 22:47:11 -0400 Subject: Making "read from file" less blocky. In-Reply-To: <05483797-18A8-4A6D-B4F3-7B1A753A9ABD@jhjensen.com> References: <05483797-18A8-4A6D-B4F3-7B1A753A9ABD@jhjensen.com> Message-ID: Dar, Yes...I understand.....it is a blocking operation no matter what I can just introduce breaks in the blockiness. So I'm not expecting a socket like experience for sure. Those are very good suggestions to try.... thank you. Jerry, I will give that a try, it looks promising.....even a little improvement would be better and sufficient for this need, and I can use it sparingly. Thanks alot! Onward indeed. On Sat, Aug 3, 2019 at 10:36 PM Jerry Jensen via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Tom, > > I?ve done this in the past watching it instead of the result. I seem to > remember eof was not useful. Maybe for a serial port it would be? > > As in: > > repeat forever > read from file ThisFile for (1024 * 1000) bytes > if it is empty then exit repeat > ? do your stuff > wait 0 with messages > end repeat > > Onward, > .Jerry non-sphere (tetrahedron?) > > It was a long time ago in, I think, LC 5, so YMMV. > > > > On Aug 3, 2019, at 5:56 PM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hey folks, > > > > I'm having trouble finding a combination of settings that allows my file > > loading to seem to happen in the background. > > > > repeat while read_result is not "eof" > > read from file ThisFile for (1024 * 1000) bytes > > put the result into read_result > > put it after IntoThisVariable > > add length(it) to amount_read > > TSTProgress amount_read,ExpectedSize,"%","Loading File ..." > > (Progress Indicator Handler) > > wait 10 milliseconds with messages > > end repeat > > > > no matter what I try, its still sluggish, and it seems like messages are > > still accumilating instead of being processed by the engine. > > > > Am I missing something? Normally waiting with messages sufficiently > frees > > the engine to allow the UI to remain responsive. > > > > Thanks, > > > > Tom > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Aug 3 23:02:52 2019 From: tom at makeshyft.com (Tom Glod) Date: Sat, 3 Aug 2019 23:02:52 -0400 Subject: Making "read from file" less blocky. In-Reply-To: References: <05483797-18A8-4A6D-B4F3-7B1A753A9ABD@jhjensen.com> Message-ID: Jerry, that simple tweak worked to improve the performance of the UI a great deal...... its a slower method of loading...........but not too slow to use as background loading. ...Its actually better than what I expected. Awesome. I always love to use the forever loop..... its just so fun to write. lol I gotta get some error handling in there but thats another story. Consider this one SOLVED. Thanks again. On Sat, Aug 3, 2019 at 10:47 PM Tom Glod wrote: > Dar, Yes...I understand.....it is a blocking operation no matter what I > can just introduce breaks in the blockiness. So I'm not expecting a socket > like experience for sure. > > Those are very good suggestions to try.... thank you. > > Jerry, I will give that a try, it looks promising.....even a little > improvement would be better and sufficient for this need, and I can use it > sparingly. Thanks alot! Onward indeed. > > On Sat, Aug 3, 2019 at 10:36 PM Jerry Jensen via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Tom, >> >> I?ve done this in the past watching it instead of the result. I seem to >> remember eof was not useful. Maybe for a serial port it would be? >> >> As in: >> >> repeat forever >> read from file ThisFile for (1024 * 1000) bytes >> if it is empty then exit repeat >> ? do your stuff >> wait 0 with messages >> end repeat >> >> Onward, >> .Jerry non-sphere (tetrahedron?) >> >> It was a long time ago in, I think, LC 5, so YMMV. >> >> >> > On Aug 3, 2019, at 5:56 PM, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Hey folks, >> > >> > I'm having trouble finding a combination of settings that allows my file >> > loading to seem to happen in the background. >> > >> > repeat while read_result is not "eof" >> > read from file ThisFile for (1024 * 1000) bytes >> > put the result into read_result >> > put it after IntoThisVariable >> > add length(it) to amount_read >> > TSTProgress amount_read,ExpectedSize,"%","Loading File ..." >> > (Progress Indicator Handler) >> > wait 10 milliseconds with messages >> > end repeat >> > >> > no matter what I try, its still sluggish, and it seems like messages are >> > still accumilating instead of being processed by the engine. >> > >> > Am I missing something? Normally waiting with messages sufficiently >> frees >> > the engine to allow the UI to remain responsive. >> > >> > Thanks, >> > >> > Tom >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > From tom at makeshyft.com Sat Aug 3 23:15:41 2019 From: tom at makeshyft.com (Tom Glod) Date: Sat, 3 Aug 2019 23:15:41 -0400 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: <083222cb-9f2f-f4ad-af9e-61fada5924ed@hyperactivesw.com> References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> <05129BD4-9B24-488F-9D57-7677BFCB6A56@m-r-d.de> <083222cb-9f2f-f4ad-af9e-61fada5924ed@hyperactivesw.com> Message-ID: Hats off to you again sir Matthias. Thank you On Sat, Aug 3, 2019 at 4:34 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I wasn't aware of the AppWrapper update, but yours not only works > seamlessly with LC, but it's free. That's a big plus, and you're > generous to provide it to us. > > On 8/3/19 3:14 PM, Matthias Rebbe via use-livecode wrote: > > Jacque, thank you very much for your kind words. > > > > To be fair, App Wrapper 3.9.1, which is able to notarize, was released > some days ago. > > > > Regards, > > Matthias > > > > Matthias Rebbe > > > > free tools for Livecoders: > > InstaMaker > > WinSignMaker Mac > > > >> Am 03.08.2019 um 21:58 schrieb J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com >: > >> > >> If you need to notarize a Mac app, this thing is a marvel. I was > nervous about getting through Apple's new requirements for app distribution > but Notarization Helper is as simple as it gets. I'd used AppWrapper in the > past, but the new notarization and stapling process isn't included there > yet, at least until AppWrapper comes out of beta. Matthias has made an > all-in-one solution that requires nothing from the user but a couple of > bits of info and a mouse click, and it works right within the LC IDE. > >> > >> This is a keeper. If you are distributing outside the Macc App Store, > go get it. > >> > >> On 8/3/19 2:30 PM, Matthias Rebbe via use-livecode wrote: > >>> For those who are interested. > >>> Today i?ve updated the Lesson on How to code sign and Notarize an app > for distribution outside of the Mac Appstore. I?ve also included an updated > version of my stack. The new version is now able to to the complete stuff > from code signing up to notarizing and stapling your app or dmg. > >>> You just drap your app to the stack, enter some data and the stack > does all the rest for you. > >>> The new lesson can be found here < > http://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore > < > http://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore > >>. > >>> Hope this is of some use for the one or the other. > >>> 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 > >> > >> > >> -- > >> Jacqueline Landman Gay | jacque at hyperactivesw.com jacque at hyperactivesw.com> > >> HyperActive Software | http://www.hyperactivesw.com < > http://www.hyperactivesw.com/> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jerry at jhjensen.com Sat Aug 3 23:23:34 2019 From: jerry at jhjensen.com (Jerry Jensen) Date: Sat, 3 Aug 2019 20:23:34 -0700 Subject: Making "read from file" less blocky. In-Reply-To: References: <05483797-18A8-4A6D-B4F3-7B1A753A9ABD@jhjensen.com> Message-ID: <1DDD8F5E-57DC-4537-9C9F-627A83C1CF5A@jhjensen.com> Memory returns slowly? I take back what I said about eof maybe working for serial ports. I?m pretty sure it doesn?t. When I did this before I was taking data from 2 incoming asynchronous serial ports, one then the other then repeat. They only had tiny buffers, so I had to read small pieces of data from each with minimum delays between. When nobody was talking I handled the accumulated data. It it is! .Jerry > On Aug 3, 2019, at 8:02 PM, Tom Glod via use-livecode wrote: > > Jerry, that simple tweak worked to improve the performance of the UI a > great deal...... its a slower method of loading...........but not too slow > to use as background loading. ...Its actually better than what I > expected. Awesome. > I always love to use the forever loop..... its just so fun to write. lol > I gotta get some error handling in there but thats another story. > Consider this one SOLVED. Thanks again. > > > > On Sat, Aug 3, 2019 at 10:47 PM Tom Glod wrote: > >> Dar, Yes...I understand.....it is a blocking operation no matter what I >> can just introduce breaks in the blockiness. So I'm not expecting a socket >> like experience for sure. >> >> Those are very good suggestions to try.... thank you. >> >> Jerry, I will give that a try, it looks promising.....even a little >> improvement would be better and sufficient for this need, and I can use it >> sparingly. Thanks alot! Onward indeed. >> >> On Sat, Aug 3, 2019 at 10:36 PM Jerry Jensen via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Tom, >>> >>> I?ve done this in the past watching it instead of the result. I seem to >>> remember eof was not useful. Maybe for a serial port it would be? >>> >>> As in: >>> >>> repeat forever >>> read from file ThisFile for (1024 * 1000) bytes >>> if it is empty then exit repeat >>> ? do your stuff >>> wait 0 with messages >>> end repeat >>> >>> Onward, >>> .Jerry non-sphere (tetrahedron?) >>> >>> It was a long time ago in, I think, LC 5, so YMMV. >>> >>> >>>> On Aug 3, 2019, at 5:56 PM, Tom Glod via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Hey folks, >>>> >>>> I'm having trouble finding a combination of settings that allows my file >>>> loading to seem to happen in the background. >>>> >>>> repeat while read_result is not "eof" >>>> read from file ThisFile for (1024 * 1000) bytes >>>> put the result into read_result >>>> put it after IntoThisVariable >>>> add length(it) to amount_read >>>> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." >>>> (Progress Indicator Handler) >>>> wait 10 milliseconds with messages >>>> end repeat >>>> >>>> no matter what I try, its still sluggish, and it seems like messages are >>>> still accumilating instead of being processed by the engine. >>>> >>>> Am I missing something? Normally waiting with messages sufficiently >>> frees >>>> the engine to allow the UI to remain responsive. >>>> >>>> Thanks, >>>> >>>> Tom >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Sun Aug 4 07:00:27 2019 From: jjs at krutt.org (JJS) Date: Sun, 4 Aug 2019 13:00:27 +0200 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> <05129BD4-9B24-488F-9D57-7677BFCB6A56@m-r-d.de> <083222cb-9f2f-f4ad-af9e-61fada5924ed@hyperactivesw.com> Message-ID: <8518a05d-d083-defb-61ca-9022bfcc1d6a@krutt.org> Thanks very much. Danke Schon! Matthias, great job. And thanks that you made and share this with everyone. Love your website layout. By the way is the winsignhalper also avail for win10? Freundlichen gruessen aus Holland! Sphere/Jerry Op 4-8-2019 om 05:15 schreef Tom Glod via use-livecode: > Hats off to you again sir Matthias. Thank you > > > > On Sat, Aug 3, 2019 at 4:34 PM J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I wasn't aware of the AppWrapper update, but yours not only works >> seamlessly with LC, but it's free. That's a big plus, and you're >> generous to provide it to us. >> >> On 8/3/19 3:14 PM, Matthias Rebbe via use-livecode wrote: >>> Jacque, thank you very much for your kind words. >>> >>> To be fair, App Wrapper 3.9.1, which is able to notarize, was released >> some days ago. >>> Regards, >>> Matthias >>> >>> Matthias Rebbe >>> >>> free tools for Livecoders: >>> InstaMaker >>> WinSignMaker Mac >>> >>>> Am 03.08.2019 um 21:58 schrieb J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com >: >>>> If you need to notarize a Mac app, this thing is a marvel. I was >> nervous about getting through Apple's new requirements for app distribution >> but Notarization Helper is as simple as it gets. I'd used AppWrapper in the >> past, but the new notarization and stapling process isn't included there >> yet, at least until AppWrapper comes out of beta. Matthias has made an >> all-in-one solution that requires nothing from the user but a couple of >> bits of info and a mouse click, and it works right within the LC IDE. >>>> This is a keeper. If you are distributing outside the Macc App Store, >> go get it. >>>> On 8/3/19 2:30 PM, Matthias Rebbe via use-livecode wrote: >>>>> For those who are interested. >>>>> Today i?ve updated the Lesson on How to code sign and Notarize an app >> for distribution outside of the Mac Appstore. I?ve also included an updated >> version of my stack. The new version is now able to to the complete stuff >> from code signing up to notarizing and stapling your app or dmg. >>>>> You just drap your app to the stack, enter some data and the stack >> does all the rest for you. >>>>> The new lesson can be found here < >> http://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore >> < >> http://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore >>>> . >>>>> Hope this is of some use for the one or the other. >>>>> 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 >>>> >>>> -- >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com > jacque at hyperactivesw.com> >>>> HyperActive Software | http://www.hyperactivesw.com < >> http://www.hyperactivesw.com/> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sun Aug 4 08:11:44 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 4 Aug 2019 14:11:44 +0200 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: <8518a05d-d083-defb-61ca-9022bfcc1d6a@krutt.org> References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> <05129BD4-9B24-488F-9D57-7677BFCB6A56@m-r-d.de> <083222cb-9f2f-f4ad-af9e-61fada5924ed@hyperactivesw.com> <8518a05d-d083-defb-61ca-9022bfcc1d6a@krutt.org> Message-ID: <6D6F8209-EE21-4092-800A-8261D7E86662@m-r-d.de> Jerry, thanks for your kind words. WinSignHelper is just for Mac OS. There is an easy to use tool from K Software which allows one to easily code sign Windows Apps on Windows. It?s called kSign and can downloaded here . Description for K-Software?s website: "kSign was written specifically for customers that have purchased code signing certificates through K Software. If you didn't purchase your certificate through K Software you can still use kSign for free but you'll be taken back to this website when the software signs a file." Regards, Matthias > Am 04.08.2019 um 13:00 schrieb JJS via use-livecode >: > > Thanks very much. Danke Schon! Matthias, great job. > > And thanks that you made and share this with everyone. > > Love your website layout. By the way is the winsignhalper also avail for win10? > > Freundlichen gruessen aus Holland! > > > Sphere/Jerry > > > Op 4-8-2019 om 05:15 schreef Tom Glod via use-livecode: >> Hats off to you again sir Matthias. Thank you >> >> >> >> On Sat, Aug 3, 2019 at 4:34 PM J. Landman Gay via use-livecode < >> use-livecode at lists.runrev.com > wrote: >> >>> I wasn't aware of the AppWrapper update, but yours not only works >>> seamlessly with LC, but it's free. That's a big plus, and you're >>> generous to provide it to us. >>> >>> On 8/3/19 3:14 PM, Matthias Rebbe via use-livecode wrote: >>>> Jacque, thank you very much for your kind words. >>>> >>>> To be fair, App Wrapper 3.9.1, which is able to notarize, was released >>> some days ago. >>>> Regards, >>>> Matthias >>>> >>>> Matthias Rebbe >>>> >>>> free tools for Livecoders: >>>> InstaMaker > >>>> WinSignMaker Mac > >>>> >>>>> Am 03.08.2019 um 21:58 schrieb J. Landman Gay via use-livecode < >>> use-livecode at lists.runrev.com >>: >>>>> If you need to notarize a Mac app, this thing is a marvel. I was >>> nervous about getting through Apple's new requirements for app distribution >>> but Notarization Helper is as simple as it gets. I'd used AppWrapper in the >>> past, but the new notarization and stapling process isn't included there >>> yet, at least until AppWrapper comes out of beta. Matthias has made an >>> all-in-one solution that requires nothing from the user but a couple of >>> bits of info and a mouse click, and it works right within the LC IDE. >>>>> This is a keeper. If you are distributing outside the Macc App Store, >>> go get it. >>>>> On 8/3/19 2:30 PM, Matthias Rebbe via use-livecode wrote: >>>>>> For those who are interested. >>>>>> Today i?ve updated the Lesson on How to code sign and Notarize an app >>> for distribution outside of the Mac Appstore. I?ve also included an updated >>> version of my stack. The new version is now able to to the complete stuff >>> from code signing up to notarizing and stapling your app or dmg. >>>>>> You just drap your app to the stack, enter some data and the stack >>> does all the rest for you. >>>>>> The new lesson can be found here < >>> http://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore >>> < >>> http://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore >>>>> . >>>>>> Hope this is of some use for the one or the other. >>>>>> 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 >>>>> >>>>> -- >>>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >> jacque at hyperactivesw.com > >>>>> HyperActive Software | http://www.hyperactivesw.com < >>> http://www.hyperactivesw.com/ > >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com > >>>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From jjs at krutt.org Sun Aug 4 09:00:23 2019 From: jjs at krutt.org (JJS) Date: Sun, 4 Aug 2019 15:00:23 +0200 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: <6D6F8209-EE21-4092-800A-8261D7E86662@m-r-d.de> References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> <05129BD4-9B24-488F-9D57-7677BFCB6A56@m-r-d.de> <083222cb-9f2f-f4ad-af9e-61fada5924ed@hyperactivesw.com> <8518a05d-d083-defb-61ca-9022bfcc1d6a@krutt.org> <6D6F8209-EE21-4092-800A-8261D7E86662@m-r-d.de> Message-ID: <1d6010af-fa8d-93fb-fd40-e65cd3a9d973@krutt.org> Ok thanks a lot Matthias. Op 4-8-2019 om 14:11 schreef Matthias Rebbe via use-livecode: > Jerry, > > thanks for your kind words. > > WinSignHelper is just for Mac OS. There is an easy to use tool from K Software which allows one to easily code sign Windows Apps on Windows. > It?s called kSign and can downloaded here . > > Description for K-Software?s website: > > "kSign was written specifically for customers that have purchased code signing certificates through K Software. If you didn't purchase your certificate through K Software you can still use kSign for free but you'll be taken back to this website when the software signs a file." > > > Regards, > > Matthias > >> Am 04.08.2019 um 13:00 schrieb JJS via use-livecode >: >> >> Thanks very much. Danke Schon! Matthias, great job. >> >> And thanks that you made and share this with everyone. >> >> Love your website layout. By the way is the winsignhalper also avail for win10? >> >> Freundlichen gruessen aus Holland! >> >> >> Sphere/Jerry >> >> >> Op 4-8-2019 om 05:15 schreef Tom Glod via use-livecode: >>> Hats off to you again sir Matthias. Thank you >>> >>> >>> >>> On Sat, Aug 3, 2019 at 4:34 PM J. Landman Gay via use-livecode < >>> use-livecode at lists.runrev.com > wrote: >>> >>>> I wasn't aware of the AppWrapper update, but yours not only works >>>> seamlessly with LC, but it's free. That's a big plus, and you're >>>> generous to provide it to us. >>>> >>>> On 8/3/19 3:14 PM, Matthias Rebbe via use-livecode wrote: >>>>> Jacque, thank you very much for your kind words. >>>>> >>>>> To be fair, App Wrapper 3.9.1, which is able to notarize, was released >>>> some days ago. >>>>> Regards, >>>>> Matthias >>>>> >>>>> Matthias Rebbe >>>>> >>>>> free tools for Livecoders: >>>>> InstaMaker > >>>>> WinSignMaker Mac > >>>>> >>>>>> Am 03.08.2019 um 21:58 schrieb J. Landman Gay via use-livecode < >>>> use-livecode at lists.runrev.com >>: >>>>>> If you need to notarize a Mac app, this thing is a marvel. I was >>>> nervous about getting through Apple's new requirements for app distribution >>>> but Notarization Helper is as simple as it gets. I'd used AppWrapper in the >>>> past, but the new notarization and stapling process isn't included there >>>> yet, at least until AppWrapper comes out of beta. Matthias has made an >>>> all-in-one solution that requires nothing from the user but a couple of >>>> bits of info and a mouse click, and it works right within the LC IDE. >>>>>> This is a keeper. If you are distributing outside the Macc App Store, >>>> go get it. >>>>>> On 8/3/19 2:30 PM, Matthias Rebbe via use-livecode wrote: >>>>>>> For those who are interested. >>>>>>> Today i?ve updated the Lesson on How to code sign and Notarize an app >>>> for distribution outside of the Mac Appstore. I?ve also included an updated >>>> version of my stack. The new version is now able to to the complete stuff >>>> from code signing up to notarizing and stapling your app or dmg. >>>>>>> You just drap your app to the stack, enter some data and the stack >>>> does all the rest for you. >>>>>>> The new lesson can be found here < >>>> http://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore >>>> < >>>> http://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore >>>>>> . >>>>>>> Hope this is of some use for the one or the other. >>>>>>> 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 >>>>>> -- >>>>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> jacque at hyperactivesw.com > >>>>>> HyperActive Software | http://www.hyperactivesw.com < >>>> http://www.hyperactivesw.com/ > >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com > >>>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> -- >>>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>>> HyperActive Software | http://www.hyperactivesw.com >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sun Aug 4 09:13:21 2019 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 4 Aug 2019 13:13:21 +0000 Subject: Save Standalone Settings Externally In-Reply-To: References: Message-ID: Another, possible simpler solution: a) what you change the standalone setting in the standalones, you can, if wanted, test building, the app *without* being forced to save the stack. b) Somehow you would have to address the Standalone setting in RAM or save to some *.temp file ... when you created the standalone c) Then if you made changes that *need* to be saved, then save it. BR =============== When working collaborately with a framework on Git Hub. There is always an issue of the stack that will be made the standalone for the app. No changes are made to binary MyMainStack.app other than settings in the standalone, which you may does simply for testing. Now, if you "pull" the project in Git Hub, you are prompted that the changes to MyMainStack.app need to be committed?etc. if you do, then you will get a conflict when you will pull. So the usual practice (for me anyway) is to a) be sure the only changes in the binary are to the SA settings, nothing else b) run git stash c) then pull Is there some way to externalize the SA setting so that they don?t change the binary? This way you could 1. Load SA setting for testing # call it "MyMainStack_SA-Setting.config" # git ignore would have a "MyMainStack_SA-Setting.config" so it does not track 1. Now whatever you do with SA settings for testing, does not check the binary stack. 2. Pull without conflict. And, now you know for sure that when you commit the MyMainStack.app changes where you are for sure changed anything else *other* that the standalone settings? Because you never save it? Of course, it you want to save the SA setting in the binary, you *could* save them?. BR _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Sun Aug 4 09:59:27 2019 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 4 Aug 2019 14:59:27 +0100 Subject: Making "read from file" less blocky. In-Reply-To: References: Message-ID: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> OK, here's a "really out there" suggestion .... 1. Run a local web server? to serve files (locally only). ???? Can be done various ways, including (easily) via LC and the httpd library, ??????? (build that server as a standalone and have it running - started from your app if need be...) 2. in your stack, just do ? load url ("http://localhost:8080/myfilename") with message "mycallback" and handle the file once it has been read in the "mycallback" handler -- Alex. On 04/08/2019 01:56, Tom Glod via use-livecode wrote: > Hey folks, > > I'm having trouble finding a combination of settings that allows my file > loading to seem to happen in the background. > > repeat while read_result is not "eof" > read from file ThisFile for (1024 * 1000) bytes > put the result into read_result > put it after IntoThisVariable > add length(it) to amount_read > TSTProgress amount_read,ExpectedSize,"%","Loading File ..." > (Progress Indicator Handler) > wait 10 milliseconds with messages > end repeat > > no matter what I try, its still sluggish, and it seems like messages are > still accumilating instead of being processed by the engine. > > Am I missing something? Normally waiting with messages sufficiently frees > the engine to allow the UI to remain responsive. > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Sun Aug 4 11:00:48 2019 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 4 Aug 2019 11:00:48 -0400 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> Message-ID: <10FBFABD-1FD1-40B3-9DC0-D7D05BFCC94B@all-auctions.com> Cool! Nice job Matthias! I can see you put a lot of work into everything. Thank you, thank you, THANK YOU!!! Rick > On Aug 3, 2019, at 3:30 PM, Matthias Rebbe via use-livecode wrote: > > For those who are interested. > > Today i?ve updated the Lesson on How to code sign and Notarize an app for distribution outside of the Mac Appstore. I?ve also included an updated version of my stack. The new version is now able to to the complete stuff from code signing up to notarizing and stapling your app or dmg. > > You just drap your app to the stack, enter some data and the stack does all the rest for you. > > The new lesson can be found here . > > Hope this is of some use for the one or the other. > > > 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 prothero at earthlearningsolutions.org Sun Aug 4 12:50:04 2019 From: prothero at earthlearningsolutions.org (prothero at earthlearningsolutions.org) Date: Sun, 4 Aug 2019 09:50:04 -0700 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> Message-ID: <5440F783-6AAA-4EB1-87B5-7EC8E19671DF@earthlearningsolutions.org> Matthias: I am way, way, appreciative of your contribution to this very important development task!! I don?t regularly distribute an app, but when I do, it takes me a full day to struggle with all of the details of code signing and distribution, and it is a real pain. Of course, these details change over the period of a few months and the notes I take when doing it each time, are no longer current, and it is very frustrating. Distributing our products is SUCH a fundamental part of our work with lc that it?s great to see this resource. This has been needed for a long time, especially for folks like me. Of course, Apple will regularly change the procedure and requirements, so updating your app to keep up will probably be ongoing. Thanks again, Bill William A. Prothero Santa Barbara, CA. 93105 http://earthlearningsolutions.org/ > On Aug 3, 2019, at 12:30 PM, Matthias Rebbe via use-livecode wrote: > > For those who are interested. > > Today i?ve updated the Lesson on How to code sign and Notarize an app for distribution outside of the Mac Appstore. I?ve also included an updated version of my stack. The new version is now able to to the complete stuff from code signing up to notarizing and stapling your app or dmg. > > You just drap your app to the stack, enter some data and the stack does all the rest for you. > > The new lesson can be found here . > > Hope this is of some use for the one or the other. > > > 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 tom at makeshyft.com Sun Aug 4 13:12:55 2019 From: tom at makeshyft.com (Tom Glod) Date: Sun, 4 Aug 2019 13:12:55 -0400 Subject: Making "read from file" less blocky. In-Reply-To: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> Message-ID: Hi Alex, yes that would definitely be a great option for a high performance solution that would work well in the background. I did tests on such a solution a while back (for a similar task), but found that the httpd library was not able to receive large pieces of binary data. It worked beautiful with small chunks. So I don't know if it was me, if it was a missing feature in the library, but I will be investigating it again soon enough. Thanks for the reminder On Sun, Aug 4, 2019 at 9:59 AM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > OK, here's a "really out there" suggestion .... > > 1. Run a local web server to serve files (locally only). > > Can be done various ways, including (easily) via LC and the httpd > library, > > (build that server as a standalone and have it running - > started from your app if need be...) > > 2. in your stack, just do > > load url ("http://localhost:8080/myfilename") with message "mycallback" > > and handle the file once it has been read in the "mycallback" handler > > -- Alex. > > > On 04/08/2019 01:56, Tom Glod via use-livecode wrote: > > Hey folks, > > > > I'm having trouble finding a combination of settings that allows my file > > loading to seem to happen in the background. > > > > repeat while read_result is not "eof" > > read from file ThisFile for (1024 * 1000) bytes > > put the result into read_result > > put it after IntoThisVariable > > add length(it) to amount_read > > TSTProgress amount_read,ExpectedSize,"%","Loading File ..." > > (Progress Indicator Handler) > > wait 10 milliseconds with messages > > end repeat > > > > no matter what I try, its still sluggish, and it seems like messages are > > still accumilating instead of being processed by the engine. > > > > Am I missing something? Normally waiting with messages sufficiently > frees > > the engine to allow the UI to remain responsive. > > > > Thanks, > > > > Tom > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Sun Aug 4 13:20:50 2019 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 4 Aug 2019 18:20:50 +0100 Subject: Making "read from file" less blocky. In-Reply-To: References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> Message-ID: <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> Oh, that's a bit worrying .... I'm just starting a project that will use httpd, and it might in the medium term need to receive large data sets. But for now, similar to this case of yours for "serving" files, it only needs to send large data sets, and I have tested that pretty thoroughly already so I'm comfortable it'll do that just fine. Alex. On 04/08/2019 18:12, Tom Glod via use-livecode wrote: > Hi Alex, yes that would definitely be a great option for a high performance > solution that would work well in the background. > > I did tests on such a solution a while back (for a similar task), but found > that the httpd library was not able to receive large pieces of binary > data. It worked beautiful with small chunks. > > So I don't know if it was me, if it was a missing feature in the library, > but I will be investigating it again soon enough. > > Thanks for the reminder > > On Sun, Aug 4, 2019 at 9:59 AM Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> OK, here's a "really out there" suggestion .... >> >> 1. Run a local web server to serve files (locally only). >> >> Can be done various ways, including (easily) via LC and the httpd >> library, >> >> (build that server as a standalone and have it running - >> started from your app if need be...) >> >> 2. in your stack, just do >> >> load url ("http://localhost:8080/myfilename") with message "mycallback" >> >> and handle the file once it has been read in the "mycallback" handler >> >> -- Alex. >> >> >> On 04/08/2019 01:56, Tom Glod via use-livecode wrote: >>> Hey folks, >>> >>> I'm having trouble finding a combination of settings that allows my file >>> loading to seem to happen in the background. >>> >>> repeat while read_result is not "eof" >>> read from file ThisFile for (1024 * 1000) bytes >>> put the result into read_result >>> put it after IntoThisVariable >>> add length(it) to amount_read >>> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." >>> (Progress Indicator Handler) >>> wait 10 milliseconds with messages >>> end repeat >>> >>> no matter what I try, its still sluggish, and it seems like messages are >>> still accumilating instead of being processed by the engine. >>> >>> Am I missing something? Normally waiting with messages sufficiently >> frees >>> the engine to allow the UI to remain responsive. >>> >>> Thanks, >>> >>> Tom >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sun Aug 4 14:07:17 2019 From: tom at makeshyft.com (Tom Glod) Date: Sun, 4 Aug 2019 14:07:17 -0400 Subject: Making "read from file" less blocky. In-Reply-To: <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> Message-ID: Hmmm.... interesting. I was sending binary variables to it, and the headers came through ok, but the binary data didn't when it was over a certain size. What sort of data sizes have you been been sending to your httpd standalone? My tests, were 18 months ago at least, but I am hoping it was just me doing something wrong. I did see a "//todo" in the library code under a section that looked like it dealt with multiple chunks. On Sun, Aug 4, 2019 at 1:21 PM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > Oh, that's a bit worrying .... I'm just starting a project that will use > httpd, and it might in the medium term need to receive large data sets. > > But for now, similar to this case of yours for "serving" files, it only > needs to send large data sets, and I have tested that pretty thoroughly > already so I'm comfortable it'll do that just fine. > > Alex. > > On 04/08/2019 18:12, Tom Glod via use-livecode wrote: > > Hi Alex, yes that would definitely be a great option for a high > performance > > solution that would work well in the background. > > > > I did tests on such a solution a while back (for a similar task), but > found > > that the httpd library was not able to receive large pieces of binary > > data. It worked beautiful with small chunks. > > > > So I don't know if it was me, if it was a missing feature in the library, > > but I will be investigating it again soon enough. > > > > Thanks for the reminder > > > > On Sun, Aug 4, 2019 at 9:59 AM Alex Tweedly via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> OK, here's a "really out there" suggestion .... > >> > >> 1. Run a local web server to serve files (locally only). > >> > >> Can be done various ways, including (easily) via LC and the httpd > >> library, > >> > >> (build that server as a standalone and have it running - > >> started from your app if need be...) > >> > >> 2. in your stack, just do > >> > >> load url ("http://localhost:8080/myfilename") with message > "mycallback" > >> > >> and handle the file once it has been read in the "mycallback" handler > >> > >> -- Alex. > >> > >> > >> On 04/08/2019 01:56, Tom Glod via use-livecode wrote: > >>> Hey folks, > >>> > >>> I'm having trouble finding a combination of settings that allows my > file > >>> loading to seem to happen in the background. > >>> > >>> repeat while read_result is not "eof" > >>> read from file ThisFile for (1024 * 1000) bytes > >>> put the result into read_result > >>> put it after IntoThisVariable > >>> add length(it) to amount_read > >>> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." > >>> (Progress Indicator Handler) > >>> wait 10 milliseconds with messages > >>> end repeat > >>> > >>> no matter what I try, its still sluggish, and it seems like messages > are > >>> still accumilating instead of being processed by the engine. > >>> > >>> Am I missing something? Normally waiting with messages sufficiently > >> frees > >>> the engine to allow the UI to remain responsive. > >>> > >>> Thanks, > >>> > >>> Tom > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Sun Aug 4 14:47:36 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sun, 4 Aug 2019 12:47:36 -0600 Subject: Making "read from file" less blocky. In-Reply-To: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> Message-ID: I love "really out there". I wanna play. At the start of any solution, try this. It might speed up any method but would take some time at the start. get shell( "cat " & ThisFile & " > dev/null" ) I think that is likely to pre-load the system file buffers for you. If one is feeling adventurous, one can try open process (cat) to avoid the wait; it will probably move through the file faster than the script and sectors will already be loaded when you ask for them. Dar > On Aug 4, 2019, at 7:59 AM, Alex Tweedly via use-livecode wrote: > > OK, here's a "really out there" suggestion .... > > 1. Run a local web server to serve files (locally only). > > Can be done various ways, including (easily) via LC and the httpd library, > > (build that server as a standalone and have it running - started from your app if need be...) > > 2. in your stack, just do > > load url ("http://localhost:8080/myfilename") with message "mycallback" > > and handle the file once it has been read in the "mycallback" handler > > -- Alex. > > > On 04/08/2019 01:56, Tom Glod via use-livecode wrote: >> Hey folks, >> >> I'm having trouble finding a combination of settings that allows my file >> loading to seem to happen in the background. >> >> repeat while read_result is not "eof" >> read from file ThisFile for (1024 * 1000) bytes >> put the result into read_result >> put it after IntoThisVariable >> add length(it) to amount_read >> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." >> (Progress Indicator Handler) >> wait 10 milliseconds with messages >> end repeat >> >> no matter what I try, its still sluggish, and it seems like messages are >> still accumilating instead of being processed by the engine. >> >> Am I missing something? Normally waiting with messages sufficiently frees >> the engine to allow the UI to remain responsive. >> >> Thanks, >> >> Tom >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rdimola at evergreeninfo.net Sun Aug 4 14:49:09 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 4 Aug 2019 14:49:09 -0400 Subject: [OT] Weighted distribution of Numbers In-Reply-To: References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> Message-ID: <003701d54af5$4f8cd410$eea67c30$@net> I have a set of raw numbers(6,000 of them from 0 to 800 or so). It was easy to normalize these numbers from 0 to 100. But as I look at the results I see that there is one at to top(100) and a few in the 90s and many more in the 70s and 80s. I need to make these numbers more evenly distributed and weighted towards the top(so the top few are 100) based on the current distribution of the raw numbers. I'm not a math whiz and not afraid to admit that going beyond linier equations is way over my head. From some searches I see the some sort of nonlinear regression is in order(I think)? Or a apply a log (like an audio log taper of a potentiometer)? I don't know... Can anyone point me in the in the right direction? Thanks! Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From dsc at swcp.com Sun Aug 4 15:02:36 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sun, 4 Aug 2019 13:02:36 -0600 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <003701d54af5$4f8cd410$eea67c30$@net> References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> <003701d54af5$4f8cd410$eea67c30$@net> Message-ID: Just to clarify... Is this right? The max of the raw numbers maps to 100. The min of the raw numbers maps to 0. (Or is it 0 maps to 0?) The middle number maps to something like 70. (Or is it half of the max maps to 70?) The mapping is smooth. Where 70 might be something else. > On Aug 4, 2019, at 12:49 PM, Ralph DiMola via use-livecode wrote: > > I have a set of raw numbers(6,000 of them from 0 to 800 or so). It was easy > to normalize these numbers from 0 to 100. But as I look at the results I see > that there is one at to top(100) and a few in the 90s and many more in the > 70s and 80s. I need to make these numbers more evenly distributed and > weighted towards the top(so the top few are 100) based on the current > distribution of the raw numbers. I'm not a math whiz and not afraid to admit > that going beyond linier equations is way over my head. From some searches I > see the some sort of nonlinear regression is in order(I think)? Or a apply a > log (like an audio log taper of a potentiometer)? I don't know... Can anyone > point me in the in the right direction? > > Thanks! > > 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 dsc at swcp.com Sun Aug 4 15:22:00 2019 From: dsc at swcp.com (dsc at swcp.com) Date: Sun, 4 Aug 2019 13:22:00 -0600 Subject: Making "read from file" less blocky. In-Reply-To: References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> Message-ID: <473B17D2-DF17-4AC5-B9AC-63CC20140A8C@swcp.com> More "really out there". I like the idea of trying to speed up an upfront foreground load. Something simple like this: put blah-plah into IntoThisVariable. where blah-blah is nana-nana or decompress( nana-nana ) where nana-nana is one of these: URL ("binfile:" & ThisFile) shell("cat " & ThisFile) Function decompress() makes two RAM hits and requires control over the loaded files. > On Aug 4, 2019, at 12:47 PM, Dar Scott Consulting via use-livecode wrote: > > I love "really out there". I wanna play. > > At the start of any solution, try this. It might speed up any method but would take some time at the start. > > get shell( "cat " & ThisFile & " > dev/null" ) > > I think that is likely to pre-load the system file buffers for you. > > If one is feeling adventurous, one can try open process (cat) to avoid the wait; it will probably move through the file faster than the script and sectors will already be loaded when you ask for them. > > Dar > >> On Aug 4, 2019, at 7:59 AM, Alex Tweedly via use-livecode wrote: >> >> OK, here's a "really out there" suggestion .... >> >> 1. Run a local web server to serve files (locally only). >> >> Can be done various ways, including (easily) via LC and the httpd library, >> >> (build that server as a standalone and have it running - started from your app if need be...) >> >> 2. in your stack, just do >> >> load url ("http://localhost:8080/myfilename") with message "mycallback" >> >> and handle the file once it has been read in the "mycallback" handler >> >> -- Alex. >> >> >> On 04/08/2019 01:56, Tom Glod via use-livecode wrote: >>> Hey folks, >>> >>> I'm having trouble finding a combination of settings that allows my file >>> loading to seem to happen in the background. >>> >>> repeat while read_result is not "eof" >>> read from file ThisFile for (1024 * 1000) bytes >>> put the result into read_result >>> put it after IntoThisVariable >>> add length(it) to amount_read >>> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." >>> (Progress Indicator Handler) >>> wait 10 milliseconds with messages >>> end repeat >>> >>> no matter what I try, its still sluggish, and it seems like messages are >>> still accumilating instead of being processed by the engine. >>> >>> Am I missing something? Normally waiting with messages sufficiently frees >>> the engine to allow the UI to remain responsive. >>> >>> Thanks, >>> >>> Tom >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Sun Aug 4 15:25:11 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 4 Aug 2019 12:25:11 -0700 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <003701d54af5$4f8cd410$eea67c30$@net> References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> <003701d54af5$4f8cd410$eea67c30$@net> Message-ID: <04abaf77-bdd2-dfbc-8687-1a331a4c207f@sonic.net> On 8/4/19 11:49 AM, Ralph DiMola via use-livecode wrote: > I have a set of raw numbers(6,000 of them from 0 to 800 or so). It was easy > to normalize these numbers from 0 to 100. But as I look at the results I see > that there is one at to top(100) and a few in the 90s and many more in the > 70s and 80s. I need to make these numbers more evenly distributed and > weighted towards the top(so the top few are 100) based on the current > distribution of the raw numbers. I'm not a math whiz and not afraid to admit > that going beyond linier equations is way over my head. From some searches I > see the some sort of nonlinear regression is in order(I think)? Or a apply a > log (like an audio log taper of a potentiometer)? I don't know... Can anyone > point me in the in the right direction? Someone will no doubt correct me on this, but it sounds like you want the weighted mean of the data set. Something like repeat for each value in the list add (the value / the number of values) to tWeightedMean end repeat -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Sun Aug 4 15:38:31 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 4 Aug 2019 15:38:31 -0400 Subject: [OT] Weighted distribution of Numbers In-Reply-To: References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> <003701d54af5$4f8cd410$eea67c30$@net> Message-ID: <003801d54afc$3644f300$a2ced900$@net> Dar, Thanks for looking at this... These numbers are quality ratings. The raw numbers range from 0 to a max of 800 or so. The customer wants to see a rating from 0-100 so I normalize them into a range of 0 to 100 where the raw 0 is 0 and the raw 800 is 100. This works perfectly. When looking at the resulting 0-100 ratings is where they see the distribution anomalies. They would like to see the top numbers(say from 94 to 100) to go to 100 and then the original 93 to be 99 and the original 90 to be 97 or so. And also smooth out any gaps in the distribution so there for example if there are almost no numbers in the 40s to bump up the 30s a little and bump down the 50s a little. I'm sure there's an actual name for doing this in the statistician's world but I don't know what it is. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dar Scott Consulting via use-livecode Sent: Sunday, August 04, 2019 3:03 PM To: How to use LiveCode Cc: Dar Scott Consulting Subject: Re: [OT] Weighted distribution of Numbers Just to clarify... Is this right? The max of the raw numbers maps to 100. The min of the raw numbers maps to 0. (Or is it 0 maps to 0?) The middle number maps to something like 70. (Or is it half of the max maps to 70?) The mapping is smooth. Where 70 might be something else. > On Aug 4, 2019, at 12:49 PM, Ralph DiMola via use-livecode wrote: > > I have a set of raw numbers(6,000 of them from 0 to 800 or so). It was > easy to normalize these numbers from 0 to 100. But as I look at the > results I see that there is one at to top(100) and a few in the 90s > and many more in the 70s and 80s. I need to make these numbers more > evenly distributed and weighted towards the top(so the top few are > 100) based on the current distribution of the raw numbers. I'm not a > math whiz and not afraid to admit that going beyond linier equations > is way over my head. From some searches I see the some sort of > nonlinear regression is in order(I think)? Or a apply a log (like an > audio log taper of a potentiometer)? I don't know... Can anyone point me in the in the right direction? > > Thanks! > > 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 matthias_livecode_150811 at m-r-d.de Sun Aug 4 15:53:03 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 4 Aug 2019 21:53:03 +0200 Subject: Updated Lesson and new Notarization Helper Stack In-Reply-To: <5440F783-6AAA-4EB1-87B5-7EC8E19671DF@earthlearningsolutions.org> References: <083ABFB7-03B2-4586-BF03-AFAF1D1C4AE8@m-r-d.de> <5440F783-6AAA-4EB1-87B5-7EC8E19671DF@earthlearningsolutions.org> Message-ID: <45B63FD8-F137-4372-AC7B-7B6633F1D75E@m-r-d.de> Bill, thanks for your words. As long as i develop for Mac i will try to maintain the stack. So if there are changes in the notarization process and i can adjust the stack to comply with them, i will do. The same goes for the tutorial if my time allows. But the priority would always be with the stack, as i am using it myself. Btw.: the stack is far from being perfect, at least the coding. ;) I am sure there are things that could be done better. So everyone is welcomed to modify, enhance or optimize the scripts. Regards, Matthias > Am 04.08.2019 um 18:50 schrieb prothero--- via use-livecode >: > > Matthias: > I am way, way, appreciative of your contribution to this very important development task!! I don?t regularly distribute an app, but when I do, it takes me a full day to struggle with all of the details of code signing and distribution, and it is a real pain. Of course, these details change over the period of a few months and the notes I take when doing it each time, are no longer current, and it is very frustrating. Distributing our products is SUCH a fundamental part of our work with lc that it?s great to see this resource. > > This has been needed for a long time, especially for folks like me. Of course, Apple will regularly change the procedure and requirements, so updating your app to keep up will probably be ongoing. > > Thanks again, > Bill > > William A. Prothero > Santa Barbara, CA. 93105 > http://earthlearningsolutions.org/ > >> On Aug 3, 2019, at 12:30 PM, Matthias Rebbe via use-livecode wrote: >> >> For those who are interested. >> >> Today i?ve updated the Lesson on How to code sign and Notarize an app for distribution outside of the Mac Appstore. I?ve also included an updated version of my stack. The new version is now able to to the complete stuff from code signing up to notarizing and stapling your app or dmg. >> >> You just drap your app to the stack, enter some data and the stack does all the rest for you. >> >> The new lesson can be found here . >> >> Hope this is of some use for the one or the other. >> >> >> Regards, >> >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From hh at hyperhh.de Sun Aug 4 16:19:17 2019 From: hh at hyperhh.de (hh) Date: Sun, 4 Aug 2019 22:19:17 +0200 Subject: [OT] Weighted distribution of Numbers Message-ID: <989B333B-623B-4365-A4EE-6F9F05DB0158@hyperhh.de> > Ralph D. wrote: > I'm sure there's an actual name for doing this in the statistician's > world but I don't know what it is. This has nothing to do with "statistics". This is simply "try to lie by data cheating". From dsc at swcp.com Sun Aug 4 16:28:21 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sun, 4 Aug 2019 14:28:21 -0600 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <003801d54afc$3644f300$a2ced900$@net> References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> <003701d54af5$4f8cd410$eea67c30$@net> <003801d54afc$3644f300$a2ced900$@net> Message-ID: Perhaps what you want is histogram smoothing or histogram curve fitting. Is this for a dot or icon display? Or for a plotted curve? > On Aug 4, 2019, at 1:38 PM, Ralph DiMola via use-livecode wrote: > > Dar, > > Thanks for looking at this... > > These numbers are quality ratings. The raw numbers range from 0 to a max of > 800 or so. The customer wants to see a rating from 0-100 so I normalize them > into a range of 0 to 100 where the raw 0 is 0 and the raw 800 is 100. This > works perfectly. When looking at the resulting 0-100 ratings is where they > see the distribution anomalies. They would like to see the top numbers(say > from 94 to 100) to go to 100 and then the original 93 to be 99 and the > original 90 to be 97 or so. And also smooth out any gaps in the distribution > so there for example if there are almost no numbers in the 40s to bump up > the 30s a little and bump down the 50s a little. I'm sure there's an actual > name for doing this in the statistician's world but I don't know what it is. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > Phone: 518-636-3998 Ex:11 > Cell: 518-796-9332 > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Dar Scott Consulting via use-livecode > Sent: Sunday, August 04, 2019 3:03 PM > To: How to use LiveCode > Cc: Dar Scott Consulting > Subject: Re: [OT] Weighted distribution of Numbers > > Just to clarify... Is this right? > > The max of the raw numbers maps to 100. > The min of the raw numbers maps to 0. (Or is it 0 maps to 0?) The middle > number maps to something like 70. (Or is it half of the max maps to 70?) The > mapping is smooth. > > Where 70 might be something else. > >> On Aug 4, 2019, at 12:49 PM, Ralph DiMola via use-livecode > wrote: >> >> I have a set of raw numbers(6,000 of them from 0 to 800 or so). It was >> easy to normalize these numbers from 0 to 100. But as I look at the >> results I see that there is one at to top(100) and a few in the 90s >> and many more in the 70s and 80s. I need to make these numbers more >> evenly distributed and weighted towards the top(so the top few are >> 100) based on the current distribution of the raw numbers. I'm not a >> math whiz and not afraid to admit that going beyond linier equations >> is way over my head. From some searches I see the some sort of >> nonlinear regression is in order(I think)? Or a apply a log (like an >> audio log taper of a potentiometer)? I don't know... Can anyone point me > in the in the right direction? >> >> Thanks! >> >> 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 dsc at swcp.com Sun Aug 4 16:32:49 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sun, 4 Aug 2019 14:32:49 -0600 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <989B333B-623B-4365-A4EE-6F9F05DB0158@hyperhh.de> References: <989B333B-623B-4365-A4EE-6F9F05DB0158@hyperhh.de> Message-ID: <06A8BE65-2A5D-4358-A442-1F31336F0D6F@swcp.com> I was thinking the same, but was to afraid to say it. Yes, the actual name is "lying". However, there might be an honest attempt to display crowded dots or icons. > On Aug 4, 2019, at 2:19 PM, hh via use-livecode wrote: > >> Ralph D. wrote: >> I'm sure there's an actual name for doing this in the statistician's >> world but I don't know what it is. > > This has nothing to do with "statistics". > This is simply "try to lie by data cheating". > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Sun Aug 4 16:43:06 2019 From: dsc at swcp.com (dsc at swcp.com) Date: Sun, 4 Aug 2019 14:43:06 -0600 Subject: Making "read from file" less blocky. In-Reply-To: <473B17D2-DF17-4AC5-B9AC-63CC20140A8C@swcp.com> References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <473B17D2-DF17-4AC5-B9AC-63CC20140A8C@swcp.com> Message-ID: <8E9DDB33-3F57-4915-95C9-0105B8D6FC76@swcp.com> Even more "really out there" of the "really out there". Don't read in the file. Access portions JIT, that is, lazily. Create a function that pulls in segments of the file. Kinda like this: function segmentOfFile pStartIndex, pEndIndex, pThisFile Or this: function segmentOfCurrentFile pStartIndex, pEndIndex Dar > On Aug 4, 2019, at 1:22 PM, dsc--- via use-livecode wrote: > > More "really out there". > > I like the idea of trying to speed up an upfront foreground load. Something simple like this: > > put blah-plah into IntoThisVariable. > > where blah-blah is nana-nana or decompress( nana-nana ) > where nana-nana is one of these: > URL ("binfile:" & ThisFile) > shell("cat " & ThisFile) > > Function decompress() makes two RAM hits and requires control over the loaded files. > > >> On Aug 4, 2019, at 12:47 PM, Dar Scott Consulting via use-livecode wrote: >> >> I love "really out there". I wanna play. >> >> At the start of any solution, try this. It might speed up any method but would take some time at the start. >> >> get shell( "cat " & ThisFile & " > dev/null" ) >> >> I think that is likely to pre-load the system file buffers for you. >> >> If one is feeling adventurous, one can try open process (cat) to avoid the wait; it will probably move through the file faster than the script and sectors will already be loaded when you ask for them. >> >> Dar >> >>> On Aug 4, 2019, at 7:59 AM, Alex Tweedly via use-livecode wrote: >>> >>> OK, here's a "really out there" suggestion .... >>> >>> 1. Run a local web server to serve files (locally only). >>> >>> Can be done various ways, including (easily) via LC and the httpd library, >>> >>> (build that server as a standalone and have it running - started from your app if need be...) >>> >>> 2. in your stack, just do >>> >>> load url ("http://localhost:8080/myfilename") with message "mycallback" >>> >>> and handle the file once it has been read in the "mycallback" handler >>> >>> -- Alex. >>> >>> >>> On 04/08/2019 01:56, Tom Glod via use-livecode wrote: >>>> Hey folks, >>>> >>>> I'm having trouble finding a combination of settings that allows my file >>>> loading to seem to happen in the background. >>>> >>>> repeat while read_result is not "eof" >>>> read from file ThisFile for (1024 * 1000) bytes >>>> put the result into read_result >>>> put it after IntoThisVariable >>>> add length(it) to amount_read >>>> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." >>>> (Progress Indicator Handler) >>>> wait 10 milliseconds with messages >>>> end repeat >>>> >>>> no matter what I try, its still sluggish, and it seems like messages are >>>> still accumilating instead of being processed by the engine. >>>> >>>> Am I missing something? Normally waiting with messages sufficiently frees >>>> the engine to allow the UI to remain responsive. >>>> >>>> Thanks, >>>> >>>> Tom >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Sun Aug 4 17:05:33 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 4 Aug 2019 17:05:33 -0400 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <06A8BE65-2A5D-4358-A442-1F31336F0D6F@swcp.com> References: <989B333B-623B-4365-A4EE-6F9F05DB0158@hyperhh.de> <06A8BE65-2A5D-4358-A442-1F31336F0D6F@swcp.com> Message-ID: <003c01d54b08$5deb9740$19c2c5c0$@net> I'm not plotting this but using it for searching. I'm not really lying. I'm trying to come up with the raw numbers from many individual components. It's like "Gone with the Wind" and "Apocalypse Now" both getting 100 on Rotten Tomatoes. But if you looked under the hood and added up components such as sound, costumes, artwork, casting... and applied a weight to each then "Apocalypse Now" might get a raw rating of 800 and "Gone with the Wind" get a 790. But they are both so close to the top I would want them to both get 100. I can do this via the "human factor" by manually adjusting some of the results(mostly at the top) but I would like to somewhat automate it so when the components change I will do a re-calculation run and say the top number goes up by 25 all the manual adjustments go out the window. I want this to be somewhat automated. 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 Dar Scott Consulting via use-livecode Sent: Sunday, August 04, 2019 4:33 PM To: How to use LiveCode Cc: Dar Scott Consulting Subject: Re: [OT] Weighted distribution of Numbers I was thinking the same, but was to afraid to say it. Yes, the actual name is "lying". However, there might be an honest attempt to display crowded dots or icons. > On Aug 4, 2019, at 2:19 PM, hh via use-livecode wrote: > >> Ralph D. wrote: >> I'm sure there's an actual name for doing this in the statistician's >> world but I don't know what it is. > > This has nothing to do with "statistics". > This is simply "try to lie by data cheating". > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Sun Aug 4 17:09:34 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sun, 4 Aug 2019 15:09:34 -0600 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <003c01d54b08$5deb9740$19c2c5c0$@net> References: <989B333B-623B-4365-A4EE-6F9F05DB0158@hyperhh.de> <06A8BE65-2A5D-4358-A442-1F31336F0D6F@swcp.com> <003c01d54b08$5deb9740$19c2c5c0$@net> Message-ID: <9380F4D6-07D7-46A9-8B76-12877DD8CD08@swcp.com> Oh, good. I was worrying that you might have a bad customer. > On Aug 4, 2019, at 3:05 PM, Ralph DiMola via use-livecode wrote: > > > I'm not plotting this but using it for searching. > > I'm not really lying. I'm trying to come up with the raw numbers from many > individual components. It's like "Gone with the Wind" and "Apocalypse Now" > both getting 100 on Rotten Tomatoes. But if you looked under the hood and > added up components such as sound, costumes, artwork, casting... and applied > a weight to each then "Apocalypse Now" might get a raw rating of 800 and > "Gone with the Wind" get a 790. But they are both so close to the top I > would want them to both get 100. I can do this via the "human factor" by > manually adjusting some of the results(mostly at the top) but I would like > to somewhat automate it so when the components change I will do a > re-calculation run and say the top number goes up by 25 all the manual > adjustments go out the window. I want this to be somewhat automated. > > 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 Dar Scott Consulting via use-livecode > Sent: Sunday, August 04, 2019 4:33 PM > To: How to use LiveCode > Cc: Dar Scott Consulting > Subject: Re: [OT] Weighted distribution of Numbers > > I was thinking the same, but was to afraid to say it. Yes, the actual name > is "lying". > > However, there might be an honest attempt to display crowded dots or icons. > >> On Aug 4, 2019, at 2:19 PM, hh via use-livecode > wrote: >> >>> Ralph D. wrote: >>> I'm sure there's an actual name for doing this in the statistician's >>> world but I don't know what it is. >> >> This has nothing to do with "statistics". >> This is simply "try to lie by data cheating". >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Sun Aug 4 18:00:42 2019 From: dsc at swcp.com (dsc at swcp.com) Date: Sun, 4 Aug 2019 16:00:42 -0600 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <9380F4D6-07D7-46A9-8B76-12877DD8CD08@swcp.com> References: <989B333B-623B-4365-A4EE-6F9F05DB0158@hyperhh.de> <06A8BE65-2A5D-4358-A442-1F31336F0D6F@swcp.com> <003c01d54b08$5deb9740$19c2c5c0$@net> <9380F4D6-07D7-46A9-8B76-12877DD8CD08@swcp.com> Message-ID: I'm unsure how often 800 or so changes. I'll call it 800, it is just a name. Values can range from 0 through 800. You can map a number in that range to 0-1 by dividing by 800. That is, scaled1(n) is n/800. I guess you want to map each number n in that into one of 101 bins, 0 through 100. Perhaps something like this: trunc( 100.9 * scaled(n) ) However you want to tweak at the top, so this might become trunc( 100.9 * tweak( scaled(n) ) ) The function tweak takes a number from 0 to 1 and returns a number from 0 to 1 where tweak(0) = 0 tweak(1) = 1 if x >= y then tweak(x) >= tweak(y) A straight line fits that but that isn't what you want. Here are some definitions for tweak() you might try: x [that straight line] 2*x/(1+x) sin(x * pi/2) some other sine thing that is symmetrical piecewise linear 1- sqrt( 1-x ) min( 1, 1.03*x) [special case of piecewise] However, if you want tweaking to depend on the entire dataset, then there is more work. > On Aug 4, 2019, at 3:09 PM, Dar Scott Consulting via use-livecode wrote: > > Oh, good. I was worrying that you might have a bad customer. > >> On Aug 4, 2019, at 3:05 PM, Ralph DiMola via use-livecode wrote: >> >> >> I'm not plotting this but using it for searching. >> >> I'm not really lying. I'm trying to come up with the raw numbers from many >> individual components. It's like "Gone with the Wind" and "Apocalypse Now" >> both getting 100 on Rotten Tomatoes. But if you looked under the hood and >> added up components such as sound, costumes, artwork, casting... and applied >> a weight to each then "Apocalypse Now" might get a raw rating of 800 and >> "Gone with the Wind" get a 790. But they are both so close to the top I >> would want them to both get 100. I can do this via the "human factor" by >> manually adjusting some of the results(mostly at the top) but I would like >> to somewhat automate it so when the components change I will do a >> re-calculation run and say the top number goes up by 25 all the manual >> adjustments go out the window. I want this to be somewhat automated. >> >> 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 Dar Scott Consulting via use-livecode >> Sent: Sunday, August 04, 2019 4:33 PM >> To: How to use LiveCode >> Cc: Dar Scott Consulting >> Subject: Re: [OT] Weighted distribution of Numbers >> >> I was thinking the same, but was to afraid to say it. Yes, the actual name >> is "lying". >> >> However, there might be an honest attempt to display crowded dots or icons. >> >>> On Aug 4, 2019, at 2:19 PM, hh via use-livecode >> wrote: >>> >>>> Ralph D. wrote: >>>> I'm sure there's an actual name for doing this in the statistician's >>>> world but I don't know what it is. >>> >>> This has nothing to do with "statistics". >>> This is simply "try to lie by data cheating". >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Aug 4 19:06:51 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 4 Aug 2019 16:06:51 -0700 Subject: [OT] Weighted distribution of Numbers In-Reply-To: References: <989B333B-623B-4365-A4EE-6F9F05DB0158@hyperhh.de> <06A8BE65-2A5D-4358-A442-1F31336F0D6F@swcp.com> <003c01d54b08$5deb9740$19c2c5c0$@net> <9380F4D6-07D7-46A9-8B76-12877DD8CD08@swcp.com> Message-ID: On 8/4/19 3:00 PM, dsc--- via use-livecode wrote: > I'm unsure how often 800 or so changes. I'll call it 800, it is just a name. Values can range from 0 through 800. > > You can map a number in that range to 0-1 by dividing by 800. That is, scaled1(n) is n/800. > > I guess you want to map each number n in that into one of 101 bins, 0 through 100. Yes - that's a weighted mean. Here's a simple explanation https://sciencing.com/calculate-weighted-average-5328019.html ...and no, Hermann, it's (you'd think I'd know better than to argue with a real mathematician here, but...) not lying, it's the addition of another variable. -- Mark Wieder ahsoftware at gmail.com From tom at makeshyft.com Sun Aug 4 19:28:03 2019 From: tom at makeshyft.com (Tom Glod) Date: Sun, 4 Aug 2019 19:28:03 -0400 Subject: Making "read from file" less blocky. In-Reply-To: <8E9DDB33-3F57-4915-95C9-0105B8D6FC76@swcp.com> References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <473B17D2-DF17-4AC5-B9AC-63CC20140A8C@swcp.com> <8E9DDB33-3F57-4915-95C9-0105B8D6FC76@swcp.com> Message-ID: heheh.... its always a fun exercise. Dar, these are linux based solutions right? using windows here at the moment, so I can't test, but when I test and optimize my application for linux i will try these. On Sun, Aug 4, 2019 at 4:43 PM dsc--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Even more "really out there" of the "really out there". > > Don't read in the file. > > Access portions JIT, that is, lazily. > > Create a function that pulls in segments of the file. Kinda like this: > > function segmentOfFile pStartIndex, pEndIndex, pThisFile > > Or this: > > function segmentOfCurrentFile pStartIndex, pEndIndex > > Dar > > > On Aug 4, 2019, at 1:22 PM, dsc--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > More "really out there". > > > > I like the idea of trying to speed up an upfront foreground load. > Something simple like this: > > > > put blah-plah into IntoThisVariable. > > > > where blah-blah is nana-nana or decompress( nana-nana ) > > where nana-nana is one of these: > > URL ("binfile:" & ThisFile) > > shell("cat " & ThisFile) > > > > Function decompress() makes two RAM hits and requires control over the > loaded files. > > > > > >> On Aug 4, 2019, at 12:47 PM, Dar Scott Consulting via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> I love "really out there". I wanna play. > >> > >> At the start of any solution, try this. It might speed up any method > but would take some time at the start. > >> > >> get shell( "cat " & ThisFile & " > dev/null" ) > >> > >> I think that is likely to pre-load the system file buffers for you. > >> > >> If one is feeling adventurous, one can try open process (cat) to avoid > the wait; it will probably move through the file faster than the script and > sectors will already be loaded when you ask for them. > >> > >> Dar > >> > >>> On Aug 4, 2019, at 7:59 AM, Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> OK, here's a "really out there" suggestion .... > >>> > >>> 1. Run a local web server to serve files (locally only). > >>> > >>> Can be done various ways, including (easily) via LC and the httpd > library, > >>> > >>> (build that server as a standalone and have it running - started > from your app if need be...) > >>> > >>> 2. in your stack, just do > >>> > >>> load url ("http://localhost:8080/myfilename") with message > "mycallback" > >>> > >>> and handle the file once it has been read in the "mycallback" handler > >>> > >>> -- Alex. > >>> > >>> > >>> On 04/08/2019 01:56, Tom Glod via use-livecode wrote: > >>>> Hey folks, > >>>> > >>>> I'm having trouble finding a combination of settings that allows my > file > >>>> loading to seem to happen in the background. > >>>> > >>>> repeat while read_result is not "eof" > >>>> read from file ThisFile for (1024 * 1000) bytes > >>>> put the result into read_result > >>>> put it after IntoThisVariable > >>>> add length(it) to amount_read > >>>> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." > >>>> (Progress Indicator Handler) > >>>> wait 10 milliseconds with messages > >>>> end repeat > >>>> > >>>> no matter what I try, its still sluggish, and it seems like messages > are > >>>> still accumilating instead of being processed by the engine. > >>>> > >>>> Am I missing something? Normally waiting with messages sufficiently > frees > >>>> the engine to allow the UI to remain responsive. > >>>> > >>>> Thanks, > >>>> > >>>> Tom > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alex at tweedly.net Sun Aug 4 20:21:15 2019 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 5 Aug 2019 01:21:15 +0100 Subject: Making "read from file" less blocky. In-Reply-To: References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <72e1fb46-422c-8b76-af73-817f1576d73c@tweedly.net> Message-ID: <41f50519-eced-e3c3-a6b1-ff55949e30d6@tweedly.net> On 04/08/2019 19:07, Tom Glod via use-livecode wrote: > Hmmm.... interesting. > > I was sending binary variables to it, and the headers came through ok, but > the binary data didn't when it was over a certain size. > > What sort of data sizes have you been been sending to your httpd standalone? Currently I am reading multi-Mbytes *from* the httpd server, and it all seems OK, though I haven't paid that much attention to how large the transfers were. Currently I am only sending small datasets *to* the server, haven't tied anything large. And, in fact, I never will !!? What I am writing must run in the community version, and must be completely non-blocking; therefore, *everything* is done with "load URL ...", i.e. the data is being sent as a (rather long) parameter to the HTTP/GET. (because without tsNet there is no non-blocking POST). So in the future when I need to send larger datasets, I will need to stitch the data back together in my server code, and use many "load url ..." calls to do the transfer. Alex. From dsc at swcp.com Sun Aug 4 21:15:02 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sun, 4 Aug 2019 19:15:02 -0600 Subject: Making "read from file" less blocky. In-Reply-To: References: <71745c2e-8691-ccc1-a904-071ebd8ad715@tweedly.net> <473B17D2-DF17-4AC5-B9AC-63CC20140A8C@swcp.com> <8E9DDB33-3F57-4915-95C9-0105B8D6FC76@swcp.com> Message-ID: OK. Skip "cat" for now. Everything else should work on Windows. To load a file in one swoop... put URL("binfile:" & ThisFile) into IntoThisVariable And if you saved the file with compress, then decompress it. To load portions of a file just-in-time... Use "at" and "for" in "read from" That wont help if you immediately want to find the average or something. But it might help if you want to read a header and first record, then move to another record as needed. I am awful at explaining things so twist my arm until I do it right. > On Aug 4, 2019, at 5:28 PM, Tom Glod via use-livecode wrote: > > heheh.... its always a fun exercise. > > Dar, these are linux based solutions right? using windows here at the > moment, so I can't test, but when I test and optimize my application for > linux i will try these. > > On Sun, Aug 4, 2019 at 4:43 PM dsc--- via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Even more "really out there" of the "really out there". >> >> Don't read in the file. >> >> Access portions JIT, that is, lazily. >> >> Create a function that pulls in segments of the file. Kinda like this: >> >> function segmentOfFile pStartIndex, pEndIndex, pThisFile >> >> Or this: >> >> function segmentOfCurrentFile pStartIndex, pEndIndex >> >> Dar >> >>> On Aug 4, 2019, at 1:22 PM, dsc--- via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> More "really out there". >>> >>> I like the idea of trying to speed up an upfront foreground load. >> Something simple like this: >>> >>> put blah-plah into IntoThisVariable. >>> >>> where blah-blah is nana-nana or decompress( nana-nana ) >>> where nana-nana is one of these: >>> URL ("binfile:" & ThisFile) >>> shell("cat " & ThisFile) >>> >>> Function decompress() makes two RAM hits and requires control over the >> loaded files. >>> >>> >>>> On Aug 4, 2019, at 12:47 PM, Dar Scott Consulting via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>> >>>> I love "really out there". I wanna play. >>>> >>>> At the start of any solution, try this. It might speed up any method >> but would take some time at the start. >>>> >>>> get shell( "cat " & ThisFile & " > dev/null" ) >>>> >>>> I think that is likely to pre-load the system file buffers for you. >>>> >>>> If one is feeling adventurous, one can try open process (cat) to avoid >> the wait; it will probably move through the file faster than the script and >> sectors will already be loaded when you ask for them. >>>> >>>> Dar >>>> >>>>> On Aug 4, 2019, at 7:59 AM, Alex Tweedly via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> OK, here's a "really out there" suggestion .... >>>>> >>>>> 1. Run a local web server to serve files (locally only). >>>>> >>>>> Can be done various ways, including (easily) via LC and the httpd >> library, >>>>> >>>>> (build that server as a standalone and have it running - started >> from your app if need be...) >>>>> >>>>> 2. in your stack, just do >>>>> >>>>> load url ("http://localhost:8080/myfilename") with message >> "mycallback" >>>>> >>>>> and handle the file once it has been read in the "mycallback" handler >>>>> >>>>> -- Alex. >>>>> >>>>> >>>>> On 04/08/2019 01:56, Tom Glod via use-livecode wrote: >>>>>> Hey folks, >>>>>> >>>>>> I'm having trouble finding a combination of settings that allows my >> file >>>>>> loading to seem to happen in the background. >>>>>> >>>>>> repeat while read_result is not "eof" >>>>>> read from file ThisFile for (1024 * 1000) bytes >>>>>> put the result into read_result >>>>>> put it after IntoThisVariable >>>>>> add length(it) to amount_read >>>>>> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." >>>>>> (Progress Indicator Handler) >>>>>> wait 10 milliseconds with messages >>>>>> end repeat >>>>>> >>>>>> no matter what I try, its still sluggish, and it seems like messages >> are >>>>>> still accumilating instead of being processed by the engine. >>>>>> >>>>>> Am I missing something? Normally waiting with messages sufficiently >> frees >>>>>> the engine to allow the UI to remain responsive. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Tom >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >>>>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Sun Aug 4 21:54:37 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Sun, 4 Aug 2019 21:54:37 -0400 Subject: [OT] Weighted distribution of Numbers In-Reply-To: References: <989B333B-623B-4365-A4EE-6F9F05DB0158@hyperhh.de> <06A8BE65-2A5D-4358-A442-1F31336F0D6F@swcp.com> <003c01d54b08$5deb9740$19c2c5c0$@net> <9380F4D6-07D7-46A9-8B76-12877DD8CD08@swcp.com> Message-ID: <004201d54b30$bf7866f0$3e6934d0$@net> Thanks all! I will take a read on that link also. 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 Mark Wieder via use-livecode Sent: Sunday, August 04, 2019 7:07 PM To: dsc--- via use-livecode Cc: Mark Wieder Subject: Re: [OT] Weighted distribution of Numbers On 8/4/19 3:00 PM, dsc--- via use-livecode wrote: > I'm unsure how often 800 or so changes. I'll call it 800, it is just a name. Values can range from 0 through 800. > > You can map a number in that range to 0-1 by dividing by 800. That is, scaled1(n) is n/800. > > I guess you want to map each number n in that into one of 101 bins, 0 through 100. Yes - that's a weighted mean. Here's a simple explanation https://sciencing.com/calculate-weighted-average-5328019.html ...and no, Hermann, it's (you'd think I'd know better than to argue with a real mathematician here, but...) not lying, it's the addition of another variable. -- Mark Wieder ahsoftware at gmail.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Sun Aug 4 23:26:06 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 5 Aug 2019 03:26:06 +0000 Subject: Making "read from file" less blocky. In-Reply-To: <62C14D08-C382-4F03-8E43-F68548E36A1C@swcp.com> References: , <62C14D08-C382-4F03-8E43-F68548E36A1C@swcp.com> Message-ID: The trick is to create an independent process. A standalone that listens for messages. Pass it some parameters and go on about your business. Multithreaded computing on demand. AppleScript or open process doesn?t matter. Sent from my iPhone > On Aug 3, 2019, at 19:09, Dar Scott Consulting via use-livecode wrote: > > Alas, only read from socket allows a message to be sent upon completion. The step siblings read from file, read from process and read from driver do not. > > Here are a few things you might do: > > 1. Try making the file loading very fast and don't do it in the background. Change the cursor if need be. Try using URL with file: or binfile:, maybe that is fast. > > 2. Use a "send loop" to read in portions and update a progress bar. You can get help here on how to do that. > > 3. Process the file lazily and bring in parts as needed. > > 4. Figure out how to make the file read through networking. Somehow. Maybe. > > >> On Aug 3, 2019, at 6:56 PM, Tom Glod via use-livecode wrote: >> >> Hey folks, >> >> I'm having trouble finding a combination of settings that allows my file >> loading to seem to happen in the background. >> >> repeat while read_result is not "eof" >> read from file ThisFile for (1024 * 1000) bytes >> put the result into read_result >> put it after IntoThisVariable >> add length(it) to amount_read >> TSTProgress amount_read,ExpectedSize,"%","Loading File ..." >> (Progress Indicator Handler) >> wait 10 milliseconds with messages >> end repeat >> >> no matter what I try, its still sluggish, and it seems like messages are >> still accumilating instead of being processed by the engine. >> >> Am I missing something? Normally waiting with messages sufficiently frees >> the engine to allow the UI to remain responsive. >> >> Thanks, >> >> Tom >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sun Aug 4 23:37:05 2019 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 4 Aug 2019 20:37:05 -0700 Subject: Making "read from file" less blocky. In-Reply-To: References: Message-ID: <1a11f948-d4c4-d0bc-e888-ec541bf39312@fourthworld.com> Tom Glod wrote: > I'm having trouble finding a combination of settings that allows my > file loading to seem to happen in the background. How large is the file? And how is the file structured? -- 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 hh at hyperhh.de Mon Aug 5 04:48:30 2019 From: hh at hyperhh.de (hh) Date: Mon, 5 Aug 2019 10:48:30 +0200 Subject: [OT] Weighted distribution of Numbers Message-ID: [@Mark: A (weighted) mean is a location parameter, one number.] Here the customer (say Dagobert Duck) wants to change/weight the distribution of the data. As Dar says, he could do a mapping from 0-800 to bins as "bad, neutral, good" simply by setting limits for the bins. For example 0-30 = bad, 31-70 = neutral, 71-100 = good. And make these limits transparent and show their frequencies as they are. But now Dagobert wants to "adjust" by (1) and/or (2): (1) Set the limits for the bins such that each bin has a relative frequency of 1/3 (or given relative frequencies). This is setting categories by their frequencies in order to interpret the frequency of the categories. (2) Change the raw data such that for the given limits each bin has a relative frequency of 1/3 (or given relative frequencies). This is filling categories by changing data in order to interpret the frequency of the categories of the changed data. In sum, Dagobert wants to change the method on base of the raw data or change the raw data such that the results are the wished ones. (Honi soit qui mal y pense ...) -- I would accept (1) if one argues from *theoretical* reasons that the bins are expected to have frequencies of say 30%, 50%, 20%. This could lead to limits on base of *some* (random part) of raw data: In order to find these limits simply sort the random data (a random sample drawn out of the raw data) and take the values that have approximately 30% or 80% of the values below them (no scaling needed for that). In statistical terms: Find the 30% and 80% quantiles. Then one could use these (transparent) limits for the *rest* of the raw data and new raw data and interpret the frequencies of the bins. From hh at hyperhh.de Mon Aug 5 04:54:52 2019 From: hh at hyperhh.de (hh) Date: Mon, 5 Aug 2019 10:54:52 +0200 Subject: [OT] Weighted distribution of Numbers Message-ID: <67EB061B-63F1-455F-94AF-A0C764C91972@hyperhh.de> I wrote: > In order to find these limits simply sort the random data (a random > sample drawn out of the raw data) and take the values that have > approximately 30% or 80% of the values below them (no scaling needed > for that). In statistical terms: Find the 30% and 80% quantiles. Sorry, read here 70% instead of 80% to relate correctly to the example 0-30 = bad, 31-70 = neutral, 71-100 = good. From hh at hyperhh.de Mon Aug 5 05:23:43 2019 From: hh at hyperhh.de (hh) Date: Mon, 5 Aug 2019 11:23:43 +0200 Subject: [OT] Weighted distribution of Numbers Message-ID: > I wrote: > In order to find these limits simply sort the random data (a random > sample drawn out of the raw data) and take the values that have > approximately 30% or 80% of the values below them (no scaling needed > for that). In statistical terms: Find the 30% and 80% quantiles. Please forget my last correction (I'm tired), was: > Sorry, read here 70% instead of 80% to relate correctly to the example > 0-30 = bad, 31-70 = neutral, 71-100 = good. "In order ..." relates correctly to the example > ... expected to have frequencies of say 30%, 50%, 20%. From jjs at krutt.org Mon Aug 5 06:39:01 2019 From: jjs at krutt.org (JJS) Date: Mon, 5 Aug 2019 12:39:01 +0200 Subject: new keyboardstypes mobile seem not to work LC950 Message-ID: <482d9d1d-49d9-0582-ac3a-e56a0b79fb2b@krutt.org> Hi, anyone already tested the new keyboard commands for mobile(Android)? mobileSetKeyboardReturnKey "done" ????? mobileSetKeyboardDisplay "over" ????? set the keyboardType of me to "email" these seem not to work, and even do not bring up the keyboard as wanted. so i use as normal this one: mobileSetKeyboardType "email" for a single field as it has a V instead of a return. Now as i'm not using the native field input, because i can't get the text positioned correctin the field(chopped off). And i dislike the orange square around the field. I could use the mobilecreate input of course, but still i like the way i'm using the ASK command for a single line input. Now i put a empty image over the regurlar field and in the iamge i put the script. Maybe a bit more work but i like the way it works with ask. I also tested these commands without the empty image over the field and thus directly in the fields script. It does not work. Anyone tried yet? Thanks. Sphere From hh at hyperhh.de Mon Aug 5 08:47:33 2019 From: hh at hyperhh.de (hh) Date: Mon, 5 Aug 2019 14:47:33 +0200 Subject: [OT] Weighted distribution of Numbers Message-ID: When computing limits for distribution categories given frequencies the following may be useful: A number q is a p%-quantile of a data set If the percentage of data nums <= q is >= p% and the percentage of data nums >= q is >= (100-p)% For each percentage p there is an interval [lowerV,upperV] so that each number from that interval is p%-quantile of the data set. To make it unique some use in case lowerV < upperV the average of lowerV and upperV. -- d=data in lines, sorted ascending numeric -- p=percentage (num in range 0-100) function quantile p,d put the num of lines of d into N put N*p/100 into m0 put line ceil(N*p/100) of d into lowerV put line N+1 - ceil(N*(100-p)/100) of d into upperV -- return avg(lowerV,upperV) --> unique variant if lowerV=upperV then return lowerV else return lowerV,upperV end quantile For example quantile(50,d) returns the median of a data set, quantile(25,d), quantile(50,d), quantile(75,d) the quartiles. From paul at researchware.com Mon Aug 5 10:43:47 2019 From: paul at researchware.com (Paul Dupuis) Date: Mon, 5 Aug 2019 10:43:47 -0400 Subject: Should the scope of WholeMatches be expanded? Message-ID: <8b4b445f-0f52-9cc1-bc1b-b8406a8f7659@researchware.com> Is it just me or would anyone else like to see the scope of the wholeMatches property expanded beyond just wordOffset, itemOffset, and lineOffset. I'd like to see wholeMatches apply to: Replace Replace in field Contains (as in if X contains Y) With wholeMatches meaning test at white space (space,line break, tab, etc.) boundaries for all three of these. Yes, I know I can do the replace using the replaceText function and regex. I have a heavily formatted field and would LOVE to use the "new" replace ... in field preserving styles, but I have to ensure that I only match and replace whole strings (bounded by white space/line breaks) and don't accidentally replace part of a string. From panos.merakos at livecode.com Mon Aug 5 11:39:22 2019 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 5 Aug 2019 18:39:22 +0300 Subject: [ANN] This week in LiveCode 188 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 #188 here: http://bit.ly/33dSA1S This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From dougr at telus.net Mon Aug 5 11:50:41 2019 From: dougr at telus.net (Douglas Ruisaard) Date: Mon, 5 Aug 2019 08:50:41 -0700 Subject: Weighted distribution of Numbers In-Reply-To: References: Message-ID: <130a01d54ba5$8ad0bb80$a0723280$@net> Ralph: Although several persons have responded... most far above my "pay-scale" ... Your mention of the audio taper rang bell for me. In the process of simulating an analog audio potentiometer using a digital one... I needed to find a formula for an inverse audio taper... and it DID take a math professor to finally provide a solution: kx - 1 + sqrt((1 - kx)^2 + 4kx^2) y = --------------------------------- 2kx Now referencing the potentiometer "model"... "x" is the amount of "rotation" .. from near zero (since dividing by zero is verboten) to 100%.. i.e. 360 degrees (which a real analog pot never actually achieves. "k" is the "weight" factor ... increasing "k" increases the "severity" of the taper ... more or less flattening the higher range which, in turn, causing the "higher" rotation values to have less differentiated output values "y" is the output ... in the case of a pot, the resistance When I look at the graph of this function using a "k" value of 5 and above, I *thinK* it starts to simulate your desired mapping. Hope this helps ... quadratic formulae are NOT my thing. Your mission is to fit this formula into you app and data set Cheers! Douglas Ruisaard Trilogy Software (250) 573-3935 > > Message: 12 > Date: Sun, 4 Aug 2019 14:49:09 -0400 > From: "Ralph DiMola" > To: "'How to use LiveCode'" > Subject: [OT] Weighted distribution of Numbers > Message-ID: <003701d54af5$4f8cd410$eea67c30$@net> > Content-Type: text/plain; charset="us-ascii" > > I have a set of raw numbers(6,000 of them from 0 to 800 or so). It was easy > to normalize these numbers from 0 to 100. But as I look at the results I see > that there is one at to top(100) and a few in the 90s and many more in the > 70s and 80s. I need to make these numbers more evenly distributed and > weighted towards the top(so the top few are 100) based on the current > distribution of the raw numbers. I'm not a math whiz and not afraid to admit > that going beyond linier equations is way over my head. From some searches I > see the some sort of nonlinear regression is in order(I think)? Or a apply a > log (like an audio log taper of a potentiometer)? I don't know... Can anyone > point me in the in the right direction? > > Thanks! > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > > > From paul at researchware.com Mon Aug 5 11:53:09 2019 From: paul at researchware.com (Paul Dupuis) Date: Mon, 5 Aug 2019 11:53:09 -0400 Subject: Help with an algorithm... Message-ID: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> Today is not my coding day. I have a problem I should be able to design a solution for an am struggling. Clearly I am missing "something" I have 2 lists (LISTNEW and LISTOLD) of the following format: ParentA Child 1 Child 2 etc. ParentB Child 1 etc. etc. The parents are in alphabetical sorted order, the children may not be in sorted order I need to hunt through LISTOLD comparing the LISTOLD Parents to the LISTNEW Parents ? FOR any LISTOLD Parent present in LISTNEW, check the Children of the matching Parents and add any Child for the LISTOLD Parent that is not already under its matching LISTNEW Parent ? FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and its Children I can not seem to write an approach to solve this today. Does any body have some code so solve this they may be willing to share? From ahsoftware at sonic.net Mon Aug 5 12:00:50 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 5 Aug 2019 09:00:50 -0700 Subject: [OT] Weighted distribution of Numbers In-Reply-To: References: Message-ID: <15d9936b-080f-c8e9-459d-6a0b92833565@sonic.net> On 8/5/19 1:48 AM, hh via use-livecode wrote: > [@Mark: A (weighted) mean is a location parameter, one number.] Yes, exactly. > In sum, Dagobert wants to change the method on base of the raw > data or change the raw data such that the results are the wished > ones. (Honi soit qui mal y pense ...) Respectfully, I think you're looking at a different problem. Let's say that I have a bandpass filter with a range of 2kHz<->20kHz. If I'm just looking at the frequencies I would say the center is at ~10kHz. But since the parameters of the bandpass filter can be changed I would have to weight the measured values to determine the maximum (and the Q as desired). -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Mon Aug 5 12:21:30 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 5 Aug 2019 09:21:30 -0700 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <15d9936b-080f-c8e9-459d-6a0b92833565@sonic.net> References: <15d9936b-080f-c8e9-459d-6a0b92833565@sonic.net> Message-ID: <2415cb41-f326-130c-90e7-feb8ff58df55@sonic.net> On 8/5/19 9:00 AM, Mark Wieder via use-livecode wrote: > have to weight the measured values to determine the maximum (and the Q > as desired). Urk. Now it's my turn to have misspoken. The maximum is easy to measure. But looking at the clustering of values to determine the Q of the bandpass filter requires a different calculation. -- Mark Wieder ahsoftware at gmail.com From dougr at telus.net Mon Aug 5 12:22:11 2019 From: dougr at telus.net (Douglas Ruisaard) Date: Mon, 5 Aug 2019 09:22:11 -0700 Subject: Weighted distribution of Numbers References: Message-ID: <130b01d54ba9$f1776e70$d4664b50$@net> Opps.. correction to: "... When I look at the graph of this function using a "k" value of 5 and above, I *thinK* it starts to simulate your desired mapping...." That should read " ... When I look at the graph of this function using a 'k' value of 3 down to close to zero I *think* starts to simulate your desired mapping...." Douglas Ruisaard Trilogy Software (250) 573-3935 > -----Original Message----- > From: Douglas Ruisaard [mailto:dougr at telus.net] > Sent: Monday, August 05, 2019 8:51 AM > To: 'use-livecode at lists.runrev.com' > Subject: RE: Weighted distribution of Numbers > > Ralph: > Although several persons have responded... most far above my "pay-scale" ... Your mention of the audio > taper rang bell for me. In the process of simulating an analog audio potentiometer using a digital > one... I needed to find a formula for an inverse audio taper... and it DID take a math professor to > finally provide a solution: > > > kx - 1 + sqrt((1 - kx)^2 + 4kx^2) > > y = --------------------------------- > > 2kx > > Now referencing the potentiometer "model"... > "x" is the amount of "rotation" .. from near zero (since dividing by zero is verboten) to 100%.. i.e. > 360 degrees (which a real analog pot never actually achieves. > "k" is the "weight" factor ... increasing "k" increases the "severity" of the taper ... more or less > flattening the higher range which, in turn, causing the "higher" rotation values to have less > differentiated output values "y" is the output ... in the case of a pot, the resistance > > When I look at the graph of this function using a "k" value of 5 and above, I *thinK* it starts to > simulate your desired mapping. > > Hope this helps ... quadratic formulae are NOT my thing. Your mission is to fit this formula into you > app and data set > > Cheers! > Douglas Ruisaard > Trilogy Software > (250) 573-3935 > > > > > > Message: 12 > > Date: Sun, 4 Aug 2019 14:49:09 -0400 > > From: "Ralph DiMola" > > To: "'How to use LiveCode'" > > Subject: [OT] Weighted distribution of Numbers > > Message-ID: <003701d54af5$4f8cd410$eea67c30$@net> > > Content-Type: text/plain; charset="us-ascii" > > > > I have a set of raw numbers(6,000 of them from 0 to 800 or so). It was > > easy to normalize these numbers from 0 to 100. But as I look at the > > results I see that there is one at to top(100) and a few in the 90s > > and many more in the 70s and 80s. I need to make these numbers more > > evenly distributed and weighted towards the top(so the top few are > > 100) based on the current distribution of the raw numbers. I'm not a > > math whiz and not afraid to admit that going beyond linier equations > > is way over my head. From some searches I see the some sort of > > nonlinear regression is in order(I think)? Or a apply a log (like an > > audio log taper of a potentiometer)? I don't know... Can anyone point me in the in the right > direction? > > > > Thanks! > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdimola at evergreeninfo.net > > > > > > > > From dunbarx at aol.com Mon Aug 5 13:40:36 2019 From: dunbarx at aol.com (dunbarx at aol.com) Date: Mon, 5 Aug 2019 17:40:36 +0000 (UTC) Subject: Help with an algorithm... In-Reply-To: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> Message-ID: <145643410.1158800.1565026836659@mail.yahoo.com> Hi. This seems like a good case for arrays (pseudo): You have to create an array for each parent. The only way i see to find those is to go through the list looking for lines that DO NOT start with a space. If you work from the bottom up, since children are always at the bottom and they always have spaces in front, you can find the lastMost parent. Set the itemDel to that parent, and isolate the last item. This will be a list of children of that parent. See if there is a corresponding parent in the new list, and isolate that "item" list of children. Run through the children of the old list and see if they live in the new list. If they do, add them:The array part is something like: put oldChildren & return & newChildren into allChildrenrepeat for each line tLine in allChildrenput tLine into myArray[tLine] Delete the last item of the old list and do it again. This way the last item can be isolated directly. Craig -----Original Message----- From: Paul Dupuis via use-livecode To: How to use LiveCode Cc: Paul Dupuis Sent: Mon, Aug 5, 2019 11:53 am Subject: Help with an algorithm... Today is not my coding day. I have a problem I should be able to design a solution for an am struggling. Clearly I am missing "something" I have 2 lists (LISTNEW and LISTOLD) of the following format: ParentA Child 1 Child 2 etc. ParentB Child 1 etc. etc. The parents are in alphabetical sorted order, the children may not be in sorted order I need to hunt through LISTOLD comparing the LISTOLD Parents to the LISTNEW Parents ? FOR any LISTOLD Parent present in LISTNEW, check the Children of the matching Parents and add any Child for the LISTOLD Parent that is not already under its matching LISTNEW Parent ? FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and its Children I can not seem to write an approach to solve this today. Does any body have some code so solve this they may be willing to share? _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Mon Aug 5 13:46:24 2019 From: paul at researchware.com (Paul Dupuis) Date: Mon, 5 Aug 2019 13:46:24 -0400 Subject: Help with an algorithm... In-Reply-To: <145643410.1158800.1565026836659@mail.yahoo.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <145643410.1158800.1565026836659@mail.yahoo.com> Message-ID: <6f0faea6-b3ba-76eb-db40-fa68e5f651fe@researchware.com> I had not considered using arrays. I have no idea why, as it provides a mechanism. Just not thinking well today. Thanks for the tip! On 8/5/2019 1:40 PM, dunbarx--- via use-livecode wrote: > Hi. > This seems like a good case for arrays (pseudo): > You have to create an array for each parent. The only way i see to find those is to go through the list looking for lines that DO NOT start with a space. If you work from the bottom up, since children are always at the bottom and they always have spaces in front, you can find the lastMost parent. > Set the itemDel to that parent, and isolate the last item. This will be a list of children of that parent. > See if there is a corresponding parent in the new list, and isolate that "item" list of children. > Run through the children of the old list and see if they live in the new list. If they do, add them:The array part is something like: > put oldChildren & return & newChildren into allChildrenrepeat for each line tLine in allChildrenput tLine into myArray[tLine] > > Delete the last item of the old list and do it again. This way the last item can be isolated directly. > Craig > > -----Original Message----- > From: Paul Dupuis via use-livecode > To: How to use LiveCode > Cc: Paul Dupuis > Sent: Mon, Aug 5, 2019 11:53 am > Subject: Help with an algorithm... > > Today is not my coding day. I have a problem I should be able to design > a solution for an am struggling. Clearly I am missing "something" > > I have 2 lists (LISTNEW and LISTOLD) of the following format: > > ParentA > Child 1 > Child 2 > etc. > ParentB > Child 1 > etc. > etc. > > The parents are in alphabetical sorted order, the children may not be in > sorted order > > I need to hunt through LISTOLD comparing the LISTOLD Parents to the > LISTNEW Parents > ? FOR any LISTOLD Parent present in LISTNEW, check the Children of the > matching Parents and add any Child for the LISTOLD Parent that is not > already under its matching LISTNEW Parent > ? FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and > its Children > > I can not seem to write an approach to solve this today. Does any body > have some code so solve this they may be willing to share? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Mon Aug 5 13:49:20 2019 From: dunbarx at aol.com (dunbarxx) Date: Mon, 5 Aug 2019 12:49:20 -0500 (CDT) Subject: Help with an algorithm... In-Reply-To: <145643410.1158800.1565026836659@mail.yahoo.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <145643410.1158800.1565026836659@mail.yahoo.com> Message-ID: <1565027360677-0.post@n4.nabble.com> I really do not like the use-list. It is difficult to format one's answers. Here is a handler that places a few pieces of data into two variables. These would be the two isolated lists of children derived from the parents as described earlier. There is one difference between the two lists, the child "xxx'. on mouseUp put "aaa" & return & "bbb" & return & "ccc" into tNew put "aaa" & return & "xxx" & return & "ccc" into tOld put tOld & return & tnew into tAll repeat with y = 1 to the number of lines of tAll put line y of tAll into myArray[ line y of tAll] end repeat breakpoint end mouseUp Straightforward array stuff. The final list has four children, "xxx" being added to the mix, as can be seen in the debugger at the breakpoint. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dsc at swcp.com Mon Aug 5 13:55:10 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Mon, 5 Aug 2019 11:55:10 -0600 Subject: Help with an algorithm... In-Reply-To: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> Message-ID: <0DE4C7B3-58FF-4DD5-B426-21D6768F0E7D@swcp.com> I'd tend to look for ways to do this with functions that work on whole collections and avoid loops. If that is not found, or is hard to work with, I'd change the lists to be arrays. Each array is is keyed by parents. Each parent is an array of children. Children can be represented as an arrayed indexed by children. The elements of those might be ignored or have data. Loop on keys in LISTNEW... > On Aug 5, 2019, at 9:53 AM, Paul Dupuis via use-livecode wrote: > > Today is not my coding day. I have a problem I should be able to design a solution for an am struggling. Clearly I am missing "something" > > I have 2 lists (LISTNEW and LISTOLD) of the following format: > > ParentA > Child 1 > Child 2 > etc. > ParentB > Child 1 > etc. > etc. > > The parents are in alphabetical sorted order, the children may not be in sorted order > > I need to hunt through LISTOLD comparing the LISTOLD Parents to the LISTNEW Parents > FOR any LISTOLD Parent present in LISTNEW, check the Children of the matching Parents and add any Child for the LISTOLD Parent that is not already under its matching LISTNEW Parent > FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and its Children > > I can not seem to write an approach to solve this today. Does any body have some code so solve this they may be willing to share? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dunbarx at aol.com Mon Aug 5 13:55:23 2019 From: dunbarx at aol.com (dunbarxx) Date: Mon, 5 Aug 2019 12:55:23 -0500 (CDT) Subject: Help with an algorithm... In-Reply-To: <1565027360677-0.post@n4.nabble.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <145643410.1158800.1565026836659@mail.yahoo.com> <1565027360677-0.post@n4.nabble.com> Message-ID: <1565027723192-0.post@n4.nabble.com> I saw your post preceded my second one. Besides the fact that this works as well and is faster: repeat for each line tLine in tAll put tLine into myArray[ tLine] end repeat The array thing is the easy part. The real working of this gadget depends on being able to isolate the children, and the only way I can see doing that easily to rely on those spaces. This may be fragile, depending on how consistent that format sticks. You cannot find matching lines between the two lists, because some children AND some parents may be present in both, and you would not know which "class" of data you were dealing with. I would format such lists in the future more robustly, perhaps with tabs. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dsc at swcp.com Mon Aug 5 14:00:18 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Mon, 5 Aug 2019 12:00:18 -0600 Subject: use-list formatting (was Re: Help with an algorithm...) In-Reply-To: <1565027360677-0.post@n4.nabble.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <145643410.1158800.1565026836659@mail.yahoo.com> <1565027360677-0.post@n4.nabble.com> Message-ID: <8AB84B05-FEF7-4187-9BAE-2F470DD4860B@swcp.com> I agree that the lack of formatting makes it hard to communicate. I would favor changing the list settings to allow for it. I don't think we have a spam problem that would discourage that. And to help support this, LC copy should include types easily pasted into mail clients. > On Aug 5, 2019, at 11:49 AM, dunbarxx via use-livecode wrote: > > I really do not like the use-list. It is difficult to format one's answers. From dsc at swcp.com Mon Aug 5 14:31:03 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Mon, 5 Aug 2019 12:31:03 -0600 Subject: Help with an algorithm... In-Reply-To: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> Message-ID: <557480B2-1DE0-4D95-AE04-BCBD64102A6D@swcp.com> I'm pretty sure I goofed somewhere, but maybe something like this? intersect ARRAYNEW with ARRAYOLD into temp union temp with ARRAYNEW recursively > On Aug 5, 2019, at 9:53 AM, Paul Dupuis via use-livecode wrote: > > Today is not my coding day. I have a problem I should be able to design a solution for an am struggling. Clearly I am missing "something" > > I have 2 lists (LISTNEW and LISTOLD) of the following format: > > ParentA > Child 1 > Child 2 > etc. > ParentB > Child 1 > etc. > etc. > > The parents are in alphabetical sorted order, the children may not be in sorted order > > I need to hunt through LISTOLD comparing the LISTOLD Parents to the LISTNEW Parents > FOR any LISTOLD Parent present in LISTNEW, check the Children of the matching Parents and add any Child for the LISTOLD Parent that is not already under its matching LISTNEW Parent > FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and its Children > > I can not seem to write an approach to solve this today. Does any body have some code so solve this they may be willing to share? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From paul at researchware.com Mon Aug 5 16:01:57 2019 From: paul at researchware.com (Paul Dupuis) Date: Mon, 5 Aug 2019 16:01:57 -0400 Subject: SOLVED: Help with an algorithm... In-Reply-To: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> Message-ID: <301dd9bd-ad68-7fbb-0315-8fc87c849126@researchware.com> On 8/5/2019 11:53 AM, Paul Dupuis via use-livecode wrote: > Today is not my coding day. I have a problem I should be able to > design a solution for an am struggling. Clearly I am missing "something" > > I have 2 lists (LISTNEW and LISTOLD) of the following format: > > ParentA > Child 1 > Child 2 > etc. > ParentB > Child 1 > etc. > etc. > > The parents are in alphabetical sorted order, the children may not be > in sorted order > > I need to hunt through LISTOLD comparing the LISTOLD Parents to the > LISTNEW Parents > ? FOR any LISTOLD Parent present in LISTNEW, check the Children of the > matching Parents and add any Child for the LISTOLD Parent that is not > already under its matching LISTNEW Parent > ? FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and > its Children > > I can not seem to write an approach to solve this today. Does any body > have some code so solve this they may be willing to share? > Thank you everyone who responded. Apparently, I really just needed a nudge, which Craig's first response provided. All replies helped though. Routine is now coded, tested, and working correctly. From alex at tweedly.net Mon Aug 5 16:28:02 2019 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 5 Aug 2019 21:28:02 +0100 Subject: Help with an algorithm... In-Reply-To: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> Message-ID: <692958ea-b587-0f4b-7598-71c3e8c6ac98@tweedly.net> I'm a great fan of, and user of, arrays - but we always need to be careful of losing data with duplicated keys. You haven't said that the parent names in LISTNEW are guaranteed to be unique. This simple code assumes they are - if they're not, it's easy to add a check ...? (And it also assumes the inputs are properly formatted!!) (inputs are in fields "FNew" and "FOld", output in field "FOut") on mouseUp ?? local tOld, tNew, tOut ?? local tA ?? local tLastParent ?? put the text of fld "FNew" into tNew ?? repeat for each line L in tNew? -- convert to array ????? if L begins with space then -- a child ???????? put L &CR after tA[tLastParent] ????? else ???????? put L into tLastParent ????? end if ?? end repeat ?? put the text of fld "FOld" into tOld ?? put empty into tLastParent ?? repeat for each line L in tOld ????? if L begins with space then -- a child ???????? if (tLastParent is not empty) \ ??????????????? AND (L is not among the lines of tA[tLastParent]) then ??????????? put L &CR after tA[tLastParent] ???????? end if ????? else ???????? if L is among the keys of tA then -- a Parent we need to deal with ??????????? put L into tLastParent ???????? else ??????????? put empty into tLastParent ???????? end if ????? end if ?? end repeat ?? -- and then collect the expanded outptu ?? local tKeys ?? put the keys of tA into tKeys ?? sort lines of tKeys ?? repeat for each line K in tKeys ????? put K &CR & tA[K] after tOut ?? end repeat ?? put tOut into fld "fOut" end mouseUp Alex. On 05/08/2019 16:53, Paul Dupuis via use-livecode wrote: > Today is not my coding day. I have a problem I should be able to > design a solution for an am struggling. Clearly I am missing "something" > > I have 2 lists (LISTNEW and LISTOLD) of the following format: > > ParentA > Child 1 > Child 2 > etc. > ParentB > Child 1 > etc. > etc. > > The parents are in alphabetical sorted order, the children may not be > in sorted order > > I need to hunt through LISTOLD comparing the LISTOLD Parents to the > LISTNEW Parents > ? FOR any LISTOLD Parent present in LISTNEW, check the Children of the > matching Parents and add any Child for the LISTOLD Parent that is not > already under its matching LISTNEW Parent > ? FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and > its Children > > I can not seem to write an approach to solve this today. Does any body > have some code so solve this they may be willing to share? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Mon Aug 5 17:24:10 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Mon, 5 Aug 2019 15:24:10 -0600 Subject: Help with an algorithm... In-Reply-To: <692958ea-b587-0f4b-7598-71c3e8c6ac98@tweedly.net> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <692958ea-b587-0f4b-7598-71c3e8c6ac98@tweedly.net> Message-ID: <76F8875E-EA94-4BCD-92B1-11621E8A15AC@swcp.com> Yikes! I wasn't aware of duplicate keys being a problem. How does that happen? > On Aug 5, 2019, at 2:28 PM, Alex Tweedly via use-livecode wrote: > > I'm a great fan of, and user of, arrays - but we always need to be careful of losing data with duplicated keys. > > You haven't said that the parent names in LISTNEW are guaranteed to be unique. This simple code assumes they are - if they're not, it's easy to add a check ... (And it also assumes the inputs are properly formatted!!) > > (inputs are in fields "FNew" and "FOld", output in field "FOut") > > on mouseUp > local tOld, tNew, tOut > local tA > local tLastParent > > put the text of fld "FNew" into tNew > repeat for each line L in tNew -- convert to array > if L begins with space then -- a child > put L &CR after tA[tLastParent] > else > put L into tLastParent > end if > end repeat > > put the text of fld "FOld" into tOld > put empty into tLastParent > repeat for each line L in tOld > if L begins with space then -- a child > if (tLastParent is not empty) \ > AND (L is not among the lines of tA[tLastParent]) then > put L &CR after tA[tLastParent] > end if > else > if L is among the keys of tA then -- a Parent we need to deal with > put L into tLastParent > else > put empty into tLastParent > end if > end if > end repeat > > -- and then collect the expanded outptu > local tKeys > put the keys of tA into tKeys > sort lines of tKeys > repeat for each line K in tKeys > put K &CR & tA[K] after tOut > end repeat > put tOut into fld "fOut" > end mouseUp > > Alex. > > > On 05/08/2019 16:53, Paul Dupuis via use-livecode wrote: >> Today is not my coding day. I have a problem I should be able to design a solution for an am struggling. Clearly I am missing "something" >> >> I have 2 lists (LISTNEW and LISTOLD) of the following format: >> >> ParentA >> Child 1 >> Child 2 >> etc. >> ParentB >> Child 1 >> etc. >> etc. >> >> The parents are in alphabetical sorted order, the children may not be in sorted order >> >> I need to hunt through LISTOLD comparing the LISTOLD Parents to the LISTNEW Parents >> FOR any LISTOLD Parent present in LISTNEW, check the Children of the matching Parents and add any Child for the LISTOLD Parent that is not already under its matching LISTNEW Parent >> FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and its Children >> >> I can not seem to write an approach to solve this today. Does any body have some code so solve this they may be willing to share? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 5 17:34:08 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 5 Aug 2019 14:34:08 -0700 Subject: Help with an algorithm... In-Reply-To: <76F8875E-EA94-4BCD-92B1-11621E8A15AC@swcp.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <692958ea-b587-0f4b-7598-71c3e8c6ac98@tweedly.net> <76F8875E-EA94-4BCD-92B1-11621E8A15AC@swcp.com> Message-ID: On 8/5/19 2:24 PM, Dar Scott Consulting via use-livecode wrote: > Yikes! I wasn't aware of duplicate keys being a problem. How does that happen? Marx Groucho Chico etc. Marx Karl etc. -- Mark Wieder ahsoftware at gmail.com From stephen at barncard.com Mon Aug 5 17:57:14 2019 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 5 Aug 2019 14:57:14 -0700 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <2415cb41-f326-130c-90e7-feb8ff58df55@sonic.net> References: <15d9936b-080f-c8e9-459d-6a0b92833565@sonic.net> <2415cb41-f326-130c-90e7-feb8ff58df55@sonic.net> Message-ID: This is the kind of math I use every day, without knowing what I?m doing. On Mon, Aug 5, 2019 at 09:21 Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/5/19 9:00 AM, Mark Wieder via use-livecode wrote: > > have to weight the measured values to determine the maximum (and the Q > > as desired). > > Urk. Now it's my turn to have misspoken. > The maximum is easy to measure. > But looking at the clustering of values to determine the Q of the > bandpass filter requires a different calculation. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org From dsc at swcp.com Mon Aug 5 17:57:21 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Mon, 5 Aug 2019 15:57:21 -0600 Subject: Help with an algorithm... In-Reply-To: References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <692958ea-b587-0f4b-7598-71c3e8c6ac98@tweedly.net> <76F8875E-EA94-4BCD-92B1-11621E8A15AC@swcp.com> Message-ID: <3317D119-2901-4003-B906-18DC5DAD75F9@swcp.com> My mistake. I was thinking arrays. > On Aug 5, 2019, at 3:34 PM, Mark Wieder via use-livecode wrote: > > On 8/5/19 2:24 PM, Dar Scott Consulting via use-livecode wrote: >> Yikes! I wasn't aware of duplicate keys being a problem. How does that happen? > > Marx > Groucho > Chico > etc. > Marx > Karl > etc. > > -- > 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 dunbarx at aol.com Mon Aug 5 17:59:15 2019 From: dunbarx at aol.com (dunbarxx) Date: Mon, 5 Aug 2019 16:59:15 -0500 (CDT) Subject: Help with an algorithm... In-Reply-To: References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <692958ea-b587-0f4b-7598-71c3e8c6ac98@tweedly.net> <76F8875E-EA94-4BCD-92B1-11621E8A15AC@swcp.com> Message-ID: <1565042355632-0.post@n4.nabble.com> Hmmm. I had mentioned earlier: "You cannot just find matching lines between the two lists, because some children AND some parents may be present in both... The discussion has focused on array lore, and that is fine, but are we all in agreement that the main task is to isolate the parents, regardless of whether the names of those parents might be duplicated? I mention this because everything depends on the reliability of those spaces. The parsing of parent "groups", in one way or another, is essential. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dsc at swcp.com Mon Aug 5 18:08:15 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Mon, 5 Aug 2019 16:08:15 -0600 Subject: Help with an algorithm... In-Reply-To: <1565042355632-0.post@n4.nabble.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <692958ea-b587-0f4b-7598-71c3e8c6ac98@tweedly.net> <76F8875E-EA94-4BCD-92B1-11621E8A15AC@swcp.com> <1565042355632-0.post@n4.nabble.com> Message-ID: <008B785B-9810-4A7E-9C2C-B79DE9C999D8@swcp.com> I know this does not attend to the question, but my feelings are like this: if one has control, go back and use arrays from the start. Now, to your comments on robustness in parsing the files. I suppose any whitespace at the start of a line could be considered a child. Also, it is an error if the first line is a child. > On Aug 5, 2019, at 3:59 PM, dunbarxx via use-livecode wrote: > > Hmmm. I had mentioned earlier: > > "You cannot just find matching lines between the two lists, because some > children > AND some parents may be present in both... > > The discussion has focused on array lore, and that is fine, but are we all > in agreement that the main task is to isolate the parents, regardless of > whether the names of those parents might be duplicated? I mention this > because everything depends on the reliability of those spaces. The parsing > of parent "groups", in one way or another, is essential. > > Craig > > > > -- > Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Mon Aug 5 18:20:43 2019 From: dsc at swcp.com (dsc at swcp.com) Date: Mon, 5 Aug 2019 16:20:43 -0600 Subject: Help with an algorithm... In-Reply-To: <557480B2-1DE0-4D95-AE04-BCBD64102A6D@swcp.com> References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <557480B2-1DE0-4D95-AE04-BCBD64102A6D@swcp.com> Message-ID: I fixed this to use lists... Maybe. put parentArray( LISTNEW ) into aNew put parentArray( LISTOLD ) into aOld intersect aNew with aOld -- Remove from aOld that which is not in aNew union aOld with aNew recursively -- Leaves aNew unchanged except that children in aOld are brought in. I think. put parentList( aNew ) into LISTNEW Parents and children are keys in the arrays built. Children are sub-arrays of parents. > On Aug 5, 2019, at 12:31 PM, Dar Scott Consulting via use-livecode wrote: > > I'm pretty sure I goofed somewhere, but maybe something like this? > > intersect ARRAYNEW with ARRAYOLD into temp > union temp with ARRAYNEW recursively > > >> On Aug 5, 2019, at 9:53 AM, Paul Dupuis via use-livecode wrote: >> >> Today is not my coding day. I have a problem I should be able to design a solution for an am struggling. Clearly I am missing "something" >> >> I have 2 lists (LISTNEW and LISTOLD) of the following format: >> >> ParentA >> Child 1 >> Child 2 >> etc. >> ParentB >> Child 1 >> etc. >> etc. >> >> The parents are in alphabetical sorted order, the children may not be in sorted order >> >> I need to hunt through LISTOLD comparing the LISTOLD Parents to the LISTNEW Parents >> FOR any LISTOLD Parent present in LISTNEW, check the Children of the matching Parents and add any Child for the LISTOLD Parent that is not already under its matching LISTNEW Parent >> FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and its Children >> >> I can not seem to write an approach to solve this today. Does any body have some code so solve this they may be willing to share? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 5 19:33:13 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 6 Aug 2019 01:33:13 +0200 Subject: How do you view lcdoc files after editing/changing) Message-ID: <39D1FEAA-D424-4700-938C-FF62A79637D3@m-r-d.de> Hi, i am currently trying to edit/modify a lcdoc file of a built in lc library. The lcdoc is not displayed correctly in the dictionary. Some text is missing, in this case text like is not visible. Do i really have to restart LC and open the dictionary again after every change? Are there others here in the list who create such lcdoc files? If so, how do you check if the formatting is correct? Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From ahsoftware at sonic.net Mon Aug 5 19:47:59 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 5 Aug 2019 16:47:59 -0700 Subject: Help with an algorithm... In-Reply-To: References: <139a26f3-6b01-18bf-78d6-da678a39b13e@researchware.com> <557480B2-1DE0-4D95-AE04-BCBD64102A6D@swcp.com> Message-ID: <70387cc9-7115-2298-068f-e859e7467a46@sonic.net> On 8/5/19 3:20 PM, dsc--- via use-livecode wrote: Children are sub-arrays of parents. Ain't that the truth. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Mon Aug 5 21:37:17 2019 From: brian at milby7.com (Brian Milby) Date: Mon, 5 Aug 2019 21:37:17 -0400 Subject: How do you view lcdoc files after editing/changing) In-Reply-To: <39D1FEAA-D424-4700-938C-FF62A79637D3@m-r-d.de> References: <39D1FEAA-D424-4700-938C-FF62A79637D3@m-r-d.de> Message-ID: Check out this stack: https://github.com/bwmilby/DocEditorPlus On Mon, Aug 5, 2019 at 7:33 PM Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi, > i am currently trying to edit/modify a lcdoc file of a built in lc > library. The lcdoc is not displayed correctly in the dictionary. Some text > is missing, in this case text like is not visible. > > Do i really have to restart LC and open the dictionary again after every > change? > > Are there others here in the list who create such lcdoc files? If so, how > do you check if the formatting is correct? > > > Regards, > > Matthias > > > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 6 02:43:51 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 6 Aug 2019 08:43:51 +0200 Subject: How do you view lcdoc files after editing/changing) In-Reply-To: References: <39D1FEAA-D424-4700-938C-FF62A79637D3@m-r-d.de> Message-ID: Wow, that?s an awesome helper. Btw.: did you announce it to the list? I cannot remember to have seen an announcement. Thanks. This makes editing/correcting much easier. Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 06.08.2019 um 03:37 schrieb Brian Milby via use-livecode >: > > Check out this stack: > https://github.com/bwmilby/DocEditorPlus > > On Mon, Aug 5, 2019 at 7:33 PM Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com > wrote: > >> Hi, >> i am currently trying to edit/modify a lcdoc file of a built in lc >> library. The lcdoc is not displayed correctly in the dictionary. Some text >> is missing, in this case text like is not visible. >> >> Do i really have to restart LC and open the dictionary again after every >> change? >> >> Are there others here in the list who create such lcdoc files? If so, how >> do you check if the formatting is correct? >> >> >> Regards, >> >> Matthias >> >> >> >> Matthias Rebbe >> >> free tools for Livecoders: >> InstaMaker > >> WinSignMaker Mac > >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From bobsneidar at iotecdigital.com Tue Aug 6 10:50:32 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Aug 2019 14:50:32 +0000 Subject: [OT] Weighted distribution of Numbers In-Reply-To: References: <15d9936b-080f-c8e9-459d-6a0b92833565@sonic.net> <2415cb41-f326-130c-90e7-feb8ff58df55@sonic.net> Message-ID: <09CC3139-54CC-4BF0-9BD3-71C01B110247@iotecdigital.com> You mean to say relative math is easy? Bob S > On Aug 5, 2019, at 14:57 , Stephen Barncard via use-livecode wrote: > > This is the kind of math I use every day, without knowing what I?m doing. > > On Mon, Aug 5, 2019 at 09:21 Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 8/5/19 9:00 AM, Mark Wieder via use-livecode wrote: >>> have to weight the measured values to determine the maximum (and the Q >>> as desired). >> >> Urk. Now it's my turn to have misspoken. >> The maximum is easy to measure. >> But looking at the clustering of values to determine the Q of the >> bandpass filter requires a different calculation. >> >> -- >> Mark Wieder From bobsneidar at iotecdigital.com Tue Aug 6 10:59:49 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Aug 2019 14:59:49 +0000 Subject: DragDrop for Datagrids Message-ID: <7035E997-89C7-42DB-8A10-7417393722B3@iotecdigital.com> Hi all. Since being enlightened by Dar (I think it was) about setting the dragAction to "copy", I have entered into a new world of possibilities! One of them is drag and drop for datagrids. I'm sure that for those well versed in both datagrids and dragDrop, this will seem elementary, but for those who are not: on dragEnter -- this code will select datagrid records as you drag over them! set the dragAction to "Copy" put the mouseControl into tControlID if tControlID is empty then exit dragEnter put the dgDataControl of tControlID into tDataControl -- trap for no control try put the dgIndex of tDataControl into tIndex catch tError exit dragEnter end try set the dgHilitedIndex of me to tIndex end dragEnter on dragDrop put the mouseControl into tControlID if tControlID is empty then exit dragDrop put the dgDataControl of tControlID into tDataControl -- trap for no control try put the dgIndex of tDataControl into tIndex catch tError exit dragDrop end try -- put your custom stuff here -- end dragDrop From stephen at barncard.com Tue Aug 6 11:18:08 2019 From: stephen at barncard.com (Stephen Barncard) Date: Tue, 6 Aug 2019 08:18:08 -0700 Subject: [OT] Weighted distribution of Numbers In-Reply-To: <09CC3139-54CC-4BF0-9BD3-71C01B110247@iotecdigital.com> References: <15d9936b-080f-c8e9-459d-6a0b92833565@sonic.net> <2415cb41-f326-130c-90e7-feb8ff58df55@sonic.net> <09CC3139-54CC-4BF0-9BD3-71C01B110247@iotecdigital.com> Message-ID: By ear On Tue, Aug 6, 2019 at 07:51 Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > You mean to say relative math is easy? > > Bob S > > > > On Aug 5, 2019, at 14:57 , Stephen Barncard via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > This is the kind of math I use every day, without knowing what I?m doing. > > > > On Mon, Aug 5, 2019 at 09:21 Mark Wieder via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> On 8/5/19 9:00 AM, Mark Wieder via use-livecode wrote: > >>> have to weight the measured values to determine the maximum (and the Q > >>> as desired). > >> > >> Urk. Now it's my turn to have misspoken. > >> The maximum is easy to measure. > >> But looking at the clustering of values to determine the Q of the > >> bandpass filter requires a different calculation. > >> > >> -- > >> Mark Wieder > > _______________________________________________ > use-livecode mailing list > use-livecode 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 dsc at swcp.com Tue Aug 6 12:43:35 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Tue, 6 Aug 2019 10:43:35 -0600 Subject: DragDrop for Datagrids In-Reply-To: <7035E997-89C7-42DB-8A10-7417393722B3@iotecdigital.com> References: <7035E997-89C7-42DB-8A10-7417393722B3@iotecdigital.com> Message-ID: <38B51FE1-0603-4F1D-B591-DA76BFC594FA@swcp.com> No, way! You can't pin this on me! I've been framed!! I didn't do it. Well, not in recent times. Somebody else deserves the applause. > On Aug 6, 2019, at 8:59 AM, Bob Sneidar via use-livecode wrote: > > Hi all. > > Since being enlightened by Dar (I think it was) about setting the dragAction to "copy", I have entered into a new world of possibilities! One of them is drag and drop for datagrids. I'm sure that for those well versed in both datagrids and dragDrop, this will seem elementary, but for those who are not: > > on dragEnter > -- this code will select datagrid records as you drag over them! > set the dragAction to "Copy" > put the mouseControl into tControlID > if tControlID is empty then exit dragEnter > put the dgDataControl of tControlID into tDataControl > > -- trap for no control > try > put the dgIndex of tDataControl into tIndex > catch tError > exit dragEnter > end try > > set the dgHilitedIndex of me to tIndex > end dragEnter > > on dragDrop > put the mouseControl into tControlID > if tControlID is empty then exit dragDrop > put the dgDataControl of tControlID into tDataControl > > -- trap for no control > try > put the dgIndex of tDataControl into tIndex > catch tError > exit dragDrop > end try > > -- put your custom stuff here > > -- > end dragDrop > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 6 16:36:40 2019 From: paul at researchware.com (Paul Dupuis) Date: Tue, 6 Aug 2019 16:36:40 -0400 Subject: How does OSX tell what app to open when you double click a file? Message-ID: So we make an OSX desktop app in LiveCode that has several document types. We add these to the info.plist file in the App bundle so they are defined, with doc icons, extensions, types, etc. If a user has APPv1 installed that has a plist entry for the file extension .myext and then installs APPv2 that also has a plist entry for file extension .myext. how does OSX tell what APP to open when a user double clicks on document.myext? I googled and found information on setting default app for document types, but not how OSX handles this by default? In window, it is the App's responsibility to check the Registry for its document types and, it it wants to, ask the user if they want those document associated with it. Or it is done by the app's installer on Windows I just can't find how OSX does it. From bobsneidar at iotecdigital.com Tue Aug 6 16:57:08 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Aug 2019 20:57:08 +0000 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: References: Message-ID: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> I found this. Didn't read too deep tho'. https://www.chainsawonatireswing.com/2012/09/19/changing-default-applications-on-a-mac-using-the-command-line-then-a-shell-script/#find-out-the-current-default-for-an-extension Bob S > On Aug 6, 2019, at 13:36 , Paul Dupuis via use-livecode wrote: > > So we make an OSX desktop app in LiveCode that has several document types. We add these to the info.plist file in the App bundle so they are defined, with doc icons, extensions, types, etc. > > If a user has APPv1 installed that has a plist entry for the file extension .myext and then installs APPv2 that also has a plist entry for file extension .myext. how does OSX tell what APP to open when a user double clicks on document.myext? > > > I googled and found information on setting default app for document types, but not how OSX handles this by default? > > In window, it is the App's responsibility to check the Registry for its document types and, it it wants to, ask the user if they want those document associated with it. Or it is done by the app's installer on Windows > > I just can't find how OSX does it. From paul at researchware.com Tue Aug 6 17:16:23 2019 From: paul at researchware.com (Paul Dupuis) Date: Tue, 6 Aug 2019 17:16:23 -0400 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> Message-ID: <9ec20987-f89b-5ef5-b51f-1db6aa75b3d7@researchware.com> Thank you, This article could allow me to have our OSX app check to see if it is the default on startup and change it IF the command line tool "duti" used the example was already part of OSX but is an open source that would need to also be installed with out app - an additional level of overhead I'd rather avoid. However, again thanks as this points me in a possible direction of ignoring HOW OSX figure it out by default and trying to just tell OSX which app should rule. On 8/6/2019 4:57 PM, Bob Sneidar via use-livecode wrote: > I found this. Didn't read too deep tho'. > > https://www.chainsawonatireswing.com/2012/09/19/changing-default-applications-on-a-mac-using-the-command-line-then-a-shell-script/#find-out-the-current-default-for-an-extension > > Bob S > > >> On Aug 6, 2019, at 13:36 , Paul Dupuis via use-livecode wrote: >> >> So we make an OSX desktop app in LiveCode that has several document types. We add these to the info.plist file in the App bundle so they are defined, with doc icons, extensions, types, etc. >> >> If a user has APPv1 installed that has a plist entry for the file extension .myext and then installs APPv2 that also has a plist entry for file extension .myext. how does OSX tell what APP to open when a user double clicks on document.myext? >> >> >> I googled and found information on setting default app for document types, but not how OSX handles this by default? >> >> In window, it is the App's responsibility to check the Registry for its document types and, it it wants to, ask the user if they want those document associated with it. Or it is done by the app's installer on Windows >> >> I just can't find how OSX does it. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 6 17:23:36 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Aug 2019 21:23:36 +0000 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> Message-ID: If you are simply trying to open an file with a specific app that may or may not be the default, what I use is launch document using the with argument. In my Forms Generator app this becomes necessary, because some PDF viewers may not be able to edit forms. So I have an interface where the user selects which app they want to open fillable forms with, so I can force the issue when the time comes. Bob S > On Aug 6, 2019, at 13:57 , Bob Sneidar via use-livecode wrote: > > I found this. Didn't read too deep tho'. > > https://www.chainsawonatireswing.com/2012/09/19/changing-default-applications-on-a-mac-using-the-command-line-then-a-shell-script/#find-out-the-current-default-for-an-extension > > Bob S > > >> On Aug 6, 2019, at 13:36 , Paul Dupuis via use-livecode wrote: >> >> So we make an OSX desktop app in LiveCode that has several document types. We add these to the info.plist file in the App bundle so they are defined, with doc icons, extensions, types, etc. >> >> If a user has APPv1 installed that has a plist entry for the file extension .myext and then installs APPv2 that also has a plist entry for file extension .myext. how does OSX tell what APP to open when a user double clicks on document.myext? >> >> >> I googled and found information on setting default app for document types, but not how OSX handles this by default? >> >> In window, it is the App's responsibility to check the Registry for its document types and, it it wants to, ask the user if they want those document associated with it. Or it is done by the app's installer on Windows >> >> I just can't find how OSX does it. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 6 17:59:41 2019 From: paul at researchware.com (Paul Dupuis) Date: Tue, 6 Aug 2019 17:59:41 -0400 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> Message-ID: <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> Actually, this issue is that some of our users keep multiple versions of our App installed. In most cases, when the user double clicks a document from our app, the MOST RECENTLY INSTALLED version launches, but in some cases, and older version launches. In those instances where an older version launches, the user swears that they have never used "Open With" or done anything (that they are aware of) to set the default app for our document extension to an older version. So really, I am just trying to understand how OSX figure out how to determine what app to open for a document. For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all had a info.plist defintion for a .xyz file extension onto a virgin OSX system out of the box and then double-clicked a .wyz file, which of the 5 would open? On 8/6/2019 5:23 PM, Bob Sneidar via use-livecode wrote: > If you are simply trying to open an file with a specific app that may or may not be the default, what I use is launch document using the with argument. In my Forms Generator app this becomes necessary, because some PDF viewers may not be able to edit forms. So I have an interface where the user selects which app they want to open fillable forms with, so I can force the issue when the time comes. > > Bob S > > >> On Aug 6, 2019, at 13:57 , Bob Sneidar via use-livecode wrote: >> >> I found this. Didn't read too deep tho'. >> >> https://www.chainsawonatireswing.com/2012/09/19/changing-default-applications-on-a-mac-using-the-command-line-then-a-shell-script/#find-out-the-current-default-for-an-extension >> >> Bob S >> >> >>> On Aug 6, 2019, at 13:36 , Paul Dupuis via use-livecode wrote: >>> >>> So we make an OSX desktop app in LiveCode that has several document types. We add these to the info.plist file in the App bundle so they are defined, with doc icons, extensions, types, etc. >>> >>> If a user has APPv1 installed that has a plist entry for the file extension .myext and then installs APPv2 that also has a plist entry for file extension .myext. how does OSX tell what APP to open when a user double clicks on document.myext? >>> >>> >>> I googled and found information on setting default app for document types, but not how OSX handles this by default? >>> >>> In window, it is the App's responsibility to check the Registry for its document types and, it it wants to, ask the user if they want those document associated with it. Or it is done by the app's installer on Windows >>> >>> I just can't find how OSX does it. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 6 18:16:08 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Aug 2019 22:16:08 +0000 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> Message-ID: <77A26A12-660D-4AC1-9182-9AABA2DD1BB3@iotecdigital.com> Ouch! Seems like an installer that replaces the prior version with the current one is in order. Bob S > On Aug 6, 2019, at 14:59 , Paul Dupuis via use-livecode wrote: > > Actually, this issue is that some of our users keep multiple versions of our App installed. In most cases, when the user double clicks a document from our app, the MOST RECENTLY INSTALLED version launches, but in some cases, and older version launches. > > In those instances where an older version launches, the user swears that they have never used "Open With" or done anything (that they are aware of) to set the default app for our document extension to an older version. > > So really, I am just trying to understand how OSX figure out how to determine what app to open for a document. > > For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all had a info.plist defintion for a .xyz file extension onto a virgin OSX system out of the box and then double-clicked a .wyz file, which of the 5 would open? From jacque at hyperactivesw.com Tue Aug 6 18:20:34 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 6 Aug 2019 17:20:34 -0500 Subject: DragDrop for Datagrids In-Reply-To: <38B51FE1-0603-4F1D-B591-DA76BFC594FA@swcp.com> References: <7035E997-89C7-42DB-8A10-7417393722B3@iotecdigital.com> <38B51FE1-0603-4F1D-B591-DA76BFC594FA@swcp.com> Message-ID: <07b0c7da-6e2d-c951-3742-ae8c4b30a5be@hyperactivesw.com> Nonsense. Every woman knows it's always the man's fault. On 8/6/19 11:43 AM, Dar Scott Consulting via use-livecode wrote: > No, way! You can't pin this on me! I've been framed!! I didn't do it. > > Well, not in recent times. Somebody else deserves the applause. > >> On Aug 6, 2019, at 8:59 AM, Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> Since being enlightened by Dar (I think it was) about setting the dragAction to "copy", I have entered into a new world of possibilities! One of them is drag and drop for datagrids. I'm sure that for those well versed in both datagrids and dragDrop, this will seem elementary, but for those who are not: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mark at livecode.com Tue Aug 6 22:10:08 2019 From: mark at livecode.com (Mark Waddingham) Date: Wed, 07 Aug 2019 04:10:08 +0200 Subject: How does OSX tell what app to open when you double click a =?UTF-8?Q?file=3F?= In-Reply-To: <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> Message-ID: On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote: > For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all > had a info.plist defintion for a .xyz file extension onto a virgin OSX > system out of the box and then double-clicked a .wyz file, which of > the 5 would open? I *think* the answer to this question probably lies here: https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP30000999-CH202-TP9 The sections on 'Application Registration' and 'Preferred Applications' are probably the most pertinent - although it isn't entirely clear how the two mechanisms co-exist: registration suggests the 'most recent' modification time wise app is stored against a file kind, but preferred applications suggests that multiple apps are stored but the newest CFBundleVersion wise is chosen. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From dvglasgow at gmail.com Wed Aug 7 05:31:17 2019 From: dvglasgow at gmail.com (David V Glasgow) Date: Wed, 7 Aug 2019 10:31:17 +0100 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> Message-ID: No idea if this is any help at all, but I run two versions of Apple Pages (I have my reasons? ;-) I have the older version set as the default for all Pages documents, and make exceptions when I need to. Interestingly, MacOS 10.13.6 gets confused sometimes. Even if a document is set to open with the newer version, some launch the older version. Can?t always see why. They also always open with the older version, if that version is already open, irrespective of the setting in Get Info. Except if you use ?open with? 8.1, then the later version is launched and used. I have also noticed that some docs are set to open with the older version with the text in the get info 'open with' drop down menu saying Pages (Default) (4.3) Whereas others just say Pages (4.3) I can?t work out if there is a difference between the two, but the drop down menu also normally offers Pages (Default) (8.1) Which is only effective if 4.3 is not open So this looks like a dark art not even the Apple Developers have mastered. Although I guess they would argue that no one in their right minds runs more than one version of the same app. Cheers, David G > On 7 Aug 2019, at 3:10 am, Mark Waddingham via use-livecode wrote: > > On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote: >> For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all >> had a info.plist defintion for a .xyz file extension onto a virgin OSX >> system out of the box and then double-clicked a .wyz file, which of >> the 5 would open? > > I *think* the answer to this question probably lies here: > > https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP30000999-CH202-TP9 > > The sections on 'Application Registration' and 'Preferred Applications' are probably the most pertinent - although it isn't entirely clear how the two mechanisms co-exist: registration suggests the 'most recent' modification time wise app is stored against a file kind, but preferred applications suggests that multiple apps are stored but the newest CFBundleVersion wise is chosen. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Aug 7 06:06:13 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 7 Aug 2019 11:06:13 +0100 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> Message-ID: 2cents: I do almost the exact same thing with LC and have older versions. The same thing for adobe after effects. The really fun (phun) top weird thing that happens is using cmd-space and typing ?liv? or ?aft? and having pot luck which one appears at the top of the list and launches if I press the return key. That sort of thing can drive you mildly loopy sometimes. Especially when you carry on typing to make it ?live? or ?after? and the order swaps round! It twists your mind wondering what?s going on there. But the same is true of double click. You assume that either whichever you last used or the latest would load. But that is not always the case. There often ?seems? no rhyme or reason. Maybe Apple are just trying to train us to be more deliberate and decisive :-/ (in which case they are failing). Sean Cole Pi Digital Prod Ltd > On 7 Aug 2019, at 10:31, David V Glasgow via use-livecode wrote: > > No idea if this is any help at all, but I run two versions of Apple Pages (I have my reasons? ;-) > > I have the older version set as the default for all Pages documents, and make exceptions when I need to. Interestingly, MacOS 10.13.6 gets confused sometimes. Even if a document is set to open with the newer version, some launch the older version. Can?t always see why. > > They also always open with the older version, if that version is already open, irrespective of the setting in Get Info. Except if you use ?open with? 8.1, then the later version is launched and used. > > I have also noticed that some docs are set to open with the older version with the text in the get info 'open with' drop down menu saying > > Pages (Default) (4.3) > > Whereas others just say > > Pages (4.3) > > I can?t work out if there is a difference between the two, but the drop down menu also normally offers > > Pages (Default) (8.1) > > Which is only effective if 4.3 is not open > > So this looks like a dark art not even the Apple Developers have mastered. Although I guess they would argue that no one in their right minds runs more than one version of the same app. > > Cheers, > > David G > >> On 7 Aug 2019, at 3:10 am, Mark Waddingham via use-livecode wrote: >> >> On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote: >>> For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all >>> had a info.plist defintion for a .xyz file extension onto a virgin OSX >>> system out of the box and then double-clicked a .wyz file, which of >>> the 5 would open? >> >> I *think* the answer to this question probably lies here: >> >> https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP30000999-CH202-TP9 >> >> The sections on 'Application Registration' and 'Preferred Applications' are probably the most pertinent - although it isn't entirely clear how the two mechanisms co-exist: registration suggests the 'most recent' modification time wise app is stored against a file kind, but preferred applications suggests that multiple apps are stored but the newest CFBundleVersion wise is chosen. >> >> Warmest Regards, >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Everyone can create apps >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Wed Aug 7 14:55:44 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 7 Aug 2019 11:55:44 -0700 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> Message-ID: <01FD3B73-CD4C-440D-A6B5-3F11BC5B01F4@gmail.com> On Aug 7, 2019, at 2:31 AM, David V Glasgow via use-livecode wrote: > > No idea if this is any help at all, but I run two versions of Apple Pages (I have my reasons? ;-) > No wisecracks from me?I ran Word 4.0 and 5.1 on the same computer for years. It was the rare case where msft didn?t damage a file when opened with an older version. I didn?t always need the new features, and 4 was *far* leaner . . . Also, to say something on topic . . . note that OSX is kind of ham-handed on file types. As near as I can tell, you can?t change the default application manually without applying to all files of that type at the same time. ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From dochawk at gmail.com Wed Aug 7 15:10:24 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 7 Aug 2019 12:10:24 -0700 Subject: replacing only exact matches in script Message-ID: I?m finally writing my new version of dependency calculation for database variables, with a supposedly clever easy format fo entry and machine calculated script. I need to replace only exact true words, though. So I need to be able to take an input string such as 5*pay - 2*monthlypay and be able to replace ?pay" with getVal(pay,,,debtor) without replacing monthlypay. I can?t with any certainty control the order that variables will appear in my ?raw? formulae (too many ways to blow up!). I?ve considered requiring a space before and after, but, again, two many ways to blow up. I could manually parse the line, looking for starts and stops, but it?s both ugly and asking for obscure bugs. I could make a list of all the truewords, and cycle through, moving any one that is a substring of any other to the end, and repeatedly looping until the list is empty. Ugly, but the least insane of the options I?ve come up with. I can handle a performance penalty, as this routine would run only in the development version, with the resultant array saved as a stack property in any shipped version. But I?d still like it to be as fast as I can and avoid thumb-twiddling . . . ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From bobsneidar at iotecdigital.com Wed Aug 7 16:05:57 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 7 Aug 2019 20:05:57 +0000 Subject: replacing only exact matches in script In-Reply-To: References: Message-ID: Again, this is probably better handled with database queries. But looking at your example, wouldn't it be simpler to replace "*" with space & "*" & space, and likewise with everything not a-z A-Z including cr, lf, etc? Now you have a guarantee that wholematches will work with words. Bob S > On Aug 7, 2019, at 12:10 , Dr. Hawkins via use-livecode wrote: > > I?m finally writing my new version of dependency calculation for database variables, with a supposedly clever easy format fo entry and machine calculated script. > > I need to replace only exact true words, though. So I need to be able to take an input string such as > > 5*pay - 2*monthlypay > > and be able to replace ?pay" with > > getVal(pay,,,debtor) > > without replacing monthlypay. > > I can?t with any certainty control the order that variables will appear in my ?raw? formulae (too many ways to blow up!). > > I?ve considered requiring a space before and after, but, again, two many ways to blow up. > > I could manually parse the line, looking for starts and stops, but it?s both ugly and asking for obscure bugs. > > I could make a list of all the truewords, and cycle through, moving any one that is a substring of any other to the end, and repeatedly looping until the list is empty. Ugly, but the least insane of the options I?ve come up with. > > I can handle a performance penalty, as this routine would run only in the development version, with the resultant array saved as a stack property in any shipped version. But I?d still like it to be as fast as I can and avoid thumb-twiddling . . . > ? > Richard E. Hawkins, Esq. > The Hawkins Law Firm > 3430 E. Flamingo Rd. > Suite 232 > Las Vegas, NV 89121 > (702) 508-8462 From dochawk at gmail.com Wed Aug 7 17:16:28 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 7 Aug 2019 14:16:28 -0700 Subject: replacing only exact matches in script In-Reply-To: References: Message-ID: On Aug 7, 2019, at 1:05 PM, Bob Sneidar via use-livecode wrote: > > Again, this is probably better handled with database queries. The catch is that I?m doing this to *build* those queries (or, actually, to invoke a combination)! the combination I mentioned would cause another value to be calculated with that formula if either pay or monthly pay changed. That is, in the routine to update monthlypay (or pay), another handler would update this dependency Currently I have a big ugly switch for each variable holding database commands (or usually functions calling them) to update dependent variables. The main table for a given debtor (client) has a few hundred lines and a half dozen columns (for string or pennies, default values for each, and a couple more). The other table has anywhere from a couple to a couple of hundred entries with several dozen columns. Combining debtors in a single table would be undesirable for a variety of reasons. > But looking at your example, wouldn't it be simpler to replace "*" with space & "*" & space, and likewise with everything not a-z A-Z including cr, lf, etc? Now you have a guarantee that wholematches will work with words. Doing that procedurally brings me back to the same column, while manually entering like that is just asking for trouble?there are *so* may entries that I?m going to leave out a space, and *BAM*. A shortened version of what I have is to create theTrWds repeat for each trueword theVar in varForm switch case theVar is among the keys of theTrWds case theVar is a number case char 1 of theVar is not an alphanumeric character ?but I need a valid test for this next repeat break case theVar is among the keys of dinfoDtyps put theVar & space after theTrWds break end switch end repeat repeat while word 1 of theTrWds is not empty put word 1 of theTrWds into theVar delete word 1 of theTrWds switch case theTrWds contains theVar --it's a substring of another; skip for now put theVar & space after theTrWds next repeat break default put replaceText(varForm,theVar,"getVal(theVar,,,dbtr)") into varForm break end switch end repeat ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From dochawk at gmail.com Wed Aug 7 17:18:12 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 7 Aug 2019 14:18:12 -0700 Subject: DragDrop for Datagrids In-Reply-To: <07b0c7da-6e2d-c951-3742-ae8c4b30a5be@hyperactivesw.com> References: <7035E997-89C7-42DB-8A10-7417393722B3@iotecdigital.com> <38B51FE1-0603-4F1D-B591-DA76BFC594FA@swcp.com> <07b0c7da-6e2d-c951-3742-ae8c4b30a5be@hyperactivesw.com> Message-ID: On Aug 6, 2019, at 3:20 PM, J. Landman Gay via use-livecode wrote: > > Nonsense. Every woman knows it's always the man's fault. We don?t have to take this abuse from you?we have our own wives waiting to abuse us! :) ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From hh at hyperhh.de Wed Aug 7 17:32:31 2019 From: hh at hyperhh.de (hh) Date: Wed, 7 Aug 2019 23:32:31 +0200 Subject: replacing only exact matches in script Message-ID: > Richard H. wrote: > I need to replace only exact true words, though. > So I need to be able to take an input string such as > 5*pay - 2*monthlypay > and be able to replace ?pay" with > getVal(pay,,,debtor) > without replacing monthlypay. You could try the following (works for me). Put a three-char string that's not in inString into X, e.g. put "yap" into X repeat for each line L in inString repeat while \ matchChunk(L,"(?i)(^|\W)(pay)($|\W)",p1,p2,p3,p4,p5,p6) put X into char p3 to p4 of L -- replaces pay end repeat put cr & L after outString end repeat replace X with "getVal(pay,,,debtor)" in outString This finds case-insensitive exactly the trueWord "pay". From alex at tweedly.net Wed Aug 7 21:12:13 2019 From: alex at tweedly.net (Alex Tweedly) Date: Thu, 8 Aug 2019 02:12:13 +0100 Subject: replacing only exact matches in script In-Reply-To: References: Message-ID: <4f670f6a-b988-a32b-9736-4e2afada9cf2@tweedly.net> On 07/08/2019 20:10, Dr. Hawkins via use-livecode wrote: > > I?m finally writing my new version of dependency calculation for database variables, with a supposedly clever easy format fo entry and machine calculated script. > > I need to replace only exact true words, though. So I need to be able to take an input string such as > > ... > I could make a list of all the truewords, and cycle through, moving any one that is a substring of any other to the end, and repeatedly looping until the list is empty. Ugly, but the least insane of the options I?ve come up with. > I know I haven't understood exactly what you want - so treat this carefully ... It's not difficult to "move any one that is a substring of any other" - don't start searching for substrings or you get into an N**2 problem (or worse). Just sort the strings 'descending by the number of chars in each'. Alex. From jacque at hyperactivesw.com Thu Aug 8 03:06:24 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 8 Aug 2019 02:06:24 -0500 Subject: DragDrop for Datagrids In-Reply-To: References: <7035E997-89C7-42DB-8A10-7417393722B3@iotecdigital.com> <38B51FE1-0603-4F1D-B591-DA76BFC594FA@swcp.com> <07b0c7da-6e2d-c951-3742-ae8c4b30a5be@hyperactivesw.com> Message-ID: On 8/7/19 4:18 PM, Dr. Hawkins via use-livecode wrote: > > On Aug 6, 2019, at 3:20 PM, J. Landman Gay via use-livecode wrote: >> >> Nonsense. Every woman knows it's always the man's fault. > > > We don?t have to take this abuse from you?we have our own wives waiting to abuse us! > > :) Just practicing. It keeps me in shape. ;) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Thu Aug 8 03:10:07 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 8 Aug 2019 02:10:07 -0500 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: <01FD3B73-CD4C-440D-A6B5-3F11BC5B01F4@gmail.com> References: <02A61158-E5C0-464A-A2B3-174C5A18F450@iotecdigital.com> <866a4a7c-ade9-c6c3-2c0d-38889ea27d91@researchware.com> <01FD3B73-CD4C-440D-A6B5-3F11BC5B01F4@gmail.com> Message-ID: <291041e3-4dfa-66f5-3c93-3598f5d6ad1a@hyperactivesw.com> On 8/7/19 1:55 PM, Dr. Hawkins via use-livecode wrote: > Also, to say something on topic . . . note that OSX is kind of ham-handed on file types. As near as I can tell, you can?t change the default application manually without applying to all files of that type at the same time. The Finder is a little misleading. The drop-down menu changes the default app for the selected item. Under the drop-down is a label that says "Use this application to open all documents like this one." But that applies to the button underneath that says "Change all..." -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From paul at researchware.com Thu Aug 8 07:06:43 2019 From: paul at researchware.com (Paul Dupuis) Date: Thu, 8 Aug 2019 07:06:43 -0400 Subject: Fwd: Re: How does OSX tell what app to open when you double click a file? In-Reply-To: <9ec20987-f89b-5ef5-b51f-1db6aa75b3d7@researchware.com> References: <9ec20987-f89b-5ef5-b51f-1db6aa75b3d7@researchware.com> Message-ID: <072d28ca-d6a0-f5cc-b8ac-1c9d5cf768a3@researchware.com> Thank you, This article could allow me to have our OSX app check to see if it is the default on startup and change it IF the command line tool "duti" used the example was already part of OSX but is an open source that would need to also be installed with out app - an additional level of overhead I'd rather avoid. However, again thanks as this points me in a possible direction of ignoring HOW OSX figure it out by default and trying to just tell OSX which app should rule. On 8/6/2019 4:57 PM, Bob Sneidar via use-livecode wrote: > I found this. Didn't read too deep tho'. > > https://www.chainsawonatireswing.com/2012/09/19/changing-default-applications-on-a-mac-using-the-command-line-then-a-shell-script/#find-out-the-current-default-for-an-extension > > Bob S > > >> On Aug 6, 2019, at 13:36 , Paul Dupuis via use-livecode >> wrote: >> >> So we make an OSX desktop app in LiveCode that has several document >> types. We add these to the info.plist file in the App bundle so they >> are defined, with doc icons, extensions, types, etc. >> >> If a user has APPv1 installed that has a plist entry for the file >> extension .myext and then installs APPv2 that also has a plist entry >> for file extension .myext. how does OSX tell what APP to open when a >> user double clicks on document.myext? >> >> >> I googled and found information on setting default app for document >> types, but not how OSX handles this by default? >> >> In window, it is the App's responsibility to check the Registry for >> its document types and, it it wants to, ask the user if they want >> those document associated with it. Or it is done by the app's >> installer on Windows >> >> I just can't find how OSX does it. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 8 07:34:28 2019 From: paul at researchware.com (Paul Dupuis) Date: Thu, 8 Aug 2019 07:34:28 -0400 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: References: Message-ID: On 8/6/2019 10:10 PM, Mark Waddingham via use-livecode wrote: > On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote: >> For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all >> had a info.plist defintion for a .xyz file extension onto a virgin OSX >> system out of the box and then double-clicked a .wyz file, which of >> the 5 would open? > > I *think* the answer to this question probably lies here: > > https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP30000999-CH202-TP9 > > > The sections on 'Application Registration' and 'Preferred > Applications' are probably the most pertinent - although it isn't > entirely clear how the two mechanisms co-exist: registration suggests > the 'most recent' modification time wise app is stored against a file > kind, but preferred applications suggests that multiple apps are > stored but the newest CFBundleVersion wise is chosen. > > Warmest Regards, > > Mark. > Thank you again! This section of that web page was exactly what I was looking for: Preferred Application for a Document For individual document files (whether specified by a file-system reference or a URL with scheme |file|), the criteria are as follows: 1. If the user has specified an explicit binding for the document (or for the entire document type to which it belongs), the preferred application is the one the user has specified. 2. If the document has a filename extension (or if one has been specified as a parameter to |LSGetApplicationForInfo|), find all applications in the Launch Services database that claim to accept documents with that extension. 3. If the document carries a four-character file type (or if one has been specified as a parameter), find all applications that claim to accept files of that type. 4. If more than one application has been found as a result of steps 2?3, apply the following criteria in the order shown: 1. If the document carries a four-character creator signature (or if one has been specified as a parameter), give preference to any application that claims to accept documents with that signature (typically the application to which the signature belongs). 2. Give preference to native OS X applications over those that run in the Classic emulation environment. 3. Give preference to applications residing on the boot volume over those residing on other file-system volumes. 4. Give preference to applications residing on a local volume over those residing on a remote volume. 5. If two or more versions of the same application have been found, give preference to the one with the latest version number as identified by |CFBundleVersion |. If two or more candidate applications remain after all of the foregoing criteria have been applied, Launch Services chooses one of the remaining applications in an unspecified manner. From dvglasgow at gmail.com Thu Aug 8 07:43:48 2019 From: dvglasgow at gmail.com (David V Glasgow) Date: Thu, 8 Aug 2019 12:43:48 +0100 Subject: How does OSX tell what app to open when you double click a file? In-Reply-To: References: Message-ID: Hah! The devil is in the last line. (not to mention that the criteria don?t seem to match what actually happens) > On 8 Aug 2019, at 12:34 pm, Paul Dupuis via use-livecode wrote: > > On 8/6/2019 10:10 PM, Mark Waddingham via use-livecode wrote: >> On 2019-08-06 23:59, Paul Dupuis via use-livecode wrote: >>> For example, if you drag installed 5 apps, APP1, 2, 3, etc, that all >>> had a info.plist defintion for a .xyz file extension onto a virgin OSX >>> system out of the box and then double-clicked a .wyz file, which of >>> the 5 would open? >> >> I *think* the answer to this question probably lies here: >> >> https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP30000999-CH202-TP9 >> >> The sections on 'Application Registration' and 'Preferred Applications' are probably the most pertinent - although it isn't entirely clear how the two mechanisms co-exist: registration suggests the 'most recent' modification time wise app is stored against a file kind, but preferred applications suggests that multiple apps are stored but the newest CFBundleVersion wise is chosen. >> >> Warmest Regards, >> >> Mark. >> > > Thank you again! > > This section of that web page was exactly what I was looking for: > > > Preferred Application for a Document > > For individual document files (whether specified by a file-system reference or a URL with scheme |file|), the criteria are as follows: > > 1. > > If the user has specified an explicit binding for the document (or > for the entire document type to which it belongs), the preferred > application is the one the user has specified. > > 2. > > If the document has a filename extension (or if one has been > specified as a parameter to |LSGetApplicationForInfo|), find all > applications in the Launch Services database that claim to accept > documents with that extension. > > 3. > > If the document carries a four-character file type (or if one has > been specified as a parameter), find all applications that claim to > accept files of that type. > > 4. > > If more than one application has been found as a result of steps > 2?3, apply the following criteria in the order shown: > > 1. > > If the document carries a four-character creator signature (or > if one has been specified as a parameter), give preference to > any application that claims to accept documents with that > signature (typically the application to which the signature > belongs). > > 2. > > Give preference to native OS X applications over those that run > in the Classic emulation environment. > > 3. > > Give preference to applications residing on the boot volume over > those residing on other file-system volumes. > > 4. > > Give preference to applications residing on a local volume over > those residing on a remote volume. > > 5. > > If two or more versions of the same application have been found, > give preference to the one with the latest version number as > identified by |CFBundleVersion > |. > > If two or more candidate applications remain after all of the foregoing criteria have been applied, Launch Services chooses one of the remaining applications in an unspecified manner. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 8 09:51:36 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Aug 2019 15:51:36 +0200 Subject: Any recommendation which GitHub client to use for Livecode contributions? Message-ID: <2B2DEEE5-E05B-4DD0-84D8-29EA8054023D@m-r-d.de> Hi, there are currently 25 GitHub Gui Clients for Mac OS listed at https://git-scm.com/download/gui/mac Are there any recommendations which one should be used for Mac for LC contributions? Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From brian at milby7.com Thu Aug 8 09:57:15 2019 From: brian at milby7.com (Brian Milby) Date: Thu, 8 Aug 2019 09:57:15 -0400 Subject: Any recommendation which GitHub client to use for Livecode contributions? In-Reply-To: <2B2DEEE5-E05B-4DD0-84D8-29EA8054023D@m-r-d.de> References: <2B2DEEE5-E05B-4DD0-84D8-29EA8054023D@m-r-d.de> Message-ID: <73f2b520-d44c-41e2-b00f-69411a1d30c9@Spark> I use SourceTree. ?It also has a Windows version. www.sourcetreeapp.com Thanks, Brian On Aug 8, 2019, 9:52 AM -0400, Matthias Rebbe via use-livecode , wrote: > Hi, > > there are currently 25 GitHub Gui Clients for Mac OS listed at https://git-scm.com/download/gui/mac > > Are there any recommendations which one should be used for Mac for LC contributions? > > > Regards, > > Matthias > > > > > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Thu Aug 8 10:56:05 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 8 Aug 2019 08:56:05 -0600 Subject: Any recommendation which GitHub client to use for Livecode contributions? In-Reply-To: <73f2b520-d44c-41e2-b00f-69411a1d30c9@Spark> References: <2B2DEEE5-E05B-4DD0-84D8-29EA8054023D@m-r-d.de> <73f2b520-d44c-41e2-b00f-69411a1d30c9@Spark> Message-ID: <8CD30DE7-971F-42FF-9EA8-CFC4AD96C96C@swcp.com> I have not used it yet, but I have been considering Sourcetree because I work best with visualization and clear workflow opportunities. > On Aug 8, 2019, at 7:57 AM, Brian Milby via use-livecode wrote: > > I use SourceTree. It also has a Windows version. > www.sourcetreeapp.com > > > Thanks, > Brian > On Aug 8, 2019, 9:52 AM -0400, Matthias Rebbe via use-livecode , wrote: >> Hi, >> >> there are currently 25 GitHub Gui Clients for Mac OS listed at https://git-scm.com/download/gui/mac >> >> Are there any recommendations which one should be used for Mac for LC contributions? >> >> >> Regards, >> >> Matthias >> >> >> >> >> >> Matthias Rebbe >> >> free tools for Livecoders: >> InstaMaker >> WinSignMaker Mac >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mkoob at rogers.com Thu Aug 8 11:47:47 2019 From: mkoob at rogers.com (Martin Koob) Date: Thu, 8 Aug 2019 11:47:47 -0400 Subject: Any recommendation which GitHub client to use for Livecode contributions? In-Reply-To: <8CD30DE7-971F-42FF-9EA8-CFC4AD96C96C@swcp.com> References: <2B2DEEE5-E05B-4DD0-84D8-29EA8054023D@m-r-d.de> <73f2b520-d44c-41e2-b00f-69411a1d30c9@Spark> <8CD30DE7-971F-42FF-9EA8-CFC4AD96C96C@swcp.com> Message-ID: <26C5E689-303B-41DD-BF24-314A09B0619E@rogers.com> I have been using Sourcetree on a Mac. When I started with it I was totally new to git and it got me thru as I learned. Martin Sent from my iPhone > On Aug 8, 2019, at 10:56 AM, Dar Scott Consulting via use-livecode wrote: > > I have not used it yet, but I have been considering Sourcetree because I work best with visualization and clear workflow opportunities. > >> On Aug 8, 2019, at 7:57 AM, Brian Milby via use-livecode wrote: >> >> I use SourceTree. It also has a Windows version. >> www.sourcetreeapp.com >> >> >> Thanks, >> Brian >>> On Aug 8, 2019, 9:52 AM -0400, Matthias Rebbe via use-livecode , wrote: >>> Hi, >>> >>> there are currently 25 GitHub Gui Clients for Mac OS listed at https://git-scm.com/download/gui/mac >>> >>> Are there any recommendations which one should be used for Mac for LC contributions? >>> >>> >>> Regards, >>> >>> Matthias >>> >>> >>> >>> >>> >>> Matthias Rebbe >>> >>> free tools for Livecoders: >>> InstaMaker >>> WinSignMaker Mac >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 8 13:14:28 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Aug 2019 17:14:28 +0000 Subject: Ask Password Icon Issue Message-ID: <7D278B0E-1CCC-46BA-872A-BE6F8AFAD99C@iotecdigital.com> Hi all. In a Mac OS standalone I have a login stack. When I issue the command ask password clear "Enter password" as sheet, the Icon is MY Sly Laboratories custom logo, only all filled in black! I'm not sure why. Nothing in my code does anything of the sort. In fact I have no idea HOW to do that! (Although if I DID have some idea, I would probably make use of it.) Any ideas?? Bob S From bobsneidar at iotecdigital.com Thu Aug 8 13:23:28 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Aug 2019 17:23:28 +0000 Subject: Ask Password Icon Issue In-Reply-To: <7D278B0E-1CCC-46BA-872A-BE6F8AFAD99C@iotecdigital.com> References: <7D278B0E-1CCC-46BA-872A-BE6F8AFAD99C@iotecdigital.com> Message-ID: Okay I figured out where this is coming from. Normally in the IDE the Ask Password dialog uses the Livecode Logo (actually the Blue Indy Icon) for the dialog. But since I am launching it as a standalone, it's using the images specified in the Standalone Settings. Now I have to figure out why it's black. There were some posts a while back about this, but I forgot what the solution was. I'll poke around a bit. Bob S > On Aug 8, 2019, at 10:14 , Bob Sneidar via use-livecode wrote: > > Hi all. > > In a Mac OS standalone I have a login stack. When I issue the command ask password clear "Enter password" as sheet, the Icon is MY Sly Laboratories custom logo, only all filled in black! I'm not sure why. Nothing in my code does anything of the sort. In fact I have no idea HOW to do that! (Although if I DID have some idea, I would probably make use of it.) > > Any ideas?? > > Bob S From matthias_livecode_150811 at m-r-d.de Thu Aug 8 13:49:43 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Aug 2019 19:49:43 +0200 Subject: Ask Password Icon Issue In-Reply-To: References: <7D278B0E-1CCC-46BA-872A-BE6F8AFAD99C@iotecdigital.com> Message-ID: <76F0044D-BE7F-4A15-8DE6-824C18DEA622@m-r-d.de> This was discussed in June with Topic "Black boxes replace images in Mojave (Was "No subject")" This is an excerpt of Mark Waddingham?s comment: >This is a strange issue as it sounds like it is sporadic... >The only OS specific code the engine uses when decompressing images is when the image has an embedded colour >profile. >So I guess the question is whether the images which are ?breaking? have such a thing in them. I think preview?s >info pane can tell you that. >Thus a potential solution is to strip the profiles out (if they are there) and see if the problem persists... In my case this was the cause. I?ve dragged the source image to /library/scripts/colorsync/Remove.app to remove the color profile and imported it again into LC and added it to the stack. After that all was fine. Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 08.08.2019 um 19:23 schrieb Bob Sneidar via use-livecode >: > > Okay I figured out where this is coming from. Normally in the IDE the Ask Password dialog uses the Livecode Logo (actually the Blue Indy Icon) for the dialog. But since I am launching it as a standalone, it's using the images specified in the Standalone Settings. > > Now I have to figure out why it's black. There were some posts a while back about this, but I forgot what the solution was. I'll poke around a bit. > > Bob S > > >> On Aug 8, 2019, at 10:14 , Bob Sneidar via use-livecode > wrote: >> >> Hi all. >> >> In a Mac OS standalone I have a login stack. When I issue the command ask password clear "Enter password" as sheet, the Icon is MY Sly Laboratories custom logo, only all filled in black! I'm not sure why. Nothing in my code does anything of the sort. In fact I have no idea HOW to do that! (Although if I DID have some idea, I would probably make use of it.) >> >> Any ideas?? >> >> 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 matthias_livecode_150811 at m-r-d.de Thu Aug 8 13:50:49 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Thu, 8 Aug 2019 19:50:49 +0200 Subject: Any recommendation which GitHub client to use for Livecode contributions? In-Reply-To: <26C5E689-303B-41DD-BF24-314A09B0619E@rogers.com> References: <2B2DEEE5-E05B-4DD0-84D8-29EA8054023D@m-r-d.de> <73f2b520-d44c-41e2-b00f-69411a1d30c9@Spark> <8CD30DE7-971F-42FF-9EA8-CFC4AD96C96C@swcp.com> <26C5E689-303B-41DD-BF24-314A09B0619E@rogers.com> Message-ID: Okay, 3 in a row for Sourcetree, so i think i will use it, too. Thanks to all for your answers. Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 08.08.2019 um 17:47 schrieb Martin Koob via use-livecode >: > > I have been using Sourcetree on a Mac. When I started with it I was totally new to git and it got me thru as I learned. > > Martin > > Sent from my iPhone > >> On Aug 8, 2019, at 10:56 AM, Dar Scott Consulting via use-livecode > wrote: >> >> I have not used it yet, but I have been considering Sourcetree because I work best with visualization and clear workflow opportunities. >> >>> On Aug 8, 2019, at 7:57 AM, Brian Milby via use-livecode > wrote: >>> >>> I use SourceTree. It also has a Windows version. >>> www.sourcetreeapp.com >>> >>> >>> Thanks, >>> Brian >>>> On Aug 8, 2019, 9:52 AM -0400, Matthias Rebbe via use-livecode >, wrote: >>>> Hi, >>>> >>>> there are currently 25 GitHub Gui Clients for Mac OS listed at https://git-scm.com/download/gui/mac > >>>> >>>> Are there any recommendations which one should be used for Mac for LC contributions? >>>> >>>> >>>> Regards, >>>> >>>> Matthias >>>> >>>> >>>> >>>> >>>> >>>> Matthias Rebbe >>>> >>>> free tools for Livecoders: >>>> InstaMaker > >>>> WinSignMaker Mac > >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From ahsoftware at sonic.net Thu Aug 8 16:29:38 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 8 Aug 2019 13:29:38 -0700 Subject: Any recommendation which GitHub client to use for Livecode contributions? In-Reply-To: References: <2B2DEEE5-E05B-4DD0-84D8-29EA8054023D@m-r-d.de> <73f2b520-d44c-41e2-b00f-69411a1d30c9@Spark> <8CD30DE7-971F-42FF-9EA8-CFC4AD96C96C@swcp.com> <26C5E689-303B-41DD-BF24-314A09B0619E@rogers.com> Message-ID: On 8/8/19 10:50 AM, Matthias Rebbe via use-livecode wrote: > Okay, 3 in a row for Sourcetree, so i think i will use it, too. I'm a commandline kinda guy, so the gui things don't interest me much. But I've looked at sourcetree before and it looked good. I've also been impressed by the demos I've gotten of gitkraken, so I should probably put in a good word for them as well. https://www.gitkraken.com/ -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Thu Aug 8 16:40:41 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 8 Aug 2019 20:40:41 +0000 Subject: Ask Password Icon Issue In-Reply-To: References: <7D278B0E-1CCC-46BA-872A-BE6F8AFAD99C@iotecdigital.com> Message-ID: <0E4003EB-6F6D-4555-AEDD-E295BC941C34@iotecdigital.com> That was it! Thanks Matthias! Bob S > On Aug 8, 2019, at 10:23 , Bob Sneidar via use-livecode wrote: > > Okay I figured out where this is coming from. Normally in the IDE the Ask Password dialog uses the Livecode Logo (actually the Blue Indy Icon) for the dialog. But since I am launching it as a standalone, it's using the images specified in the Standalone Settings. > > Now I have to figure out why it's black. There were some posts a while back about this, but I forgot what the solution was. I'll poke around a bit. > > Bob S > > >> On Aug 8, 2019, at 10:14 , Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> In a Mac OS standalone I have a login stack. When I issue the command ask password clear "Enter password" as sheet, the Icon is MY Sly Laboratories custom logo, only all filled in black! I'm not sure why. Nothing in my code does anything of the sort. In fact I have no idea HOW to do that! (Although if I DID have some idea, I would probably make use of it.) >> >> Any ideas?? >> >> 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 dochawk at gmail.com Thu Aug 8 17:18:24 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 8 Aug 2019 14:18:24 -0700 Subject: Should the scope of WholeMatches be expanded? In-Reply-To: <8b4b445f-0f52-9cc1-bc1b-b8406a8f7659@researchware.com> References: <8b4b445f-0f52-9cc1-bc1b-b8406a8f7659@researchware.com> Message-ID: <340DB874-143D-4BC1-810B-2BC00476E22E@gmail.com> On Aug 5, 2019, at 7:43 AM, Paul Dupuis via use-livecode wrote: > > I'd like to see wholeMatches apply to: Gee, that would do just what I need in searches . . . and the check is already there, and applies in the IDE search/replace feature . . . hmmm . . . set the whole matches to true repeat while wordOffset(searchText, theSearchStrng) > 0 put replacmentText into word wordOffset(searchText, theSearchStrng) of theSearchString end repeat ??? ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From paul at researchware.com Thu Aug 8 18:47:28 2019 From: paul at researchware.com (Paul Dupuis) Date: Thu, 8 Aug 2019 18:47:28 -0400 Subject: Should the scope of WholeMatches be expanded? In-Reply-To: <340DB874-143D-4BC1-810B-2BC00476E22E@gmail.com> References: <8b4b445f-0f52-9cc1-bc1b-b8406a8f7659@researchware.com> <340DB874-143D-4BC1-810B-2BC00476E22E@gmail.com> Message-ID: On 8/8/2019 5:18 PM, Dr. Hawkins via use-livecode wrote: > On Aug 5, 2019, at 7:43 AM, Paul Dupuis via use-livecode wrote: >> I'd like to see wholeMatches apply to: > > > Gee, that would do just what I need in searches . . . and the check is already there, and applies in the IDE search/replace feature . . . > > hmmm . . . > > set the whole matches to true > repeat while wordOffset(searchText, theSearchStrng) > 0 > put replacmentText into word wordOffset(searchText, theSearchStrng) of theSearchString > end repeat > > Except in the replacement searching I'd like to do, I am searching and replacing phrases bounded by white space (tab, space, non-breaking space, line break, etc.) so wordOffset will not work for me. From alanstenhouse at hotmail.com Fri Aug 9 03:42:29 2019 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Fri, 9 Aug 2019 07:42:29 +0000 Subject: load app to ios device for testing?? Message-ID: Just wondering how we can download an ios build to our own local device for testing these days? It used to be easy with iTunes to just attach your phone and download the app to the connected device inside iTunes, but that no longer seems possible (though possibly I'm missing something?). I also miss the easy "Test" connection between LC and a connected device. Or have I perhaps got something mis-configured after updating to Mojave? LC 9.5.0 MacOS 10.14.5 XCode 10.1 et al Any hints welcome! cheers Alan From scott at elementarysoftware.com Fri Aug 9 04:07:31 2019 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 9 Aug 2019 01:07:31 -0700 Subject: load app to ios device for testing?? In-Reply-To: References: Message-ID: Hello Alan, I?m running LC 9.5.0 business, Mac OS 10.14.6 & Xcode 10.1 I am seeing both android and iOS actual devices (as well as the iOS and android simulator, which is an awesome addition) Did you select the correct platform in ?Standalone Application Settings?? Is "Mobile Support? configured correctly in LC Preferences? ? Scott Morrow > On Aug 9, 2019, at 12:42 AM, Alan Stenhouse via use-livecode wrote: > > Just wondering how we can download an ios build to our own local device for testing these days? > > It used to be easy with iTunes to just attach your phone and download the app to the connected device inside iTunes, but that no longer seems possible (though possibly I'm missing something?). > > I also miss the easy "Test" connection between LC and a connected device. > > Or have I perhaps got something mis-configured after updating to Mojave? > > LC 9.5.0 > MacOS 10.14.5 > XCode 10.1 et al > > Any hints welcome! > > cheers > > Alan > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 9 09:22:09 2019 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Aug 2019 15:22:09 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER Message-ID: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> Hi friends, I am currently making an existing app "64Bit safe" for a customer with LC 9.5 on macOS 10.14.6. In this app there are some "compiled shell scripts" (? I guess, have no infor about this) which changes the keyboard layout (chinese and back) to german depending of the target fields in LC. Structure (three files and two folders): ## File extSetInputMethod ## Folders x86-64/extSetInputMethod x86-32/extSetInputMethod I guess the first one checks the current architecture and then calls the correct version for this. Whatever, this works fine in the customers older apps. So I added all this via the "Copy files" tab in the "Standalone Application Settings" However these files were NOT in specialfolderpath("resources") in the runtime? In the runtime I find this: the_actual_app.app -> /Resources -> /Resources/Externals ## empty, no externals used in app -> /Resources/x86-64 ## EMPTY!? -> /Resources/x86-32 ## EMPTY!? File -> extSetInputMethod = missing and the two latter folders are EMPTY!? Where on earth are the contents of the other folders? But I find this in: the_actual_app -> /MacOS -> /MacOS/extInputMethod ## the missing file! see above -> /MacOS/x86-64/extInputMethod ## the missing file -> /MacOS/x86-32/extInputMethod ## the missing file ... So calling the shell apps in -> specialfolderpath("resources") does of course not work!? If I copy them manually to the correct folder in the runtime, they stop working. So all in all this is a real showstopper! :-/ Am I overlooking something? Is this correct behaviour of LC? What can I do? Thanks for any hints! Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From dunbarx at aol.com Fri Aug 9 10:11:55 2019 From: dunbarx at aol.com (dunbarxx) Date: Fri, 9 Aug 2019 09:11:55 -0500 (CDT) Subject: Should the scope of WholeMatches be expanded? In-Reply-To: References: <8b4b445f-0f52-9cc1-bc1b-b8406a8f7659@researchware.com> <340DB874-143D-4BC1-810B-2BC00476E22E@gmail.com> Message-ID: <1565359915752-0.post@n4.nabble.com> Hi. Not sure, because I have never used one, but would a "trueWordOffset" help? Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From hh at hyperhh.de Fri Aug 9 10:59:47 2019 From: hh at hyperhh.de (hh) Date: Fri, 9 Aug 2019 16:59:47 +0200 Subject: Should the scope of WholeMatches be expanded? Message-ID: <2845AB49-C471-4E0E-BAB8-1A390B8EF5AC@hyperhh.de> There is already truewordOffset available but you have to check whether the search string is the next trueword. So matchChunk is faster. From jjs at krutt.org Fri Aug 9 11:09:35 2019 From: jjs at krutt.org (JJS) Date: Fri, 9 Aug 2019 17:09:35 +0200 Subject: not building standalone due to password protected stack LC950Indy Message-ID: <5a3979df-5c22-50f1-18d2-2b222c3a024a@krutt.org> Hi, i've not seen this before: Could not auto-detect inclusions or security categories because stack is password protected It seems like setting the password for stacks in the standalone setting is not working. If i set it and save the stack, then open the stack in notepad++ i can read all. When i use: Set the Password of stack"encryptme" to "thisisapassword" and do the same thing in notepad++ it is all jibberish as expected. But then i load it again in LC950Indy, and i get above mentioned error. Same error when i open a script and enter the password, even then it's not able to build. In previous LC versions this was working correct. Anyone seen this? Is there a quick fix? Thanks! Sphere From sean at pidigital.co.uk Fri Aug 9 11:29:57 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Fri, 9 Aug 2019 16:29:57 +0100 Subject: not building standalone due to password protected stack LC950Indy In-Reply-To: <5a3979df-5c22-50f1-18d2-2b222c3a024a@krutt.org> References: <5a3979df-5c22-50f1-18d2-2b222c3a024a@krutt.org> Message-ID: Hi I?ve only noticed this when building for HTML5. For everything else the stacks get directly included and don?t care that they are password protected. For html they have to get re-coded through emscripten which is where I believe the issue arises. Which platform/s are you trying to deploy for and what machine type are you using to build the standalone? Sean Cole Pi > On 9 Aug 2019, at 16:09, JJS via use-livecode wrote: > > Hi, > > > i've not seen this before: > > Could not auto-detect inclusions or security categories because stack is password protected > > > It seems like setting the password for stacks in the standalone setting is not working. If i set it and save the stack, then open the stack in notepad++ i can read all. > > When i use: Set the Password of stack"encryptme" to "thisisapassword" and do the same thing in notepad++ it is all jibberish as expected. > > But then i load it again in LC950Indy, and i get above mentioned error. > > Same error when i open a script and enter the password, even then it's not able to build. > > > In previous LC versions this was working correct. > > Anyone seen this? > > Is there a quick fix? > > > Thanks! > > > Sphere > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Fri Aug 9 12:47:53 2019 From: jjs at krutt.org (JJS) Date: Fri, 9 Aug 2019 18:47:53 +0200 Subject: not building standalone due to password protected stack LC950Indy In-Reply-To: References: <5a3979df-5c22-50f1-18d2-2b222c3a024a@krutt.org> Message-ID: <8f8614bc-73d5-ec38-3e30-d1944075e792@krutt.org> Hi, this build was for windows 32 and 64 bit, and building on win10-64bits. i can not recall this issue with a lc950dp or rc version when building an encrypted stack for Android. Perhaps the difference is that for that i selected inclusions mannually i'm now thinking. I will check if that is the difference here. Thanks, Sphere Op 9-8-2019 om 17:29 schreef Pi Digital via use-livecode: > Hi > > I?ve only noticed this when building for HTML5. For everything else the stacks get directly included and don?t care that they are password protected. For html they have to get re-coded through emscripten which is where I believe the issue arises. > > Which platform/s are you trying to deploy for and what machine type are you using to build the standalone? > > Sean Cole > Pi > >> On 9 Aug 2019, at 16:09, JJS via use-livecode wrote: >> >> Hi, >> >> >> i've not seen this before: >> >> Could not auto-detect inclusions or security categories because stack is password protected >> >> >> It seems like setting the password for stacks in the standalone setting is not working. If i set it and save the stack, then open the stack in notepad++ i can read all. >> >> When i use: Set the Password of stack"encryptme" to "thisisapassword" and do the same thing in notepad++ it is all jibberish as expected. >> >> But then i load it again in LC950Indy, and i get above mentioned error. >> >> Same error when i open a script and enter the password, even then it's not able to build. >> >> >> In previous LC versions this was working correct. >> >> Anyone seen this? >> >> Is there a quick fix? >> >> >> Thanks! >> >> >> Sphere >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Fri Aug 9 12:57:46 2019 From: jjs at krutt.org (JJS) Date: Fri, 9 Aug 2019 18:57:46 +0200 Subject: not building standalone due to password protected stack LC950Indy In-Reply-To: <8f8614bc-73d5-ec38-3e30-d1944075e792@krutt.org> References: <5a3979df-5c22-50f1-18d2-2b222c3a024a@krutt.org> <8f8614bc-73d5-ec38-3e30-d1944075e792@krutt.org> Message-ID: <3692c185-2ad3-9bd4-f422-db7937ca2252@krutt.org> Yep, that was it. For this stack i had automatically search inclusions set to true. So when the stack is encrypted it does not work. Manually it works ok. Damn, that i did not check it in the first place. The error was obvious. So it is a bug, as it should also work. Will report it. Thanks, Sphere Op 9-8-2019 om 18:47 schreef JJS via use-livecode: > Hi, > > > this build was for windows 32 and 64 bit, and building on win10-64bits. > > i can not recall this issue with a lc950dp or rc version when building > an encrypted stack for Android. > > Perhaps the difference is that for that i selected inclusions > mannually i'm now thinking. > > I will check if that is the difference here. > > > Thanks, > > Sphere > > > Op 9-8-2019 om 17:29 schreef Pi Digital via use-livecode: >> Hi >> >> I?ve only noticed this when building for HTML5. For everything else >> the stacks get directly included and don?t care that they are >> password protected. For html they have to get re-coded through >> emscripten which is where I believe the issue arises. >> >> Which platform/s are you trying to deploy for and what machine type >> are you using to build the standalone? >> >> Sean Cole >> Pi >> >>> On 9 Aug 2019, at 16:09, JJS via use-livecode >>> wrote: >>> >>> Hi, >>> >>> >>> i've not seen this before: >>> >>> Could not auto-detect inclusions or security categories because >>> stack is password protected >>> >>> >>> It seems like setting the password for stacks in the standalone >>> setting is not working. If i set it and save the stack, then open >>> the stack in notepad++ i can read all. >>> >>> When i use: Set the Password of stack"encryptme" to >>> "thisisapassword" and do the same thing in notepad++ it is all >>> jibberish as expected. >>> >>> But then i load it again in LC950Indy, and i get above mentioned error. >>> >>> Same error when i open a script and enter the password, even then >>> it's not able to build. >>> >>> >>> In previous LC versions this was working correct. >>> >>> Anyone seen this? >>> >>> Is there a quick fix? >>> >>> >>> Thanks! >>> >>> >>> Sphere >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Fri Aug 9 13:23:32 2019 From: jjs at krutt.org (JJS) Date: Fri, 9 Aug 2019 19:23:32 +0200 Subject: not building standalone due to password protected stack LC950Indy In-Reply-To: <3692c185-2ad3-9bd4-f422-db7937ca2252@krutt.org> References: <5a3979df-5c22-50f1-18d2-2b222c3a024a@krutt.org> <8f8614bc-73d5-ec38-3e30-d1944075e792@krutt.org> <3692c185-2ad3-9bd4-f422-db7937ca2252@krutt.org> Message-ID: added https://quality.livecode.com/show_bug.cgi?id=22308 Op 9-8-2019 om 18:57 schreef JJS via use-livecode: > Yep, > > > that was it. > > For this stack i had automatically search inclusions set to true. > > So when the stack is encrypted it does not work. > > Manually it works ok. > > Damn, that i did not check it in the first place. The error was obvious. > > So it is a bug, as it should also work. > > Will report it. > > > Thanks, > > Sphere > > > Op 9-8-2019 om 18:47 schreef JJS via use-livecode: >> Hi, >> >> >> this build was for windows 32 and 64 bit, and building on win10-64bits. >> >> i can not recall this issue with a lc950dp or rc version when >> building an encrypted stack for Android. >> >> Perhaps the difference is that for that i selected inclusions >> mannually i'm now thinking. >> >> I will check if that is the difference here. >> >> >> Thanks, >> >> Sphere >> >> >> Op 9-8-2019 om 17:29 schreef Pi Digital via use-livecode: >>> Hi >>> >>> I?ve only noticed this when building for HTML5. For everything else >>> the stacks get directly included and don?t care that they are >>> password protected. For html they have to get re-coded through >>> emscripten which is where I believe the issue arises. >>> >>> Which platform/s are you trying to deploy for and what machine type >>> are you using to build the standalone? >>> >>> Sean Cole >>> Pi >>> >>>> On 9 Aug 2019, at 16:09, JJS via use-livecode >>>> wrote: >>>> >>>> Hi, >>>> >>>> >>>> i've not seen this before: >>>> >>>> Could not auto-detect inclusions or security categories because >>>> stack is password protected >>>> >>>> >>>> It seems like setting the password for stacks in the standalone >>>> setting is not working. If i set it and save the stack, then open >>>> the stack in notepad++ i can read all. >>>> >>>> When i use: Set the Password of stack"encryptme" to >>>> "thisisapassword" and do the same thing in notepad++ it is all >>>> jibberish as expected. >>>> >>>> But then i load it again in LC950Indy, and i get above mentioned >>>> error. >>>> >>>> Same error when i open a script and enter the password, even then >>>> it's not able to build. >>>> >>>> >>>> In previous LC versions this was working correct. >>>> >>>> Anyone seen this? >>>> >>>> Is there a quick fix? >>>> >>>> >>>> Thanks! >>>> >>>> >>>> Sphere >>>> >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 9 16:46:33 2019 From: klaus at major-k.de (Klaus major-k) Date: Fri, 9 Aug 2019 22:46:33 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> References: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> Message-ID: <3758F190-40CF-42BE-9BDA-0C18A96BA266@major-k.de> Maybe noone got the point of my posting? The point is, that I add files and folder to the standalone via the "Copy files" tab in the "Standalone Application Settings", however some of these files are missing in the final runtime. However instead they can be found in -> specialfolderpath("engine") What is happening here and why does LC not copy everything to the RESOURCES folder? > Am 09.08.2019 um 15:22 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I am currently making an existing app "64Bit safe" for a customer with LC 9.5 > on macOS 10.14.6. > > In this app there are some "compiled shell scripts" (? I guess, have no infor about this) > which changes the keyboard layout (chinese and back) to german depending of the target > fields in LC. > > Structure (three files and two folders): > ## File > extSetInputMethod > > ## Folders > x86-64/extSetInputMethod > x86-32/extSetInputMethod > > I guess the first one checks the current architecture and then calls the correct version for this. > Whatever, this works fine in the customers older apps. > > So I added all this via the "Copy files" tab in the "Standalone Application Settings" > However these files were NOT in specialfolderpath("resources") in the runtime? > > In the runtime I find this: > the_actual_app.app > -> /Resources > -> /Resources/Externals ## empty, no externals used in app > -> /Resources/x86-64 ## EMPTY!? > -> /Resources/x86-32 ## EMPTY!? > > File -> extSetInputMethod = missing and the two latter folders are EMPTY!? > Where on earth are the contents of the other folders? > > But I find this in: > the_actual_app > -> /MacOS > -> /MacOS/extInputMethod ## the missing file! see above > -> /MacOS/x86-64/extInputMethod ## the missing file > -> /MacOS/x86-32/extInputMethod ## the missing file > ... > > So calling the shell apps in -> specialfolderpath("resources") does of course not work!? > If I copy them manually to the correct folder in the runtime, they stop working. > So all in all this is a real showstopper! :-/ > > Am I overlooking something? > Is this correct behaviour of LC? > What can I do? -- Klaus Major https://www.major-k.de klaus at major-k.de From derek at speedbump.io Fri Aug 9 16:54:02 2019 From: derek at speedbump.io (Derek Bump) Date: Fri, 9 Aug 2019 13:54:02 -0700 Subject: Experiments with the container layerMode and Animation Engine Message-ID: Hello List, I hope all of you have been well. It's been a while since I've experimented with Animation Engine--or LiveCode in general--and the recent addition of the "container" layerMode in 9.5 had me thinking that it might be a good time to revisit animation and gaming. However, I've been rooted in the world of LAMPP stacks for the past decade and my grasp of math-heavy concepts is pretty bad. So with that in mind, I was hoping I could get some feedback on my scrapbook? I have two different machines that I've been testing on and the results have been pretty interesting. Especially on the Linux side, which is where I saw the fastest rendering. I assumed that Windows would have had a commanding lead, but rendering with Linux on the same hardware was nearly twice as fast. Which makes me suspicious I may have overlooked something. https://speedbump.io/shared/yage/YAGE_Sketchbook_v1.zip (37.4 MB) https://speedbump.io/shared/yage/YAGE_Sketchbook_v1_without_builds.zip (134.2 KB) Platform binaries are located in ./builds, Windowed at 1024 x 576 pixels... 4 cores, 4 Threads @3.2 GHz, i5-4570 (2013) ??? Linux Mint 19.1 ??? ??? Random Movement 1x1: 85-95 fps ??? ??? Polygonal: 68-90 fps ??? Windows 10 ??? ??? Random Movement 1x1: 37-41 fps ??? ??? Polygonal:29-41 fps 4 cores, 8 Threads @2.3 GHz, i7-3615QM (2013) ??? macOS 10.14.5 ??? ??? Random Movement 1x1: 12-15 fps ?? ?? ? Polygonal: 15-25 fps One suspicion in particular is whether my implementation of Animation Engine is efficient or not? My sketches are largely just a continuous loop, but I know my rendering will decline significantly once I start adding more logic, collisions, media, and anything else I've overlooked. I'm still making my way through the documentation though. My plans for the future are some mini-games in a simplified style. Top-down racing with basic collision detection, maybe a fishing game, or something even more basic like skydiving into rings. To be honest, I get most of my ideas from the mini-games my spouse loves to play so I'll probably glean a few since I have a live-in play tester. Gotta be careful with that. ;-) So anyways, I'm looking forward to hearing what you folks have to say. I hope everyone has a great weekend. Cheers! -- Derek Bump Henderson, NV From brian at milby7.com Fri Aug 9 22:43:00 2019 From: brian at milby7.com (Brian Milby) Date: Fri, 9 Aug 2019 22:43:00 -0400 Subject: "copy files", specialfolderpath("resources") and missing files =?utf-8?Q?=3D_?=SHOWSTOPPER In-Reply-To: <3758F190-40CF-42BE-9BDA-0C18A96BA266@major-k.de> References: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> <3758F190-40CF-42BE-9BDA-0C18A96BA266@major-k.de> Message-ID: <449c0848-19b7-4cc3-8ca3-d87712a92c8d@Spark> Some files are moved to a different location based on type. ?I can?t recall the details and would need to look at the source. ?It is related to binary code though. ?Stuff is copied first and then moved on a second pass. ?That would explain the presence of the empty folders. Thanks, Brian On Aug 9, 2019, 4:47 PM -0400, Klaus major-k via use-livecode , wrote: > Maybe noone got the point of my posting? > > The point is, that I add files and folder to the standalone via the "Copy files" tab > in the "Standalone Application Settings", however some of these files are missing > in the final runtime. However instead they can be found in -> specialfolderpath("engine") > > What is happening here and why does LC not copy everything to the RESOURCES folder? > > > Am 09.08.2019 um 15:22 schrieb Klaus major-k via use-livecode : > > > > Hi friends, > > > > I am currently making an existing app "64Bit safe" for a customer with LC 9.5 > > on macOS 10.14.6. > > > > In this app there are some "compiled shell scripts" (? I guess, have no infor about this) > > which changes the keyboard layout (chinese and back) to german depending of the target > > fields in LC. > > > > Structure (three files and two folders): > > ## File > > extSetInputMethod > > > > ## Folders > > x86-64/extSetInputMethod > > x86-32/extSetInputMethod > > > > I guess the first one checks the current architecture and then calls the correct version for this. > > Whatever, this works fine in the customers older apps. > > > > So I added all this via the "Copy files" tab in the "Standalone Application Settings" > > However these files were NOT in specialfolderpath("resources") in the runtime? > > > > In the runtime I find this: > > the_actual_app.app > > -> /Resources > > -> /Resources/Externals ## empty, no externals used in app > > -> /Resources/x86-64 ## EMPTY!? > > -> /Resources/x86-32 ## EMPTY!? > > > > File -> extSetInputMethod = missing and the two latter folders are EMPTY!? > > Where on earth are the contents of the other folders? > > > > But I find this in: > > the_actual_app > > -> /MacOS > > -> /MacOS/extInputMethod ## the missing file! see above > > -> /MacOS/x86-64/extInputMethod ## the missing file > > -> /MacOS/x86-32/extInputMethod ## the missing file > > ... > > > > So calling the shell apps in -> specialfolderpath("resources") does of course not work!? > > If I copy them manually to the correct folder in the runtime, they stop working. > > So all in all this is a real showstopper! :-/ > > > > Am I overlooking something? > > Is this correct behaviour of LC? > > What can I do? > > -- > 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 Sat Aug 10 05:03:36 2019 From: klaus at major-k.de (Klaus major-k) Date: Sat, 10 Aug 2019 11:03:36 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: <449c0848-19b7-4cc3-8ca3-d87712a92c8d@Spark> References: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> <3758F190-40CF-42BE-9BDA-0C18A96BA266@major-k.de> <449c0848-19b7-4cc3-8ca3-d87712a92c8d@Spark> Message-ID: <9FFE962F-37C1-4053-B392-9AA217D7C32A@major-k.de> Hi Brian, > Am 10.08.2019 um 04:43 schrieb Brian Milby via use-livecode : > > Some files are moved to a different location based on type. I can?t recall the details and would need to look at the source. It is related to binary code though. Stuff is copied first and then moved on a second pass. That would explain the presence of the empty folders. thank you, yes, I imagined something like this. But what does get moved and why, and what can I do to make my app run? > Thanks, > Brian > On Aug 9, 2019, 4:47 PM -0400, Klaus major-k via use-livecode , wrote: >> Maybe noone got the point of my posting? >> >> The point is, that I add files and folder to the standalone via the "Copy files" tab >> in the "Standalone Application Settings", however some of these files are missing >> in the final runtime. However instead they can be found in -> specialfolderpath("engine") >> >> What is happening here and why does LC not copy everything to the RESOURCES folder? >> >>> Am 09.08.2019 um 15:22 schrieb Klaus major-k via use-livecode : >>> >>> Hi friends, >>> >>> I am currently making an existing app "64Bit safe" for a customer with LC 9.5 >>> on macOS 10.14.6. >>> >>> In this app there are some "compiled shell scripts" (? I guess, have no infor about this) >>> which changes the keyboard layout (chinese and back) to german depending of the target >>> fields in LC. >>> >>> Structure (three files and two folders): >>> ## File >>> extSetInputMethod >>> >>> ## Folders >>> x86-64/extSetInputMethod >>> x86-32/extSetInputMethod >>> >>> I guess the first one checks the current architecture and then calls the correct version for this. >>> Whatever, this works fine in the customers older apps. >>> >>> So I added all this via the "Copy files" tab in the "Standalone Application Settings" >>> However these files were NOT in specialfolderpath("resources") in the runtime? >>> >>> In the runtime I find this: >>> the_actual_app.app >>> -> /Resources >>> -> /Resources/Externals ## empty, no externals used in app >>> -> /Resources/x86-64 ## EMPTY!? >>> -> /Resources/x86-32 ## EMPTY!? >>> >>> File -> extSetInputMethod = missing and the two latter folders are EMPTY!? >>> Where on earth are the contents of the other folders? >>> >>> But I find this in: >>> the_actual_app >>> -> /MacOS >>> -> /MacOS/extInputMethod ## the missing file! see above >>> -> /MacOS/x86-64/extInputMethod ## the missing file >>> -> /MacOS/x86-32/extInputMethod ## the missing file >>> ... >>> >>> So calling the shell apps in -> specialfolderpath("resources") does of course not work!? >>> If I copy them manually to the correct folder in the runtime, they stop working. >>> So all in all this is a real showstopper! :-/ Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From hh at hyperhh.de Sat Aug 10 06:30:33 2019 From: hh at hyperhh.de (hh) Date: Sat, 10 Aug 2019 12:30:33 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER Message-ID: <44F762CC-977F-41C1-84A1-50A4D23ABAD0@hyperhh.de> > Klaus M. wrote: > and what can I do to make my app run? Did you already try to put the compiled things on startup from custom props into the temporary folder? I never had problems with running compiled shell scripts from there. From klaus at major-k.de Sat Aug 10 06:45:22 2019 From: klaus at major-k.de (Klaus major-k) Date: Sat, 10 Aug 2019 12:45:22 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: <44F762CC-977F-41C1-84A1-50A4D23ABAD0@hyperhh.de> References: <44F762CC-977F-41C1-84A1-50A4D23ABAD0@hyperhh.de> Message-ID: <6D9DC614-E625-45CB-803B-FEB0AEA1020B@major-k.de> Hallo Hermann, > Am 10.08.2019 um 12:30 schrieb hh via use-livecode : > >> Klaus M. wrote: >> and what can I do to make my app run? > > Did you already try to put the compiled things on startup > from custom props into the temporary folder? > I never had problems with running compiled shell scripts > from there. that is the next point on my testing list, thank you. :-) Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From klaus at major-k.de Sat Aug 10 07:27:58 2019 From: klaus at major-k.de (Klaus major-k) Date: Sat, 10 Aug 2019 13:27:58 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: <6D9DC614-E625-45CB-803B-FEB0AEA1020B@major-k.de> References: <44F762CC-977F-41C1-84A1-50A4D23ABAD0@hyperhh.de> <6D9DC614-E625-45CB-803B-FEB0AEA1020B@major-k.de> Message-ID: <019E4395-78E7-46D1-AED0-06A3586DF837@major-k.de> Hallo Hermann, > Am 10.08.2019 um 12:45 schrieb Klaus major-k via use-livecode : > > Hallo Hermann, > >> Am 10.08.2019 um 12:30 schrieb hh via use-livecode : >> >>> Klaus M. wrote: >>> and what can I do to make my app run? >> >> Did you already try to put the compiled things on startup >> from custom props into the temporary folder? >> I never had problems with running compiled shell scripts >> from there. > > that is the next point on my testing list, thank you. :-) yes, success, at least partly, now I get a SHELL error -> ... access denied Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so everyone should be able to access it, before I put it into a custom property of my stack. What can I do to make it run? Anything I am overseeing? Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From paul at researchware.com Sat Aug 10 07:31:01 2019 From: paul at researchware.com (Paul Dupuis) Date: Sat, 10 Aug 2019 07:31:01 -0400 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: <9FFE962F-37C1-4053-B392-9AA217D7C32A@major-k.de> References: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> <3758F190-40CF-42BE-9BDA-0C18A96BA266@major-k.de> <449c0848-19b7-4cc3-8ca3-d87712a92c8d@Spark> <9FFE962F-37C1-4053-B392-9AA217D7C32A@major-k.de> Message-ID: <51607e06-c097-29e1-e4dd-941e67d335c2@researchware.com> On 8/10/2019 5:03 AM, Klaus major-k via use-livecode wrote: > thank you, yes, I imagined something like this. > But what does get moved and why, and what can I do to make my app run? We use a "on standaloneSaved pDestFolder" handler and then use revCopyFolder or revCopyFile (or whichever other of the rev file/folder command is appropriate) to move stuff from where it gets put to where we want it. We've done this for some time both to insulate ourselves against Apple's habit of changing where stuff goes and regression errors in LiveCode's engine. From tom at makeshyft.com Sat Aug 10 11:18:23 2019 From: tom at makeshyft.com (Tom Glod) Date: Sat, 10 Aug 2019 11:18:23 -0400 Subject: is it possible to readfromfile line x to y Message-ID: I am trying to parse this massive html page of unicode characters. https://unicode.org/emoji/charts/full-emoji-list.html and livecode is choking up when I read in the whole file and try to parse each line using a loop. I get a hard crash in the debugger and a endless loop when debugger is off. I will report this afterwards. But as a workaround I'd like to "read from file line 1 to 5 of file" The examples are just not helping me to get the right syntax. Can someone help me? I'm parsing lines. Thanks, Tom From klaus at major-k.de Sat Aug 10 11:39:53 2019 From: klaus at major-k.de (Klaus major-k) Date: Sat, 10 Aug 2019 17:39:53 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: <449c0848-19b7-4cc3-8ca3-d87712a92c8d@Spark> References: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> <3758F190-40CF-42BE-9BDA-0C18A96BA266@major-k.de> <449c0848-19b7-4cc3-8ca3-d87712a92c8d@Spark> Message-ID: Hi Brian, > Am 10.08.2019 um 04:43 schrieb Brian Milby via use-livecode : > > Some files are moved to a different location based on type. I can?t recall the details and would need to look at the source. It is related to binary code though. Stuff is copied first and then moved on a second pass. That would explain the presence of the empty folders. don't you think that it may be a good idea to somehow DOCUMENT this fact! :-( So other developers won't get upset by this! > Thanks, > Brian Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From brian at milby7.com Sat Aug 10 12:16:32 2019 From: brian at milby7.com (Brian Milby) Date: Sat, 10 Aug 2019 12:16:32 -0400 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: References: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> <3758F190-40CF-42BE-9BDA-0C18A96BA266@major-k.de> <449c0848-19b7-4cc3-8ca3-d87712a92c8d@Spark> Message-ID: The function is revRedirectMacOSResources in ide-support/revsaveasstandalone.livecodescript (repo path). The code doesn't explicitly state the reason, but I think it has to do with where executable content needs to be inside an app bundle. You may be better off using the engine path for executable content. This code has been there for a long time though. It was in there when the livecodescript file was originally split out in Jan 2015. On Sat, Aug 10, 2019 at 11:40 AM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Brian, > > > Am 10.08.2019 um 04:43 schrieb Brian Milby via use-livecode < > use-livecode at lists.runrev.com>: > > > > Some files are moved to a different location based on type. I can?t > recall the details and would need to look at the source. It is related to > binary code though. Stuff is copied first and then moved on a second > pass. That would explain the presence of the empty folders. > > don't you think that it may be a good idea to somehow DOCUMENT this fact! > :-( > So other developers won't get upset by this! > > > Thanks, > > Brian > > 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 jacque at hyperactivesw.com Sat Aug 10 12:19:45 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 10 Aug 2019 11:19:45 -0500 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: References: <7FF28255-80B2-4730-97AF-743DA9A6A69C@major-k.de> <3758F190-40CF-42BE-9BDA-0C18A96BA266@major-k.de> <449c0848-19b7-4cc3-8ca3-d87712a92c8d@Spark> Message-ID: <16c7c5424e8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The specialFolderPath "engine" maps to the resources folder but it sounds like the mapping doesn't go the other way. Maybe using "engine" to find all resources might work? Just guessing. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 10, 2019 10:41:46 AM Klaus major-k via use-livecode wrote: > Hi Brian, > >> Am 10.08.2019 um 04:43 schrieb Brian Milby via use-livecode >> : >> >> Some files are moved to a different location based on type. I can?t recall >> the details and would need to look at the source. It is related to binary >> code though. Stuff is copied first and then moved on a second pass. That >> would explain the presence of the empty folders. > > don't you think that it may be a good idea to somehow DOCUMENT this fact! :-( > So other developers won't get upset by this! > >> Thanks, >> Brian > > 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 hh at hyperhh.de Sat Aug 10 12:48:14 2019 From: hh at hyperhh.de (hh) Date: Sat, 10 Aug 2019 18:48:14 +0200 Subject: Password Rules Message-ID: <2BEA4E75-0C7F-4A95-BA02-6819AB4C8C29@hyperhh.de> Often passwords should obey some rules, e.g. contain at least a certain number of digits, lowercase chars, uppercase chars, xtra chars with an ascii number in range 32-127 or special local chars as "?????". Or contain only some of these char groups. Stack PasswordRules allows to check whether a given password fulfils some "char group rules" or to create a random password that fulfils these rules. Char groups are digits, lowercase a-z, uppercase A-Z, several extras (!"#$%&'()*+,-./ etc.) and an editable one. Download PasswordRules from "Sample Stacks" of the LC toolbar or from http://livecodeshare.runrev.com/stack/941/PasswordRules From dsc at swcp.com Sat Aug 10 13:16:33 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sat, 10 Aug 2019 11:16:33 -0600 Subject: is it possible to readfromfile line x to y In-Reply-To: References: Message-ID: Remember to unload after load and parsing (if you use load). Also, look for variables you are leaving full of big things. If that doesn't help enough, look at the httpHeaders property. Use the Range request header. Unfortunately, that might be limited to byte as a unit. If so, you might also want to add a Accept-Charset header to limit the charset to utf-16 so you don't split a character in a read. A quick scripting but slow running interim alternative might be to URL the file, get the lines you want, and then empty the variable containing the file. > On Aug 10, 2019, at 9:18 AM, Tom Glod via use-livecode wrote: > > I am trying to parse this massive html page of unicode characters. > > https://unicode.org/emoji/charts/full-emoji-list.html > > and livecode is choking up when I read in the whole file and try to parse > each line using a loop. I get a hard crash in the debugger and a endless > loop when debugger is off. > > I will report this afterwards. > > But as a workaround I'd like to > > "read from file line 1 to 5 of file" > > The examples are just not helping me to get the right syntax. Can someone > help me? > > I'm parsing lines. > > Thanks, > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Aug 10 13:26:24 2019 From: tom at makeshyft.com (Tom Glod) Date: Sat, 10 Aug 2019 13:26:24 -0400 Subject: is it possible to readfromfile line x to y In-Reply-To: References: Message-ID: Hi Dar, thanks for the tips. However I am loading the file locally. The file is 48mb, so it loads fine and fits fine. I am attempting to parse just 1 line at a time, but it still doesn't work. This is my code and even this freezes it. ----------------------------------------------------------------------------------------- local number_of_lines local this_line global TempArray put the number of lines in unicode_file_to_parse into number_of_lines repeat with x = 1 to number_of_lines put line x of unicode_file_to_parse into this_line put this_line into TempArray[x] end repeat On Sat, Aug 10, 2019 at 1:16 PM Dar Scott Consulting via use-livecode < use-livecode at lists.runrev.com> wrote: > Remember to unload after load and parsing (if you use load). > > Also, look for variables you are leaving full of big things. > > If that doesn't help enough, look at the httpHeaders property. Use the > Range request header. Unfortunately, that might be limited to byte as a > unit. If so, you might also want to add a Accept-Charset header to limit > the charset to utf-16 so you don't split a character in a read. > > A quick scripting but slow running interim alternative might be to URL the > file, get the lines you want, and then empty the variable containing the > file. > > > On Aug 10, 2019, at 9:18 AM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I am trying to parse this massive html page of unicode characters. > > > > https://unicode.org/emoji/charts/full-emoji-list.html > > > > and livecode is choking up when I read in the whole file and try to parse > > each line using a loop. I get a hard crash in the debugger and a endless > > loop when debugger is off. > > > > I will report this afterwards. > > > > But as a workaround I'd like to > > > > "read from file line 1 to 5 of file" > > > > The examples are just not helping me to get the right syntax. Can > someone > > help me? > > > > I'm parsing lines. > > > > Thanks, > > > > Tom > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Sat Aug 10 13:32:10 2019 From: hh at hyperhh.de (hh) Date: Sat, 10 Aug 2019 19:32:10 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER Message-ID: > Klaus M. wrote: > yes, success, at least partly, now I get a SHELL error -> ... access denied > Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so > everyone should be able to access it, before I put it into a custom property > of my stack. What can I do to make it run? Anything I am overseeing? This works for me: set the myp of this stack to compress(url ("binfile:")) Then put the temporaryfolder & "/"& into f1 replace "//" with "/"in f1 -- avoid platform bugs put decompress(the myp of this stack) into url ("binfile:"&f1) put shell("chmod 777 "&f1) into nirwana From hh at hyperhh.de Sat Aug 10 13:41:52 2019 From: hh at hyperhh.de (hh) Date: Sat, 10 Aug 2019 19:41:52 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER Message-ID: <18B6D092-7FAA-420B-B98D-1F728630DDDE@hyperhh.de> Once again without missing spaces. > Klaus M. wrote: > yes, success, at least partly, now I get a SHELL error -> ... access denied > Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so > everyone should be able to access it, before I put it into a custom property > of my stack. What can I do to make it run? Anything I am overseeing? This works for me: set the myp of this stack to compress(url ("binfile:")) Then put the temporary folder & "/"& into f1 replace "//" with "/" in f1 -- avoid platform bugs put decompress(the myp of this stack) into url ("binfile:"&f1) put shell("chmod 777 "&f1) into nirwana From klaus at major-k.de Sat Aug 10 13:47:32 2019 From: klaus at major-k.de (Klaus major-k) Date: Sat, 10 Aug 2019 19:47:32 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: References: Message-ID: <16C8F9B9-B62D-4EC0-A29A-AFDA52FCB3A4@major-k.de> Hallo Hermann, > Am 10.08.2019 um 19:32 schrieb hh via use-livecode : > >> Klaus M. wrote: >> yes, success, at least partly, now I get a SHELL error -> ... access denied >> Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so >> everyone should be able to access it, before I put it into a custom property >> of my stack. What can I do to make it run? Anything I am overseeing? > > This works for me: > set the myp of this stack to compress(url ("binfile:")) > Then > put the temporaryfolder & "/"& into f1 > replace "//" with "/"in f1 -- avoid platform bugs > put decompress(the myp of this stack) into url ("binfile:"&f1) > put shell("chmod 777 "&f1) into nirwana thank you, will try this. But does that mean that my previous "chmod" does not stick? I noticed in the macOS file preview that the SHELL stuff contains something like this: ... /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation X /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon ... Does that mean that this depends on the CARBON Framework, which will be obsolete in (one of) the next macOS version, or maybe will get removed completely, right? Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From hh at hyperhh.de Sat Aug 10 13:56:01 2019 From: hh at hyperhh.de (hh) Date: Sat, 10 Aug 2019 19:56:01 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER Message-ID: > But does that mean that my previous "chmod" does not stick? Yes, on every unix system. From security reasons. The Carbon question should better be answered by a team member. From dsc at swcp.com Sat Aug 10 14:00:25 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sat, 10 Aug 2019 12:00:25 -0600 Subject: is it possible to readfromfile line x to y In-Reply-To: References: Message-ID: Sorry about that. The https reference threw me off. Use open file, read file with range (repeatedly), and then close file. open file myBigFile for UTF-8 text read read from file myBigFile at myOffset for myNumLines lines close... Adjust myOffset with the length of what was read each time. > On Aug 10, 2019, at 11:26 AM, Tom Glod via use-livecode wrote: > > Hi Dar, thanks for the tips. However I am loading the file locally. > > The file is 48mb, so it loads fine and fits fine. > > I am attempting to parse just 1 line at a time, but it still doesn't work. > > This is my code and even this freezes it. > > ----------------------------------------------------------------------------------------- > > local number_of_lines > local this_line > global TempArray > > put the number of lines in unicode_file_to_parse into number_of_lines > > repeat with x = 1 to number_of_lines > > put line x of unicode_file_to_parse into this_line > > put this_line into TempArray[x] > > end repeat > > > > On Sat, Aug 10, 2019 at 1:16 PM Dar Scott Consulting via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Remember to unload after load and parsing (if you use load). >> >> Also, look for variables you are leaving full of big things. >> >> If that doesn't help enough, look at the httpHeaders property. Use the >> Range request header. Unfortunately, that might be limited to byte as a >> unit. If so, you might also want to add a Accept-Charset header to limit >> the charset to utf-16 so you don't split a character in a read. >> >> A quick scripting but slow running interim alternative might be to URL the >> file, get the lines you want, and then empty the variable containing the >> file. >> >>> On Aug 10, 2019, at 9:18 AM, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> I am trying to parse this massive html page of unicode characters. >>> >>> https://unicode.org/emoji/charts/full-emoji-list.html >>> >>> and livecode is choking up when I read in the whole file and try to parse >>> each line using a loop. I get a hard crash in the debugger and a endless >>> loop when debugger is off. >>> >>> I will report this afterwards. >>> >>> But as a workaround I'd like to >>> >>> "read from file line 1 to 5 of file" >>> >>> The examples are just not helping me to get the right syntax. Can >> someone >>> help me? >>> >>> I'm parsing lines. >>> >>> Thanks, >>> >>> Tom >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sat Aug 10 14:03:09 2019 From: hh at hyperhh.de (hh) Date: Sat, 10 Aug 2019 20:03:09 +0200 Subject: is it possible to readfromfile line x to y Message-ID: <6F5B472B-21B2-4A8A-8DC8-E16E70F74E2D@hyperhh.de> Did you already try (use a counter add 42 to lineCntr read from file for 42 lines --> placed into it (check the result for empty or "eof") Note. The file contains base64 encoded imagedata (which is in one long line). Such a line may be too long to display in a LC field (-> may cause a hang). So use the data only from variables. From klaus at major-k.de Sat Aug 10 14:03:58 2019 From: klaus at major-k.de (Klaus major-k) Date: Sat, 10 Aug 2019 20:03:58 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: References: Message-ID: Hi Hermann, > Am 10.08.2019 um 19:56 schrieb hh via use-livecode : > >> But does that mean that my previous "chmod" does not stick? > Yes, on every unix system. From security reasons. ah, thank you, didn't know this. > The Carbon question should better be answered by a team member. Hopefully someone will chime in (next week :-) Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From dsc at swcp.com Sat Aug 10 14:06:18 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sat, 10 Aug 2019 12:06:18 -0600 Subject: is it possible to readfromfile line x to y In-Reply-To: References: Message-ID: <7083963F-4C49-475A-987E-DFB2E7375C00@swcp.com> Oh, and that repeat will take a very long time. Fixing that might be better than the other solution. Use repeat for each line this_line of unicode_file_to_parse and don't forget to clear unicode_file_to_parse after the repeat if it is not handler local > On Aug 10, 2019, at 11:26 AM, Tom Glod via use-livecode wrote: > > Hi Dar, thanks for the tips. However I am loading the file locally. > > The file is 48mb, so it loads fine and fits fine. > > I am attempting to parse just 1 line at a time, but it still doesn't work. > > This is my code and even this freezes it. > > ----------------------------------------------------------------------------------------- > > local number_of_lines > local this_line > global TempArray > > put the number of lines in unicode_file_to_parse into number_of_lines > > repeat with x = 1 to number_of_lines > > put line x of unicode_file_to_parse into this_line > > put this_line into TempArray[x] > > end repeat > > > > On Sat, Aug 10, 2019 at 1:16 PM Dar Scott Consulting via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Remember to unload after load and parsing (if you use load). >> >> Also, look for variables you are leaving full of big things. >> >> If that doesn't help enough, look at the httpHeaders property. Use the >> Range request header. Unfortunately, that might be limited to byte as a >> unit. If so, you might also want to add a Accept-Charset header to limit >> the charset to utf-16 so you don't split a character in a read. >> >> A quick scripting but slow running interim alternative might be to URL the >> file, get the lines you want, and then empty the variable containing the >> file. >> >>> On Aug 10, 2019, at 9:18 AM, Tom Glod via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> I am trying to parse this massive html page of unicode characters. >>> >>> https://unicode.org/emoji/charts/full-emoji-list.html >>> >>> and livecode is choking up when I read in the whole file and try to parse >>> each line using a loop. I get a hard crash in the debugger and a endless >>> loop when debugger is off. >>> >>> I will report this afterwards. >>> >>> But as a workaround I'd like to >>> >>> "read from file line 1 to 5 of file" >>> >>> The examples are just not helping me to get the right syntax. Can >> someone >>> help me? >>> >>> I'm parsing lines. >>> >>> Thanks, >>> >>> Tom >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Sat Aug 10 14:43:00 2019 From: tom at makeshyft.com (Tom Glod) Date: Sat, 10 Aug 2019 14:43:00 -0400 Subject: is it possible to readfromfile line x to y In-Reply-To: <7083963F-4C49-475A-987E-DFB2E7375C00@swcp.com> References: <7083963F-4C49-475A-987E-DFB2E7375C00@swcp.com> Message-ID: thank you both..... the offset is what i was looking for, this way I can read just a few lines at a time I also must read them in sequence so I do have to use the line counter sequentially. There are probably many reasons why it hands the way i was doing it. Thankfully I only have to do this one time to parse out the single unicode character from each line. So 99% of the characters on each line are getting dropped. Thanks again On Sat, Aug 10, 2019 at 2:06 PM Dar Scott Consulting via use-livecode < use-livecode at lists.runrev.com> wrote: > Oh, and that repeat will take a very long time. Fixing that might be > better than the other solution. > > Use repeat for each line this_line of unicode_file_to_parse > > and don't forget to clear unicode_file_to_parse after the repeat if it is > not handler local > > > On Aug 10, 2019, at 11:26 AM, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Dar, thanks for the tips. However I am loading the file locally. > > > > The file is 48mb, so it loads fine and fits fine. > > > > I am attempting to parse just 1 line at a time, but it still doesn't > work. > > > > This is my code and even this freezes it. > > > > > ----------------------------------------------------------------------------------------- > > > > local number_of_lines > > local this_line > > global TempArray > > > > put the number of lines in unicode_file_to_parse into number_of_lines > > > > repeat with x = 1 to number_of_lines > > > > put line x of unicode_file_to_parse into this_line > > > > put this_line into TempArray[x] > > > > end repeat > > > > > > > > On Sat, Aug 10, 2019 at 1:16 PM Dar Scott Consulting via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Remember to unload after load and parsing (if you use load). > >> > >> Also, look for variables you are leaving full of big things. > >> > >> If that doesn't help enough, look at the httpHeaders property. Use the > >> Range request header. Unfortunately, that might be limited to byte as a > >> unit. If so, you might also want to add a Accept-Charset header to limit > >> the charset to utf-16 so you don't split a character in a read. > >> > >> A quick scripting but slow running interim alternative might be to URL > the > >> file, get the lines you want, and then empty the variable containing the > >> file. > >> > >>> On Aug 10, 2019, at 9:18 AM, Tom Glod via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> I am trying to parse this massive html page of unicode characters. > >>> > >>> https://unicode.org/emoji/charts/full-emoji-list.html > >>> > >>> and livecode is choking up when I read in the whole file and try to > parse > >>> each line using a loop. I get a hard crash in the debugger and a > endless > >>> loop when debugger is off. > >>> > >>> I will report this afterwards. > >>> > >>> But as a workaround I'd like to > >>> > >>> "read from file line 1 to 5 of file" > >>> > >>> The examples are just not helping me to get the right syntax. Can > >> someone > >>> help me? > >>> > >>> I'm parsing lines. > >>> > >>> Thanks, > >>> > >>> Tom > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dfepstein at comcast.net Sat Aug 10 15:00:54 2019 From: dfepstein at comcast.net (David Epstein) Date: Sat, 10 Aug 2019 15:00:54 -0400 Subject: Reading and writing globals by script Message-ID: I want to write a function that will read and write to any named global. What I have below seems to work, but I?m not sure quite why. Usually, ?put gName into oldVal? for a global named gName would put the value, not the name, of that global into oldVal. But here it does not. function globalSwap gName,gVal -- Return the existing value of global gName and load gVal into that same global do "global" && gName do "put" && gName && "into oldVal" # "put gName into oldVal" doesn't work here. do "put gVal into" && gName return oldVal end globalSwap Is there some way to write this with fewer or no uses of ?do?? David Epstein From hh at hyperhh.de Sat Aug 10 15:06:21 2019 From: hh at hyperhh.de (hh) Date: Sat, 10 Aug 2019 21:06:21 +0200 Subject: is it possible to readfromfile line x to y Message-ID: 1. Read for N lines reads sequentially, doesn't need an offset. 2. You could instead try to do that in one strike: put url ("file:"&) into str filter str with "*" typical line for further extracting: U+1F600 From ahsoftware at sonic.net Sat Aug 10 21:21:27 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 10 Aug 2019 18:21:27 -0700 Subject: Reading and writing globals by script In-Reply-To: References: Message-ID: On 8/10/19 12:00 PM, David Epstein via use-livecode wrote: > I want to write a function that will read and write to any named global. What I have below seems to work, but I?m not sure quite why. Usually, ?put gName into oldVal? for a global named gName would put the value, not the name, of that global into oldVal. But here it does not. > > function globalSwap gName,gVal > -- Return the existing value of global gName and load gVal into that same global > do "global" && gName > do "put" && gName && "into oldVal" # "put gName into oldVal" doesn't work here. > do "put gVal into" && gName > return oldVal > end globalSwap > > Is there some way to write this with fewer or no uses of ?do?? Well, the best way, of course, is not to use globals. Barring that (watch the wordwrap), function globalSwap gname, pVal local tOldVal, tCommand put "global"&&gName&&";put"&&gName&&"into tOldVal;put"&&pVal&&"into"&&gName into tCommand do tCommand return tOldVal end globalSwap -- Mark Wieder ahsoftware at gmail.com From dunbarx at aol.com Sun Aug 11 00:12:22 2019 From: dunbarx at aol.com (dunbarxx) Date: Sat, 10 Aug 2019 23:12:22 -0500 (CDT) Subject: Reading and writing globals by script In-Reply-To: References: Message-ID: <1565496742730-0.post@n4.nabble.com> however cool the machinations of massaging a global under script control, why do this at all? This is what custom properties are for; they also are "global", and even better, they survive sessions. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From tom at makeshyft.com Sun Aug 11 00:30:50 2019 From: tom at makeshyft.com (Tom Glod) Date: Sun, 11 Aug 2019 00:30:50 -0400 Subject: is it possible to readfromfile line x to y In-Reply-To: References: Message-ID: turns out when i try to parse the lines 1 by 1 (after just loading the file) in 9.05 there is no crash and the process finishes...albeit slowly. will report bug for 9.04. thanks for all the suggestions, learned alot by asking you guys and investigating workaround. On Sat, Aug 10, 2019 at 3:06 PM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > 1. Read for N lines reads sequentially, doesn't need an offset. > 2. You could instead try to do that in one strike: > > put url ("file:"&) into str > filter str with "*" > > typical line for further extracting: > U+1F600 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sun Aug 11 00:58:56 2019 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 11 Aug 2019 04:58:56 +0000 Subject: load app to ios device for testing?? In-Reply-To: References: Message-ID: Hi Scott Yes, I believe everything is configured correctly. I've been building + testing apps with LC Indy for mobile for many years and it's only relatively recently (last n months) that I've been having these problems. I can still test on the simulators but my iPhone doesn't appear in the Test Target menu when it's connected. iTunes doesn't appear to support uploading of apps directly to the device any more, AFAICS. Is there some other manual way of installing a test/dev app to a device? Hmm, wonder if it's just that my version of iOS is a little dated? No, have upgraded and still doesn't appear. My Xcode versions used are 9.2 and 10.1 with available SDKs being 11.2 and 12.1. Now running ios 12.4 on my device, though was running 10.xx until yesterday (when I started this reply). Any ideas? What other settings might affect this? cheers Alan On 9 Aug 2019, at 7:30 pm,Scott Morrow via use-livecode > wrote: Hello Alan, I?m running LC 9.5.0 business, Mac OS 10.14.6 & Xcode 10.1 I am seeing both android and iOS actual devices (as well as the iOS and android simulator, which is an awesome addition) Did you select the correct platform in ?Standalone Application Settings?? Is "Mobile Support? configured correctly in LC Preferences? ? Scott Morrow On Aug 9, 2019, at 12:42 AM, Alan Stenhouse via use-livecode > wrote: Just wondering how we can download an ios build to our own local device for testing these days? It used to be easy with iTunes to just attach your phone and download the app to the connected device inside iTunes, but that no longer seems possible (though possibly I'm missing something?). I also miss the easy "Test" connection between LC and a connected device. Or have I perhaps got something mis-configured after updating to Mojave? LC 9.5.0 MacOS 10.14.5 XCode 10.1 et al Any hints welcome! cheers Alan From scott at elementarysoftware.com Sun Aug 11 01:49:11 2019 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Sat, 10 Aug 2019 22:49:11 -0700 Subject: load app to ios device for testing?? In-Reply-To: References: Message-ID: <93E49B03-1BD6-4333-B8E5-7EB777D6C2BE@elementarysoftware.com> Hello Alan, I only said that it works for me? I have NO idea HOW it works :- ) If it were me I would 1) restart Livecode, 2) restart computer, 3) trash the Livecode preferences, 4) Google to discover which color chicken to sacrifice Scott > On Aug 10, 2019, at 9:58 PM, Alan Stenhouse via use-livecode wrote: > > Hi Scott > > Yes, I believe everything is configured correctly. I've been building + testing apps with LC Indy for mobile for many years and it's only relatively recently (last n months) that I've been having these problems. I can still test on the simulators but my iPhone doesn't appear in the Test Target menu when it's connected. > > iTunes doesn't appear to support uploading of apps directly to the device any more, AFAICS. Is there some other manual way of installing a test/dev app to a device? > > Hmm, wonder if it's just that my version of iOS is a little dated? No, have upgraded and still doesn't appear. > > My Xcode versions used are 9.2 and 10.1 with available SDKs being 11.2 and 12.1. > > Now running ios 12.4 on my device, though was running 10.xx until yesterday (when I started this reply). > > Any ideas? What other settings might affect this? > > cheers > > Alan > > > On 9 Aug 2019, at 7:30 pm,Scott Morrow via use-livecode > wrote: > > Hello Alan, > I?m running LC 9.5.0 business, Mac OS 10.14.6 & Xcode 10.1 > I am seeing both android and iOS actual devices (as well as the iOS and android simulator, which is an awesome addition) Did you select the correct platform in ?Standalone Application Settings?? Is "Mobile Support? configured correctly in LC Preferences? > > ? > Scott Morrow > > > On Aug 9, 2019, at 12:42 AM, Alan Stenhouse via use-livecode > wrote: > > Just wondering how we can download an ios build to our own local device for testing these days? > > It used to be easy with iTunes to just attach your phone and download the app to the connected device inside iTunes, but that no longer seems possible (though possibly I'm missing something?). > > I also miss the easy "Test" connection between LC and a connected device. > > Or have I perhaps got something mis-configured after updating to Mojave? > > LC 9.5.0 > MacOS 10.14.5 > XCode 10.1 et al > > Any hints welcome! > > cheers > > Alan > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 11 03:15:10 2019 From: merakosp at gmail.com (panagiotis merakos) Date: Sun, 11 Aug 2019 10:15:10 +0300 Subject: load app to ios device for testing?? In-Reply-To: <93E49B03-1BD6-4333-B8E5-7EB777D6C2BE@elementarysoftware.com> References: <93E49B03-1BD6-4333-B8E5-7EB777D6C2BE@elementarysoftware.com> Message-ID: Hello all, The iOS connected physical device is shown in the test target menu only in the business edition. The Android connected physical device is shown in all editions. Hope this helps, Panos On Sun, Aug 11, 2019, 08:49 scott--- via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello Alan, > > I only said that it works for me? I have NO idea HOW it works :- ) > If it were me I would 1) restart Livecode, 2) restart computer, 3) trash > the Livecode preferences, 4) Google to discover which color chicken to > sacrifice > > Scott > > > On Aug 10, 2019, at 9:58 PM, Alan Stenhouse via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Scott > > > > Yes, I believe everything is configured correctly. I've been building + > testing apps with LC Indy for mobile for many years and it's only > relatively recently (last n months) that I've been having these problems. I > can still test on the simulators but my iPhone doesn't appear in the Test > Target menu when it's connected. > > > > iTunes doesn't appear to support uploading of apps directly to the > device any more, AFAICS. Is there some other manual way of installing a > test/dev app to a device? > > > > Hmm, wonder if it's just that my version of iOS is a little dated? No, > have upgraded and still doesn't appear. > > > > My Xcode versions used are 9.2 and 10.1 with available SDKs being 11.2 > and 12.1. > > > > Now running ios 12.4 on my device, though was running 10.xx until > yesterday (when I started this reply). > > > > Any ideas? What other settings might affect this? > > > > cheers > > > > Alan > > > > > > On 9 Aug 2019, at 7:30 pm,Scott Morrow via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > > > Hello Alan, > > I?m running LC 9.5.0 business, Mac OS 10.14.6 & Xcode 10.1 > > I am seeing both android and iOS actual devices (as well as the iOS and > android simulator, which is an awesome addition) Did you select the correct > platform in ?Standalone Application Settings?? Is "Mobile Support? > configured correctly in LC Preferences? > > > > ? > > Scott Morrow > > > > > > On Aug 9, 2019, at 12:42 AM, Alan Stenhouse via use-livecode < > use-livecode at lists.runrev.com> > wrote: > > > > Just wondering how we can download an ios build to our own local device > for testing these days? > > > > It used to be easy with iTunes to just attach your phone and download > the app to the connected device inside iTunes, but that no longer seems > possible (though possibly I'm missing something?). > > > > I also miss the easy "Test" connection between LC and a connected device. > > > > Or have I perhaps got something mis-configured after updating to Mojave? > > > > LC 9.5.0 > > MacOS 10.14.5 > > XCode 10.1 et al > > > > Any hints welcome! > > > > cheers > > > > Alan > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From alex at tweedly.net Sun Aug 11 06:36:44 2019 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 11 Aug 2019 11:36:44 +0100 Subject: load app to ios device for testing?? In-Reply-To: References: <93E49B03-1BD6-4333-B8E5-7EB777D6C2BE@elementarysoftware.com> Message-ID: <94074e75-6125-0d85-22c1-be42c7e81879@tweedly.net> I don't know whether to ask ?? "Why?" or ? "What's the bug number in QC to see when this is fixed ?" or ? "Is there some obscure reason that we would never guess why this difference exists ?" :-) Alex. On 11/08/2019 08:15, panagiotis merakos via use-livecode wrote: > Hello all, > > The iOS connected physical device is shown in the test target menu only in > the business edition. The Android connected physical device is shown in all > editions. > > Hope this helps, > Panos From alanstenhouse at hotmail.com Sun Aug 11 06:38:06 2019 From: alanstenhouse at hotmail.com (Alan Stenhouse) Date: Sun, 11 Aug 2019 10:38:06 +0000 Subject: load app to ios device for testing?? In-Reply-To: References: Message-ID: Hi Panos Thanks for clarifying this. Now I'm wondering when exactly this changed as it definitely used to work in the Indy edition. On the brights side, thanks to you (+ Scott), I won't have to try Scott's 4th suggestion as to which color chicken to sacrifice...! :-) cheers Alan On 11 Aug 2019, at 7:30 pm, use-livecode-request at lists.runrev.com wrote: Hello all, The iOS connected physical device is shown in the test target menu only in the business edition. The Android connected physical device is shown in all editions. Hope this helps, Panos From david.bovill at gmail.com Sun Aug 11 08:06:04 2019 From: david.bovill at gmail.com (David Bovill) Date: Sun, 11 Aug 2019 13:06:04 +0100 Subject: QR Code Reader with Livecode In-Reply-To: References: Message-ID: I see there is a QR Code Library and with Indy you can call things like mergAVCamBarcodeFound - but playing around i can't seem to read a QR code using the AV Foundation stuff in Indy - is there a way to have a Livecode app read QR codes? From MikeKerner at roadrunner.com Sun Aug 11 09:11:07 2019 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 11 Aug 2019 09:11:07 -0400 Subject: Any recommendation which GitHub client to use for Livecode contributions? In-Reply-To: References: <2B2DEEE5-E05B-4DD0-84D8-29EA8054023D@m-r-d.de> <73f2b520-d44c-41e2-b00f-69411a1d30c9@Spark> <8CD30DE7-971F-42FF-9EA8-CFC4AD96C96C@swcp.com> <26C5E689-303B-41DD-BF24-314A09B0619E@rogers.com> Message-ID: I am a big fan of gitKraken. On Thu, Aug 8, 2019 at 4:30 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/8/19 10:50 AM, Matthias Rebbe via use-livecode wrote: > > Okay, 3 in a row for Sourcetree, so i think i will use it, too. > > I'm a commandline kinda guy, so the gui things don't interest me much. > But I've looked at sourcetree before and it looked good. I've also been > impressed by the demos I've gotten of gitkraken, so I should probably > put in a good word for them as well. > > https://www.gitkraken.com/ > > -- > 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 > -- 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 merakosp at gmail.com Sun Aug 11 09:21:51 2019 From: merakosp at gmail.com (panagiotis merakos) Date: Sun, 11 Aug 2019 16:21:51 +0300 Subject: load app to ios device for testing?? In-Reply-To: <94074e75-6125-0d85-22c1-be42c7e81879@tweedly.net> References: <93E49B03-1BD6-4333-B8E5-7EB777D6C2BE@elementarysoftware.com> <94074e75-6125-0d85-22c1-be42c7e81879@tweedly.net> Message-ID: Hello all, This was always the case. Deploying to iOS device directly via the Test button has always been a Business-only feature. For other editions, you have to use Xcode to install the app into the device. Kind regards, Panos On Sun, Aug 11, 2019, 13:37 Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > I don't know whether to ask > > "Why?" > > or > > "What's the bug number in QC to see when this is fixed ?" > > or > > "Is there some obscure reason that we would never guess why this > difference exists ?" > > :-) > > Alex. > > On 11/08/2019 08:15, panagiotis merakos via use-livecode wrote: > > Hello all, > > > > The iOS connected physical device is shown in the test target menu only > in > > the business edition. The Android connected physical device is shown in > all > > editions. > > > > Hope this helps, > > Panos > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Sun Aug 11 09:58:52 2019 From: jjs at krutt.org (JJS) Date: Sun, 11 Aug 2019 15:58:52 +0200 Subject: load app to ios device for testing?? In-Reply-To: References: <93E49B03-1BD6-4333-B8E5-7EB777D6C2BE@elementarysoftware.com> <94074e75-6125-0d85-22c1-be42c7e81879@tweedly.net> Message-ID: <74a8c9c1-a58e-6187-55fa-0d80e52d0d5f@krutt.org> Indeed. Create a standalone and drag that file to your real device in xcode it then gets installed and works for about 6 or 7 days, then renew the provisioning profile in xcode. Op 11-8-2019 om 15:21 schreef panagiotis merakos via use-livecode: > Hello all, > > This was always the case. Deploying to iOS device directly via the Test > button has always been a Business-only feature. > > For other editions, you have to use Xcode to install the app into the > device. > > Kind regards, > Panos > > On Sun, Aug 11, 2019, 13:37 Alex Tweedly via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I don't know whether to ask >> >> "Why?" >> >> or >> >> "What's the bug number in QC to see when this is fixed ?" >> >> or >> >> "Is there some obscure reason that we would never guess why this >> difference exists ?" >> >> :-) >> >> Alex. >> >> On 11/08/2019 08:15, panagiotis merakos via use-livecode wrote: >>> Hello all, >>> >>> The iOS connected physical device is shown in the test target menu only >> in >>> the business edition. The Android connected physical device is shown in >> all >>> editions. >>> >>> Hope this helps, >>> Panos >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sun Aug 11 10:10:41 2019 From: hh at hyperhh.de (hh) Date: Sun, 11 Aug 2019 16:10:41 +0200 Subject: QR Code Reader with Livecode Message-ID: <767F3099-3D65-47A4-9F46-11D3CC74D53C@hyperhh.de> I have a QRcode Reader nearly finished. Will publish it on Wednesday in "Sample Stacks". There will be also a QRcode Writer that outputs to a SVG icon widget (or to a polygon graphic or to an image). From harrison at all-auctions.com Sun Aug 11 10:28:49 2019 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 11 Aug 2019 10:28:49 -0400 Subject: QR Code Reader with Livecode In-Reply-To: <767F3099-3D65-47A4-9F46-11D3CC74D53C@hyperhh.de> References: <767F3099-3D65-47A4-9F46-11D3CC74D53C@hyperhh.de> Message-ID: <243D729C-2AEF-41D3-A5E9-10C915546C76@all-auctions.com> Nice! > On Aug 11, 2019, at 10:10 AM, hh via use-livecode wrote: > > I have a QRcode Reader nearly finished. > Will publish it on Wednesday in "Sample Stacks". > > There will be also a QRcode Writer that outputs to a > SVG icon widget (or to a polygon graphic or to an image). From david.bovill at gmail.com Sun Aug 11 15:51:28 2019 From: david.bovill at gmail.com (David Bovill) Date: Sun, 11 Aug 2019 20:51:28 +0100 Subject: QR Code Reader with Livecode In-Reply-To: <243D729C-2AEF-41D3-A5E9-10C915546C76@all-auctions.com> References: <767F3099-3D65-47A4-9F46-11D3CC74D53C@hyperhh.de> <243D729C-2AEF-41D3-A5E9-10C915546C76@all-auctions.com> Message-ID: Great - should be able to test as I'm doing a sprint Tuesday to Friday :) On Sun, 11 Aug 2019 at 15:29, Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Nice! > > > On Aug 11, 2019, at 10:10 AM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I have a QRcode Reader nearly finished. > > Will publish it on Wednesday in "Sample Stacks". > > > > There will be also a QRcode Writer that outputs to a > > SVG icon widget (or to a polygon graphic or to an image). > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From alain.vezina at logilangue.com Sun Aug 11 16:13:05 2019 From: alain.vezina at logilangue.com (Alain Vezina) Date: Sun, 11 Aug 2019 16:13:05 -0400 Subject: QR Code Reader with Livecode In-Reply-To: <767F3099-3D65-47A4-9F46-11D3CC74D53C@hyperhh.de> References: <767F3099-3D65-47A4-9F46-11D3CC74D53C@hyperhh.de> Message-ID: Very, very interesting. I can't wait Alain > Le 11 ao?t 2019 ? 10:10, hh via use-livecode a ?crit : > > I have a QRcode Reader nearly finished. > Will publish it on Wednesday in "Sample Stacks". > > There will be also a QRcode Writer that outputs to a > SVG icon widget (or to a polygon graphic or to an image). > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Sun Aug 11 18:25:30 2019 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Sun, 11 Aug 2019 22:25:30 +0000 Subject: What the latest LC server version Message-ID: That runs on Ubuntu 18.01? BR From ahsoftware at sonic.net Sun Aug 11 19:49:42 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 11 Aug 2019 16:49:42 -0700 Subject: What the latest LC server version In-Reply-To: References: Message-ID: <01a10933-81a0-b285-7002-ebd385fd870b@sonic.net> On 8/11/19 3:25 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > That runs on Ubuntu 18.01? I'm running the LC9.5 build on the 4.15.0-55 kernel. -- Mark Wieder ahsoftware at gmail.com From brahma at hindu.org Mon Aug 12 09:32:13 2019 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 12 Aug 2019 13:32:13 +0000 Subject: 9.5.0 crash to desktop In-Reply-To: <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <4BABCAB7-6B25-4F74-8513-3496E5A6FBA1@hindu.org> I've been debugging code and "fell" into old habit of using "red dot breakpoints" -- crashing every 10 minutes! No recipe... I guess I don't need to report this, but just saying "it a real pain" Switching to hard coded "breakpoint" It a tricking thing "clearing" those.... BR J. Landman Gay via use-livecode" Panos has diagnosed at least part of the problem. It has to do with red dot breakpoints. Using the breakpoint command instead may (will?) avoid the crash. From jjs at krutt.org Mon Aug 12 09:59:18 2019 From: jjs at krutt.org (JJS) Date: Mon, 12 Aug 2019 15:59:18 +0200 Subject: QR Code Reader with Livecode In-Reply-To: References: <767F3099-3D65-47A4-9F46-11D3CC74D53C@hyperhh.de> Message-ID: I'm curious (as i'm working with it also), if you are able to turn it off and on. 1. The barcode widget seem not to react to: set the disabled of widget"Android Barcode Scanner" to true (or false) or either set the enabled of widget"Android Barcode Scanner" to true (or false) The enabled/disabled only seems to listen to what you've set in the properties pane. 2. i've putted the widget exactly in the horizontal middle of the display(Android 8.1) and locked it, but it is on the right half of the screen when pushed to the mobile. The size of the widget is way off of what was set. i've set the widget size to 300x300 but it looks like 50x100 3. when using the guide then the other 2 options do not work (the rect and the scanned code in display) but maybe that's how it should work 4. It scans fast so thats' good Op 11-8-2019 om 22:13 schreef Alain Vezina via use-livecode: > Very, very interesting. > I can't wait > > Alain > >> Le 11 ao?t 2019 ? 10:10, hh via use-livecode a ?crit : >> >> I have a QRcode Reader nearly finished. >> Will publish it on Wednesday in "Sample Stacks". >> >> There will be also a QRcode Writer that outputs to a >> SVG icon widget (or to a polygon graphic or to an image). >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 12 10:06:35 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Mon, 12 Aug 2019 16:06:35 +0200 Subject: 9.5.0 crash to desktop In-Reply-To: <4BABCAB7-6B25-4F74-8513-3496E5A6FBA1@hindu.org> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4BABCAB7-6B25-4F74-8513-3496E5A6FBA1@hindu.org> Message-ID: <9540A6F2-78D2-4E96-A988-DD7F847F3D13@m-r-d.de> > Switching to hard coded "breakpoint" > It a tricking thing "clearing" those.... Currently i am doing it this way. At the first line of a script i have "put TRUE into tDebug" and my breakpoints are set this way. "if tDebug then breakpoint" If i don?t want them to be active anymore i change the first line. Matthias From andrew at midwestcoastmedia.com Mon Aug 12 10:11:05 2019 From: andrew at midwestcoastmedia.com (andrew at midwestcoastmedia.com) Date: Mon, 12 Aug 2019 14:11:05 +0000 Subject: load app to ios device for testing?? In-Reply-To: Message-ID: <20190812141105.Horde.q9tQZ0IPCpR_JLjpOzWf0SD@ua850258.serversignin.com> Jacque has a handy tool called Airlaunch that allows you to deliver builds over the air (via web server). [https://livecode.com/products/thirdparty/hyperactivesw/airlaunch-1-0-0/] Another option is to save the standalone and install directly via the Devices panel in Xcode. [https://docs.monaca.io/en/products_guide/monaca_ide/deploy/non_market_deploy/] Either method still requires proper provisioning profiles for device support. --Andrew Bell From bobsneidar at iotecdigital.com Mon Aug 12 10:38:53 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 12 Aug 2019 14:38:53 +0000 Subject: load app to ios device for testing?? In-Reply-To: <93E49B03-1BD6-4333-B8E5-7EB777D6C2BE@elementarysoftware.com> References: <93E49B03-1BD6-4333-B8E5-7EB777D6C2BE@elementarysoftware.com> Message-ID: I wouldn't Google, "Sacrificing Chickens" these days. You might get a visit from some unpleasant people. ;-) Bob S > On Aug 10, 2019, at 22:49 , scott--- via use-livecode wrote: > > Hello Alan, > > I only said that it works for me? I have NO idea HOW it works :- ) > If it were me I would 1) restart Livecode, 2) restart computer, 3) trash the Livecode preferences, 4) Google to discover which color chicken to sacrifice > > Scott From hh at hyperhh.de Mon Aug 12 12:19:46 2019 From: hh at hyperhh.de (hh) Date: Mon, 12 Aug 2019 18:19:46 +0200 Subject: QR Code Reader with Livecode Message-ID: <4133731A-F4AD-4F69-9541-D2CE6C0A3931@hyperhh.de> My stack is a (simple) QR Code *reader* not a *scanner*. It reads from static images. That is, if you use a webcam on desktop or a built-in camera on mobile you have to take a (sharp) picture and then select from that picture to read the code. Usually a webcam or a mobile that cannot do an automatic or manual focus isn't good for that. But, on desktop, you can for example read (via snapshot) from any valid QR on screen (for example those displayed in a pdf or a word document etc.). From klaus at major-k.de Mon Aug 12 12:22:56 2019 From: klaus at major-k.de (Klaus major-k) Date: Mon, 12 Aug 2019 18:22:56 +0200 Subject: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER In-Reply-To: References: Message-ID: Hi Hermann, > Am 10.08.2019 um 19:32 schrieb hh via use-livecode : > >> Klaus M. wrote: >> yes, success, at least partly, now I get a SHELL error -> ... access denied >> Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so >> everyone should be able to access it, before I put it into a custom property >> of my stack. What can I do to make it run? Anything I am overseeing? > This works for me: > set the myp of this stack to url ("binfile:")) > > Then > put the temporaryfolder & "/"& into f1 > replace "//" with "/"in f1 -- avoid platform bugs > put the myp of this stack into url ("binfile:"&f1) > put shell("chmod 777 "&f1) into nirwana quick feddback: I now use this way and it works great! :-) Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Mon Aug 12 13:41:40 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 12 Aug 2019 12:41:40 -0500 Subject: 9.5.0 crash to desktop In-Reply-To: <4BABCAB7-6B25-4F74-8513-3496E5A6FBA1@hindu.org> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4BABCAB7-6B25-4F74-8513-3496E5A6FBA1@hindu.org> Message-ID: <7ca3cc8f-ec9e-d44a-2e8d-c31c545dd454@hyperactivesw.com> On 8/12/19 8:32 AM, Sannyasin Brahmanathaswami via use-livecode wrote: > Switching to hard coded "breakpoint" > It a tricking thing "clearing" those.... I sometimes use Matthias' method but since the crash report I've started marking my breakpoints with a special comment like this: breakpoint --### Then I can use the SE search to find them all and replace them with empty, or comment them out. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mkoob at rogers.com Mon Aug 12 16:19:17 2019 From: mkoob at rogers.com (Martin Koob) Date: Mon, 12 Aug 2019 16:19:17 -0400 Subject: 9.5.0 crash to desktop In-Reply-To: References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <02398942-1F89-41A3-BEAD-CD29AAEDD642@rogers.com> I just got used to the flakiness of the red dot breakpoints so adapted my workflow with workarounds to use them. When I am debugging I want to follow through different objects that the script jumps to. I have the red breakpoints in the different objects, i.e. Button -> group-> card-> firstLibrary stack -> second library stack. Sometimes it works beautifully at each breakpoint the script stops. other times it doesn?t stop at all or stops only at open scripts. Also I have the problems of not being able to always delete the red dots. In a bit more detail here is my experience. 1. Red Dot Breakpoints don?t trigger. Here are some situations where this happens and my workaround process. - If my script is not open in the editor -> Open the script - my script is open in the editor but not in the open tab -> Open the tab - my script is open (and still break points do not trigger - Double Click in the script and make sure the text cursor is flashing in the text. - if still does not open. -> close the script editor and open scripts again. (I haven?t really had to quit LiveCode to get them working again) 2. Can?t delete Red Dot Breakpoints by clicking. I am trying to do this either while running through a script or not. Some times it works, sometimes not. Here are some ways I try to resolve it -don?t click right on the dot but just to the right over the number - if trying to remove breakpoint while script is running - don?t try to remove while script is not the line with the red dot(although it works sometimes.) - step forward one line and then try breakpoint again. - wait till script is stopped. - switch to other tab and back. - close script editor and reopen. (I haven?t really had to quit LiveCode to get them working again) It will be great if this can get worked out. Martin > On Aug 2, 2019, at 11:32 AM, Bob Sneidar via use-livecode wrote: > > It's a display bug. Quit LC, relaunch, watchpoint gone. > > Bob S > > >> On Aug 2, 2019, at 08:29 , Bob Sneidar via use-livecode wrote: >> >> Hmmm... I did have a watch point set... I will clear all my breakpoints and see what happens. >> >> Bob S From bobsneidar at iotecdigital.com Mon Aug 12 16:51:56 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 12 Aug 2019 20:51:56 +0000 Subject: 9.5.0 crash to desktop In-Reply-To: <02398942-1F89-41A3-BEAD-CD29AAEDD642@rogers.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <02398942-1F89-41A3-BEAD-CD29AAEDD642@rogers.com> Message-ID: <38A068CF-3812-4CE0-9574-F2EDBF97ECC0@iotecdigital.com> There was a post earlier where someone mentioned that Panos is onto this one and is looking into it. Bob S > On Aug 12, 2019, at 13:19 , Martin Koob via use-livecode wrote: > > I just got used to the flakiness of the red dot breakpoints so adapted my workflow with workarounds to use them. > When I am debugging I want to follow through different objects that the script jumps to. I have the red breakpoints in the different objects, i.e. Button -> group-> card-> firstLibrary stack -> second library stack. > Sometimes it works beautifully at each breakpoint the script stops. other times it doesn?t stop at all or stops only at open scripts. Also I have the problems of not being able to always delete the red dots. In a bit more detail here is my experience. > > 1. Red Dot Breakpoints don?t trigger. Here are some situations where this happens and my workaround process. > - If my script is not open in the editor -> Open the script > - my script is open in the editor but not in the open tab -> Open the tab > - my script is open (and still break points do not trigger - Double Click in the script and make sure the text cursor is flashing in the text. > - if still does not open. -> close the script editor and open scripts again. (I haven?t really had to quit LiveCode to get them working again) > > 2. Can?t delete Red Dot Breakpoints by clicking. I am trying to do this either while running through a script or not. Some times it works, sometimes not. Here are some ways I try to resolve it > -don?t click right on the dot but just to the right over the number > - if trying to remove breakpoint while script is running > - don?t try to remove while script is not the line with the red dot(although it works sometimes.) > - step forward one line and then try breakpoint again. > - wait till script is stopped. > - switch to other tab and back. > - close script editor and reopen. (I haven?t really had to quit LiveCode to get them working again) > > It will be great if this can get worked out. > > Martin From ahsoftware at sonic.net Mon Aug 12 18:13:51 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 12 Aug 2019 15:13:51 -0700 Subject: 9.5.0 crash to desktop In-Reply-To: <02398942-1F89-41A3-BEAD-CD29AAEDD642@rogers.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <02398942-1F89-41A3-BEAD-CD29AAEDD642@rogers.com> Message-ID: <95968ebc-5afe-cf16-5c83-4f6d7d7c3014@sonic.net> On 8/12/19 1:19 PM, Martin Koob via use-livecode wrote: > Sometimes it works beautifully at each breakpoint the script stops. other times it doesn?t stop at all or stops only at open scripts. Also I have the problems of not being able to always delete the red dots. In a bit more detail here is my experience. A stack's breakpoints are stored in the cREVGeneral["breakpoints"] of the stack itself as a cr-separated list as: objectID, lineNumber where objectID=0 for the stack itself. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Mon Aug 12 20:11:11 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 12 Aug 2019 17:11:11 -0700 Subject: 9.5.0 crash to desktop In-Reply-To: <7ca3cc8f-ec9e-d44a-2e8d-c31c545dd454@hyperactivesw.com> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <16c52f0c6d8.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <4BABCAB7-6B25-4F74-8513-3496E5A6FBA1@hindu.org> <7ca3cc8f-ec9e-d44a-2e8d-c31c545dd454@hyperactivesw.com> Message-ID: <96b88def-1c1c-e384-6d99-93471d78ddc0@sonic.net> On 8/12/19 10:41 AM, J. Landman Gay via use-livecode wrote: > On 8/12/19 8:32 AM, Sannyasin Brahmanathaswami via use-livecode wrote: >> Switching to hard coded "breakpoint" >> It a tricking thing "clearing" those.... > > I sometimes use Matthias' method but since the crash report I've started > marking my breakpoints with a special comment like this: > > ?? breakpoint --### > > Then I can use the SE search to find them all and replace them with > empty, or comment them out. > PowerDebug goes a couple of steps further down that road: breakpoint normal breakpoint (breaks into debugger) breakpoint #trace tracepoint (logs environment and continues executing) breakpoint # conditional breakpoint (this needs an explanation) setDebugThresholdTo "hello" breakpoint #hello (will break into the debugger) breakpoint #goodbye (will be ignored - threshold doesn't match) https://www.ahsoftware.net/PowerTools/PowerDebug.lc -- Mark Wieder ahsoftware at gmail.com From ambassador at fourthworld.com Mon Aug 12 22:29:47 2019 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 12 Aug 2019 19:29:47 -0700 Subject: 9.5.0 crash to desktop In-Reply-To: <95968ebc-5afe-cf16-5c83-4f6d7d7c3014@sonic.net> References: <95968ebc-5afe-cf16-5c83-4f6d7d7c3014@sonic.net> Message-ID: <8ac0b6f1-2fe1-8229-be49-2310affbd0bf@fourthworld.com> Mark Wieder wrote: > A stack's breakpoints are stored in the cREVGeneral["breakpoints"] of > the stack itself... When did this happen? IIRC for most of MC/LC's life the breakpoints were an engine-level stack property. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ahsoftware at sonic.net Tue Aug 13 01:35:13 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 12 Aug 2019 22:35:13 -0700 Subject: 9.5.0 crash to desktop In-Reply-To: <8ac0b6f1-2fe1-8229-be49-2310affbd0bf@fourthworld.com> References: <95968ebc-5afe-cf16-5c83-4f6d7d7c3014@sonic.net> <8ac0b6f1-2fe1-8229-be49-2310affbd0bf@fourthworld.com> Message-ID: On 8/12/19 7:29 PM, Richard Gaskin via use-livecode wrote: > Mark Wieder wrote: > > > A stack's breakpoints are stored in the cREVGeneral["breakpoints"] of > > the stack itself... > > When did this happen?? IIRC for most of MC/LC's life the breakpoints > were an engine-level stack property. > "the breakpoints" is indeed a system property. But the red-dot breakpoints are stored as stack properties. They're picked up and added to the breakpoints when a script is being executed. But the temporary breakpoints, the breakpoint states, and the breakpoint conditions all travel with the stack. -- Mark Wieder ahsoftware at gmail.com From axwald at gmail.com Tue Aug 13 04:40:46 2019 From: axwald at gmail.com (axwald) Date: Tue, 13 Aug 2019 03:40:46 -0500 (CDT) Subject: 9.5.0 crash to desktop In-Reply-To: <33ff2a78-1963-9291-9b2e-196c92a83c58@sonic.net> References: <6B3ED852-F552-4E96-9F24-C4B514729918@iotecdigital.com> <11BCA7A1-7B1D-49FE-8118-E3966DB09D8E@rogers.com> <251514DC-A6EA-4622-81D5-9E9139D84224@pidigital.co.uk> <33ff2a78-1963-9291-9b2e-196c92a83c58@sonic.net> Message-ID: <1565685646741-0.post@n4.nabble.com> Hi. Mark Wieder via use-livecode wrote > LOL. That's an utterly bizarre workflow, but I'm glad it works. > I'm filing that away somewhere if I ever have to record the screen on > Windows. That's actually the most nasty method I ever read of. You may as well: 1. Press "Print" on your keyboard, open your favorite imagining program, and "paste". 2. On a up-to-date Windows, Go "Start", choose "Snip & Sketch" in the alphabetical program list, and use this for a custom size screenshot. (On older versions there's a "Snipping Tool" ...) 3. Go to the MS store and choose one among the many free screenshot tools ;-) Have fun! (axwald @ forums.livecode.com) ----- ? Livecode programming until the cat hits the fan ? -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From panos.merakos at livecode.com Tue Aug 13 05:17:55 2019 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 13 Aug 2019 12:17:55 +0300 Subject: [ANN] This Week in LiveCode 189 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 #189 here: http://bit.ly/2Z4ML7C This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From jjs at krutt.org Tue Aug 13 05:47:20 2019 From: jjs at krutt.org (JJS) Date: Tue, 13 Aug 2019 11:47:20 +0200 Subject: QR Code Reader with Livecode In-Reply-To: <4133731A-F4AD-4F69-9541-D2CE6C0A3931@hyperhh.de> References: <4133731A-F4AD-4F69-9541-D2CE6C0A3931@hyperhh.de> Message-ID: <328338f2-0c04-23f4-5693-0e0f38c5beb5@krutt.org> ah ok that's clears it up. and you are using the barcode library for it i presume. Op 12-8-2019 om 18:19 schreef hh via use-livecode: > My stack is a (simple) QR Code *reader* not a *scanner*. > It reads from static images. > > That is, if you use a webcam on desktop or a built-in camera on mobile you have to take a (sharp) picture and then select from that picture to read the code. > > Usually a webcam or a mobile that cannot do an automatic or manual focus isn't good for that. > > But, on desktop, you can for example read (via snapshot) from any valid QR on screen (for example those displayed in a pdf or a word document etc.). > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 13 10:54:34 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 13 Aug 2019 14:54:34 +0000 Subject: MatchText issue Message-ID: Hi all. I am using matchText to filter text on closeField. I use this extensively for all kinds of things, and for the most part it works famously. But for phone numbers it is allowing the characters "()" when the match string is "[0-9 -x]". Not sure why. Bob S From bobsneidar at iotecdigital.com Tue Aug 13 11:02:25 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 13 Aug 2019 15:02:25 +0000 Subject: MatchText issue In-Reply-To: References: Message-ID: <1CFF48F6-FB2F-4E29-A0C4-738F6DFD68F2@iotecdigital.com> NVM I see what -x does. It's ALL ascii characters between 32 and 120! Bob S > On Aug 13, 2019, at 07:54 , Bob Sneidar via use-livecode wrote: > > Hi all. I am using matchText to filter text on closeField. I use this extensively for all kinds of things, and for the most part it works famously. But for phone numbers it is allowing the characters "()" when the match string is "[0-9 -x]". Not sure why. > > Bob S From bobsneidar at iotecdigital.com Tue Aug 13 11:07:47 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 13 Aug 2019 15:07:47 +0000 Subject: MatchText issue In-Reply-To: <1CFF48F6-FB2F-4E29-A0C4-738F6DFD68F2@iotecdigital.com> References: <1CFF48F6-FB2F-4E29-A0C4-738F6DFD68F2@iotecdigital.com> Message-ID: <8CD6F433-FE1E-4D60-ACD0-A9030F300790@iotecdigital.com> What I was trying to do was include dashes and the letter x but "-x" means something in Regex! Bob S > On Aug 13, 2019, at 08:02 , Bob Sneidar via use-livecode wrote: > > NVM I see what -x does. It's ALL ascii characters between 32 and 120! > > Bob S > > >> On Aug 13, 2019, at 07:54 , Bob Sneidar via use-livecode wrote: >> >> Hi all. I am using matchText to filter text on closeField. I use this extensively for all kinds of things, and for the most part it works famously. But for phone numbers it is allowing the characters "()" when the match string is "[0-9 -x]". Not sure why. >> >> 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 ahsoftware at sonic.net Tue Aug 13 11:16:21 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 13 Aug 2019 08:16:21 -0700 Subject: MatchText issue In-Reply-To: <8CD6F433-FE1E-4D60-ACD0-A9030F300790@iotecdigital.com> References: <1CFF48F6-FB2F-4E29-A0C4-738F6DFD68F2@iotecdigital.com> <8CD6F433-FE1E-4D60-ACD0-A9030F300790@iotecdigital.com> Message-ID: <056d3fc7-e09d-24ca-5c5f-8c3b8e1e0c50@sonic.net> On 8/13/19 8:07 AM, Bob Sneidar via use-livecode wrote: > What I was trying to do was include dashes and the letter x but "-x" means something in Regex! Try "[0-9x /-]" -- Mark Wieder ahsoftware at gmail.com From hh at hyperhh.de Tue Aug 13 12:18:20 2019 From: hh at hyperhh.de (hh) Date: Tue, 13 Aug 2019 18:18:20 +0200 Subject: QR-Reader_v100 Message-ID: QR-Reader runs with any edition of LC 8/9 (tested with 9.5/9.0.4/8.1.10) on every platform that supports the browser widget. It is a QR code *reader* which reads from static images that may be slightly rotated/skewed/distorted. You can make it to a QR code *scanner* by providing webCam/mobileCam camera snapshots to read from. Usually images from cameras that can't autofocus or focus manually are not good enough for that. We use the excellent JS library jsQR ( https://github.com/cozmo/jsQR ) and are by that Apache2-licensed. Download QR-Reader from "Sample Stacks" of the LC toolbar or http://livecodeshare.runrev.com/stack/943/ From jjs at krutt.org Tue Aug 13 15:22:43 2019 From: jjs at krutt.org (JJS) Date: Tue, 13 Aug 2019 21:22:43 +0200 Subject: best way to store data from signature widget into mysql db Message-ID: Hi, i was wondering what the best way would be to store a signature of the signature widget into mysql db, so i can recall it. 1. figure out how many keys/elements there are in the array, as? it will be different per signature (serialize it as a single string, or create a JSON and store it directly) or 2. is it possible to export the signature, which probably is an svg, to an jpg/png so i can store it as BLOB? thanks for any insights. Regards, Jerry From rdimola at evergreeninfo.net Tue Aug 13 15:39:03 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 13 Aug 2019 15:39:03 -0400 Subject: best way to store data from signature widget into mysql db In-Reply-To: References: Message-ID: <004401d5520e$c5fadeb0$51f09c10$@net> If everything is in an array then "arrayEncode" the array and store it in a db. Then arrayDecode it when retrieving it from the DB. You may also have to base64Encode/base64Decode to eliminate any binary. Ex: (not tested) Put Base64Encode(arrayEncode(sigArray)) into DBdata Put arrayDecode(Base64Decode(DBdata)) into sigArray 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 JJS via use-livecode Sent: Tuesday, August 13, 2019 3:23 PM To: How to use LiveCode Cc: JJS Subject: best way to store data from signature widget into mysql db Hi, i was wondering what the best way would be to store a signature of the signature widget into mysql db, so i can recall it. 1. figure out how many keys/elements there are in the array, as it will be different per signature (serialize it as a single string, or create a JSON and store it directly) or 2. is it possible to export the signature, which probably is an svg, to an jpg/png so i can store it as BLOB? thanks for any insights. Regards, Jerry _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Tue Aug 13 16:12:41 2019 From: jjs at krutt.org (JJS) Date: Tue, 13 Aug 2019 22:12:41 +0200 Subject: best way to store data from signature widget into mysql db In-Reply-To: <004401d5520e$c5fadeb0$51f09c10$@net> References: <004401d5520e$c5fadeb0$51f09c10$@net> Message-ID: Ok yes, i did not think about that. Thanks Ralph for pointing me to that. I will test it. Kind regards, Jerry Op 13-8-2019 om 21:39 schreef Ralph DiMola via use-livecode: > If everything is in an array then "arrayEncode" the array and store it in a db. Then arrayDecode it when retrieving it from the DB. You may also have to base64Encode/base64Decode to eliminate any binary. > > Ex: (not tested) > Put Base64Encode(arrayEncode(sigArray)) into DBdata > Put arrayDecode(Base64Decode(DBdata)) into sigArray > > 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 JJS via use-livecode > Sent: Tuesday, August 13, 2019 3:23 PM > To: How to use LiveCode > Cc: JJS > Subject: best way to store data from signature widget into mysql db > > Hi, > > > i was wondering what the best way would be to store a signature of the signature widget into mysql db, so i can recall it. > > 1. figure out how many keys/elements there are in the array, as it will be different per signature (serialize it as a single string, or create a JSON and store it directly) > > or > > 2. is it possible to export the signature, which probably is an svg, to an jpg/png so i can store it as BLOB? > > > thanks for any insights. > > > Regards, > > Jerry > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rolf.kocherhans at uzh.ch Wed Aug 14 04:14:54 2019 From: rolf.kocherhans at uzh.ch (Rolf Kocherhans) Date: Wed, 14 Aug 2019 10:14:54 +0200 Subject: Is this broken (set the cursor to watch) Message-ID: <2450DE30-3FA2-4355-9DD7-20840723FFD1@uzh.ch> Is it just me, or are all "set the cursor to xxxxxx? broken ? -> I use LC 9.5 on macOS Regards Rolf From klaus at major-k.de Wed Aug 14 04:19:07 2019 From: klaus at major-k.de (Klaus major-k) Date: Wed, 14 Aug 2019 10:19:07 +0200 Subject: Is this broken (set the cursor to watch) In-Reply-To: <2450DE30-3FA2-4355-9DD7-20840723FFD1@uzh.ch> References: <2450DE30-3FA2-4355-9DD7-20840723FFD1@uzh.ch> Message-ID: <702C0D8E-5826-442D-A7D7-BEAD26839916@major-k.de> Hi Rolf, > Am 14.08.2019 um 10:14 schrieb Rolf Kocherhans via use-livecode : > Is it just me, or are all "set the cursor to xxxxxx? broken ? > -> I use LC 9.5 on macOS same here, but this works for me: ... set cursor to hand lock cursor ... > Regards > Rolf Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From dsc at swcp.com Wed Aug 14 09:20:39 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Wed, 14 Aug 2019 07:20:39 -0600 Subject: Is this broken (set the cursor to watch) In-Reply-To: <2450DE30-3FA2-4355-9DD7-20840723FFD1@uzh.ch> References: <2450DE30-3FA2-4355-9DD7-20840723FFD1@uzh.ch> Message-ID: <4B057355-C418-4F6F-8358-90E684915B57@swcp.com> This works for me: on mouseUp pButtonNumber set cursor to watch wait 2 seconds end mouseUp > On Aug 14, 2019, at 2:14 AM, Rolf Kocherhans via use-livecode wrote: > > Is it just me, or are all "set the cursor to xxxxxx? broken ? > > -> I use LC 9.5 on macOS > > Regards > Rolf > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Wed Aug 14 13:35:56 2019 From: hh at hyperhh.de (hh) Date: Wed, 14 Aug 2019 19:35:56 +0200 Subject: QR-Reader_v100 Message-ID: <0EF8A816-A5BA-4F54-83BB-6CA667FF0C40@hyperhh.de> Updated to version v101. Download QR-Reader_v101 from "Sample Stacks" of the LC toolbar or http://livecodeshare.runrev.com/stack/943/ The stack works now also on linux with snapshots from the browser widget or other apps on screen using a lengthy but clever workaround by Mark Wieder (see bug # 20104). Dragging images from apps outside LC works now also on Win. Note. On linux use http://forums.livecode.com/viewtopic.php?p=153351#p153351 to have the browser widget run on LC 8/9 with Ubuntu 1604 (64bit). In sum, the QR-Reader helpers besides snapshots work now with images ("nots" are LC bugs) in the sample stack as follows. Mac: CA, CB, DA. But not DB. Win: CA, DA. But not CB and DB. linux: CA. But not DA, CB and DB. CA = Copy/Paste from other apps CB = Copy/Paste from browser widget (rightClick) DA = Drag from other apps DB = Drag from browser widget > I wrote: > > QR-Reader runs with any edition of LC 8/9 (tested with 9.5/9.0.4/8.1.10) > on every platform that supports the browser widget. > > It is a QR code *reader* which reads from static images that may be > slightly rotated/skewed/distorted. > > You can make it to a QR code *scanner* by providing webCam/mobileCam > camera snapshots to read from. Usually images from cameras that can't > autofocus or focus manually are not good enough for that. > > We use the excellent JS library jsQR > ( https://github.com/cozmo/jsQR ) and are by that Apache2-licensed. > > Download QR-Reader from "Sample Stacks" of the LC toolbar or > http://livecodeshare.runrev.com/stack/943/ From jjs at krutt.org Wed Aug 14 14:08:44 2019 From: jjs at krutt.org (JJS) Date: Wed, 14 Aug 2019 20:08:44 +0200 Subject: QR-Reader_v100 In-Reply-To: <0EF8A816-A5BA-4F54-83BB-6CA667FF0C40@hyperhh.de> References: <0EF8A816-A5BA-4F54-83BB-6CA667FF0C40@hyperhh.de> Message-ID: <49a98453-de1e-199c-52f3-f9ccd5c29d99@krutt.org> So with this tip the browser widget then runs on Linux (Ubuntu) but only in the IDE? Not as standalone? Op 14-8-2019 om 19:35 schreef hh via use-livecode: > Updated to version v101. > > Download QR-Reader_v101 from "Sample Stacks" of the LC toolbar or > http://livecodeshare.runrev.com/stack/943/ > > The stack works now also on linux with snapshots from the browser widget or > other apps on screen using a lengthy but clever workaround by Mark Wieder > (see bug # 20104). Dragging images from apps outside LC works now also on Win. > > Note. On linux use http://forums.livecode.com/viewtopic.php?p=153351#p153351 > to have the browser widget run on LC 8/9 with Ubuntu 1604 (64bit). > > In sum, the QR-Reader helpers besides snapshots work now with images > ("nots" are LC bugs) in the sample stack as follows. > > Mac: CA, CB, DA. But not DB. > Win: CA, DA. But not CB and DB. > linux: CA. But not DA, CB and DB. > > CA = Copy/Paste from other apps > CB = Copy/Paste from browser widget (rightClick) > DA = Drag from other apps > DB = Drag from browser widget > >> I wrote: >> >> QR-Reader runs with any edition of LC 8/9 (tested with 9.5/9.0.4/8.1.10) >> on every platform that supports the browser widget. >> >> It is a QR code *reader* which reads from static images that may be >> slightly rotated/skewed/distorted. >> >> You can make it to a QR code *scanner* by providing webCam/mobileCam >> camera snapshots to read from. Usually images from cameras that can't >> autofocus or focus manually are not good enough for that. >> >> We use the excellent JS library jsQR >> ( https://github.com/cozmo/jsQR ) and are by that Apache2-licensed. >> >> Download QR-Reader from "Sample Stacks" of the LC toolbar or >> http://livecodeshare.runrev.com/stack/943/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Wed Aug 14 14:54:37 2019 From: hh at hyperhh.de (hh) Date: Wed, 14 Aug 2019 20:54:37 +0200 Subject: QR-Reader_v100 Message-ID: <1128C633-4B79-4C72-B4DF-64B504AA4FCB@hyperhh.de> > So with this tip the browser widget then runs on Linux (Ubuntu) but only > in the IDE? Not as standalone? On linux QR-Reader runs here fine with LC 9.0.5 and 8.1.10 in the IDE on Ubuntu/xUbuntu 1604 64 bit and also as standalone which was made on Mac using LC 9.0.5 (with "search for required inclusions"). Of course, if you get problems you can do when installing (by script) the same procedure with your standalone executable as with the IDE, that is use shell ("export LC_ALL= LC_NUMERIC=C; export LIBGL_DRI3_DISABLE=1"). From jjs at krutt.org Wed Aug 14 15:33:26 2019 From: jjs at krutt.org (JJS) Date: Wed, 14 Aug 2019 21:33:26 +0200 Subject: QR-Reader_v100 In-Reply-To: <1128C633-4B79-4C72-B4DF-64B504AA4FCB@hyperhh.de> References: <1128C633-4B79-4C72-B4DF-64B504AA4FCB@hyperhh.de> Message-ID: <1dec9b34-558d-b497-8d60-8f479d35b7b7@krutt.org> Great! Thanks for the explanation. Will test some out in a couple of days. I'd like to have the browser running on Ubuntu Standalone Op 14-8-2019 om 20:54 schreef hh via use-livecode: >> So with this tip the browser widget then runs on Linux (Ubuntu) but only >> in the IDE? Not as standalone? > On linux QR-Reader runs here fine with LC 9.0.5 and 8.1.10 in the IDE > on Ubuntu/xUbuntu 1604 64 bit and also as standalone which was made on > Mac using LC 9.0.5 (with "search for required inclusions"). > > Of course, if you get problems you can do when installing (by script) > the same procedure with your standalone executable as with the IDE, that is > use shell ("export LC_ALL= LC_NUMERIC=C; export LIBGL_DRI3_DISABLE=1"). > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Fri Aug 16 14:10:12 2019 From: dsc at swcp.com (dsc at swcp.com) Date: Fri, 16 Aug 2019 12:10:12 -0600 Subject: Rocky islands In-Reply-To: References: <67DE9E99-61ED-4782-B241-719C6ECFD074@iotecdigital.com> Message-ID: I wonder if my Brother MFC-9840CDW multifunction laser printer will make the leap to 64-bit-only Catalina. I will probably be able to find generic print drivers. I think it would be able to scan by email or USB, but maybe generic TWAIN will work. Sending a fax might take some looking about. I'm thinking maybe it will make the leap, but with a little work, not "it just works". I feel like I just got it. I got it when doing some barcode and "scantron" work with LiveCode. I stopped printing out big notebooks long ago, so it is lasting longer than Brother probably thought it would. Even so, Brother and Apple seem to have put that model to pasture. Rambling... At 85 lbs, it violates my 30 lb lab limit. (Getting older, you know.) But, I just filled it with toner... (Oh, if someone is thinking of surprising me with a Mac Pro, that weight limit goes up to 50 pounds.) So... Catalina. > On Jul 22, 2019, at 9:21 AM, Dar Scott Consulting via use-livecode wrote: > > In trying to take a positive view on this... > > Voice command and Sidecar might make it easier to step aside in a demo or presentation. > > Sidecar might be handy as a sketch input. Maybe. You know, like an alternative mouse. > > Sidecar might be a handy place to put the Message Box or a debug window. > > Screen Time might be handy for those of us who feel we goof off too much. (I use Qbserve for time management.) > > Color filter options can help those with color vision deficiencies and help others see problem colors on a broader context. > > The Notes enhancements look interesting. (I am readying for an electronic lab notebook, but Notes might delay that; I'll try it.) > > Being able to run some iOS apps on the Mac is cool, but I wish it could run all, transparently. It is frustrating to find just the right app and, oh, it is iOS only. > > Isolating the system from stuff I try is cool. > > Metal! > > > However, crowd-sourced Bluetooth locating is scary. > > And the first time to run an app can take a while, it seems, but maybe that is really a good thing. > > > >> On Jul 22, 2019, at 8:43 AM, Bob Sneidar via use-livecode wrote: >> >> Sounds like you are inferring a lot more into that PR fluff piece than is warranted. I didn't see anywhere in the statement the word, "only". Are you saying that Catalina will ONLY do those things listed in the statement, and nothing else? That seems extreme to me. >> >> Bob S >> >> >>> On Jul 21, 2019, at 14:31 , Richmond via use-livecode wrote: >>> >>> "macOS Catalina gives you more of everything you love about Mac. Experience music, TV, and podcasts in three all-new Mac apps. Enjoy your favorite iPad apps now on your Mac. Extend your workspace and expand your creativity with iPad and Apple Pencil. And discover smart new features in the apps you use every day. Now you can take everything you do above and beyond." >>> >>> Wow: I can translate that into far, far easier language: >>> >>> macOS Catalina gives you more of a plastic bathtoy; an extended gramophone player, TV, fancy telephone and pornogram, and less of what I was brought up to believe a computer really should be. >>> >>> Mind you, the "mene, mene, tekel, up-yours!" was there for all to see when Steve Jobs killed off Hypercard. >>> >>> "Enjoy" . . . Cor! John Calvin was right. >>> >>> Love, Richmond. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Fri Aug 16 14:25:06 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 16 Aug 2019 20:25:06 +0200 Subject: anyone still using altMobileResizer? In-Reply-To: References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> <14f9e5d7-7ee3-9da0-06b0-fa0f48b08239@krutt.org> <0F6FF643-6190-4ACE-90E8-DA25C8F28C49@m-r-d.de> Message-ID: <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> Hi Jerry, did you have time to check altMobileResizer yet? If so, what do you think about it? Seems there is no one on the list who uses this plugin. Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 28.06.2019 um 20:00 schrieb JJS via use-livecode >: > > Thanks Matthias, > > will check it out in a few days, because it is getting really hot here you know. Tommorow i'll go to The Hague and sunday i will be probably lying in my swimming pool the whole day in the backyard. It's not so big but good enough (2x3mtr) :) > > > Ciao! > > Jerry > > > Op 27-6-2019 om 22:41 schreef Matthias Rebbe via use-livecode: >> This is the link to the plugin Chipp posted in 2012 >> http://www.gadgetplugins.com/altplugins/altMobileResizer.rev > >> >> and this is a 5 minutes video explaining how to use the plugin. >> https://www.youtube.com/watch?v=TLWD5KsstFc > >> >> I have v0.9.24 running. This seems to be the latest available version. >> >> Regards, >> >> Matthias >> >> >> >> Matthias Rebbe >> >> free tools for Livecoders: >> https://instamaker.dermattes.de > >> https://winsignhelper.dermattes.de > >> >>> Am 27.06.2019 um 22:21 schrieb JJS via use-livecode >>: >>> >>> Never used it. >>> >>> Where can i find it? i don't see it in the sample stacks. >>> >>> thx >>> >>> Jerry >>> >>> Op 27-6-2019 om 12:17 schreef Matthias Rebbe via use-livecode: >>>> I am currently building a mobile app for iOS and Android. I am looking to take care of all possible screen resolution. >>>> I know there is the fullscreenmode command, but will this turn out satisfactory. >>>> >>>> I have still Chipp Walters altMobileResizer plugin installed and tried it with my app. >>>> So far the resizing (including text resizing) of all controls, even the header bar and navigation bar widgets, is working w/o problems. >>>> >>>> Is anyone else still using that plugin for resizing? Or are there better ways than using fullscreenmode or the altMobileResizer plugin? >>>> >>>> Regards, >>>> >>>> Matthias >>>> >>>> >>>> >>>> Matthias Rebbe >>>> >>>> free tools for Livecoders: >>>> https://instamaker.dermattes.de > >> >>>> https://winsignhelper.dermattes.de > >> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Fri Aug 16 14:55:53 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 16 Aug 2019 20:55:53 +0200 Subject: How do you Message-ID: Hi, some weeks ago i?ve asked if anyone else is using altMobileResizer, but it seems on one is using that plugin. Especially on Android, where so many devices with so many screen resolutions are available, how do you handle all these resolutions in your mobile apps? Regards, Matthias Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From matthias_livecode_150811 at m-r-d.de Fri Aug 16 14:57:17 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Fri, 16 Aug 2019 20:57:17 +0200 Subject: How do you handle different screen resolutions in mobile apps In-Reply-To: References: Message-ID: Please excuse, my subject was not complete. Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 16.08.2019 um 20:55 schrieb Matthias Rebbe via use-livecode >: > > Hi, > > some weeks ago i?ve asked if anyone else is using altMobileResizer, but it seems on one is using that plugin. > > Especially on Android, where so many devices with so many screen resolutions are available, how do you handle all these resolutions in your mobile apps? > > Regards, > Matthias > > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > > WinSignMaker Mac > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Fri Aug 16 15:43:25 2019 From: jjs at krutt.org (Jjs) Date: Fri, 16 Aug 2019 21:43:25 +0200 Subject: anyone still using altMobileResizer? In-Reply-To: <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> <14f9e5d7-7ee3-9da0-06b0-fa0f48b08239@krutt.org> <0F6FF643-6190-4ACE-90E8-DA25C8F28C49@m-r-d.de> <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> Message-ID: <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> Hi Matthias, did not test it yet, sorry. Will do tomorrow and let you know. Ciao! Jerry Matthias Rebbe via use-livecode schreef op 16 augustus 2019 20:25:06 CEST: >Hi Jerry, > >did you have time to check altMobileResizer yet? If so, what do you >think about it? > >Seems there is no one on the list who uses this plugin. > >Matthias > > >Matthias Rebbe > >free tools for Livecoders: >InstaMaker >WinSignMaker Mac > >> Am 28.06.2019 um 20:00 schrieb JJS via use-livecode >>: >> >> Thanks Matthias, >> >> will check it out in a few days, because it is getting really hot >here you know. Tommorow i'll go to The Hague and sunday i will be >probably lying in my swimming pool the whole day in the backyard. It's >not so big but good enough (2x3mtr) :) >> >> >> Ciao! >> >> Jerry >> >> >> Op 27-6-2019 om 22:41 schreef Matthias Rebbe via use-livecode: >>> This is the link to the plugin Chipp posted in 2012 >>> http://www.gadgetplugins.com/altplugins/altMobileResizer.rev > >> >>> >>> and this is a 5 minutes video explaining how to use the plugin. >>> https://www.youtube.com/watch?v=TLWD5KsstFc > >> >>> >>> I have v0.9.24 running. This seems to be the latest available >version. >>> >>> Regards, >>> >>> Matthias >>> >>> >>> >>> Matthias Rebbe >>> >>> free tools for Livecoders: >>> https://instamaker.dermattes.de >> >>> https://winsignhelper.dermattes.de > >> >>> >>>> Am 27.06.2019 um 22:21 schrieb JJS via use-livecode > >>>: >>>> >>>> Never used it. >>>> >>>> Where can i find it? i don't see it in the sample stacks. >>>> >>>> thx >>>> >>>> Jerry >>>> >>>> Op 27-6-2019 om 12:17 schreef Matthias Rebbe via use-livecode: >>>>> I am currently building a mobile app for iOS and Android. I am >looking to take care of all possible screen resolution. >>>>> I know there is the fullscreenmode command, but will this turn out >satisfactory. >>>>> >>>>> I have still Chipp Walters altMobileResizer plugin installed and >tried it with my app. >>>>> So far the resizing (including text resizing) of all controls, >even the header bar and navigation bar widgets, is working w/o >problems. >>>>> >>>>> Is anyone else still using that plugin for resizing? Or are there >better ways than using fullscreenmode or the altMobileResizer plugin? >>>>> >>>>> Regards, >>>>> >>>>> Matthias >>>>> >>>>> >>>>> >>>>> Matthias Rebbe >>>>> >>>>> free tools for Livecoders: >>>>> https://instamaker.dermattes.de >> > >>> >>>>> https://winsignhelper.dermattes.de > >> > >>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com > >> >>>>> Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com > >> >>>> Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn beknoptheid. From tom at makeshyft.com Fri Aug 16 17:13:53 2019 From: tom at makeshyft.com (Tom Glod) Date: Fri, 16 Aug 2019 17:13:53 -0400 Subject: anyone still using altMobileResizer? In-Reply-To: <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> <14f9e5d7-7ee3-9da0-06b0-fa0f48b08239@krutt.org> <0F6FF643-6190-4ACE-90E8-DA25C8F28C49@m-r-d.de> <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> Message-ID: This looks very useful thanks for bringing this to my attention. On Fri, Aug 16, 2019 at 3:44 PM Jjs via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Matthias, did not test it yet, sorry. Will do tomorrow and let you > know. > > Ciao! > Jerry > > Matthias Rebbe via use-livecode schreef > op 16 augustus 2019 20:25:06 CEST: > >Hi Jerry, > > > >did you have time to check altMobileResizer yet? If so, what do you > >think about it? > > > >Seems there is no one on the list who uses this plugin. > > > >Matthias > > > > > >Matthias Rebbe > > > >free tools for Livecoders: > >InstaMaker > >WinSignMaker Mac > > > >> Am 28.06.2019 um 20:00 schrieb JJS via use-livecode > >>: > >> > >> Thanks Matthias, > >> > >> will check it out in a few days, because it is getting really hot > >here you know. Tommorow i'll go to The Hague and sunday i will be > >probably lying in my swimming pool the whole day in the backyard. It's > >not so big but good enough (2x3mtr) :) > >> > >> > >> Ciao! > >> > >> Jerry > >> > >> > >> Op 27-6-2019 om 22:41 schreef Matthias Rebbe via use-livecode: > >>> This is the link to the plugin Chipp posted in 2012 > >>> http://www.gadgetplugins.com/altplugins/altMobileResizer.rev > > > > >> > >>> > >>> and this is a 5 minutes video explaining how to use the plugin. > >>> https://www.youtube.com/watch?v=TLWD5KsstFc > > > > >> > >>> > >>> I have v0.9.24 running. This seems to be the latest available > >version. > >>> > >>> Regards, > >>> > >>> Matthias > >>> > >>> > >>> > >>> Matthias Rebbe > >>> > >>> free tools for Livecoders: > >>> https://instamaker.dermattes.de > >> > >>> https://winsignhelper.dermattes.de > > > > >> > >>> > >>>> Am 27.06.2019 um 22:21 schrieb JJS via use-livecode > > > > >>>: > >>>> > >>>> Never used it. > >>>> > >>>> Where can i find it? i don't see it in the sample stacks. > >>>> > >>>> thx > >>>> > >>>> Jerry > >>>> > >>>> Op 27-6-2019 om 12:17 schreef Matthias Rebbe via use-livecode: > >>>>> I am currently building a mobile app for iOS and Android. I am > >looking to take care of all possible screen resolution. > >>>>> I know there is the fullscreenmode command, but will this turn out > >satisfactory. > >>>>> > >>>>> I have still Chipp Walters altMobileResizer plugin installed and > >tried it with my app. > >>>>> So far the resizing (including text resizing) of all controls, > >even the header bar and navigation bar widgets, is working w/o > >problems. > >>>>> > >>>>> Is anyone else still using that plugin for resizing? Or are there > >better ways than using fullscreenmode or the altMobileResizer plugin? > >>>>> > >>>>> Regards, > >>>>> > >>>>> Matthias > >>>>> > >>>>> > >>>>> > >>>>> Matthias Rebbe > >>>>> > >>>>> free tools for Livecoders: > >>>>> https://instamaker.dermattes.de > >> > > > >>> > >>>>> https://winsignhelper.dermattes.de > > > > >> > > > > > >>> > >>>>> _______________________________________________ > >>>>> use-livecode mailing list > >>>>> use-livecode at lists.runrev.com > > > > >> > >>>>> Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > >> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > > > > >> > >>>> Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > >> > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > >_______________________________________________ > >use-livecode mailing list > >use-livecode at lists.runrev.com > >Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn > beknoptheid. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Fri Aug 16 17:14:57 2019 From: tom at makeshyft.com (Tom Glod) Date: Fri, 16 Aug 2019 17:14:57 -0400 Subject: anyone still using altMobileResizer? In-Reply-To: References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> <14f9e5d7-7ee3-9da0-06b0-fa0f48b08239@krutt.org> <0F6FF643-6190-4ACE-90E8-DA25C8F28C49@m-r-d.de> <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> Message-ID: and thanks for Chipp for the framework...I will get to use it in september. On Fri, Aug 16, 2019 at 5:13 PM Tom Glod wrote: > This looks very useful thanks for bringing this to my attention. > > On Fri, Aug 16, 2019 at 3:44 PM Jjs via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Matthias, did not test it yet, sorry. Will do tomorrow and let you >> know. >> >> Ciao! >> Jerry >> >> Matthias Rebbe via use-livecode schreef >> op 16 augustus 2019 20:25:06 CEST: >> >Hi Jerry, >> > >> >did you have time to check altMobileResizer yet? If so, what do you >> >think about it? >> > >> >Seems there is no one on the list who uses this plugin. >> > >> >Matthias >> > >> > >> >Matthias Rebbe >> > >> >free tools for Livecoders: >> >InstaMaker >> >WinSignMaker Mac >> > >> >> Am 28.06.2019 um 20:00 schrieb JJS via use-livecode >> >>: >> >> >> >> Thanks Matthias, >> >> >> >> will check it out in a few days, because it is getting really hot >> >here you know. Tommorow i'll go to The Hague and sunday i will be >> >probably lying in my swimming pool the whole day in the backyard. It's >> >not so big but good enough (2x3mtr) :) >> >> >> >> >> >> Ciao! >> >> >> >> Jerry >> >> >> >> >> >> Op 27-6-2019 om 22:41 schreef Matthias Rebbe via use-livecode: >> >>> This is the link to the plugin Chipp posted in 2012 >> >>> http://www.gadgetplugins.com/altplugins/altMobileResizer.rev >> > >> >> >> >> >>> >> >>> and this is a 5 minutes video explaining how to use the plugin. >> >>> https://www.youtube.com/watch?v=TLWD5KsstFc >> > >> >> >> >> >>> >> >>> I have v0.9.24 running. This seems to be the latest available >> >version. >> >>> >> >>> Regards, >> >>> >> >>> Matthias >> >>> >> >>> >> >>> >> >>> Matthias Rebbe >> >>> >> >>> free tools for Livecoders: >> >>> https://instamaker.dermattes.de >> >> >> >>> https://winsignhelper.dermattes.de >> > >> >> >> >> >>> >> >>>> Am 27.06.2019 um 22:21 schrieb JJS via use-livecode >> > >> >> >>>: >> >>>> >> >>>> Never used it. >> >>>> >> >>>> Where can i find it? i don't see it in the sample stacks. >> >>>> >> >>>> thx >> >>>> >> >>>> Jerry >> >>>> >> >>>> Op 27-6-2019 om 12:17 schreef Matthias Rebbe via use-livecode: >> >>>>> I am currently building a mobile app for iOS and Android. I am >> >looking to take care of all possible screen resolution. >> >>>>> I know there is the fullscreenmode command, but will this turn out >> >satisfactory. >> >>>>> >> >>>>> I have still Chipp Walters altMobileResizer plugin installed and >> >tried it with my app. >> >>>>> So far the resizing (including text resizing) of all controls, >> >even the header bar and navigation bar widgets, is working w/o >> >problems. >> >>>>> >> >>>>> Is anyone else still using that plugin for resizing? Or are there >> >better ways than using fullscreenmode or the altMobileResizer plugin? >> >>>>> >> >>>>> Regards, >> >>>>> >> >>>>> Matthias >> >>>>> >> >>>>> >> >>>>> >> >>>>> Matthias Rebbe >> >>>>> >> >>>>> free tools for Livecoders: >> >>>>> https://instamaker.dermattes.de >> >> >> > >> >>> >> >>>>> https://winsignhelper.dermattes.de >> > >> >> >> >> >> > >> >> >>> >> >>>>> _______________________________________________ >> >>>>> use-livecode mailing list >> >>>>> use-livecode at lists.runrev.com >> > >> >> >> >> >>>>> Please visit this url to subscribe, unsubscribe and manage your >> >subscription preferences: >> >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> >> >> >> >>>> _______________________________________________ >> >>>> use-livecode mailing list >> >>>> use-livecode at lists.runrev.com >> > >> >> >> >> >>>> Please visit this url to subscribe, unsubscribe and manage your >> >subscription preferences: >> >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> >> >> >> >>> _______________________________________________ >> >>> use-livecode mailing list >> >>> use-livecode at lists.runrev.com >> >>> Please visit this url to subscribe, unsubscribe and manage your >> >subscription preferences: >> >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> >subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> >_______________________________________________ >> >use-livecode mailing list >> >use-livecode at lists.runrev.com >> >Please visit this url to subscribe, unsubscribe and manage your >> >subscription preferences: >> >http://lists.runrev.com/mailman/listinfo/use-livecode >> >> -- >> Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn >> beknoptheid. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From tom at makeshyft.com Fri Aug 16 21:21:39 2019 From: tom at makeshyft.com (Tom Glod) Date: Fri, 16 Aug 2019 21:21:39 -0400 Subject: Reposting from a thread in 2016 Message-ID: Hey Folks I found this gem in a thread from 2016..... from Mark Waddingham ... the thread helped me solve a problem with taking a snapshot of a browser window. Thanks Mark for taking the time to tell us about the inner workings of the Engine. -------------------------------------------------------------- There are three types of export/import snapshot. The first uses the screen buffer - the co-ordinates have to be in screen co-ordinate space: export snapshot from rectangle tRect The second uses the window buffer (if the OS has such things, otherwise it is equivalent to using the screen buffer after a translation of co-ordinates) - the co-ordinates have to be in window co-ordinate space (NOT card co-ordinate space): export snapshot from rectangle tRect of window tWindowId The third uses no buffer at all, it asks the target object (and children) to render the specified rect of itself into an offscreen buffer (the same mechanism which the engine uses to update a window when the OS requests it, or a portion gets changed) - the co-ordinates have to be in card co-ordinate space: export snapshot from rectangle tRect of Now, the final form here will work for any object which is drawn by the LiveCode engine - it will not necessarily work for objects which use 'native' layers to display things (such as the browser). Whether or not one can get a native layer to render itself entirely depends on the native layer. For example, we've not had any success at all in persuading the CEF browser to give us a snapshot as it uses various 'native' things which do not want to give up their backing store of pixels. Therefore, if you want to take a snapshot of a stack containing native layers your best bet to make this work generally is to use the screen or window form. When you do this you do have to take into account the fact that cards might have a vertical scroll due to menus (that mysterious 22 px) - you can get the current scroll amount by using 'the vscroll of stack ...'. Warmest Regards, Mark. From jjs at krutt.org Sat Aug 17 05:22:48 2019 From: jjs at krutt.org (JJS) Date: Sat, 17 Aug 2019 11:22:48 +0200 Subject: anyone still using altMobileResizer? In-Reply-To: <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> <14f9e5d7-7ee3-9da0-06b0-fa0f48b08239@krutt.org> <0F6FF643-6190-4ACE-90E8-DA25C8F28C49@m-r-d.de> <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> Message-ID: <68ae4c24-47e3-bd78-f266-909c172e7e2d@krutt.org> Hi Matthias, a few things i don't get. Why does it set the stack size so small, i don't see the other controls anymore. I like to develop on 768x1024 and then i use set the fullscreenmode to "exactfit" disadvantage is sometimes the view of circles or squares are distorted. Should i not use the fullscreenmode with this plugin? The other way around seems non logic to me, create small and then resize to a bigger screen.(yes i can add multiple images for the right sizes, but i'm lazy concerning that) Why is the openStack handler placed on the first card and not on the stack script? It works different than fullscreenmode. Fullscreenmode crops the whole card, and with this i mis half of it when deployed on a phone(on tablet looks ok) Or i don't understand it. But i see what you are trying to do with it and it could be awesome in helping having a great layout on all size phones. Thanks! Jerry Op 16-8-2019 om 21:43 schreef Jjs via use-livecode: > Hi Matthias, did not test it yet, sorry. Will do tomorrow and let you know. > > Ciao! > Jerry > > Matthias Rebbe via use-livecode schreef op 16 augustus 2019 20:25:06 CEST: >> Hi Jerry, >> >> did you have time to check altMobileResizer yet? If so, what do you >> think about it? >> >> Seems there is no one on the list who uses this plugin. >> >> Matthias >> >> >> Matthias Rebbe >> >> free tools for Livecoders: >> InstaMaker >> WinSignMaker Mac >> >>> Am 28.06.2019 um 20:00 schrieb JJS via use-livecode >> >: >>> Thanks Matthias, >>> >>> will check it out in a few days, because it is getting really hot >> here you know. Tommorow i'll go to The Hague and sunday i will be >> probably lying in my swimming pool the whole day in the backyard. It's >> not so big but good enough (2x3mtr) :) >>> >>> Ciao! >>> >>> Jerry >>> >>> >>> Op 27-6-2019 om 22:41 schreef Matthias Rebbe via use-livecode: >>>> This is the link to the plugin Chipp posted in 2012 >>>> http://www.gadgetplugins.com/altplugins/altMobileResizer.rev >> >> > > >>>> and this is a 5 minutes video explaining how to use the plugin. >>>> https://www.youtube.com/watch?v=TLWD5KsstFc >> >> > > >>>> I have v0.9.24 running. This seems to be the latest available >> version. >>>> Regards, >>>> >>>> Matthias >>>> >>>> >>>> >>>> Matthias Rebbe >>>> >>>> free tools for Livecoders: >>>> https://instamaker.dermattes.de >> > >>>> https://winsignhelper.dermattes.de >> >> > > >>>>> Am 27.06.2019 um 22:21 schrieb JJS via use-livecode >> >> > >>: >>>>> Never used it. >>>>> >>>>> Where can i find it? i don't see it in the sample stacks. >>>>> >>>>> thx >>>>> >>>>> Jerry >>>>> >>>>> Op 27-6-2019 om 12:17 schreef Matthias Rebbe via use-livecode: >>>>>> I am currently building a mobile app for iOS and Android. I am >> looking to take care of all possible screen resolution. >>>>>> I know there is the fullscreenmode command, but will this turn out >> satisfactory. >>>>>> I have still Chipp Walters altMobileResizer plugin installed and >> tried it with my app. >>>>>> So far the resizing (including text resizing) of all controls, >> even the header bar and navigation bar widgets, is working w/o >> problems. >>>>>> Is anyone else still using that plugin for resizing? Or are there >> better ways than using fullscreenmode or the altMobileResizer plugin? >>>>>> Regards, >>>>>> >>>>>> Matthias >>>>>> >>>>>> >>>>>> >>>>>> Matthias Rebbe >>>>>> >>>>>> free tools for Livecoders: >>>>>> https://instamaker.dermattes.de >> > >> >> >> >>>>>> https://winsignhelper.dermattes.de >> >> > > >> > >> > >> >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at lists.runrev.com >> >> > > >>>>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > > >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >> >> > > >>>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > > >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Sat Aug 17 08:31:03 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 17 Aug 2019 14:31:03 +0200 Subject: anyone still using altMobileResizer? In-Reply-To: <68ae4c24-47e3-bd78-f266-909c172e7e2d@krutt.org> References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> <14f9e5d7-7ee3-9da0-06b0-fa0f48b08239@krutt.org> <0F6FF643-6190-4ACE-90E8-DA25C8F28C49@m-r-d.de> <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> <68ae4c24-47e3-bd78-f266-909c172e7e2d@krutt.org> Message-ID: Hi Jerry, i am not the developer of altMobileResizer. The developer is Chipp Walters. See my answer below > Am 17.08.2019 um 11:22 schrieb JJS via use-livecode >: > > Hi Matthias, > > > a few things i don't get. > > Why does it set the stack size so small, i don't see the other controls anymore. I think this is because it was already created 2012 or 2013 and it was developed mainly for iOS app development. > I like to develop on 768x1024 and then i use set the fullscreenmode to "exactfit" > Thats also my problem currently. I alos would like to develop in a higher resolution than 320x480. So far altMobileResizer allowed me to avoid setting the fullscreenmode. > disadvantage is sometimes the view of circles or squares are distorted. Should i not use the fullscreenmode with this plugin? > Maybe this is a question for Chipp. > The other way around seems non logic to me, create small and then resize to a bigger screen.(yes i can add multiple images for the right sizes, but i'm lazy concerning that) > > Why is the openStack handler placed on the first card and not on the stack script? > > > It works different than fullscreenmode. Fullscreenmode crops the whole card, and with this i mis half of it when deployed on a phone(on tablet looks ok) > > Or i don't understand it. But i see what you are trying to do with it and it could be awesome in helping having a great layout on all size phones. > > I just wanted to know how many people are still using or may would like to use it. I then would ask Chipp if it would be okay if i or someone else would enhance the plugin. But if there is no interest this would not make sense at all. I?ve also asked yesterday how the people on the list are handling all different screenresolutions in their mobile apps. But so far no one replied. Regards, Matthias > Thanks! > > Jerry From jjs at krutt.org Sat Aug 17 10:45:44 2019 From: jjs at krutt.org (JJS) Date: Sat, 17 Aug 2019 16:45:44 +0200 Subject: anyone still using altMobileResizer? In-Reply-To: References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> <14f9e5d7-7ee3-9da0-06b0-fa0f48b08239@krutt.org> <0F6FF643-6190-4ACE-90E8-DA25C8F28C49@m-r-d.de> <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> <68ae4c24-47e3-bd78-f266-909c172e7e2d@krutt.org> Message-ID: <7ec7c595-7c32-7e80-c4c5-2f117c38b71d@krutt.org> Hi Matthias, ah ok, i did not know. I thought you made it with partly scripts from Chipp. I think this has good potential, but needs indeed some enhancements. Hopefully more people want this and maybe it is doable to enhance it or that Chipp wants to do it. Kind regards, Jerry Op 17-8-2019 om 14:31 schreef Matthias Rebbe via use-livecode: > Hi Jerry, > > i am not the developer of altMobileResizer. The developer is Chipp Walters. > > See my answer below > > >> Am 17.08.2019 um 11:22 schrieb JJS via use-livecode >: >> >> Hi Matthias, >> >> >> a few things i don't get. >> >> Why does it set the stack size so small, i don't see the other controls anymore. > I think this is because it was already created 2012 or 2013 and it was developed mainly for iOS app development. > > > >> I like to develop on 768x1024 and then i use set the fullscreenmode to "exactfit" >> > Thats also my problem currently. I alos would like to develop in a higher resolution than 320x480. > So far altMobileResizer allowed me to avoid setting the fullscreenmode. > >> disadvantage is sometimes the view of circles or squares are distorted. Should i not use the fullscreenmode with this plugin? >> > Maybe this is a question for Chipp. > >> The other way around seems non logic to me, create small and then resize to a bigger screen.(yes i can add multiple images for the right sizes, but i'm lazy concerning that) >> >> Why is the openStack handler placed on the first card and not on the stack script? >> >> >> It works different than fullscreenmode. Fullscreenmode crops the whole card, and with this i mis half of it when deployed on a phone(on tablet looks ok) >> >> Or i don't understand it. But i see what you are trying to do with it and it could be awesome in helping having a great layout on all size phones. >> >> > I just wanted to know how many people are still using or may would like to use it. I then would ask Chipp if it would be okay if i or someone else would enhance the plugin. > > > But if there is no interest this would not make sense at all. > > > I?ve also asked yesterday how the people on the list are handling all different screenresolutions in their mobile apps. But so far no one replied. > > > Regards, > Matthias > >> Thanks! >> >> Jerry > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Aug 17 15:42:35 2019 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 17 Aug 2019 22:42:35 +0300 Subject: set the textColor Message-ID: setthetextColorof(line XOUNT offld "fPROC") to"red" Disnae wark . . . Erm? Richmond. From richmondmathewson at gmail.com Sat Aug 17 15:49:06 2019 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 17 Aug 2019 22:49:06 +0300 Subject: set the textColor In-Reply-To: References: Message-ID: <03a86fd4-c0ae-e2cf-afaa-0e1a3f461c72@gmail.com> O, Aye, here we go: replying to his own post: setthetextColorofline XOUNT offld "fPROC" to"red" Why, Oh Why, Pray tell, should those *P-A-R-E-N-T-H-E-S-E-S* stop things? On 17.08.19 22:42, Richmond wrote: > > setthetextColorof(line XOUNT offld "fPROC") to"red" > > Disnae wark . . . > > Erm? > > Richmond. > From dsc at swcp.com Sat Aug 17 16:00:17 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Sat, 17 Aug 2019 14:00:17 -0600 Subject: set the textColor In-Reply-To: References: Message-ID: <86250614-B0A3-497D-BDAA-4A59AABB2711@swcp.com> And what would you expect the value of the parenthetical expression to be? > On Aug 17, 2019, at 1:42 PM, Richmond via use-livecode wrote: > > setthetextColorof(line XOUNT offld "fPROC") to"red" > > Disnae wark . . . > > Erm? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 17 17:07:16 2019 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 17 Aug 2019 22:07:16 +0100 Subject: set the textColor In-Reply-To: <03a86fd4-c0ae-e2cf-afaa-0e1a3f461c72@gmail.com> References: <03a86fd4-c0ae-e2cf-afaa-0e1a3f461c72@gmail.com> Message-ID: <2237e772-0cbd-f4fc-2039-c6e2da9a042c@tweedly.net> For the same reason you can do ??? put 17 into B but cannot do ??? put 17 into (B) (My over-simplified way of thinking of it is .. B???? is a container - you can put values into it or take them out. (B)?? is just a value - you can only take it out. Similarly, ? line XOUNT of fld "f"????? is a textchunk - you can set its textcolor but (line Xount of fld "F")??? is just a value Alex. On 17/08/2019 20:49, Richmond via use-livecode wrote: > O, Aye, here we go: replying to his own post: > > setthetextColorofline XOUNT offld "fPROC" to"red" > > > Why, Oh Why, Pray tell, should those *P-A-R-E-N-T-H-E-S-E-S* stop things? > > > > On 17.08.19 22:42, Richmond wrote: >> >> setthetextColorof(line XOUNT offld "fPROC") to"red" >> >> Disnae wark . . . >> >> Erm? >> >> Richmond. >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Aug 17 17:51:04 2019 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 18 Aug 2019 00:51:04 +0300 Subject: set the textColor In-Reply-To: <86250614-B0A3-497D-BDAA-4A59AABB2711@swcp.com> References: <86250614-B0A3-497D-BDAA-4A59AABB2711@swcp.com> Message-ID: A long time since I studied Logic. :-[ Richmond. On 17.08.19 23:00, Dar Scott Consulting via use-livecode wrote: > And what would you expect the value of the parenthetical expression to be? > >> On Aug 17, 2019, at 1:42 PM, Richmond via use-livecode wrote: >> >> setthetextColorof(line XOUNT offld "fPROC") to"red" >> >> Disnae wark . . . >> >> Erm? >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 18 01:18:02 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 18 Aug 2019 00:18:02 -0500 Subject: anyone still using altMobileResizer? In-Reply-To: References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> <14f9e5d7-7ee3-9da0-06b0-fa0f48b08239@krutt.org> <0F6FF643-6190-4ACE-90E8-DA25C8F28C49@m-r-d.de> <522E3971-9398-49A0-8AE5-FB8A7EA249BC@m-r-d.de> <58F4C124-07A0-4439-81AF-8FD3A45BB76A@krutt.org> <68ae4c24-47e3-bd78-f266-909c172e7e2d@krutt.org> Message-ID: <16ca3293310.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I use fullscreenMode "showAll" and put the important elements into the "safe" area in the center. I put unimportant filler outside that area, sometimes just a background fill color, sometimes a large image, depending on the layout and content. The extra material fills the edges without interfering with the active controls in the center. Where appropriate, I set the width of header and footer groups to the width of the screen to fill the entire visible area. Or sometimes I just make those groups very wide so that any screen width is still narrower than the group. I haven't had to deal with landscape orientation in any of my mobile apps, so everything is sized and arranged for a vertical orientation. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 17, 2019 7:32:49 AM Matthias Rebbe via use-livecode wrote: > > > I?ve also asked yesterday how the people on the list are handling all > different screenresolutions in their mobile apps. But so far no one replied. From brian at milby7.com Sun Aug 18 20:46:17 2019 From: brian at milby7.com (Brian Milby) Date: Sun, 18 Aug 2019 20:46:17 -0400 Subject: anyone still using altMobileResizer? In-Reply-To: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> References: <3CBD60CC-8776-435D-92EB-6AA64DE26BD3@m-r-d.de> Message-ID: <036a13c5-d836-4684-a25c-d76ad4a9956d@Spark> I?m currently working on taking a stack designed initially using fullscreenmodes and converting pieces of it to use native resolution of the screens. ?The basic requirement is to write resizeStack handlers to take care of your app getting launched on screens of different sizes. ?Not really all that different than doing the same to handle a desktop app. ?Handling rotation is a separate issue with some additional considerations. ?Mixing fullscreenmode stacks and native also has some issues. My suggestion is go all in one way or the other. Currently I?m not considering scaling interface elements (font sizes) based on screen size but only positioning them. ?It would not be that much more difficult to script updating the size, but figuring out the sizes to use would be a little more complicated. ?I think that this is the issue that the library attempts to solve but I have not used it. If your design is simple, then the Geometry Manager may work. ?I did spend some time making that work on mobile, but don?t think it will work for very complex layouts. As for starting small... it makes sense. ?You need to develop your UI at the smallest size that it will work and apply rules on how to adjust when it gets larger. ?It is probably time to increase the minimum though... who really is going to have a device with original iPhone screen size? Thanks, Brian On Jun 27, 2019, 6:18 AM -0400, Matthias Rebbe via use-livecode , wrote: > I am currently building a mobile app for iOS and Android. I am looking to take care of all possible screen resolution. > I know there is the fullscreenmode command, but will this turn out satisfactory. > > I have still Chipp Walters altMobileResizer plugin installed and tried it with my app. > So far the resizing (including text resizing) of all controls, even the header bar and navigation bar widgets, is working w/o problems. > > Is anyone else still using that plugin for resizing? Or are there better ways than using fullscreenmode or the altMobileResizer plugin? > > Regards, > > Matthias > > > > Matthias Rebbe > > free tools for Livecoders: > https://instamaker.dermattes.de > https://winsignhelper.dermattes.de > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Aug 19 10:41:19 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 19 Aug 2019 14:41:19 +0000 Subject: set the textColor In-Reply-To: References: Message-ID: you are forcing the statement in parenthesis to resolve, so it becomes set the tectColor of n to "red" which of course is nonsense. Bob S > On Aug 17, 2019, at 12:42 , Richmond via use-livecode wrote: > > setthetextColorof(line XOUNT offld "fPROC") to"red" > > Disnae wark . . . > > Erm? > > Richmond. From bobsneidar at iotecdigital.com Mon Aug 19 10:44:42 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 19 Aug 2019 14:44:42 +0000 Subject: set the textColor In-Reply-To: References: Message-ID: <3CA1A08B-BD0E-4DC4-9710-C2C22A3A8102@iotecdigital.com> I take that back. You are trying to set the textColor of a string literal which of course you cannot do. Line n of old "fPROC" has to resolve to something before the textColor is set. But of course you can only do that to the field or a chunk of text in the field. Bob S > On Aug 19, 2019, at 07:41 , Bob Sneidar wrote: > > you are forcing the statement in parenthesis to resolve, so it becomes set the tectColor of n to "red" which of course is nonsense. > > Bob S > > >> On Aug 17, 2019, at 12:42 , Richmond via use-livecode wrote: >> >> setthetextColorof(line XOUNT offld "fPROC") to"red" >> >> Disnae wark . . . >> >> Erm? >> >> Richmond. > From dsc at swcp.com Mon Aug 19 10:45:04 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Mon, 19 Aug 2019 08:45:04 -0600 Subject: set the textColor In-Reply-To: References: <86250614-B0A3-497D-BDAA-4A59AABB2711@swcp.com> Message-ID: Have you had a dalliance with a floozy programming language that allows you to do such things? > On Aug 17, 2019, at 3:51 PM, Richmond via use-livecode wrote: > > A long time since I studied Logic. :-[ > > Richmond. > > On 17.08.19 23:00, Dar Scott Consulting via use-livecode wrote: >> And what would you expect the value of the parenthetical expression to be? >> >>> On Aug 17, 2019, at 1:42 PM, Richmond via use-livecode wrote: >>> >>> setthetextColorof(line XOUNT offld "fPROC") to"red" >>> >>> Disnae wark . . . >>> >>> Erm? >>> >>> Richmond. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 19 10:47:35 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 19 Aug 2019 14:47:35 +0000 Subject: set the textColor In-Reply-To: References: <86250614-B0A3-497D-BDAA-4A59AABB2711@swcp.com> Message-ID: <8DCD006D-5BF2-4C55-9675-951B46880AAC@iotecdigital.com> Just don't strand a pointer. :-) Bob S > On Aug 19, 2019, at 07:45 , Dar Scott Consulting via use-livecode wrote: > > Have you had a dalliance with a floozy programming language that allows you to do such things? From panos.merakos at livecode.com Mon Aug 19 10:48:11 2019 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 19 Aug 2019 17:48:11 +0300 Subject: [ANN] This Week in LiveCode 190 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 #190 here: http://bit.ly/2P3bDsE This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From richmondmathewson at gmail.com Mon Aug 19 12:12:08 2019 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 19 Aug 2019 19:12:08 +0300 Subject: set the textColor In-Reply-To: References: <86250614-B0A3-497D-BDAA-4A59AABB2711@swcp.com> Message-ID: <236d6e14-f73f-0f91-6739-e2580fecffca@gmail.com> Neither with "floozy programming languages, nor with plain, simple floozies. ;-) Let's just say I was a bit sleepy after 3 weeks holiday away from LiveCode: just about as cheap as excuses go, but cannot right now think of a better one. Richmond. On 19.08.19 17:45, Dar Scott Consulting via use-livecode wrote: > Have you had a dalliance with a floozy programming language that allows you to do such things? > >> On Aug 17, 2019, at 3:51 PM, Richmond via use-livecode wrote: >> >> A long time since I studied Logic. :-[ >> >> Richmond. >> >> On 17.08.19 23:00, Dar Scott Consulting via use-livecode wrote: >>> And what would you expect the value of the parenthetical expression to be? >>> >>>> On Aug 17, 2019, at 1:42 PM, Richmond via use-livecode wrote: >>>> >>>> setthetextColorof(line XOUNT offld "fPROC") to"red" >>>> >>>> Disnae wark . . . >>>> >>>> Erm? >>>> >>>> Richmond. >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stephen at barncard.com Mon Aug 19 12:30:26 2019 From: stephen at barncard.com (Stephen Barncard) Date: Mon, 19 Aug 2019 09:30:26 -0700 Subject: set the textColor In-Reply-To: <236d6e14-f73f-0f91-6739-e2580fecffca@gmail.com> References: <86250614-B0A3-497D-BDAA-4A59AABB2711@swcp.com> <236d6e14-f73f-0f91-6739-e2580fecffca@gmail.com> Message-ID: We missed you, Richmond On Mon, Aug 19, 2019 at 09:12 Richmond via use-livecode < use-livecode at lists.runrev.com> wrote: > Neither with "floozy programming languages, nor with plain, simple > floozies. ;-) > > Let's just say I was a bit sleepy after 3 weeks holiday away from > LiveCode: just > about as cheap as excuses go, but cannot right now think of a better one. > > Richmond. > > On 19.08.19 17:45, Dar Scott Consulting via use-livecode wrote: > > Have you had a dalliance with a floozy programming language that allows > you to do such things? > > > >> On Aug 17, 2019, at 3:51 PM, Richmond via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> A long time since I studied Logic. :-[ > >> > >> Richmond. > >> > >> On 17.08.19 23:00, Dar Scott Consulting via use-livecode wrote: > >>> And what would you expect the value of the parenthetical expression to > be? > >>> > >>>> On Aug 17, 2019, at 1:42 PM, Richmond via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>>> > >>>> setthetextColorof(line XOUNT offld "fPROC") to"red" > >>>> > >>>> Disnae wark . . . > >>>> > >>>> Erm? > >>>> > >>>> Richmond. > >>>> > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at lists.runrev.com > >>>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>>> http://lists.runrev.com/mailman/listinfo/use-livecode > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 iphonelagi at gmail.com Mon Aug 19 13:05:45 2019 From: iphonelagi at gmail.com (Lagi Pittas) Date: Mon, 19 Aug 2019 18:05:45 +0100 Subject: [ANN] This Week in LiveCode 190 In-Reply-To: References: Message-ID: Hi Panos Considering it was launched a couple of weeks ago https://filemaker.livecode.com/lcfm-native-1-0-launched/ The silence is deafening Either it went great or not as good as expected If you follow that site and see how much work has gone into LC for FM - we know why there has been very little advance in the main product. I ask again as I did a few months ago Are we going to see the backporting of some of the stuff that is in LC for FM? I assume databinding code has had to be written for lc for FM - will we get a version? Will the Mysql framework which we paid for 3 years ago get written now that the heat is off? What about the html bits that Hermann has been waiting for so patiently? This post was brought up because we get a weekly newsletter from you Panos and in the "other livecode news " not a sausage - not a mention on what has happened or is happening. Thats at least 2 newsletters since launch. Regards Lagi On Mon, 19 Aug 2019 at 15:48, panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > 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 #190 here: http://bit.ly/2P3bDsE > > This is a weekly newsletter about LiveCode, focussing on what's been > going on in and around the open source project. New issues will be > released weekly on Mondays. We have a dedicated mailing list that will > deliver each issue directly to you e-mail, so you don't miss any! > > If you have anything you'd like mentioned (a project, a discussion > somewhere, an upcoming event) then please get in touch. > > -- > Panagiotis Merakos > LiveCode Software Developer > > Everyone Can Create Apps > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 19 16:12:25 2019 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 19 Aug 2019 13:12:25 -0700 Subject: How do you handle different screen resolutions in mobile apps In-Reply-To: References: Message-ID: <95bb8341-4a94-732a-89c5-7f101e9d0214@fourthworld.com> Matthias Rebbe wrote: > Especially on Android, where so many devices with so many screen > resolutions are available, how do you handle all these resolutions in > your mobile apps? This is the central question all developers have, whether making native or web apps, ever since mobile platforms were first popularized nearly a decade ago. We're not alone. Far from it. EVERYONE has this question. So how do they handle it? Web designers generically refer to it as "responsive design", as in responding to whatever screen dimensions or orientation the user may have at the moment. In web development, the common method is to make at least two layouts based on a maximum screen width, where one is for full-sized screens and the other is for handheld devices: e.g., if less than 600px the layout is slimmed down and elements placed differently to fit comfortably on screen. Depending on the layout and features, a web developer may use other screen widths to determine layout specifics for in-between devices like "phablets", or for different orientations if the nature of the app requires doing something more than flowing content downward. In web development, layout is governed by properties set via CSS, and are triggered automatically with page rendering. In LC, layout is governed by setting properties via LiveCode Script, and are triggered on a resizeStack handler. So the good news is: none of this is much different from what we've been doing for decades with resizable windows. If you're comfortable moving and resizing controls for normal resizable windows on the desktop, you have the background needed to do the same to accommodate any window size, including the small single-window layouts of mobile. It gets even better: in the very early days of LiveCode for mobile, we had to think about pixel density and work that into our scripts, greatly complicating the arithmetic. But many years ago the core team did an excellent job of liberating us from the many different pixel densities available on mobile platforms. Now, LC's resolution independence automatically accounts for the device's pixel density, allowing us to write our control placement scripts once using logical pixels, and LC does the work with the OS to translate that into physical pixels automatically. So in short, look at your UI, determine which controls may need to be resized or moved, and put that code into a resizeStack handler. And since resizeStack is among the messages available on the desktop as well, you can test your layout code easily as you go, right in the IDE. Moving and resizing controls is usually not the hard task for any LC scripter familiar with LC basics. The harder task can be deciding which controls need adjusting, and how. For that, look at the apps on your phone. Switch orientation, noting which controls are resized, which are moved, etc. Then use the LC Script you already know to do that with your controls in your app. Example ------- Consider a very common UI we've all seen, a message form: -------------------------------------------------------- | -------------------------------------------------- | | | field "To" | | | -------------------------------------------------- | | -------------------------------------------------- | | | field "Body" | | | | | | | | | | | | | | | | | | | -------------------------------------------------- | | ----------- | | | Send | | | ----------- | -------------------------------------------------------- To adjust those controls for all practical sizes snd orientations on every desktop and mobile platform LC supports: on resizeStack x,y set the rect of fld "To" to 20,10,x-20,40 set the rect of fld "Body" to 20, the bottom of fld "To", \ x-20, y- 50 set the bottomRight of btn "Send" to x-10,y-10 end resizeStack -- 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 hh at hyperhh.de Mon Aug 19 16:41:31 2019 From: hh at hyperhh.de (hh) Date: Mon, 19 Aug 2019 22:41:31 +0200 Subject: HTML5 Focus-Move-Resize v_100 Message-ID: <055953D1-EBB7-463B-A688-0BDC80A76EF4@hyperhh.de> The stack shows simple methods how to resize and move a HTML5 standalone in the browser and how to focus a field so that you can start typing at startup without first clicking in a field. Moving a stack window has to be done by JavaScript, the script is in the stack script. It is added to your HTML file on openstack, also if you don't use the auto generated file. The stack is ready for compiling: Just download it and hit the Test button of the LC toolbar. Download "HTML5 Focus-Move-Resize" from "Sample Stacks" of the LC toolbar or http://livecodeshare.runrev.com/download/stack/945/ From hh at hyperhh.de Mon Aug 19 16:51:07 2019 From: hh at hyperhh.de (hh) Date: Mon, 19 Aug 2019 22:51:07 +0200 Subject: HTML5 Focus-Move-Resize v_100 Message-ID: Sorry, the correct download link (if not from "Sample Stacks") is http://livecodeshare.runrev.com/stack/945/ The one below loses the stack name (downloads as "rev" only). > I wrote: > Download "HTML5 Focus-Move-Resize" > from "Sample Stacks" of the LC toolbar or > > http://livecodeshare.runrev.com/download/stack/945/ From bobsneidar at iotecdigital.com Mon Aug 19 18:44:33 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 19 Aug 2019 22:44:33 +0000 Subject: Scaling Imported Images Message-ID: I seem to remember some time ago there was a key combination so that when you sized an image, instead of cropping it, it would scale it. Am I imagining things? I can create a new scaled image in Preview, so no big deal. Bob S From jacque at hyperactivesw.com Tue Aug 20 01:28:56 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Aug 2019 00:28:56 -0500 Subject: Submitting to the Google Play Store Message-ID: <16cad7fe5c0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Has anyone submitted a new app to the Play Store this month since the rules changed? A forum member can't do it: http://forums.livecode.com/viewtopic.php?f=53&t=33000&e=1&view=unread#p182392 Does anyone know why this might fail? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From panos.merakos at livecode.com Tue Aug 20 03:54:27 2019 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 20 Aug 2019 10:54:27 +0300 Subject: [ANN] This Week in LiveCode 190 In-Reply-To: References: Message-ID: Hello Lagi, Indeed, I did not mention this in the LC newsletter. There is no specific reason about this, I just thought this does not fall into any of the categories of the "This Week in LiveCode" newsletter. In the "other LiveCode news" section I usually put discussions about features /bugs in the commercial LC editions, or about issues in app submission to the Apple/Google stores. I also thought this might not interest the majority of the newsletter readers (since the newsletter is mainly about open source LC), and people that are interested have already been informed about the progress of this in other channels. To answer your question, the LCFM launch went really well, and yes, the plan is to backport the features/bugfixes of LCFM into the main product. In fact this is happening already - all the recent Android bugfixes, the memory leak fixes, the Android barcode scanner and others were a result of this backporting. Hope this helps, Regards, Panos -- On Mon, 19 Aug 2019 at 20:06, Lagi Pittas via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos > > Considering it was launched a couple of weeks ago > > https://filemaker.livecode.com/lcfm-native-1-0-launched/ > > The silence is deafening > > Either it went great or not as good as expected > > If you follow that site and see how much work has gone into LC for FM - we > know why there has been very little advance > in the main product. > > I ask again as I did a few months ago > > Are we going to see the backporting of some of the stuff that is in LC for > FM? > I assume databinding code has had to be written for lc for FM - will we get > a version? > Will the Mysql framework which we paid for 3 years ago get written now that > the heat is off? > What about the html bits that Hermann has been waiting for so patiently? > > This post was brought up because we get a weekly newsletter from you Panos > and in the "other livecode news " not a sausage - not a mention on what has > happened or is happening. > Thats at least 2 newsletters since launch. > > Regards Lagi > > > On Mon, 19 Aug 2019 at 15:48, panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > 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 #190 here: http://bit.ly/2P3bDsE > > > > This is a weekly newsletter about LiveCode, focussing on what's been > > going on in and around the open source project. New issues will be > > released weekly on Mondays. We have a dedicated mailing list that will > > deliver each issue directly to you e-mail, so you don't miss any! > > > > If you have anything you'd like mentioned (a project, a discussion > > somewhere, an upcoming event) then please get in touch. > > > > -- > > Panagiotis Merakos > > LiveCode Software Developer > > > > Everyone Can Create Apps > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From hh at hyperhh.de Tue Aug 20 07:01:30 2019 From: hh at hyperhh.de (hh) Date: Tue, 20 Aug 2019 13:01:30 +0200 Subject: Scaling Imported Images Message-ID: <6E88A16E-B305-41E7-AECE-AFE4F27D708E@hyperhh.de> > Bob S. wrote: > I seem to remember some time ago there was a key combination > so that when you sized an image, instead of cropping it, it > would scale it. Am I imagining things? I can create a new > scaled image in Preview, so no big deal. Resizing with the pointer tool has these modifier specials: use with shift => resizes proportional use with option => resizes to square use with mac-cmd/win-nux-ctrl => crops Posssibly this is not what you want, because this operation only changes the display, not the size of the original imported image. So the size of the image in the stack is always the same. To make the *new size* to be 'persistent', that is new width => formattedWidth and new height => formattedHeight use set imagedata of img imgName to the imagedata of img imgName Here is the complete script I use for scale or fit incl. the above. -- pRetain is true or false (=persistence of new size) -- pImgID is the long id of an image -- pHow is one of f[actor],w[idth],h[eight],l[arger],s[maller],? -- pVal is a positive Number on scaleOrFitImage pRetain,pImgID,pHow,pVal lock screen; lock messages put the formattedWidth of pImgID into w put the formattedHeight of pImgID into h switch char 1 of pHow case "f" -- scale with factor pVal put pVal*w into w0 put pVal*h into h0 break case "w" -- fit width to pVal put pVal*h/w into h0 put pVal into w0 break case "h" -- fit height to pVal put pVal*w/h into w0 put pVal into h0 break case "l" -- fit max(width,height) to pVal if h > w then -- fit height to pVal put pVal*w/h into w0 put pVal into h0 else -- fit width to pVal put pVal*h/w into h0 put pVal into w0 end if break case "s" -- fit min(width,height) to pVal if h < w then -- fit height to pVal put pVal*w/h into w0 put pVal into h0 else -- fit width to pVal put pVal*h/w into h0 put pVal into w0 end if break default -- current width and height put the width of pImgID into w0 put the height of pImgID into h0 break end switch put the topleft of pImgID into TL set width of pImgID to w0 set height of pImgID to h0 set topleft of pImgID to TL if pRetain then # width => formattedWidth and height => formattedHeight set imagedata of pImgID to the imagedata of pImgID end if end scaleOrFitImage From roland.huettmann at gmail.com Tue Aug 20 08:41:07 2019 From: roland.huettmann at gmail.com (R.H.) Date: Tue, 20 Aug 2019 14:41:07 +0200 Subject: This week in LiveCode Message-ID: Hello Panos Thanks for explaining. I assume, not being focused on Filemaker, that the majority of users relies on your weekly information. I am subscribed to the forum and this user list. I guess many others as well reading on a regular basis. I do not think that it is a bad idea to also mention "work in progress", maybe in a seperate section. It could also mention if it is for a paid or for the community or FM usage. Regards, Roland From bobsneidar at iotecdigital.com Tue Aug 20 10:27:41 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Aug 2019 14:27:41 +0000 Subject: Scaling Imported Images In-Reply-To: <6E88A16E-B305-41E7-AECE-AFE4F27D708E@hyperhh.de> References: <6E88A16E-B305-41E7-AECE-AFE4F27D708E@hyperhh.de> Message-ID: <1C782AC5-0E2D-4A3F-80E9-0107F6952FC9@iotecdigital.com> Thanks! You'd think that was in the dictionary somewhere, but I searched for scale and got bupkis. Bob S > On Aug 20, 2019, at 04:01 , hh via use-livecode wrote: > >> Bob S. wrote: >> I seem to remember some time ago there was a key combination >> so that when you sized an image, instead of cropping it, it >> would scale it. Am I imagining things? I can create a new >> scaled image in Preview, so no big deal. > > Resizing with the pointer tool has these modifier specials: > > use with shift => resizes proportional > use with option => resizes to square > use with mac-cmd/win-nux-ctrl => crops > > Posssibly this is not what you want, because this operation only > changes the display, not the size of the original imported image. > So the size of the image in the stack is always the same. > > To make the *new size* to be 'persistent', that is > new width => formattedWidth and new height => formattedHeight > use > > set imagedata of img imgName to the imagedata of img imgName > > Here is the complete script I use for scale or fit incl. the above. > > -- pRetain is true or false (=persistence of new size) > -- pImgID is the long id of an image > -- pHow is one of f[actor],w[idth],h[eight],l[arger],s[maller],? > -- pVal is a positive Number > on scaleOrFitImage pRetain,pImgID,pHow,pVal > lock screen; lock messages > put the formattedWidth of pImgID into w > put the formattedHeight of pImgID into h > switch char 1 of pHow > case "f" -- scale with factor pVal > put pVal*w into w0 > put pVal*h into h0 > break > case "w" -- fit width to pVal > put pVal*h/w into h0 > put pVal into w0 > break > case "h" -- fit height to pVal > put pVal*w/h into w0 > put pVal into h0 > break > case "l" -- fit max(width,height) to pVal > if h > w then -- fit height to pVal > put pVal*w/h into w0 > put pVal into h0 > else -- fit width to pVal > put pVal*h/w into h0 > put pVal into w0 > end if > break > case "s" -- fit min(width,height) to pVal > if h < w then -- fit height to pVal > put pVal*w/h into w0 > put pVal into h0 > else -- fit width to pVal > put pVal*h/w into h0 > put pVal into w0 > end if > break > default -- current width and height > put the width of pImgID into w0 > put the height of pImgID into h0 > break > end switch > put the topleft of pImgID into TL > set width of pImgID to w0 > set height of pImgID to h0 > set topleft of pImgID to TL > if pRetain then > # width => formattedWidth and height => formattedHeight > set imagedata of pImgID to the imagedata of pImgID > end if > end scaleOrFitImage > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Tue Aug 20 10:39:43 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Tue, 20 Aug 2019 15:39:43 +0100 Subject: No subject Message-ID: Hi all, What are the benefits and disadvantages of using the new 'minimal layout' property in DataGrid2? The release note says: When this property is true, a row template will only receive the LayoutControl message if its data or its width or height has changed as opposed to every time its rect changes (e.g. due to scrolling). But what is the impact of this when used, - such that it has not been made the default behaviour? Many thanks. Sean Cole *Pi Digital * eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 From jacque at hyperactivesw.com Tue Aug 20 13:49:52 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Aug 2019 12:49:52 -0500 Subject: Multicolored card redraw chaos Message-ID: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> What's the term for when a card doesn't draw correctly when it opens, and instead of the normal display you get crazy colored diagonal lines and Jackson Pollack color splotches all over? I'm getting that on an Android mobile app. Does anyone know what causes it? For now I'm loading a separate mainstack from the app stack, but it doesn't always happen. And sometimes it happens when navigating between two cards in the app stack as well. Could this be related to acceleratedRendering? Because that's on. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Tue Aug 20 13:56:45 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 20 Aug 2019 17:56:45 +0000 Subject: Multicolored card redraw chaos In-Reply-To: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> Message-ID: That has happenned to me in standalones. My Login stack has a really nice graphic of a lock and key as a background image, and it looked like someone had taken a piece of plastic with the logo on it, and stretched the top edge to the right and the bottom edge to the left! After removing any color profiles in any of my images, it *seems* to have cleared up, but I'm not certain as to why. Bob S > On Aug 20, 2019, at 10:49 , J. Landman Gay via use-livecode wrote: > > What's the term for when a card doesn't draw correctly when it opens, and instead of the normal display you get crazy colored diagonal lines and Jackson Pollack color splotches all over? > > I'm getting that on an Android mobile app. Does anyone know what causes it? For now I'm loading a separate mainstack from the app stack, but it doesn't always happen. And sometimes it happens when navigating between two cards in the app stack as well. > > Could this be related to acceleratedRendering? Because that's on. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From jjs at krutt.org Tue Aug 20 14:22:25 2019 From: jjs at krutt.org (JJS) Date: Tue, 20 Aug 2019 20:22:25 +0200 Subject: How do you handle different screen resolutions in mobile apps In-Reply-To: <95bb8341-4a94-732a-89c5-7f101e9d0214@fourthworld.com> References: <95bb8341-4a94-732a-89c5-7f101e9d0214@fourthworld.com> Message-ID: <276f5d6b-8e07-ec5f-c479-a8612491cc2b@krutt.org> Yes indeed Richard, your are totally right. Reading your message, i thought? it while reading your sentences. Just like making the browser window smaller you can see a website which uses bootstrap react on the size, so you can mimic a tablet or phone. We can do indeed the same with our stack window like you say. And perhaps just a few most used sizes is enough and a lot of sold phones are around 5 inches these days. Gonna have some more play with it. Thanks. Op 19-8-2019 om 22:12 schreef Richard Gaskin via use-livecode: > Matthias Rebbe wrote: > > > Especially on Android, where so many devices with so many screen > > resolutions are available, how do you handle all these resolutions in > > your mobile apps? > > > This is the central question all developers have, whether making > native or web apps, ever since mobile platforms were first popularized > nearly a decade ago. > > We're not alone.? Far from it.? EVERYONE has this question. > > So how do they handle it? > > Web designers generically refer to it as "responsive design", as in > responding to whatever screen dimensions or orientation the user may > have at the moment. > > In web development, the common method is to make at least two layouts > based on a maximum screen width, where one is for full-sized screens > and the other is for handheld devices: e.g., if less than 600px the > layout is slimmed down and elements placed differently to fit > comfortably on screen.? Depending on the layout and features, a web > developer may use other screen widths to determine layout specifics > for in-between devices like "phablets", or for different orientations > if the nature of the app requires doing something more than flowing > content downward. > > > In web development, layout is governed by properties set via CSS, and > are triggered automatically with page rendering. > > In LC, layout is governed by setting properties via LiveCode Script, > and are triggered on a resizeStack handler. > > > So the good news is: none of this is much different from what we've > been doing for decades with resizable windows.? If you're comfortable > moving and resizing controls for normal resizable windows on the > desktop, you have the background needed to do the same to accommodate > any window size, including the small single-window layouts of mobile. > > > It gets even better: in the very early days of LiveCode for mobile, we > had to think about pixel density and work that into our scripts, > greatly complicating the arithmetic.? But many years ago the core team > did an excellent job of liberating us from the many different pixel > densities available on mobile platforms.? Now, LC's resolution > independence automatically accounts for the device's pixel density, > allowing us to write our control placement scripts once using logical > pixels, and LC does the work with the OS to translate that into > physical pixels automatically. > > > So in short, look at your UI, determine which controls may need to be > resized or moved, and put that code into a resizeStack handler. > > And since resizeStack is among the messages available on the desktop > as well, you can test your layout code easily as you go, right in the > IDE. > > > Moving and resizing controls is usually not the hard task for any LC > scripter familiar with LC basics.? The harder task can be deciding > which controls need adjusting, and how. > > For that, look at the apps on your phone.? Switch orientation, noting > which controls are resized, which are moved, etc. > > Then use the LC Script you already know to do that with your controls > in your app. > > > > Example > ------- > > Consider a very common UI we've all seen, a message form: > > ? -------------------------------------------------------- > ? |?? -------------------------------------------------- | > ? |?? | field "To"???????????????????????????????????? | | > ? |?? -------------------------------------------------- | > ? |?? -------------------------------------------------- | > ? |?? | field "Body"?????????????????????????????????? | | > ? |?? |??????????????????????????????????????????????? | | > ? |?? |??????????????????????????????????????????????? | | > ? |?? |??????????????????????????????????????????????? | | > ? |?? |??????????????????????????????????????????????? | | > ? |?? -------------------------------------------------- | > ? |???????????????????????????????????????? -----------? | > ? |???????????????????????????????????????? |?? Send? |? | > ? |???????????????????????????????????????? -----------? | > ? -------------------------------------------------------- > > > To adjust those controls for all practical sizes snd orientations on > every desktop and mobile platform LC supports: > > on resizeStack x,y > ?? set the rect of fld "To" to 20,10,x-20,40 > ?? set the rect of fld "Body" to 20, the bottom of fld "To", \ > ?????? x-20, y- 50 > ?? set the bottomRight of btn "Send" to x-10,y-10 > end resizeStack > > > -- > ?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 jjs at krutt.org Tue Aug 20 14:25:27 2019 From: jjs at krutt.org (JJS) Date: Tue, 20 Aug 2019 20:25:27 +0200 Subject: Submitting to the Google Play Store In-Reply-To: <16cad7fe5c0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <16cad7fe5c0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <6cd6af2c-a887-6586-dfdb-5e476dce19e0@krutt.org> Yes i did an update, i will check out the forum thread Op 20-8-2019 om 07:28 schreef J. Landman Gay via use-livecode: > Has anyone submitted a new app to the Play Store this month since the > rules changed? A forum member can't do it: > > > http://forums.livecode.com/viewtopic.php?f=53&t=33000&e=1&view=unread#p182392 > > > > Does anyone know why this might fail? > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Aug 20 14:45:29 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 20 Aug 2019 13:45:29 -0500 Subject: Multicolored card redraw chaos In-Reply-To: References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> Message-ID: <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> In this case, no images are involved. The cards contain only LC controls. And the entire card, from topleft to bottomRight goes completely haywire, random colors and lines and visuals throughout. In some cases it goes nuts, resolves to the correct display, then goes nuts again, and cycles that way a few times until it settles down on the crazy one. At that point you can't click anything (there's nothing visible to click) and you have to go to the Home card and remove the app from RAM before relaunching. I don't recall seeing this in LC 9.0.5 so I may go back to that version to do the next build. The crazy one has been happening with a 9.5 build. On 8/20/19 12:56 PM, Bob Sneidar via use-livecode wrote: > That has happenned to me in standalones. My Login stack has a really nice graphic of a lock and key as a background image, and it looked like someone had taken a piece of plastic with the logo on it, and stretched the top edge to the right and the bottom edge to the left! After removing any color profiles in any of my images, it *seems* to have cleared up, but I'm not certain as to why. > > Bob S > > >> On Aug 20, 2019, at 10:49 , J. Landman Gay via use-livecode wrote: >> >> What's the term for when a card doesn't draw correctly when it opens, and instead of the normal display you get crazy colored diagonal lines and Jackson Pollack color splotches all over? >> >> I'm getting that on an Android mobile app. Does anyone know what causes it? For now I'm loading a separate mainstack from the app stack, but it doesn't always happen. And sometimes it happens when navigating between two cards in the app stack as well. >> >> Could this be related to acceleratedRendering? Because that's on. >> >> -- >> 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 > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From rdimola at evergreeninfo.net Wed Aug 21 11:43:40 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 21 Aug 2019 11:43:40 -0400 Subject: Apple Encouraging Progressive Web Apps [PWA] By Rejecting iOS Apps In-Reply-To: <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> Message-ID: <002b01d55837$37679b00$a636d100$@net> I wonder how LC can fit into this new paradigm? https://love2dev.com/blog/apple-encouraging-progressive-web-apps-by-rejectin g-apps/ Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From harrison at all-auctions.com Wed Aug 21 12:04:04 2019 From: harrison at all-auctions.com (Rick Harrison) Date: Wed, 21 Aug 2019 12:04:04 -0400 Subject: Apple Encouraging Progressive Web Apps [PWA] By Rejecting iOS Apps In-Reply-To: <002b01d55837$37679b00$a636d100$@net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <002b01d55837$37679b00$a636d100$@net> Message-ID: <1991A03E-56E3-46B6-9DED-CC504B166DBB@all-auctions.com> Hi Ralph, The URL you posted wasn?t quite complete and throws a 404 error. Here is the complete URL that works. Thanks, Rick https://love2dev.com/blog/apple-encouraging-progressive-web-apps-by-rejecting-apps/ > On Aug 21, 2019, at 11:43 AM, Ralph DiMola via use-livecode wrote: > > https://love2dev.com/blog/apple-encouraging-progressive-web-apps-by-rejectin From rdimola at evergreeninfo.net Wed Aug 21 14:04:51 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 21 Aug 2019 14:04:51 -0400 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> Message-ID: <003901d5584a$f0b5ad00$d2210700$@net> This URL suddenly stopped working in LC. I tried 6.7.11, 9.04 and 9.5 IDE with same results. It returns garbage. I looks like some sort of encryption problem? If you put this URL into a browser it returns the expected json. Put this into the message box. It returns garbage. put url ("https://api.apixu.com/v1/current.json?&days=10&q=Bandon+OR+97411") can anyone confirm? This broke my mobile apps on both Android and iOS. Thanks in advance... Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From klaus at major-k.de Wed Aug 21 14:10:46 2019 From: klaus at major-k.de (Klaus major-k) Date: Wed, 21 Aug 2019 20:10:46 +0200 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <003901d5584a$f0b5ad00$d2210700$@net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> Message-ID: <95F7B558-CC35-40BC-9806-B325563F1420@major-k.de> Hi Ralph, > Am 21.08.2019 um 20:04 schrieb Ralph DiMola via use-livecode : > > This URL suddenly stopped working in LC. I tried 6.7.11, 9.04 and 9.5 IDE > with same results. It returns garbage. I looks like some sort of encryption > problem? If you put this URL into a browser it returns the expected json. > > Put this into the message box. It returns garbage. > put url ("https://api.apixu.com/v1/current.json?&days=10&q=Bandon+OR+97411") > > can anyone confirm? confirmed! I get this in the message box: ??VJ-* /R??VJ?OIU?2400?Q M-.NLr? <?S+2?2? s2S????K ???2SRS??jk{?*?G But this in a browser (Safari on macOS in my case) as exspected: {"error":{"code":1002,"message":"API key is invalid or not provided."}} > This broke my mobile apps on both Android and iOS. > Thanks in advance... > > Ralph DiMola Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From ahsoftware at sonic.net Wed Aug 21 14:11:32 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 21 Aug 2019 11:11:32 -0700 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <003901d5584a$f0b5ad00$d2210700$@net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> Message-ID: <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> On 8/21/19 11:04 AM, Ralph DiMola via use-livecode wrote: > put url ("https://api.apixu.com/v1/current.json?&days=10&q=Bandon+OR+97411") put decompress(url ("https://api.apixu.com/v1/current.json?&days=10&q=Bandon+OR+97411")) ==> {"error":{"code":1002,"message":"API key is invalid or not provided."}} -- Mark Wieder ahsoftware at gmail.com From klaus at major-k.de Wed Aug 21 14:15:27 2019 From: klaus at major-k.de (Klaus major-k) Date: Wed, 21 Aug 2019 20:15:27 +0200 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> Message-ID: <6E84F7C7-1AAA-4A8F-8AD6-A0B3F5F441CA@major-k.de> Hi Mark > Am 21.08.2019 um 20:11 schrieb Mark Wieder via use-livecode : > On 8/21/19 11:04 AM, Ralph DiMola via use-livecode wrote: >> put url ("https://api.apixu.com/v1/current.json?&days=10&q=Bandon+OR+97411") > > put decompress(url ("https://api.apixu.com/v1/current.json?&days=10&q=Bandon+OR+97411")) > ==> > {"error":{"code":1002,"message":"API key is invalid or not provided."}} HA! Go figure! :-) Good catch. > -- > Mark Wieder > ahsoftware at gmail.com Best Klaus -- Klaus Major https://www.major-k.de klaus at major-k.de From rdimola at evergreeninfo.net Wed Aug 21 14:24:23 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 21 Aug 2019 14:24:23 -0400 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> Message-ID: <003a01d5584d$ab35e620$01a1b260$@net> Mark, Wow... good catch indeed. Thanks! Gziped??? I guess this is checked and dealt with browsers. Now I have to see how to recognize this when it happens. In this case if the json decode fails then I will try decompressing it. Should this be a change so tsNet does this for you? Or do you think it's our responsibility? Thanks again. 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 Mark Wieder via use-livecode Sent: Wednesday, August 21, 2019 2:12 PM To: Ralph DiMola via use-livecode Cc: Mark Wieder Subject: Re: This Web URL Stopped Working in LiveCode all versions. HELP! On 8/21/19 11:04 AM, Ralph DiMola via use-livecode wrote: > put url ("https://api.apixu.com/v1/current.json?&days=10&q=Bandon+OR+97411") put decompress(url ("https://api.apixu.com/v1/current.json?&days=10&q=Bandon+OR+97411")) ==> {"error":{"code":1002,"message":"API key is invalid or not provided."}} -- Mark Wieder ahsoftware at gmail.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Wed Aug 21 14:28:47 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 21 Aug 2019 11:28:47 -0700 Subject: 9.5 destruction derby Message-ID: <760076fb-5797-4a18-fcf4-0e05b38aba74@sonic.net> I went out of town for a week. Came back and launched 9.5 this morning. It took over most of my cpu power, although it didn't show up in top. So I quit and relaunched with no third-party extensions. Same thing. Did it again (expecting different results, maybe? Hmmm...) and got the same thing except now 4wDevolution no longer appeared. My preferences file grew from 6.5k to 189k. And 4wDevolution was no longer in my Plugins folder. I reinstated devolution, trashed (renamed) my prefs file, and launched again. All's right with the world. I painstakingly reset all my preferences and things are working again. Weird. There seems to be a large cache custom property attached to the livecode7 preferences file. https://quality.livecode.com/show_bug.cgi?id=22338 -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Wed Aug 21 14:30:45 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Wed, 21 Aug 2019 20:30:45 +0200 Subject: Apple Encouraging Progressive Web Apps [PWA] By Rejecting iOS Apps In-Reply-To: <002b01d55837$37679b00$a636d100$@net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <002b01d55837$37679b00$a636d100$@net> Message-ID: I think there is a big difference between apps created with Livecode and apps created using template based services or app creation tools. There are many apps in the Google and iOS app stores which do not more than just displaying webpages. Those app just provide a browser function in a nice and fancy gui. Those apps were mostly created with special tools or webservices which allow the user to create the app just by selecting a base template, the type of content the user want to show (contact form, about us, map and so on) and by entering all custom information. That?s all. The services then create the binaries which the user then submit to the stores. Some service providers even offer a submission service. Examples for those creating services are http://buildapp.us https://chayns5.de Livecode Apps are not created with building blocks. Of course there are externals and widgets, but you still have to code to use those. There is nothing prebuild. If those kinds of apps are vanishing from the app stores, then i would welcome this. I really can?t count how often i had endless discussions with customers in the past why i take more money for developing an app than a competitor who was using those template services or app creation services. I am writing was, because he?s not in business anymore. All of the apps he created looked somehow the same. Only the colours and the content were different, but the layout was mostly identical. I am not sure why he is not in business anymore, but i heard that many customers were not amused after they found out that there are other apps looking the same than theirs. Matthias > Am 21.08.2019 um 17:43 schrieb Ralph DiMola via use-livecode : > > I wonder how LC can fit into this new paradigm? > > https://love2dev.com/blog/apple-encouraging-progressive-web-apps-by-rejectin > g-apps/ > > 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 ahsoftware at sonic.net Wed Aug 21 14:52:20 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Wed, 21 Aug 2019 11:52:20 -0700 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <003a01d5584d$ab35e620$01a1b260$@net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> <003a01d5584d$ab35e620$01a1b260$@net> Message-ID: <7c3608a5-4c1a-068b-5d0f-21294bc4eaa3@sonic.net> On 8/21/19 11:24 AM, Ralph DiMola via use-livecode wrote: > Mark, > > Wow... good catch indeed. Thanks! Gziped??? I guess this is checked and > dealt with browsers. Now I have to see how to recognize this when it > happens. In this case if the json decode fails then I will try decompressing > it. Should this be a change so tsNet does this for you? Or do you think it's > our responsibility? Hard to say. It's returning a 401 status, and there's no requirement for the server to say any more than that, so the JSON error message is a lagniappe. From a security standpoint, I wouldn't add the error message at all, whether it's compressed or not. I don't know whether a valid response would be compressed, so it's hard to know what to expect. The online docs don't discuss this. I wouldn't expect tsNet to address this other than a possible change to the Accept-Encoding request header... the browser is using Accept-Encoding: gzip, deflate, br Not having tsNet available here, I'll make the assumption that you can use libURLSetCustomHTTPHeaders to solve your problem. -- Mark Wieder ahsoftware at gmail.com From rdimola at evergreeninfo.net Wed Aug 21 15:30:39 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 21 Aug 2019 15:30:39 -0400 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <7c3608a5-4c1a-068b-5d0f-21294bc4eaa3@sonic.net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> <003a01d5584d$ab35e620$01a1b260$@net> <7c3608a5-4c1a-068b-5d0f-21294bc4eaa3@sonic.net> Message-ID: <004701d55856$ecbcde10$c6369a30$@net> All requested payloads from them are now compressed. I didn't put my API key in the example. I pay for this service and did not get an email about any changes(buy cheap get cheap I guess). This happened in the last few days. Did a try/catch and decompress. The app works now. Try/catch feels like a kludge. I will try the libURLSetCustomHTTPHeaders route. That might be cleaner. I also sent them a support request but will not hold my breath. 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 Mark Wieder via use-livecode Sent: Wednesday, August 21, 2019 2:52 PM To: Ralph DiMola via use-livecode Cc: Mark Wieder Subject: Re: This Web URL Stopped Working in LiveCode all versions. HELP! On 8/21/19 11:24 AM, Ralph DiMola via use-livecode wrote: > Mark, > > Wow... good catch indeed. Thanks! Gziped??? I guess this is checked > and dealt with browsers. Now I have to see how to recognize this when > it happens. In this case if the json decode fails then I will try > decompressing it. Should this be a change so tsNet does this for you? > Or do you think it's our responsibility? Hard to say. It's returning a 401 status, and there's no requirement for the server to say any more than that, so the JSON error message is a lagniappe. >From a security standpoint, I wouldn't add the error message at all, whether it's compressed or not. I don't know whether a valid response would be compressed, so it's hard to know what to expect. The online docs don't discuss this. I wouldn't expect tsNet to address this other than a possible change to the Accept-Encoding request header... the browser is using Accept-Encoding: gzip, deflate, br Not having tsNet available here, I'll make the assumption that you can use libURLSetCustomHTTPHeaders to solve your problem. -- 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 lists at mangomultimedia.com Wed Aug 21 17:24:44 2019 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 21 Aug 2019 16:24:44 -0500 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <004701d55856$ecbcde10$c6369a30$@net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> <003a01d5584d$ab35e620$01a1b260$@net> <7c3608a5-4c1a-068b-5d0f-21294bc4eaa3@sonic.net> <004701d55856$ecbcde10$c6369a30$@net> Message-ID: On Wed, Aug 21, 2019 at 2:29 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > All requested payloads from them are now compressed. I didn't put my API > key > in the example. I pay for this service and did not get an email about any > changes(buy cheap get cheap I guess). This happened in the last few days. > Did a try/catch and decompress. The app works now. Try/catch feels like a > kludge. I will try the libURLSetCustomHTTPHeaders route. That might be > cleaner. I also sent them a support request but will not hold my breath. > If you look at the headers the server is sending back the `content-encoding` is `gzip`. Just check for that and run decompress if present. -- Trevor DeVore ScreenSteps www.screensteps.com From bobsneidar at iotecdigital.com Wed Aug 21 19:28:48 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 21 Aug 2019 23:28:48 +0000 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: <7c3608a5-4c1a-068b-5d0f-21294bc4eaa3@sonic.net> References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> <003a01d5584d$ab35e620$01a1b260$@net> <7c3608a5-4c1a-068b-5d0f-21294bc4eaa3@sonic.net> Message-ID: I almost did put decompress(url("lagniappe")), but as it turns out, that is an actual WORD! ;-) Bob S > On Aug 21, 2019, at 11:52 , Mark Wieder via use-livecode wrote: > > lagniappe From tom at makeshyft.com Wed Aug 21 20:15:40 2019 From: tom at makeshyft.com (Tom Glod) Date: Wed, 21 Aug 2019 20:15:40 -0400 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> <003a01d5584d$ab35e620$01a1b260$@net> <7c3608a5-4c1a-068b-5d0f-21294bc4eaa3@sonic.net> Message-ID: ?heart attack city? On Wed, Aug 21, 2019 at 7:29 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I almost did put decompress(url("lagniappe")), but as it turns out, that > is an actual WORD! ;-) > > Bob S > > > > On Aug 21, 2019, at 11:52 , Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > lagniappe > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Wed Aug 21 20:30:45 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 21 Aug 2019 20:30:45 -0400 Subject: This Web URL Stopped Working in LiveCode all versions. HELP! In-Reply-To: References: <3bcfdb9f-aa39-2df0-c484-3a52fc30e41a@hyperactivesw.com> <9855fcc0-09b0-7487-0deb-b3e428514ac4@hyperactivesw.com> <003901d5584a$f0b5ad00$d2210700$@net> <820a0f0f-afcf-50f4-153e-9e72ac0aac0e@sonic.net> <003a01d5584d$ab35e620$01a1b260$@net> <7c3608a5-4c1a-068b-5d0f-21294bc4eaa3@sonic.net> <004701d55856$ecbcde10$c6369a30$@net> Message-ID: <007701d55880$d9835a20$8c8a0e60$@net> Thanks MW for the detective work and Trevor for the proper solution and all the other who helped. Reading the header works like a charm. 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 Trevor DeVore via use-livecode Sent: Wednesday, August 21, 2019 5:25 PM To: How to use LiveCode Cc: Trevor DeVore Subject: Re: This Web URL Stopped Working in LiveCode all versions. HELP! On Wed, Aug 21, 2019 at 2:29 PM Ralph DiMola via use-livecode < use-livecode at lists.runrev.com> wrote: > All requested payloads from them are now compressed. I didn't put my > API key in the example. I pay for this service and did not get an > email about any changes(buy cheap get cheap I guess). This happened in > the last few days. > Did a try/catch and decompress. The app works now. Try/catch feels > like a kludge. I will try the libURLSetCustomHTTPHeaders route. That > might be cleaner. I also sent them a support request but will not hold my breath. > If you look at the headers the server is sending back the `content-encoding` is `gzip`. Just check for that and run decompress if present. -- Trevor DeVore ScreenSteps www.screensteps.com _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From sean at pidigital.co.uk Wed Aug 21 21:32:04 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 22 Aug 2019 02:32:04 +0100 Subject: No subject Message-ID: Hi All I posted this up on the HTML5 forum. Perhaps someone on here can help me out. Faster DataGrid Performance The number one feature we get asked for is to improve performance of complex DataGrids on mobile. We will improve performance in two ways. First, we will rework the DataGrid code to be more efficient in the way that it creates, removes and caches objects. Faster Graphics on All Platforms We will add new features to the engine to support accelerated rendering within groups. This will benefit LiveCode?s graphic performance in a variety of real-world situations, on all platforms including mobile, desktop and web. That's a quote from the old 2017 backers campaign for DG2 just to put things into perspective of my expectations. I hope this doesn't come over as whiny or over-demanding . I have acceleratedRendering set to true for the IDE, desktop and HTML5. But a DG2 Form with only 3 short fields, a rounded-rect grc and the background rect and only 233 records still struggle to scroll anywhere near smoothly. Even with the bkgnd and grc removed leaving only 3 simple text fields it still struggled just as much. Is there something I am missing that can speed/smooth this up. Using a table view DG worked moderately better but doesn't have the required features the form view has for customising. Many thanks Sean Cole *Pi Digital * From monte at appisle.net Thu Aug 22 00:41:47 2019 From: monte at appisle.net (Monte Goulding) Date: Thu, 22 Aug 2019 14:41:47 +1000 Subject: No subject In-Reply-To: References: Message-ID: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> With the acceleratedRendering set to true on the stack can you tell me the effective layerMode of the groups in group dgList of your datagrid? These are the row groups copied from your row template. If it is not dynamic then you may have some adornments on your datagrid causing issues. Having said that I see you are posting on the HTML5 forum about mobile performance. Are you talking about HTML5 on mobile or did you just post to the wrong forum? Cheers Monte > On 22 Aug 2019, at 11:32 am, Sean Cole (Pi) via use-livecode wrote: > > Hi All > > I posted this up on the HTML5 forum. Perhaps someone on here can help me > out. > > Faster DataGrid Performance > The number one feature we get asked for is to improve performance of > complex DataGrids on mobile. We will improve performance in two ways. > First, we will rework the DataGrid code to be more efficient in the way > that it creates, removes and caches objects. > Faster Graphics on All Platforms > We will add new features to the engine to support accelerated rendering > within groups. This will benefit LiveCode?s graphic performance in a > variety of real-world situations, on all platforms including mobile, > desktop and web. > > That's a quote from the old 2017 backers campaign for DG2 just to put > things into perspective of my expectations. I hope this doesn't come over > as whiny or over-demanding . > > I have acceleratedRendering set to true for the IDE, desktop and HTML5. But > a DG2 Form with only 3 short fields, a rounded-rect grc and the background > rect and only 233 records still struggle to scroll anywhere near smoothly. > Even with the bkgnd and grc removed leaving only 3 simple text fields it > still struggled just as much. > > Is there something I am missing that can speed/smooth this up. Using a > table view DG worked moderately better but doesn't have the required > features the form view has for customising. > > Many thanks > > 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 hlowe at me.com Thu Aug 22 07:34:25 2019 From: hlowe at me.com (hlowe) Date: Thu, 22 Aug 2019 06:34:25 -0500 (CDT) Subject: No subject In-Reply-To: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> Message-ID: <1566473665136-0.post@n4.nabble.com> Monte, I am experiencing a similar issue under LC 9.5.0 (Stable). An iOS app that has exhibited slow, stuttering, scrolling of a DataGrid form under prior versions of LC has not shown much improvement since upgrading to LC 9.5.0. I have acceleratedRendering set to true for the stack. The datagrid has its Layer Mode set to "container". There are no adornments that I can see (could we get a list of relevant adornments to avoid?). Given a datagrid named "DG_Browse" what code would I use to determine "the effective layerMode of the groups in group dgList of your datagrid", as you requested" I tried: Answer the effective layerMode of group "dgList" of group "DG_Browse" but that generated an error. Henry -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From sean at pidigital.co.uk Thu Aug 22 10:27:58 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 22 Aug 2019 15:27:58 +0100 Subject: Datagrid2 Form view slow down. In-Reply-To: <1566473665136-0.post@n4.nabble.com> References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: Hi Monte, Many thanks for your response. I don't know how I had inferred that I was using mobile as this is ONLY for PC Desktop and HTML5 emscripten running in Chrome on a PC Desktop (which will be the final intended platform). I'm confused about what I said that caused Herman and yourself to assume I was talking about mobile. I thought the HTML5 forum was for Desktop Web only. I checked in dglist for the effective layermode of the Row Templates in my form and they are coming up as 'static' (set layermode is 'dynamic'). So there must be some incompatible adornment. But, as Henry asked, what adornments would cause this? I don't even know what is meant by the term 'adornments'. All I have in my template is 3 standard text fields with no adjustments, the standard background graphic (no adjustment) and a single rounded rectangle graphic that sits underneath one of the fields (the only adjustment I have tried on this is turning off antialiasing just to see if it made a difference). Is a rounded rectangle classed as an 'adornment'? But even without this added it still shows as being effective 'static'. If we can't use simple text fields and a simple rect graphic without affecting the effective layerMode then Form view is near useless. I look forward to being educated about adornments? Thanks again. Henry, you need to use... put the effective layermode of grp "Row Template 0001" of grp "dglist" of grp "DG_Browse" Sean > From bobsneidar at iotecdigital.com Thu Aug 22 10:35:03 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 22 Aug 2019 14:35:03 +0000 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: I think it was this part: Faster DataGrid Performance The number one feature we get asked for is to improve performance of complex DataGrids on mobile. We will improve performance in two ways. First, we will rework the DataGrid code to be more efficient in the way that it creates, removes and caches objects. The datagrid performance is for Mobile, not all platforms. BTW do I have to invoke DG2 when creating one? Or all DGs now v2? Bob S > On Aug 22, 2019, at 07:27 , Sean Cole (Pi) via use-livecode wrote: > > Hi Monte, > > Many thanks for your response. I don't know how I had inferred that I was > using mobile as this is ONLY for PC Desktop and HTML5 emscripten running in > Chrome on a PC Desktop (which will be the final intended platform). I'm > confused about what I said that caused Herman and yourself to assume I was > talking about mobile. I thought the HTML5 forum was for Desktop Web only. > > I checked in dglist for the effective layermode of the Row Templates in my > form and they are coming up as 'static' (set layermode is 'dynamic'). So > there must be some incompatible adornment. But, as Henry asked, what > adornments would cause this? I don't even know what is meant by the term > 'adornments'. > > All I have in my template is 3 standard text fields with no adjustments, > the standard background graphic (no adjustment) and a single rounded > rectangle graphic that sits underneath one of the fields (the only > adjustment I have tried on this is turning off antialiasing just to see if > it made a difference). Is a rounded rectangle classed as an 'adornment'? > But even without this added it still shows as being effective 'static'. If > we can't use simple text fields and a simple rect graphic without affecting > the effective layerMode then Form view is near useless. > > I look forward to being educated about adornments? Thanks again. > > Henry, > > you need to use... > > put the effective layermode of grp "Row Template 0001" of grp "dglist" > of grp "DG_Browse" > > > Sean > > >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 22 11:37:53 2019 From: paul at researchware.com (Paul Dupuis) Date: Thu, 22 Aug 2019 11:37:53 -0400 Subject: Unicode is not "everywhere"... Message-ID: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> I have filed two bug reports that are in LC905rc1 and go back to 7.0 where LC functions that should deal with Unicode properly do not. These are: https://quality.livecode.com/show_bug.cgi?id=22213 -- The "detailed files" function fails for any files with Unicode in the name, returning the filename with %3F (?) instead of the Unicode characters properly URL encoded (they should be UFT8 encoded and then URL encoded) and https://quality.livecode.com/show_bug.cgi?id=22334 -- the shell command is not Unicode aware in returning it's results. On OSX, the results are UTF8 encoded (discovered by accident) and so an extra step is needed to text decode them, but on Windows it is a complete failure and any Unicode results of the command line - SHOWN 100% correctly is executed in the command line - are returned NATIVE encoded, causing all Unicode characters to become question marks. I have written work-around for both of these bugs that can be found in the bug reports. My work-around for the "details files" is slow, due to repeated calls to shell to fetch file properties one at a time. If anyone else out there has run into these bugs in your own code and developed a faster work-around for the "detailed files" and would care to share, I would welcome a faster fix. Of course, I'd welcome a fix from LiveCode, Ltd. to these bugs even more! From sean at pidigital.co.uk Thu Aug 22 11:40:01 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 22 Aug 2019 16:40:01 +0100 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: Thanks Bob, You don't need to invoke DG2. All old DGs are 'converted' (for want of a better word) to v2. The engine handles this. Faster DataGrid Performance: As stated, that was a quote from the original kickstarter (or whatever) campaign just as background to show that it was intended to improve performance for HTML5 as well as mobile and desktop (as html5 is my main area of concern at the moment), not mobile alone (although it was mainly requested for mobile). So, by default, performance for DG should go up for ALL platforms because of bringing up the efficiency of "the way it creates, removes and caches objects". This stands to reason. Note: None of the new features are included in the Guide as yet so you need to refer to the release notes for 9.0, 9.0.5 and 9.5 to get an understanding of these. Although the notes do not make it completely clear about all of the features as yet. Hopefully soon they will employ a dedicated copywriter who loves making dictionaries and guides to bring it all up to date. Still, hopefully an understanding of 'adornments' (as the dictionary seems to shed no light on this) will help answer this. Sean On Thu, 22 Aug 2019 at 15:35, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > I think it was this part: > > Faster DataGrid Performance > The number one feature we get asked for is to improve performance of > complex DataGrids on mobile. We will improve performance in two ways. > First, we will rework the DataGrid code to be more efficient in the way > that it creates, removes and caches objects. > > The datagrid performance is for Mobile, not all platforms. > > BTW do I have to invoke DG2 when creating one? Or all DGs now v2? > > Bob S > > > On Aug 22, 2019, at 07:27 , Sean Cole (Pi) via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Monte, > > > > Many thanks for your response. I don't know how I had inferred that I was > > using mobile as this is ONLY for PC Desktop and HTML5 emscripten running > in > > Chrome on a PC Desktop (which will be the final intended platform). I'm > > confused about what I said that caused Herman and yourself to assume I > was > > talking about mobile. I thought the HTML5 forum was for Desktop Web only. > > > > I checked in dglist for the effective layermode of the Row Templates in > my > > form and they are coming up as 'static' (set layermode is 'dynamic'). So > > there must be some incompatible adornment. But, as Henry asked, what > > adornments would cause this? I don't even know what is meant by the term > > 'adornments'. > > > > All I have in my template is 3 standard text fields with no adjustments, > > the standard background graphic (no adjustment) and a single rounded > > rectangle graphic that sits underneath one of the fields (the only > > adjustment I have tried on this is turning off antialiasing just to see > if > > it made a difference). Is a rounded rectangle classed as an 'adornment'? > > But even without this added it still shows as being effective 'static'. > If > > we can't use simple text fields and a simple rect graphic without > affecting > > the effective layerMode then Form view is near useless. > > > > I look forward to being educated about adornments? Thanks again. > > > > Henry, > > > > you need to use... > > > > put the effective layermode of grp "Row Template 0001" of grp "dglist" > > of grp "DG_Browse" > > > > > > Sean > > > > > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 22 11:58:22 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 22 Aug 2019 16:58:22 +0100 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: Monte, Here's a list of the properties of the Row Template 0001 from my grid. Bear in mind I have not manually adjusted anything other that the rect of the group. rect 24,151,755,180 toolTip hScroll 0 vScroll 0 boundingRect bottomColor hScrollbar false visible true sharedBehavior false topColor textStyle borderWidth 0 backPattern tabGroupBehavior false shadowPattern dontSearch false dropShadow topPattern label selectGroupedControls true backColor radioBehavior true cantSelect false lockLoc true foreColor hilitedButton 0 hilitePattern forePattern showFocusBorder true layerMode dynamic showName false shadowOffset 4 backgroundBehavior false focusPattern shadowColor opaque false scrollbarWidth 20 innerGlow ink srcCopy clipsToRect false showBorder false name group "Row Template 0001" textSize cantDelete false textFont unboundedVScroll false disabled false unboundedHScroll false colorOverlay altId 0 hiliteColor behavior button id 1111 of stack "Data Grid Templates 1563330294005" borderColor innerShadow bottomPattern borderPattern outerGlow id 83861 blendLevel 0 traversalOn true vScrollbar false focusColor threeD true margins 0 layer 17 Are you able to spot anything there that flags up as an adornment? I've taken my understanding of adornment from a post by Mark Waddingham back in June 2017 (!) during the proposition of DG2 where he states: You can already use acceleratedRendering to do this but it currently > only works for top-level groups and your groups have to be 'unadorned' - > meaning that you have turned off all properties of the group which mean > the group itself renders something (e.g. borders, scrollbars). > Mark there was referring to what acceleratedRendering could already do back then, so it is only the concept of 'unadorned' that I am referencing. This is about the ONLY description I can find for this ANYWHERE on the web! Thanks again Sean. From dsc at swcp.com Thu Aug 22 12:19:41 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 22 Aug 2019 10:19:41 -0600 Subject: Unicode is not "everywhere"... In-Reply-To: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> References: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> Message-ID: <94EE2FF8-068A-4197-990E-1D872BDA48FB@swcp.com> Concerning 22335... 1. I wonder if anyone uses shell() to return binary values. 2. I wonder about whether using the shellCommand property would help. > On Aug 22, 2019, at 9:37 AM, Paul Dupuis via use-livecode wrote: > > I have filed two bug reports that are in LC905rc1 and go back to 7.0 where LC functions that should deal with Unicode properly do not. > > These are: > https://quality.livecode.com/show_bug.cgi?id=22213 -- The "detailed files" function fails for any files with Unicode in the name, returning the filename with %3F (?) instead of the Unicode characters properly URL encoded (they should be UFT8 encoded and then URL encoded) > and > https://quality.livecode.com/show_bug.cgi?id=22334 -- the shell command is not Unicode aware in returning it's results. On OSX, the results are UTF8 encoded (discovered by accident) and so an extra step is needed to text decode them, but on Windows it is a complete failure and any Unicode results of the command line - SHOWN 100% correctly is executed in the command line - are returned NATIVE encoded, causing all Unicode characters to become question marks. > > I have written work-around for both of these bugs that can be found in the bug reports. My work-around for the "details files" is slow, due to repeated calls to shell to fetch file properties one at a time. > > If anyone else out there has run into these bugs in your own code and developed a faster work-around for the "detailed files" and would care to share, I would welcome a faster fix. > > Of course, I'd welcome a fix from LiveCode, Ltd. to these bugs even more! > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 22 13:28:01 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 22 Aug 2019 12:28:01 -0500 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: <002ad18f-28d5-c92a-8d3f-24be896fac0c@hyperactivesw.com> On 8/22/19 10:58 AM, Sean Cole (Pi) via use-livecode wrote: > This > is about the ONLY description I can find for this ANYWHERE on the web! The dictionary has a partial (or full?) explanation in the layerMode entry: no borders, no scrollbars. But that's all it says. I assume graphic effects are also a no-no. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dsc at swcp.com Thu Aug 22 14:15:10 2019 From: dsc at swcp.com (dsc at swcp.com) Date: Thu, 22 Aug 2019 12:15:10 -0600 Subject: Unicode is not "everywhere"... In-Reply-To: <94EE2FF8-068A-4197-990E-1D872BDA48FB@swcp.com> References: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> <94EE2FF8-068A-4197-990E-1D872BDA48FB@swcp.com> Message-ID: <61A991B8-E27E-472B-A332-F86CD3CC90D6@swcp.com> The shellCommand property for Windows is "cmd.exe", not "command.com " as described in the dictionary. I wonder how setting that to "cmd.exe /u" would affect this behavior. > On Aug 22, 2019, at 10:19 AM, Dar Scott Consulting via use-livecode wrote: > > Concerning 22335... > > 1. I wonder if anyone uses shell() to return binary values. > > 2. I wonder about whether using the shellCommand property would help. > >> On Aug 22, 2019, at 9:37 AM, Paul Dupuis via use-livecode wrote: >> >> I have filed two bug reports that are in LC905rc1 and go back to 7.0 where LC functions that should deal with Unicode properly do not. >> >> These are: >> https://quality.livecode.com/show_bug.cgi?id=22213 -- The "detailed files" function fails for any files with Unicode in the name, returning the filename with %3F (?) instead of the Unicode characters properly URL encoded (they should be UFT8 encoded and then URL encoded) >> and >> https://quality.livecode.com/show_bug.cgi?id=22334 -- the shell command is not Unicode aware in returning it's results. On OSX, the results are UTF8 encoded (discovered by accident) and so an extra step is needed to text decode them, but on Windows it is a complete failure and any Unicode results of the command line - SHOWN 100% correctly is executed in the command line - are returned NATIVE encoded, causing all Unicode characters to become question marks. >> >> I have written work-around for both of these bugs that can be found in the bug reports. My work-around for the "details files" is slow, due to repeated calls to shell to fetch file properties one at a time. >> >> If anyone else out there has run into these bugs in your own code and developed a faster work-around for the "detailed files" and would care to share, I would welcome a faster fix. >> >> Of course, I'd welcome a fix from LiveCode, Ltd. to these bugs even more! >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 22 14:18:16 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 22 Aug 2019 19:18:16 +0100 Subject: Datagrid2 Form view slow down. In-Reply-To: <002ad18f-28d5-c92a-8d3f-24be896fac0c@hyperactivesw.com> References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> <002ad18f-28d5-c92a-8d3f-24be896fac0c@hyperactivesw.com> Message-ID: Ah yes, that's well hidden. Thanks for that, Jaqueline. I would assume, based on Marks old post, that anything that needs to be rendered on the container itself (not it's contents) would be classified an adornment. As you can see from my parameters though, the template does not have any borders or scrollbars but still has an effective layerMode of 'Static' while having a setting of 'dynamic'. So there is an anomaly with this I think. Thanks Sean Cole On Thu, 22 Aug 2019 at 18:28, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/22/19 10:58 AM, Sean Cole (Pi) via use-livecode wrote: > > This > > is about the ONLY description I can find for this ANYWHERE on the web! > > The dictionary has a partial (or full?) explanation in the layerMode > entry: no borders, no scrollbars. > > But that's all it says. I assume graphic effects are also a no-no. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jjs at krutt.org Thu Aug 22 12:40:24 2019 From: jjs at krutt.org (JJS) Date: Thu, 22 Aug 2019 18:40:24 +0200 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> <002ad18f-28d5-c92a-8d3f-24be896fac0c@hyperactivesw.com> Message-ID: <86d27dc0-fe7c-f141-d212-6f8c53f91516@krutt.org> (i saw you also talked about iOs, so there was some confusion) From this bug https://quality.livecode.com/show_bug.cgi?id=22231 i know that for from it has to be container mode. For table it has to be dynamic. That's on mobile and runs smooth on Android. Indeed no fancy glow or anything. But may we not assume? that it would be the same for html5 ? (just asking) Op 22-8-2019 om 20:18 schreef Sean Cole (Pi) via use-livecode: > Ah yes, that's well hidden. Thanks for that, Jaqueline. > > I would assume, based on Marks old post, that anything that needs to be > rendered on the container itself (not it's contents) would be classified an > adornment. > > As you can see from my parameters though, the template does not have any > borders or scrollbars but still has an effective layerMode of 'Static' > while having a setting of 'dynamic'. So there is an anomaly with this I > think. > > Thanks > Sean Cole > > > On Thu, 22 Aug 2019 at 18:28, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 8/22/19 10:58 AM, Sean Cole (Pi) via use-livecode wrote: >>> This >>> is about the ONLY description I can find for this ANYWHERE on the web! >> The dictionary has a partial (or full?) explanation in the layerMode >> entry: no borders, no scrollbars. >> >> But that's all it says. I assume graphic effects are also a no-no. >> >> -- >> 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 ambassador at fourthworld.com Thu Aug 22 15:24:31 2019 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 22 Aug 2019 12:24:31 -0700 Subject: Unicode is not "everywhere"... In-Reply-To: <94EE2FF8-068A-4197-990E-1D872BDA48FB@swcp.com> References: <94EE2FF8-068A-4197-990E-1D872BDA48FB@swcp.com> Message-ID: <174f2f41-1ed2-0d48-0876-87864854ccc5@fourthworld.com> Dar Scott wrote: > Concerning 22335... > > 1. I wonder if anyone uses shell() to return binary values. In the modern Unicode world, what is "text" and what is "binary"? I believe MacOS' HFS+ and Win's NFS use UTF-16 natively, Linux EXT4 uses UTF-8. It might seem simple to have a habit of running file names through textDecode, but since fopen uses ANSI I'm not sure what the implications are. -- 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 dsc at swcp.com Thu Aug 22 16:00:33 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 22 Aug 2019 14:00:33 -0600 Subject: Unicode is not "everywhere"... In-Reply-To: <174f2f41-1ed2-0d48-0876-87864854ccc5@fourthworld.com> References: <94EE2FF8-068A-4197-990E-1D872BDA48FB@swcp.com> <174f2f41-1ed2-0d48-0876-87864854ccc5@fourthworld.com> Message-ID: If the result of shell() is run through textDecode, should then shell() return binary data? This puts it outside the scope of "everywhere". I like the idea, as long as simple ASCII characters work transparently. Currently, "is strictly" says it is a string, not a binary string. As far as the question, perhaps a rhetorical question, there are some binary streams that are not UTF-16 or UTF-8. > On Aug 22, 2019, at 1:24 PM, Richard Gaskin via use-livecode wrote: > > Dar Scott wrote: > > > Concerning 22335... > > > > 1. I wonder if anyone uses shell() to return binary values. > > In the modern Unicode world, what is "text" and what is "binary"? > > I believe MacOS' HFS+ and Win's NFS use UTF-16 natively, Linux EXT4 uses UTF-8. > > It might seem simple to have a habit of running file names through textDecode, but since fopen uses ANSI I'm not sure what the implications are. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Thu Aug 22 16:08:04 2019 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 22 Aug 2019 13:08:04 -0700 Subject: Unicode is not "everywhere"... In-Reply-To: References: Message-ID: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> Dar Scott wrote: > If the result of shell() is run through textDecode, should then > shell() return binary data? This puts it outside the scope of > "everywhere". I like the idea, as long as simple ASCII characters > work transparently. Isn't that the goal of UTF-8, which is why so many programming languages uses it as the default? -- 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 paul at researchware.com Thu Aug 22 16:17:26 2019 From: paul at researchware.com (Paul Dupuis) Date: Thu, 22 Aug 2019 16:17:26 -0400 Subject: Unicode is not "everywhere"... In-Reply-To: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> References: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> Message-ID: <077b7df5-1871-c46d-5612-916541c5a76f@researchware.com> On 8/22/2019 4:08 PM, Richard Gaskin via use-livecode wrote: > Dar Scott wrote: > > > If the result of shell() is run through textDecode, should then > > shell() return binary data? This puts it outside the scope of > > "everywhere". I like the idea, as long as simple ASCII characters > > work transparently. > > Isn't that the goal of UTF-8, which is why so many programming > languages uses it as the default? > Richard is correct. UTF8 encoding does not change readability of ASCII characters. Encoding the results from shell as UTF8 does mean that ASCII characters can be used in a return values without text decoding. shell() under OSX, at least tested under LC905rc1, actually returns UTF8 and probably no one using shell on OSX has noticed if you've just been working with ASCII characters as the output of your shell comamnd. From dsc at swcp.com Thu Aug 22 20:36:59 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 22 Aug 2019 18:36:59 -0600 Subject: Unicode is not "everywhere"... In-Reply-To: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> References: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> Message-ID: <11B42B69-3F27-4752-95B2-BA0F8E6BBD53@swcp.com> You can't have it both ways. Either shell() only characters of the broadest character set, Unicode, or it returns binary. If it returns characters, then it will not work for binary responses; that will have to be documented as excluded. If Unicode is returned then textDecode is not needed and even should not be used. > On Aug 22, 2019, at 2:08 PM, Richard Gaskin via use-livecode wrote: > > Dar Scott wrote: > > > If the result of shell() is run through textDecode, should then > > shell() return binary data? This puts it outside the scope of > > "everywhere". I like the idea, as long as simple ASCII characters > > work transparently. > > Isn't that the goal of UTF-8, which is why so many programming languages uses it as the default? > > -- > 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 monte at appisle.net Thu Aug 22 20:46:56 2019 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Aug 2019 10:46:56 +1000 Subject: Unicode is not "everywhere"... In-Reply-To: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> References: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> Message-ID: Both of these are anomalies we could only resolve with new syntax I think? at lease the urlEncode one is. I?m not sure if the expectation of shell is it returns text or binary data? The workaround there would be to open process for UTF8 text read instead of using shell... not sure if UTF8 would be right on windows? possibly UTF16 there. Regarding url encoding the anomaly bug is https://quality.livecode.com/show_bug.cgi?id=14015 so your report should be closed as a duplicate of it I suspect. Probably the simplest way to resolve the detailed files/folders issue is to have a new parameter for the files and folders function to return an array. Anyone want to suggest a name for the parameter? Cheers Monte > On 23 Aug 2019, at 1:37 am, Paul Dupuis via use-livecode wrote: > > I have filed two bug reports that are in LC905rc1 and go back to 7.0 where LC functions that should deal with Unicode properly do not. > > These are: > https://quality.livecode.com/show_bug.cgi?id=22213 -- The "detailed files" function fails for any files with Unicode in the name, returning the filename with %3F (?) instead of the Unicode characters properly URL encoded (they should be UFT8 encoded and then URL encoded) > and > https://quality.livecode.com/show_bug.cgi?id=22334 -- the shell command is not Unicode aware in returning it's results. On OSX, the results are UTF8 encoded (discovered by accident) and so an extra step is needed to text decode them, but on Windows it is a complete failure and any Unicode results of the command line - SHOWN 100% correctly is executed in the command line - are returned NATIVE encoded, causing all Unicode characters to become question marks. > > I have written work-around for both of these bugs that can be found in the bug reports. My work-around for the "details files" is slow, due to repeated calls to shell to fetch file properties one at a time. > > If anyone else out there has run into these bugs in your own code and developed a faster work-around for the "detailed files" and would care to share, I would welcome a faster fix. > > Of course, I'd welcome a fix from LiveCode, Ltd. to these bugs even more! > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 22 20:53:43 2019 From: paul at researchware.com (Paul Dupuis) Date: Thu, 22 Aug 2019 20:53:43 -0400 Subject: Unicode is not "everywhere"... In-Reply-To: <11B42B69-3F27-4752-95B2-BA0F8E6BBD53@swcp.com> References: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> <11B42B69-3F27-4752-95B2-BA0F8E6BBD53@swcp.com> Message-ID: <217d9501-8634-ba63-f23e-7655af6c492b@researchware.com> I just want it consistent and documented and able to return more than just ASCII data Currently, OSX shell returns UTF8 which may mean that it is returning binary as it is returning 8-bit bytes where Unicode text has been encoded as UTF8 Windows returns CP1252 text, not binary and any Unicode results, which DOS displays as Unicode just fine, can be returned without elaborate work-arounds. That by definition is a bug. I would advocate that shell should return binary data. Text being returned should be UTF8 encoded, that way people expecting ASCII do nto need to o anything, they can just work with teh returned text. People expecting Unicode can use textDecode to get the UTF8 converted to LC native 16-bit Unicode, and people extcting binary can use the byte chunk to process what comes back however they want. The current missing part is the UTF8 encoding of text being returned under Windows. Also, as my platforms of concern are Windows and OSX, I have not tested shell() under Linux. I assume it behaves like OSX but that is an assumption. On 8/22/2019 8:36 PM, Dar Scott Consulting via use-livecode wrote: > You can't have it both ways. > > Either shell() only characters of the broadest character set, Unicode, or it returns binary. If it returns characters, then it will not work for binary responses; that will have to be documented as excluded. > > If Unicode is returned then textDecode is not needed and even should not be used. > > > >> On Aug 22, 2019, at 2:08 PM, Richard Gaskin via use-livecode wrote: >> >> Dar Scott wrote: >> >>> If the result of shell() is run through textDecode, should then >>> shell() return binary data? This puts it outside the scope of >>> "everywhere". I like the idea, as long as simple ASCII characters >>> work transparently. >> Isn't that the goal of UTF-8, which is why so many programming languages uses it as the default? >> >> -- >> 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 monte at appisle.net Thu Aug 22 20:58:41 2019 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Aug 2019 10:58:41 +1000 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: > On 23 Aug 2019, at 12:27 am, Sean Cole (Pi) via use-livecode wrote: > > Hi Monte, > > Many thanks for your response. I don't know how I had inferred that I was > using mobile as this is ONLY for PC Desktop and HTML5 emscripten running in > Chrome on a PC Desktop (which will be the final intended platform). I'm > confused about what I said that caused Herman and yourself to assume I was > talking about mobile. I thought the HTML5 forum was for Desktop Web only. Sorry, my mistake so skip that bit ;-) > > I checked in dglist for the effective layermode of the Row Templates in my > form and they are coming up as 'static' (set layermode is 'dynamic'). So > there must be some incompatible adornment. But, as Henry asked, what > adornments would cause this? I don't even know what is meant by the term > 'adornments?. The following must not be set on the group for it to work as a container or scrolling layermode: - opaque - showBorder - showname - hScrollbar - vScrollbar - dropShadow - innerShadow - outerGlow - innerGlow - colorOverlay Yes these should be listed in the docs for layerMode instead of just `(no borders, no scrollbars)`. If someone would like to create a docs bug report about that and even better submit a patch that would he helpful for everyone I think. > > All I have in my template is 3 standard text fields with no adjustments The issue is more likely with the properties of the main datagrid group rather than your row template Cheers Monte From paul at researchware.com Thu Aug 22 21:07:10 2019 From: paul at researchware.com (Paul Dupuis) Date: Thu, 22 Aug 2019 21:07:10 -0400 Subject: Unicode is not "everywhere"... In-Reply-To: References: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> Message-ID: <01e5696b-5ff1-09be-810f-9f74cc1f810a@researchware.com> On 8/22/2019 8:46 PM, Monte Goulding via use-livecode wrote: > Both of these are anomalies we could only resolve with new syntax I think? at lease the urlEncode one is. I?m not sure if the expectation of shell is it returns text or binary data? The workaround there would be to open process for UTF8 text read instead of using shell... not sure if UTF8 would be right on windows? possibly UTF16 there. > > Regarding url encoding the anomaly bug is https://quality.livecode.com/show_bug.cgi?id=14015 so your report should be closed as a duplicate of it I suspect. > > Probably the simplest way to resolve the detailed files/folders issue is to have a new parameter for the files and folders function to return an array. Anyone want to suggest a name for the parameter? > > Cheers > > Monte > > I reported what I thought was 3 bugs in 1 report in https://quality.livecode.com/show_bug.cgi?id=22213. I have edited that report to focus on a single bug - that the detailed files (and probably the detailed folders) is broken for Unicode as every Unicode character in a file name is encoded as %3F or ?. Originally I had though that meant that there was a problem with urlEncode and urlDecode as per bug https://quality.livecode.com/show_bug.cgi?id=14015 that your references Monte. However, I now consider that urlEncode and urlDecode are NOT broken and bug 14015 is really a Documentation bug that the urlEncode and urlDecode Dictionary entries should be updated. If you look at the Wikipedia entry for URL (or percent) encoding, it states that the standard practice for non-ASCII character in a URL is to encode them as UTF8 BEFORE percent-encoding. There fore, urlDecode and urlEncode are working correctly by the accepted standards. The Dictionary entries need updating to note that any non-ASCII text should be UTF8 encode before urlEncoding and UTF8 decoded after urlDecoding. See my DOC bugs: https://quality.livecode.com/show_bug.cgi?id=22340 and https://quality.livecode.com/show_bug.cgi?id=22341 I believe these replace bug https://quality.livecode.com/show_bug.cgi?id=14015 Also, the detailed files and detailed folders doesn't need an array returned (although that would be nice). This issue is the percent-encoding is not following the standard convention of UTF8 encoding non-ASCII characters before percent encoding. LC should follow industry conventions in this regard. From dsc at swcp.com Thu Aug 22 21:09:15 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 22 Aug 2019 19:09:15 -0600 Subject: Unicode is not "everywhere"... In-Reply-To: <077b7df5-1871-c46d-5612-916541c5a76f@researchware.com> References: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> <077b7df5-1871-c46d-5612-916541c5a76f@researchware.com> Message-ID: But that isn't the issue. Well, not what I thought the issue was. If shell() only returns binary, as suggested by the mention of textDecode(), then binary data must always have an interpretation as a string to keep from breaking legacy code. Currently, that is interpreted as an 8-bit character of a character set of which ASCII is a subset. So, I'm OK with shell() being clarified to return binary data, which might be pure byte stream, some Unicode encoded data, or other character encoded data. That is, unless one is using ASCII, then textDecode should be used, and even with ASCII, it may be used. I'm also OK with shell() returning a string with no loss intermediate conversions. I can use "open process" for binary data, if fixed. > On Aug 22, 2019, at 2:17 PM, Paul Dupuis via use-livecode wrote: > > On 8/22/2019 4:08 PM, Richard Gaskin via use-livecode wrote: >> Dar Scott wrote: >> >> > If the result of shell() is run through textDecode, should then >> > shell() return binary data? This puts it outside the scope of >> > "everywhere". I like the idea, as long as simple ASCII characters >> > work transparently. >> >> Isn't that the goal of UTF-8, which is why so many programming languages uses it as the default? >> > > Richard is correct. UTF8 encoding does not change readability of ASCII characters. > Encoding the results from shell as UTF8 does mean that ASCII characters can be used in a return values without text decoding. shell() under OSX, at least tested under LC905rc1, actually returns UTF8 and probably no one using shell on OSX has noticed if you've just been working with ASCII characters as the output of your shell comamnd. > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Aug 22 21:08:44 2019 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Aug 2019 11:08:44 +1000 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: <6C387027-CE43-488D-BE5E-A78EF89BFDE5@appisle.net> > The following must not be set on the group for it to work as a container or scrolling layermode: > > - opaque > - showBorder > - showname > - hScrollbar > - vScrollbar > - dropShadow > - innerShadow > - outerGlow > - innerGlow > - colorOverlay > > Yes these should be listed in the docs for layerMode instead of just `(no borders, no scrollbars)`. If someone would like to create a docs bug report about that and even better submit a patch that would he helpful for everyone I think. FWIW I think it would also be pretty handy to have an indicator on the property inspector about whether there?s an issue with these properties in the object hierarchy. It wouldn?t be that complicated, just recurse through the owner groups and check these properties. Cheers Monte From dsc at swcp.com Thu Aug 22 21:13:09 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 22 Aug 2019 19:13:09 -0600 Subject: Unicode is not "everywhere"... In-Reply-To: <217d9501-8634-ba63-f23e-7655af6c492b@researchware.com> References: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> <11B42B69-3F27-4752-95B2-BA0F8E6BBD53@swcp.com> <217d9501-8634-ba63-f23e-7655af6c492b@researchware.com> Message-ID: <900F1BD4-0854-4071-959B-ED58A6378C0C@swcp.com> All encoding is binary, but not all binary is valid Unicode encoding. > On Aug 22, 2019, at 6:53 PM, Paul Dupuis via use-livecode wrote: > > Currently, OSX shell returns UTF8 which may mean that it is returning binary as it is returning 8-bit bytes where Unicode text has been encoded as UTF8 From sean at pidigital.co.uk Thu Aug 22 21:14:07 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Fri, 23 Aug 2019 02:14:07 +0100 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: Thanks, Monte, for responding. So, the fact that some of those parameters are set to something but that I did not do this, does that mean there is something wrong in the engine that is setting them when it should not? Does that make sense? I've not even attempted changing any parameter on the template group and only gone in to edit it's contents as usual. I may have had the inspector up and that may have displayed the settings before I clicked the 'edit group' button but that is all. And, to clarify, should things like opaque, which is currently set to false, really be set to empty and likewise for all the others? All the best, as always. Sean Cole *Pi Digital * On Fri, 23 Aug 2019 at 01:58, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On 23 Aug 2019, at 12:27 am, Sean Cole (Pi) via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Monte, > > > > Many thanks for your response. I don't know how I had inferred that I was > > using mobile as this is ONLY for PC Desktop and HTML5 emscripten running > in > > Chrome on a PC Desktop (which will be the final intended platform). I'm > > confused about what I said that caused Herman and yourself to assume I > was > > talking about mobile. I thought the HTML5 forum was for Desktop Web only. > > > Sorry, my mistake so skip that bit ;-) > > > > > I checked in dglist for the effective layermode of the Row Templates in > my > > form and they are coming up as 'static' (set layermode is 'dynamic'). So > > there must be some incompatible adornment. But, as Henry asked, what > > adornments would cause this? I don't even know what is meant by the term > > 'adornments?. > > The following must not be set on the group for it to work as a container > or scrolling layermode: > > - opaque > - showBorder > - showname > - hScrollbar > - vScrollbar > - dropShadow > - innerShadow > - outerGlow > - innerGlow > - colorOverlay > > Yes these should be listed in the docs for layerMode instead of just `(no > borders, no scrollbars)`. If someone would like to create a docs bug report > about that and even better submit a patch that would he helpful for > everyone I think. > > > > > All I have in my template is 3 standard text fields with no adjustments > > The issue is more likely with the properties of the main datagrid group > rather than your row template > > Cheers > > Monte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Thu Aug 22 21:20:19 2019 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Aug 2019 11:20:19 +1000 Subject: Unicode is not "everywhere"... In-Reply-To: <01e5696b-5ff1-09be-810f-9f74cc1f810a@researchware.com> References: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> <01e5696b-5ff1-09be-810f-9f74cc1f810a@researchware.com> Message-ID: > On 23 Aug 2019, at 11:07 am, Paul Dupuis via use-livecode wrote: > > I reported what I thought was 3 bugs in 1 report in https://quality.livecode.com/show_bug.cgi?id=22213 . I have edited that report to focus on a single bug - that the detailed files (and probably the detailed folders) is broken for Unicode as every Unicode character in a file name is encoded as %3F or ?. Originally I had though that meant that there was a problem with urlEncode and urlDecode as per bug https://quality.livecode.com/show_bug.cgi?id=14015 that your references Monte. However, I now consider that urlEncode and urlDecode are NOT broken and bug 14015 is really a Documentation bug that the urlEncode and urlDecode Dictionary entries should be updated. > > If you look at the Wikipedia entry for URL (or percent) encoding, it states that the standard practice for non-ASCII character in a URL is to encode them as UTF8 BEFORE percent-encoding. There fore, urlDecode and urlEncode are working correctly by the accepted standards. The Dictionary entries need updating to note that any non-ASCII text should be UTF8 encode before urlEncoding and UTF8 decoded after urlDecoding. See my DOC bugs: > > https://quality.livecode.com/show_bug.cgi?id=22340 > and > https://quality.livecode.com/show_bug.cgi?id=22341 > > I believe these replace bug https://quality.livecode.com/show_bug.cgi?id=14015 Hmm? ok that?s a fair point. We really do need a standards compliant urlEncode function though which could resolve this because if it gets a string parameter it will know it should convert to UTF8. Again it would need a parameter or something. > > Also, the detailed files and detailed folders doesn't need an array returned (although that would be nice). This issue is the percent-encoding is not following the standard convention of UTF8 encoding non-ASCII characters before percent encoding. LC should follow industry conventions in this regard. Yes, although I think we can?t do that in a backwards compatible way which is why I suggested an array option. Cheers Monte From monte at appisle.net Thu Aug 22 21:23:14 2019 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Aug 2019 11:23:14 +1000 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: > On 23 Aug 2019, at 11:14 am, Sean Cole (Pi) via use-livecode wrote: > > So, the fact that some of those parameters are set to something but that I > did not do this, does that mean there is something wrong in the engine that > is setting them when it should not? Does that make sense? I've not even > attempted changing any parameter on the template group and only gone in to > edit it's contents as usual. I may have had the inspector up and that may > have displayed the settings before I clicked the 'edit group' button but > that is all. Did you read this bit of my response? ;-) > The issue is more likely with the properties of the main datagrid group rather than your row template > > And, to clarify, should things like opaque, which is currently set to > false, really be set to empty and likewise for all the others? For boolean properties in that list you want them false. Cheers Monte From sean at pidigital.co.uk Thu Aug 22 21:48:07 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Fri, 23 Aug 2019 02:48:07 +0100 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: > > Did you read this bit of my response? ;-) > > The issue is more likely with the properties of the main datagrid group > rather than your row template Hmm, so this now confuses me further. Are you saying that the properties of the main datagrid group also should not have their properties set? So we cannot turn on or off the border or scrollbars for these either in the MAIN datagrid group?? Is that documented anywhere? Does this make sense? Here are the properties of my *main datagrid group*: rect 24,151,755,654 toolTip hScroll 0 vScroll 0 boundingRect bottomColor *hScrollbar false* visible true sharedBehavior false topColor textStyle borderWidth 0 backPattern tabGroupBehavior false shadowPattern dontSearch false *dropShadow* topPattern label selectGroupedControls false backColor radioBehavior true cantSelect false lockLoc false foreColor hilitedButton 0 hilitePattern forePattern showFocusBorder true layerMode container *showName false* shadowOffset 4 backgroundBehavior false focusPattern shadowColor opaque false scrollbarWidth 20 *innerGlow* ink srcCopy clipsToRect false *showBorder false* name group "O2AccountsGrid" textSize cantDelete false textFont unboundedVScroll false disabled false unboundedHScroll false *colorOverlay* altId 0 hiliteColor behavior button id 1005 of stack "revDataGridLibrary" borderColor 64,64,64 *innerShadow* bottomPattern borderPattern *outerGlow* id 51592 blendLevel 0 traversalOn true vScrollbar false focusColor threeD false margins 0 layer 7 On Fri, 23 Aug 2019 at 02:23, Monte Goulding via use-livecode < use-livecode at lists.runrev.com> wrote: > > > > On 23 Aug 2019, at 11:14 am, Sean Cole (Pi) via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > So, the fact that some of those parameters are set to something but that > I > > did not do this, does that mean there is something wrong in the engine > that > > is setting them when it should not? Does that make sense? I've not even > > attempted changing any parameter on the template group and only gone in > to > > edit it's contents as usual. I may have had the inspector up and that may > > have displayed the settings before I clicked the 'edit group' button but > > that is all. > > Did you read this bit of my response? ;-) > > The issue is more likely with the properties of the main datagrid group > rather than your row template > > > > > And, to clarify, should things like opaque, which is currently set to > > false, really be set to empty and likewise for all the others? > > For boolean properties in that list you want them false. > > Cheers > > Monte > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From monte at appisle.net Thu Aug 22 22:36:15 2019 From: monte at appisle.net (Monte Goulding) Date: Fri, 23 Aug 2019 12:36:15 +1000 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> Message-ID: <45647DA4-4951-4676-84A6-28B1DF26365F@appisle.net> > On 23 Aug 2019, at 11:48 am, Sean Cole (Pi) via use-livecode wrote: > >> >> Did you read this bit of my response? ;-) >>> The issue is more likely with the properties of the main datagrid group >> rather than your row template > > > Hmm, so this now confuses me further. Are you saying that the properties of > the main datagrid group also should not have their properties set? So we > cannot turn on or off the border or scrollbars for these either in the MAIN > datagrid group?? Is that documented anywhere? Does this make sense? Yes so the datagrid group needs to be able to use the container layerMode so that means the properties of it and all its owner groups must be checked. With acceleratedRendering true for the stack just double-check the effective layermode of the main datagrid group and any parent groups. > > Here are the properties of my *main datagrid group*: > rect 24,151,755,654 > toolTip > hScroll 0 > vScroll 0 > boundingRect > bottomColor > *hScrollbar false* > visible true > sharedBehavior false > topColor > textStyle > borderWidth 0 > backPattern > tabGroupBehavior false > shadowPattern > dontSearch false > *dropShadow* > topPattern > label > selectGroupedControls false > backColor > radioBehavior true > cantSelect false > lockLoc false > foreColor > hilitedButton 0 > hilitePattern > forePattern > showFocusBorder true > layerMode container > *showName false* > shadowOffset 4 > backgroundBehavior false > focusPattern > shadowColor > opaque false > scrollbarWidth 20 > *innerGlow* > ink srcCopy > clipsToRect false > *showBorder false* > name group "O2AccountsGrid" > textSize > cantDelete false > textFont > unboundedVScroll false > disabled false > unboundedHScroll false > *colorOverlay* > altId 0 > hiliteColor > behavior button id 1005 of stack "revDataGridLibrary" > borderColor 64,64,64 > *innerShadow* > bottomPattern > borderPattern > *outerGlow* > id 51592 > blendLevel 0 > traversalOn true > vScrollbar false > focusColor > threeD false > margins 0 > layer 7 > > > On Fri, 23 Aug 2019 at 02:23, Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> >> >>> On 23 Aug 2019, at 11:14 am, Sean Cole (Pi) via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> So, the fact that some of those parameters are set to something but that >> I >>> did not do this, does that mean there is something wrong in the engine >> that >>> is setting them when it should not? Does that make sense? I've not even >>> attempted changing any parameter on the template group and only gone in >> to >>> edit it's contents as usual. I may have had the inspector up and that may >>> have displayed the settings before I clicked the 'edit group' button but >>> that is all. >> >> Did you read this bit of my response? ;-) >>> The issue is more likely with the properties of the main datagrid group >> rather than your row template >> >>> >>> And, to clarify, should things like opaque, which is currently set to >>> false, really be set to empty and likewise for all the others? >> >> For boolean properties in that list you want them false. >> >> Cheers >> >> Monte >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Fri Aug 23 00:27:46 2019 From: dsc at swcp.com (dsc at swcp.com) Date: Thu, 22 Aug 2019 22:27:46 -0600 Subject: Unicode is not "everywhere"... In-Reply-To: <61A991B8-E27E-472B-A332-F86CD3CC90D6@swcp.com> References: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> <94EE2FF8-068A-4197-990E-1D872BDA48FB@swcp.com> <61A991B8-E27E-472B-A332-F86CD3CC90D6@swcp.com> Message-ID: I tried it. on mouseUp set the shellCommand to "cmd.exe /u" put textDecode( shell("dir"), "UTF-16" ) end mouseUp That does seem to double up the newlines. It looks like it works otherwise. Dar > On Aug 22, 2019, at 12:15 PM, dsc--- via use-livecode wrote: > > The shellCommand property for Windows is "cmd.exe", not "command.com " as described in the dictionary. > > I wonder how setting that to "cmd.exe /u" would affect this behavior. > >> On Aug 22, 2019, at 10:19 AM, Dar Scott Consulting via use-livecode wrote: >> >> Concerning 22335... >> >> 1. I wonder if anyone uses shell() to return binary values. >> >> 2. I wonder about whether using the shellCommand property would help. >> >>> On Aug 22, 2019, at 9:37 AM, Paul Dupuis via use-livecode wrote: >>> >>> I have filed two bug reports that are in LC905rc1 and go back to 7.0 where LC functions that should deal with Unicode properly do not. >>> >>> These are: >>> https://quality.livecode.com/show_bug.cgi?id=22213 -- The "detailed files" function fails for any files with Unicode in the name, returning the filename with %3F (?) instead of the Unicode characters properly URL encoded (they should be UFT8 encoded and then URL encoded) >>> and >>> https://quality.livecode.com/show_bug.cgi?id=22334 -- the shell command is not Unicode aware in returning it's results. On OSX, the results are UTF8 encoded (discovered by accident) and so an extra step is needed to text decode them, but on Windows it is a complete failure and any Unicode results of the command line - SHOWN 100% correctly is executed in the command line - are returned NATIVE encoded, causing all Unicode characters to become question marks. >>> >>> I have written work-around for both of these bugs that can be found in the bug reports. My work-around for the "details files" is slow, due to repeated calls to shell to fetch file properties one at a time. >>> >>> If anyone else out there has run into these bugs in your own code and developed a faster work-around for the "detailed files" and would care to share, I would welcome a faster fix. >>> >>> Of course, I'd welcome a fix from LiveCode, Ltd. to these bugs even more! >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Tue Aug 27 06:12:13 2019 From: heather at livecode.com (Heather Laine) Date: Tue, 27 Aug 2019 11:12:13 +0100 Subject: another list test Message-ID: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> maybe this one arrives... Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From matthias_livecode_150811 at m-r-d.de Tue Aug 27 06:16:53 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 27 Aug 2019 12:16:53 +0200 Subject: another list test In-Reply-To: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> Message-ID: I can read you loud an clearly. ;) Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 27.08.2019 um 12:12 schrieb Heather Laine via use-livecode >: > > maybe this one arrives... > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 heather at livecode.com Tue Aug 27 06:22:08 2019 From: heather at livecode.com (Heather Laine) Date: Tue, 27 Aug 2019 11:22:08 +0100 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> Message-ID: <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Hooray, we are back. Thanks to Robin's dedicated work and excellent detective abilities in figuring out the problem. Apologies to all for the outage of the lists, they didn't make it over correctly to our new server and diagnosing the issue was tricky! You can all now go about your business again. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 27 Aug 2019, at 11:16, Matthias Rebbe via use-livecode wrote: > > I can read you loud an clearly. ;) > > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > >> Am 27.08.2019 um 12:12 schrieb Heather Laine via use-livecode >: >> >> maybe this one arrives... >> >> >> Heather Laine >> Customer Services Manager >> LiveCode Ltd >> www.livecode.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 roland.huettmann at gmail.com Tue Aug 27 06:35:48 2019 From: roland.huettmann at gmail.com (R.H.) Date: Tue, 27 Aug 2019 12:35:48 +0200 Subject: Another list test Message-ID: I am still not receiving any message through email since last week. Roland From mark at livecode.com Tue Aug 27 06:45:21 2019 From: mark at livecode.com (Mark Waddingham) Date: Tue, 27 Aug 2019 06:45:21 -0400 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> <45647DA4-4951-4676-84A6-28B1DF26365F@appisle.net> <79C2994F-12B2-4F19-B158-344D15C8851A@appisle.net> <700ACE2E-48C3-41BF-8197-C52A876DEA90@pidigital.co.uk> Message-ID: <556dd4860493e1e2fc5b90c176731330@livecode.com> On 2019-08-23 17:11, Pi Digital via use-livecode wrote: > Hi all > > I?ve been testing extensively all day and I?ve determined that > acceleratedRendering has no effect on Form View DataGrids at all. > Screen recordings and lining them up shows no difference in > performance with zero, one , two, three or four fields populated with > 200 or 2000 records of data. It is jerky and stutters even on an over > the top 12 core Mac Pro. What is the behavior script of your row template group? The key thing to ensure acceleratedRendering has an effect on the DataGrid is that you only change properties of the group or its children *if* they need to change. The performance advantage of acceleratedRendering is predicated on only the previously invisible rows which are coming into view being re-rendered (and thus recached) when scrolling occurs. If existing visible rows change whilst scrolling occurs then it is no different to having accelerated rendering is false. Four things which are critically important: 1) The 'effective layerMode' of the datagrid group must be 'container'- it sounds like you already managed to turn off any properties on your datagrids which were causing this not to be the case. 2) The 'minimal layout' option must be true - if this isn't true then the LayoutControl message will be sent for all rows whilst scrolling which typically ends up setting rects and related properties of child controls resulting in those already visible rows being re-rendered. 3) If there is a dgHilite setter in the behavior script then it must not change any control properites *unless* they have actually changed. (Just like the LayoutControl, the DG sends this to every row even if the value hasn't changed - however unlike the LayoutControl message I couldn't see a backwards compatible way of not making it do this :( ) 4) The 'cache controls' property must be false - this might be okay for small numbers of rows, but as the number of rows increases the overhead of manipulating so many invisible/cached groups in the DataGrid vastly dominates the value of having it at all. Another thing which is worth fiddling with is the compositor settings of the stack. The following is a reasonable heuristic for determining what reasonable values should be: /* Fetch the maximum pixel scale of all screens */ local tPixelScale put the systemPixelScale into tPixelScale /* Compute the pixel width and height of the stack (content) */ local tPixelWidth, tPixelHeight put the width of pSelf["stack"] * tPixelScale into tPixelWidth put the height of pSelf["stack"] * tPixelScale into tPixelHeight /* Compute the tile size, based on pixel scale */ local tTileSize if tPixelScale < 2 then put 32 into tTileSize else if tPixelScale < 4 then put 64 into tTileSize else put 128 into tTileSize end if /* Compute the number of tiles covering across and down the window */ local tTilesAcross, tTilesDown put (tPixelWidth + tTileSize - 1) div tTileSize into tTilesAcross put (tPixelHeight + tTileSize - 1) div tTileSize into tTilesDown /* Compute the total tile count */ local tTileCount put tTilesAcross * tTilesDown into tTileCount /* Make the cache limit big enough for twice the number of tiles needed * (note cachelimit is in bytes, with 4 bytes per pixel) */ local tCacheLimit put (tTileCount * 2) * tTileSize * tTileSize * 4 into tCacheLimit /* Configure the compositor properties */ set the compositorTileSize of pSelf["stack"] to tTileSize set the compositorCacheLimit of pSelf["stack"] to tCacheLimit The above is particularly important on Desktop and iPads as they tend to have very many more pixels being rendered (and thus needing cached) than any other hardware (due to the increasingly high density of displays). > The good news to me is that it gets identical performance even running > in a chrome browser standalone - which I find pleasantly impressive > all things considered. I remember being somewhat surprised at this fact when we started working on the HTML5 port - however it is easy to rationalise why it is the case... Rendering anything is almost entirely dominated by the number of pixels being composited to the screen in each thing being drawn. The code which does this is generally done in very tight loops - the kind of thing which JavaScript JITs convert to asm very well. So, for the most part, there's probably not much difference in the machine instructions being executed for this specific task compared to ahead-of-time compiled code which you get with the native engines. > I?m going to file a bug report for this on the understanding that this > was intended to be a feature upgrade for DataGrid v2. Even if not, > excuse the excessive sarcasm but, in 2019 where we have hover boards, > self driving cars and rockets that can park themselves, it?s hard to > believe that we still can?t get simple lines of data to scroll > smoothly up and down a screen on computers literally 1000 times more > powerful than we were all using 20 years ago (that somehow managed it > far better!!). Heh - so 20 years ago we drew a lot less stuff at much lower resolutions and had to very carefully craft code to ensure that pixels were not drawn more than once with generally no alpha-blending or anti-aliasing. You could also very rapidly access the screen buffer and copy areas around with API calls - which was a common approach to scrolling areas windows. These days, though, a good screen will require a buffer with 8-10x as many bytes and we tend to expect to be able to blend many thing together with compositing operations and anti-aliasing (indeed, raster fonts are almost non-existent these days, and we expect sub-pixel lcd-oriented smoothing). Also there is no way to access the screen buffer to copy stuff around (which, to be fair, is much less useful if you have alpha-blending as the trick no longer works). So whilst computers have become significantly more powerful (I'd actually suggest 30-40x would be a more reasonable factor compared to 2000) - we also expect a great deal more from them. In the case of LiveCode, scrolling is actually quite a tricky problem for form-like lists due to the fact we have to instantiate and manipulate controls imperatively through script which obviously allows you to do pretty much anything you want - the general rule is though if you want smooth scrolling then you need to make sure you do the absolute minimum work when scrolling. Its important to remember that the DataGrid is a general and flexible tool - so it almost goes without saying that you'll probably get better performance if you roll your own specialized variant for your specific use cases. However, you might find that you only need to tweak a few things as outlined above and you'll get more than adequate smooth scrolling. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From panos.merakos at livecode.com Tue Aug 27 06:50:15 2019 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 27 Aug 2019 13:50:15 +0300 Subject: [ANN] This Week in LiveCode 191 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 #191 here: http://bit.ly/33Yq2Kj This is a weekly newsletter about LiveCode, focussing on what's been going on in and around the open source project. New issues will be released weekly on Mondays. We have a dedicated mailing list that will deliver each issue directly to you e-mail, so you don't miss any! If you have anything you'd like mentioned (a project, a discussion somewhere, an upcoming event) then please get in touch. -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From mpetrides at earthlink.net Tue Aug 27 07:02:27 2019 From: mpetrides at earthlink.net (Marian Petrides MD) Date: Tue, 27 Aug 2019 07:02:27 -0400 Subject: another list test In-Reply-To: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> Message-ID: Got it. Sent from my iPad > On Aug 27, 2019, at 6:12 AM, Heather Laine via use-livecode wrote: > > maybe this one arrives... > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 mark at livecode.com Tue Aug 27 07:54:28 2019 From: mark at livecode.com (Mark Waddingham) Date: Tue, 27 Aug 2019 07:54:28 -0400 Subject: Unicode is not "everywhere"... In-Reply-To: <217d9501-8634-ba63-f23e-7655af6c492b@researchware.com> References: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> <11B42B69-3F27-4752-95B2-BA0F8E6BBD53@swcp.com> <217d9501-8634-ba63-f23e-7655af6c492b@researchware.com> Message-ID: <33848b7355f810374df4f5bf71f508d8@livecode.com> On 2019-08-22 20:53, Paul Dupuis via use-livecode wrote: > I just want it consistent and documented and able to return more than > just ASCII data > > Currently, OSX shell returns UTF8 which may mean that it is returning > binary as it is returning 8-bit bytes where Unicode text has been > encoded as UTF8 The encoding returned by the terminal commands on macOS are UTF-8 for two reasons: 1) Various environment variables make it so (the 'system encoding') 2) The terminal commands you are calling are written to respect the system encoding and emit text encoded in that way - because they are actually emitting text. In contrast - 'cat' will just dump the contents of the file you specify byte by byte - and files could contain data in any encoding. There is absolutely no way to tell whether a command is 'ls' like and thus emits text, or 'cat' like and thus emits binary. > Windows returns CP1252 text, not binary and any Unicode results, which > DOS displays as Unicode just fine, can be returned without elaborate > work-arounds. > > That by definition is a bug. No - that isn't the definition of a bug - it is a difference of behavior because you are dealing with platform-specific details. The /U switch which Dar suggested (and appears to work for DIR and friends at least) seems to be only applicable to 'internal commands' (according to https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmd) so it isn't clear what, if anything, it would do to an arbitrary windows terminal command. > I would advocate that shell should return binary data. Text being > returned should be UTF8 encoded, that way people expecting ASCII do > nto need to o anything, they can just work with teh returned text. > People expecting Unicode can use textDecode to get the UTF8 converted > to LC native 16-bit Unicode, and people extcting binary can use the > byte chunk to process what comes back however they want. The problem here is that it is up to the command being called what it outputs - nothing else - so this isn't an achievable goal. You have to know what the commands you are calling do, and how they work - and ensure you set the environment up when calling them to return what you want. The current situation with shell is irksome though - the internal platform-dependent code returns binary data and does nothing to it but the higher-level wrapper (i.e. the 'shell()' function implementation) will basically leave it as binary data (converted to a native string - native strings and binary strings are essentially interchangeable) and then will perform EOL conversion on it on Windows and in server engines. This means it kinda returns text but not really. Unfortunately this behavior has existed for so long that it is 'just the way things are' so it isn't going to change. Moving forward, a second parameter to shell() would probably be the best way to resolve the above anomaly - empty would mean legacy behavior, binary would mean do nothing at all. It would be nice to be able to specify 'text' as well... On UNIX-based systems it is clear what that should do (textDecode the output based on the 'system' encoding, which is determined from the environment variables of the calling process). On Windows it is not clear to me what such a setting could do - /U certainly doesn't sound like it helps arbitrary processes, but it might be there is some way to change the codepage (analogous to the 'system encoding') of the command being called so some attempt can be made to text decode and EOL convert appropriately. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Tue Aug 27 08:11:43 2019 From: mark at livecode.com (Mark Waddingham) Date: Tue, 27 Aug 2019 08:11:43 -0400 Subject: Unicode is not "everywhere"... In-Reply-To: <01e5696b-5ff1-09be-810f-9f74cc1f810a@researchware.com> References: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> <01e5696b-5ff1-09be-810f-9f74cc1f810a@researchware.com> Message-ID: On 2019-08-22 21:07, Paul Dupuis via use-livecode wrote: > I reported what I thought was 3 bugs in 1 report in > https://quality.livecode.com/show_bug.cgi?id=22213. I have edited that > report to focus on a single bug - that the detailed files (and > probably the detailed folders) is broken for Unicode as every Unicode > character in a file name is encoded as %3F or ?. Originally I had > though that meant that there was a problem with urlEncode and > urlDecode as per bug > https://quality.livecode.com/show_bug.cgi?id=14015 that your > references Monte. However, I now consider that urlEncode and urlDecode > are NOT broken and bug 14015 is really a Documentation bug that the > urlEncode and urlDecode Dictionary entries should be updated. > Also, the detailed files and detailed folders doesn't need an array > returned (although that would be nice). This issue is the > percent-encoding is not following the standard convention of UTF8 > encoding non-ASCII characters before percent encoding. LC should > follow industry conventions in this regard. Strictly speaking urlEncode and urlDecode are indeed not broken - they are just very old. They were implemented when there were no universally accepted industry conventions for encoding of URLs (particularly those containing international characters). They cannot be changed for obvious reasons - but we could do with urlEncodeRFC and urlDecodeRFC which would be string->string functions which do what is expected today. (And also not encode some characters in a way which is now not the 'standard du jour'). For the same reason that urlEncode and urlDecode cannot be changed, the detailed files/folders cannot be changed. My general feeling here is that 'the detailed files' and 'the detailed folders' should be put out to pasture as they are grossly inefficient and difficult to work with. Instead new functions 'fileInfo' and 'folderInfo' could replace them. They would take one or two parameters, the first a filename and the second an optional attribute. If no attribute is specified then an array of all known attributes for the platform is returned; otherwise that specific attribute is returned. e.g. fileInfo("foo.txt", "modification time") -> returns the modification time of foo.txt fileInfo("foo.txt") -> returns an array with keys such as "modification time" mapping to the obvious thing I'd probably vote for the functions returning empty if the target didn't exist (rather than throwing an error), for the simple reason as you can't check for existence of a file and get its details in an atomic fashion (another process could decide to delete the file you just asserted existed between the 'there exists' and the 'fileInfo' call). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From hh at hyperhh.de Tue Aug 27 08:59:39 2019 From: hh at hyperhh.de (hh) Date: Tue, 27 Aug 2019 14:59:39 +0200 Subject: Selective forums Message-ID: The forums have when viewed in Firefox-Mac some days and newer messages lost. Different to Safari/Chrome-Mac where some in-between-posts are lost. This is NOT a problem of caching, but another problem created by "maintenance"... From hh at hyperhh.de Tue Aug 27 09:12:05 2019 From: hh at hyperhh.de (hh) Date: Tue, 27 Aug 2019 15:12:05 +0200 Subject: another list test Message-ID: <3D1784E6-A19A-4445-8B50-317B82DCD96E@hyperhh.de> > Heather wrote: > Hooray, we are back. Thanks to Robin's dedicated work and excellent > detective abilities in figuring out the problem. > Apologies to all for the outage of the lists, they didn't make it > over correctly to our new server and diagnosing the issue was tricky! > > You can all now go about your business again. But http://livecodeshare.runrev.com/ or from the HELP menu of latest LC (9.5.0) + Sample Stacks + Sample Scripts + Tutorials are still lost in space, since more than four days ... From paul at researchware.com Tue Aug 27 09:13:39 2019 From: paul at researchware.com (Paul Dupuis) Date: Tue, 27 Aug 2019 09:13:39 -0400 Subject: Unicode is not "everywhere"... In-Reply-To: References: <234b7c27-4393-e41a-00a4-a12f1c12d4c4@researchware.com> <01e5696b-5ff1-09be-810f-9f74cc1f810a@researchware.com> Message-ID: <2445ccfd-bf84-262d-2bb4-47cd64063c2b@researchware.com> Mark, 1) Fine with shell remaining as is. Thanks to Dar and others, there are ways to execute a windows or OSX shell command that returns Unicode and get Unicode back. The Dictionary entries just need to be documented with? a caution or warning about how to handle Unicode with Shell on each platform. I'd be happy to change the bug to a DOC bug and update the dictionary if you give the go-ahead. 2) Fine with urlEncode/urlDecode remaining as it. If LC want to make a set of functions urlEncodeRFC/urlDecodeRFC, I am all for that, however, just documenting the convention that Unicode should be UTF8 encoded before urlEncoding and UTF8 decoded after URLDecoding in the Dictionary would be sufficient. I opened two documentation bugs (one for each dictionary entry for urlencode/decode exactly for updating the Dictionary with the intent to do that myself as soon as I have a chance. 3) I (Researchware, Inc.) desperately needs a fix for the detailed files/detailed folder - asap. Our main application depends upon it. We have moved the app from LC6.7.11 to LC 9.0.5rc1 and made it full Unicode for the international market, but the part of our app that extensively manages users research documents for their projects relies on "the detailed files" which does not work with Unicode and my work-around using shell (see the bug entry) is PAINFULLY slow. So new functions 'fileInfo' and 'folderInfo' would be wonderful or something - anything - that can be done sooner rather than later. Researchware (between myself and Curry whose working for us) filed about 20+ LC bugs in the last 60 days. The wonderful thing about LC is that we've been able to code work-arounds for most all of those many bugs. I've even coded a work-around for the "detailed" files, but it's performance due to the multiple shell calls is very poor. Our customers won't stand for it for very long, hence the desperate need for a solution sooner rather than later. Please, please consider moving a solution to the detailed files to a forthcoming release. On 8/27/2019 8:11 AM, Mark Waddingham via use-livecode wrote: > On 2019-08-22 21:07, Paul Dupuis via use-livecode wrote: >> I reported what I thought was 3 bugs in 1 report in >> https://quality.livecode.com/show_bug.cgi?id=22213. I have edited that >> report to focus on a single bug - that the detailed files (and >> probably the detailed folders) is broken for Unicode as every Unicode >> character in a file name is encoded as %3F or ?. Originally I had >> though that meant that there was a problem with urlEncode and >> urlDecode as per bug >> https://quality.livecode.com/show_bug.cgi?id=14015 that your >> references Monte. However, I now consider that urlEncode and urlDecode >> are NOT broken and bug 14015 is really a Documentation bug that the >> urlEncode and urlDecode Dictionary entries should be updated. > >> Also, the detailed files and detailed folders doesn't need an array >> returned (although that would be nice). This issue is the >> percent-encoding is not following the standard convention of UTF8 >> encoding non-ASCII characters before percent encoding. LC should >> follow industry conventions in this regard. > > Strictly speaking urlEncode and urlDecode are indeed not broken - they > are just very old. They were implemented when there were no > universally accepted industry conventions for encoding of URLs > (particularly those containing international characters). > > They cannot be changed for obvious reasons - but we could do with > urlEncodeRFC and urlDecodeRFC which would be string->string functions > which do what is expected today. (And also not encode some characters > in a way which is now not the 'standard du jour'). > > For the same reason that urlEncode and urlDecode cannot be changed, > the detailed files/folders cannot be changed. > > My general feeling here is that 'the detailed files' and 'the detailed > folders' should be put out to pasture as they are grossly inefficient > and difficult to work with. > > Instead new functions 'fileInfo' and 'folderInfo' could replace them. > They would take one or two parameters, the first a filename and the > second an optional attribute. > > If no attribute is specified then an array of all known attributes for > the platform is returned; otherwise that specific attribute is returned. > > e.g. fileInfo("foo.txt", "modification time") -> returns the > modification time of foo.txt > ???? fileInfo("foo.txt") -> returns an array with keys such as > "modification time" mapping to the obvious thing > > I'd probably vote for the functions returning empty if the target > didn't exist (rather than throwing an error), for the simple reason as > you can't check for existence of a file and get its details in an > atomic fashion (another process could decide to delete the file you > just asserted existed between the 'there exists' and the 'fileInfo' > call). > > Warmest Regards, > > Mark. > From heather at livecode.com Tue Aug 27 09:24:11 2019 From: heather at livecode.com (Heather Laine) Date: Tue, 27 Aug 2019 14:24:11 +0100 Subject: another list test In-Reply-To: <3D1784E6-A19A-4445-8B50-317B82DCD96E@hyperhh.de> References: <3D1784E6-A19A-4445-8B50-317B82DCD96E@hyperhh.de> Message-ID: <055CCB50-114A-4A46-9DAF-A12511900F03@livecode.com> LiveCodeShare will also return. As will anything else that has got lost or temporarily mislaid in transit. We're not trying to kill off anything here, quite the reverse. We're moving servers to improve our service. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 27 Aug 2019, at 14:12, hh via use-livecode wrote: > >> Heather wrote: >> Hooray, we are back. Thanks to Robin's dedicated work and excellent >> detective abilities in figuring out the problem. >> Apologies to all for the outage of the lists, they didn't make it >> over correctly to our new server and diagnosing the issue was tricky! >> >> You can all now go about your business again. > > But > > http://livecodeshare.runrev.com/ > > or from the HELP menu of latest LC (9.5.0) > + Sample Stacks > + Sample Scripts > + Tutorials > > are still lost in space, since more than four days ... > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Tue Aug 27 09:25:41 2019 From: heather at livecode.com (Heather Laine) Date: Tue, 27 Aug 2019 14:25:41 +0100 Subject: Selective forums In-Reply-To: References: Message-ID: Very interesting, yes. We're investigating. Probably to do with who posted what when, at what point of transition. Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 27 Aug 2019, at 13:59, hh via use-livecode wrote: > > The forums have when viewed in Firefox-Mac some days and > newer messages lost. Different to Safari/Chrome-Mac where > some in-between-posts are lost. > > This is NOT a problem of caching, but another problem > created by "maintenance"... > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Tue Aug 27 09:54:39 2019 From: hh at hyperhh.de (hh) Date: Tue, 27 Aug 2019 15:54:39 +0200 Subject: Selective forums Message-ID: <4C0F7CFF-1CEC-4D13-A188-972FDD708A05@hyperhh.de> > Heather wrote: > Very interesting, yes. We're investigating. Probably to do > with who posted what when, at what point of transition. Some "diff threads" disappeared but it is Ok now. Possibly this was simply a wrong browser/platform switch. From sean at pidigital.co.uk Tue Aug 27 10:10:18 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Tue, 27 Aug 2019 15:10:18 +0100 Subject: Datagrid2 Form view slow down. In-Reply-To: <556dd4860493e1e2fc5b90c176731330@livecode.com> References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> <45647DA4-4951-4676-84A6-28B1DF26365F@appisle.net> <79C2994F-12B2-4F19-B158-344D15C8851A@appisle.net> <700ACE2E-48C3-41BF-8197-C52A876DEA90@pidigital.co.uk> <556dd4860493e1e2fc5b90c176731330@livecode.com> Message-ID: Hi Mark, Thank you for you very comprehensive response. It does help me understand a great deal more about the innards of the data grid. However, I have been running my grid in an 800x600 window. I had restarted fresh with a new template stack and new row template. The template has the original BG untouched. The original field renamed, and repositioned, and two others copied from it and repositioned. (Later I had a rounded rectangle added which sits behind the last field but this made no difference to performance). The row height is set to 30. No layout control other than for the data content. Minimal layout set to true. I kept it basic as it could be. But it still stutters on scroll with or without Accelerated rendering on. So, in my very humble opinion, something is still 'up'! I don't know what it is but Form view is definitly not operating up to par for some reason. As suggested, I have had to spend considerable more time coding my own data grid. This has held us up no end as a result. Again. Especially as, because HTML5 deployment is broken so much, that I have to manually code nearly all key and mouse operations that come in (delete, backspace, escape, arrows, mouse-scroll, double-click, cut, copy, paste, - anything other than a-Z,0-9 pretty much). And geometry doesn't work either for HTML5 so I have to code resize for almost every object manually. It is getting tiresome and tedious just how much in LC does not work! I'm am very nearly at burnout stage from it - Again! LC almost killed me last year and it is trying really hard to do it to me again it seems. Try it, see for yourself! Thanks (semi-hysterically) again. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 From dsc at swcp.com Tue Aug 27 10:51:12 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Tue, 27 Aug 2019 08:51:12 -0600 Subject: another list test In-Reply-To: <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Message-ID: I still don't see this: http://quality.runrev.com > On Aug 27, 2019, at 4:22 AM, Heather Laine via use-livecode wrote: > > Hooray, we are back. Thanks to Robin's dedicated work and excellent detective abilities in figuring out the problem. > > Apologies to all for the outage of the lists, they didn't make it over correctly to our new server and diagnosing the issue was tricky! > > You can all now go about your business again. > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com > > > >> On 27 Aug 2019, at 11:16, Matthias Rebbe via use-livecode wrote: >> >> I can read you loud an clearly. ;) >> >> >> Matthias Rebbe >> >> free tools for Livecoders: >> InstaMaker >> WinSignMaker Mac >> >>> Am 27.08.2019 um 12:12 schrieb Heather Laine via use-livecode >: >>> >>> maybe this one arrives... >>> >>> >>> Heather Laine >>> Customer Services Manager >>> LiveCode Ltd >>> www.livecode.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 dsc at swcp.com Tue Aug 27 10:55:29 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Tue, 27 Aug 2019 08:55:29 -0600 Subject: Unicode is not "everywhere"... In-Reply-To: <33848b7355f810374df4f5bf71f508d8@livecode.com> References: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> <11B42B69-3F27-4752-95B2-BA0F8E6BBD53@swcp.com> <217d9501-8634-ba63-f23e-7655af6c492b@researchware.com> <33848b7355f810374df4f5bf71f508d8@livecode.com> Message-ID: The added parameter approach looks very similar to an enhancement suggestion that has been around for a while. I'd mention the bug number, but I and bugs are not getting along at the moment. Dar > On Aug 27, 2019, at 5:54 AM, Mark Waddingham via use-livecode wrote: > > On 2019-08-22 20:53, Paul Dupuis via use-livecode wrote: >> I just want it consistent and documented and able to return more than >> just ASCII data >> Currently, OSX shell returns UTF8 which may mean that it is returning >> binary as it is returning 8-bit bytes where Unicode text has been >> encoded as UTF8 > > The encoding returned by the terminal commands on macOS are UTF-8 for two reasons: > > 1) Various environment variables make it so (the 'system encoding') > > 2) The terminal commands you are calling are written to respect the system encoding and emit text encoded in that way - because they are actually emitting text. > > In contrast - 'cat' will just dump the contents of the file you specify byte by byte - and files could contain data in any encoding. > > There is absolutely no way to tell whether a command is 'ls' like and thus emits text, or 'cat' like and thus emits binary. > >> Windows returns CP1252 text, not binary and any Unicode results, which >> DOS displays as Unicode just fine, can be returned without elaborate >> work-arounds. >> That by definition is a bug. > > No - that isn't the definition of a bug - it is a difference of behavior because you are dealing with platform-specific details. > > The /U switch which Dar suggested (and appears to work for DIR and friends at least) seems to be only applicable to 'internal commands' (according to https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmd) so it isn't clear what, if anything, it would do to an arbitrary windows terminal command. > >> I would advocate that shell should return binary data. Text being >> returned should be UTF8 encoded, that way people expecting ASCII do >> nto need to o anything, they can just work with teh returned text. >> People expecting Unicode can use textDecode to get the UTF8 converted >> to LC native 16-bit Unicode, and people extcting binary can use the >> byte chunk to process what comes back however they want. > > The problem here is that it is up to the command being called what it outputs - nothing else - so this isn't an achievable goal. You have to know what the commands you are calling do, and how they work - and ensure you set the environment up when calling them to return what you want. > > The current situation with shell is irksome though - the internal platform-dependent code returns binary data and does nothing to it but the higher-level wrapper (i.e. the 'shell()' function implementation) will basically leave it as binary data (converted to a native string - native strings and binary strings are essentially interchangeable) and then will perform EOL conversion on it on Windows and in server engines. This means it kinda returns text but not really. Unfortunately this behavior has existed for so long that it is 'just the way things are' so it isn't going to change. > > Moving forward, a second parameter to shell() would probably be the best way to resolve the above anomaly - empty would mean legacy behavior, binary would mean do nothing at all. > > It would be nice to be able to specify 'text' as well... > > On UNIX-based systems it is clear what that should do (textDecode the output based on the 'system' encoding, which is determined from the environment variables of the calling process). > > On Windows it is not clear to me what such a setting could do - /U certainly doesn't sound like it helps arbitrary processes, but it might be there is some way to change the codepage (analogous to the 'system encoding') of the command being called so some attempt can be made to text decode and EOL convert appropriately. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Tue Aug 27 10:58:09 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 27 Aug 2019 16:58:09 +0200 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Message-ID: But https://quality.livecode.com is online Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 27.08.2019 um 16:51 schrieb Dar Scott Consulting via use-livecode >: > > I still don't see this: > http://quality.runrev.com > > > Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac From mark at livecode.com Tue Aug 27 10:59:48 2019 From: mark at livecode.com (Mark Waddingham) Date: Tue, 27 Aug 2019 10:59:48 -0400 Subject: Unicode is not "everywhere"... In-Reply-To: References: <3f3164c4-48fb-1cfd-b885-9816adbbfd81@fourthworld.com> <11B42B69-3F27-4752-95B2-BA0F8E6BBD53@swcp.com> <217d9501-8634-ba63-f23e-7655af6c492b@researchware.com> <33848b7355f810374df4f5bf71f508d8@livecode.com> Message-ID: <2e42de4a38b61980a20c0664aebedc45@livecode.com> On 2019-08-27 10:55, Dar Scott Consulting via use-livecode wrote: > The added parameter approach looks very similar to an enhancement > suggestion that has been around for a while. I'd mention the bug > number, but I and bugs are not getting along at the moment. Indeed - it is very unlikely a new suggestion - I dimly recall such a enhancement request also. Unfortunately bugzilla isn't currently getting along with our new server at all so it may be a little while longer before I can check :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ahsoftware at sonic.net Tue Aug 27 11:00:30 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 27 Aug 2019 08:00:30 -0700 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Message-ID: On 8/27/19 7:51 AM, Dar Scott Consulting via use-livecode wrote: > I still don't see this: > http://quality.runrev.com It's even worse if you try https://quality.livecode.com/ -- Mark Wieder ahsoftware at gmail.com From matthias_livecode_150811 at m-r-d.de Tue Aug 27 11:04:24 2019 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Tue, 27 Aug 2019 17:04:24 +0200 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Message-ID: May i ask what is not working. I just did a quick test and searched for some bug reports. That was working w/o problems? Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 27.08.2019 um 17:00 schrieb Mark Wieder via use-livecode >: > > On 8/27/19 7:51 AM, Dar Scott Consulting via use-livecode wrote: >> I still don't see this: >> http://quality.runrev.com > > > It's even worse if you try > https://quality.livecode.com/ > > -- > 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 heather at livecode.com Tue Aug 27 11:14:17 2019 From: heather at livecode.com (Heather Laine) Date: Tue, 27 Aug 2019 16:14:17 +0100 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Message-ID: quality.livecode.com is not up and running on the new server. It is still working on the old server. Whether you can see it or not depends on which server your dns is pointing at. We are aware of the issue with the QC, and are working on upgrading it so it can move. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 27 Aug 2019, at 16:04, Matthias Rebbe via use-livecode wrote: > > May i ask what is not working. > > I just did a quick test and searched for some bug reports. That was working w/o problems? > > Matthias Rebbe > > free tools for Livecoders: > InstaMaker > WinSignMaker Mac > >> Am 27.08.2019 um 17:00 schrieb Mark Wieder via use-livecode >: >> >> On 8/27/19 7:51 AM, Dar Scott Consulting via use-livecode wrote: >>> I still don't see this: >>> http://quality.runrev.com > >> >> It's even worse if you try >> https://quality.livecode.com/ >> >> -- >> 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 ahsoftware at sonic.net Tue Aug 27 11:14:15 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 27 Aug 2019 08:14:15 -0700 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Message-ID: On 8/27/19 8:04 AM, Matthias Rebbe via use-livecode wrote: > May i ask what is not working. > > I just did a quick test and searched for some bug reports. That was working w/o problems? Seems to be in a transitional state atm. My first try got a page full of perl compilation errors. Now I just get ERR_TIMED_OUT. Anywhere on the livecode.com domain. -- Mark Wieder ahsoftware at gmail.com From mark at livecode.com Tue Aug 27 11:16:05 2019 From: mark at livecode.com (Mark Waddingham) Date: Tue, 27 Aug 2019 11:16:05 -0400 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Message-ID: <0d10d162e0665fe34519fa0682f7c55b@livecode.com> On 2019-08-27 11:04, Matthias Rebbe via use-livecode wrote: > May i ask what is not working. > > I just did a quick test and searched for some bug reports. That was > working w/o problems? In theory you should not be seeing that - for some reason that we cannot determine, the old server is still accessible to some people even though the DNS entries have all propagated. For example, for me, the IP address I get for quality.livecode.com is the new server, yet I see the old server's instance of bugzilla. In contrast at least half the team here just get a rather unfortunate error message - which is due to a software incompatibility we are trying to resolve. Warmest Regards, Mark. P.S. The disruption over the last couple of days was caused by a failure somewhere during the automatic account transfer process from old server to new, and then a subsequent RAID disk failure on the *new* server. This has left a bit of mess which is currently being cleared up. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Tue Aug 27 11:32:08 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Aug 2019 15:32:08 +0000 Subject: another list test In-Reply-To: <0d10d162e0665fe34519fa0682f7c55b@livecode.com> References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> <0d10d162e0665fe34519fa0682f7c55b@livecode.com> Message-ID: Sometimes a local DNS cache, like on the workstation and even in a local DNS server, will not have flushed. Often DNS records are cached for several days. There are commands of course to flush the workstation cache. On Windows it's ipconfig /flushdns. On a Windows server you have to go into DNS Management to flush the cache. Bob S > On Aug 27, 2019, at 08:16 , Mark Waddingham via use-livecode wrote: > > On 2019-08-27 11:04, Matthias Rebbe via use-livecode wrote: >> May i ask what is not working. >> I just did a quick test and searched for some bug reports. That was >> working w/o problems? > > In theory you should not be seeing that - for some reason that we cannot determine, the old server is still accessible to some people even though the DNS entries have all propagated. > > For example, for me, the IP address I get for quality.livecode.com is the new server, yet I see the old server's instance of bugzilla. In contrast at least half the team here just get a rather unfortunate error message - which is due to a software incompatibility we are trying to resolve. > > Warmest Regards, > > Mark. > > P.S. The disruption over the last couple of days was caused by a failure somewhere during the automatic account transfer process from old server to new, and then a subsequent RAID disk failure on the *new* server. This has left a bit of mess which is currently being cleared up. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Tue Aug 27 12:43:55 2019 From: hh at hyperhh.de (hh) Date: Tue, 27 Aug 2019 18:43:55 +0200 Subject: Multiple windows in HTML5 Message-ID: I added two demos to my HTML5 standalone samples (US) http://hh.on-rev.com/html5/index-large.html#as (EU) http://hyperhh.de/html5/index-large.html#as 1 ? Multi Focus-Move-Resize shows how to move and resize multiple windows (substacks) incl. the main window. Moreover the stack windows are focused so that you can immediately start typing in a focused field without having to click first at it. 2 ? GoStackURL, uses SOP (same origin policy) is based on the above and loads moreover (ordinary) stacks by "go stack URL". The stacks can be closed, opened again or deleted as usual. Both stack shows also how to add scrollwheel support (vertically, and, if your mouse supports that, also horizontally) to any field of any open stack window. The stack sources will be uploaded to livecodeshare/SampleStacks as soon that is out of maintenance. From sean at pidigital.co.uk Tue Aug 27 13:15:47 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Tue, 27 Aug 2019 18:15:47 +0100 Subject: Multiple windows in HTML5 In-Reply-To: References: Message-ID: Fantastic work. Thanks H Sean Cole *Pi Digital* From ahsoftware at sonic.net Tue Aug 27 13:34:30 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 27 Aug 2019 10:34:30 -0700 Subject: another list test In-Reply-To: <0d10d162e0665fe34519fa0682f7c55b@livecode.com> References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> <0d10d162e0665fe34519fa0682f7c55b@livecode.com> Message-ID: <0f12bc8f-c557-2029-d3cb-bc0769aa42bc@sonic.net> On 8/27/19 8:16 AM, Mark Waddingham via use-livecode wrote: > For example, for me, the IP address I get for quality.livecode.com is > the new server, yet I see the old server's instance of bugzilla. In > contrast at least half the team here just get a rather unfortunate error > message - which is due to a software incompatibility we are trying to > resolve. Something like this? Devel::StackTrace version 2 required--this is only version 1.27 at /usr/local/share/perl5/Exception/Class/Base.pm line 9. BEGIN failed--compilation aborted at /usr/local/share/perl5/Exception/Class/Base.pm line 9. Compilation failed in require at /usr/local/share/perl5/Exception/Class.pm line 10. BEGIN failed--compilation aborted at /usr/local/share/perl5/Exception/Class.pm line 10. Compilation failed in require at /usr/local/share/perl5/Params/ValidationCompiler/Exceptions.pm line 26. BEGIN failed--compilation aborted at /usr/local/share/perl5/Params/ValidationCompiler/Exceptions.pm line 26. Compilation failed in require at /usr/local/share/perl5/Params/ValidationCompiler/Compiler.pm line 11. BEGIN failed--compilation aborted at /usr/local/share/perl5/Params/ValidationCompiler/Compiler.pm line 11. Compilation failed in require at /usr/local/share/perl5/Params/ValidationCompiler.pm line 8. BEGIN failed--compilation aborted at /usr/local/share/perl5/Params/ValidationCompiler.pm line 8. Compilation failed in require at /usr/local/lib64/perl5/DateTime/Duration.pm line 13. BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DateTime/Duration.pm line 13. Compilation failed in require at /usr/local/lib64/perl5/DateTime.pm line 14. BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DateTime.pm line 14. Compilation failed in require at Bugzilla/Util.pm line 55. BEGIN failed--compilation aborted at Bugzilla/Util.pm line 55. Compilation failed in require at Bugzilla/Error.pm line 33. BEGIN failed--compilation aborted at Bugzilla/Error.pm line 33. Compilation failed in require at Bugzilla/Install/Filesystem.pm line 31. BEGIN failed--compilation aborted at Bugzilla/Install/Filesystem.pm line 31. Compilation failed in require at Bugzilla/Config.pm line 38. BEGIN failed--compilation aborted at Bugzilla/Config.pm line 38. Compilation failed in require at Bugzilla.pm line 38. BEGIN failed--compilation aborted at Bugzilla.pm line 38. Compilation failed in require at index.cgi line 34. BEGIN failed--compilation aborted at index.cgi line 34. If it helps any, ping results from here @10:30AM PST: quality.livecode.com molly.livecode.com (50.28.38.113) quality.runrev.com Name or service not known livecode.com molly.livecode.com (50.28.38.113) livecodeshare.livecode.com Name or service not known livecodeshare.runrev.com meg.on-rev.com (5.135.139.104) I'm using Cloudflare's servers for DNS resolution. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Tue Aug 27 13:41:55 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 27 Aug 2019 17:41:55 +0000 Subject: another list test In-Reply-To: <0f12bc8f-c557-2029-d3cb-bc0769aa42bc@sonic.net> References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> <0d10d162e0665fe34519fa0682f7c55b@livecode.com> <0f12bc8f-c557-2029-d3cb-bc0769aa42bc@sonic.net> Message-ID: Caching won't be an issue for you then. Bob S > On Aug 27, 2019, at 10:34 , Mark Wieder via use-livecode wrote: > > I'm using Cloudflare's servers for DNS resolution. > > -- > Mark Wieder > ahsoftware at gmail.com From ahsoftware at sonic.net Tue Aug 27 14:02:34 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 27 Aug 2019 11:02:34 -0700 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> <0d10d162e0665fe34519fa0682f7c55b@livecode.com> <0f12bc8f-c557-2029-d3cb-bc0769aa42bc@sonic.net> Message-ID: <419faa09-d847-14a5-a9f6-3127161471e2@sonic.net> On 8/27/19 10:41 AM, Bob Sneidar via use-livecode wrote: > Caching won't be an issue for you then. Not from a commandline, but locally, browsers do what they want. -- Mark Wieder ahsoftware at gmail.com From jjs at krutt.org Tue Aug 27 12:13:22 2019 From: jjs at krutt.org (JJS) Date: Tue, 27 Aug 2019 18:13:22 +0200 Subject: another list test In-Reply-To: <419faa09-d847-14a5-a9f6-3127161471e2@sonic.net> References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> <0d10d162e0665fe34519fa0682f7c55b@livecode.com> <0f12bc8f-c557-2029-d3cb-bc0769aa42bc@sonic.net> <419faa09-d847-14a5-a9f6-3127161471e2@sonic.net> Message-ID: for next time: - Warn users - put sites offline -create back-up -transfer to new server -check if all is working -put it back online instead of how it looks now: transfer to new server pull the switch to put new server online aaah sh*t some sites not working ok another aaah stuff is missing inform users Op 27-8-2019 om 20:02 schreef Mark Wieder via use-livecode: > On 8/27/19 10:41 AM, Bob Sneidar via use-livecode wrote: >> Caching won't be an issue for you then. > > Not from a commandline, but locally, browsers do what they want. > From jacque at hyperactivesw.com Tue Aug 27 15:32:15 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Aug 2019 14:32:15 -0500 Subject: BackKey in browser widget Message-ID: I need to catch the backKey in a browser widget on Android. There's a backKey handler in the card script but it doesn't trigger when the browser has focus, the browser automatically handles it. Is there a way to catch that keypress? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dan at clearvisiontech.com Tue Aug 27 17:10:45 2019 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 27 Aug 2019 21:10:45 +0000 Subject: Fonts on Android Message-ID: <34F91556-6964-4367-A2FC-854467CE1329@clearvisiontech.com> Greetings! I am able to get a custom font installed and running on a Android device. But, how do you handle the font family? Included in my app is "myfont-Regular.ttf" and "myfont-bold.ttf". When the app launches, I call: set the textFont of stack "main" to "myfont" It's only using the bold version (probably because it's first alphabetically). Is there a way to map a font to a style so that text is " myfont-Regular" and bold text is "myfont-bold"? Thanks in advance, -Dan From jacque at hyperactivesw.com Tue Aug 27 17:19:43 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Aug 2019 16:19:43 -0500 Subject: URL for hashtags Message-ID: <5238a54d-c233-7eaa-d677-c33aa2868256@hyperactivesw.com> I'm glad the list is back up because I'm full of questions today. I am getting URLs from AWS to display in a browser. The URL is huge, with lots of stuff after the "?" (parameters, access tokens, etc.) The html loads fine in the browser widget. The URL looks something like this: http://.cloudfront.net/2.0/mobile/folder1/folder2/fileName.html?Expires=1567795282&Signature=&Key-Pair-Id= But I need to jump to specific hashtags in the URL. If I put "#tagID" after the "fileName.html" part of the URL, I get an error because that isn't a file in the AWS bucket. If I use only "#tagID" as the URL after the file is loaded, I get an error because there aren't any parameters. So, how would I jump to a specific part of the existing, loaded html page in the browser widget? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Tue Aug 27 17:24:57 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 27 Aug 2019 14:24:57 -0700 Subject: high resolution when printing to pdf, either from images or pdf widgets Message-ID: <01872BE5-DC40-4E3B-9392-77A3929C0694@gmail.com> I?ve seen references, even in the bug report, to ?directly? printing to pdf from a widget. My experience has been that it still reduces the pdf to screen resolution. I still insist they the fact that the engine *renders* the pdf, rather than including it, is a hard-core bug. I attached an example of including parts of a pdf into another. In the meantime, though, has anyone actually managed to get hi-res output of either a pdf, jpg, or png into an outputted pdf? The only way I?m seeing at the moment would be a bizarre process in which the stack is duplicated at 400%, and a script looping through to expand and replace every field, reposition and change the text size, etc., and then open the 33?x44? file in preview (or whatever) and export from there as 8.5?x1? . . . This will yield crummy results, though, as livecode?s posting of text and use of margins in fields is nonlinear (to put it charitably!) *IF* I could export to pdf at object density, I?d temporarily use png extracted from the pdf with an external program. Another potential solution would be to export without the pdf and build a script to an external unix utility that could print a page of source pdf and my output to a third file. And if I could fully figure out the pdf file structure, I could expand my example file to write a custom pdf merging the field output with other pdfs . . ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From dochawk at gmail.com Tue Aug 27 17:26:57 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Tue, 27 Aug 2019 14:26:57 -0700 Subject: another list test In-Reply-To: References: <1B56A2D5-DA58-4728-97EA-1A0C602E8886@livecode.com> <1D50FCC2-F63F-4A13-9266-8FA8936669A9@livecode.com> Message-ID: On Aug 27, 2019, at 7:51 AM, Dar Scott Consulting via use-livecode wrote: > > I still don't see this: > http://quality.runrev.com > That?s because a side-effect of the outage is to render livecode impervious to bugs during the interregnum :) ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From rdimola at evergreeninfo.net Tue Aug 27 18:08:56 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 27 Aug 2019 18:08:56 -0400 Subject: Fonts on Android In-Reply-To: <34F91556-6964-4367-A2FC-854467CE1329@clearvisiontech.com> References: <34F91556-6964-4367-A2FC-854467CE1329@clearvisiontech.com> Message-ID: <00b201d55d24$08403890$18c0a9b0$@net> When I run into this problem I use the routine below to enumerate all the fonts and their styles. If you have both a "Plain" and "Bold" style for a font then you use the font name and set its style to "Bold" If you use a "bold" base font then its "plain" style IS the bold font and setting its style to "Bold" will do nothing. function FontInfo local fnames,fstyles,tlist put the fontnames into fnames sort fnames repeat for each line tfnt in fnames put "*"&tfnt&cr after tlist put the fontstyles(tfnt,0) into fstyles repeat for each line tsty in fstyles put space & tsty & cr after tlist end repeat end repeat delete char -1 in tlist return tlist end FontInfo 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 Dan Friedman via use-livecode Sent: Tuesday, August 27, 2019 5:11 PM To: How to use LiveCode Cc: Dan Friedman Subject: Fonts on Android Greetings! I am able to get a custom font installed and running on a Android device. But, how do you handle the font family? Included in my app is "myfont-Regular.ttf" and "myfont-bold.ttf". When the app launches, I call: set the textFont of stack "main" to "myfont" It's only using the bold version (probably because it's first alphabetically). Is there a way to map a font to a style so that text is " myfont-Regular" and bold text is "myfont-bold"? Thanks in advance, -Dan _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Tue Aug 27 18:23:34 2019 From: hh at hyperhh.de (hh) Date: Wed, 28 Aug 2019 00:23:34 +0200 Subject: BackKey in browser widget Message-ID: <319B0381-42F7-4418-82A7-A886991B8DE8@hyperhh.de> (Assuming you don't mean the backKey that leaves your app.) This is eventually not possible from security reasons. There are brute force javascript approaches that probably will break as soon as libbrowser changes and have side effects. Using "on browserNavigateBegin" will lead to an infinite loop as soon as you load images or any tiny other thing from server pathes outside your public_html. What you can do is not to use a URL but to set the htmltext. Then there is no history and the browser back doesn't work. From hh at hyperhh.de Tue Aug 27 18:25:10 2019 From: hh at hyperhh.de (hh) Date: Wed, 28 Aug 2019 00:25:10 +0200 Subject: URL for hashtags Message-ID: You could try do "location.href = '#tagID'" in widget "browser" From dan at clearvisiontech.com Tue Aug 27 18:53:34 2019 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 27 Aug 2019 22:53:34 +0000 Subject: Fonts on Android In-Reply-To: <00b201d55d24$08403890$18c0a9b0$@net> References: <34F91556-6964-4367-A2FC-854467CE1329@clearvisiontech.com> <00b201d55d24$08403890$18c0a9b0$@net> Message-ID: Ralph, Thank you for the reply. But, I don?t see how this helps. I have two fonts: Barlow-Bold.ttf Barlow-Regular.ttf After running FontInfo(), I see this: *Barlow Bold bold *Barlow Regular plain When I set the font of my stack to "Barlow", everything (bold or not) comes up as Barlow Bold. When I set the font of my stack to "Barlow Regular", everything (bold or not) comes up as Barlow Regular. Only thing I can think to do is to run thought EVERY object in my project and set the textFont of that control to "Barlow Bold" or "Barlow Regular". Then there's text fields with mixed text... Do I run through every text field and change the font of all bold text? There has to be a way to map "Barlow Regular" to plain text, and "Barlow Bold" to bold text. I must be missing something. -Dan ?On 8/27/19, 3:07 PM, "Ralph DiMola" wrote: When I run into this problem I use the routine below to enumerate all the fonts and their styles. If you have both a "Plain" and "Bold" style for a font then you use the font name and set its style to "Bold" If you use a "bold" base font then its "plain" style IS the bold font and setting its style to "Bold" will do nothing. function FontInfo local fnames,fstyles,tlist put the fontnames into fnames sort fnames repeat for each line tfnt in fnames put "*"&tfnt&cr after tlist put the fontstyles(tfnt,0) into fstyles repeat for each line tsty in fstyles put space & tsty & cr after tlist end repeat end repeat delete char -1 in tlist return tlist end FontInfo 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 Dan Friedman via use-livecode Sent: Tuesday, August 27, 2019 5:11 PM To: How to use LiveCode Cc: Dan Friedman Subject: Fonts on Android Greetings! I am able to get a custom font installed and running on a Android device. But, how do you handle the font family? Included in my app is "myfont-Regular.ttf" and "myfont-bold.ttf". When the app launches, I call: set the textFont of stack "main" to "myfont" It's only using the bold version (probably because it's first alphabetically). Is there a way to map a font to a style so that text is " myfont-Regular" and bold text is "myfont-bold"? Thanks in advance, -Dan _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Aug 27 19:36:48 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Aug 2019 18:36:48 -0500 Subject: BackKey in browser widget In-Reply-To: <319B0381-42F7-4418-82A7-A886991B8DE8@hyperhh.de> References: <319B0381-42F7-4418-82A7-A886991B8DE8@hyperhh.de> Message-ID: I mean the hardware backKey that can be trapped with a backKey handler normally, but the browser widget takes it over. I don't mind if the user wants to backtrack through the links they've visited, but when they get to their entry point bad things happen; I can't remember exactly what went wrong (it was a couple of days ago,) but either it was a crash or a badly drawn card. So my idea was to only use the backKey to navigate cards and disallow backtracking in the browser. But I can't trap for it there. On 8/27/19 5:23 PM, hh via use-livecode wrote: > (Assuming you don't mean the backKey that leaves your app.) > > This is eventually not possible from security reasons. > There are brute force javascript approaches that probably will > break as soon as libbrowser changes and have side effects. > > Using "on browserNavigateBegin" will lead to an infinite loop > as soon as you load images or any tiny other thing from server > pathes outside your public_html. > > What you can do is not to use a URL but to set the htmltext. > Then there is no history and the browser back doesn't work. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Aug 27 19:37:19 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Aug 2019 18:37:19 -0500 Subject: URL for hashtags In-Reply-To: References: Message-ID: On 8/27/19 5:25 PM, hh via use-livecode wrote: > You could try > > do "location.href = '#tagID'" in widget "browser" Thanks, I'll try it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Aug 27 19:40:35 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Aug 2019 18:40:35 -0500 Subject: Fonts on Android In-Reply-To: References: <34F91556-6964-4367-A2FC-854467CE1329@clearvisiontech.com> <00b201d55d24$08403890$18c0a9b0$@net> Message-ID: I thought the engine was supposed to do this automatically. If a bold version of the font is available, it should be substituted by name. On 8/27/19 5:53 PM, Dan Friedman via use-livecode wrote: > Only thing I can think to do is to run thought EVERY object in my project and set the textFont of that control to "Barlow Bold" or "Barlow Regular". Then there's text fields with mixed text... Do I run through every text field and change the font of all bold text? There has to be a way to map "Barlow Regular" to plain text, and "Barlow Bold" to bold text. I must be missing something. > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From capellan2000 at gmail.com Tue Aug 27 22:04:35 2019 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 27 Aug 2019 22:04:35 -0400 Subject: Mail List Archive Error In-Reply-To: References: Message-ID: Hi All, There is an error on the LiveCode Mail List Archives. http://lists.runrev.com/pipermail/use-livecode/ Please compare these Mail List Archives: July and August http://lists.runrev.com/pipermail/use-livecode/2019-July.txt http://lists.runrev.com/pipermail/use-livecode/2019-August.txt Notice that dates of August Mail List archive are wrong. What settings changes could have produced this error? Thanks in advance! Al From gcanyon at gmail.com Wed Aug 28 01:36:18 2019 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 28 Aug 2019 12:36:18 +0700 Subject: Browser widget cookies? Message-ID: <495D5E2C-E9B8-47FC-A1BF-7A9F377E9038@gmail.com> If I set the url for the browser widget to a url, and the server sets a cookie, can I read/modify/delete that cookie? gc From mark at livecode.com Wed Aug 28 03:07:49 2019 From: mark at livecode.com (Mark Waddingham) Date: Wed, 28 Aug 2019 03:07:49 -0400 Subject: high resolution when printing to pdf, either from images or pdf widgets In-Reply-To: <01872BE5-DC40-4E3B-9392-77A3929C0694@gmail.com> References: <01872BE5-DC40-4E3B-9392-77A3929C0694@gmail.com> Message-ID: On 2019-08-27 17:24, Dr. Hawkins via use-livecode wrote: > I?ve seen references, even in the bug report, to ?directly? printing > to pdf from a widget. I'm not entirely clear what Monte meant by 'print to pdf directly' in one of those comments... The 'print to pdf' mechanism in the engine isn't really any different from the normal printing mechanism, its just that rather than funnel the sequence of paths, images, text being rendered through the system printer it funnels it through libcairo's (https://cairographics.org/) PDF output functionality. > My experience has been that it still reduces the pdf to screen > resolution. Currently widgets render at screen resolution when printed - this includes the PDF widget. > I still insist they the fact that the engine *renders* the pdf, rather > than including it, is a hard-core bug. I attached an example of > including parts of a pdf into another. You can insist this but you'd be wrong :) If you want to augment an existing PDF with extra content then printing of any form is not what you want. Even when the various rather large and technical moving parts (pdfium, skia, engine printing architecutre, engine pdf printer) involved in a non-rasterized approach to printing pdf content displayed in stacks all align they would still not result in the original pdf being embedded verbatim in the output. In reality your 'example' of embedding isn't really embedding - its manually editing a single object's stream to be clipped - PDF's in general tend to be a fair bit more complicated than that in the general case and indeed not what most people would want and/or expect (immediate bug report if it did: I printed a small region of a 100Mb PDF to PDF and my output file was > 100Mb - WHY?!?!). [ I'd point out here that even CoreGraphics with its native/builtin support for PDF doesn't preserve original PDF content when you render a PDF into a PDF printing context - indeed it tends to lose various annotations/metadata which enable text to be copy/pasteable from the PDF ] > In the meantime, though, has anyone actually managed to get hi-res > output of either a pdf, jpg, or png into an outputted pdf? What you should find is that if you have a stack with an image object at size 100x100 whose image (jpg or png) is actually 400x400, and then print it to pdf then the full resolution of the image will be preserved. If this is not happening then chances are there is a property set somewhere which is requiring some sort of rasterization of the image object meaning the original image data cannot be preserved (both PNG and JPEG image data passes straight through to the printing backend when possible). > The only way I?m seeing at the moment would be a bizarre process in > which the stack is duplicated at 400%, and a script looping through to > expand and replace every field, reposition and change the text size, > etc., and then open the 33?x44? file in preview (or whatever) and > export from there as 8.5?x1? . . . You shouldn't have to do that - all you should have to do is when printing your stack... 1) set the width and height of your PDF widget to Upscale * the original size 2) import snapshot from pdf widget (make sure paintCompression is png) 3) hide pdf widget 4) set the width and height of the imported image to original size 5) print 6) delete image and show pdf widget > *IF* I could export to pdf at object density, I?d temporarily use png > extracted from the pdf with an external program. You can - you just need to temporarily resize the pdf widget to upscale * size in points as suggested above and use import/export snapshot. > And if I could fully figure out the pdf file structure, I could expand > my example file to write a custom pdf merging the field output with > other pdfs . . In reality if you want original PDF preserved with additions on top then that is your only option. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From hh at hyperhh.de Wed Aug 28 05:57:08 2019 From: hh at hyperhh.de (hh) Date: Wed, 28 Aug 2019 11:57:08 +0200 Subject: Browser widget cookies? Message-ID: > Geoff C. wrote: > If I set the url for the browser widget to a url, and the > server sets a cookie, can I read/modify/delete that cookie? Cookie structure (itemdel is ";"). item 1: A "name = value" pair containing the actual data, item 2: An expiry date after which it is no longer valid, item 3: The domain and path of the server. Now 1. set the javascriptHandlers of widget "browser" to "JS" 2. In the widget's script (or above it) write on JS x replace ";" with ";" & cr in x -- it make more readable put x into fld "Cookies" end JS Then, on mouseUp: -- read (you get only 'name=value' pairs, not expires nor path) do "liveCode.JS(document.cookie)" in widget "browser" -- create/modify (path is usually the current page) do "document.cookie = 'username=Geoff Canyon;" & \ "expires=Mon, 23 Dec 2019 22:30:00 UTC;" & \ "path=/;' " in widget "browser" -- delete (set it with an expiry date before today) do "document.cookie = 'username=Geoff Canyon;" & \ "expires=Sat, 23 Dec 2000 22:30:00 UTC;" & \ "path=/;' " in widget "browser" From rdimola at evergreeninfo.net Wed Aug 28 08:35:29 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 28 Aug 2019 08:35:29 -0400 Subject: Fonts on Android In-Reply-To: References: <34F91556-6964-4367-A2FC-854467CE1329@clearvisiontech.com> <00b201d55d24$08403890$18c0a9b0$@net> Message-ID: <000f01d55d9d$1701a4d0$4504ee70$@net> >After running FontInfo(), I see this: > >*Barlow Bold >bold >*Barlow Regular >Plain What I would have expected is: *Barlow bold plain Then it would work as expected. >When I set the font of my stack to "Barlow", everything (bold or not) comes up as Barlow Bold. >When I set the font of my stack to "Barlow Regular", everything (bold or not) comes up as Barlow Regular. This is because the OS is seeing these as 2 different fonts. Are the results of FontInfo() on the IDE or the Android device? I have seen oddities like this when the internal font name is wrong/inconsistent or (for example)the regular version was created at a later date and the original name was "Barlow bold" and there was no other option than to name the new plain font to "Barlow regular". This would not allow them to operate as a family. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: Dan Friedman [mailto:dan at clearvisiontech.com] Sent: Tuesday, August 27, 2019 6:54 PM To: rdimola at evergreeninfo.net; 'How to use LiveCode' Subject: Re: Fonts on Android Ralph, Thank you for the reply. But, I don?t see how this helps. I have two fonts: Barlow-Bold.ttf Barlow-Regular.ttf After running FontInfo(), I see this: *Barlow Bold bold *Barlow Regular plain When I set the font of my stack to "Barlow", everything (bold or not) comes up as Barlow Bold. When I set the font of my stack to "Barlow Regular", everything (bold or not) comes up as Barlow Regular. Only thing I can think to do is to run thought EVERY object in my project and set the textFont of that control to "Barlow Bold" or "Barlow Regular". Then there's text fields with mixed text... Do I run through every text field and change the font of all bold text? There has to be a way to map "Barlow Regular" to plain text, and "Barlow Bold" to bold text. I must be missing something. -Dan ?On 8/27/19, 3:07 PM, "Ralph DiMola" wrote: When I run into this problem I use the routine below to enumerate all the fonts and their styles. If you have both a "Plain" and "Bold" style for a font then you use the font name and set its style to "Bold" If you use a "bold" base font then its "plain" style IS the bold font and setting its style to "Bold" will do nothing. function FontInfo local fnames,fstyles,tlist put the fontnames into fnames sort fnames repeat for each line tfnt in fnames put "*"&tfnt&cr after tlist put the fontstyles(tfnt,0) into fstyles repeat for each line tsty in fstyles put space & tsty & cr after tlist end repeat end repeat delete char -1 in tlist return tlist end FontInfo 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 Dan Friedman via use-livecode Sent: Tuesday, August 27, 2019 5:11 PM To: How to use LiveCode Cc: Dan Friedman Subject: Fonts on Android Greetings! I am able to get a custom font installed and running on a Android device. But, how do you handle the font family? Included in my app is "myfont-Regular.ttf" and "myfont-bold.ttf". When the app launches, I call: set the textFont of stack "main" to "myfont" It's only using the bold version (probably because it's first alphabetically). Is there a way to map a font to a style so that text is " myfont-Regular" and bold text is "myfont-bold"? Thanks in advance, -Dan _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Wed Aug 28 09:52:48 2019 From: panos.merakos at livecode.com (panagiotis merakos) Date: Wed, 28 Aug 2019 16:52:48 +0300 Subject: BugZilla move scheduled today Message-ID: Hello all, We are planning to move BugZilla to our new server today. This will take some time, and during the move the BugZilla page will be unavailable. Thank you for you patience, Kind regards, Panos -- From dan at clearvisiontech.com Wed Aug 28 10:39:58 2019 From: dan at clearvisiontech.com (Dan Friedman) Date: Wed, 28 Aug 2019 14:39:58 +0000 Subject: Fonts on Android In-Reply-To: <000f01d55d9d$1701a4d0$4504ee70$@net> References: <34F91556-6964-4367-A2FC-854467CE1329@clearvisiontech.com> <00b201d55d24$08403890$18c0a9b0$@net> <000f01d55d9d$1701a4d0$4504ee70$@net> Message-ID: Ralph, The font came from Google Fonts (https://fonts.google.com/specimen/Barlow). I would think its ok. FWIW... I am just looking for a Helvetica-like font. I have my project set to the default fonts "(system)". But it looks like crap on Android! So, I'm just looking for something that will look good and render correctly. I will need a regular, bold and italic. -Dan ?On 8/28/19, 5:34 AM, "Ralph DiMola" wrote: >After running FontInfo(), I see this: > >*Barlow Bold >bold >*Barlow Regular >Plain What I would have expected is: *Barlow bold plain Then it would work as expected. >When I set the font of my stack to "Barlow", everything (bold or not) comes up as Barlow Bold. >When I set the font of my stack to "Barlow Regular", everything (bold or not) comes up as Barlow Regular. This is because the OS is seeing these as 2 different fonts. Are the results of FontInfo() on the IDE or the Android device? I have seen oddities like this when the internal font name is wrong/inconsistent or (for example)the regular version was created at a later date and the original name was "Barlow bold" and there was no other option than to name the new plain font to "Barlow regular". This would not allow them to operate as a family. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: Dan Friedman [mailto:dan at clearvisiontech.com] Sent: Tuesday, August 27, 2019 6:54 PM To: rdimola at evergreeninfo.net; 'How to use LiveCode' Subject: Re: Fonts on Android Ralph, Thank you for the reply. But, I don?t see how this helps. I have two fonts: Barlow-Bold.ttf Barlow-Regular.ttf After running FontInfo(), I see this: *Barlow Bold bold *Barlow Regular plain When I set the font of my stack to "Barlow", everything (bold or not) comes up as Barlow Bold. When I set the font of my stack to "Barlow Regular", everything (bold or not) comes up as Barlow Regular. Only thing I can think to do is to run thought EVERY object in my project and set the textFont of that control to "Barlow Bold" or "Barlow Regular". Then there's text fields with mixed text... Do I run through every text field and change the font of all bold text? There has to be a way to map "Barlow Regular" to plain text, and "Barlow Bold" to bold text. I must be missing something. -Dan On 8/27/19, 3:07 PM, "Ralph DiMola" wrote: When I run into this problem I use the routine below to enumerate all the fonts and their styles. If you have both a "Plain" and "Bold" style for a font then you use the font name and set its style to "Bold" If you use a "bold" base font then its "plain" style IS the bold font and setting its style to "Bold" will do nothing. function FontInfo local fnames,fstyles,tlist put the fontnames into fnames sort fnames repeat for each line tfnt in fnames put "*"&tfnt&cr after tlist put the fontstyles(tfnt,0) into fstyles repeat for each line tsty in fstyles put space & tsty & cr after tlist end repeat end repeat delete char -1 in tlist return tlist end FontInfo 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 Dan Friedman via use-livecode Sent: Tuesday, August 27, 2019 5:11 PM To: How to use LiveCode Cc: Dan Friedman Subject: Fonts on Android Greetings! I am able to get a custom font installed and running on a Android device. But, how do you handle the font family? Included in my app is "myfont-Regular.ttf" and "myfont-bold.ttf". When the app launches, I call: set the textFont of stack "main" to "myfont" It's only using the bold version (probably because it's first alphabetically). Is there a way to map a font to a style so that text is " myfont-Regular" and bold text is "myfont-bold"? Thanks in advance, -Dan _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Aug 28 12:50:20 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 28 Aug 2019 11:50:20 -0500 Subject: Fonts on Android In-Reply-To: References: <34F91556-6964-4367-A2FC-854467CE1329@clearvisiontech.com> <00b201d55d24$08403890$18c0a9b0$@net> <000f01d55d9d$1701a4d0$4504ee70$@net> Message-ID: <16cd9229ce0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Droid Sans is available on all Android phones and was the system font for years. Newer versions of Android use Roboto. Both are available for download so you can install them on desktop to see how they'll look. They both support all styles and weights and also unicode. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 28, 2019 9:42:06 AM Dan Friedman via use-livecode wrote: > Ralph, > > The font came from Google Fonts (https://fonts.google.com/specimen/Barlow). > I would think its ok. > > FWIW... I am just looking for a Helvetica-like font. I have my project set > to the default fonts "(system)". But it looks like crap on Android! So, > I'm just looking for something that will look good and render correctly. I > will need a regular, bold and italic. > > -Dan > > > ?On 8/28/19, 5:34 AM, "Ralph DiMola" wrote: > > >After running FontInfo(), I see this: > > > >*Barlow Bold > >bold > >*Barlow Regular > >Plain > > What I would have expected is: > *Barlow > bold > plain > > Then it would work as expected. > > >When I set the font of my stack to "Barlow", everything (bold or not) > comes up as Barlow Bold. > >When I set the font of my stack to "Barlow Regular", everything (bold or > not) comes up as Barlow Regular. > > This is because the OS is seeing these as 2 different fonts. > Are the results of FontInfo() on the IDE or the Android device? > > I have seen oddities like this when the internal font name is > wrong/inconsistent or (for example)the regular version was created at a > later date and the original name was "Barlow bold" and there was no other > option than to name the new plain font to "Barlow regular". This would not > allow them to operate as a family. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: Dan Friedman [mailto:dan at clearvisiontech.com] > Sent: Tuesday, August 27, 2019 6:54 PM > To: rdimola at evergreeninfo.net; 'How to use LiveCode' > Subject: Re: Fonts on Android > > Ralph, > > Thank you for the reply. But, I don?t see how this helps. I have two fonts: > > Barlow-Bold.ttf > Barlow-Regular.ttf > > After running FontInfo(), I see this: > > *Barlow Bold > bold > *Barlow Regular > plain > > When I set the font of my stack to "Barlow", everything (bold or not) comes > up as Barlow Bold. > When I set the font of my stack to "Barlow Regular", everything (bold or > not) comes up as Barlow Regular. > > Only thing I can think to do is to run thought EVERY object in my project > and set the textFont of that control to "Barlow Bold" or "Barlow Regular". > Then there's text fields with mixed text... Do I run through every text > field and change the font of all bold text? There has to be a way to map > "Barlow Regular" to plain text, and "Barlow Bold" to bold text. I must be > missing something. > > -Dan > > > > On 8/27/19, 3:07 PM, "Ralph DiMola" wrote: > > When I run into this problem I use the routine below to enumerate all the > fonts and their styles. > If you have both a "Plain" and "Bold" style for a font then you use the font > name and set its style to "Bold" > If you use a "bold" base font then its "plain" style IS the bold font and > setting its style to "Bold" will do nothing. > > function FontInfo > local fnames,fstyles,tlist > > put the fontnames into fnames > sort fnames > repeat for each line tfnt in fnames > put "*"&tfnt&cr after tlist > put the fontstyles(tfnt,0) into fstyles > repeat for each line tsty in fstyles > put space & tsty & cr after tlist > end repeat > end repeat > delete char -1 in tlist > return tlist > end FontInfo > > 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 Dan Friedman via use-livecode > Sent: Tuesday, August 27, 2019 5:11 PM > To: How to use LiveCode > Cc: Dan Friedman > Subject: Fonts on Android > > Greetings! > > I am able to get a custom font installed and running on a Android device. > But, how do you handle the font family? Included in my app is > "myfont-Regular.ttf" and "myfont-bold.ttf". When the app launches, I call: > > set the textFont of stack "main" to "myfont" > > It's only using the bold version (probably because it's first > alphabetically). Is there a way to map a font to a style so that text is " > myfont-Regular" and bold text is "myfont-bold"? > > Thanks in advance, > -Dan > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jjs at krutt.org Wed Aug 28 11:36:18 2019 From: jjs at krutt.org (JJS) Date: Wed, 28 Aug 2019 17:36:18 +0200 Subject: BugZilla move scheduled today In-Reply-To: References: Message-ID: <1b32faae-19e8-568c-978b-eae509fb3691@krutt.org> Hi Panos, thanks for the notice ! Kind regards, Jerry Op 28-8-2019 om 15:52 schreef panagiotis merakos via use-livecode: > Hello all, > > We are planning to move BugZilla to our new server today. This will take > some time, and during the move the BugZilla page will be unavailable. > > Thank you for you patience, > > Kind regards, > Panos > -- > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From monte at appisle.net Wed Aug 28 18:02:49 2019 From: monte at appisle.net (Monte Goulding) Date: Thu, 29 Aug 2019 08:02:49 +1000 Subject: high resolution when printing to pdf, either from images or pdf widgets In-Reply-To: References: <01872BE5-DC40-4E3B-9392-77A3929C0694@gmail.com> Message-ID: <4B14B206-9356-4B07-87F3-687E89F1F5A7@appisle.net> > On 28 Aug 2019, at 5:07 pm, Mark Waddingham via use-livecode wrote: > > I'm not entirely clear what Monte meant by 'print to pdf directly' in one > of those comments.. Ah I was talking about printing the PDF file directly. May have been before I realised there needed to be overlaid LC objects on the printout. Cheers Monte From tom at makeshyft.com Wed Aug 28 21:15:16 2019 From: tom at makeshyft.com (Tom Glod) Date: Wed, 28 Aug 2019 21:15:16 -0400 Subject: Browser widget cookies? In-Reply-To: References: Message-ID: Awesome! new possibilities! Thanks On Wed, Aug 28, 2019 at 5:58 AM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Geoff C. wrote: > > If I set the url for the browser widget to a url, and the > > server sets a cookie, can I read/modify/delete that cookie? > > Cookie structure (itemdel is ";"). > item 1: A "name = value" pair containing the actual data, > item 2: An expiry date after which it is no longer valid, > item 3: The domain and path of the server. > > Now > > 1. set the javascriptHandlers of widget "browser" to "JS" > 2. In the widget's script (or above it) write > > on JS x > replace ";" with ";" & cr in x -- it make more readable > put x into fld "Cookies" > end JS > > Then, on mouseUp: > > -- read (you get only 'name=value' pairs, not expires nor path) > do "liveCode.JS(document.cookie)" in widget "browser" > > -- create/modify (path is usually the current page) > do "document.cookie = 'username=Geoff Canyon;" & \ > "expires=Mon, 23 Dec 2019 22:30:00 UTC;" & \ > "path=/;' " in widget "browser" > > -- delete (set it with an expiry date before today) > do "document.cookie = 'username=Geoff Canyon;" & \ > "expires=Sat, 23 Dec 2000 22:30:00 UTC;" & \ > "path=/;' " in widget "browser" > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From heather at livecode.com Thu Aug 29 09:26:20 2019 From: heather at livecode.com (Heather Laine) Date: Thu, 29 Aug 2019 14:26:20 +0100 Subject: checking we're still here Message-ID: <299B92CE-C1B4-4DC2-B387-D51DD99DD2FF@livecode.com> Been a bit quiet today. Is the list still getting messages? Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com From rdimola at evergreeninfo.net Thu Aug 29 09:38:47 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 29 Aug 2019 09:38:47 -0400 Subject: checking we're still here In-Reply-To: <299B92CE-C1B4-4DC2-B387-D51DD99DD2FF@livecode.com> References: <299B92CE-C1B4-4DC2-B387-D51DD99DD2FF@livecode.com> Message-ID: <001801d55e6f$18bf51f0$4a3df5d0$@net> Yes... Is the QCC website update completed? 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 Heather Laine via use-livecode Sent: Thursday, August 29, 2019 9:26 AM To: How to use LiveCode Cc: Heather Laine Subject: checking we're still here Been a bit quiet today. Is the list still getting messages? Heather Laine Customer Services Manager LiveCode Ltd www.livecode.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 heather at livecode.com Thu Aug 29 09:39:49 2019 From: heather at livecode.com (Heather Laine) Date: Thu, 29 Aug 2019 14:39:49 +0100 Subject: checking we're still here In-Reply-To: <001801d55e6f$18bf51f0$4a3df5d0$@net> References: <299B92CE-C1B4-4DC2-B387-D51DD99DD2FF@livecode.com> <001801d55e6f$18bf51f0$4a3df5d0$@net> Message-ID: Yes, that's up and running now. Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 29 Aug 2019, at 14:38, Ralph DiMola via use-livecode wrote: > > Yes... > > Is the QCC website update completed? > > 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 Heather Laine via use-livecode > Sent: Thursday, August 29, 2019 9:26 AM > To: How to use LiveCode > Cc: Heather Laine > Subject: checking we're still here > > Been a bit quiet today. > > Is the list still getting messages? > > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.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 livfoss at mac.com Tue Aug 27 05:48:10 2019 From: livfoss at mac.com (Graham Samuel) Date: Tue, 27 Aug 2019 11:48:10 +0200 Subject: Test Message-ID: <8BC65DB7-D93F-439B-8BA6-8220AB8AC476@mac.com> I haven?t seen any mails from the list since 24 August. Just testing. Please ignore. Graham From livfoss at mac.com Tue Aug 27 07:00:37 2019 From: livfoss at mac.com (Graham Samuel) Date: Tue, 27 Aug 2019 13:00:37 +0200 Subject: Another list test In-Reply-To: References: Message-ID: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> For me there is a gap for 25 and 26 August - absolutely nothing. Will posts from those dates reappear? Graham > On 27 Aug 2019, at 12:35, R.H. via use-livecode wrote: > > I am still not receiving any message through email since last week. > > Roland > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Thu Aug 29 10:36:44 2019 From: livfoss at mac.com (Graham Samuel) Date: Thu, 29 Aug 2019 16:36:44 +0200 Subject: Another list test In-Reply-To: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> References: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> Message-ID: <634909D5-CF49-482B-B82F-199D58706D9F@mac.com> And another thing - my two test emails were not sent today but on 27th August, so they have been spinning about in cyberspace for a couple of days. Is this normal? Graham > On 27 Aug 2019, at 13:00, Graham Samuel via use-livecode wrote: > > For me there is a gap for 25 and 26 August - absolutely nothing. Will posts from those dates reappear? > > Graham > >> On 27 Aug 2019, at 12:35, R.H. via use-livecode wrote: >> >> I am still not receiving any message through email since last week. >> >> Roland >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Aug 29 10:40:18 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Aug 2019 14:40:18 +0000 Subject: Another list test In-Reply-To: <634909D5-CF49-482B-B82F-199D58706D9F@mac.com> References: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> <634909D5-CF49-482B-B82F-199D58706D9F@mac.com> Message-ID: <5E029EED-9DC5-4B83-B2B9-1A13337B9A33@iotecdigital.com> If an SMTP relay cannon contact the destination mail server, there usually is a time period in which it will retry. Sometimes it can be as long as 2 or 3 days. Bob S > On Aug 29, 2019, at 07:36 , Graham Samuel via use-livecode wrote: > > And another thing - my two test emails were not sent today but on 27th August, so they have been spinning about in cyberspace for a couple of days. Is this normal? > > Graham From hh at hyperhh.de Thu Aug 29 11:22:51 2019 From: hh at hyperhh.de (hh) Date: Thu, 29 Aug 2019 17:22:51 +0200 Subject: Maintenance forever? Message-ID: To do the same things twice or three times is OK if some people have difficulties to do their job. But that's going too far now. After close to a week the "maintenance" people are still exercising only. Many posts are lost in forums and use-list. No upload to livecodeshare is possible. Nearly no progress in other LC fields but LCFM. I say goodbye until next year, perhaps it is done until then? From jacque at hyperactivesw.com Thu Aug 29 11:26:08 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 29 Aug 2019 10:26:08 -0500 Subject: Another list test In-Reply-To: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> References: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> Message-ID: <16cddfb55e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The list was down for 2 days due to the server move so there won't be any mail to restore. I think we all suffered from withdrawal symptoms. I myself was forced to read Twitter during the interim and I fear for my health now. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 29, 2019 9:35:44 AM Graham Samuel via use-livecode wrote: > For me there is a gap for 25 and 26 August - absolutely nothing. Will posts > from those dates reappear? > > Graham > >> On 27 Aug 2019, at 12:35, R.H. via use-livecode >> wrote: >> >> I am still not receiving any message through email since last week. >> >> Roland >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Thu Aug 29 12:06:49 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 29 Aug 2019 09:06:49 -0700 Subject: OT: I just bought one of these In-Reply-To: <91E685DD-A57F-4D3C-B036-80A61ECF2080@pidigital.co.uk> References: <48037686-8095-71cd-7556-34a4e05a72cf@sonic.net> <91E685DD-A57F-4D3C-B036-80A61ECF2080@pidigital.co.uk> Message-ID: <04464272-f82c-b3db-d536-3fa3bafe98b4@sonic.net> On 8/24/19 3:58 AM, Pi Digital via use-livecode wrote: > Wow! What an amazing form factor. It?s beautiful. The only down side is it?s only got 128MB of memory. That means it?s going to be flip-flopping on virtual memory all the time. So make sure you use a micro U3 SDXC >150Mbps card. I?ve seen a hack to mount it inside the case. No worries. It can handle up to 2TB storage. I'm looking forward to getting my hands on this thing. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Thu Aug 29 12:07:11 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 29 Aug 2019 09:07:11 -0700 Subject: Another list test In-Reply-To: <16cddfb55e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> <16cddfb55e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <186b93ce-8807-7a11-93f3-7aa75e6bd65d@sonic.net> On 8/29/19 8:26 AM, J. Landman Gay via use-livecode wrote: > The list was down for 2 days due to the server move so there won't be > any mail to restore. Right. But during that time the listserv just ate incoming emails, mine included. -- Mark Wieder ahsoftware at gmail.com From sean at pidigital.co.uk Thu Aug 29 12:07:57 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 29 Aug 2019 17:07:57 +0100 Subject: Another list test In-Reply-To: <16cddfb55e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> <16cddfb55e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Was it bouncing the messages? How can we check if a message was sent/received during this time? Is there an archive we can view? Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On Thu, 29 Aug 2019 at 16:26, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > The list was down for 2 days due to the server move so there won't be any > mail to restore. I think we all suffered from withdrawal symptoms. I > myself > was forced to read Twitter during the interim and I fear for my health now. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On August 29, 2019 9:35:44 AM Graham Samuel via use-livecode > wrote: > > > For me there is a gap for 25 and 26 August - absolutely nothing. Will > posts > > from those dates reappear? > > > > Graham > > > >> On 27 Aug 2019, at 12:35, R.H. via use-livecode > >> wrote: > >> > >> I am still not receiving any message through email since last week. > >> > >> Roland > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Thu Aug 29 12:21:54 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 29 Aug 2019 17:21:54 +0100 Subject: Maintenance forever? In-Reply-To: References: Message-ID: Hehe. I feel your pain. Daily. Dang their lack of resources and staff. I am pretty much working entirely with workarounds at the moment to really, really, insanely, inanely basic, stuff. Like keys other than a-Z,0-9 actually functioning! or datagrids going faster than a x386 displaying 8k! I'm just tired and sick of being sick and tired. But, like you, I don't expect to see any change, not while their friends at FM are 'effectively' calling the shots, overriding any other priorities with their own (likely). Everything else is effectively on hold for now. Sean On Thu, 29 Aug 2019 at 16:22, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > To do the same things twice or three times is OK if some people have > difficulties to do their job. > > But that's going too far now. > > After close to a week the "maintenance" people are still exercising only. > > Many posts are lost in forums and use-list. No upload to livecodeshare is > possible. Nearly no progress in other LC fields but LCFM. > > I say goodbye until next year, perhaps it is done until then? > > From sean at pidigital.co.uk Thu Aug 29 12:25:25 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 29 Aug 2019 17:25:25 +0100 Subject: Datagrid2 Form view slow down. In-Reply-To: References: <5104B0DD-81CC-477C-929C-A52AE1D4AB0E@appisle.net> <1566473665136-0.post@n4.nabble.com> <45647DA4-4951-4676-84A6-28B1DF26365F@appisle.net> <79C2994F-12B2-4F19-B158-344D15C8851A@appisle.net> <700ACE2E-48C3-41BF-8197-C52A876DEA90@pidigital.co.uk> <556dd4860493e1e2fc5b90c176731330@livecode.com> Message-ID: Hi Mark Waddingham, This message didn't get through befroe, apparently, due to your servers being down (just another thing to cause us stress...). So here's what I sent Thank you for you very comprehensive response. It does help me understand a great deal more about the innards of the data grid. However, I have been running my grid in an 800x600 window. I had restarted fresh with a new template stack and new row template. The template has the original BG untouched. The original field renamed, and repositioned, and two others copied from it and repositioned. (Later I had a rounded rectangle added which sits behind the last field but this made no difference to performance). The row height is set to 30. No layout control other than for the data content. Minimal layout set to true. I kept it basic as it could be. But it still stutters on scroll with or without Accelerated rendering on. So, in my very humble opinion, something is still 'up'! I don't know what it is but Form view is definitely not operating up to par for some reason. As suggested, I have had to spend considerable more time coding my own data grid. This has held us up no end as a result. Again. Especially as, because HTML5 deployment is broken so much, that I have to manually code nearly all key and mouse operations that come in (delete, backspace, escape, arrows, mouse-scroll, double-click, cut, copy, paste, - anything other than a-Z,0-9 pretty much). And geometry doesn't work either for HTML5 so I have to code resize for almost every object manually. It is getting tiresome and tedious just how much in LC does not work! I'm am very nearly at burnout stage from it - Again! LC almost killed me last year and it is trying really hard to do it to me again it seems. Try it, see for yourself! Thanks (semi-hysterically) again. Sean Cole *Pi Digital Productions Ltd* www.pidigital.co.uk +44(1634)402193 +44(7702)116447 'Don't try to think outside the box. Just remember the truth: There is no box!' 'For then you realise it is not the box you are trying to look outside of, but it is yourself!' eMail Ts & Cs Pi Digital Productions Ltd is a UK registered limited company, no. 5255609 On Tue, 27 Aug 2019 at 15:10, Sean Cole (Pi) wrote: > Hi Mark, > > Thank you for you very comprehensive response. It does help me understand > a great deal more about the innards of the data grid. > > However, I have been running my grid in an 800x600 window. I had restarted > fresh with a new template stack and new row template. The template has the > original BG untouched. The original field renamed, and repositioned, and > two others copied from it and repositioned. (Later I had a rounded > rectangle added which sits behind the last field but this made no > difference to performance). The row height is set to 30. No layout control > other than for the data content. Minimal layout set to true. I kept it > basic as it could be. But it still stutters on scroll with or without > Accelerated rendering on. So, in my very humble opinion, something is still > 'up'! I don't know what it is but Form view is definitly not operating up > to par for some reason. > > As suggested, I have had to spend considerable more time coding my own > data grid. This has held us up no end as a result. Again. Especially as, > because HTML5 deployment is broken so much, that I have to manually code > nearly all key and mouse operations that come in (delete, backspace, > escape, arrows, mouse-scroll, double-click, cut, copy, paste, - anything > other than a-Z,0-9 pretty much). And geometry doesn't work either for HTML5 > so I have to code resize for almost every object manually. It is getting > tiresome and tedious just how much in LC does not work! I'm am very nearly > at burnout stage from it - Again! LC almost killed me last year and it is > trying really hard to do it to me again it seems. > > Try it, see for yourself! > > Thanks (semi-hysterically) again. > > Sean Cole > *Pi Digital Productions Ltd* > www.pidigital.co.uk > +44(1634)402193 > +44(7702)116447 > 'Don't try to think outside the box. Just remember the truth: There is no > box!' > 'For then you realise it is not the box you are trying to look outside of, > but it is yourself!' > > eMail Ts & Cs Pi Digital > Productions Ltd is a UK registered limited company, no. 5255609 > From dsc at swcp.com Thu Aug 29 12:25:35 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Thu, 29 Aug 2019 10:25:35 -0600 Subject: OT: I just bought one of these In-Reply-To: <04464272-f82c-b3db-d536-3fa3bafe98b4@sonic.net> References: <48037686-8095-71cd-7556-34a4e05a72cf@sonic.net> <91E685DD-A57F-4D3C-B036-80A61ECF2080@pidigital.co.uk> <04464272-f82c-b3db-d536-3fa3bafe98b4@sonic.net> Message-ID: I got this for the lab bench (and Windows 10 testing). https://www.amazon.com/gp/product/B01AT394A4 > On Aug 29, 2019, at 10:06 AM, Mark Wieder via use-livecode wrote: > > On 8/24/19 3:58 AM, Pi Digital via use-livecode wrote: >> Wow! What an amazing form factor. It?s beautiful. The only down side is it?s only got 128MB of memory. That means it?s going to be flip-flopping on virtual memory all the time. So make sure you use a micro U3 SDXC >150Mbps card. I?ve seen a hack to mount it inside the case. > > No worries. It can handle up to 2TB storage. I'm looking forward to getting my hands on this thing. > > -- > 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 sean at pidigital.co.uk Thu Aug 29 12:33:27 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 29 Aug 2019 17:33:27 +0100 Subject: OT: I just bought one of these In-Reply-To: <04464272-f82c-b3db-d536-3fa3bafe98b4@sonic.net> References: <48037686-8095-71cd-7556-34a4e05a72cf@sonic.net> <91E685DD-A57F-4D3C-B036-80A61ECF2080@pidigital.co.uk> <04464272-f82c-b3db-d536-3fa3bafe98b4@sonic.net> Message-ID: I've watched some reviews since and it's not that great actually as it can't run linux itself. It's not quite a raspberry pi and something more than a Micro controller. But, even worse than that is the support. The instructions are near non-existent and in some form of Chinglish. Plus, unlike RP and Arduino, they'll drop support once they bring out the v3. It's a kickstarter type thing where they cash in then drop it. It's fun to play with but not sure it's worth the hassle for anything more than a toy. Unfortunately! Coz it does look like it could be amazing! By the time you've added on all of the cables and external devices to make it worthwhile though, it negates the form factor. Sean On Thu, 29 Aug 2019 at 17:06, Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/24/19 3:58 AM, Pi Digital via use-livecode wrote: > > Wow! What an amazing form factor. It?s beautiful. The only down side is > it?s only got 128MB of memory. That means it?s going to be flip-flopping on > virtual memory all the time. So make sure you use a micro U3 SDXC >150Mbps > card. I?ve seen a hack to mount it inside the case. > > No worries. It can handle up to 2TB storage. I'm looking forward to > getting my hands on this thing. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Thu Aug 29 12:38:06 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Aug 2019 16:38:06 +0000 Subject: Another list test In-Reply-To: <5E029EED-9DC5-4B83-B2B9-1A13337B9A33@iotecdigital.com> References: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> <634909D5-CF49-482B-B82F-199D58706D9F@mac.com> <5E029EED-9DC5-4B83-B2B9-1A13337B9A33@iotecdigital.com> Message-ID: ? > On Aug 29, 2019, at 07:40 , Bob Sneidar via use-livecode wrote: > > If an SMTP relay cannon contact the destination mail server, there usually is a time period in which it will retry. Sometimes it can be as long as 2 or 3 days. > > Bob S > > >> On Aug 29, 2019, at 07:36 , Graham Samuel via use-livecode wrote: >> >> And another thing - my two test emails were not sent today but on 27th August, so they have been spinning about in cyberspace for a couple of days. Is this normal? >> >> 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 bobsneidar at iotecdigital.com Thu Aug 29 12:41:17 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 29 Aug 2019 16:41:17 +0000 Subject: Maintenance forever? In-Reply-To: References: Message-ID: <8E7F7387-DC30-46BD-84A5-A0C04110C1D2@iotecdigital.com> Well to be fair, you can always go back to your sent mail folder and resend. I reiterate that if the SMTP relay you use cannot contact another server, it will typically attempt to resend for a period of time. If it fails, your SMTP server *may* alert you to the fact, depending on how it's configured. Most SMTP relays will send you an email that what you sent was undeliverable. I do not understand what people mean by, "the List Server ate the emails". If it's inaccessible, that of course cannot happen. Bob S > On Aug 29, 2019, at 08:22 , hh via use-livecode wrote: > > To do the same things twice or three times is OK > if some people have difficulties to do their job. > > But that's going too far now. > > After close to a week the "maintenance" people are > still exercising only. > > Many posts are lost in forums and use-list. > No upload to livecodeshare is possible. > Nearly no progress in other LC fields but LCFM. > > I say goodbye until next year, perhaps it is done > until then? From jacque at hyperactivesw.com Thu Aug 29 12:53:03 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 29 Aug 2019 11:53:03 -0500 Subject: Another list test In-Reply-To: References: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> <16cddfb55e0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <16cde4b7598.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> When my posts wouldn't send I got an error reply from my mail server about an "unknown user". So I don't think the list server ate the message, the post couldn't be delivered at all. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 29, 2019 11:09:55 AM "Sean Cole \(Pi\) via use-livecode" wrote: > Was it bouncing the messages? How can we check if a message was > sent/received during this time? Is there an archive we can view? > > Sean Cole > *Pi Digital Productions Ltd* > www.pidigital.co.uk > +44(1634)402193 > +44(7702)116447 > 'Don't try to think outside the box. Just remember the truth: There is no > box!' > 'For then you realise it is not the box you are trying to look outside of, > but it is yourself!' > > eMail Ts & Cs Pi Digital > Productions Ltd is a UK registered limited company, no. 5255609 > > > On Thu, 29 Aug 2019 at 16:26, J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> The list was down for 2 days due to the server move so there won't be any >> mail to restore. I think we all suffered from withdrawal symptoms. I >> myself >> was forced to read Twitter during the interim and I fear for my health now. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On August 29, 2019 9:35:44 AM Graham Samuel via use-livecode >> wrote: >> >> > For me there is a gap for 25 and 26 August - absolutely nothing. Will >> posts >> > from those dates reappear? >> > >> > Graham >> > >> >> On 27 Aug 2019, at 12:35, R.H. via use-livecode >> >> wrote: >> >> >> >> I am still not receiving any message through email since last week. >> >> >> >> Roland >> >> _______________________________________________ >> >> use-livecode mailing list >> >> use-livecode at lists.runrev.com >> >> Please visit this url to subscribe, unsubscribe and manage your >> >> subscription preferences: >> >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> > subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Thu Aug 29 12:58:39 2019 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 29 Aug 2019 09:58:39 -0700 Subject: Another list test In-Reply-To: <5E029EED-9DC5-4B83-B2B9-1A13337B9A33@iotecdigital.com> References: <04A9EC02-9CC8-4337-B8F4-CB9962D768BC@mac.com> <634909D5-CF49-482B-B82F-199D58706D9F@mac.com> <5E029EED-9DC5-4B83-B2B9-1A13337B9A33@iotecdigital.com> Message-ID: <54EFC98E-1499-4BB5-9796-6414179F692D@gmail.com> On Aug 29, 2019, at 7:40 AM, Bob Sneidar via use-livecode wrote: > > If an SMTP relay cannon contact the destination mail server, there usually is a time period in which it will retry. By the time someone takes a cannon to a server, it?s usually to late to retry! :) ? Richard E. Hawkins, Esq. The Hawkins Law Firm 3430 E. Flamingo Rd. Suite 232 Las Vegas, NV 89121 (702) 508-8462 From harrison at all-auctions.com Thu Aug 29 13:12:28 2019 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 29 Aug 2019 13:12:28 -0400 Subject: Maintenance forever? In-Reply-To: <8E7F7387-DC30-46BD-84A5-A0C04110C1D2@iotecdigital.com> References: <8E7F7387-DC30-46BD-84A5-A0C04110C1D2@iotecdigital.com> Message-ID: <58E1BEC4-F261-4050-A115-F5B2E3B9D522@all-auctions.com> They said they had a RAID that failed that caused a mess. One still has to do backups for any RAID for that reason. Even if they were just using Time Machine to perform a backup of their RAID they only would lose a maximum of one hour?s worth of data. If they were doing transaction logging they wouldn?t lose more than 1 transaction. They could have been up and running again pronto. Just my 2 cents for the day. Let?s hope things improve soon. Rick From hh at hyperhh.de Thu Aug 29 13:42:02 2019 From: hh at hyperhh.de (hh) Date: Thu, 29 Aug 2019 19:42:02 +0200 Subject: Native HTML5 field Message-ID: <076FF4C3-418D-469C-8FBA-9EAC62C05EBF@hyperhh.de> One shouldn't go for months without a gift (for some of you). Here is its. * Native HTML5 Field v_101 (for HTML5 standalones )* This works with Chrome, Firefox and Safari on Mac, Windows and linux. (With Firefox are problems when dragging from one field to the other). Test it from (US) http://hh.on-rev.com/html5/index-large.html#as (EU) http://hyperhh.de/html5/index-large.html#as KEYBOARD. You have UTF-8 input (incl. using dead keys) support, you can navigate with the arrow keys, home and page keys and scroll using the mouse wheel. You can also use the virtual keyboard. RICH TEXT. There is a set of LC buttons that allow to set styles for the selection (in both fields). The buttons have tooltips attached. You have (for selected parts of the field) ? align left, center, right and justified ? bold, italic, underline and strikeTrough style ? indent in/out ? ordered and bullet lists ? set foreColor and backColor of the field and of selections ? superscripts and subscripts ? a style eraser (remove styles from selection) ? wrap/nowrap ? hyphenation (CSS, english) ? multiple Undo and Redo Currently there is only one textFont for both fields (either 'Mono=Courier' or 'Sans=Verdana'). And there is only one textSize (14pt). I'll add support for textFont and textSize and more styles in the next version. CLIPBOARD. We have full access to the system clipboard (styled Text only). Use cmd-A, cmd-X, cmd-C, cmd-V as usual or do it using the context menu. DRAG/DROP. Drag from one field to the other or drag the file icon of an UTF-8 file from the desktop to the fields (or from the fields to any app that accepts text drops. From rdimola at evergreeninfo.net Thu Aug 29 14:13:56 2019 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 29 Aug 2019 14:13:56 -0400 Subject: Native HTML5 field In-Reply-To: <076FF4C3-418D-469C-8FBA-9EAC62C05EBF@hyperhh.de> References: <076FF4C3-418D-469C-8FBA-9EAC62C05EBF@hyperhh.de> Message-ID: <005301d55e95$89285ec0$9b791c40$@net> Not to mention multi level Ctl-z undo's! Nice... Thank You. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of hh via use-livecode Sent: Thursday, August 29, 2019 1:42 PM To: use-livecode at lists.runrev.com Cc: hh Subject: Native HTML5 field One shouldn't go for months without a gift (for some of you). Here is its. * Native HTML5 Field v_101 (for HTML5 standalones )* This works with Chrome, Firefox and Safari on Mac, Windows and linux. (With Firefox are problems when dragging from one field to the other). Test it from (US) http://hh.on-rev.com/html5/index-large.html#as (EU) http://hyperhh.de/html5/index-large.html#as KEYBOARD. You have UTF-8 input (incl. using dead keys) support, you can navigate with the arrow keys, home and page keys and scroll using the mouse wheel. You can also use the virtual keyboard. RICH TEXT. There is a set of LC buttons that allow to set styles for the selection (in both fields). The buttons have tooltips attached. You have (for selected parts of the field) ? align left, center, right and justified ? bold, italic, underline and strikeTrough style ? indent in/out ? ordered and bullet lists ? set foreColor and backColor of the field and of selections ? superscripts and subscripts ? a style eraser (remove styles from selection) ? wrap/nowrap ? hyphenation (CSS, english) ? multiple Undo and Redo Currently there is only one textFont for both fields (either 'Mono=Courier' or 'Sans=Verdana'). And there is only one textSize (14pt). I'll add support for textFont and textSize and more styles in the next version. CLIPBOARD. We have full access to the system clipboard (styled Text only). Use cmd-A, cmd-X, cmd-C, cmd-V as usual or do it using the context menu. DRAG/DROP. Drag from one field to the other or drag the file icon of an UTF-8 file from the desktop to the fields (or from the fields to any app that accepts text drops. _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Thu Aug 29 16:24:21 2019 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 29 Aug 2019 20:24:21 +0000 Subject: Android Speed Woes Message-ID: Hello again! I am have a tough time getting things to run snappy on an Android device. It's blazing fast on my computer, and more than acceptable on my iPhone, but on any android device, it's slow... noticeably sluggish. The issue is mainly hiding/showing groups. For example: put the milliseconds into m lock screen --for visual effect in rect (the rect of grc "ne_BG") //removed the animation for speed testing hide grp "ne_mainControls" show grp "ne_repeatG" unlock screen --with visual effect push left answer (the milliseconds - m) The result of m is: iMac = 10 iOS = 1 (iPhoneX) Android = 516 (Moto G5 Plus Android 7.0) The groups contain no images or complex graphics. Just some buttons and fields. I have tried it with and without acceleratedRendering. Actually, with acceleratedRendering enabled it took longer, m=558. I have it setup like this: Card "calendar" Group "newEventG" --> layerMode set to "Container" Group "ne_mainControls" --> layerMode set to "Dynamic" Group " ne_repeatG" --> layerMode set to "Dynamic" Any thoughts or advice? Most other functions are working within acceptable ranges/speeds. -Dan From sean at pidigital.co.uk Thu Aug 29 17:00:21 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 29 Aug 2019 22:00:21 +0100 Subject: Native HTML5 field In-Reply-To: <005301d55e95$89285ec0$9b791c40$@net> References: <076FF4C3-418D-469C-8FBA-9EAC62C05EBF@hyperhh.de> <005301d55e95$89285ec0$9b791c40$@net> Message-ID: <357FB653-E9FB-4A37-A343-7A78F5EFF668@pidigital.co.uk> Thanks H Now all I need to do is figure out some way of making this into a usable DataGrid Sean > On 29 Aug 2019, at 19:13, Ralph DiMola via use-livecode wrote: > > Not to mention multi level Ctl-z undo's! Nice... Thank You. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > Phone: 518-636-3998 Ex:11 > Cell: 518-796-9332 > > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of hh via use-livecode > Sent: Thursday, August 29, 2019 1:42 PM > To: use-livecode at lists.runrev.com > Cc: hh > Subject: Native HTML5 field > > One shouldn't go for months without a gift (for some of you). Here is its. > > * Native HTML5 Field v_101 (for HTML5 standalones )* This works with Chrome, Firefox and Safari on Mac, Windows and linux. > (With Firefox are problems when dragging from one field to the other). > > Test it from > (US) http://hh.on-rev.com/html5/index-large.html#as > (EU) http://hyperhh.de/html5/index-large.html#as > > KEYBOARD. You have UTF-8 input (incl. using dead keys) support, you can navigate with the arrow keys, home and page keys and scroll using the mouse wheel. You can also use the virtual keyboard. > > RICH TEXT. There is a set of LC buttons that allow to set styles for the selection (in both fields). The buttons have tooltips attached. > > You have (for selected parts of the field) ? align left, center, right and justified ? bold, italic, underline and strikeTrough style ? indent in/out ? ordered and bullet lists ? set foreColor and backColor of the field and of selections ? superscripts and subscripts ? a style eraser (remove styles from selection) ? wrap/nowrap ? hyphenation (CSS, english) ? multiple Undo and Redo > > Currently there is only one textFont for both fields (either 'Mono=Courier' > or 'Sans=Verdana'). And there is only one textSize (14pt). I'll add support for textFont and textSize and more styles in the next version. > > CLIPBOARD. We have full access to the system clipboard (styled Text only). > Use cmd-A, cmd-X, cmd-C, cmd-V as usual or do it using the context menu. > > DRAG/DROP. Drag from one field to the other or drag the file icon of an > UTF-8 file from the desktop to the fields (or from the fields to any app that accepts text drops. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 29 17:39:35 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Thu, 29 Aug 2019 22:39:35 +0100 Subject: Android Speed Woes In-Reply-To: References: Message-ID: <5E760BD5-6C42-4912-88D9-0C3740CD9EF0@pidigital.co.uk> Hi Dan I don?t think this is fully related to your issue based on the script you show but... I?ve been doing extensive testing this week and have come close to the conclusion now that AcceleratedRendering is completely non functional for all platforms. However, I?ve got a feeling that none of my recent emails to LC on the matter have got through during their outage. Is no one else seeing this loss in performance? So far all my tests have shown it to be affecting every platform standalone and the IDE. Back to your issue, Dan. What version LC are you using? Is this timing consistent if triggered by a button? What timing do you get with lock screen muted? Also, put the timer calculation to a variable to ensure it is not the answer dialogue itself producing erroneous timings. NB. Additionally, if your groups are not moving up down left right then they are best set to static rather than dynamic or scrolling. This won?t be affecting your performance in this instance but worth noting. It?s only useful setting it to ?dynamic? if the values, text or images are changing frequently/rapidly or moving about the display. Sean Cole Pi Digital Prod Ltd > On 29 Aug 2019, at 21:24, Dan Friedman via use-livecode wrote: > > Hello again! I am have a tough time getting things to run snappy on an Android device. It's blazing fast on my computer, and more than acceptable on my iPhone, but on any android device, it's slow... noticeably sluggish. The issue is mainly hiding/showing groups. For example: > > put the milliseconds into m > lock screen --for visual effect in rect (the rect of grc "ne_BG") //removed the animation for speed testing > hide grp "ne_mainControls" > show grp "ne_repeatG" > unlock screen --with visual effect push left > answer (the milliseconds - m) > > The result of m is: > iMac = 10 > iOS = 1 (iPhoneX) > Android = 516 (Moto G5 Plus Android 7.0) > > The groups contain no images or complex graphics. Just some buttons and fields. > > I have tried it with and without acceleratedRendering. Actually, with acceleratedRendering enabled it took longer, m=558. > > I have it setup like this: > Card "calendar" > Group "newEventG" --> layerMode set to "Container" > Group "ne_mainControls" --> layerMode set to "Dynamic" > Group " ne_repeatG" --> layerMode set to "Dynamic" > > Any thoughts or advice? Most other functions are working within acceptable ranges/speeds. > > -Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at snipes.org Thu Aug 29 18:16:11 2019 From: brian at snipes.org (Brian Snipes) Date: Thu, 29 Aug 2019 17:16:11 -0500 Subject: Troubleshooting the IDE Message-ID: <4737b88e-82c1-14a6-9b6b-aff0b41b153e@snipes.org> Can anyone point me to resources for debugging the IDE code itself? There is an issue with LC on the Plasma desktop on Linux where the tool pallete just disappears making it darned hard to use the tools. I've asked in the forum about it before but there isn't an answer that solves the issue. I opened a bug report ( https://quality.livecode.com/show_bug.cgi?id=22321 ) but it was closed since I am not running Ubuntu. I am going to try it on Ubuntu with Plasma installed (my default is Arch but it happens on other distros such as openSuse) but I don't have hopes that the issue won't be closed again since the Ubuntu default DE in the old 16.04 support distro is Unity and if I install Plasma from the package manager it probably won't be considered 'supported'. If you look at the video attachment to my bug report, you will see the issue in Plasma. I have never come across this issue in any other application in Plasma. Thanks, Brian From jacque at hyperactivesw.com Thu Aug 29 18:23:15 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 29 Aug 2019 17:23:15 -0500 Subject: Android Speed Woes In-Reply-To: References: Message-ID: <83802795-477b-e96c-0e11-63526c9c1ffe@hyperactivesw.com> I'd say it's the phone. The Moto G5 has a budget processor and an old version of Android OS. An iPhoneX is newer and much faster so it isn't really a fair comparison. My Pixel has a much faster processor running the latest OS and is quite snappy; my Samsung S5 is old and slow and responds as such. I develop with my Pixel and test with the Samsung to see how bad it gets. The up side is that users of older or budget phones are used to the response times and may not notice. But if you can find a higher-end test device, it's useful to compare. On 8/29/19 3:24 PM, Dan Friedman via use-livecode wrote: > Hello again! I am have a tough time getting things to run snappy on an Android device. It's blazing fast on my computer, and more than acceptable on my iPhone, but on any android device, it's slow... noticeably sluggish. The issue is mainly hiding/showing groups. For example: > > put the milliseconds into m > lock screen --for visual effect in rect (the rect of grc "ne_BG") //removed the animation for speed testing > hide grp "ne_mainControls" > show grp "ne_repeatG" > unlock screen --with visual effect push left > answer (the milliseconds - m) > > The result of m is: > iMac = 10 > iOS = 1 (iPhoneX) > Android = 516 (Moto G5 Plus Android 7.0) > > The groups contain no images or complex graphics. Just some buttons and fields. > > I have tried it with and without acceleratedRendering. Actually, with acceleratedRendering enabled it took longer, m=558. > > I have it setup like this: > Card "calendar" > Group "newEventG" --> layerMode set to "Container" > Group "ne_mainControls" --> layerMode set to "Dynamic" > Group " ne_repeatG" --> layerMode set to "Dynamic" > > Any thoughts or advice? Most other functions are working within acceptable ranges/speeds. > > -Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sean at pidigital.co.uk Thu Aug 29 18:26:34 2019 From: sean at pidigital.co.uk (Sean Cole (Pi)) Date: Thu, 29 Aug 2019 23:26:34 +0100 Subject: Android Speed Woes In-Reply-To: <5E760BD5-6C42-4912-88D9-0C3740CD9EF0@pidigital.co.uk> References: <5E760BD5-6C42-4912-88D9-0C3740CD9EF0@pidigital.co.uk> Message-ID: Just for your future reference, MarkWs excellent description about AccRend: http://lists.runrev.com/pipermail/use-livecode/2017-May/236782.html Sean > > On 29 Aug 2019, at 21:24, Dan Friedman via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I have tried it with and without acceleratedRendering. Actually, with > acceleratedRendering enabled it took longer, m=558. > > > > I have it setup like this: > > Card "calendar" > > Group "newEventG" --> layerMode set to "Container" > > Group "ne_mainControls" --> layerMode set to "Dynamic" > > Group " ne_repeatG" --> layerMode set to "Dynamic" > > > > Any thoughts or advice? Most other functions are working within > acceptable ranges/speeds. > > > > -Dan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From sean at pidigital.co.uk Thu Aug 29 19:09:06 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Fri, 30 Aug 2019 00:09:06 +0100 Subject: Android Speed Woes In-Reply-To: <83802795-477b-e96c-0e11-63526c9c1ffe@hyperactivesw.com> References: <83802795-477b-e96c-0e11-63526c9c1ffe@hyperactivesw.com> Message-ID: <41A70475-6157-4F43-8CF5-CC8D90DE8AAC@pidigital.co.uk> Dan is talking 500 times difference in response tho. That?s a bit more substantial. Plus speed degradation to a device designed to run Android 7.0 shouldn?t be to that degree either, for display or under the hood. The G5 has an octo 1.4ghz, the iPhoneX is 6core 2.39, only 4 times as fast (8-10 times offscreen), not 200-500. \?/ Dan, Another test would be to see how fast it creates a variable with 10,000 characters using a repeat loop then how long to copy that to another variable. If the numbers are wildly different to the iPhone?s and desktop?s then maybe Jacque is on to something and it is a device specific lag. Otherwise it?s likely a display issue, which could be device specific but could equally be something deeper worth looking into. Sean > On 29 Aug 2019, at 23:23, J. Landman Gay via use-livecode wrote: > > I'd say it's the phone. The Moto G5 has a budget processor and an old version of Android OS. An iPhoneX is newer and much faster so it isn't really a fair comparison. From dan at clearvisiontech.com Thu Aug 29 19:31:28 2019 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 29 Aug 2019 23:31:28 +0000 Subject: Android Speed Woes In-Reply-To: <5E760BD5-6C42-4912-88D9-0C3740CD9EF0@pidigital.co.uk> References: <5E760BD5-6C42-4912-88D9-0C3740CD9EF0@pidigital.co.uk> Message-ID: <4DDE67AF-6CE2-4B86-B10C-FAD3E33AEAF4@clearvisiontech.com> Sean, I wouldn't say AR is non-functional. When I enable it I do see a difference. Although, in almost all cases it makes it worse. I see jerky scrolling and screen artifacts. I am using 9.5.0 Business. I compiled the app in 9.0.4 Indy, and m=562. Interesting that I just tried it on a Moto G6 and m=585. Slower than the G5! >> Is this timing consistent if triggered by a button? That's how I am firing this. >> What timing do you get with lock screen muted? If I comment out the lock screens, I get m=756 (Moto G5) -Dan ?On 8/29/19, 2:40 PM, "use-livecode on behalf of Pi Digital via use-livecode" wrote: Hi Dan I don?t think this is fully related to your issue based on the script you show but... I?ve been doing extensive testing this week and have come close to the conclusion now that AcceleratedRendering is completely non functional for all platforms. However, I?ve got a feeling that none of my recent emails to LC on the matter have got through during their outage. Is no one else seeing this loss in performance? So far all my tests have shown it to be affecting every platform standalone and the IDE. Back to your issue, Dan. What version LC are you using? Is this timing consistent if triggered by a button? What timing do you get with lock screen muted? Also, put the timer calculation to a variable to ensure it is not the answer dialogue itself producing erroneous timings. NB. Additionally, if your groups are not moving up down left right then they are best set to static rather than dynamic or scrolling. This won?t be affecting your performance in this instance but worth noting. It?s only useful setting it to ?dynamic? if the values, text or images are changing frequently/rapidly or moving about the display. Sean Cole Pi Digital Prod Ltd > On 29 Aug 2019, at 21:24, Dan Friedman via use-livecode wrote: > > Hello again! I am have a tough time getting things to run snappy on an Android device. It's blazing fast on my computer, and more than acceptable on my iPhone, but on any android device, it's slow... noticeably sluggish. The issue is mainly hiding/showing groups. For example: > > put the milliseconds into m > lock screen --for visual effect in rect (the rect of grc "ne_BG") //removed the animation for speed testing > hide grp "ne_mainControls" > show grp "ne_repeatG" > unlock screen --with visual effect push left > answer (the milliseconds - m) > > The result of m is: > iMac = 10 > iOS = 1 (iPhoneX) > Android = 516 (Moto G5 Plus Android 7.0) > > The groups contain no images or complex graphics. Just some buttons and fields. > > I have tried it with and without acceleratedRendering. Actually, with acceleratedRendering enabled it took longer, m=558. > > I have it setup like this: > Card "calendar" > Group "newEventG" --> layerMode set to "Container" > Group "ne_mainControls" --> layerMode set to "Dynamic" > Group " ne_repeatG" --> layerMode set to "Dynamic" > > Any thoughts or advice? Most other functions are working within acceptable ranges/speeds. > > -Dan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Thu Aug 29 19:40:19 2019 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 29 Aug 2019 23:40:19 +0000 Subject: Android Speed Woes In-Reply-To: <41A70475-6157-4F43-8CF5-CC8D90DE8AAC@pidigital.co.uk> References: <83802795-477b-e96c-0e11-63526c9c1ffe@hyperactivesw.com> <41A70475-6157-4F43-8CF5-CC8D90DE8AAC@pidigital.co.uk> Message-ID: <2A7DF830-AA4F-455A-8D38-3F67B8731183@clearvisiontech.com> Sean, >>Another test would be to see how fast it creates a variable with 10,000 characters using a repeat loop ... put "" into jones repeat 10000 put "a" after jones end repeat put the milliseconds into m put jones into pFart put the milliseconds - m into m answer m iMac = 1 Moto G5 = 0 Moto G6 = 0 iPhone X = 0 -Dan ?On 8/29/19, 4:10 PM, "use-livecode on behalf of Pi Digital via use-livecode" wrote: Dan is talking 500 times difference in response tho. That?s a bit more substantial. Plus speed degradation to a device designed to run Android 7.0 shouldn?t be to that degree either, for display or under the hood. The G5 has an octo 1.4ghz, the iPhoneX is 6core 2.39, only 4 times as fast (8-10 times offscreen), not 200-500. \?/ Dan, Another test would be to see how fast it creates a variable with 10,000 characters using a repeat loop then how long to copy that to another variable. If the numbers are wildly different to the iPhone?s and desktop?s then maybe Jacque is on to something and it is a device specific lag. Otherwise it?s likely a display issue, which could be device specific but could equally be something deeper worth looking into. Sean > On 29 Aug 2019, at 23:23, J. Landman Gay via use-livecode wrote: > > I'd say it's the phone. The Moto G5 has a budget processor and an old version of Android OS. An iPhoneX is newer and much faster so it isn't really a fair comparison. _______________________________________________ use-livecode mailing list use-livecode at 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 Aug 29 19:46:21 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 29 Aug 2019 18:46:21 -0500 Subject: Android Speed Woes In-Reply-To: <2A7DF830-AA4F-455A-8D38-3F67B8731183@clearvisiontech.com> References: <83802795-477b-e96c-0e11-63526c9c1ffe@hyperactivesw.com> <41A70475-6157-4F43-8CF5-CC8D90DE8AAC@pidigital.co.uk> <2A7DF830-AA4F-455A-8D38-3F67B8731183@clearvisiontech.com> Message-ID: <16cdfc58aa8.2783.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Looks like we should be comparing GPUs instead of CPUs. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 29, 2019 6:42:09 PM Dan Friedman via use-livecode wrote: > Sean, > >>> Another test would be to see how fast it creates a variable with 10,000 >>> characters using a repeat loop ... > > put "" into jones > repeat 10000 > put "a" after jones > end repeat > put the milliseconds into m > put jones into pFart > put the milliseconds - m into m > answer m > > iMac = 1 > Moto G5 = 0 > Moto G6 = 0 > iPhone X = 0 > > > -Dan > > > ?On 8/29/19, 4:10 PM, "use-livecode on behalf of Pi Digital via > use-livecode" use-livecode at lists.runrev.com> wrote: > > Dan is talking 500 times difference in response tho. That?s a bit more > substantial. Plus speed degradation to a device designed to run Android 7.0 > shouldn?t be to that degree either, for display or under the hood. The G5 > has an octo 1.4ghz, the iPhoneX is 6core 2.39, only 4 times as fast (8-10 > times offscreen), not 200-500. \?/ > > Dan, > Another test would be to see how fast it creates a variable with 10,000 > characters using a repeat loop then how long to copy that to another > variable. If the numbers are wildly different to the iPhone?s and desktop?s > then maybe Jacque is on to something and it is a device specific lag. > Otherwise it?s likely a display issue, which could be device specific but > could equally be something deeper worth looking into. > > Sean > > > On 29 Aug 2019, at 23:23, J. Landman Gay via use-livecode > wrote: > > > > I'd say it's the phone. The Moto G5 has a budget processor and an old > version of Android OS. An iPhoneX is newer and much faster so it isn't > really a fair comparison. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Aug 29 20:08:23 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 29 Aug 2019 17:08:23 -0700 Subject: Android Speed Woes In-Reply-To: <2A7DF830-AA4F-455A-8D38-3F67B8731183@clearvisiontech.com> References: <83802795-477b-e96c-0e11-63526c9c1ffe@hyperactivesw.com> <41A70475-6157-4F43-8CF5-CC8D90DE8AAC@pidigital.co.uk> <2A7DF830-AA4F-455A-8D38-3F67B8731183@clearvisiontech.com> Message-ID: <2d7726d6-12e4-8aa7-c35a-aaf4fe739c1f@sonic.net> On 8/29/19 4:40 PM, Dan Friedman via use-livecode wrote: > Sean, > >>> Another test would be to see how fast it creates a variable with 10,000 characters using a repeat loop ... > > put "" into jones > repeat 10000 > put "a" after jones > end repeat > put the milliseconds into m > put jones into pFart > put the milliseconds - m into m > answer m You really want to store the milliseconds *before* the repeat loop to have any chance of seeing a difference. -- Mark Wieder ahsoftware at gmail.com From dan at clearvisiontech.com Thu Aug 29 20:15:17 2019 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 30 Aug 2019 00:15:17 +0000 Subject: Android Speed Woes In-Reply-To: <2d7726d6-12e4-8aa7-c35a-aaf4fe739c1f@sonic.net> References: <83802795-477b-e96c-0e11-63526c9c1ffe@hyperactivesw.com> <41A70475-6157-4F43-8CF5-CC8D90DE8AAC@pidigital.co.uk> <2A7DF830-AA4F-455A-8D38-3F67B8731183@clearvisiontech.com> <2d7726d6-12e4-8aa7-c35a-aaf4fe739c1f@sonic.net> Message-ID: Mark, put the milliseconds into m put "" into jones repeat 10000 put "a" after jones end repeat put jones into pFart put the milliseconds - m into m answer m iMac = 1 Moto G5 = 16 Moto G6 = 10 iPhone X = 7 -Dan ?On 8/29/19, 5:09 PM, "use-livecode on behalf of Mark Wieder via use-livecode" wrote: On 8/29/19 4:40 PM, Dan Friedman via use-livecode wrote: > Sean, > >>> Another test would be to see how fast it creates a variable with 10,000 characters using a repeat loop ... > > put "" into jones > repeat 10000 > put "a" after jones > end repeat > put the milliseconds into m > put jones into pFart > put the milliseconds - m into m > answer m You really want to store the milliseconds *before* the repeat loop to have any chance of seeing a difference. -- 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 sean at pidigital.co.uk Thu Aug 29 22:50:21 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Fri, 30 Aug 2019 03:50:21 +0100 Subject: Android Speed Woes In-Reply-To: References: <83802795-477b-e96c-0e11-63526c9c1ffe@hyperactivesw.com> <41A70475-6157-4F43-8CF5-CC8D90DE8AAC@pidigital.co.uk> <2A7DF830-AA4F-455A-8D38-3F67B8731183@clearvisiontech.com> <2d7726d6-12e4-8aa7-c35a-aaf4fe739c1f@sonic.net> Message-ID: <0141B1F4-8128-4B2A-A72B-321B05FBBCBA@pidigital.co.uk> That?s perfect and very near the results we?d expect to see. So it narrows it down to display. What?s inside the groups and what settings do they have? If there are images what quality setting do they have, normal better or best? Any scaling factors anywhere? Rotations? Anti-aliasing? Shapes, widgets or paths? Borders, effects (shadow, glow, overlay). Theoretically these settings would affect both iOS and Android but as we are seeing it only on Android we need to narrow it down to see what specifically is causing the issue. To start, try setting any images to mid quality (not normal or best). I?ve occasionally seen this performs best (especially recently on HTML5 deployment). Sean > On 30 Aug 2019, at 01:15, Dan Friedman via use-livecode wrote: > > Mark, > > put the milliseconds into m > put "" into jones > repeat 10000 > put "a" after jones > end repeat > put jones into pFart > put the milliseconds - m into m > answer m > > iMac = 1 > Moto G5 = 16 > Moto G6 = 10 > iPhone X = 7 > > -Dan > From mark at livecode.com Fri Aug 30 02:56:20 2019 From: mark at livecode.com (Mark Waddingham) Date: Fri, 30 Aug 2019 02:56:20 -0400 Subject: Android Speed Woes In-Reply-To: References: Message-ID: <6fd078762f3882066a168ba929e2555c@livecode.com> On 2019-08-29 16:24, Dan Friedman via use-livecode wrote: > Hello again! I am have a tough time getting things to run snappy on > an Android device. It's blazing fast on my computer, and more than > acceptable on my iPhone, but on any android device, it's slow... > noticeably sluggish. The issue is mainly hiding/showing groups. For > example: > > put the milliseconds into m > lock screen --for visual effect in rect (the rect of grc "ne_BG") > //removed the animation for speed testing > hide grp "ne_mainControls" > show grp "ne_repeatG" > unlock screen --with visual effect push left > answer (the milliseconds - m) > > The result of m is: > iMac = 10 > iOS = 1 (iPhoneX) > Android = 516 (Moto G5 Plus Android 7.0) > > The groups contain no images or complex graphics. Just some buttons > and fields. > > I have tried it with and without acceleratedRendering. Actually, with > acceleratedRendering enabled it took longer, m=558. > > I have it setup like this: > Card "calendar" > Group "newEventG" --> layerMode set to "Container" > Group "ne_mainControls" --> layerMode set to "Dynamic" > Group " ne_repeatG" --> layerMode set to "Dynamic" > > Any thoughts or advice? Most other functions are working within > acceptable ranges/speeds. So the first thing to do is (on Desktop) run with acceleratedRendering and ensure that: 1) 'the effective layerMode of group "newEventG"' is container 2) 'the effective layerMode of group "ne_mainControls" is dynamic 3) 'the effective layerMode of group "ne_repeatG" is dynamic If (1) does not turn out to be the case then acceleratedRendering will have a slightly negative effect (as the engine will be doing what it would do without acceleratedRendering on, but also paying the overhead of caching the result!). To fix this you'll need to tweak the properties of the newEventG group: - opaque must be false - showName must be false - hScrollbar must be false - vScrollbar must be false - showBorder must be false - all bitmap effects must be empty Essentially the rule here is that for a group to be a container layer it must not have to render anything itself (as it is just meant to 'contain' other layers). If you get the groups effective layerModes as above I'd imagine you *might* see a slight increase in performance with acceleratedRendering on - the showing and hiding of the dynamic layers is essentially 'free' in this scenario - but their content does need to be cached first. Caching of dynamic layers happens incrementally as parts of them are visible. However, given the difference in speed between the platforms with acceleratedRendering off I'm inclined to think something else is going on here... The CPU on a Moto G5 Plus is substantially less powerful than even an iPhone6S - but definitely not 50x! You mentioned in another thread that you were using custom fonts... Do you get better performance if you remove the use of custom fonts and just go with the default? Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Fri Aug 30 03:17:27 2019 From: mark at livecode.com (Mark Waddingham) Date: Fri, 30 Aug 2019 03:17:27 -0400 Subject: Android Speed Woes In-Reply-To: <6fd078762f3882066a168ba929e2555c@livecode.com> References: <6fd078762f3882066a168ba929e2555c@livecode.com> Message-ID: <4ad4b6c223eb2ccbf3ad4a3e3e6bc124@livecode.com> On 2019-08-30 02:56, Mark Waddingham via use-livecode wrote: > If (1) does not turn out to be the case then acceleratedRendering will > have a slightly negative effect (as the engine will be doing what it > would do without acceleratedRendering on, but also paying the overhead > of caching the result!). To fix this you'll need to tweak the > properties of the newEventG group: > > - opaque must be false > - showName must be false > - hScrollbar must be false > - vScrollbar must be false > - showBorder must be false > - all bitmap effects must be empty Additionally and entirely unrelated to performance but might be causing the visual artefacts you mentioned... For now you also need to ensure that your three groups also all have 'showFocusBorder' set to false - this is due to bug 22322, a fix for which is pending (https://github.com/livecode/livecode/pull/7144). [ ShowFocusBorder has absolutely no effect on groups, however it causes a miscalculation to occur when rendering in certain circumstances when it is enabled and acceleratedRendering is on ]. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From benr_mc at cogapp.com Fri Aug 30 04:30:17 2019 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 30 Aug 2019 09:30:17 +0100 Subject: Problems with segmented control widget Message-ID: <520712c0-dbc8-05d8-bc87-e348175ea48c@cogapp.com> I've been using this widget and found some issues. Before I report the bug(s) I want to check if I'm missing some knowledge or understanding. At various times I need to change the hilitedItems on the control by script; at other times I need to react when the user does so. For the latter case I respond to the "hiliteChanged" message. The problem came when I change the hilitedItems by script: it triggered hiliteChanged causing all sorts of hilarity. I had trouble tracking it down because when I stepped through the code I couldn't see any point when the problems occurred. Setting lockMessages didn't help. And even when I checked the lockMessages in my hiliteChanged handler, the aberrant behaviour continued.. After further investigation, the upshot is that there are two issues: - the widget pays no attention to the lockMessages in deciding to post "hiliteChanged" - although it redraws immediately in response to a change in hilitedItems, the hiliteChanged message (or potentially multiple messages stacked up) is not sent until idle time. (The latter issue explains my problem with spotting where the issue was occurring, and also why checking the lockMessages in my hiliteChanged handler didn't help - because by the time the handler was invoked, the lockMessages *was* false.) The first issue is presumably straightforward to address. Is there some fundamental property of widgets that make it impossible to fix the second issue? TIA, Ben From benr at cogapp.com Fri Aug 30 05:19:05 2019 From: benr at cogapp.com (Ben Rubinstein) Date: Fri, 30 Aug 2019 10:19:05 +0100 Subject: Problems with segmented control widget In-Reply-To: <520712c0-dbc8-05d8-bc87-e348175ea48c@cogapp.com> References: <520712c0-dbc8-05d8-bc87-e348175ea48c@cogapp.com> Message-ID: I forgot to mention that both these issues can be worked around - but surprisingly, the second is easier than the first. Using "wait 0 seconds with messages" after changing the hilitedItems allows the hiliteChanged message to be processed immediately; but even then testing the lockMessages is unhelpful - it's always false (presumably because it's in a different thread? Although I thought that lockMessages was a global property?) So the complete solution is to have a global set to mirror lockMessages, and wait with messages whenever the state is changed by script. Anyway, my real question is: is it just a bug, fixable in the widget definiton, that messages emitted by some widgets (at least Navbar is the same) are not handled in the same way as native controls? Or is this a fundamental limitation of LCB? Ben On 30/08/2019 09:30, Ben Rubinstein via use-livecode wrote: > I've been using this widget and found some issues. Before I report the bug(s) > I want to check if I'm missing some knowledge or understanding. > > At various times I need to change the hilitedItems on the control by script; > at other times I need to react when the user does so. For the latter case I > respond to the "hiliteChanged" message. > > The problem came when I change the hilitedItems by script: it triggered > hiliteChanged causing all sorts of hilarity. I had trouble tracking it down > because when I stepped through the code I couldn't see any point when the > problems occurred. Setting lockMessages didn't help.? And even when I checked > the lockMessages in my hiliteChanged handler, the aberrant behaviour continued.. > > After further investigation, the upshot is that there are two issues: > > - the widget pays no attention to the lockMessages in deciding to post > "hiliteChanged" > > - although it redraws immediately in response to a change in hilitedItems, the > hiliteChanged message (or potentially multiple messages stacked up) is not > sent until idle time. > > (The latter issue explains my problem with spotting where the issue was > occurring, and also why checking the lockMessages in my hiliteChanged handler > didn't help - because by the time the handler was invoked, the lockMessages > *was* false.) > > The first issue is presumably straightforward to address. > > Is there some fundamental property of widgets that make it impossible to fix > the second issue? > > 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 scott at elementarysoftware.com Fri Aug 30 06:14:39 2019 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 30 Aug 2019 03:14:39 -0700 Subject: Compiling standalone crashes Message-ID: I have two old stacks (pre version 7 at least) that load into the IDE without trouble and appear to run as expected... except when I try to save them as a standalone for Mac. Under LC version 9 these apps cause Livecode to quit without displaying an error. (I couldn?t find any error logs but this might just be me not knowing where to look.) I?ve tested with LC business versions 9.5, 9.04 and 9.02 The crash does not happen under LC 8.1.10. With that version they build fine. Any suggestions about the best way to start trouble-shooting this? ? Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-800-615-0867 ------------------------------------------------------ From brian at milby7.com Fri Aug 30 11:13:24 2019 From: brian at milby7.com (Brian Milby) Date: Fri, 30 Aug 2019 11:13:24 -0400 Subject: Compiling standalone crashes In-Reply-To: References: Message-ID: Messages are no longer locked when the standalone builder closes/opens the stack. ?That would be one place to look (openStack, etc.) Thanks, Brian On Aug 30, 2019, 6:15 AM -0400, scott--- via use-livecode , wrote: > I have two old stacks (pre version 7 at least) that load into the IDE without trouble and appear to run as expected... except when I try to save them as a standalone for Mac. Under LC version 9 these apps cause Livecode to quit without displaying an error. (I couldn?t find any error logs but this might just be me not knowing where to look.) I?ve tested with LC business versions 9.5, 9.04 and 9.02 The crash does not happen under LC 8.1.10. With that version they build fine. Any suggestions about the best way to start trouble-shooting this? > > ? > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web http://elementarysoftware.com/ > email scott at elementarysoftware.com > booth 1-800-615-0867 > ------------------------------------------------------ > > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dan at clearvisiontech.com Fri Aug 30 11:21:47 2019 From: dan at clearvisiontech.com (Dan Friedman) Date: Fri, 30 Aug 2019 15:21:47 +0000 Subject: Android Speed Woes In-Reply-To: <6fd078762f3882066a168ba929e2555c@livecode.com> References: <6fd078762f3882066a168ba929e2555c@livecode.com> Message-ID: <4D03DBF9-4FEB-4F01-B50B-50ABA3520594@clearvisiontech.com> Ok... so here's an update... The card that contains all this is a calendar. On this card is a header, a datagrid that lists the events of the selected day, and another group with 84 controls in it (one button and field for each possible day) that makes up the calendar's grid, and more. When you click "New Entry" or "Edit Entry", we hide the calendar and show the group "newEventG" which, as you know, contains several other groups for setting the event's properties (title, notes, dates, repeat, and more). It is in the group "newEventG" that we are seeing all the sluggish behavior. Last night, I painstakingly moved group "newEventG" to its own card. Now, the speed is no longer an issue. It's snappy and responsive. I have to wonder if having a hidden group with so many controls was messing things up. Mark, to answer your question, there isn't one image on the entire card. ShowFocusBorder was on. All these were correct: - opaque must be false - showName must be false - hScrollbar must be false - vScrollbar must be false - showBorder must be false - all bitmap effects must be empty I am in a good place now and ok to continue with my project (although the tablet version is now funky as it moves to another card for event editing rather than the group overlay). I hope all this helps LC resolve whatever this issue is. -Dan ?On 8/29/19, 11:56 PM, "use-livecode on behalf of Mark Waddingham via use-livecode" wrote: On 2019-08-29 16:24, Dan Friedman via use-livecode wrote: > Hello again! I am have a tough time getting things to run snappy on > an Android device. It's blazing fast on my computer, and more than > acceptable on my iPhone, but on any android device, it's slow... > noticeably sluggish. The issue is mainly hiding/showing groups. For > example: > > put the milliseconds into m > lock screen --for visual effect in rect (the rect of grc "ne_BG") > //removed the animation for speed testing > hide grp "ne_mainControls" > show grp "ne_repeatG" > unlock screen --with visual effect push left > answer (the milliseconds - m) > > The result of m is: > iMac = 10 > iOS = 1 (iPhoneX) > Android = 516 (Moto G5 Plus Android 7.0) > > The groups contain no images or complex graphics. Just some buttons > and fields. > > I have tried it with and without acceleratedRendering. Actually, with > acceleratedRendering enabled it took longer, m=558. > > I have it setup like this: > Card "calendar" > Group "newEventG" --> layerMode set to "Container" > Group "ne_mainControls" --> layerMode set to "Dynamic" > Group " ne_repeatG" --> layerMode set to "Dynamic" > > Any thoughts or advice? Most other functions are working within > acceptable ranges/speeds. So the first thing to do is (on Desktop) run with acceleratedRendering and ensure that: 1) 'the effective layerMode of group "newEventG"' is container 2) 'the effective layerMode of group "ne_mainControls" is dynamic 3) 'the effective layerMode of group "ne_repeatG" is dynamic If (1) does not turn out to be the case then acceleratedRendering will have a slightly negative effect (as the engine will be doing what it would do without acceleratedRendering on, but also paying the overhead of caching the result!). To fix this you'll need to tweak the properties of the newEventG group: - opaque must be false - showName must be false - hScrollbar must be false - vScrollbar must be false - showBorder must be false - all bitmap effects must be empty Essentially the rule here is that for a group to be a container layer it must not have to render anything itself (as it is just meant to 'contain' other layers). If you get the groups effective layerModes as above I'd imagine you *might* see a slight increase in performance with acceleratedRendering on - the showing and hiding of the dynamic layers is essentially 'free' in this scenario - but their content does need to be cached first. Caching of dynamic layers happens incrementally as parts of them are visible. However, given the difference in speed between the platforms with acceleratedRendering off I'm inclined to think something else is going on here... The CPU on a Moto G5 Plus is substantially less powerful than even an iPhone6S - but definitely not 50x! You mentioned in another thread that you were using custom fonts... Do you get better performance if you remove the use of custom fonts and just go with the default? Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From heather at livecode.com Fri Aug 30 13:17:43 2019 From: heather at livecode.com (Heather Laine) Date: Fri, 30 Aug 2019 18:17:43 +0100 Subject: Maintenance forever? In-Reply-To: <58E1BEC4-F261-4050-A115-F5B2E3B9D522@all-auctions.com> References: <8E7F7387-DC30-46BD-84A5-A0C04110C1D2@iotecdigital.com> <58E1BEC4-F261-4050-A115-F5B2E3B9D522@all-auctions.com> Message-ID: <4877C653-1CE1-4BBF-8817-C6E4322CED91@livecode.com> Rick...I don't think you quite comprehended the issue. The raid disk failed on the new server we were transferring 500GB of data to, during transfer. Suboptimal. Reverse engines! Start again, lets have a new disk there please... Anyway, that is all done now, and pretty much everything is back up and running. There will be a few remaining tweaks. I can confirm that LiveCodeShare is working again. If anyone does not see it, please flush DNS, restart your router, restart computer, restart LiveCode and try it again... LiveCodeShare was particularly difficult as it was first created many years ago using an old version of Revolution CGI which is not 64bit compatible. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 29 Aug 2019, at 18:12, Rick Harrison via use-livecode wrote: > > They said they had a RAID that failed that caused a mess. > One still has to do backups for any RAID for that reason. > Even if they were just using Time Machine to perform a > backup of their RAID they only would lose a maximum > of one hour?s worth of data. If they were doing transaction > logging they wouldn?t lose more than 1 transaction. > They could have been up and running again pronto. > > Just my 2 cents for the day. > > Let?s hope things improve soon. > > 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 bobsneidar at iotecdigital.com Fri Aug 30 15:08:41 2019 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 30 Aug 2019 19:08:41 +0000 Subject: Maintenance forever? In-Reply-To: <4877C653-1CE1-4BBF-8817-C6E4322CED91@livecode.com> References: <8E7F7387-DC30-46BD-84A5-A0C04110C1D2@iotecdigital.com> <58E1BEC4-F261-4050-A115-F5B2E3B9D522@all-auctions.com> <4877C653-1CE1-4BBF-8817-C6E4322CED91@livecode.com> Message-ID: <2F88199F-165E-487F-8C34-DFCFE8547784@iotecdigital.com> As every good soldier knows, no battle plan survives the first 10 minutes after enemy contact. :-) Bob S > On Aug 30, 2019, at 10:17 , Heather Laine via use-livecode wrote: > > Rick...I don't think you quite comprehended the issue. The raid disk failed on the new server we were transferring 500GB of data to, during transfer. Suboptimal. Reverse engines! Start again, lets have a new disk there please... > > Anyway, that is all done now, and pretty much everything is back up and running. There will be a few remaining tweaks. > > I can confirm that LiveCodeShare is working again. If anyone does not see it, please flush DNS, restart your router, restart computer, restart LiveCode and try it again... > > LiveCodeShare was particularly difficult as it was first created many years ago using an old version of Revolution CGI which is not 64bit compatible. > > Best Regards, > > Heather > > Heather Laine > Customer Services Manager > LiveCode Ltd > www.livecode.com From devin_asay at byu.edu Fri Aug 30 15:22:22 2019 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 30 Aug 2019 19:22:22 +0000 Subject: Checking the host OS Message-ID: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> Hi all, I know we can get all manner of information about the host system our stack or application is running on, including platform(), processor(), and machine() but is there a way to check to see whether the host OS is 32 or 64 bit? The platform function on Windows always returns Win32 regardless of which version of Windows is running, and the processor reports x86_32 or x86_64, depending on the host machine?s CPU. Now that we can build both 32 and 64 bit applications for Windows, it?s important to be able to tell whether the host OS is 32 or 64 bit. But I can?t work out if these functions let us get that information. For instance, on my Windows 10 64-bit system I get: The platform: Win32 The processor: x86_64 The machine: x86_64 But I just had a user report that they were unable to run a new build of one of my Windows applications, which I had built as 64 bit. I?m sending them a 32-bit build, but I got to thinking, would there be a way to check that from within LiveCode? Any ideas? Devin Devin Asay Brigham Young University From waprothero at gmail.com Fri Aug 30 16:42:03 2019 From: waprothero at gmail.com (William Prothero) Date: Fri, 30 Aug 2019 13:42:03 -0700 Subject: Is HTML5 really practical? Message-ID: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> Folks: I?m considering making a web site that will use livecode?s html5 engine. Is this practical? What I want to create is a signup system for a kayaking club. Paddles are scheduled for each week and members enter their names for various paddle times. The member list would be in a database and there would also be a membership page with entries for various aspects of their skill levels. HH?s demos see to show reasonable engine load times, but I?m wondering whether it might be easier and better to just use the engine as a cgi and do everything in css and html. Frankly, I haven?t seen any compelling use case for livecode's html5. Is there one, at this time? Any thoughts? Best, Bill William A. Prothero http://earthlearningsolutions.org From ahsoftware at sonic.net Fri Aug 30 16:50:16 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 30 Aug 2019 13:50:16 -0700 Subject: Maintenance forever? In-Reply-To: <4877C653-1CE1-4BBF-8817-C6E4322CED91@livecode.com> References: <8E7F7387-DC30-46BD-84A5-A0C04110C1D2@iotecdigital.com> <58E1BEC4-F261-4050-A115-F5B2E3B9D522@all-auctions.com> <4877C653-1CE1-4BBF-8817-C6E4322CED91@livecode.com> Message-ID: On 8/30/19 10:17 AM, Heather Laine via use-livecode wrote: > LiveCodeShare was particularly difficult as it was first created many years ago using an old version of Revolution CGI which is not 64bit compatible. AKA past its expiration date. -- Mark Wieder ahsoftware at gmail.com From dsc at swcp.com Fri Aug 30 17:42:22 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Fri, 30 Aug 2019 15:42:22 -0600 Subject: Checking the host OS In-Reply-To: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> Message-ID: 1. Check for files and folders that are are required on one or do not exist on one. Program Files (x86) SysWOW64 2. systeminfo > On Aug 30, 2019, at 1:22 PM, Devin Asay via use-livecode wrote: > > Hi all, > > I know we can get all manner of information about the host system our stack or application is running on, including platform(), processor(), and machine() but is there a way to check to see whether the host OS is 32 or 64 bit? The platform function on Windows always returns Win32 regardless of which version of Windows is running, and the processor reports x86_32 or x86_64, depending on the host machine?s CPU. > > Now that we can build both 32 and 64 bit applications for Windows, it?s important to be able to tell whether the host OS is 32 or 64 bit. But I can?t work out if these functions let us get that information. For instance, on my Windows 10 64-bit system I get: > > The platform: Win32 > The processor: x86_64 > The machine: x86_64 > > But I just had a user report that they were unable to run a new build of one of my Windows applications, which I had built as 64 bit. I?m sending them a 32-bit build, but I got to thinking, would there be a way to check that from within LiveCode? > > Any ideas? > > Devin > > Devin Asay > 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 alain.vezina at logilangue.com Fri Aug 30 17:43:14 2019 From: alain.vezina at logilangue.com (Alain Vezina) Date: Fri, 30 Aug 2019 17:43:14 -0400 Subject: Is HTML5 really practical? In-Reply-To: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> References: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> Message-ID: I've been working with HTML5 for a few weeks now and I'm surprised that we can't do things as simple as put field "MyFld" into aVar. So I doubt we can use a dynamic database. But there is nothing better than trying by testing aspects in a way that doesn't take too long, even if the dictionary doesn't always tell us what HTML5 can do. Consider this my point of view as an old LC programmer and a beginner in HTML5. Alain Vezina Translated with www.DeepL.com/Translator > Le 30 ao?t 2019 ? 16:42, William Prothero via use-livecode a ?crit : > > Folks: > I?m considering making a web site that will use livecode?s html5 engine. Is this practical? > > What I want to create is a signup system for a kayaking club. Paddles are scheduled for each week and members enter their names for various paddle times. The member list would be in a database and there would also be a membership page with entries for various aspects of their skill levels. > > HH?s demos see to show reasonable engine load times, but I?m wondering whether it might be easier and better to just use the engine as a cgi and do everything in css and html. > > Frankly, I haven?t seen any compelling use case for livecode's html5. Is there one, at this time? > > Any thoughts? > > Best, > Bill > > William A. Prothero > 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 tom at makeshyft.com Fri Aug 30 20:10:34 2019 From: tom at makeshyft.com (Tom Glod) Date: Fri, 30 Aug 2019 20:10:34 -0400 Subject: Checking the host OS In-Reply-To: References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> Message-ID: I think he is asking to find out if the BUILD is 32 or 64 bit. In that case the platform() function really has to be updated. but there is porobably a way by reading the magic (file header) bytes of the standalone. But can't be sure. On Fri, Aug 30, 2019 at 5:43 PM Dar Scott Consulting via use-livecode < use-livecode at lists.runrev.com> wrote: > 1. Check for files and folders that are are required on one or do not > exist on one. > > Program Files (x86) > SysWOW64 > > 2. systeminfo > > > > > On Aug 30, 2019, at 1:22 PM, Devin Asay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > > > I know we can get all manner of information about the host system our > stack or application is running on, including platform(), processor(), and > machine() but is there a way to check to see whether the host OS is 32 or > 64 bit? The platform function on Windows always returns Win32 regardless of > which version of Windows is running, and the processor reports x86_32 or > x86_64, depending on the host machine?s CPU. > > > > Now that we can build both 32 and 64 bit applications for Windows, it?s > important to be able to tell whether the host OS is 32 or 64 bit. But I > can?t work out if these functions let us get that information. For > instance, on my Windows 10 64-bit system I get: > > > > The platform: Win32 > > The processor: x86_64 > > The machine: x86_64 > > > > But I just had a user report that they were unable to run a new build of > one of my Windows applications, which I had built as 64 bit. I?m sending > them a 32-bit build, but I got to thinking, would there be a way to check > that from within LiveCode? > > > > Any ideas? > > > > Devin > > > > Devin Asay > > Brigham Young University > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dsc at swcp.com Fri Aug 30 21:33:04 2019 From: dsc at swcp.com (Dar Scott Consulting) Date: Fri, 30 Aug 2019 19:33:04 -0600 Subject: Checking the host OS In-Reply-To: References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> Message-ID: <73467BC8-C2AB-4778-BA09-5D604F54E956@swcp.com> Oh... 1. Yes, one way is to parse the exe. (offset, offset, check for "PE\0\0", next two bytes) 2. Check for WoW64 redirection. (I'm not sure how, though.) > On Aug 30, 2019, at 6:10 PM, Tom Glod via use-livecode wrote: > > I think he is asking to find out if the BUILD is 32 or 64 bit. In that > case the platform() function really has to be updated. but there is > porobably a way by reading the magic (file header) bytes of the > standalone. But can't be sure. > > On Fri, Aug 30, 2019 at 5:43 PM Dar Scott Consulting via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> 1. Check for files and folders that are are required on one or do not >> exist on one. >> >> Program Files (x86) >> SysWOW64 >> >> 2. systeminfo >> >> >> >>> On Aug 30, 2019, at 1:22 PM, Devin Asay via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hi all, >>> >>> I know we can get all manner of information about the host system our >> stack or application is running on, including platform(), processor(), and >> machine() but is there a way to check to see whether the host OS is 32 or >> 64 bit? The platform function on Windows always returns Win32 regardless of >> which version of Windows is running, and the processor reports x86_32 or >> x86_64, depending on the host machine?s CPU. >>> >>> Now that we can build both 32 and 64 bit applications for Windows, it?s >> important to be able to tell whether the host OS is 32 or 64 bit. But I >> can?t work out if these functions let us get that information. For >> instance, on my Windows 10 64-bit system I get: >>> >>> The platform: Win32 >>> The processor: x86_64 >>> The machine: x86_64 >>> >>> But I just had a user report that they were unable to run a new build of >> one of my Windows applications, which I had built as 64 bit. I?m sending >> them a 32-bit build, but I got to thinking, would there be a way to check >> that from within LiveCode? >>> >>> Any ideas? >>> >>> Devin >>> >>> Devin Asay >>> Brigham Young University >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikeythek at gmail.com Fri Aug 30 23:04:04 2019 From: mikeythek at gmail.com (Mikey) Date: Fri, 30 Aug 2019 23:04:04 -0400 Subject: Hactoberfest is coming... Message-ID: Hactoberfest is a month away. That's github's event that awards some swag like tshirts and stickers in exchange for pull requests to open source repos. Last year to get your swag you had to submit 4 PR's. We've got a month, so maybe now would be a good time to develop a list of LC repos that deserve our time, changes/additions/features we want to implement, and get a bunch of people into the swing of contributing to these LC projects. We also need to help the people who have never done this help themselves. From ahsoftware at sonic.net Fri Aug 30 23:09:27 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 30 Aug 2019 20:09:27 -0700 Subject: Checking the host OS In-Reply-To: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> Message-ID: <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> On 8/30/19 12:22 PM, Devin Asay via use-livecode wrote: > Now that we can build both 32 and 64 bit applications for Windows, it?s important to be able to tell whether the host OS is 32 or 64 bit. Why? If the 64-bit application won't run on the 32-bit system you won't get as far as your scripted test. Am I missing something? -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Fri Aug 30 23:21:00 2019 From: brian at milby7.com (Brian Milby) Date: Fri, 30 Aug 2019 23:21:00 -0400 Subject: Hactoberfest is coming... In-Reply-To: References: Message-ID: <3e3a2f1b-4f8e-4504-bf29-300450a21776@Spark> Yes, very good idea. ?I got my first shirt last year. Thanks, Brian On Aug 30, 2019, 11:05 PM -0400, Mikey via use-livecode , wrote: > Hactoberfest is a month away. That's github's event that awards some swag > like tshirts and stickers in exchange for pull requests to open source > repos. Last year to get your swag you had to submit 4 PR's. > We've got a month, so maybe now would be a good time to develop a list of > LC repos that deserve our time, changes/additions/features we want to > implement, and get a bunch of people into the swing of contributing to > these LC projects. > We also need to help the people who have never done this help themselves. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Aug 30 23:41:13 2019 From: devin_asay at byu.edu (Devin Asay) Date: Sat, 31 Aug 2019 03:41:13 +0000 Subject: Checking the host OS In-Reply-To: <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu>, <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> Message-ID: On Aug 30, 2019, at 9:10 PM, Mark Wieder via use-livecode wrote: > >> On 8/30/19 12:22 PM, Devin Asay via use-livecode wrote: >> >> Now that we can build both 32 and 64 bit applications for Windows, it?s important to be able to tell whether the host OS is 32 or 64 bit. > > Why? If the 64-bit application won't run on the 32-bit system you won't get as far as your scripted test. Am I missing something? No, I?m just toying with the idea of having a 32-bit launcher that would examine the host OS, then launch the proper executable based on whether it is 32 or 64 bit. Sort of like a poor man?s universal app like we used to create for MacOS. It?s possible I?m use way overthinking this. -D From tom at makeshyft.com Fri Aug 30 23:41:46 2019 From: tom at makeshyft.com (Tom Glod) Date: Fri, 30 Aug 2019 23:41:46 -0400 Subject: Checking the host OS In-Reply-To: <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> Message-ID: I have personal experience with trying to create a graphic that is 32,000 x 32,000 and exporting it. on win32 i will run out of ram and lock up........ if not hard crash before it even gets to it......and if i can test the standalone bitness I can decline to attempt an impossible feat. on win64 i could try it and if the system has enough ram, then it should succeed. I also have to increase the cache size to huge amounts to try to create huge images. I think the highest i succeeded in a 32 bit standalone was like 14k x 14k....it was 3 years ago where i did those tests....and don't remember the details only that i was hitting the 32 bit memory wall. thats one example of when asking the engine if its 32bit or 64 bit would help. On Fri, Aug 30, 2019 at 11:10 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 8/30/19 12:22 PM, Devin Asay via use-livecode wrote: > > > Now that we can build both 32 and 64 bit applications for Windows, it?s > important to be able to tell whether the host OS is 32 or 64 bit. > > Why? If the 64-bit application won't run on the 32-bit system you won't > get as far as your scripted test. Am I missing something? > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Sat Aug 31 00:03:31 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 30 Aug 2019 21:03:31 -0700 Subject: Checking the host OS In-Reply-To: References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> Message-ID: <1e5b66f6-68e5-2501-f287-534b48d370a4@sonic.net> On 8/30/19 8:41 PM, Tom Glod via use-livecode wrote: > on win32 i will run out of ram and lock up........ if not hard crash before > it even gets to it......and if i can test the standalone bitness I can > decline to attempt an impossible feat. Ah. OK - so you're deploying a 32-bit application possibly onto a 64-bit machine. It makes sense to avoid the crash/lockup that way. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Sat Aug 31 00:05:07 2019 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 30 Aug 2019 21:05:07 -0700 Subject: Checking the host OS In-Reply-To: References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> Message-ID: On 8/30/19 8:41 PM, Devin Asay via use-livecode wrote: > No, I?m just toying with the idea of having a 32-bit launcher that would examine the host OS, then launch the proper executable based on whether it is 32 or 64 bit. Sort of like a poor man?s universal app like we used to create for MacOS. It?s possible I?m use way overthinking this. OK. I'm with Dar on this then. Check for the existence of folder "C:/Windows/SysWOW64". If it exists then you're on a 64-bit machine. -- Mark Wieder ahsoftware at gmail.com From e.beugelaar at me.com Sat Aug 31 01:16:05 2019 From: e.beugelaar at me.com (e.beugelaar at me.com) Date: Sat, 31 Aug 2019 05:16:05 +0000 (UTC) Subject: Is HTML5 really practical? In-Reply-To: References: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> Message-ID: <37B5B0467E8679C9.d962c143-eda9-4ef0-bba4-e31d62e18663@mail.outlook.com> Maybe this framework is usefull: https://revigniter.com/ Cheers, Erik On Fri, Aug 30, 2019 at 11:44 PM +0200, "Alain Vezina via use-livecode" wrote: I've been working with HTML5 for a few weeks now and I'm surprised that we can't do things as simple as put field "MyFld" into aVar. So I doubt we can use a dynamic database. But there is nothing better than trying by testing aspects in a way that doesn't take too long, even if the dictionary doesn't always tell us what HTML5 can do. Consider this my point of view as an old LC programmer and a beginner in HTML5. Alain Vezina Translated with www.DeepL.com/Translator > Le 30 ao?t 2019 ? 16:42, William Prothero via use-livecode a ?crit : > > Folks: > I?m considering making a web site that will use livecode?s html5 engine. Is this practical? > > What I want to create is a signup system for a kayaking club. Paddles are scheduled for each week and members enter their names for various paddle times. The member list would be in a database and there would also be a membership page with entries for various aspects of their skill levels. > > HH?s demos see to show reasonable engine load times, but I?m wondering whether it might be easier and better to just use the engine as a cgi and do everything in css and html. > > Frankly, I haven?t seen any compelling use case for livecode's html5. Is there one, at this time? > > Any thoughts? > > Best, > Bill > > William A. Prothero > 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 jjs at krutt.org Fri Aug 30 14:37:27 2019 From: jjs at krutt.org (Jjs) Date: Fri, 30 Aug 2019 20:37:27 +0200 Subject: Compiling standalone crashes In-Reply-To: References: Message-ID: In previous release notes there is a script which you have to put in your closestack handler which solves this Brian Milby via use-livecode schreef op 30 augustus 2019 17:13:24 CEST: >Messages are no longer locked when the standalone builder closes/opens >the stack. ?That would be one place to look (openStack, etc.) > >Thanks, >Brian >On Aug 30, 2019, 6:15 AM -0400, scott--- via use-livecode >, wrote: >> I have two old stacks (pre version 7 at least) that load into the IDE >without trouble and appear to run as expected... except when I try to >save them as a standalone for Mac. Under LC version 9 these apps cause >Livecode to quit without displaying an error. (I couldn?t find any >error logs but this might just be me not knowing where to look.) I?ve >tested with LC business versions 9.5, 9.04 and 9.02 The crash does not >happen under LC 8.1.10. With that version they build fine. Any >suggestions about the best way to start trouble-shooting this? >> >> ? >> Scott Morrow >> >> Elementary Software >> (Now with 20% less chalk dust!) >> web http://elementarysoftware.com/ >> email scott at elementarysoftware.com >> booth 1-800-615-0867 >> ------------------------------------------------------ >> >> >> >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode -- Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn beknoptheid. From jjs at krutt.org Sat Aug 31 01:47:07 2019 From: jjs at krutt.org (Jjs) Date: Sat, 31 Aug 2019 07:47:07 +0200 Subject: Is HTML5 really practical? In-Reply-To: <37B5B0467E8679C9.d962c143-eda9-4ef0-bba4-e31d62e18663@mail.outlook.com> References: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> <37B5B0467E8679C9.d962c143-eda9-4ef0-bba4-e31d62e18663@mail.outlook.com> Message-ID: A few days ago i read that if a webpage is not loaded within 3 seconds, 53% of visitors will skip it. LC's HTML5 is way too slow. It is stated that the engine needs downloading only once but it happens every time. It looks like more than 10 sec. I made one too a long time ago and it worked quite well, but it had no capabilities back then to load new info. So all json files and images where in the package. And it still has too less possibilities in communicating. Also i don't understand why it is not in Indy and not in business. But it is in community and as separate commercial package. So i'm starting to build a project using LC server and revigniter, just like Erik mentioned. Therefore i also started to follow an excellent written FREE HTML&CSS course at internetingishard.com because this will help understanding how all works together. Erik Beugelaar via use-livecode schreef op 31 augustus 2019 07:16:05 CEST: >Maybe this framework is usefull: > > >https://revigniter.com/ > > > > >Cheers, > > >Erik > > > > >On Fri, Aug 30, 2019 at 11:44 PM +0200, "Alain Vezina via use-livecode" > wrote: > > > > > > > > > > >I've been working with HTML5 for a few weeks now and I'm surprised that >we can't do things as simple as put field "MyFld" into aVar. >So I doubt we can use a dynamic database. But there is nothing better >than trying by testing aspects in a way that doesn't take too long, >even if the dictionary doesn't always tell us what HTML5 can do. > >Consider this my point of view as an old LC programmer and a beginner >in HTML5. > >Alain Vezina > >Translated with www.DeepL.com/Translator > > >> Le 30 ao?t 2019 ? 16:42, William Prothero via use-livecode a ?crit : >> >> Folks: >> I?m considering making a web site that will use livecode?s html5 >engine. Is this practical? >> >> What I want to create is a signup system for a kayaking club. Paddles >are scheduled for each week and members enter their names for various >paddle times. The member list would be in a database and there would >also be a membership page with entries for various aspects of their >skill levels. >> >> HH?s demos see to show reasonable engine load times, but I?m >wondering whether it might be easier and better to just use the engine >as a cgi and do everything in css and html. >> >> Frankly, I haven?t seen any compelling use case for livecode's html5. >Is there one, at this time? >> >> Any thoughts? >> >> Best, >> Bill >> >> William A. Prothero >> 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 -- Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn beknoptheid. From sundown at pacifier.com Sat Aug 31 02:47:28 2019 From: sundown at pacifier.com (JB) Date: Fri, 30 Aug 2019 23:47:28 -0700 Subject: Checking the host OS In-Reply-To: References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu> <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> Message-ID: Below is some c code that will return the architecture on OS X. /* Determine the machine name, e.g. "x86_64". */ #include #include #include #include int main(int argc, const char * argv[]) { size_t size; sysctlbyname("hw.machine", NULL, &size, NULL, 0); // Get size of data to be returned. char *name = malloc(size); sysctlbyname("hw.machine", name, &size, NULL, 0); // Do stuff... printf("%s\n", name); free(name); return 0; } /* Output: x86_64 Program ended with exit code: 0 */ Compile the above code and access it with a shell command. JB > On Aug 30, 2019, at 8:41 PM, Devin Asay via use-livecode wrote: > > On Aug 30, 2019, at 9:10 PM, Mark Wieder via use-livecode wrote: >> >>> On 8/30/19 12:22 PM, Devin Asay via use-livecode wrote: >>> >>> Now that we can build both 32 and 64 bit applications for Windows, it?s important to be able to tell whether the host OS is 32 or 64 bit. >> >> Why? If the 64-bit application won't run on the 32-bit system you won't get as far as your scripted test. Am I missing something? > > No, I?m just toying with the idea of having a 32-bit launcher that would examine the host OS, then launch the proper executable based on whether it is 32 or 64 bit. Sort of like a poor man?s universal app like we used to create for MacOS. It?s possible I?m use way overthinking this. > > -D > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Sat Aug 31 05:01:45 2019 From: hh at hyperhh.de (hh) Date: Sat, 31 Aug 2019 11:01:45 +0200 Subject: Is HTML5 really practical? Message-ID: The HTML5 deployment has its own problems. The biggest problem is that people use it for free and are not willing to buy (at least for a short period) the HTML5 license in order to support further LC development in that field (but then moan about missing features). So, also from that reason, HTML5 deployment is still very uncomplete. Let me answer a few statements from the last posts of this thread. > we can't do things as simple as put field "MyFld" into aVar This worked from the first steps of HTML5 deployment. In 9.5.0 make a new stack with a button and a field and hit button "TEST" from the LC toolbar. > even if the dictionary doesn't always tell us what HTML5 can do With a few exceptions, not that nor what it can't do. That's why I wrote TestInStandalone. You can there wrote/paste scripts and look whether 9.5.0-HTML5 can do that (in modern browsers: latest Safari, Firefox, Chrome. IE/Edge was never supported). http://hyperhh.de/html5/hhTestInStandalone-9.5.0hhX.html http://hh.on-rev.com/html5/hhTestInStandalone-9.5.0hhX.html On the other hand, when using javascript and native HTML5 objects you can do things in a LC HTML5 standalone, that LC can't do. This example has, LC and JS all together, less than 300 lines of code: http://hyperhh.de/html5/HTML5Field_v106-9.5.0X.html http://hh.on-rev.com/html5/HTML5Field_v106-9.5.0X.html > ... read that if a webpage is not loaded within 3 seconds, 53% of > visitors will skip it. LC's HTML5 is way too slow. It is stated > that the engine needs downloading only once but it happens every > time. It looks like more than 10 sec. With Safari on a Mac min (2.5 GHz) and a 100 MBit connection I have the following times with 9.5.0 standalones: The first time any 9.5.0 standalone loads this needs 5-9 seconds. The next time any 9.5.0 standalone loads I have it in < 3 seconds. More than 10 seconds happens only to me when I have three browsers open, two versions of Livecode open, a local server (MAMP) is running and VLC is streaming music. Of course you have to prepare the server for speed, especially such that each standalone points to the same .js (and the browser can see that this is the same file and take it from it's cache). So it is "you make it [reload engine] happen every time" rather than "it happens every time". From hh at hyperhh.de Sat Aug 31 08:13:22 2019 From: hh at hyperhh.de (hh) Date: Sat, 31 Aug 2019 14:13:22 +0200 Subject: Native HTML5 field Message-ID: <42473BBD-0E71-438C-8AFC-407C307BA438@hyperhh.de> Just uploaded the source code to "Sample Stacks": [1] HTML5 Multi Windows (Focus-Move-Resize) v110 [2] HTML5 GoStackURL v100 [3] HTML5 Native Field v106 or use http://livecodeshare.runrev.com/stack/945/ ... for [1] http://livecodeshare.runrev.com/stack/947/ ... for [2] http://livecodeshare.runrev.com/stack/948/ ... for [3] Stack [2] needs a local server and your stacks (which should work with HTML5) in a folder to load with go stack URL from the standalone (uses same origin policy). ** Stacks [1] and [3] are ready for compiling. Just download and hit button "TEST" from the LC 9.5.0 or 9.0.5 toolbar. ** For an example of [3] that uses webfonts from its server use http://hyperhh.de/html5/HTML5Field_v106-9.5.0X.html (EU) http://hh.on-rev.com/html5/HTML5Field_v106-9.5.0X.html (US) For more examples in HTML5 I wait first for some progress of LC in that field. From mark at livecode.com Sat Aug 31 08:37:43 2019 From: mark at livecode.com (Mark Waddingham) Date: Sat, 31 Aug 2019 13:37:43 +0100 Subject: Checking the host OS In-Reply-To: References: <17F33AB2-8F8D-4B1D-AC34-40E3345D3B65@byu.edu>, <951c839a-7e0b-b524-bf1e-96be47e18e86@sonic.net> Message-ID: <305c09dae0fc873ac61072b615c0ce65@livecode.com> On 2019-08-31 04:41, Devin Asay via use-livecode wrote: > No, I?m just toying with the idea of having a 32-bit launcher that > would examine the host OS, then launch the proper executable based on > whether it is 32 or 64 bit. Sort of like a poor man?s universal app > like we used to create for MacOS. It?s possible I?m use way > overthinking this. I think you might be overthinking this... The Windows world is different from mac because the former don't have the idea of multi-architecture binaries. Obviously on mac this isn't something you have to worry about - especially since versions of macOS going back many years have supported 64-bit as have the machines it runs on. On Windows it is usual for the user to choose whether they want 32-bit or 64-bit versions of the apps they download and install. This is usually guided by the webpages which offer downloads as you can usually assume that if the user is on a 64-bit windows machine, then the browser they are running will be 64-bit which means that you can tell from the UserAgent string what architecture their machine has and so you can guide the user to the right choice. In an end-user setting, you could always have a dialog which pops up when running the 32-bit version on a 64-bit machine (by using Dar's suggestion) on first run to suggest the user might want to download the 64-bit version - however, you then have to ask yourself whether your app actually benefits from being 64-bit enough to justify this extra complexity. In an organizational setting then one would hope that the IT department would know what to do when presented with the choice of both a 32-bit and a 64-bit build of a Windows app... In reality this may or may not be the case ;) So my suggestion (in general - obviously specific circumstances always apply) is don't worry about it. Offer two downloads explicitly named and marked - one as 32-bit one as 64-bit and then, if you can, guide the user to the right choice online by offering the appropriate build (which Chrome does, for example, adding further weight to being able to rely on the bitness of the browser accessing your download site). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From sean at pidigital.co.uk Sat Aug 31 09:52:59 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Sat, 31 Aug 2019 14:52:59 +0100 Subject: Is HTML5 really practical? In-Reply-To: References: Message-ID: <3CA73F18-E395-4FCC-8571-C01B16FF53F7@pidigital.co.uk> > On 31 Aug 2019, at 10:01, hh via use-livecode wrote: > > The HTML5 deployment has its own problems. The biggest problem is > that people use it for free and are not willing to buy (at least > for a short period) the HTML5 license in order to support further > LC development in that field (but then moan about missing features). > > So, also from that reason, HTML5 deployment is still very uncomplete. Me and my client bought a 2 year license each plus I had my 6mth from the crowdfund reward. Does that qualify me to ?moan about missing features?? I absolutely agree with everything else Hermann states though. You must set up your server to speed up download. But if you reload the page manually you are effectively forcing it to ignore the cache and download everything again. If you navigate away and comeback though it does not need to redownload. There is a huge amount of things that are broken at the moment. A lot of that it seems is because Chrome updated but LC haven?t yet met up with the new conditions. I?ve been looking into it but have been a bit tied up with my clients project so I?ve just been using workarounds for now. It?s a necessary evil ?til we get LC HTML5 deployment fixed (along with some other basic LC anomalies). I?d recommend to keep playing with it. I?ve accomplished so much for my client with it despite all the issues. Perseverance. And ask the community. And post bug reports. Sean From harrison at all-auctions.com Sat Aug 31 09:55:27 2019 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 31 Aug 2019 09:55:27 -0400 Subject: Is HTML5 really practical? In-Reply-To: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> References: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> Message-ID: <2A97AB3E-8E1D-47C0-9CE6-6D2C0980DB39@all-auctions.com> Hi Bill, LC HTML5 engine in my opinion isn?t practical for many of the reasons other?s have stated. It wasn?t created with the idea that it was going to help you to create webpages. (That was what I originally thought it would be used for, so you are not alone in making that assumption.) It was created to help you to run a stack within a web-browser, and so it has to download the engine to the web-browser before it can perform any function. It?s functioning was incomplete in some ways so it was ?Experimental? for a long time, and not a finely polished finished product. It may still have some issues. I felt that if one has to take the time to download something, then one should probably just download the appropriate app for the correct operating system whether that is macOS, Windows, or Linux. It?s not like users don?t know how to do that by clicking on a weblink. There isn?t any question about how much functionality one is getting with an LC app then either. What does work for making websites/webpages is: Apache 2.x, LC Server, databases such as PostgreSQL, non-LC HTML5, and CSS. I recommend PostgreSQL as it?s license is an MIT license that is ?Free as in water?, and my be used for any purpose, commercial or non-commercial. One also does not have to post one?s source code for PostgreSQL anywhere either. (Other databases use some other form of GPL that isn?t so nice or may require a subscription payment of $500 per year.) I hope this helps you with your decision making. Good luck! Rick > On Aug 30, 2019, at 4:42 PM, William Prothero via use-livecode wrote: > > Folks: > I?m considering making a web site that will use livecode?s html5 engine. Is this practical? > > What I want to create is a signup system for a kayaking club. Paddles are scheduled for each week and members enter their names for various paddle times. The member list would be in a database and there would also be a membership page with entries for various aspects of their skill levels. > > HH?s demos see to show reasonable engine load times, but I?m wondering whether it might be easier and better to just use the engine as a cgi and do everything in css and html. > > Frankly, I haven?t seen any compelling use case for livecode's html5. Is there one, at this time? > > Any thoughts? > > Best, > Bill > > William A. Prothero > 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 waprothero at gmail.com Sat Aug 31 10:14:31 2019 From: waprothero at gmail.com (William Prothero) Date: Sat, 31 Aug 2019 07:14:31 -0700 Subject: Is HTML5 really practical? In-Reply-To: <2A97AB3E-8E1D-47C0-9CE6-6D2C0980DB39@all-auctions.com> References: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> <2A97AB3E-8E1D-47C0-9CE6-6D2C0980DB39@all-auctions.com> Message-ID: Folks, Thanks for your thoughts on LC HTML5 for web pages. I use LC increasingly only for my own projects, even though I own a commercial license. I?m retired and give away any education applications that I create. For simple web page projects, though, I start with WordPress. There is a lot of really nice instructional material for making WordPress plugins (php). With Wordpress doing a lot of the basic heavy lifting, doing a special plugin for a custom need in php is pretty straightforward. BTW, Herman?s work with LC Html5 and javascript is really a nice contribution. Best, Bill William A. Prothero http://earthlearningsolutions.org From hh at hyperhh.de Sat Aug 31 11:29:34 2019 From: hh at hyperhh.de (hh) Date: Sat, 31 Aug 2019 17:29:34 +0200 Subject: Is HTML5 really practical? Message-ID: <4A3207AD-67BE-4CD2-BE82-9EA50C3B61F3@hyperhh.de> > Rick H. wrote: > LC HTML5 engine in my opinion isn?t practical for many of the > reasons other?s have stated... > ... What does work for making websites/webpages is: > Apache 2.x, LC Server, databases such as PostgreSQL, > non-LC HTML5, and CSS. I have made with nearly every progress in the standalone engine in sum 69 examples. Most of them are simple. Some of them show things that are not available by other web tools. So take one of the more advanced examples and show me how to make that with the tools you cited. I'm looking forward. I didn't need more than a few hours for most of these examples. TMHO, the HTML5 standalone builder is an appropriate tool for creating learning software. Of course you can, if you like headache, use a lot of huge and inscrutable javascript packages (increases also the loading time). But if you are clever and use the best of both sides (LiveCode in the standalone and HTML5 in the page) then you can create apps that you can't have in LC or HTML alone: 'synergetic effects' are possible. From ambassador at fourthworld.com Sat Aug 31 13:19:30 2019 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 31 Aug 2019 10:19:30 -0700 Subject: Is HTML5 really practical? In-Reply-To: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> References: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> Message-ID: <9ffc3198-6625-841d-07be-129c37450c0b@fourthworld.com> William Prothero wrote: > ...I?m wondering whether it might be easier and better to just use > the engine as a cgi and do everything in css and html. Yes. On the sever, LC makes as good a choice for CGIs as nearly anything else. On the client there are many options, including browser-native HTML, LC's emscripten export to JS/HTML, or an LC native app. Considering how simple and lightweight web forms are, esp. with CSS3's features for field labels and prompts vs having to script all of that by hand in LC, for things like that the choice clearly favors simplicity. Then consider the browser compatibility constraints of LC's current export, and that mobile isn't considered supported at all, and the choice becomes even clearer. LC's HTML export can be useful for certain kinds of highly vertical solutions, esp. those with little to no direct business competition. But as others here have noted, it's not designed for making most kinds of web pages. It's easy to look at desktop and browser apps as being similar, but the more you work in both the clearer it becomes that they are radically different paradigms. Native apps, whether made with LC, XCode, VB, or anything else, are based on static coordinates, while web elements automatically reflow. Right off the bat all aspects of handling layout and changes to layout are different at a very fundamental level. Think about the implications of that for a while, then consider all the ways LC is designed to talk to OS APIs, and how browsers are designed to insulate the user's OS from what happens within web pages, and the stark differences between the two become soberly clear. -- 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 jjs at krutt.org Sat Aug 31 14:15:33 2019 From: jjs at krutt.org (JJS) Date: Sat, 31 Aug 2019 20:15:33 +0200 Subject: Is HTML5 really practical? In-Reply-To: <9ffc3198-6625-841d-07be-129c37450c0b@fourthworld.com> References: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> <9ffc3198-6625-841d-07be-129c37450c0b@fourthworld.com> Message-ID: I always like it when you give these well thought replies, Richard. Opposed to me, i flap some things out sometimes too quick. Op 31-8-2019 om 19:19 schreef Richard Gaskin via use-livecode: > William Prothero wrote: > > > ...I?m wondering whether it might be easier and better to just use > > the engine as a cgi and do everything in css and html. > > Yes. > > On the sever, LC makes as good a choice for CGIs as nearly anything else. > > On the client there are many options, including browser-native HTML, > LC's emscripten export to JS/HTML, or an LC native app. > > Considering how simple and lightweight web forms are, esp. with CSS3's > features for field labels and prompts vs having to script all of that > by hand in LC, for things like that the choice clearly favors simplicity. > > Then consider the browser compatibility constraints of LC's current > export, and that mobile isn't considered supported at all, and the > choice becomes even clearer. > > LC's HTML export can be useful for certain kinds of highly vertical > solutions, esp. those with little to no direct business competition. > But as others here have noted, it's not designed for making most kinds > of web pages. > > It's easy to look at desktop and browser apps as being similar, but > the more you work in both the clearer it becomes that they are > radically different paradigms. > > Native apps, whether made with LC, XCode, VB, or anything else, are > based on static coordinates, while web elements automatically reflow. > Right off the bat all aspects of handling layout and changes to layout > are different at a very fundamental level. > > Think about the implications of that for a while, then consider all > the ways LC is designed to talk to OS APIs, and how browsers are > designed to insulate the user's OS from what happens within web pages, > and the stark differences between the two become soberly clear. > > -- > ?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 harrison at all-auctions.com Sat Aug 31 16:09:03 2019 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 31 Aug 2019 16:09:03 -0400 Subject: Is HTML5 really practical? In-Reply-To: References: <84CFFDFF-5778-4CC6-8F7D-540593EC6212@gmail.com> <2A97AB3E-8E1D-47C0-9CE6-6D2C0980DB39@all-auctions.com> Message-ID: Hi Bill, You probably should have led with the fact that you are a Wordpress person. LC supposedly plays nicely with Wordpress. Maybe someone can point him to the Wordpress videos/resources from a couple years ago? (Is it a Wordpress plug-in or what? I don?t remember.) LC Server is much nicer to work with than PHP as your middleware choice between HTML and any database work. You can mix your code however you need to along with Javascript too. I get that you are retired and basically want to slap together a useful website as soon as possible so Wordpress does pretty much most of what you commonly want to accomplish. I like Valentina Studio (FREE) for putting a database together. https://www.valentina-db.com/en/get-free-valentina-studio It works well on macOS, Linux, or Windows computers. Good luck, Rick > On Aug 31, 2019, at 10:14 AM, William Prothero via use-livecode wrote: > > Folks, > Thanks for your thoughts on LC HTML5 for web pages. I use LC increasingly only for my own projects, even though I own a commercial license. I?m retired and give away any education applications that I create. For simple web page projects, though, I start with WordPress. There is a lot of really nice instructional material for making WordPress plugins (php). With Wordpress doing a lot of the basic heavy lifting, doing a special plugin for a custom need in php is pretty straightforward. > > BTW, Herman?s work with LC Html5 and javascript is really a nice contribution. > > Best, > Bill > > William A. Prothero > 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 harrison at all-auctions.com Sat Aug 31 16:17:41 2019 From: harrison at all-auctions.com (Rick Harrison) Date: Sat, 31 Aug 2019 16:17:41 -0400 Subject: Is HTML5 really practical? In-Reply-To: <4A3207AD-67BE-4CD2-BE82-9EA50C3B61F3@hyperhh.de> References: <4A3207AD-67BE-4CD2-BE82-9EA50C3B61F3@hyperhh.de> Message-ID: <4709A697-B994-45A2-9012-A4D12BB49193@all-auctions.com> Hi hh, I?m glad you are happy, and have found LC HTML5 useful for what you are doing. For my needs it was not up to the task, or simply just not the correct tool for the job. I can see how it can be good for small quick programs for learning examples, and I?m glad it works for you. Sorry, I do not have the luxury of spending my time trying to recreate any of your more advanced examples. I?m just glad that you have shared those examples with the community so we can all learn from them. I think Richard Gaskin did a good job of explaining the strengths of both approaches. Cheers, Rick > On Aug 31, 2019, at 11:29 AM, hh via use-livecode wrote: > > I have made with nearly every progress in the standalone engine in > sum 69 examples. Most of them are simple. Some of them show things > that are not available by other web tools. > > So take one of the more advanced examples and show me how to make that > with the tools you cited. I'm looking forward. I didn't need more than > a few hours for most of these examples. > > TMHO, the HTML5 standalone builder is an appropriate tool for creating > learning software. Of course you can, if you like headache, use a lot > of huge and inscrutable javascript packages (increases also the loading > time). > > But if you are clever and use the best of both sides (LiveCode in the > standalone and HTML5 in the page) then you can create apps that you > can't have in LC or HTML alone: 'synergetic effects' are possible. From jacque at hyperactivesw.com Sat Aug 31 16:35:04 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 31 Aug 2019 15:35:04 -0500 Subject: Launch vs Set in widget Message-ID: What is the difference between "launch URL" and "set the URL" in a browser widget? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sean at pidigital.co.uk Sat Aug 31 16:51:44 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Sat, 31 Aug 2019 21:51:44 +0100 Subject: Is HTML5 really practical? In-Reply-To: <4709A697-B994-45A2-9012-A4D12BB49193@all-auctions.com> References: <4A3207AD-67BE-4CD2-BE82-9EA50C3B61F3@hyperhh.de> <4709A697-B994-45A2-9012-A4D12BB49193@all-auctions.com> Message-ID: I would mainly only use HTML5 deployment for Web Apps rather than web pages. Much better to use some pre-made web template, Wordpress or learn and use native HTML5 & CSS3. I?m converting for my client two of his commercial desktop apps being used by sales agents over to Web Apps as he is looking to expand his app product line and his customer IT depts are unwilling to install any more applications. Web Apps open up the market for him to 30 times as many customers which is a really big deal. The only initial hurdle was getting it to talk through php to the MySQL server but ended up being easy in comparison to simple text field operations and now form view DataGridV2 (bane of my life at the moment). Btw, on a tangent, I?ve had good experiences with HTML5 deployment running in Safari on an iOS device with only a few niggles like spacebar and tab not working. Emscripten say it?s not supported but that doesn?t mean you can?t get it to work. Sean From hh at hyperhh.de Sat Aug 31 16:55:48 2019 From: hh at hyperhh.de (hh) Date: Sat, 31 Aug 2019 22:55:48 +0200 Subject: Launch vs Set in widget Message-ID: > JLG wrote: > What is the difference between "launch URL" and "set the URL" in a > browser widget? You probably mean load url which caches non-blocking, contrary to set url. There is also load url in widget which also sends you a message, contrary to set url. Launch url leaves LC and launches the url in the system's default browser. From sean at pidigital.co.uk Sat Aug 31 16:56:56 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Sat, 31 Aug 2019 21:56:56 +0100 Subject: Launch vs Set in widget In-Reply-To: References: Message-ID: <67ADC9ED-6B10-4B17-8403-F875C30088B3@pidigital.co.uk> Launch url is for opening an appropriate app for the url (text file, LiveCode stack, phone number etc) as associated by your OS. A phone number might open your phone app on a mobile device. A text doc might open MS Word. Launch in widget is intended to open a webpage in the browser. Depending what widget you send it to of course. Sean Cole Pi Digital Prod Ltd > On 31 Aug 2019, at 21:35, J. Landman Gay via use-livecode wrote: > > What is the difference between "launch URL" and "set the URL" in a browser widget? > > -- > 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 MikeKerner at roadrunner.com Sat Aug 31 17:27:36 2019 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 31 Aug 2019 17:27:36 -0400 Subject: Hactoberfest is coming... In-Reply-To: <3e3a2f1b-4f8e-4504-bf29-300450a21776@Spark> References: <3e3a2f1b-4f8e-4504-bf29-300450a21776@Spark> Message-ID: OK, Mikey's 100% unofficial livecode hacktoberfest idea exchange repo is now live. https://macmikey.github.io/lc-hacktoberfest/ On Fri, Aug 30, 2019 at 11:22 PM Brian Milby via use-livecode < use-livecode at lists.runrev.com> wrote: > Yes, very good idea. I got my first shirt last year. > > Thanks, > Brian > On Aug 30, 2019, 11:05 PM -0400, Mikey via use-livecode < > use-livecode at lists.runrev.com>, wrote: > > Hactoberfest is a month away. That's github's event that awards some swag > > like tshirts and stickers in exchange for pull requests to open source > > repos. Last year to get your swag you had to submit 4 PR's. > > We've got a month, so maybe now would be a good time to develop a list of > > LC repos that deserve our time, changes/additions/features we want to > > implement, and get a bunch of people into the swing of contributing to > > these LC projects. > > We also need to help the people who have never done this help themselves. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode 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 sean at pidigital.co.uk Sat Aug 31 17:46:45 2019 From: sean at pidigital.co.uk (Pi Digital) Date: Sat, 31 Aug 2019 22:46:45 +0100 Subject: Hactoberfest is coming... In-Reply-To: References: <3e3a2f1b-4f8e-4504-bf29-300450a21776@Spark> Message-ID: <7FBFF079-26F6-4469-810D-301DAEA300D8@pidigital.co.uk> Good work, thanks Mikey. Sean Cole Pi Digital Prod Ltd > On 31 Aug 2019, at 22:27, Mike Kerner via use-livecode wrote: > > OK, Mikey's 100% unofficial livecode hacktoberfest idea exchange repo is > now live. > https://macmikey.github.io/lc-hacktoberfest/ > > > > On Fri, Aug 30, 2019 at 11:22 PM Brian Milby via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Yes, very good idea. I got my first shirt last year. >> >> Thanks, >> Brian >> On Aug 30, 2019, 11:05 PM -0400, Mikey via use-livecode < >> use-livecode at lists.runrev.com>, wrote: >>> Hactoberfest is a month away. That's github's event that awards some swag >>> like tshirts and stickers in exchange for pull requests to open source >>> repos. Last year to get your swag you had to submit 4 PR's. >>> We've got a month, so maybe now would be a good time to develop a list of >>> LC repos that deserve our time, changes/additions/features we want to >>> implement, and get a bunch of people into the swing of contributing to >>> these LC projects. >>> We also need to help the people who have never done this help themselves. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sat Aug 31 20:16:22 2019 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 31 Aug 2019 19:16:22 -0500 Subject: Launch vs Set in widget In-Reply-To: <67ADC9ED-6B10-4B17-8403-F875C30088B3@pidigital.co.uk> References: <67ADC9ED-6B10-4B17-8403-F875C30088B3@pidigital.co.uk> Message-ID: <16cea2c3348.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Yes, I meant "launch url in widget" which says it opens a url in the widget, but that is what "set the URL of widget x" does too. I don't see any difference. I'm having a terrible time with both acceleratedRendering and the browser widget in LC 9.5. I can't fix acceleratedRendering but I think I'll try going back to the original mobileCreate method and see if that works better. On my Pixel the widget freezes and Android puts up its "not responding" error dialog after the user navigates around a few pages. It doesn't behave correctly when changing stacks and remains visible after the new stack opens, obscuring the card. It also freezes when the back history is exhausted. I was curious if setting the URL with its launch command would be different. I badly need to be able to respond to the backKey too, but apparently that's not possible. The widget eats it. As for acceleratedRendering, it's broken. I had to turn it off completely. I'm stuck with 9.5 because I have to build for 64-bit. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On August 31, 2019 3:58:43 PM Pi Digital via use-livecode wrote: > Launch url is for opening an appropriate app for the url (text file, > LiveCode stack, phone number etc) as associated by your OS. A phone number > might open your phone app on a mobile device. A text doc might open MS Word. > > Launch in widget is intended to open a webpage in the browser. Depending > what widget you send it to of course. > > Sean Cole > Pi Digital Prod Ltd > >> On 31 Aug 2019, at 21:35, J. Landman Gay via use-livecode >> wrote: >> >> What is the difference between "launch URL" and "set the URL" in a browser >> widget? >> >> -- >> 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 alex at tweedly.net Sat Aug 31 20:28:13 2019 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 1 Sep 2019 01:28:13 +0100 Subject: Is HTML5 really practical? In-Reply-To: <3CA73F18-E395-4FCC-8571-C01B16FF53F7@pidigital.co.uk> References: <3CA73F18-E395-4FCC-8571-C01B16FF53F7@pidigital.co.uk> Message-ID: <60ba0bdc-10d2-1648-2813-b6a0f4fd2461@tweedly.net> On 31/08/2019 14:52, Pi Digital via use-livecode wrote: > I absolutely agree with everything else Hermann states though. You > must set up your server to speed up download. But if you reload the > page manually you are effectively forcing it to ignore the cache and > download everything again. If you navigate away and comeback though it > does not need to redownload. Is there a way to force a reload of the bit you want (need) to reload, without reloading the engine ? Alex.