From hershelflc at gmail.com Fri Jul 1 16:24:45 2022 From: hershelflc at gmail.com (Hershel F) Date: Fri, 1 Jul 2022 16:24:45 -0400 Subject: sorting datagrids In-Reply-To: <240E44BA-75A1-4E14-8226-0C874FFFA8CD@iotecdigital.com> References: <510268AA-C4D4-444A-AE64-99F0307E9C25@gmail.com> <240E44BA-75A1-4E14-8226-0C874FFFA8CD@iotecdigital.com> Message-ID: this is more what i’m concerned. i’ll give it a shot and let you know. thanks. > On Jun 30, 2022, at 7:26 PM, Bob Sneidar via use-livecode wrote: > > > put the dgText of group "myDataGrid" into tText > set the itemDelimiter to tab > > repeat with i = 1 to the number of lines of tText > put item i of tText into tLine > sort items of tLine ascending > put tLine into line i of tText > end repeat > > set the dgText of group "myDataGrid" to tText From bobsneidar at iotecdigital.com Fri Jul 1 19:49:10 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 1 Jul 2022 23:49:10 +0000 Subject: Is LC encryption different for Mac than for Windows?? Message-ID: Hi all. As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! Bob S From bobsneidar at iotecdigital.com Fri Jul 1 19:56:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 1 Jul 2022 23:56:33 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: Hmmm... I think I see what is happening. I compared the encrypted string from the server to the string from the client after it received it via the socket connection. I am only getting the last part of the encrypted string! So it looks like the socket connections using with message is losing data somehow. Bob S > On Jul 1, 2022, at 16:49 , Bob Sneidar via use-livecode wrote: > > Hi all. > > As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. > > The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. > > The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! > > When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) > > How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! > > 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 Jul 1 20:08:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 00:08:33 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? Sent from my iPhone > On Jul 1, 2022, at 16:57, Bob Sneidar wrote: > > Hmmm... I think I see what is happening. I compared the encrypted string from the server to the string from the client after it received it via the socket connection. I am only getting the last part of the encrypted string! > > So it looks like the socket connections using with message is losing data somehow. > > Bob S > > >> On Jul 1, 2022, at 16:49 , Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. >> >> The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. >> >> The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! >> >> When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) >> >> How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! >> >> 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 Jul 1 20:55:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 00:55:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: That's supposed to be Binary Encoding > On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: > > Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? > > Sent from my iPhone > From bobsneidar at iotecdigital.com Fri Jul 1 21:05:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:05:28 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. Bob S > On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: > > That's supposed to be Binary Encoding > >> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >> >> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? >> >> Sent from my iPhone >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at pdslabs.net Fri Jul 1 21:10:52 2022 From: phil at pdslabs.net (Phil Davis) Date: Fri, 1 Jul 2022 18:10:52 -0700 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. Phil Davis On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: > Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. > > Bob S > > >> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: >> >> That's supposed to be Binary Encoding >> >>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >>> >>> Also when I was running it on my Mac, the client in the server were running on the same Macintosh. On the windows machine however Im going over the wire. Should I buy Ineri encoded or something? >>> >>> Sent from my iPhone >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From bobsneidar at iotecdigital.com Fri Jul 1 21:19:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:19:22 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: <4FD9D0C1-A732-4FC1-B162-596F0445DBF0@iotecdigital.com> I do. The server agent was written in LC and I am running it in a community version. Just to eliminate the possibility that things are different between Community 9.5 and Pro 9.6.8, I am DL'ing the latest (which I am running on the Mac). I'll try with that. Basically I encrypt and decrypt using aes256 and a key and salt value I store as constants in both the client and the server. I'm really stumped. This should work as advertised. Bob S > On Jul 1, 2022, at 18:10 , Phil Davis via use-livecode wrote: > > I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. > > Phil Davis From phil at pdslabs.net Fri Jul 1 21:23:28 2022 From: phil at pdslabs.net (Phil Davis) Date: Fri, 1 Jul 2022 18:23:28 -0700 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: I don't know about newer LC versions, but some older ones don't do "read from socket until EOF" correctly. Because of that, I added a data header containing the length of the data in bytes. On the receiving end, something like this happens: read from socket for 1 line put it into tLength read from socket for tLength put it into tData close socket I add error-checking of course. HTH - Phil On 7/1/22 6:10 PM, Phil Davis via use-livecode wrote: > I was about to suggest that - you beat me to it. My client/server apps > use base64 encode/decode as the final "envelope" for the data before > network transfer. But I have LC on both ends of the transfer, and you > may not. But ultimately it shouldn't matter. > > Phil Davis > > > On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: >> Okay so I base64Encoded the encrypted string before sending over the >> wire, and base64Decoded on the receiving end. Same thing coming back. >> I am still getting the error. It's not a problem with sending data >> over the wire. >> >> Bob S >> >> >>> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode >>> wrote: >>> >>> That's supposed to be Binary Encoding >>> >>>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode >>>> wrote: >>>> >>>> Also when I was running it on my Mac, the client in the server >>>> were running on the same Macintosh. On the windows machine however >>>> Im going over the wire. Should I buy Ineri encoded or something? >>>> >>>> Sent from my iPhone >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis (503) 307-4363 From bobsneidar at iotecdigital.com Fri Jul 1 21:27:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:27:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: OIC. Well I am using the non-blocking method using with message. I don't read from until. All the data should come through then send the message. It may be that there is some kind of limit on the length of the data, but that would suck. Also it doesn't explain why when the client and the server are both running on the Mac, it works flawlessly. A socket is a socket. Bob S > On Jul 1, 2022, at 18:23 , Phil Davis via use-livecode wrote: > > I don't know about newer LC versions, but some older ones don't do "read from socket until EOF" correctly. Because of that, I added a data header containing the length of the data in bytes. On the receiving end, something like this happens: > > read from socket for 1 line > put it into tLength > read from socket for tLength > put it into tData > close socket > > I add error-checking of course. > > HTH - > Phil > > > On 7/1/22 6:10 PM, Phil Davis via use-livecode wrote: >> I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. >> >> Phil Davis >> >> >> On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: >>> Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. >>> >>> Bob S >>> >>> >>>> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: >>>> >>>> That's supposed to be Binary Encoding >>>> >>>>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >>>>> >>>>> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? >>>>> >>>>> Sent from my iPhone >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Phil Davis > (503) 307-4363 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Sat Jul 2 20:18:46 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 3 Jul 2022 10:18:46 +1000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: Is socketTimeOut set high enough? Neville From ms1 at soas.ac.uk Sun Jul 3 09:26:24 2022 From: ms1 at soas.ac.uk (Muaath Salih) Date: Sun, 3 Jul 2022 14:26:24 +0100 Subject: No subject Message-ID: From bobsneidar at iotecdigital.com Sun Jul 3 18:02:14 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sun, 3 Jul 2022 22:02:14 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> Ill check later. Sent from my iPhone > On Jul 2, 2022, at 17:20, Neville Smythe via use-livecode wrote: > > Is socketTimeOut set high enough? > > > Neville > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Jul 4 11:08:50 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 4 Jul 2022 18:08:50 +0300 Subject: [ANN] Release 9.6.8 RC-3 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 RC-3. Getting the Release =================== You can find the release in your LiveCode account area or get it via the automatic updater. To find the 9.6.8 RC-3 test release in your LiveCode account, please scroll down to below the list of stable releases, to find your available test releases. Release Contents ================ LiveCode 9.6.8 RC-3 comes with 1 regression bugfix: - The standalone builder now ensures all executables in a macOS standalone only contain the requested architectures For the full list of all fixes, updates and enhancements please see the release notes: http://downloads.livecode.com/livecode/9_6_8/LiveCodeNotes-9_6_8_rc_3.pdf Known issues ============ - The Browser widget's native layer is not shown in some Linux distros with Cinnamon window manager. - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS yet. Required Software ================= To build iOS apps with LiveCode you must have the appropriate versions of Xcode as follows: - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS 12.1 SDK - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS 13.2 SDK - macOS 10.15.4: Xcode 12.4.x - LiveCode builds iOS apps using the iOS 14.4 SDK - macOS 11+ : Xcode 13.2.x - LiveCode builds iOS apps using the iOS 15.2 SDK There is a full list of working LiveCode/macOS/Xcode combinations here: https://livecode.com/faq Note: Whilst we endeavour to release updated versions of LiveCode supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly recommend disabling automatic update of Xcode or downloading the specific version of Xcode required directly from the Apple developer portal and installing it separately. Important: From the start of April 2022, Apple is only accepting apps built using iOS15.x SDKs. This means that, if you wish to submit apps to the AppStore you will have to be running at least macOS 11 in order to be able to install the necessary version of Xcode. To build macOS apps with an Apple architecture slice requires macOS High Sierra (10.13) or higher. Feedback ======== Please report any bugs encountered on our quality center at http://quality.livecode.com/ We have a forum available for discussing LiveCode at http://forums.livecode.com Have fun! The LiveCode Team -- From mkoob at rogers.com Mon Jul 4 12:06:54 2022 From: mkoob at rogers.com (Martin Koob) Date: Mon, 4 Jul 2022 12:06:54 -0400 Subject: {OT} Are there any ffmpeg "experts" on this list? In-Reply-To: References: Message-ID: <2B9CC490-0274-4F09-AB1E-921F14511B68@rogers.com> Hi Mark Yes mergAV can be used concatenate videos, resize them, layer them and then export them to a video file. I wrote an app that did this a while ago on LiveCode 6.7.3. I haven’t tried using mergAV on LC 9.x. It would be nice if there was a set of common commands that could be used to do video editing on either Mac or Windows, just like player object does with video playback. Probably not a high demand for that though to make it cost effective. Martin > On Jun 24, 2022, at 12:23 PM, Mark Waddingham via use-livecode wrote: > > FWIW, I *think* mergAV can do similar things on macOS* to the mediafoundation external on Windows - although the APIs, while similar, do require different code. From paul at researchware.com Tue Jul 5 17:20:29 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 5 Jul 2022 17:20:29 -0400 Subject: Images and arrays... Message-ID: I am drawing a blank: If I have the following code:                   export snapshot from rect tRect of player "mediaConvert" of stack "libHrAPI" to tImage as PNG                   put tImage into pRefArray[tRef] The actual image (not a reference, such as a long ID) is placed in the tRefArray[tRef] array element However, if I have a variable tImageID that contains a reference to an image such as image id 10328 of card id 10001 of stack "X" How do I get that actual Image stored in the array? put tImageID into pRefArray[tRef] -- results in the array element storing the long ID put (tImageID) into pRefArray[tRef] -- also results in the array element storing the long ID. I thought the () might for the long ID to be evaluated to an actual image From bobsneidar at iotecdigital.com Tue Jul 5 21:47:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 01:47:24 +0000 Subject: Images and arrays... In-Reply-To: References: Message-ID: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> Put the imageData? Sent from my iPhone > On Jul 5, 2022, at 18:40, Paul Dupuis via use-livecode wrote: > > I am drawing a blank: > > If I have the following code: > > export snapshot from rect tRect of player "mediaConvert" of stack "libHrAPI" to tImage as PNG > put tImage into pRefArray[tRef] > > The actual image (not a reference, such as a long ID) is placed in the tRefArray[tRef] array element > > However, if I have a variable tImageID that contains a reference to an image such as > > image id 10328 of card id 10001 of stack "X" > > How do I get that actual Image stored in the array? > > put tImageID into pRefArray[tRef] -- results in the array element storing the long ID > > put (tImageID) into pRefArray[tRef] -- also results in the array element storing the long ID. I thought the () might for the long ID to be evaluated to an actual 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 bobsneidar at iotecdigital.com Tue Jul 5 21:49:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 01:49:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> References: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> Message-ID: <3EF815F8-847D-4094-9938-8AA8DF171889@iotecdigital.com> So strange. I built in some logging, removed the base64 stuff, and now it works! Timing problem of some sort? Who knows. Sent from my iPhone > On Jul 3, 2022, at 15:03, Bob Sneidar via use-livecode wrote: > > Ill check later. > > Sent from my iPhone > >> On Jul 2, 2022, at 17:20, Neville Smythe via use-livecode wrote: >> >> Is socketTimeOut set high enough? >> >> >> Neville >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Jul 5 23:22:38 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 5 Jul 2022 23:22:38 -0400 Subject: Images and arrays... In-Reply-To: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> References: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> Message-ID: imagedata does not include alpha as odd as it sounds .... "the text of image" contains all of the data. :D On Tue, Jul 5, 2022 at 9:48 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Put the imageData? > > Sent from my iPhone > > > On Jul 5, 2022, at 18:40, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I am drawing a blank: > > > > If I have the following code: > > > > export snapshot from rect tRect of player > "mediaConvert" of stack "libHrAPI" to tImage as PNG > > put tImage into pRefArray[tRef] > > > > The actual image (not a reference, such as a long ID) is placed in the > tRefArray[tRef] array element > > > > However, if I have a variable tImageID that contains a reference to an > image such as > > > > image id 10328 of card id 10001 of stack "X" > > > > How do I get that actual Image stored in the array? > > > > put tImageID into pRefArray[tRef] -- results in the array element > storing the long ID > > > > put (tImageID) into pRefArray[tRef] -- also results in the array element > storing the long ID. I thought the () might for the long ID to be evaluated > to an actual 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 neville.smythe at optusnet.com.au Wed Jul 6 00:57:17 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 6 Jul 2022 14:57:17 +1000 Subject: Is LC encryption different for Mac than for Windows?? Message-ID: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> Bob Sneider wrote > So strange. I built in some logging, removed the base64 stuff, and now it > works! Timing problem of some sort? Who knows. That’s what I was inferring. I’d suggest you increase socketTimeOut to avoid the problem recurring (or reduce it if you want to test that timing was the problem!) It may well be that > A socket is a socket but performance ain’t performance Neville From bobsneidar at iotecdigital.com Wed Jul 6 11:15:17 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 15:15:17 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> References: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> Message-ID: <4521035E-856F-4C0D-AF6E-643C0E8D2B3B@iotecdigital.com> Thanks. I still have to test outside the network. If I have issues I will definitely check the socketTimeoutInterval. Currently it is 10000. I take it that is milliseconds. Bob S > On Jul 5, 2022, at 21:57 , Neville Smythe via use-livecode wrote: > > Bob Sneider wrote >> So strange. I built in some logging, removed the base64 stuff, and now it >> works! Timing problem of some sort? Who knows. > > That’s what I was inferring. I’d suggest you increase socketTimeOut to avoid the problem recurring (or reduce it if you want to test that timing was the problem!) > > It may well be that > >> A socket is a socket > > but performance ain’t performance > > Neville > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 8 08:03:55 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Fri, 8 Jul 2022 15:03:55 +0300 Subject: [[ ANN ]] Release 9.6.8 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 STABLE You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/livecode-9-6-8-stable-m1-and-onwards-apple-architecture-support/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From markclark at mac.com Fri Jul 8 13:21:55 2022 From: markclark at mac.com (Mark Clark) Date: Fri, 8 Jul 2022 12:21:55 -0500 Subject: MegaBundle whatnot Message-ID: I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? TIA, Mark (on digest mode) From ambassador at fourthworld.com Fri Jul 8 13:34:30 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jul 2022 10:34:30 -0700 Subject: Tree Widget: hilitedValue? Message-ID: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> I see the Tree widget supports a hilitedElement property, which is useful for managing the selection in the UI. Is there a one-liner for obtaining not the element path but the value? It wouldn't kill me to extract the arrayData and turn a hilitedElement path like: level1,level2,level3, ...into a proper array notation to obtain the value at: tArray["level1"]["level2"]["level3"] But it seems such a common need I'm guessing I'm overlooking a more direct way to do that. TIA - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Fri Jul 8 15:00:23 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 8 Jul 2022 21:00:23 +0200 Subject: MegaBundle whatnot In-Reply-To: References: Message-ID: Mark, that seems to be a problem with Indy and Business licenses. I can reproduce it here with an Indy license. Seems, the Enh.Pack needs to be modified a little bit.;) As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. https://quality.livecode.com/show_bug.cgi?id=23799 Maybe you want to add yourself to the CC list. Regards, Matthias > Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode : > > I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? > > Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? > > TIA, > Mark (on digest mode) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 8 19:14:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 8 Jul 2022 23:14:40 +0000 Subject: Encrypted Data over Sockets Message-ID: Hi all. I'm running into a curious thing. I am sending encrypted data over a socket connection. When I send the data, I am using blocking mode, where the commands look like this: if tCurrentConnectionA ["ssl"] is true then put slyEncrypt(tSocketData) into tSocketData end if close socket tSocket -- in case it was left open open socket to tSocket write tSocketData & linefeed to socket tSocket read from socket tSocket until linefeed put it into tReceivedData if the last char of tReceivedData is linefeed then \ delete last char of tReceivedData close socket tSocket if tCurrentConnectionA ["ssl"] is true then put slyDecrypt(tReceivedData) into tReceivedData end if Now just to belay questions that might be asked, I know that the read from socket is working because I get a salted hash back, so the server is doing what it is supposed to on the other end. However when I go to decrypt the hash I am SOMETIMES getting the dreaded Wrong final block length as an error. Curiously, sometimes it works! My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? I need a delimiter. Read from socket until eof fails with a timeout. That is intensly unfortunate by the way, it ought to work. Bob S From ahsoftware at sonic.net Fri Jul 8 19:35:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 16:35:41 -0700 Subject: Encrypted Data over Sockets In-Reply-To: References: Message-ID: On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: > My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? Not a valid question. If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Jul 8 19:49:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 8 Jul 2022 23:49:22 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: Message-ID: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. Bob S > On Jul 8, 2022, at 16:35 , Mark Wieder via use-livecode wrote: > > On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: > >> My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? > > Not a valid question. > > If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. > > -- > 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 alex at tweedly.net Fri Jul 8 20:47:07 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 9 Jul 2022 01:47:07 +0100 Subject: Encrypted Data over Sockets In-Reply-To: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Message-ID: <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> But, an encoded array is STILL binary data. So any issues with "read until linefeed" will still exist. Try sending a header with number of bytes, followed by the bytes. If you really wanted, you could do:    write  (the number of bytes in tSocketData) & linefeed to socket tSocket    write tSocketData & linefeed to socket tSocket and then when you read,    read from socket tSocket until linefeed    put it into tNumBytes    read from socket tSocket until linefeed    put it into tData and compare tNumbytes with the number of bytes in tData Or, just do    read tnumbytes form socket tSocket Alex. On 09/07/2022 00:49, Bob Sneidar via use-livecode wrote: > Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. > > Bob S > > >> On Jul 8, 2022, at 16:35 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: >> >>> My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? >> Not a valid question. >> >> If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. >> >> -- >> 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 Fri Jul 8 20:48:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 17:48:41 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Message-ID: <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: > Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. Not sure what "looks like" an encoded array should mean. When you encode an array you get binary data. You can't treat it like text. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Fri Jul 8 20:58:03 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 17:58:03 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> Message-ID: On 7/8/22 17:47, Alex Tweedly via use-livecode wrote: > But, an encoded array is STILL binary data. So any issues with "read > until linefeed" will still exist. > > Try sending a header with number of bytes, followed by the bytes. Yeah. What he said. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Jul 8 22:14:42 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:14:42 +0000 Subject: Encrypted Data over Sockets In-Reply-To: <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? Bob S > On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: > > On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. > > Not sure what "looks like" an encoded array should mean. > When you encode an array you get binary data. You can't treat it like text. > > -- > 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 Fri Jul 8 22:47:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:47:40 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> Okay apparently base64Encode/Decode is my friend. I have this working now without encryption. I will re-enable encryption and see if that works. Bob S > On Jul 8, 2022, at 19:14 , Bob Sneidar via use-livecode wrote: > > It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. > > I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? > > Bob S > > >> On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >>> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. >> >> Not sure what "looks like" an encoded array should mean. >> When you encode an array you get binary data. You can't treat it like text. >> >> -- >> 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 bobsneidar at iotecdigital.com Fri Jul 8 22:53:58 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:53:58 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: <0FE598F2-3CF3-4D4E-8300-F608B3D8897E@iotecdigital.com> Hi all. Thanks for putting up with me. I finally got it all to work using base64Encode/Decode on the encrypted string before sending it with a delimiter appended. Same thing coming back. Thank for all your patience. I almost became a patient myself. Bob S > On Jul 8, 2022, at 19:14 , Bob Sneidar via use-livecode wrote: > > It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. > > I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? > > Bob S > > >> On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >>> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. >> >> Not sure what "looks like" an encoded array should mean. >> When you encode an array you get binary data. You can't treat it like text. >> >> -- >> 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 matthias_livecode_150811 at m-r-d.de Sat Jul 9 03:39:50 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 9 Jul 2022 09:39:50 +0200 Subject: MegaBundle whatnot In-Reply-To: References: Message-ID: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Mark, What I forgot. I assume you have a current subscription, right? So why do you not try a newer LC release; one of the new editions without Indy and business in the name? Anything higher than 9.63 should do. Regards Matthias Von meinem iPhone gesendet > Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: > > Mark, > > that seems to be a problem with Indy and Business licenses. I can reproduce it here with an Indy license. Seems, the Enh.Pack needs to be modified a little bit.;) > > As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. > > https://quality.livecode.com/show_bug.cgi?id=23799 > > Maybe you want to add yourself to the CC list. > > Regards, > Matthias > > >> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode : >> >> I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? >> >> Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? >> >> TIA, >> Mark (on digest mode) >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From kaveh at rivervalleytechnologies.com Sat Jul 9 07:41:26 2022 From: kaveh at rivervalleytechnologies.com (Kaveh) Date: Sat, 9 Jul 2022 12:41:26 +0100 Subject: MegaBundle whatnot In-Reply-To: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Message-ID: Why does LiveCode make the licenses so complicated? I try to understand from time to time so I can repurchase, then give up... On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Mark, > What I forgot. > > I assume you have a current subscription, right? > So why do you not try a newer LC release; one of the new editions without > Indy and business in the name? Anything higher than 9.63 should do. > > Regards > Matthias > > Von meinem iPhone gesendet > > > Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: > > > > Mark, > > > > that seems to be a problem with Indy and Business licenses. I can > reproduce it here with an Indy license. Seems, the Enh.Pack needs to be > modified a little bit.;) > > > > As you are on digest mode and i do not know when you read this, I've > filed a bug already to speed it up a little bit. > > > > https://quality.livecode.com/show_bug.cgi?id=23799 > > > > Maybe you want to add yourself to the CC list. > > > > Regards, > > Matthias > > > > > >> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> I went ahead and purchased the megabundle, mostly for the LC > Enhancement piece. Got that download and clicked the install widgets and > the widgets all show “unlicensed.” Hmm, what? > >> > >> Tried to re-license and for some reason I only see my business license > as an option (also have the old commercial license whatever that maps to > now). So, np figure it out later, selected business license and LC starts > but the enhancements still show unlicensed. Is there something manual I’m > missing? > >> > >> TIA, > >> Mark (on digest mode) > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan PhD Director River Valley Technologies ● Twitter ● LinkedIn ● ORCID *Accelerating the Communication of Research* From jbv at souslelogo.com Sat Jul 9 07:43:03 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sat, 09 Jul 2022 07:43:03 -0400 Subject: LC 9.6.8 and UTF-8 on MacOS 10.15 Message-ID: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> Hi list, I have a serie of text files in UTF-8 format for which I need to do some processing in LC, and then save to a single text file also in UTF-8. I am using the following code : open file tpath for UTF8 read read from file tpath until EOF close file tpath1 --put it into tfile put textdecode(it,"UTF-8") into tfile -- processing open file tpath2 for UTF8 write write liste_credits to file tpath2 close file tpath2 If I use "put it into tfile" instead of "put textDecode...", the text content is full of typical gibberish (such as "" instead of ""). I thought the latest LC versions could process UTF-8 natively. So why is "textdecode" necessary to obtain special characters in their true form ? Thank you in advance. jbv From sean at pidigital.co.uk Sat Jul 9 08:50:49 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Sat, 9 Jul 2022 13:50:49 +0100 Subject: LC 9.6.8 and UTF-8 on MacOS 10.15 In-Reply-To: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> References: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> Message-ID: <806C3DD1-5EAA-48F5-B8BD-4FAE343D2609@pidigital.co.uk> What result do you get from: put it contains “æ” Sean Cole Pi > On 9 Jul 2022, at 12:43, jbv via use-livecode wrote: > > æ From ahsoftware at sonic.net Sat Jul 9 11:37:21 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 9 Jul 2022 08:37:21 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> Message-ID: <62687332-7e51-8e02-2709-98c18073ea4f@sonic.net> On 7/8/22 19:47, Bob Sneidar via use-livecode wrote: > Okay apparently base64Encode/Decode is my friend. I have this working now without encryption. I will re-enable encryption and see if that works. Base64 encoding will do the trick but at the expense of making your data strings twice as long as the binary equivalents. -- Mark Wieder ahsoftware at gmail.com From dan at clearvisiontech.com Sat Jul 9 15:07:44 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Sat, 9 Jul 2022 19:07:44 +0000 Subject: Signing and Uploading apps to the Mac App Store HELL! Message-ID: <6AECE726-DF3C-4B4B-BE69-5757F25B2C2C@clearvisiontech.com> Greetings! I am pulling out my hair in getting my app prepared for the MacApp Store (and for downloading from my website). I can't take it anymore!! Is there someone here I can pay to either do this for me, or walk me through this hideous process? -Dan From jacque at hyperactivesw.com Sat Jul 9 16:17:23 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 9 Jul 2022 15:17:23 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> Message-ID: <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: > I see the Tree widget supports a hilitedElement property, which is useful for managing the > selection in the UI. > > Is there a one-liner for obtaining not the element path but the value? I'm using an older version, but here the hilitedElement includes the values of each element in the path. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Jul 9 17:07:01 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 9 Jul 2022 16:07:01 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> Message-ID: <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> On 7/9/22 3:17 PM, J. Landman Gay via use-livecode wrote: > On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: >> I see the Tree widget supports a hilitedElement property, which is useful for managing the >> selection in the UI. >> >> Is there a one-liner for obtaining not the element path but the value? > > I'm using an older version, but here the hilitedElement includes the values of each element in > the path. > I misunderstood, you don't mean just the names of the elements. The value shows up as part of the tree unless you turn off "show values". I think you'll have to parse the array to actually get the values in a leaf. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From markclark at mac.com Sat Jul 9 19:25:10 2022 From: markclark at mac.com (Mark Clark) Date: Sat, 9 Jul 2022 18:25:10 -0500 Subject: use-livecode Digest, Vol 226, Issue 8 In-Reply-To: References: Message-ID: <9AC9115B-E414-471E-8729-107880559181@mac.com> Hey, saw your post this am and much appreciated. I sent a request to support as well. Thanks for the assist and confirmation! Mark It seems that each time I sign up for the bug tracker and or forums my main livecode.com password gets mangled. Been happening for years and if I remember I’ll ask for support help there. Likely something to do with keychain being confused about similar url’s. > On Jul 9, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. > > https://quality.livecode.com/show_bug.cgi?id=23799 > > > Maybe you want to add yourself to the CC list. > > Regards, > Matthias From matthias_livecode_150811 at m-r-d.de Sat Jul 9 19:34:49 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 10 Jul 2022 01:34:49 +0200 Subject: use-livecode Digest, Vol 226, Issue 8 In-Reply-To: <9AC9115B-E414-471E-8729-107880559181@mac.com> References: <9AC9115B-E414-471E-8729-107880559181@mac.com> Message-ID: <1F9D5EFE-55D7-4B15-93B8-4DF55115FF7B@m-r-d.de> > Am 10.07.2022 um 01:25 schrieb Mark Clark via use-livecode : > > Hey, saw your post this am and much appreciated. I sent a request to support as well. > > Thanks for the assist and confirmation! > > Mark > > It seems that each time I sign up for the bug tracker and or forums my main livecode.com password gets mangled. Been happening for years and if I remember I’ll ask for support help there. Likely something to do with keychain being confused about similar url’s. > The easiest way to see if it is really a keychain thing is, search for livecode in KeyChain.app and delete all Livecode entries and then reset your password for Livecode.com account and the QualityCenter. Regards, Matthias >> On Jul 9, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: >> >> As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. >> >> https://quality.livecode.com/show_bug.cgi?id=23799 > >> >> Maybe you want to add yourself to the CC list. >> >> 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 brian at milby7.com Sat Jul 9 20:11:29 2022 From: brian at milby7.com (Brian Milby) Date: Sat, 9 Jul 2022 20:11:29 -0400 Subject: Tree Widget: hilitedValue? In-Reply-To: <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> Message-ID: I don't think there is an existing one liner, but it can be done a couple ways. Here is a recursive function defined in the PI code for Custom Props: on fetchArrayDataOnPath pPath, pArray, @rData local tKey put item 1 of pPath into tKey if the number of items in pPath is 1 then if tKey is not among the keys of pArray then return "no such key" else put pArray[tKey] into rData return empty end if else delete item 1 of pPath fetchArrayDataOnPath pPath, pArray[tKey], rData end if end fetchArrayDataOnPath There are other handlers in that script that could be useful as well (add/set/delete). You could also turn the path into an array (but lose the error checking above): function getValue pArray, pPath split pPath by comma return pArray[pPath] end getValue Thanks, Brian On Sat, Jul 9, 2022 at 5:08 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 7/9/22 3:17 PM, J. Landman Gay via use-livecode wrote: > > On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: > >> I see the Tree widget supports a hilitedElement property, which is > useful for managing the > >> selection in the UI. > >> > >> Is there a one-liner for obtaining not the element path but the value? > > > > I'm using an older version, but here the hilitedElement includes the > values of each element in > > the path. > > > > I misunderstood, you don't mean just the names of the elements. The value > shows up as part of > the tree unless you turn off "show values". I think you'll have to parse > the array to actually > get the values in a leaf. > > -- > 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 paul at researchware.com Sun Jul 10 12:58:16 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 10 Jul 2022 12:58:16 -0400 Subject: macOS Ventura (13.x.x)... Message-ID: Is anyone out there in Livecode land running a developer beta of macOS Ventura (13.x.x)? If so, I am hoping you can perform a quick test: systemVersion() returns 10.16 for macOS Big Sur or Monterey under Livecode 9.6.7 and earlier (in the 9.6.x versions). The systemVersion() bug was just fixed in LC 9.6.8. I'd like to ask if someone on Ventura (13.x.x) can run LC 9.6.7 or any 9.6.x less than 9.6.8) and confirm that systemVersion() also reports 10.16 for macOS Ventura - i.e. that the systemVersion() bug behaves the same way under Ventura for recent versions of LC less than LC 9.6.8. Thank you to anyone that can do this test in advance, Paul Dupuis Researchware From colinholgate at gmail.com Sun Jul 10 13:26:31 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 10 Jul 2022 11:26:31 -0600 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. Opening a stack made in 9.6.3 with Monterey, does show 10.16.0 when run in 9.6.3 in Ventura. > On Jul 10, 2022, at 10:58 AM, Paul Dupuis via use-livecode wrote: > > Is anyone out there in Livecode land running a developer beta of macOS Ventura (13.x.x)? > > If so, I am hoping you can perform a quick test: > > systemVersion() returns 10.16 for macOS Big Sur or Monterey under Livecode 9.6.7 and earlier (in the 9.6.x versions). The systemVersion() bug was just fixed in LC 9.6.8. > > I'd like to ask if someone on Ventura (13.x.x) can run LC 9.6.7 or any 9.6.x less than 9.6.8) and confirm that systemVersion() also reports 10.16 for macOS Ventura - i.e. that the systemVersion() bug behaves the same way under Ventura for recent versions of LC less than LC 9.6.8. > > Thank you to anyone that can do this test in advance, > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Sun Jul 10 14:29:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 10 Jul 2022 14:29:08 -0400 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: <9feab550-465d-f0f3-9754-cf7ba7c96259@researchware.com> On 7/10/2022 1:26 PM, Colin Holgate via use-livecode wrote: > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. > > Opening a stack made in 9.6.3 with Monterey, does show 10.16.0 when run in 9.6.3 in Ventura. > > Thank you. From ambassador at fourthworld.com Sun Jul 10 16:33:15 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 10 Jul 2022 13:33:15 -0700 Subject: Tree Widget: hilitedValue? In-Reply-To: References: Message-ID: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> Brian Milby wrote: > You could also turn the path into an array (but lose the error > checking above): > > function getValue pArray, pPath > split pPath by comma > return pArray[pPath] > end getValue Thanks, Brian. I keep forgetting we can use an array as an element specifier. Has that been around the whole time, or was it added in recent years? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Sun Jul 10 16:45:35 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Jul 2022 15:45:35 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> Message-ID: On 7/9/22 7:11 PM, Brian Milby via use-livecode wrote: > function getValue pArray, pPath > split pPath by comma > return pArray[pPath] > end getValue I keep forgetting we can do that. It's cool, but I don't understand how it works. Splitting the path by comma produces a numbered array, and yet the function appears to ignore the numerical keys and return only the element values. How come? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Jul 10 16:49:23 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Jul 2022 15:49:23 -0500 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. Sounds like the OSS community has some work to do, if there is anyone with the skills still there. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brian at milby7.com Sun Jul 10 17:24:06 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 10 Jul 2022 17:24:06 -0400 Subject: Tree Widget: hilitedValue? In-Reply-To: References: Message-ID: <6ED6C57B-246A-45EB-8128-69A655C9E215@milby7.com> If pPath[1] = “a” and pPath[2] = “b” Then pArray[pPath] is the same as saying pArray[“a”][“b”] I’m not sure when it was added. It is relatively recent (7 or 8 I think, but not sure) Thanks, Brian Sent from my iPhone > On Jul 10, 2022, at 4:46 PM, J. Landman Gay via use-livecode wrote: > > On 7/9/22 7:11 PM, Brian Milby via use-livecode wrote: >> function getValue pArray, pPath >> split pPath by comma >> return pArray[pPath] >> end getValue > > I keep forgetting we can do that. It's cool, but I don't understand how it works. Splitting the path by comma produces a numbered array, and yet the function appears to ignore the numerical keys and return only the element values. > > How come? > > -- > 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 paulmcclernan at gmail.com Mon Jul 11 02:45:01 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Mon, 11 Jul 2022 02:45:01 -0400 Subject: macOS Ventura (13.x.x)... In-Reply-To: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: The OSS "community" already had TONs of work to do. Apparently a lot of other software is crashing with macOS Ventura as well. I wonder why? Time to install Ventura and find out I guess. Every year this former mac fan-boy inches closer to becoming a Linux regular. On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode wrote: > > On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. > > Sounds like the OSS community has some work to do, if there is anyone with the skills still there. > > -- > 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 richmondmathewson at gmail.com Mon Jul 11 02:53:03 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 11 Jul 2022 08:53:03 +0200 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: Well there go my plans for early adoption. I do feel that the 'new OS a year' model means that ALL the versions are unfinished. I could say the same about LiveCode versions. Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the niggles relating to the elevator theory of human evolution. On Mon, 11 Jul 2022, 08:46 Paul McClernan via use-livecode, < use-livecode at lists.runrev.com> wrote: > The OSS "community" already had TONs of work to do. > > Apparently a lot of other software is crashing with macOS Ventura as well. > I wonder why? Time to install Ventura and find out I guess. > > Every year this former mac fan-boy inches closer to becoming a Linux > regular. > > > On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode > wrote: > > > > On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > > > With 9.6.3 Community version, showing the message box, or the script > window of a button, crashes LiveCode right away. > > > > Sounds like the OSS community has some work to do, if there is anyone > with the skills still there. > > > > -- > > 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 heather at livecode.com Mon Jul 11 04:27:50 2022 From: heather at livecode.com (Heather Laine) Date: Mon, 11 Jul 2022 09:27:50 +0100 Subject: MegaBundle whatnot In-Reply-To: References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Message-ID: <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Kaveh and Co, We have actually simplified the licensing in the move to Single Edition, which is what is causing the confusion here. There is no such thing as Indy or Business anymore. It's all just LiveCode. You pick the platforms you want and off you go... However the new Enhancements Bundle widgets post-date Indy/Business and hence do not recognise it. The solution being simply to run the latest version. 9.6.8 or 10 dp 4 will be just fine. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 9 Jul 2022, at 12:41, Kaveh via use-livecode wrote: > > Why does LiveCode make the licenses so complicated? I try to understand > from time to time so I can repurchase, then give up... > > On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Mark, >> What I forgot. >> >> I assume you have a current subscription, right? >> So why do you not try a newer LC release; one of the new editions without >> Indy and business in the name? Anything higher than 9.63 should do. >> >> Regards >> Matthias >> >> Von meinem iPhone gesendet >> >>> Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: >>> >>> Mark, >>> >>> that seems to be a problem with Indy and Business licenses. I can >> reproduce it here with an Indy license. Seems, the Enh.Pack needs to be >> modified a little bit.;) >>> >>> As you are on digest mode and i do not know when you read this, I've >> filed a bug already to speed it up a little bit. >>> >>> https://quality.livecode.com/show_bug.cgi?id=23799 >>> >>> Maybe you want to add yourself to the CC list. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < >> use-livecode at lists.runrev.com>: >>>> >>>> I went ahead and purchased the megabundle, mostly for the LC >> Enhancement piece. Got that download and clicked the install widgets and >> the widgets all show “unlicensed.” Hmm, what? >>>> >>>> Tried to re-license and for some reason I only see my business license >> as an option (also have the old commercial license whatever that maps to >> now). So, np figure it out later, selected business license and LC starts >> but the enhancements still show unlicensed. Is there something manual I’m >> missing? >>>> >>>> TIA, >>>> Mark (on digest mode) >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Kaveh Bazargan PhD > Director > River Valley Technologies ● Twitter > ● LinkedIn > ● ORCID > > *Accelerating the Communication of Research* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Mon Jul 11 07:35:07 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 11 Jul 2022 20:35:07 +0900 Subject: What is the best way to trigger an action at a certain time? Message-ID: Dear all, I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? Any pointers appreciated! Tim Selander Tokyo, Japan From tore.nilsen at me.com Mon Jul 11 07:43:45 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Mon, 11 Jul 2022 13:43:45 +0200 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: Message-ID: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> For this I would use a recursive approach with «send in time» something like this: on openStack checkTime end openStack on checkTime ## Do your routines of checking time, performing the required action etc. send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you end checkTime Best regards Tore Nilsen > 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : > > Dear all, > > I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. > > In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? > > Any pointers appreciated! > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Mon Jul 11 07:47:33 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 11 Jul 2022 20:47:33 +0900 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: Tore, Interesting! 'send in time' is a new one for me. Thanks! Tim On 2022.07.11 20:43, Tore Nilsen via use-livecode wrote: > For this I would use a recursive approach with «send in time» something like this: > > on openStack > checkTime > end openStack > > on checkTime > ## Do your routines of checking time, performing the required action etc. > send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you > end checkTime > > Best regards > Tore Nilsen > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : >> >> Dear all, >> >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? >> >> Any pointers appreciated! >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Mon Jul 11 08:22:20 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 11 Jul 2022 06:22:20 -0600 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: <8E31A85E-2C32-45EB-BFAB-62C716D9E6AC@gmail.com> In general, Ventura is going well. > On Jul 11, 2022, at 12:53 AM, Richmond Mathewson via use-livecode wrote: > > Well there go my plans for early adoption. > > I do feel that the 'new OS a year' model means that ALL the versions are > unfinished. > > I could say the same about LiveCode versions. > > Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the > niggles relating to the elevator theory of human evolution. > > On Mon, 11 Jul 2022, 08:46 Paul McClernan via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> The OSS "community" already had TONs of work to do. >> >> Apparently a lot of other software is crashing with macOS Ventura as well. >> I wonder why? Time to install Ventura and find out I guess. >> >> Every year this former mac fan-boy inches closer to becoming a Linux >> regular. >> >> >> On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode >> wrote: >>> >>> On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: >>>> With 9.6.3 Community version, showing the message box, or the script >> window of a button, crashes LiveCode right away. >>> >>> Sounds like the OSS community has some work to do, if there is anyone >> with the skills still there. >>> >>> -- >>> 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 MikeKerner at roadrunner.com Mon Jul 11 09:14:08 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 11 Jul 2022 09:14:08 -0400 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: I've got a library for adding CRON functionality, if you want something more elaborate. https://github.com/macMikey/mikeys-cron-library On Mon, Jul 11, 2022 at 7:48 AM Tim Selander via use-livecode < use-livecode at lists.runrev.com> wrote: > Tore, > > Interesting! 'send in time' is a new one for me. > Thanks! > > Tim > > On 2022.07.11 20:43, Tore Nilsen via use-livecode wrote: > > For this I would use a recursive approach with «send in time» something > like this: > > > > on openStack > > checkTime > > end openStack > > > > on checkTime > > ## Do your routines of checking time, performing the required action > etc. > > send checkTime to me in 300 seconds. ## you set the interval to > whatever is best for you > > end checkTime > > > > Best regards > > Tore Nilsen > > > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Dear all, > >> > >> I want to have an LC app running on a computer doing nothing but > watching the time. At predetermined times, I then want it to run a command. > A call to an API on a website. > >> > >> In the old HC days, I remember using "on idle" to watch for a set time. > But even then, using "on idle" was less than ideal. CPU hog. What is the > preferred/LC way to have an app trigger a command at a specific time of day? > >> > >> Any pointers appreciated! > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 mark at livecode.com Mon Jul 11 09:25:36 2022 From: mark at livecode.com (Mark Waddingham) Date: Mon, 11 Jul 2022 14:25:36 +0100 Subject: Tree Widget: hilitedValue? In-Reply-To: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> References: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> Message-ID: <1d540e298547e449e91ef40f8a6d916a@livecode.com> On 2022-07-10 21:33, Richard Gaskin via use-livecode wrote: > Brian Milby wrote: > >> You could also turn the path into an array (but lose the error >> checking above): >> >> function getValue pArray, pPath >> split pPath by comma >> return pArray[pPath] >> end getValue > > Thanks, Brian. I keep forgetting we can use an array as an element > specifier. > > Has that been around the whole time, or was it added in recent years? I added it before 6.0 - probably in 4.5 or 5. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Mon Jul 11 11:27:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 11 Jul 2022 15:27:09 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> Slight improvement: local lInterval constant cInterval = 300 on openStack put cInterval into lInterval checkTime end openStack on checkTime -- your code send checkTime to me in lInterval seconds end checkTime setProp interval, pInterval if pInterval is empty then ask "Enter a time interval in seconds:" as sheet if the result is not "Cancel" and it is an integer and it >0 then \ put it into lInterval else put pInterval into lInterval end if end interval Bob S > On Jul 11, 2022, at 04:43 , Tore Nilsen via use-livecode wrote: > > For this I would use a recursive approach with «send in time» something like this: > > on openStack > checkTime > end openStack > > on checkTime > ## Do your routines of checking time, performing the required action etc. > send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you > end checkTime > > Best regards > Tore Nilsen > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : >> >> Dear all, >> >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? >> >> Any pointers appreciated! >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Jul 11 11:31:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 11 Jul 2022 15:31:26 +0000 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Like how did our stomaches evolve without a circulatory system, and without a circulatory system, how did we develop stomaches? Bob S > On Jul 10, 2022, at 23:53 , Richmond Mathewson via use-livecode wrote: > > Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the > niggles relating to the elevator theory of human evolution. From richmondmathewson at gmail.com Tue Jul 12 06:28:04 2022 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 12 Jul 2022 13:28:04 +0300 Subject: macOS Ventura (13.x.x)... In-Reply-To: <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Message-ID: That is a complete misunderstanding of the elevator theory of evolution: this was a theory propagated by some of the people who misread Darwin (I don't mean Hobbesian individualists like Huxley and Dawkins) to say that evolution is a linear and ever-upwards process. On 11.07.22 18:31, Bob Sneidar via use-livecode wrote: > Like how did our stomaches evolve without a circulatory system, and without a circulatory system, how did we develop stomaches? > > Bob S > > >> On Jul 10, 2022, at 23:53 , Richmond Mathewson via use-livecode wrote: >> >> Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the >> niggles relating to the elevator theory of human evolution. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 12 08:33:31 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 12 Jul 2022 08:33:31 -0400 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> Message-ID: I would suggest sending the "checkTime" message at the top of the handler in case something happens in --your code On Mon, Jul 11, 2022 at 11:28 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Slight improvement: > > local lInterval > constant cInterval = 300 > > on openStack > put cInterval into lInterval > checkTime > end openStack > > on checkTime > -- your code > send checkTime to me in lInterval seconds > end checkTime > > setProp interval, pInterval > if pInterval is empty then > ask "Enter a time interval in seconds:" as sheet > if the result is not "Cancel" and it is an integer and it >0 then \ > put it into lInterval > else > put pInterval into lInterval > end if > end interval > > Bob S > > > > On Jul 11, 2022, at 04:43 , Tore Nilsen via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > For this I would use a recursive approach with «send in time» something > like this: > > > > on openStack > > checkTime > > end openStack > > > > on checkTime > > ## Do your routines of checking time, performing the required action > etc. > > send checkTime to me in 300 seconds. ## you set the interval to > whatever is best for you > > end checkTime > > > > Best regards > > Tore Nilsen > > > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Dear all, > >> > >> I want to have an LC app running on a computer doing nothing but > watching the time. At predetermined times, I then want it to run a command. > A call to an API on a website. > >> > >> In the old HC days, I remember using "on idle" to watch for a set time. > But even then, using "on idle" was less than ideal. CPU hog. What is the > preferred/LC way to have an app trigger a command at a specific time of day? > >> > >> Any pointers appreciated! > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 benr_mc at cogapp.com Tue Jul 12 10:48:04 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 12 Jul 2022 15:48:04 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: Message-ID: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Hi Tim, On 11/07/2022 12:35, Tim Selander via use-livecode wrote: > I want to have an LC app running on a computer doing nothing but watching the > time. At predetermined times, I then want it to run a command. A call to an > API on a website. My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. Ben From bobsneidar at iotecdigital.com Tue Jul 12 10:53:16 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 14:53:16 +0000 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Message-ID: <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> Ah. I stand corrected. Of course, nothing in nature is linear. And I still need to figure out how a stomache would have done us any good withour a circulatory system to get the food to the cells, or lungs to get oxygen to everything for that matter. It seems if you think about it that no vital organ would have provided any advantage without all the other organs being fully developed. Begs some questions, eh? Bob S > On Jul 12, 2022, at 03:28 , Richmond via use-livecode wrote: > > That is a complete misunderstanding of the elevator theory of evolution: this was a theory propagated by some > of the people who misread Darwin (I don't mean Hobbesian individualists like Huxley and Dawkins) to say that > evolution is a linear and ever-upwards process. From bobsneidar at iotecdigital.com Tue Jul 12 10:56:03 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 14:56:03 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: It seems to me that if you have an open socket to listen for commands, you could have the chron or windows scheduler send those commands to your LC app. Ben, some syntax would be helpful. Bob S > On Jul 12, 2022, at 07:48 , Ben Rubinstein via use-livecode wrote: > > Hi Tim, > > On 11/07/2022 12:35, Tim Selander via use-livecode wrote: >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. > > My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. > > I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. > > Ben From chipsm at themartinz.com Tue Jul 12 11:09:51 2022 From: chipsm at themartinz.com (chipsm themartinz.com) Date: Tue, 12 Jul 2022 15:09:51 +0000 Subject: MegaBundle whatnot In-Reply-To: <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Message-ID: What effect does this do to my account? I have a lifetime guaranteed price account and I don’t know what happens to my account. Sincerely, Clarence P. Martin chipsm at themartinz.com 626 7874442 From: use-livecode on behalf of Heather Laine via use-livecode Date: Monday, July 11, 2022 at 1:29 AM To: How to use LiveCode Cc: Heather Laine Subject: Re: MegaBundle whatnot Kaveh and Co, We have actually simplified the licensing in the move to Single Edition, which is what is causing the confusion here. There is no such thing as Indy or Business anymore. It's all just LiveCode. You pick the platforms you want and off you go... However the new Enhancements Bundle widgets post-date Indy/Business and hence do not recognise it. The solution being simply to run the latest version. 9.6.8 or 10 dp 4 will be just fine. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 9 Jul 2022, at 12:41, Kaveh via use-livecode wrote: > > Why does LiveCode make the licenses so complicated? I try to understand > from time to time so I can repurchase, then give up... > > On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Mark, >> What I forgot. >> >> I assume you have a current subscription, right? >> So why do you not try a newer LC release; one of the new editions without >> Indy and business in the name? Anything higher than 9.63 should do. >> >> Regards >> Matthias >> >> Von meinem iPhone gesendet >> >>> Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: >>> >>> Mark, >>> >>> that seems to be a problem with Indy and Business licenses. I can >> reproduce it here with an Indy license. Seems, the Enh.Pack needs to be >> modified a little bit.;) >>> >>> As you are on digest mode and i do not know when you read this, I've >> filed a bug already to speed it up a little bit. >>> >>> https://quality.livecode.com/show_bug.cgi?id=23799 >>> >>> Maybe you want to add yourself to the CC list. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < >> use-livecode at lists.runrev.com>: >>>> >>>> I went ahead and purchased the megabundle, mostly for the LC >> Enhancement piece. Got that download and clicked the install widgets and >> the widgets all show “unlicensed.” Hmm, what? >>>> >>>> Tried to re-license and for some reason I only see my business license >> as an option (also have the old commercial license whatever that maps to >> now). So, np figure it out later, selected business license and LC starts >> but the enhancements still show unlicensed. Is there something manual I’m >> missing? >>>> >>>> TIA, >>>> Mark (on digest mode) >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Kaveh Bazargan PhD > Director > River Valley Technologies ● Twitter > ● LinkedIn > ● ORCID > > *Accelerating the Communication of Research* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 12 11:45:14 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 12 Jul 2022 17:45:14 +0200 Subject: MegaBundle whatnot In-Reply-To: References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Message-ID: <555F38B1-8184-4F62-B1D7-296B4262AF89@m-r-d.de> Livecode Ltd. sent out an email last year to all license holders with information how this change would affect their license. If i recall it correctly then subscriptions with the "old" price model will keep this price also for renewings as long as the subscription does not completely expire or is changed. I would suggest to contact support at livecode.com to get exact information about this. Regards, Matthias > Am 12.07.2022 um 17:09 schrieb chipsm themartinz.com via use-livecode >: > > What effect does this do to my account? > I have a lifetime guaranteed price account and I don’t know what happens to my account. From benr_mc at cogapp.com Tue Jul 12 16:15:17 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 12 Jul 2022 21:15:17 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: I think I may not have been very clear. This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). I usually create a .bat file (on Windows) or .sh file (on Mac/Linux) to run the LC app with the appropriate parameters. On Windows you run the "Task Scheduler" and create a task to run the .bat file, with whatever schedules you like. On Mac/Linux you edit the 'crontab' file adding one or more lines with the interesting syntax to execute the .sh file. Your app can read the command line parameters (on Mac/Linux or Windows) by inspecting the special global variables $0, $1 etc. The only gotcha is that on Mac, you think your app is at e.g. /Users/yourname/Myapp - but actually on Mac what appears to be an application "Myapp" is a bundle (i.e. a folder with a special flag so the Finder pretends it's not), and the path to the executable app is e.g. /Users/yourname/Myapp.app/Contents/MacOS/Myapp On Linux and Windows, it's where you think it is! Ben On 12/07/2022 15:56, Bob Sneidar via use-livecode wrote: > It seems to me that if you have an open socket to listen for commands, you could have the chron or windows scheduler send those commands to your LC app. > > Ben, some syntax would be helpful. > > Bob S > > >> On Jul 12, 2022, at 07:48 , Ben Rubinstein via use-livecode wrote: >> >> Hi Tim, >> >> On 11/07/2022 12:35, Tim Selander via use-livecode wrote: >>> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. >> >> I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. >> >> 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 jacque at hyperactivesw.com Tue Jul 12 17:10:50 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 12 Jul 2022 16:10:50 -0500 Subject: macOS Ventura (13.x.x)... In-Reply-To: <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> Message-ID: <181f4401790.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> This has little to do with LC and less to do with Ventura, but see your email. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 12, 2022 9:55:22 AM Bob Sneidar via use-livecode wrote: > Ah. I stand corrected. > > Of course, nothing in nature is linear. > > And I still need to figure out how a stomache would have done us any good > withour a circulatory system to get the food to the cells, or lungs to get > oxygen to everything for that matter. It seems if you think about it that > no vital organ would have provided any advantage without all the other > organs being fully developed. Begs some questions, eh? > > Bob S > > >> On Jul 12, 2022, at 03:28 , Richmond via use-livecode >> wrote: >> >> That is a complete misunderstanding of the elevator theory of evolution: >> this was a theory propagated by some >> of the people who misread Darwin (I don't mean Hobbesian individualists >> like Huxley and Dawkins) to say that >> evolution is a linear and ever-upwards process. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jul 12 17:56:50 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 21:56:50 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> Hmmm. Ok, but it seems having the LC app running invisibly all the time, listening for a command, something the cron service could do through the terminal easily enough, you could make it much more efficient. Just methods and madness I suppose. Bob S > On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode wrote: > > I think I may not have been very clear. > > This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). From benr_mc at cogapp.com Wed Jul 13 05:20:39 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 13 Jul 2022 10:20:39 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> Message-ID: <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> Whatever works for your situation! At least one of my jobs, which runs a few times a week (pulling data from an internal system, generating and emailing a PDF report) has to launch fresh each time because of a bug in the graph widget which displays wrong if the script runs twice! There are others where the LC qpp is part of a dance in which other systems run before and after, so a batch script invoking each in turn is the thing that's scheduled. But of course there are contexts in which the best solution is an LC app waiting for a time or a command at which to leap into action. On 12/07/2022 22:56, Bob Sneidar via use-livecode wrote: > Hmmm. Ok, but it seems having the LC app running invisibly all the time, listening for a command, something the cron service could do through the terminal easily enough, you could make it much more efficient. Just methods and madness I suppose. > > Bob S > > >> On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode wrote: >> >> I think I may not have been very clear. >> >> This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ms1 at soas.ac.uk Wed Jul 13 12:18:24 2022 From: ms1 at soas.ac.uk (Muaath Salih) Date: Wed, 13 Jul 2022 17:18:24 +0100 Subject: No subject Message-ID: From sean at pidigital.co.uk Wed Jul 13 12:26:16 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 13 Jul 2022 17:26:16 +0100 Subject: No subject In-Reply-To: References: Message-ID: <77502D3D-AD49-49A0-A41B-5520C060CE9F@pidigital.co.uk> I agree. There is also no content :) Let us know if there is anything else you would like help with, Muaath. Sean > On 13 Jul 2022, at 17:18, Muaath Salih 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 bobsneidar at iotecdigital.com Wed Jul 13 17:50:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 13 Jul 2022 21:50:19 +0000 Subject: remoteDebugger error Message-ID: Whenever I open my Forms Generator project, I get a dialog pop up saying an error occured in the stack com.livecode.library.remotedebugger, and that there is no more information because the stack is password protected. It does not seem to affect to workings of my project though. Other stacks do not seem to induce this dialog. How can I tell what is causing it? Bob S From matthias_livecode_150811 at m-r-d.de Wed Jul 13 18:44:11 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 14 Jul 2022 00:44:11 +0200 Subject: remoteDebugger error In-Reply-To: References: Message-ID: Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? Regards, Matthias > Am 13.07.2022 um 23:50 schrieb Bob Sneidar via use-livecode : > > Whenever I open my Forms Generator project, I get a dialog pop up saying an error occured in the stack com.livecode.library.remotedebugger, and that there is no more information because the stack is password protected. It does not seem to affect to workings of my project though. > > Other stacks do not seem to induce this dialog. How can I tell what is causing it? > > 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 Wed Jul 13 19:02:11 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 13 Jul 2022 23:02:11 +0000 Subject: remoteDebugger error In-Reply-To: References: Message-ID: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Yup. Don't we all have to be on that license if we are running 9.6.8? But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. Bob S > On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: > > Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? > > Regards, > > Matthias From monte.goulding at livecode.com Wed Jul 13 19:07:22 2022 From: monte.goulding at livecode.com (Monte Goulding) Date: Thu, 14 Jul 2022 09:07:22 +1000 Subject: remoteDebugger error In-Reply-To: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Hi Bob Could you create a bug report about this? The remote debugger obviously shouldn’t be throwing bugs itself. It should be telling the IDE about errors and getting it to show the debugger. Cheers Monte > On 14 Jul 2022, at 9:02 am, Bob Sneidar via use-livecode wrote: > > Yup. Don't we all have to be on that license if we are running 9.6.8? But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. > > Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. > > Bob S > > >> On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: >> >> Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? >> >> 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 matthias_livecode_150811 at m-r-d.de Wed Jul 13 19:20:41 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 14 Jul 2022 01:20:41 +0200 Subject: remoteDebugger error In-Reply-To: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: > Am 14.07.2022 um 01:02 schrieb Bob Sneidar via use-livecode : > > Yup. Don't we all have to be on that license if we are running 9.6.8? Not that i am aware of. If you have the Addon Pro Pack Features in your license "the editiontype" returns professional, if you don't then "commercial" is returned. https://livecode.com/pro-features/ > But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. > > Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. > > Bob S > > >> On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: >> >> Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? >> >> Regards, >> >> Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Jul 13 20:14:13 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 14 Jul 2022 00:14:13 +0000 Subject: remoteDebugger error In-Reply-To: References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: <78464170-F02D-4C67-AC00-328F795DC316@iotecdigital.com> Returns "Professional" Bob S > On Jul 13, 2022, at 16:20 , matthias rebbe via use-livecode wrote: > >> Am 14.07.2022 um 01:02 schrieb Bob Sneidar via use-livecode : >> >> Yup. Don't we all have to be on that license if we are running 9.6.8? > Not that i am aware of. > If you have the Addon Pro Pack Features in your license "the editiontype" returns professional, if you don't then "commercial" is returned. From bobsneidar at iotecdigital.com Wed Jul 13 20:15:01 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 14 Jul 2022 00:15:01 +0000 Subject: remoteDebugger error In-Reply-To: <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Message-ID: Monte, I'll do that in the morning. They are kicking me out of the building. :-| Bob S > On Jul 13, 2022, at 16:07 , Monte Goulding via use-livecode wrote: > > Hi Bob > > Could you create a bug report about this? The remote debugger obviously shouldn’t be throwing bugs itself. It should be telling the IDE about errors and getting it to show the debugger. > > Cheers > > Monte > From selander at tkf.att.ne.jp Wed Jul 13 20:16:58 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 14 Jul 2022 09:16:58 +0900 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> Message-ID: Gentlemen, The trigger will be 'pulled' once or twice a day only -- so these external to LC options are also viable. Hadn't entered my head at all! Will be playing around with all these ideas and learn something! Basically use Macs, but have couple unused Windows laptops -- sounds like Task Scheduler and .bat files might be easier to deal with. Thanks. Tim On 2022.07.13 18:20, Ben Rubinstein via use-livecode wrote: > Whatever works for your situation! At least one of my jobs, which > runs a few times a week (pulling data from an internal system, > generating and emailing a PDF report) has to launch fresh each > time because of a bug in the graph widget which displays wrong if > the script runs twice! > > There are others where the LC qpp is part of a dance in which > other systems run before and after, so a batch script invoking > each in turn is the thing that's scheduled. > > But of course there are contexts in which the best solution is an > LC app waiting for a time or a command at which to leap into action. > > On 12/07/2022 22:56, Bob Sneidar via use-livecode wrote: >> Hmmm. Ok, but it seems having the LC app running invisibly all >> the time, listening for a command, something the cron service >> could do through the terminal easily enough, you could make it >> much more efficient. Just methods and madness I suppose. >> >> Bob S >> >> >>> On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode >>> wrote: >>> >>> I think I may not have been very clear. >>> >>> This isn't LiveCode doing anything special; just a standalone >>> LiveCode app that either does something immediately on launch >>> (and then quits), or inspects the command line parameters to >>> decide what to do (and then quits). >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Thu Jul 14 01:03:23 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 14 Jul 2022 08:03:23 +0300 Subject: remoteDebugger error In-Reply-To: References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Message-ID: Hello all, @Bob Sneidar Are there any modal windows involved in the recipe? I think it is this bug: https://quality.livecode.com/show_bug.cgi?id=23758 Cheers, Panos -- On Thu, 14 Jul 2022 at 03:15, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Monte, I'll do that in the morning. They are kicking me out of the > building. :-| > > Bob S > > > > On Jul 13, 2022, at 16:07 , Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Bob > > > > Could you create a bug report about this? The remote debugger obviously > shouldn’t be throwing bugs itself. It should be telling the IDE about > errors and getting it to show the debugger. > > > > 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 paul at researchware.com Thu Jul 14 15:50:57 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 14 Jul 2022 15:50:57 -0400 Subject: Livecode Builder developer wanted Message-ID: I am looking to hire someone to take what Trevor DeVore started 3 years ago, for the Livecode conference, of making an LCB wrapper for pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for macOS and extend it to Windows including builds of the pocketsphinx libraries for macOS and Windows. Essentially, advance it a bit further so it can just be plugged into Livecode and used as a library in the IDE and standalones. Anyone experienced in making LCB libraries for macOS and Windows interested? If so, please email me off-list and send me a rate and/or estimate. P.S. I contacted Trevor, but he is tied up with other work and unavailable. Paul Dupuis Researchware From klaus at major-k.de Fri Jul 15 07:14:50 2022 From: klaus at major-k.de (Klaus major-k) Date: Fri, 15 Jul 2022 13:14:50 +0200 Subject: iPhoneSafeAreaInsets() and Android Message-ID: Hi friends, quick question, cannot test it myself in the moment. Will -> iPhoneSafeAreaInsets() a. work or b. throw an error when being used on Android? If a. I presume it will return "the screenrect" without any "notches". Does it? If b. then I will to check "if the platform = "iphone"..." Thanks for any quick answer! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From benr_mc at cogapp.com Fri Jul 15 10:22:28 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 15 Jul 2022 15:22:28 +0100 Subject: Complete Advanced Networking Layer? Message-ID: Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? TIA, Ben From rdimola at evergreeninfo.net Fri Jul 15 10:44:48 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 15 Jul 2022 10:44:48 -0400 Subject: Complete Advanced Networking Layer? In-Reply-To: References: Message-ID: <001601d89859$721c53c0$5654fb40$@net> Ben, I believe that's referring to tsNet. All tsNet's advanced functionality(async and such) is in the dictionary. Works great! In mobile I start 4 or 5 simultaneous downloads when the app is first opened. 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 Ben Rubinstein via use-livecode Sent: Friday, July 15, 2022 10:22 AM To: Use LiveCode Cc: Ben Rubinstein Subject: Complete Advanced Networking Layer? Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? TIA, Ben _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Fri Jul 15 11:40:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 15 Jul 2022 17:40:34 +0200 Subject: Complete Advanced Networking Layer? In-Reply-To: References: Message-ID: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> According to this overview there https://livecode.com/pro-features/ the following tsNet features are in included in the Pro Features - Non-blocking, asynchronous operations on SFTP, SMTP, SMTPS and SMTP/TLS - SFTP authentication via public key authentication giving the best possible security - SMTP(S/TLS) / SFTP downloads and uploads can either be via file or via variable – you are not limited by the memory available to your variable - Ability to generate public / private key pairs suitable for use with SFTP – no need for an external application to create these - Ability to send additional raw commands along with FTP and SFTP transfers to be executed before or after the transfer completes > Am 15.07.2022 um 16:22 schrieb Ben Rubinstein via use-livecode : > > > Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Fri Jul 15 12:25:14 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 15 Jul 2022 17:25:14 +0100 Subject: Complete Advanced Networking Layer? In-Reply-To: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> References: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> Message-ID: <8915b5fa-a023-03c2-c7f3-94ead78986f6@cogapp.com> Ah, thanks both. I see now there's a "[PRO]" badge on some tsNet functions in the Dictionary. Thanks very much, Ben On 15/07/2022 16:40, matthias rebbe via use-livecode wrote: > According to this overview there https://livecode.com/pro-features/ > > the following tsNet features are in included in the Pro Features > > - Non-blocking, asynchronous operations on SFTP, SMTP, SMTPS and SMTP/TLS > - SFTP authentication via public key authentication giving the best possible security > - SMTP(S/TLS) / SFTP downloads and uploads can either be via file or via variable you are not limited by the memory available to your variable > - Ability to generate public / private key pairs suitable for use with SFTP no need for an external application to create these > - Ability to send additional raw commands along with FTP and SFTP transfers to be executed before or after the transfer completes > >> Am 15.07.2022 um 16:22 schrieb Ben Rubinstein via use-livecode : >> >> >> Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Fri Jul 15 12:52:49 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Fri, 15 Jul 2022 09:52:49 -0700 Subject: license info Message-ID: <016d01d8986b$51125c30$f3371490$@telus.net> Largely because I'm not crystal clear as to how to frame the following request for information, I'd VERY MUCH appreciate if the LIVECODE mothership could point me in the right direction. Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) on a Windows 10 PC (not a server) with the latest updates installed. The recent discussion regarding : ".the following tsNet features are in included in the Pro Features ." from matthias rebbe posting from July 15 suggests that I could greatly simplify a significant application I developed and manage for a major Health Care Laboratory here in Canada. The features enumerated might be able to eliminate a very expensive 3rd party SFTP server I currently employ for communicating and transferring very sensitive medical information to external clinics and hospitals (over 5,000 of them). I would sincerely appreciate if someone could give me even a ballpark dollar figure I'd have to pay in order to upgrade my current license (see above) to whatever is necessary to incorporate the "tsNet Pro" features Matthias described. I only need the one development license for Windows since I distribute the app from the STANDALONE feature of LIVECODE. Hopefully that's enough information to frame my request so I can pass a fairly accurate cost estimate to the end-user. Sincerely Doug Ruisaard From matthias_livecode_150811 at m-r-d.de Fri Jul 15 14:11:19 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 15 Jul 2022 20:11:19 +0200 Subject: license info In-Reply-To: <016d01d8986b$51125c30$f3371490$@telus.net> References: <016d01d8986b$51125c30$f3371490$@telus.net> Message-ID: <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> Douglas, If you have a business license, then you have access to the "Advanced Network Layer". LC with Pro Features is the same as the previous Business license. And if you have a current subscription or a lifetime license with lifetime updates, then why don't you download the latest release of LC, which is 9.6.8 btw.? Regards, Matthias > Am 15.07.2022 um 18:52 schrieb Douglas A. Ruisaard via use-livecode : > > Largely because I'm not crystal clear as to how to frame the following > request for information, I'd VERY MUCH appreciate if the LIVECODE mothership > could point me in the right direction. > > > > Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) on a > Windows 10 PC (not a server) with the latest updates installed. > > > > The recent discussion regarding : ".the following tsNet features are in > included in the Pro Features ." from matthias rebbe posting from July 15 > suggests that I could greatly simplify a significant application I developed > and manage for a major Health Care Laboratory here in Canada. The features > enumerated might be able to eliminate a very expensive 3rd party SFTP server > I currently employ for communicating and transferring very sensitive medical > information to external clinics and hospitals (over 5,000 of them). > > > > I would sincerely appreciate if someone could give me even a ballpark dollar > figure I'd have to pay in order to upgrade my current license (see above) to > whatever is necessary to incorporate the "tsNet Pro" features Matthias > described. I only need the one development license for Windows since I > distribute the app from the STANDALONE feature of LIVECODE. > > > > Hopefully that's enough information to frame my request so I can pass a > fairly accurate cost estimate to the end-user. > > > > Sincerely > > Doug Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Sat Jul 16 10:57:54 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Sat, 16 Jul 2022 07:57:54 -0700 Subject: license info In-Reply-To: <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> References: <016d01d8986b$51125c30$f3371490$@telus.net> <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> Message-ID: <03d701d89924$6dace770$4906b650$@telus.net> Thanks very much for the advice. I have, as of this message, installed v9.6.8. What steps, if any, do I need to take to "activate" the "Advanced Network Layer"? Doug -----Original Message----- From: use-livecode On Behalf Of matthias rebbe via use-livecode Sent: Friday, July 15, 2022 11:11 AM To: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Subject: Re: license info Douglas, If you have a business license, then you have access to the "Advanced Network Layer". LC with Pro Features is the same as the previous Business license. And if you have a current subscription or a lifetime license with lifetime updates, then why don't you download the latest release of LC, which is 9.6.8 btw.? Regards, Matthias > Am 15.07.2022 um 18:52 schrieb Douglas A. Ruisaard via use-livecode : > > Largely because I'm not crystal clear as to how to frame the following > request for information, I'd VERY MUCH appreciate if the LIVECODE > mothership could point me in the right direction. > > > > Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) > on a Windows 10 PC (not a server) with the latest updates installed. > > > > The recent discussion regarding : ".the following tsNet features are > in included in the Pro Features ." from matthias rebbe posting from > July 15 suggests that I could greatly simplify a significant > application I developed and manage for a major Health Care Laboratory > here in Canada. The features enumerated might be able to eliminate a > very expensive 3rd party SFTP server I currently employ for > communicating and transferring very sensitive medical information to external clinics and hospitals (over 5,000 of them). > > > > I would sincerely appreciate if someone could give me even a ballpark > dollar figure I'd have to pay in order to upgrade my current license > (see above) to whatever is necessary to incorporate the "tsNet Pro" > features Matthias described. I only need the one development license > for Windows since I distribute the app from the STANDALONE feature of LIVECODE. > > > > Hopefully that's enough information to frame my request so I can pass > a fairly accurate cost estimate to the end-user. > > > > Sincerely > > Doug Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Sun Jul 17 05:16:25 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sun, 17 Jul 2022 05:16:25 -0400 Subject: deleting folders on server with revDeleteFolder Message-ID: Hi list, On my LC Hosting account, I have a php script that creates directories : mkdir($dirname, 0755); Each directory is used to temporarily store text & image files. Then I have a LC script that is supposed to delete those directories under certain conditions. No problem for deleting files inside each directory, but 2 sub-directories are systematically created, named "." and ".." and those can't be deleted, either by script of via ftp. Therefore, there's no way to delete the directories created via php. Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" is the command to use to remove a folder and all its contents and that it is available on both desktop and server platforms, but on my LC hosting account I get : Handler: can't find handler (revDeleteFolder) Any idea how to solve this problem ? Thank you in advance. jbv From matthias_livecode_150811 at m-r-d.de Sun Jul 17 07:13:38 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 17 Jul 2022 13:13:38 +0200 Subject: deleting folders on server with revDeleteFolder In-Reply-To: References: Message-ID: I’m not at my desk at the moment, so I cannot give detailed information. But what I know is, that this function/command is included in the rev common library and that library is not included by default in LC Server. You need to copy that library from your LC ide Installation path to your LC Server installation path first. Then you have to load that library in your script using “start using stack Regards Matthias Von meinem iPhone gesendet > Am 17.07.2022 um 11:18 schrieb jbv via use-livecode : > > Hi list, > > On my LC Hosting account, I have a php script that creates directories : > mkdir($dirname, 0755); > Each directory is used to temporarily store text & image files. > > Then I have a LC script that is supposed to delete those directories > under certain conditions. No problem for deleting files inside each > directory, but 2 sub-directories are systematically created, named > "." and ".." and those can't be deleted, either by script of via ftp. > Therefore, there's no way to delete the directories created via php. > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > is the command to use to remove a folder and all its contents and that > it is available on both desktop and server platforms, but on my LC > hosting account I get : Handler: can't find handler (revDeleteFolder) > > Any idea how to solve this problem ? > Thank you in advance. > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 17 08:20:52 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 17 Jul 2022 13:20:52 +0100 Subject: deleting folders on server with revDeleteFolder In-Reply-To: References: Message-ID: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Those folders are "." - the folder itself ".." - the parent of the folder itself. As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else. So - there isn't really a problem, just don't try to delete them by those names. Alex. On 17/07/2022 10:16, jbv via use-livecode wrote: > Hi list, > > On my LC Hosting account, I have a php script that creates directories : >    mkdir($dirname, 0755); > Each directory is used to temporarily store text & image files. > > Then I have a LC script that is supposed to delete those directories > under certain conditions. No problem for deleting files inside each > directory, but 2 sub-directories are systematically created, named > "." and ".." and those can't be deleted, either by script of via ftp. > Therefore, there's no way to delete the directories created via php. > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > is the command to use to remove a folder and all its contents and that > it is available on both desktop and server platforms, but on my LC > hosting account I get : Handler: can't find handler (revDeleteFolder) > > Any idea how to solve this problem ? > Thank you in advance. > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Sun Jul 17 12:25:52 2022 From: kee.nethery at elloco.com (Kee Nethery) Date: Sun, 17 Jul 2022 09:25:52 -0700 Subject: deleting folders on server with revDeleteFolder In-Reply-To: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> References: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Message-ID: <8D2CC775-175C-4964-B50B-12A86F8FA858@elloco.com> Perhaps try using something other than a period as the beginning folder name character? Could be that’s why it’s not working. Just a thought, could be totally wrong. Kee Nethery > On Jul 17, 2022, at 5:21 AM, Alex Tweedly via use-livecode wrote: > > Those folders are > > "." - the folder itself > > ".." - the parent of the folder itself. > > As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else. > > So - there isn't really a problem, just don't try to delete them by those names. > > > Alex. > > >> On 17/07/2022 10:16, jbv via use-livecode wrote: >> Hi list, >> >> On my LC Hosting account, I have a php script that creates directories : >> mkdir($dirname, 0755); >> Each directory is used to temporarily store text & image files. >> >> Then I have a LC script that is supposed to delete those directories >> under certain conditions. No problem for deleting files inside each >> directory, but 2 sub-directories are systematically created, named >> "." and ".." and those can't be deleted, either by script of via ftp. >> Therefore, there's no way to delete the directories created via php. >> >> Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" >> is the command to use to remove a folder and all its contents and that >> it is available on both desktop and server platforms, but on my LC >> hosting account I get : Handler: can't find handler (revDeleteFolder) >> >> Any idea how to solve this problem ? >> Thank you in advance. >> jbv >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 19 12:00:01 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 19 Jul 2022 16:00:01 +0000 Subject: Debugging libraries Message-ID: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> Hi all. There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! Bob S From ahsoftware at sonic.net Tue Jul 19 13:45:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 10:45:37 -0700 Subject: Debugging libraries In-Reply-To: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> Message-ID: <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> On 7/19/22 09:00, Bob Sneidar via use-livecode wrote: > Hi all. > > There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! Set gRevDevelopment true to debug system stacks (starting with "rev" or plugins). And remember to set it false afterwards. If you're trying to debug a library that's been password-protected, though, it won't help. -- Mark Wieder ahsoftware at gmail.com From paulmcclernan at gmail.com Tue Jul 19 14:19:55 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Tue, 19 Jul 2022 14:19:55 -0400 Subject: deleting folders on server with revDeleteFolder In-Reply-To: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> References: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Message-ID: Yeah, what Alex said, those are posix (Unix) placeholders that point to folders (. self, and .. parent directory), they aren’t actual real folders. On Sun, Jul 17, 2022 at 8:21 AM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > Those folders are > > "." - the folder itself > > ".." - the parent of the folder itself. > > As such, neither can be deleted directly, nor do they need to be in > order to delete the folder itself. The folder itself should be deleted > when the current folder is set to somewhere else. > > So - there isn't really a problem, just don't try to delete them by > those names. > > > Alex. > > > On 17/07/2022 10:16, jbv via use-livecode wrote: > > Hi list, > > > > On my LC Hosting account, I have a php script that creates directories : > > mkdir($dirname, 0755); > > Each directory is used to temporarily store text & image files. > > > > Then I have a LC script that is supposed to delete those directories > > under certain conditions. No problem for deleting files inside each > > directory, but 2 sub-directories are systematically created, named > > "." and ".." and those can't be deleted, either by script of via ftp. > > Therefore, there's no way to delete the directories created via php. > > > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > > is the command to use to remove a folder and all its contents and that > > it is available on both desktop and server platforms, but on my LC > > hosting account I get : Handler: can't find handler (revDeleteFolder) > > > > Any idea how to solve this problem ? > > Thank you in advance. > > jbv > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 19 18:48:43 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 19 Jul 2022 22:48:43 +0000 Subject: Debugging libraries In-Reply-To: <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> Message-ID: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. To my recollection the sqlYoga sqlquery_retrieveAsData was a command like the array and record variants, but apparently not. It's a function so the code never got around to executing. DOH! Bob S > On Jul 19, 2022, at 10:45 , Mark Wieder via use-livecode wrote: > > On 7/19/22 09:00, Bob Sneidar via use-livecode wrote: >> Hi all. >> There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! > > Set gRevDevelopment true to debug system stacks (starting with "rev" or plugins). And remember to set it false afterwards. If you're trying to debug a library that's been password-protected, though, it won't help. > > -- > Mark Wieder > ahsoftware at gmail.com From ahsoftware at sonic.net Tue Jul 19 19:30:05 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 16:30:05 -0700 Subject: Debugging libraries In-Reply-To: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Message-ID: <4d501ba3-a664-b1df-5f22-bd327160bbb6@sonic.net> On 7/19/22 15:48, Bob Sneidar via use-livecode wrote: > Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. Shouldn't that have thrown a runtime error? -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Tue Jul 19 20:20:17 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 17:20:17 -0700 Subject: Debugging libraries In-Reply-To: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Message-ID: <9599622c-32c5-0200-f472-64cbc6b687c0@sonic.net> On 7/19/22 15:48, Bob Sneidar via use-livecode wrote: > Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. ...and as a hint the glx2 script editor will pop up a clairvoyance type-ahead bubble if you're using a command or a function properly, but won't if you're trying to use a function as a command or vice versa. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Mon Jul 25 01:37:48 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 22:37:48 -0700 Subject: Stylistic question. In-Reply-To: References: <1818ceeb0b0.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Sorry for the late response, but thanks for the shoutout. I'll also mention that some time ago I put a fair bit of effort into enabling Navigator to behavior-ify any set of controls, automatically extracting their built-in code to script-only-stacks. I did it as part of the migration of Navigator to SOS behaviors. I haven't checked to make sure, but I believe *all code* in Navigator is a SOS-behavior; and I did that automatically from a no-behaviors standing start with a simple command in Navigator itself. The end result is that there can be any number of Navigator windows without any duplication of code at all. Previously I had built Navigator with three built-in copies, at the cost of making it three times as large. That wasn't such a terrible thing, but I did find that anything beyond three copies eventually broke (no idea why). Since migrating 100% to behaviors, I've tried, I think, having ten copies open with no problem. Disclaimer/warning: I wrote that code five years ago and haven't looked at it since. No one has told me it doesn't work, but I only used it the one time on Navigator itself. So work on a copy, please. gc On Wed, Jun 22, 2022 at 1:25 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Well then Navigator is for you! If an object has a behavior and no script > of it's own, it's color in the list is green. If it has a script but no > behavior, it's color is blue. If it has both, it's purple. Simply double > clicking an object opens it's behavior script if it has one, and it's > native script if it doesn't. > > You don't have to keep track of anything anymore. > > Bob S > > > > On Jun 22, 2022, at 12:41 , J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I find that too many behavior stacks make it difficult to keep track of > where things are. But the primary downside is that script-only stacks don't > work with remote debugging. That's a big drawback for me since most of my > apps these days are for mobile. I do use behaviors quite a bit, but I put > the scripts into buttons so they can be debugged remotely. Or maybe you > mean you use regular stacks for behaviors? Those would work. > > > > The switch construct is way more flexible than if/then and much cleaner > to read and track. I use them all the time. They're especially useful when > you want to group several conditionals. What don't you like about them? > Just curious. > > > > -- > > Jacqueline Landman Gay | jacque at 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 gcanyon at gmail.com Mon Jul 25 02:01:22 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 23:01:22 -0700 Subject: Is syntax a dead issue? Message-ID: On this Hacker News thread , I read this programming interview question . Roughly, the challenge is to count the frequency of words in input, and return a list with counts, sorted from most to least frequent. So input like this: The foo the foo the defenestration the would produce output like this: the 4 foo 2 defenestration 1 Of course I smiled because LC is literally built for this problem. I took well under two minutes to write this function: function wordCount X repeat for each word w in X add 1 to R[w] end repeat combine R using cr and tab sort R numeric descending by word 2 of each return R end wordCount There are quibbles -- the examples given in the article work line by line, so input size isn't an issue, and of course quotes would cause an issue, and LC is case insensitive, so it works, but the output would look like this: The 4 foo 2 defenestration 1 But generally, it works, and is super-easy to code. But for the sake of argument, consider this Python solution given: counts = collections.Counter() for line in sys.stdin: words = line.lower().split() counts.update(words) for word, count in counts.most_common(): print(word, count) That requires a library, but it's also super-easy to code and understand, and it requires just the same number of lines. So, daydreaming extensions to LC syntax, this comes to mind: function wordCount X add 1 to R[w] for each word w in X return R combined using cr and tab and sorted numeric descending by word 2 of each end wordCount or if you prefer: function wordCount X for each word w in X add 1 to R[w] return (R combined using cr and tab) sorted numeric descending by word 2 of each end wordCount Or to really apply ourselves: function wordCount X return the count of each word in X using cr and tab sorted numeric descending by word 2 of each end wordCount So: the xTalk syntax is over thirty years old; when was the last significant syntax update? (I'm not at all core to the process, so feel free to tell me how much I've missed lately!) From gcanyon at gmail.com Mon Jul 25 02:42:30 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 23:42:30 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: As a meta point, I wrote a version closer to the actual requirements -- lowercase everything, process an external input line by line to allow for arbitrary input size. The result is about 8-10x slower than most other languages -- not as bad as I feared, not as good as I hoped. Here's the code for that version: on mouseUp answer file "choose input:" if it is empty then exit mouseUp put it into F lock screen put the long seconds into T open file F for read repeat read from file F for 1 line repeat for each word w in toLower(it) add 1 to R[w] end repeat if the result is not empty then exit repeat end repeat combine R using cr and tab sort R numeric descending by word 2 of each put the long seconds - T into T1 put R into fld "output" put the long seconds - T into T2 put T1 && T2 close file F end mouseUp On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon wrote: > On this Hacker News thread , > I read this programming interview question > . Roughly, the challenge is to > count the frequency of words in input, and return a list with counts, > sorted from most to least frequent. So input like this: > > The foo the foo the > defenestration the > > would produce output like this: > > the 4 > foo 2 > defenestration 1 > > Of course I smiled because LC is literally built for this problem. I took > well under two minutes to write this function: > > function wordCount X > repeat for each word w in X > add 1 to R[w] > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > return R > end wordCount > > There are quibbles -- the examples given in the article work line by line, > so input size isn't an issue, and of course quotes would cause an issue, > and LC is case insensitive, so it works, but the output would look like > this: > > The 4 > foo 2 > defenestration 1 > > But generally, it works, and is super-easy to code. But for the sake of > argument, consider this Python solution given: > > counts = collections.Counter() > for line in sys.stdin: > words = line.lower().split() > counts.update(words) > > for word, count in counts.most_common(): > print(word, count) > > That requires a library, but it's also super-easy to code and understand, > and it requires just the same number of lines. So, daydreaming extensions > to LC syntax, this comes to mind: > > function wordCount X > add 1 to R[w] for each word w in X > return R combined using cr and tab and sorted numeric descending by > word 2 of each > end wordCount > > or if you prefer: > > function wordCount X > for each word w in X add 1 to R[w] > return (R combined using cr and tab) sorted numeric descending by word > 2 of each > end wordCount > > Or to really apply ourselves: > > function wordCount X > return the count of each word in X using cr and tab sorted numeric > descending by word 2 of each > end wordCount > > So: the xTalk syntax is over thirty years old; when was the last > significant syntax update? > > (I'm not at all core to the process, so feel free to tell me how much I've > missed lately!) > > From jbv at souslelogo.com Mon Jul 25 02:59:04 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 25 Jul 2022 02:59:04 -0400 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: Just curious : why do you use "read from file F for 1 line" ? Instead, why don't you read the file in one go, load the content into a variable and then use "for each line j in myVar" ? Wouldn't that run faster ? Best, jbv Le 2022-07-25 02:42, Geoff Canyon via use-livecode a crit : > As a meta point, I wrote a version closer to the actual requirements -- > lowercase everything, process an external input line by line to allow > for > arbitrary input size. The result is about 8-10x slower than most other > languages -- not as bad as I feared, not as good as I hoped. Here's the > code for that version: > > on mouseUp > answer file "choose input:" > if it is empty then exit mouseUp > put it into F > lock screen > put the long seconds into T > open file F for read > repeat > read from file F for 1 line > repeat for each word w in toLower(it) > add 1 to R[w] > end repeat > if the result is not empty then exit repeat > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > put the long seconds - T into T1 > put R into fld "output" > put the long seconds - T into T2 > put T1 && T2 > close file F > end mouseUp > > On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon > wrote: > >> On this Hacker News thread >> , >> I read this programming interview question >> . Roughly, the challenge is >> to >> count the frequency of words in input, and return a list with counts, >> sorted from most to least frequent. So input like this: >> >> The foo the foo the >> defenestration the >> >> would produce output like this: >> >> the 4 >> foo 2 >> defenestration 1 >> >> Of course I smiled because LC is literally built for this problem. I >> took >> well under two minutes to write this function: >> >> function wordCount X >> repeat for each word w in X >> add 1 to R[w] >> end repeat >> combine R using cr and tab >> sort R numeric descending by word 2 of each >> return R >> end wordCount >> >> There are quibbles -- the examples given in the article work line by >> line, >> so input size isn't an issue, and of course quotes would cause an >> issue, >> and LC is case insensitive, so it works, but the output would look >> like >> this: >> >> The 4 >> foo 2 >> defenestration 1 >> >> But generally, it works, and is super-easy to code. But for the sake >> of >> argument, consider this Python solution given: >> >> counts = collections.Counter() >> for line in sys.stdin: >> words = line.lower().split() >> counts.update(words) >> >> for word, count in counts.most_common(): >> print(word, count) >> >> That requires a library, but it's also super-easy to code and >> understand, >> and it requires just the same number of lines. So, daydreaming >> extensions >> to LC syntax, this comes to mind: >> >> function wordCount X >> add 1 to R[w] for each word w in X >> return R combined using cr and tab and sorted numeric descending by >> word 2 of each >> end wordCount >> >> or if you prefer: >> >> function wordCount X >> for each word w in X add 1 to R[w] >> return (R combined using cr and tab) sorted numeric descending by >> word >> 2 of each >> end wordCount >> >> Or to really apply ourselves: >> >> function wordCount X >> return the count of each word in X using cr and tab sorted numeric >> descending by word 2 of each >> end wordCount >> >> So: the xTalk syntax is over thirty years old; when was the last >> significant syntax update? >> >> (I'm not at all core to the process, so feel free to tell me how much >> I've >> missed lately!) >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.clavel at gmail.com Mon Jul 25 03:06:52 2022 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Mon, 25 Jul 2022 09:06:52 +0200 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: just curious : what about using LCB for the repeat loop ? jc Le lun. 25 juil. 2022 à 08:44, Geoff Canyon via use-livecode < use-livecode at lists.runrev.com> a écrit : > As a meta point, I wrote a version closer to the actual requirements -- > lowercase everything, process an external input line by line to allow for > arbitrary input size. The result is about 8-10x slower than most other > languages -- not as bad as I feared, not as good as I hoped. Here's the > code for that version: > > on mouseUp > answer file "choose input:" > if it is empty then exit mouseUp > put it into F > lock screen > put the long seconds into T > open file F for read > repeat > read from file F for 1 line > repeat for each word w in toLower(it) > add 1 to R[w] > end repeat > if the result is not empty then exit repeat > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > put the long seconds - T into T1 > put R into fld "output" > put the long seconds - T into T2 > put T1 && T2 > close file F > end mouseUp > > On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon wrote: > > > On this Hacker News thread < > https://news.ycombinator.com/item?id=32214419>, > > I read this programming interview question > > . Roughly, the challenge is > to > > count the frequency of words in input, and return a list with counts, > > sorted from most to least frequent. So input like this: > > > > The foo the foo the > > defenestration the > > > > would produce output like this: > > > > the 4 > > foo 2 > > defenestration 1 > > > > Of course I smiled because LC is literally built for this problem. I took > > well under two minutes to write this function: > > > > function wordCount X > > repeat for each word w in X > > add 1 to R[w] > > end repeat > > combine R using cr and tab > > sort R numeric descending by word 2 of each > > return R > > end wordCount > > > > There are quibbles -- the examples given in the article work line by > line, > > so input size isn't an issue, and of course quotes would cause an issue, > > and LC is case insensitive, so it works, but the output would look like > > this: > > > > The 4 > > foo 2 > > defenestration 1 > > > > But generally, it works, and is super-easy to code. But for the sake of > > argument, consider this Python solution given: > > > > counts = collections.Counter() > > for line in sys.stdin: > > words = line.lower().split() > > counts.update(words) > > > > for word, count in counts.most_common(): > > print(word, count) > > > > That requires a library, but it's also super-easy to code and understand, > > and it requires just the same number of lines. So, daydreaming extensions > > to LC syntax, this comes to mind: > > > > function wordCount X > > add 1 to R[w] for each word w in X > > return R combined using cr and tab and sorted numeric descending by > > word 2 of each > > end wordCount > > > > or if you prefer: > > > > function wordCount X > > for each word w in X add 1 to R[w] > > return (R combined using cr and tab) sorted numeric descending by word > > 2 of each > > end wordCount > > > > Or to really apply ourselves: > > > > function wordCount X > > return the count of each word in X using cr and tab sorted numeric > > descending by word 2 of each > > end wordCount > > > > So: the xTalk syntax is over thirty years old; when was the last > > significant syntax update? > > > > (I'm not at all core to the process, so feel free to tell me how much > I've > > missed lately!) > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacques Clavel From gcanyon at gmail.com Mon Jul 25 10:15:20 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Jul 2022 07:15:20 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: On Mon, Jul 25, 2022 at 12:00 AM jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Just curious : why do you use "read from file F for 1 line" ? > Instead, why don't you read the file in one go, load the content > into a variable and then use "for each line j in myVar" ? > Wouldn't that run faster ? > > Best, > jbv > My base version does all the processing in one go and ignores lines entirely except as they count as white space. But the second set of requirements for the task from the original post required dealing with arbitrarily large inputs (it mentioned terabytes). It's not a completely unrealistic concept: at the rate this goes on my Mac, it would take about 100 hours to process a terabyte input. In any case, I just tried my base "all in one go" version on the 50mb test file, and it's about 3x as fast as parsing line-by-line, which makes it still among the slowest languages as far as I can tell -- no idea how my M1 Macbook Air compares to the machine he used. From gcanyon at gmail.com Mon Jul 25 10:16:13 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Jul 2022 07:16:13 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: On Mon, Jul 25, 2022 at 12:08 AM Jacques Clavel via use-livecode < use-livecode at lists.runrev.com> wrote: > just curious : what about using LCB for the repeat loop ? > > jc > I confess I haven't touched LCB From lists at mangomultimedia.com Mon Jul 25 14:24:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 25 Jul 2022 13:24:58 -0500 Subject: Monterey + Dark Mode + LC 9.6.6 In-Reply-To: References: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> Message-ID: Thanks for posting this Marty. I just needed to add that to my app :-) -- Trevor DeVore ScreenSteps On Mon, Mar 7, 2022 at 7:10 PM Marty Knapp via use-livecode < use-livecode at lists.runrev.com> wrote: > I think I found the issue. I use Levure to build my apps (great framework > - you should try it!) and it uses a a customized plist file. I compared > that to a plist file from a normally complied app and notice it has has > parameter that is needed: > > NSRequiresAquaSystemAppearance > > > --- > Marty Knapp > > > On Mar 7, 2022, at 4:05 PM, Marty Knapp > wrote: > > > > I just had a customer send a screen shot of my app (built with LC 9.6.6) > running on Mac Monterey in dark mode and buttons and fields are all messed > up. I don’t use dark mode and so tried it on my Mac and see the issue. I > then tried an app built with a previous version of LC (9.6.1 I believe) and > it looks fine. Anybody else seeing this? > > --- > > Marty Knapp > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From martyknappster at gmail.com Mon Jul 25 15:06:45 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 25 Jul 2022 12:06:45 -0700 Subject: Monterey + Dark Mode + LC 9.6.6 In-Reply-To: References: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> Message-ID: <6AAA4E05-11E0-448C-9156-B96CC36C7793@gmail.com> Glad I could reciprocate for once! I’m sure glad I took the time to learn Trevor's “Levure" framework - such great way to build apps in LC. I would encourage you to try this if you have not done so. One one of my favorite features is the update helper using the Sparkle framework. And you can’t beat the price - free! https://github.com/trevordevore/levure/wiki --- Marty Knapp > On Jul 25, 2022, at 11:24 AM, Trevor DeVore via use-livecode wrote: > > Thanks for posting this Marty. I just needed to add that to my app :-) > > -- > Trevor DeVore > ScreenSteps > > On Mon, Mar 7, 2022 at 7:10 PM Marty Knapp via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I think I found the issue. I use Levure to build my apps (great framework >> - you should try it!) and it uses a a customized plist file. I compared >> that to a plist file from a normally complied app and notice it has has >> parameter that is needed: >> >> NSRequiresAquaSystemAppearance >> >> >> --- >> Marty Knapp >> >>> On Mar 7, 2022, at 4:05 PM, Marty Knapp >> wrote: >>> >>> I just had a customer send a screen shot of my app (built with LC 9.6.6) >> running on Mac Monterey in dark mode and buttons and fields are all messed >> up. I don’t use dark mode and so tried it on my Mac and see the issue. I >> then tried an app built with a previous version of LC (9.6.1 I believe) and >> it looks fine. Anybody else seeing this? >>> --- >>> Marty Knapp >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 26 09:20:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 26 Jul 2022 08:20:58 -0500 Subject: Automating LiveCode builds with Github Actions? Message-ID: Hello, I would like to automate the following sequential steps using Github Actions and I'm wondering if anyone has experience automating LiveCode with Github Actions that they could share. 1. Open a stack in LiveCode and send a message to it. This would be for building a Levure application. 2. Build an MSI file using Wix 3. Build an exe installer with Inno Setup. The end result would be the ability to create MSI and exe installers from a LIveCode application from a central location (Github) either manually or as part of another workflow. -- Trevor DeVore ScreenSteps From bobsneidar at iotecdigital.com Tue Jul 26 11:06:59 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 26 Jul 2022 15:06:59 +0000 Subject: sqlYoga queries Message-ID: Hi. This is directed at Trevor Devore, although if anyone else knows they can chime in. sqlYoga can define table objects and relations in a database object. Heretofore I have not availed myself of this, being content to only work with query objects and record objects. Now as I am trying to optimize this new socket agent I wrote, I am wondering if a single query for all the data for a given customer/site/device would be more time efficient than multiple queries for each table. So the question is, if I were to use table and relations, could I craft a statement so that it perfoms a single query? Bob S From lists at mangomultimedia.com Tue Jul 26 11:47:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 26 Jul 2022 10:47:58 -0500 Subject: sqlYoga queries In-Reply-To: References: Message-ID: On Tue, Jul 26, 2022 at 10:08 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > sqlYoga can define table objects and relations in a database object. > Heretofore I have not availed myself of this, being content to only work > with query objects and record objects. Now as I am trying to optimize this > new socket agent I wrote, I am wondering if a single query for all the data > for a given customer/site/device would be more time efficient than multiple > queries for each table. So the question is, if I were to use table and > relations, could I craft a statement so that it perfoms a single query? > Hi Bob, So table/relationship objects in SQL Yoga aren't required here. You can set the `related table joins` (or just `joins`) property of a SQL Query Object. See docs: https://github.com/trevordevore/sql-yoga/wiki/SQL-Yoga-API#sqlquery_set Per the docs, if you have table and relationship objects defined you can use shorthand to set the property. You can just use the longhand approach to run some tests and see if your code runs faster with a single query that returns data from multiple tables vs multiple queries that query each table individually. -- Trevor DeVore ScreenSteps From bobsneidar at iotecdigital.com Tue Jul 26 11:54:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 26 Jul 2022 15:54:20 +0000 Subject: sqlYoga queries In-Reply-To: References: Message-ID: Thanks Trevor. I'll give it a go. Bob S > On Jul 26, 2022, at 08:47 , Trevor DeVore via use-livecode wrote: > > On Tue, Jul 26, 2022 at 10:08 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> sqlYoga can define table objects and relations in a database object. >> Heretofore I have not availed myself of this, being content to only work >> with query objects and record objects. Now as I am trying to optimize this >> new socket agent I wrote, I am wondering if a single query for all the data >> for a given customer/site/device would be more time efficient than multiple >> queries for each table. So the question is, if I were to use table and >> relations, could I craft a statement so that it perfoms a single query? >> > > Hi Bob, > > So table/relationship objects in SQL Yoga aren't required here. You can set > the `related table joins` (or just `joins`) property of a SQL Query Object. > See docs: > https://github.com/trevordevore/sql-yoga/wiki/SQL-Yoga-API#sqlquery_set > > Per the docs, if you have table and relationship objects defined you can > use shorthand to set the property. You can just use the longhand approach > to run some tests and see if your code runs faster with a single query that > returns data from multiple tables vs multiple queries that query each table > individually. > > -- > Trevor DeVore > ScreenSteps > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 26 12:42:40 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 16:42:40 +0000 Subject: Android Player Object in Background Message-ID: I have a music playing app that uses the native player object to play music. When in the background, iOS allows control of the playing song in the Control Center. This not function this way on Android. There is a androidStartAudioPlayingInBackground command, but that plays a supplied url, not from the player object. Does anyone have any insight on this? -Dan From dan at clearvisiontech.com Tue Jul 26 12:45:04 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 16:45:04 +0000 Subject: LiveCode access to mpnowplayinginfocenter? Message-ID: On iOS, a song playing in the native player can be controlled in the Control Center. However, it doesn't display the song name, or artwork or other details. Looks like LC needs to access mpnowplayinginfocenter. Is this possible? Anyone know anything about this? -Dan From tom at makeshyft.com Tue Jul 26 17:28:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 26 Jul 2022 17:28:10 -0400 Subject: Android Player Object in Background In-Reply-To: References: Message-ID: The way I achieved this is using a html 5 player in the browser instead of the player object. The player has no way of doing this currently....as far as I know. On Tue, Jul 26, 2022 at 12:43 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a music playing app that uses the native player object to play > music. When in the background, iOS allows control of the playing song in > the Control Center. This not function this way on Android. There is a > androidStartAudioPlayingInBackground command, but that plays a supplied > url, not from the player object. Does anyone have any insight on this? > > -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 dan at clearvisiontech.com Tue Jul 26 18:23:22 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 22:23:22 +0000 Subject: Android Player Object in Background In-Reply-To: References: Message-ID: Tom, Yes, I know the browser will do this. That's what we did originally. But, I couldn't get enough control over the playback in the browser. The Player Object does everything I need! Except work with the OS apparently. I'll have to reach out to LC for assistance. -Dan On 7/26/22, 2:29 PM, "use-livecode on behalf of Tom Glod via use-livecode" wrote: The way I achieved this is using a html 5 player in the browser instead of the player object. The player has no way of doing this currently....as far as I know. On Tue, Jul 26, 2022 at 12:43 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a music playing app that uses the native player object to play > music. When in the background, iOS allows control of the playing song in > the Control Center. This not function this way on Android. There is a > androidStartAudioPlayingInBackground command, but that plays a supplied > url, not from the player object. Does anyone have any insight on this? > > -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 paul at researchware.com Wed Jul 27 11:17:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 27 Jul 2022 11:17:23 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: Still looking for a LCB developer to build/configure Trevor's wrapper for pocketsphinx for macOS also for Windows. On 7/14/2022 3:50 PM, Paul Dupuis via use-livecode wrote: > I am looking to hire someone to take what Trevor DeVore started 3 > years ago, for the Livecode conference, of making an LCB wrapper for > pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for > macOS and extend it to Windows including builds of the pocketsphinx > libraries for macOS and Windows. Essentially, advance it a bit further > so it can just be plugged into Livecode and used as a library in the > IDE and standalones. > > Anyone experienced in making LCB libraries for macOS and Windows > interested? > > If so, please email me off-list and send me a rate and/or estimate. > > P.S. I contacted Trevor, but he is tied up with other work and > unavailable. > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 28 08:39:59 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 28 Jul 2022 08:39:59 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: I don't know if I'm surprised or not surprised that the LCB takeup seems to be low. On Wed, Jul 27, 2022 at 11:18 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Still looking for a LCB developer to build/configure Trevor's wrapper > for pocketsphinx for macOS also for Windows. > > > On 7/14/2022 3:50 PM, Paul Dupuis via use-livecode wrote: > > I am looking to hire someone to take what Trevor DeVore started 3 > > years ago, for the Livecode conference, of making an LCB wrapper for > > pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for > > macOS and extend it to Windows including builds of the pocketsphinx > > libraries for macOS and Windows. Essentially, advance it a bit further > > so it can just be plugged into Livecode and used as a library in the > > IDE and standalones. > > > > Anyone experienced in making LCB libraries for macOS and Windows > > interested? > > > > If so, please email me off-list and send me a rate and/or estimate. > > > > P.S. I contacted Trevor, but he is tied up with other work and > > unavailable. > > > > Paul Dupuis > > Researchware > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 paul at researchware.com Thu Jul 28 10:57:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 28 Jul 2022 10:57:23 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: On 7/28/2022 8:39 AM, Mike Kerner via use-livecode wrote: > I don't know if I'm surprised or not surprised that the LCB takeup seems to > be low. > > Actually, I am surprised. I have seen mentioned on this list dozens of LCB widgets and libraries, including those developed by others and licensed by Livecode for the Summer Bundle. Not hundreds true, but many dozens. That implies to e there are at least a few dozen LCB developers out there. What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). I can learn how to do this, but I expect it will take me 4-8 times as long. So basic math says that if I can find someone to perform the task for pay, it is likely a better option than my trying to spend the time to do it myself. I also figured, since it would seem to be a small job, that it might be attractive to an LCB developer out there to fill in and around other work they are doing. However, if there are no takers, then I guess I'll just make the time and jump in. From harrison at all-auctions.com Thu Jul 28 11:57:55 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Thu, 28 Jul 2022 11:57:55 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> Hi Paul, I seriously doubt that anyone would be chomping at the bit for this task. First, you expect the person to spend their free time looking at the task to determine the effort and cost required to accomplish the task. There is no paid incentive to do that first step. If after the person gave you their estimate, and you decided you didn’t like it, then the developer has lost their time and effort for nothing. Secondly you have stated that you expect the effort required would be no more than 1 day. It’s very possible that your 1 day projection is completely off the mark. If it took the person more time than that, you would probably be dissatisfied. Who would want to deal with that? Thirdly, even if your projection of 1 day of effort was 100% correct, why would anyone want to bother trying to do the task for just one day’s pay? It simply isn’t worth the time or the hassle for any potential programmer to want to deal with the task for that reason alone. So yes, the bottom line here for you is that you indeed will have to work on the task yourself or it’s not going to get done at all. I hope you will keep this in mind for any future work you would like to have performed. I have to get back to my work here. I hope you have a fruitful and productive day! Cheers, Rick > On Jul 28, 2022, at 10:57 AM, Paul Dupuis via use-livecode wrote: > > What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). From paul at researchware.com Thu Jul 28 12:23:52 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 28 Jul 2022 12:23:52 -0400 Subject: Livecode Builder developer wanted In-Reply-To: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> Message-ID: <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> I've hired and managed independent software developers for various businesses for nearly 40 years. I am well aware of the market. We pay competitive contract rates. My estimate of time is probably about right for someone who has set up at least 1 or 2 cross-platform LCB DLL wrappers based on decades of estimating IT projects, but it was more meant to suggest the work is something in the scope of many hours to days vs. weeks or months. As for job size, if you are a contract developer who has a queue of large jobs providing regular income, good for you. My experience is that many contract developers value non-time sensitive small jobs they can fit in and around larger projects to fill in the inevitable gaps between larger projects that can come up. If no one is available or interested, as I said, it is not time sensitive, so we can either wait or tackle it ourselves as time permits. Paul Dupuis Researchware  On 7/28/2022 11:57 AM, harrison--- via use-livecode wrote: > Hi Paul, > > I seriously doubt that anyone would be chomping at the bit for this task. > > First, you expect the person to spend their free time looking at the task to > determine the effort and cost required to accomplish the task. There is > no paid incentive to do that first step. If after the person gave you their > estimate, and you decided you didnt like it, then the developer has lost > their time and effort for nothing. > > Secondly you have stated that you expect the effort required would be > no more than 1 day. Its very possible that your 1 day projection is > completely off the mark. If it took the person more time than that, you > would probably be dissatisfied. Who would want to deal with that? > > Thirdly, even if your projection of 1 day of effort was 100% correct, why would > anyone want to bother trying to do the task for just one days pay? It simply > isnt worth the time or the hassle for any potential programmer to want to > deal with the task for that reason alone. > > So yes, the bottom line here for you is that you indeed will have to work > on the task yourself or its not going to get done at all. > > I hope you will keep this in mind for any future work you would like > to have performed. > > I have to get back to my work here. > > I hope you have a fruitful and productive day! > > Cheers, > > Rick > > > >> On Jul 28, 2022, at 10:57 AM, Paul Dupuis via use-livecode wrote: >> >> What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Thu Jul 28 13:43:43 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Thu, 28 Jul 2022 13:43:43 -0400 Subject: Livecode Builder developer wanted In-Reply-To: <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> Message-ID: Hi Paul, You should have led with that information. Keys here: Not time sensitive. Pay competitive rates: What is your rate? Be upfront with that if you can. Thanks for clearing things up a bit. Cheers, Rick > On Jul 28, 2022, at 12:23 PM, Paul Dupuis via use-livecode wrote: > > I've hired and managed independent software developers for various businesses for nearly 40 years. I am well aware of the market. > > We pay competitive contract rates. My estimate of time is probably about right for someone who has set up at least 1 or 2 cross-platform LCB DLL wrappers based on decades of estimating IT projects, but it was more meant to suggest the work is something in the scope of many hours to days vs. weeks or months. > > As for job size, if you are a contract developer who has a queue of large jobs providing regular income, good for you. My experience is that many contract developers value non-time sensitive small jobs they can fit in and around larger projects to fill in the inevitable gaps between larger projects that can come up. > > If no one is available or interested, as I said, it is not time sensitive, so we can either wait or tackle it ourselves as time permits. > > Paul Dupuis > Researchware From paul at researchware.com Sat Jul 30 15:53:22 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jul 2022 15:53:22 -0400 Subject: wait 0 with messages Message-ID: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> My understanding of 'wait 0 with messages' is that it will cause any pending messages, that are not scheduled for a time later than the current time, in the pendingMessages queue to be processed before continuing. Messages later than the current time (when the statement is executed) will not be processed (yet). Is this correct? From ahsoftware at sonic.net Sat Jul 30 19:49:36 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 30 Jul 2022 16:49:36 -0700 Subject: wait 0 with messages In-Reply-To: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> Message-ID: <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> On 7/30/22 12:53, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement is > executed) will not be processed (yet). > > Is this correct? My understanding of this is close but not quite the same. The "wait 0 with messages" statement is the fastest implementation ("wait 0") of an opportunity for the system event loop to process any pending instructions. The "with messages" statement in effect yields control to the event loop to check if any "send in time" messages have timed out and are pending or to handle other tasks that may have accumulated (mouse or keyboard events, etc). -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Sat Jul 30 22:02:54 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jul 2022 22:02:54 -0400 Subject: wait 0 with messages In-Reply-To: <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> Message-ID: On 7/30/2022 7:49 PM, Mark Wieder via use-livecode wrote: > On 7/30/22 12:53, Paul Dupuis via use-livecode wrote: >> My understanding of 'wait 0 with messages' is that it will cause any >> pending messages, that are not scheduled for a time later than the >> current time, in the pendingMessages queue to be processed before >> continuing. Messages later than the current time (when the statement >> is executed) will not be processed (yet). >> >> Is this correct? > > My understanding of this is close but not quite the same. > The "wait 0 with messages" statement is the fastest implementation > ("wait 0") of an opportunity for the system event loop to process any > pending instructions. The "with messages" statement in effect yields > control to the event loop to check if any "send in time" messages have > timed out and are pending or to handle other tasks that may have > accumulated (mouse or keyboard events, etc). > So Mark, Your understanding is that 'wait 0' (WITHOUT with messages) would allow OS events like a screen redraw, USB drive insertion/removal, etc. but NOT livecode engine events in the queue like mouseDown, mouseUp, resumeStack, etc, OR That wait 0 (again without with messages) would include in addition to OS events, LC built-in events like mouseDown, resumeStack, etc., but not custom messages (or LC standard messages) sent to the queue via sent in time? Thanks for responding! From ahsoftware at sonic.net Sun Jul 31 01:04:14 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 30 Jul 2022 22:04:14 -0700 Subject: wait 0 with messages In-Reply-To: References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> Message-ID: <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> On 7/30/22 19:02, Paul Dupuis via use-livecode wrote: > So Mark, > > Your understanding is that 'wait 0' (WITHOUT with messages) would allow > OS events like a screen redraw, USB drive insertion/removal, etc. but > NOT livecode engine events in the queue like mouseDown, mouseUp, > resumeStack, etc, > > OR > > That wait 0 (again without with messages) would include in addition to > OS events, LC built-in events like mouseDown, resumeStack, etc., but not > custom messages (or LC standard messages) sent to the queue via sent in > time? I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running the script in the first button will prevent mouseUp events in button 2 from being processed. button 1 script: on mouseUp repeat forever wait 0 end repeat end mouseUp button 2 script: on mouseUp put the name of me & cr after msg end mouseUp Now hit command-period to exit to the debugger, change the script of button 1 to on mouseUp repeat forever wait 0 with messages end repeat end mouseUp and you can click button 2 and see new text in the message box. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Sun Jul 31 15:14:39 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 31 Jul 2022 14:14:39 -0500 Subject: wait 0 with messages In-Reply-To: <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> Message-ID: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: > > I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running > the script in the first button will prevent mouseUp events in button 2 from being processed. I think it must do something, "wait 0" is a workaround for bug 22453 (and 18924 which is now marked as a duplicate.) I had to use the workaround and it works. So my take is that any wait allows LC to do housekeeping, and "with messages" also allows app-generated messages. I'd like to get a confirmation from the team though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Sun Jul 31 23:46:38 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 31 Jul 2022 20:46:38 -0700 Subject: wait 0 with messages In-Reply-To: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> Message-ID: On 7/31/22 12:14, J. Landman Gay via use-livecode wrote: > On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: >> >> I don't think "wait 0" by itself does anything useful. Make a stack >> with two buttons. Running the script in the first button will prevent >> mouseUp events in button 2 from being processed. > > I think it must do something, "wait 0" is a workaround for bug 22453 > (and 18924 which is now marked as a duplicate.) I had to use the > workaround and it works. > > So my take is that any wait allows LC to do housekeeping, and "with > messages" also allows app-generated messages. I'd like to get a > confirmation from the team though. That's pretty bizarre. I wonder what's going on. All I can think of is that processing the wait command gives the java JNI command enough time to recover before processing the mobileControlSet vscroll command. And ios wouldn't need that extra time because there's no java interaction. -- Mark Wieder ahsoftware at gmail.com From hershelflc at gmail.com Fri Jul 1 16:24:45 2022 From: hershelflc at gmail.com (Hershel F) Date: Fri, 1 Jul 2022 16:24:45 -0400 Subject: sorting datagrids In-Reply-To: <240E44BA-75A1-4E14-8226-0C874FFFA8CD@iotecdigital.com> References: <510268AA-C4D4-444A-AE64-99F0307E9C25@gmail.com> <240E44BA-75A1-4E14-8226-0C874FFFA8CD@iotecdigital.com> Message-ID: this is more what i’m concerned. i’ll give it a shot and let you know. thanks. > On Jun 30, 2022, at 7:26 PM, Bob Sneidar via use-livecode wrote: > > > put the dgText of group "myDataGrid" into tText > set the itemDelimiter to tab > > repeat with i = 1 to the number of lines of tText > put item i of tText into tLine > sort items of tLine ascending > put tLine into line i of tText > end repeat > > set the dgText of group "myDataGrid" to tText From bobsneidar at iotecdigital.com Fri Jul 1 19:49:10 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 1 Jul 2022 23:49:10 +0000 Subject: Is LC encryption different for Mac than for Windows?? Message-ID: Hi all. As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! Bob S From bobsneidar at iotecdigital.com Fri Jul 1 19:56:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 1 Jul 2022 23:56:33 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: Hmmm... I think I see what is happening. I compared the encrypted string from the server to the string from the client after it received it via the socket connection. I am only getting the last part of the encrypted string! So it looks like the socket connections using with message is losing data somehow. Bob S > On Jul 1, 2022, at 16:49 , Bob Sneidar via use-livecode wrote: > > Hi all. > > As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. > > The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. > > The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! > > When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) > > How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! > > 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 Jul 1 20:08:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 00:08:33 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? Sent from my iPhone > On Jul 1, 2022, at 16:57, Bob Sneidar wrote: > > Hmmm... I think I see what is happening. I compared the encrypted string from the server to the string from the client after it received it via the socket connection. I am only getting the last part of the encrypted string! > > So it looks like the socket connections using with message is losing data somehow. > > Bob S > > >> On Jul 1, 2022, at 16:49 , Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. >> >> The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. >> >> The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! >> >> When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) >> >> How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! >> >> 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 Jul 1 20:55:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 00:55:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: That's supposed to be Binary Encoding > On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: > > Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? > > Sent from my iPhone > From bobsneidar at iotecdigital.com Fri Jul 1 21:05:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:05:28 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. Bob S > On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: > > That's supposed to be Binary Encoding > >> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >> >> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? >> >> Sent from my iPhone >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at pdslabs.net Fri Jul 1 21:10:52 2022 From: phil at pdslabs.net (Phil Davis) Date: Fri, 1 Jul 2022 18:10:52 -0700 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. Phil Davis On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: > Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. > > Bob S > > >> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: >> >> That's supposed to be Binary Encoding >> >>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >>> >>> Also when I was running it on my Mac, the client in the server were running on the same Macintosh. On the windows machine however Im going over the wire. Should I buy Ineri encoded or something? >>> >>> Sent from my iPhone >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From bobsneidar at iotecdigital.com Fri Jul 1 21:19:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:19:22 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: <4FD9D0C1-A732-4FC1-B162-596F0445DBF0@iotecdigital.com> I do. The server agent was written in LC and I am running it in a community version. Just to eliminate the possibility that things are different between Community 9.5 and Pro 9.6.8, I am DL'ing the latest (which I am running on the Mac). I'll try with that. Basically I encrypt and decrypt using aes256 and a key and salt value I store as constants in both the client and the server. I'm really stumped. This should work as advertised. Bob S > On Jul 1, 2022, at 18:10 , Phil Davis via use-livecode wrote: > > I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. > > Phil Davis From phil at pdslabs.net Fri Jul 1 21:23:28 2022 From: phil at pdslabs.net (Phil Davis) Date: Fri, 1 Jul 2022 18:23:28 -0700 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: I don't know about newer LC versions, but some older ones don't do "read from socket until EOF" correctly. Because of that, I added a data header containing the length of the data in bytes. On the receiving end, something like this happens: read from socket for 1 line put it into tLength read from socket for tLength put it into tData close socket I add error-checking of course. HTH - Phil On 7/1/22 6:10 PM, Phil Davis via use-livecode wrote: > I was about to suggest that - you beat me to it. My client/server apps > use base64 encode/decode as the final "envelope" for the data before > network transfer. But I have LC on both ends of the transfer, and you > may not. But ultimately it shouldn't matter. > > Phil Davis > > > On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: >> Okay so I base64Encoded the encrypted string before sending over the >> wire, and base64Decoded on the receiving end. Same thing coming back. >> I am still getting the error. It's not a problem with sending data >> over the wire. >> >> Bob S >> >> >>> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode >>> wrote: >>> >>> That's supposed to be Binary Encoding >>> >>>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode >>>> wrote: >>>> >>>> Also when I was running it on my Mac, the client in the server >>>> were running on the same Macintosh. On the windows machine however >>>> Im going over the wire. Should I buy Ineri encoded or something? >>>> >>>> Sent from my iPhone >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis (503) 307-4363 From bobsneidar at iotecdigital.com Fri Jul 1 21:27:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:27:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: OIC. Well I am using the non-blocking method using with message. I don't read from until. All the data should come through then send the message. It may be that there is some kind of limit on the length of the data, but that would suck. Also it doesn't explain why when the client and the server are both running on the Mac, it works flawlessly. A socket is a socket. Bob S > On Jul 1, 2022, at 18:23 , Phil Davis via use-livecode wrote: > > I don't know about newer LC versions, but some older ones don't do "read from socket until EOF" correctly. Because of that, I added a data header containing the length of the data in bytes. On the receiving end, something like this happens: > > read from socket for 1 line > put it into tLength > read from socket for tLength > put it into tData > close socket > > I add error-checking of course. > > HTH - > Phil > > > On 7/1/22 6:10 PM, Phil Davis via use-livecode wrote: >> I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. >> >> Phil Davis >> >> >> On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: >>> Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. >>> >>> Bob S >>> >>> >>>> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: >>>> >>>> That's supposed to be Binary Encoding >>>> >>>>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >>>>> >>>>> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? >>>>> >>>>> Sent from my iPhone >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Phil Davis > (503) 307-4363 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Sat Jul 2 20:18:46 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 3 Jul 2022 10:18:46 +1000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: Is socketTimeOut set high enough? Neville From ms1 at soas.ac.uk Sun Jul 3 09:26:24 2022 From: ms1 at soas.ac.uk (Muaath Salih) Date: Sun, 3 Jul 2022 14:26:24 +0100 Subject: No subject Message-ID: From bobsneidar at iotecdigital.com Sun Jul 3 18:02:14 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sun, 3 Jul 2022 22:02:14 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> Ill check later. Sent from my iPhone > On Jul 2, 2022, at 17:20, Neville Smythe via use-livecode wrote: > > Is socketTimeOut set high enough? > > > Neville > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Jul 4 11:08:50 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 4 Jul 2022 18:08:50 +0300 Subject: [ANN] Release 9.6.8 RC-3 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 RC-3. Getting the Release =================== You can find the release in your LiveCode account area or get it via the automatic updater. To find the 9.6.8 RC-3 test release in your LiveCode account, please scroll down to below the list of stable releases, to find your available test releases. Release Contents ================ LiveCode 9.6.8 RC-3 comes with 1 regression bugfix: - The standalone builder now ensures all executables in a macOS standalone only contain the requested architectures For the full list of all fixes, updates and enhancements please see the release notes: http://downloads.livecode.com/livecode/9_6_8/LiveCodeNotes-9_6_8_rc_3.pdf Known issues ============ - The Browser widget's native layer is not shown in some Linux distros with Cinnamon window manager. - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS yet. Required Software ================= To build iOS apps with LiveCode you must have the appropriate versions of Xcode as follows: - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS 12.1 SDK - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS 13.2 SDK - macOS 10.15.4: Xcode 12.4.x - LiveCode builds iOS apps using the iOS 14.4 SDK - macOS 11+ : Xcode 13.2.x - LiveCode builds iOS apps using the iOS 15.2 SDK There is a full list of working LiveCode/macOS/Xcode combinations here: https://livecode.com/faq Note: Whilst we endeavour to release updated versions of LiveCode supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly recommend disabling automatic update of Xcode or downloading the specific version of Xcode required directly from the Apple developer portal and installing it separately. Important: From the start of April 2022, Apple is only accepting apps built using iOS15.x SDKs. This means that, if you wish to submit apps to the AppStore you will have to be running at least macOS 11 in order to be able to install the necessary version of Xcode. To build macOS apps with an Apple architecture slice requires macOS High Sierra (10.13) or higher. Feedback ======== Please report any bugs encountered on our quality center at http://quality.livecode.com/ We have a forum available for discussing LiveCode at http://forums.livecode.com Have fun! The LiveCode Team -- From mkoob at rogers.com Mon Jul 4 12:06:54 2022 From: mkoob at rogers.com (Martin Koob) Date: Mon, 4 Jul 2022 12:06:54 -0400 Subject: {OT} Are there any ffmpeg "experts" on this list? In-Reply-To: References: Message-ID: <2B9CC490-0274-4F09-AB1E-921F14511B68@rogers.com> Hi Mark Yes mergAV can be used concatenate videos, resize them, layer them and then export them to a video file. I wrote an app that did this a while ago on LiveCode 6.7.3. I haven’t tried using mergAV on LC 9.x. It would be nice if there was a set of common commands that could be used to do video editing on either Mac or Windows, just like player object does with video playback. Probably not a high demand for that though to make it cost effective. Martin > On Jun 24, 2022, at 12:23 PM, Mark Waddingham via use-livecode wrote: > > FWIW, I *think* mergAV can do similar things on macOS* to the mediafoundation external on Windows - although the APIs, while similar, do require different code. From paul at researchware.com Tue Jul 5 17:20:29 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 5 Jul 2022 17:20:29 -0400 Subject: Images and arrays... Message-ID: I am drawing a blank: If I have the following code:                   export snapshot from rect tRect of player "mediaConvert" of stack "libHrAPI" to tImage as PNG                   put tImage into pRefArray[tRef] The actual image (not a reference, such as a long ID) is placed in the tRefArray[tRef] array element However, if I have a variable tImageID that contains a reference to an image such as image id 10328 of card id 10001 of stack "X" How do I get that actual Image stored in the array? put tImageID into pRefArray[tRef] -- results in the array element storing the long ID put (tImageID) into pRefArray[tRef] -- also results in the array element storing the long ID. I thought the () might for the long ID to be evaluated to an actual image From bobsneidar at iotecdigital.com Tue Jul 5 21:47:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 01:47:24 +0000 Subject: Images and arrays... In-Reply-To: References: Message-ID: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> Put the imageData? Sent from my iPhone > On Jul 5, 2022, at 18:40, Paul Dupuis via use-livecode wrote: > > I am drawing a blank: > > If I have the following code: > > export snapshot from rect tRect of player "mediaConvert" of stack "libHrAPI" to tImage as PNG > put tImage into pRefArray[tRef] > > The actual image (not a reference, such as a long ID) is placed in the tRefArray[tRef] array element > > However, if I have a variable tImageID that contains a reference to an image such as > > image id 10328 of card id 10001 of stack "X" > > How do I get that actual Image stored in the array? > > put tImageID into pRefArray[tRef] -- results in the array element storing the long ID > > put (tImageID) into pRefArray[tRef] -- also results in the array element storing the long ID. I thought the () might for the long ID to be evaluated to an actual 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 bobsneidar at iotecdigital.com Tue Jul 5 21:49:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 01:49:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> References: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> Message-ID: <3EF815F8-847D-4094-9938-8AA8DF171889@iotecdigital.com> So strange. I built in some logging, removed the base64 stuff, and now it works! Timing problem of some sort? Who knows. Sent from my iPhone > On Jul 3, 2022, at 15:03, Bob Sneidar via use-livecode wrote: > > Ill check later. > > Sent from my iPhone > >> On Jul 2, 2022, at 17:20, Neville Smythe via use-livecode wrote: >> >> Is socketTimeOut set high enough? >> >> >> Neville >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Jul 5 23:22:38 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 5 Jul 2022 23:22:38 -0400 Subject: Images and arrays... In-Reply-To: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> References: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> Message-ID: imagedata does not include alpha as odd as it sounds .... "the text of image" contains all of the data. :D On Tue, Jul 5, 2022 at 9:48 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Put the imageData? > > Sent from my iPhone > > > On Jul 5, 2022, at 18:40, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I am drawing a blank: > > > > If I have the following code: > > > > export snapshot from rect tRect of player > "mediaConvert" of stack "libHrAPI" to tImage as PNG > > put tImage into pRefArray[tRef] > > > > The actual image (not a reference, such as a long ID) is placed in the > tRefArray[tRef] array element > > > > However, if I have a variable tImageID that contains a reference to an > image such as > > > > image id 10328 of card id 10001 of stack "X" > > > > How do I get that actual Image stored in the array? > > > > put tImageID into pRefArray[tRef] -- results in the array element > storing the long ID > > > > put (tImageID) into pRefArray[tRef] -- also results in the array element > storing the long ID. I thought the () might for the long ID to be evaluated > to an actual 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 neville.smythe at optusnet.com.au Wed Jul 6 00:57:17 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 6 Jul 2022 14:57:17 +1000 Subject: Is LC encryption different for Mac than for Windows?? Message-ID: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> Bob Sneider wrote > So strange. I built in some logging, removed the base64 stuff, and now it > works! Timing problem of some sort? Who knows. That’s what I was inferring. I’d suggest you increase socketTimeOut to avoid the problem recurring (or reduce it if you want to test that timing was the problem!) It may well be that > A socket is a socket but performance ain’t performance Neville From bobsneidar at iotecdigital.com Wed Jul 6 11:15:17 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 15:15:17 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> References: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> Message-ID: <4521035E-856F-4C0D-AF6E-643C0E8D2B3B@iotecdigital.com> Thanks. I still have to test outside the network. If I have issues I will definitely check the socketTimeoutInterval. Currently it is 10000. I take it that is milliseconds. Bob S > On Jul 5, 2022, at 21:57 , Neville Smythe via use-livecode wrote: > > Bob Sneider wrote >> So strange. I built in some logging, removed the base64 stuff, and now it >> works! Timing problem of some sort? Who knows. > > That’s what I was inferring. I’d suggest you increase socketTimeOut to avoid the problem recurring (or reduce it if you want to test that timing was the problem!) > > It may well be that > >> A socket is a socket > > but performance ain’t performance > > Neville > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 8 08:03:55 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Fri, 8 Jul 2022 15:03:55 +0300 Subject: [[ ANN ]] Release 9.6.8 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 STABLE You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/livecode-9-6-8-stable-m1-and-onwards-apple-architecture-support/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From markclark at mac.com Fri Jul 8 13:21:55 2022 From: markclark at mac.com (Mark Clark) Date: Fri, 8 Jul 2022 12:21:55 -0500 Subject: MegaBundle whatnot Message-ID: I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? TIA, Mark (on digest mode) From ambassador at fourthworld.com Fri Jul 8 13:34:30 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jul 2022 10:34:30 -0700 Subject: Tree Widget: hilitedValue? Message-ID: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> I see the Tree widget supports a hilitedElement property, which is useful for managing the selection in the UI. Is there a one-liner for obtaining not the element path but the value? It wouldn't kill me to extract the arrayData and turn a hilitedElement path like: level1,level2,level3, ...into a proper array notation to obtain the value at: tArray["level1"]["level2"]["level3"] But it seems such a common need I'm guessing I'm overlooking a more direct way to do that. TIA - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Fri Jul 8 15:00:23 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 8 Jul 2022 21:00:23 +0200 Subject: MegaBundle whatnot In-Reply-To: References: Message-ID: Mark, that seems to be a problem with Indy and Business licenses. I can reproduce it here with an Indy license. Seems, the Enh.Pack needs to be modified a little bit.;) As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. https://quality.livecode.com/show_bug.cgi?id=23799 Maybe you want to add yourself to the CC list. Regards, Matthias > Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode : > > I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? > > Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? > > TIA, > Mark (on digest mode) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 8 19:14:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 8 Jul 2022 23:14:40 +0000 Subject: Encrypted Data over Sockets Message-ID: Hi all. I'm running into a curious thing. I am sending encrypted data over a socket connection. When I send the data, I am using blocking mode, where the commands look like this: if tCurrentConnectionA ["ssl"] is true then put slyEncrypt(tSocketData) into tSocketData end if close socket tSocket -- in case it was left open open socket to tSocket write tSocketData & linefeed to socket tSocket read from socket tSocket until linefeed put it into tReceivedData if the last char of tReceivedData is linefeed then \ delete last char of tReceivedData close socket tSocket if tCurrentConnectionA ["ssl"] is true then put slyDecrypt(tReceivedData) into tReceivedData end if Now just to belay questions that might be asked, I know that the read from socket is working because I get a salted hash back, so the server is doing what it is supposed to on the other end. However when I go to decrypt the hash I am SOMETIMES getting the dreaded Wrong final block length as an error. Curiously, sometimes it works! My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? I need a delimiter. Read from socket until eof fails with a timeout. That is intensly unfortunate by the way, it ought to work. Bob S From ahsoftware at sonic.net Fri Jul 8 19:35:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 16:35:41 -0700 Subject: Encrypted Data over Sockets In-Reply-To: References: Message-ID: On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: > My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? Not a valid question. If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Jul 8 19:49:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 8 Jul 2022 23:49:22 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: Message-ID: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. Bob S > On Jul 8, 2022, at 16:35 , Mark Wieder via use-livecode wrote: > > On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: > >> My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? > > Not a valid question. > > If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. > > -- > 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 alex at tweedly.net Fri Jul 8 20:47:07 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 9 Jul 2022 01:47:07 +0100 Subject: Encrypted Data over Sockets In-Reply-To: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Message-ID: <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> But, an encoded array is STILL binary data. So any issues with "read until linefeed" will still exist. Try sending a header with number of bytes, followed by the bytes. If you really wanted, you could do:    write  (the number of bytes in tSocketData) & linefeed to socket tSocket    write tSocketData & linefeed to socket tSocket and then when you read,    read from socket tSocket until linefeed    put it into tNumBytes    read from socket tSocket until linefeed    put it into tData and compare tNumbytes with the number of bytes in tData Or, just do    read tnumbytes form socket tSocket Alex. On 09/07/2022 00:49, Bob Sneidar via use-livecode wrote: > Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. > > Bob S > > >> On Jul 8, 2022, at 16:35 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: >> >>> My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? >> Not a valid question. >> >> If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. >> >> -- >> 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 Fri Jul 8 20:48:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 17:48:41 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Message-ID: <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: > Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. Not sure what "looks like" an encoded array should mean. When you encode an array you get binary data. You can't treat it like text. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Fri Jul 8 20:58:03 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 17:58:03 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> Message-ID: On 7/8/22 17:47, Alex Tweedly via use-livecode wrote: > But, an encoded array is STILL binary data. So any issues with "read > until linefeed" will still exist. > > Try sending a header with number of bytes, followed by the bytes. Yeah. What he said. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Jul 8 22:14:42 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:14:42 +0000 Subject: Encrypted Data over Sockets In-Reply-To: <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? Bob S > On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: > > On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. > > Not sure what "looks like" an encoded array should mean. > When you encode an array you get binary data. You can't treat it like text. > > -- > 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 Fri Jul 8 22:47:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:47:40 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> Okay apparently base64Encode/Decode is my friend. I have this working now without encryption. I will re-enable encryption and see if that works. Bob S > On Jul 8, 2022, at 19:14 , Bob Sneidar via use-livecode wrote: > > It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. > > I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? > > Bob S > > >> On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >>> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. >> >> Not sure what "looks like" an encoded array should mean. >> When you encode an array you get binary data. You can't treat it like text. >> >> -- >> 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 bobsneidar at iotecdigital.com Fri Jul 8 22:53:58 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:53:58 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: <0FE598F2-3CF3-4D4E-8300-F608B3D8897E@iotecdigital.com> Hi all. Thanks for putting up with me. I finally got it all to work using base64Encode/Decode on the encrypted string before sending it with a delimiter appended. Same thing coming back. Thank for all your patience. I almost became a patient myself. Bob S > On Jul 8, 2022, at 19:14 , Bob Sneidar via use-livecode wrote: > > It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. > > I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? > > Bob S > > >> On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >>> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. >> >> Not sure what "looks like" an encoded array should mean. >> When you encode an array you get binary data. You can't treat it like text. >> >> -- >> 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 matthias_livecode_150811 at m-r-d.de Sat Jul 9 03:39:50 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 9 Jul 2022 09:39:50 +0200 Subject: MegaBundle whatnot In-Reply-To: References: Message-ID: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Mark, What I forgot. I assume you have a current subscription, right? So why do you not try a newer LC release; one of the new editions without Indy and business in the name? Anything higher than 9.63 should do. Regards Matthias Von meinem iPhone gesendet > Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: > > Mark, > > that seems to be a problem with Indy and Business licenses. I can reproduce it here with an Indy license. Seems, the Enh.Pack needs to be modified a little bit.;) > > As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. > > https://quality.livecode.com/show_bug.cgi?id=23799 > > Maybe you want to add yourself to the CC list. > > Regards, > Matthias > > >> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode : >> >> I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? >> >> Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? >> >> TIA, >> Mark (on digest mode) >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From kaveh at rivervalleytechnologies.com Sat Jul 9 07:41:26 2022 From: kaveh at rivervalleytechnologies.com (Kaveh) Date: Sat, 9 Jul 2022 12:41:26 +0100 Subject: MegaBundle whatnot In-Reply-To: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Message-ID: Why does LiveCode make the licenses so complicated? I try to understand from time to time so I can repurchase, then give up... On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Mark, > What I forgot. > > I assume you have a current subscription, right? > So why do you not try a newer LC release; one of the new editions without > Indy and business in the name? Anything higher than 9.63 should do. > > Regards > Matthias > > Von meinem iPhone gesendet > > > Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: > > > > Mark, > > > > that seems to be a problem with Indy and Business licenses. I can > reproduce it here with an Indy license. Seems, the Enh.Pack needs to be > modified a little bit.;) > > > > As you are on digest mode and i do not know when you read this, I've > filed a bug already to speed it up a little bit. > > > > https://quality.livecode.com/show_bug.cgi?id=23799 > > > > Maybe you want to add yourself to the CC list. > > > > Regards, > > Matthias > > > > > >> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> I went ahead and purchased the megabundle, mostly for the LC > Enhancement piece. Got that download and clicked the install widgets and > the widgets all show “unlicensed.” Hmm, what? > >> > >> Tried to re-license and for some reason I only see my business license > as an option (also have the old commercial license whatever that maps to > now). So, np figure it out later, selected business license and LC starts > but the enhancements still show unlicensed. Is there something manual I’m > missing? > >> > >> TIA, > >> Mark (on digest mode) > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan PhD Director River Valley Technologies ● Twitter ● LinkedIn ● ORCID *Accelerating the Communication of Research* From jbv at souslelogo.com Sat Jul 9 07:43:03 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sat, 09 Jul 2022 07:43:03 -0400 Subject: LC 9.6.8 and UTF-8 on MacOS 10.15 Message-ID: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> Hi list, I have a serie of text files in UTF-8 format for which I need to do some processing in LC, and then save to a single text file also in UTF-8. I am using the following code : open file tpath for UTF8 read read from file tpath until EOF close file tpath1 --put it into tfile put textdecode(it,"UTF-8") into tfile -- processing open file tpath2 for UTF8 write write liste_credits to file tpath2 close file tpath2 If I use "put it into tfile" instead of "put textDecode...", the text content is full of typical gibberish (such as "" instead of ""). I thought the latest LC versions could process UTF-8 natively. So why is "textdecode" necessary to obtain special characters in their true form ? Thank you in advance. jbv From sean at pidigital.co.uk Sat Jul 9 08:50:49 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Sat, 9 Jul 2022 13:50:49 +0100 Subject: LC 9.6.8 and UTF-8 on MacOS 10.15 In-Reply-To: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> References: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> Message-ID: <806C3DD1-5EAA-48F5-B8BD-4FAE343D2609@pidigital.co.uk> What result do you get from: put it contains “æ” Sean Cole Pi > On 9 Jul 2022, at 12:43, jbv via use-livecode wrote: > > æ From ahsoftware at sonic.net Sat Jul 9 11:37:21 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 9 Jul 2022 08:37:21 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> Message-ID: <62687332-7e51-8e02-2709-98c18073ea4f@sonic.net> On 7/8/22 19:47, Bob Sneidar via use-livecode wrote: > Okay apparently base64Encode/Decode is my friend. I have this working now without encryption. I will re-enable encryption and see if that works. Base64 encoding will do the trick but at the expense of making your data strings twice as long as the binary equivalents. -- Mark Wieder ahsoftware at gmail.com From dan at clearvisiontech.com Sat Jul 9 15:07:44 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Sat, 9 Jul 2022 19:07:44 +0000 Subject: Signing and Uploading apps to the Mac App Store HELL! Message-ID: <6AECE726-DF3C-4B4B-BE69-5757F25B2C2C@clearvisiontech.com> Greetings! I am pulling out my hair in getting my app prepared for the MacApp Store (and for downloading from my website). I can't take it anymore!! Is there someone here I can pay to either do this for me, or walk me through this hideous process? -Dan From jacque at hyperactivesw.com Sat Jul 9 16:17:23 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 9 Jul 2022 15:17:23 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> Message-ID: <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: > I see the Tree widget supports a hilitedElement property, which is useful for managing the > selection in the UI. > > Is there a one-liner for obtaining not the element path but the value? I'm using an older version, but here the hilitedElement includes the values of each element in the path. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Jul 9 17:07:01 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 9 Jul 2022 16:07:01 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> Message-ID: <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> On 7/9/22 3:17 PM, J. Landman Gay via use-livecode wrote: > On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: >> I see the Tree widget supports a hilitedElement property, which is useful for managing the >> selection in the UI. >> >> Is there a one-liner for obtaining not the element path but the value? > > I'm using an older version, but here the hilitedElement includes the values of each element in > the path. > I misunderstood, you don't mean just the names of the elements. The value shows up as part of the tree unless you turn off "show values". I think you'll have to parse the array to actually get the values in a leaf. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From markclark at mac.com Sat Jul 9 19:25:10 2022 From: markclark at mac.com (Mark Clark) Date: Sat, 9 Jul 2022 18:25:10 -0500 Subject: use-livecode Digest, Vol 226, Issue 8 In-Reply-To: References: Message-ID: <9AC9115B-E414-471E-8729-107880559181@mac.com> Hey, saw your post this am and much appreciated. I sent a request to support as well. Thanks for the assist and confirmation! Mark It seems that each time I sign up for the bug tracker and or forums my main livecode.com password gets mangled. Been happening for years and if I remember I’ll ask for support help there. Likely something to do with keychain being confused about similar url’s. > On Jul 9, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. > > https://quality.livecode.com/show_bug.cgi?id=23799 > > > Maybe you want to add yourself to the CC list. > > Regards, > Matthias From matthias_livecode_150811 at m-r-d.de Sat Jul 9 19:34:49 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 10 Jul 2022 01:34:49 +0200 Subject: use-livecode Digest, Vol 226, Issue 8 In-Reply-To: <9AC9115B-E414-471E-8729-107880559181@mac.com> References: <9AC9115B-E414-471E-8729-107880559181@mac.com> Message-ID: <1F9D5EFE-55D7-4B15-93B8-4DF55115FF7B@m-r-d.de> > Am 10.07.2022 um 01:25 schrieb Mark Clark via use-livecode : > > Hey, saw your post this am and much appreciated. I sent a request to support as well. > > Thanks for the assist and confirmation! > > Mark > > It seems that each time I sign up for the bug tracker and or forums my main livecode.com password gets mangled. Been happening for years and if I remember I’ll ask for support help there. Likely something to do with keychain being confused about similar url’s. > The easiest way to see if it is really a keychain thing is, search for livecode in KeyChain.app and delete all Livecode entries and then reset your password for Livecode.com account and the QualityCenter. Regards, Matthias >> On Jul 9, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: >> >> As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. >> >> https://quality.livecode.com/show_bug.cgi?id=23799 > >> >> Maybe you want to add yourself to the CC list. >> >> 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 brian at milby7.com Sat Jul 9 20:11:29 2022 From: brian at milby7.com (Brian Milby) Date: Sat, 9 Jul 2022 20:11:29 -0400 Subject: Tree Widget: hilitedValue? In-Reply-To: <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> Message-ID: I don't think there is an existing one liner, but it can be done a couple ways. Here is a recursive function defined in the PI code for Custom Props: on fetchArrayDataOnPath pPath, pArray, @rData local tKey put item 1 of pPath into tKey if the number of items in pPath is 1 then if tKey is not among the keys of pArray then return "no such key" else put pArray[tKey] into rData return empty end if else delete item 1 of pPath fetchArrayDataOnPath pPath, pArray[tKey], rData end if end fetchArrayDataOnPath There are other handlers in that script that could be useful as well (add/set/delete). You could also turn the path into an array (but lose the error checking above): function getValue pArray, pPath split pPath by comma return pArray[pPath] end getValue Thanks, Brian On Sat, Jul 9, 2022 at 5:08 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 7/9/22 3:17 PM, J. Landman Gay via use-livecode wrote: > > On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: > >> I see the Tree widget supports a hilitedElement property, which is > useful for managing the > >> selection in the UI. > >> > >> Is there a one-liner for obtaining not the element path but the value? > > > > I'm using an older version, but here the hilitedElement includes the > values of each element in > > the path. > > > > I misunderstood, you don't mean just the names of the elements. The value > shows up as part of > the tree unless you turn off "show values". I think you'll have to parse > the array to actually > get the values in a leaf. > > -- > 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 paul at researchware.com Sun Jul 10 12:58:16 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 10 Jul 2022 12:58:16 -0400 Subject: macOS Ventura (13.x.x)... Message-ID: Is anyone out there in Livecode land running a developer beta of macOS Ventura (13.x.x)? If so, I am hoping you can perform a quick test: systemVersion() returns 10.16 for macOS Big Sur or Monterey under Livecode 9.6.7 and earlier (in the 9.6.x versions). The systemVersion() bug was just fixed in LC 9.6.8. I'd like to ask if someone on Ventura (13.x.x) can run LC 9.6.7 or any 9.6.x less than 9.6.8) and confirm that systemVersion() also reports 10.16 for macOS Ventura - i.e. that the systemVersion() bug behaves the same way under Ventura for recent versions of LC less than LC 9.6.8. Thank you to anyone that can do this test in advance, Paul Dupuis Researchware From colinholgate at gmail.com Sun Jul 10 13:26:31 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 10 Jul 2022 11:26:31 -0600 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. Opening a stack made in 9.6.3 with Monterey, does show 10.16.0 when run in 9.6.3 in Ventura. > On Jul 10, 2022, at 10:58 AM, Paul Dupuis via use-livecode wrote: > > Is anyone out there in Livecode land running a developer beta of macOS Ventura (13.x.x)? > > If so, I am hoping you can perform a quick test: > > systemVersion() returns 10.16 for macOS Big Sur or Monterey under Livecode 9.6.7 and earlier (in the 9.6.x versions). The systemVersion() bug was just fixed in LC 9.6.8. > > I'd like to ask if someone on Ventura (13.x.x) can run LC 9.6.7 or any 9.6.x less than 9.6.8) and confirm that systemVersion() also reports 10.16 for macOS Ventura - i.e. that the systemVersion() bug behaves the same way under Ventura for recent versions of LC less than LC 9.6.8. > > Thank you to anyone that can do this test in advance, > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Sun Jul 10 14:29:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 10 Jul 2022 14:29:08 -0400 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: <9feab550-465d-f0f3-9754-cf7ba7c96259@researchware.com> On 7/10/2022 1:26 PM, Colin Holgate via use-livecode wrote: > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. > > Opening a stack made in 9.6.3 with Monterey, does show 10.16.0 when run in 9.6.3 in Ventura. > > Thank you. From ambassador at fourthworld.com Sun Jul 10 16:33:15 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 10 Jul 2022 13:33:15 -0700 Subject: Tree Widget: hilitedValue? In-Reply-To: References: Message-ID: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> Brian Milby wrote: > You could also turn the path into an array (but lose the error > checking above): > > function getValue pArray, pPath > split pPath by comma > return pArray[pPath] > end getValue Thanks, Brian. I keep forgetting we can use an array as an element specifier. Has that been around the whole time, or was it added in recent years? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Sun Jul 10 16:45:35 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Jul 2022 15:45:35 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> Message-ID: On 7/9/22 7:11 PM, Brian Milby via use-livecode wrote: > function getValue pArray, pPath > split pPath by comma > return pArray[pPath] > end getValue I keep forgetting we can do that. It's cool, but I don't understand how it works. Splitting the path by comma produces a numbered array, and yet the function appears to ignore the numerical keys and return only the element values. How come? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Jul 10 16:49:23 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Jul 2022 15:49:23 -0500 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. Sounds like the OSS community has some work to do, if there is anyone with the skills still there. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brian at milby7.com Sun Jul 10 17:24:06 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 10 Jul 2022 17:24:06 -0400 Subject: Tree Widget: hilitedValue? In-Reply-To: References: Message-ID: <6ED6C57B-246A-45EB-8128-69A655C9E215@milby7.com> If pPath[1] = “a” and pPath[2] = “b” Then pArray[pPath] is the same as saying pArray[“a”][“b”] I’m not sure when it was added. It is relatively recent (7 or 8 I think, but not sure) Thanks, Brian Sent from my iPhone > On Jul 10, 2022, at 4:46 PM, J. Landman Gay via use-livecode wrote: > > On 7/9/22 7:11 PM, Brian Milby via use-livecode wrote: >> function getValue pArray, pPath >> split pPath by comma >> return pArray[pPath] >> end getValue > > I keep forgetting we can do that. It's cool, but I don't understand how it works. Splitting the path by comma produces a numbered array, and yet the function appears to ignore the numerical keys and return only the element values. > > How come? > > -- > 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 paulmcclernan at gmail.com Mon Jul 11 02:45:01 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Mon, 11 Jul 2022 02:45:01 -0400 Subject: macOS Ventura (13.x.x)... In-Reply-To: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: The OSS "community" already had TONs of work to do. Apparently a lot of other software is crashing with macOS Ventura as well. I wonder why? Time to install Ventura and find out I guess. Every year this former mac fan-boy inches closer to becoming a Linux regular. On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode wrote: > > On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. > > Sounds like the OSS community has some work to do, if there is anyone with the skills still there. > > -- > 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 richmondmathewson at gmail.com Mon Jul 11 02:53:03 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 11 Jul 2022 08:53:03 +0200 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: Well there go my plans for early adoption. I do feel that the 'new OS a year' model means that ALL the versions are unfinished. I could say the same about LiveCode versions. Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the niggles relating to the elevator theory of human evolution. On Mon, 11 Jul 2022, 08:46 Paul McClernan via use-livecode, < use-livecode at lists.runrev.com> wrote: > The OSS "community" already had TONs of work to do. > > Apparently a lot of other software is crashing with macOS Ventura as well. > I wonder why? Time to install Ventura and find out I guess. > > Every year this former mac fan-boy inches closer to becoming a Linux > regular. > > > On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode > wrote: > > > > On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > > > With 9.6.3 Community version, showing the message box, or the script > window of a button, crashes LiveCode right away. > > > > Sounds like the OSS community has some work to do, if there is anyone > with the skills still there. > > > > -- > > 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 heather at livecode.com Mon Jul 11 04:27:50 2022 From: heather at livecode.com (Heather Laine) Date: Mon, 11 Jul 2022 09:27:50 +0100 Subject: MegaBundle whatnot In-Reply-To: References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Message-ID: <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Kaveh and Co, We have actually simplified the licensing in the move to Single Edition, which is what is causing the confusion here. There is no such thing as Indy or Business anymore. It's all just LiveCode. You pick the platforms you want and off you go... However the new Enhancements Bundle widgets post-date Indy/Business and hence do not recognise it. The solution being simply to run the latest version. 9.6.8 or 10 dp 4 will be just fine. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 9 Jul 2022, at 12:41, Kaveh via use-livecode wrote: > > Why does LiveCode make the licenses so complicated? I try to understand > from time to time so I can repurchase, then give up... > > On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Mark, >> What I forgot. >> >> I assume you have a current subscription, right? >> So why do you not try a newer LC release; one of the new editions without >> Indy and business in the name? Anything higher than 9.63 should do. >> >> Regards >> Matthias >> >> Von meinem iPhone gesendet >> >>> Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: >>> >>> Mark, >>> >>> that seems to be a problem with Indy and Business licenses. I can >> reproduce it here with an Indy license. Seems, the Enh.Pack needs to be >> modified a little bit.;) >>> >>> As you are on digest mode and i do not know when you read this, I've >> filed a bug already to speed it up a little bit. >>> >>> https://quality.livecode.com/show_bug.cgi?id=23799 >>> >>> Maybe you want to add yourself to the CC list. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < >> use-livecode at lists.runrev.com>: >>>> >>>> I went ahead and purchased the megabundle, mostly for the LC >> Enhancement piece. Got that download and clicked the install widgets and >> the widgets all show “unlicensed.” Hmm, what? >>>> >>>> Tried to re-license and for some reason I only see my business license >> as an option (also have the old commercial license whatever that maps to >> now). So, np figure it out later, selected business license and LC starts >> but the enhancements still show unlicensed. Is there something manual I’m >> missing? >>>> >>>> TIA, >>>> Mark (on digest mode) >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Kaveh Bazargan PhD > Director > River Valley Technologies ● Twitter > ● LinkedIn > ● ORCID > > *Accelerating the Communication of Research* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Mon Jul 11 07:35:07 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 11 Jul 2022 20:35:07 +0900 Subject: What is the best way to trigger an action at a certain time? Message-ID: Dear all, I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? Any pointers appreciated! Tim Selander Tokyo, Japan From tore.nilsen at me.com Mon Jul 11 07:43:45 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Mon, 11 Jul 2022 13:43:45 +0200 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: Message-ID: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> For this I would use a recursive approach with «send in time» something like this: on openStack checkTime end openStack on checkTime ## Do your routines of checking time, performing the required action etc. send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you end checkTime Best regards Tore Nilsen > 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : > > Dear all, > > I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. > > In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? > > Any pointers appreciated! > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Mon Jul 11 07:47:33 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 11 Jul 2022 20:47:33 +0900 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: Tore, Interesting! 'send in time' is a new one for me. Thanks! Tim On 2022.07.11 20:43, Tore Nilsen via use-livecode wrote: > For this I would use a recursive approach with «send in time» something like this: > > on openStack > checkTime > end openStack > > on checkTime > ## Do your routines of checking time, performing the required action etc. > send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you > end checkTime > > Best regards > Tore Nilsen > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : >> >> Dear all, >> >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? >> >> Any pointers appreciated! >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Mon Jul 11 08:22:20 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 11 Jul 2022 06:22:20 -0600 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: <8E31A85E-2C32-45EB-BFAB-62C716D9E6AC@gmail.com> In general, Ventura is going well. > On Jul 11, 2022, at 12:53 AM, Richmond Mathewson via use-livecode wrote: > > Well there go my plans for early adoption. > > I do feel that the 'new OS a year' model means that ALL the versions are > unfinished. > > I could say the same about LiveCode versions. > > Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the > niggles relating to the elevator theory of human evolution. > > On Mon, 11 Jul 2022, 08:46 Paul McClernan via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> The OSS "community" already had TONs of work to do. >> >> Apparently a lot of other software is crashing with macOS Ventura as well. >> I wonder why? Time to install Ventura and find out I guess. >> >> Every year this former mac fan-boy inches closer to becoming a Linux >> regular. >> >> >> On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode >> wrote: >>> >>> On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: >>>> With 9.6.3 Community version, showing the message box, or the script >> window of a button, crashes LiveCode right away. >>> >>> Sounds like the OSS community has some work to do, if there is anyone >> with the skills still there. >>> >>> -- >>> 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 MikeKerner at roadrunner.com Mon Jul 11 09:14:08 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 11 Jul 2022 09:14:08 -0400 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: I've got a library for adding CRON functionality, if you want something more elaborate. https://github.com/macMikey/mikeys-cron-library On Mon, Jul 11, 2022 at 7:48 AM Tim Selander via use-livecode < use-livecode at lists.runrev.com> wrote: > Tore, > > Interesting! 'send in time' is a new one for me. > Thanks! > > Tim > > On 2022.07.11 20:43, Tore Nilsen via use-livecode wrote: > > For this I would use a recursive approach with «send in time» something > like this: > > > > on openStack > > checkTime > > end openStack > > > > on checkTime > > ## Do your routines of checking time, performing the required action > etc. > > send checkTime to me in 300 seconds. ## you set the interval to > whatever is best for you > > end checkTime > > > > Best regards > > Tore Nilsen > > > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Dear all, > >> > >> I want to have an LC app running on a computer doing nothing but > watching the time. At predetermined times, I then want it to run a command. > A call to an API on a website. > >> > >> In the old HC days, I remember using "on idle" to watch for a set time. > But even then, using "on idle" was less than ideal. CPU hog. What is the > preferred/LC way to have an app trigger a command at a specific time of day? > >> > >> Any pointers appreciated! > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 mark at livecode.com Mon Jul 11 09:25:36 2022 From: mark at livecode.com (Mark Waddingham) Date: Mon, 11 Jul 2022 14:25:36 +0100 Subject: Tree Widget: hilitedValue? In-Reply-To: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> References: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> Message-ID: <1d540e298547e449e91ef40f8a6d916a@livecode.com> On 2022-07-10 21:33, Richard Gaskin via use-livecode wrote: > Brian Milby wrote: > >> You could also turn the path into an array (but lose the error >> checking above): >> >> function getValue pArray, pPath >> split pPath by comma >> return pArray[pPath] >> end getValue > > Thanks, Brian. I keep forgetting we can use an array as an element > specifier. > > Has that been around the whole time, or was it added in recent years? I added it before 6.0 - probably in 4.5 or 5. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Mon Jul 11 11:27:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 11 Jul 2022 15:27:09 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> Slight improvement: local lInterval constant cInterval = 300 on openStack put cInterval into lInterval checkTime end openStack on checkTime -- your code send checkTime to me in lInterval seconds end checkTime setProp interval, pInterval if pInterval is empty then ask "Enter a time interval in seconds:" as sheet if the result is not "Cancel" and it is an integer and it >0 then \ put it into lInterval else put pInterval into lInterval end if end interval Bob S > On Jul 11, 2022, at 04:43 , Tore Nilsen via use-livecode wrote: > > For this I would use a recursive approach with «send in time» something like this: > > on openStack > checkTime > end openStack > > on checkTime > ## Do your routines of checking time, performing the required action etc. > send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you > end checkTime > > Best regards > Tore Nilsen > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : >> >> Dear all, >> >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? >> >> Any pointers appreciated! >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Jul 11 11:31:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 11 Jul 2022 15:31:26 +0000 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Like how did our stomaches evolve without a circulatory system, and without a circulatory system, how did we develop stomaches? Bob S > On Jul 10, 2022, at 23:53 , Richmond Mathewson via use-livecode wrote: > > Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the > niggles relating to the elevator theory of human evolution. From richmondmathewson at gmail.com Tue Jul 12 06:28:04 2022 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 12 Jul 2022 13:28:04 +0300 Subject: macOS Ventura (13.x.x)... In-Reply-To: <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Message-ID: That is a complete misunderstanding of the elevator theory of evolution: this was a theory propagated by some of the people who misread Darwin (I don't mean Hobbesian individualists like Huxley and Dawkins) to say that evolution is a linear and ever-upwards process. On 11.07.22 18:31, Bob Sneidar via use-livecode wrote: > Like how did our stomaches evolve without a circulatory system, and without a circulatory system, how did we develop stomaches? > > Bob S > > >> On Jul 10, 2022, at 23:53 , Richmond Mathewson via use-livecode wrote: >> >> Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the >> niggles relating to the elevator theory of human evolution. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 12 08:33:31 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 12 Jul 2022 08:33:31 -0400 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> Message-ID: I would suggest sending the "checkTime" message at the top of the handler in case something happens in --your code On Mon, Jul 11, 2022 at 11:28 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Slight improvement: > > local lInterval > constant cInterval = 300 > > on openStack > put cInterval into lInterval > checkTime > end openStack > > on checkTime > -- your code > send checkTime to me in lInterval seconds > end checkTime > > setProp interval, pInterval > if pInterval is empty then > ask "Enter a time interval in seconds:" as sheet > if the result is not "Cancel" and it is an integer and it >0 then \ > put it into lInterval > else > put pInterval into lInterval > end if > end interval > > Bob S > > > > On Jul 11, 2022, at 04:43 , Tore Nilsen via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > For this I would use a recursive approach with «send in time» something > like this: > > > > on openStack > > checkTime > > end openStack > > > > on checkTime > > ## Do your routines of checking time, performing the required action > etc. > > send checkTime to me in 300 seconds. ## you set the interval to > whatever is best for you > > end checkTime > > > > Best regards > > Tore Nilsen > > > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Dear all, > >> > >> I want to have an LC app running on a computer doing nothing but > watching the time. At predetermined times, I then want it to run a command. > A call to an API on a website. > >> > >> In the old HC days, I remember using "on idle" to watch for a set time. > But even then, using "on idle" was less than ideal. CPU hog. What is the > preferred/LC way to have an app trigger a command at a specific time of day? > >> > >> Any pointers appreciated! > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 benr_mc at cogapp.com Tue Jul 12 10:48:04 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 12 Jul 2022 15:48:04 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: Message-ID: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Hi Tim, On 11/07/2022 12:35, Tim Selander via use-livecode wrote: > I want to have an LC app running on a computer doing nothing but watching the > time. At predetermined times, I then want it to run a command. A call to an > API on a website. My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. Ben From bobsneidar at iotecdigital.com Tue Jul 12 10:53:16 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 14:53:16 +0000 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Message-ID: <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> Ah. I stand corrected. Of course, nothing in nature is linear. And I still need to figure out how a stomache would have done us any good withour a circulatory system to get the food to the cells, or lungs to get oxygen to everything for that matter. It seems if you think about it that no vital organ would have provided any advantage without all the other organs being fully developed. Begs some questions, eh? Bob S > On Jul 12, 2022, at 03:28 , Richmond via use-livecode wrote: > > That is a complete misunderstanding of the elevator theory of evolution: this was a theory propagated by some > of the people who misread Darwin (I don't mean Hobbesian individualists like Huxley and Dawkins) to say that > evolution is a linear and ever-upwards process. From bobsneidar at iotecdigital.com Tue Jul 12 10:56:03 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 14:56:03 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: It seems to me that if you have an open socket to listen for commands, you could have the chron or windows scheduler send those commands to your LC app. Ben, some syntax would be helpful. Bob S > On Jul 12, 2022, at 07:48 , Ben Rubinstein via use-livecode wrote: > > Hi Tim, > > On 11/07/2022 12:35, Tim Selander via use-livecode wrote: >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. > > My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. > > I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. > > Ben From chipsm at themartinz.com Tue Jul 12 11:09:51 2022 From: chipsm at themartinz.com (chipsm themartinz.com) Date: Tue, 12 Jul 2022 15:09:51 +0000 Subject: MegaBundle whatnot In-Reply-To: <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Message-ID: What effect does this do to my account? I have a lifetime guaranteed price account and I don’t know what happens to my account. Sincerely, Clarence P. Martin chipsm at themartinz.com 626 7874442 From: use-livecode on behalf of Heather Laine via use-livecode Date: Monday, July 11, 2022 at 1:29 AM To: How to use LiveCode Cc: Heather Laine Subject: Re: MegaBundle whatnot Kaveh and Co, We have actually simplified the licensing in the move to Single Edition, which is what is causing the confusion here. There is no such thing as Indy or Business anymore. It's all just LiveCode. You pick the platforms you want and off you go... However the new Enhancements Bundle widgets post-date Indy/Business and hence do not recognise it. The solution being simply to run the latest version. 9.6.8 or 10 dp 4 will be just fine. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 9 Jul 2022, at 12:41, Kaveh via use-livecode wrote: > > Why does LiveCode make the licenses so complicated? I try to understand > from time to time so I can repurchase, then give up... > > On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Mark, >> What I forgot. >> >> I assume you have a current subscription, right? >> So why do you not try a newer LC release; one of the new editions without >> Indy and business in the name? Anything higher than 9.63 should do. >> >> Regards >> Matthias >> >> Von meinem iPhone gesendet >> >>> Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: >>> >>> Mark, >>> >>> that seems to be a problem with Indy and Business licenses. I can >> reproduce it here with an Indy license. Seems, the Enh.Pack needs to be >> modified a little bit.;) >>> >>> As you are on digest mode and i do not know when you read this, I've >> filed a bug already to speed it up a little bit. >>> >>> https://quality.livecode.com/show_bug.cgi?id=23799 >>> >>> Maybe you want to add yourself to the CC list. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < >> use-livecode at lists.runrev.com>: >>>> >>>> I went ahead and purchased the megabundle, mostly for the LC >> Enhancement piece. Got that download and clicked the install widgets and >> the widgets all show “unlicensed.” Hmm, what? >>>> >>>> Tried to re-license and for some reason I only see my business license >> as an option (also have the old commercial license whatever that maps to >> now). So, np figure it out later, selected business license and LC starts >> but the enhancements still show unlicensed. Is there something manual I’m >> missing? >>>> >>>> TIA, >>>> Mark (on digest mode) >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Kaveh Bazargan PhD > Director > River Valley Technologies ● Twitter > ● LinkedIn > ● ORCID > > *Accelerating the Communication of Research* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 12 11:45:14 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 12 Jul 2022 17:45:14 +0200 Subject: MegaBundle whatnot In-Reply-To: References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Message-ID: <555F38B1-8184-4F62-B1D7-296B4262AF89@m-r-d.de> Livecode Ltd. sent out an email last year to all license holders with information how this change would affect their license. If i recall it correctly then subscriptions with the "old" price model will keep this price also for renewings as long as the subscription does not completely expire or is changed. I would suggest to contact support at livecode.com to get exact information about this. Regards, Matthias > Am 12.07.2022 um 17:09 schrieb chipsm themartinz.com via use-livecode >: > > What effect does this do to my account? > I have a lifetime guaranteed price account and I don’t know what happens to my account. From benr_mc at cogapp.com Tue Jul 12 16:15:17 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 12 Jul 2022 21:15:17 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: I think I may not have been very clear. This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). I usually create a .bat file (on Windows) or .sh file (on Mac/Linux) to run the LC app with the appropriate parameters. On Windows you run the "Task Scheduler" and create a task to run the .bat file, with whatever schedules you like. On Mac/Linux you edit the 'crontab' file adding one or more lines with the interesting syntax to execute the .sh file. Your app can read the command line parameters (on Mac/Linux or Windows) by inspecting the special global variables $0, $1 etc. The only gotcha is that on Mac, you think your app is at e.g. /Users/yourname/Myapp - but actually on Mac what appears to be an application "Myapp" is a bundle (i.e. a folder with a special flag so the Finder pretends it's not), and the path to the executable app is e.g. /Users/yourname/Myapp.app/Contents/MacOS/Myapp On Linux and Windows, it's where you think it is! Ben On 12/07/2022 15:56, Bob Sneidar via use-livecode wrote: > It seems to me that if you have an open socket to listen for commands, you could have the chron or windows scheduler send those commands to your LC app. > > Ben, some syntax would be helpful. > > Bob S > > >> On Jul 12, 2022, at 07:48 , Ben Rubinstein via use-livecode wrote: >> >> Hi Tim, >> >> On 11/07/2022 12:35, Tim Selander via use-livecode wrote: >>> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. >> >> I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. >> >> 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 jacque at hyperactivesw.com Tue Jul 12 17:10:50 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 12 Jul 2022 16:10:50 -0500 Subject: macOS Ventura (13.x.x)... In-Reply-To: <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> Message-ID: <181f4401790.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> This has little to do with LC and less to do with Ventura, but see your email. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 12, 2022 9:55:22 AM Bob Sneidar via use-livecode wrote: > Ah. I stand corrected. > > Of course, nothing in nature is linear. > > And I still need to figure out how a stomache would have done us any good > withour a circulatory system to get the food to the cells, or lungs to get > oxygen to everything for that matter. It seems if you think about it that > no vital organ would have provided any advantage without all the other > organs being fully developed. Begs some questions, eh? > > Bob S > > >> On Jul 12, 2022, at 03:28 , Richmond via use-livecode >> wrote: >> >> That is a complete misunderstanding of the elevator theory of evolution: >> this was a theory propagated by some >> of the people who misread Darwin (I don't mean Hobbesian individualists >> like Huxley and Dawkins) to say that >> evolution is a linear and ever-upwards process. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jul 12 17:56:50 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 21:56:50 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> Hmmm. Ok, but it seems having the LC app running invisibly all the time, listening for a command, something the cron service could do through the terminal easily enough, you could make it much more efficient. Just methods and madness I suppose. Bob S > On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode wrote: > > I think I may not have been very clear. > > This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). From benr_mc at cogapp.com Wed Jul 13 05:20:39 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 13 Jul 2022 10:20:39 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> Message-ID: <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> Whatever works for your situation! At least one of my jobs, which runs a few times a week (pulling data from an internal system, generating and emailing a PDF report) has to launch fresh each time because of a bug in the graph widget which displays wrong if the script runs twice! There are others where the LC qpp is part of a dance in which other systems run before and after, so a batch script invoking each in turn is the thing that's scheduled. But of course there are contexts in which the best solution is an LC app waiting for a time or a command at which to leap into action. On 12/07/2022 22:56, Bob Sneidar via use-livecode wrote: > Hmmm. Ok, but it seems having the LC app running invisibly all the time, listening for a command, something the cron service could do through the terminal easily enough, you could make it much more efficient. Just methods and madness I suppose. > > Bob S > > >> On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode wrote: >> >> I think I may not have been very clear. >> >> This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ms1 at soas.ac.uk Wed Jul 13 12:18:24 2022 From: ms1 at soas.ac.uk (Muaath Salih) Date: Wed, 13 Jul 2022 17:18:24 +0100 Subject: No subject Message-ID: From sean at pidigital.co.uk Wed Jul 13 12:26:16 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 13 Jul 2022 17:26:16 +0100 Subject: No subject In-Reply-To: References: Message-ID: <77502D3D-AD49-49A0-A41B-5520C060CE9F@pidigital.co.uk> I agree. There is also no content :) Let us know if there is anything else you would like help with, Muaath. Sean > On 13 Jul 2022, at 17:18, Muaath Salih 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 bobsneidar at iotecdigital.com Wed Jul 13 17:50:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 13 Jul 2022 21:50:19 +0000 Subject: remoteDebugger error Message-ID: Whenever I open my Forms Generator project, I get a dialog pop up saying an error occured in the stack com.livecode.library.remotedebugger, and that there is no more information because the stack is password protected. It does not seem to affect to workings of my project though. Other stacks do not seem to induce this dialog. How can I tell what is causing it? Bob S From matthias_livecode_150811 at m-r-d.de Wed Jul 13 18:44:11 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 14 Jul 2022 00:44:11 +0200 Subject: remoteDebugger error In-Reply-To: References: Message-ID: Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? Regards, Matthias > Am 13.07.2022 um 23:50 schrieb Bob Sneidar via use-livecode : > > Whenever I open my Forms Generator project, I get a dialog pop up saying an error occured in the stack com.livecode.library.remotedebugger, and that there is no more information because the stack is password protected. It does not seem to affect to workings of my project though. > > Other stacks do not seem to induce this dialog. How can I tell what is causing it? > > 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 Wed Jul 13 19:02:11 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 13 Jul 2022 23:02:11 +0000 Subject: remoteDebugger error In-Reply-To: References: Message-ID: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Yup. Don't we all have to be on that license if we are running 9.6.8? But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. Bob S > On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: > > Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? > > Regards, > > Matthias From monte.goulding at livecode.com Wed Jul 13 19:07:22 2022 From: monte.goulding at livecode.com (Monte Goulding) Date: Thu, 14 Jul 2022 09:07:22 +1000 Subject: remoteDebugger error In-Reply-To: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Hi Bob Could you create a bug report about this? The remote debugger obviously shouldn’t be throwing bugs itself. It should be telling the IDE about errors and getting it to show the debugger. Cheers Monte > On 14 Jul 2022, at 9:02 am, Bob Sneidar via use-livecode wrote: > > Yup. Don't we all have to be on that license if we are running 9.6.8? But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. > > Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. > > Bob S > > >> On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: >> >> Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? >> >> 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 matthias_livecode_150811 at m-r-d.de Wed Jul 13 19:20:41 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 14 Jul 2022 01:20:41 +0200 Subject: remoteDebugger error In-Reply-To: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: > Am 14.07.2022 um 01:02 schrieb Bob Sneidar via use-livecode : > > Yup. Don't we all have to be on that license if we are running 9.6.8? Not that i am aware of. If you have the Addon Pro Pack Features in your license "the editiontype" returns professional, if you don't then "commercial" is returned. https://livecode.com/pro-features/ > But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. > > Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. > > Bob S > > >> On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: >> >> Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? >> >> Regards, >> >> Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Jul 13 20:14:13 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 14 Jul 2022 00:14:13 +0000 Subject: remoteDebugger error In-Reply-To: References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: <78464170-F02D-4C67-AC00-328F795DC316@iotecdigital.com> Returns "Professional" Bob S > On Jul 13, 2022, at 16:20 , matthias rebbe via use-livecode wrote: > >> Am 14.07.2022 um 01:02 schrieb Bob Sneidar via use-livecode : >> >> Yup. Don't we all have to be on that license if we are running 9.6.8? > Not that i am aware of. > If you have the Addon Pro Pack Features in your license "the editiontype" returns professional, if you don't then "commercial" is returned. From bobsneidar at iotecdigital.com Wed Jul 13 20:15:01 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 14 Jul 2022 00:15:01 +0000 Subject: remoteDebugger error In-Reply-To: <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Message-ID: Monte, I'll do that in the morning. They are kicking me out of the building. :-| Bob S > On Jul 13, 2022, at 16:07 , Monte Goulding via use-livecode wrote: > > Hi Bob > > Could you create a bug report about this? The remote debugger obviously shouldn’t be throwing bugs itself. It should be telling the IDE about errors and getting it to show the debugger. > > Cheers > > Monte > From selander at tkf.att.ne.jp Wed Jul 13 20:16:58 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 14 Jul 2022 09:16:58 +0900 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> Message-ID: Gentlemen, The trigger will be 'pulled' once or twice a day only -- so these external to LC options are also viable. Hadn't entered my head at all! Will be playing around with all these ideas and learn something! Basically use Macs, but have couple unused Windows laptops -- sounds like Task Scheduler and .bat files might be easier to deal with. Thanks. Tim On 2022.07.13 18:20, Ben Rubinstein via use-livecode wrote: > Whatever works for your situation! At least one of my jobs, which > runs a few times a week (pulling data from an internal system, > generating and emailing a PDF report) has to launch fresh each > time because of a bug in the graph widget which displays wrong if > the script runs twice! > > There are others where the LC qpp is part of a dance in which > other systems run before and after, so a batch script invoking > each in turn is the thing that's scheduled. > > But of course there are contexts in which the best solution is an > LC app waiting for a time or a command at which to leap into action. > > On 12/07/2022 22:56, Bob Sneidar via use-livecode wrote: >> Hmmm. Ok, but it seems having the LC app running invisibly all >> the time, listening for a command, something the cron service >> could do through the terminal easily enough, you could make it >> much more efficient. Just methods and madness I suppose. >> >> Bob S >> >> >>> On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode >>> wrote: >>> >>> I think I may not have been very clear. >>> >>> This isn't LiveCode doing anything special; just a standalone >>> LiveCode app that either does something immediately on launch >>> (and then quits), or inspects the command line parameters to >>> decide what to do (and then quits). >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Thu Jul 14 01:03:23 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 14 Jul 2022 08:03:23 +0300 Subject: remoteDebugger error In-Reply-To: References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Message-ID: Hello all, @Bob Sneidar Are there any modal windows involved in the recipe? I think it is this bug: https://quality.livecode.com/show_bug.cgi?id=23758 Cheers, Panos -- On Thu, 14 Jul 2022 at 03:15, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Monte, I'll do that in the morning. They are kicking me out of the > building. :-| > > Bob S > > > > On Jul 13, 2022, at 16:07 , Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Bob > > > > Could you create a bug report about this? The remote debugger obviously > shouldn’t be throwing bugs itself. It should be telling the IDE about > errors and getting it to show the debugger. > > > > 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 paul at researchware.com Thu Jul 14 15:50:57 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 14 Jul 2022 15:50:57 -0400 Subject: Livecode Builder developer wanted Message-ID: I am looking to hire someone to take what Trevor DeVore started 3 years ago, for the Livecode conference, of making an LCB wrapper for pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for macOS and extend it to Windows including builds of the pocketsphinx libraries for macOS and Windows. Essentially, advance it a bit further so it can just be plugged into Livecode and used as a library in the IDE and standalones. Anyone experienced in making LCB libraries for macOS and Windows interested? If so, please email me off-list and send me a rate and/or estimate. P.S. I contacted Trevor, but he is tied up with other work and unavailable. Paul Dupuis Researchware From klaus at major-k.de Fri Jul 15 07:14:50 2022 From: klaus at major-k.de (Klaus major-k) Date: Fri, 15 Jul 2022 13:14:50 +0200 Subject: iPhoneSafeAreaInsets() and Android Message-ID: Hi friends, quick question, cannot test it myself in the moment. Will -> iPhoneSafeAreaInsets() a. work or b. throw an error when being used on Android? If a. I presume it will return "the screenrect" without any "notches". Does it? If b. then I will to check "if the platform = "iphone"..." Thanks for any quick answer! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From benr_mc at cogapp.com Fri Jul 15 10:22:28 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 15 Jul 2022 15:22:28 +0100 Subject: Complete Advanced Networking Layer? Message-ID: Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? TIA, Ben From rdimola at evergreeninfo.net Fri Jul 15 10:44:48 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 15 Jul 2022 10:44:48 -0400 Subject: Complete Advanced Networking Layer? In-Reply-To: References: Message-ID: <001601d89859$721c53c0$5654fb40$@net> Ben, I believe that's referring to tsNet. All tsNet's advanced functionality(async and such) is in the dictionary. Works great! In mobile I start 4 or 5 simultaneous downloads when the app is first opened. 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 Ben Rubinstein via use-livecode Sent: Friday, July 15, 2022 10:22 AM To: Use LiveCode Cc: Ben Rubinstein Subject: Complete Advanced Networking Layer? Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? TIA, Ben _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Fri Jul 15 11:40:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 15 Jul 2022 17:40:34 +0200 Subject: Complete Advanced Networking Layer? In-Reply-To: References: Message-ID: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> According to this overview there https://livecode.com/pro-features/ the following tsNet features are in included in the Pro Features - Non-blocking, asynchronous operations on SFTP, SMTP, SMTPS and SMTP/TLS - SFTP authentication via public key authentication giving the best possible security - SMTP(S/TLS) / SFTP downloads and uploads can either be via file or via variable – you are not limited by the memory available to your variable - Ability to generate public / private key pairs suitable for use with SFTP – no need for an external application to create these - Ability to send additional raw commands along with FTP and SFTP transfers to be executed before or after the transfer completes > Am 15.07.2022 um 16:22 schrieb Ben Rubinstein via use-livecode : > > > Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Fri Jul 15 12:25:14 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 15 Jul 2022 17:25:14 +0100 Subject: Complete Advanced Networking Layer? In-Reply-To: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> References: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> Message-ID: <8915b5fa-a023-03c2-c7f3-94ead78986f6@cogapp.com> Ah, thanks both. I see now there's a "[PRO]" badge on some tsNet functions in the Dictionary. Thanks very much, Ben On 15/07/2022 16:40, matthias rebbe via use-livecode wrote: > According to this overview there https://livecode.com/pro-features/ > > the following tsNet features are in included in the Pro Features > > - Non-blocking, asynchronous operations on SFTP, SMTP, SMTPS and SMTP/TLS > - SFTP authentication via public key authentication giving the best possible security > - SMTP(S/TLS) / SFTP downloads and uploads can either be via file or via variable you are not limited by the memory available to your variable > - Ability to generate public / private key pairs suitable for use with SFTP no need for an external application to create these > - Ability to send additional raw commands along with FTP and SFTP transfers to be executed before or after the transfer completes > >> Am 15.07.2022 um 16:22 schrieb Ben Rubinstein via use-livecode : >> >> >> Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Fri Jul 15 12:52:49 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Fri, 15 Jul 2022 09:52:49 -0700 Subject: license info Message-ID: <016d01d8986b$51125c30$f3371490$@telus.net> Largely because I'm not crystal clear as to how to frame the following request for information, I'd VERY MUCH appreciate if the LIVECODE mothership could point me in the right direction. Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) on a Windows 10 PC (not a server) with the latest updates installed. The recent discussion regarding : ".the following tsNet features are in included in the Pro Features ." from matthias rebbe posting from July 15 suggests that I could greatly simplify a significant application I developed and manage for a major Health Care Laboratory here in Canada. The features enumerated might be able to eliminate a very expensive 3rd party SFTP server I currently employ for communicating and transferring very sensitive medical information to external clinics and hospitals (over 5,000 of them). I would sincerely appreciate if someone could give me even a ballpark dollar figure I'd have to pay in order to upgrade my current license (see above) to whatever is necessary to incorporate the "tsNet Pro" features Matthias described. I only need the one development license for Windows since I distribute the app from the STANDALONE feature of LIVECODE. Hopefully that's enough information to frame my request so I can pass a fairly accurate cost estimate to the end-user. Sincerely Doug Ruisaard From matthias_livecode_150811 at m-r-d.de Fri Jul 15 14:11:19 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 15 Jul 2022 20:11:19 +0200 Subject: license info In-Reply-To: <016d01d8986b$51125c30$f3371490$@telus.net> References: <016d01d8986b$51125c30$f3371490$@telus.net> Message-ID: <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> Douglas, If you have a business license, then you have access to the "Advanced Network Layer". LC with Pro Features is the same as the previous Business license. And if you have a current subscription or a lifetime license with lifetime updates, then why don't you download the latest release of LC, which is 9.6.8 btw.? Regards, Matthias > Am 15.07.2022 um 18:52 schrieb Douglas A. Ruisaard via use-livecode : > > Largely because I'm not crystal clear as to how to frame the following > request for information, I'd VERY MUCH appreciate if the LIVECODE mothership > could point me in the right direction. > > > > Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) on a > Windows 10 PC (not a server) with the latest updates installed. > > > > The recent discussion regarding : ".the following tsNet features are in > included in the Pro Features ." from matthias rebbe posting from July 15 > suggests that I could greatly simplify a significant application I developed > and manage for a major Health Care Laboratory here in Canada. The features > enumerated might be able to eliminate a very expensive 3rd party SFTP server > I currently employ for communicating and transferring very sensitive medical > information to external clinics and hospitals (over 5,000 of them). > > > > I would sincerely appreciate if someone could give me even a ballpark dollar > figure I'd have to pay in order to upgrade my current license (see above) to > whatever is necessary to incorporate the "tsNet Pro" features Matthias > described. I only need the one development license for Windows since I > distribute the app from the STANDALONE feature of LIVECODE. > > > > Hopefully that's enough information to frame my request so I can pass a > fairly accurate cost estimate to the end-user. > > > > Sincerely > > Doug Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Sat Jul 16 10:57:54 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Sat, 16 Jul 2022 07:57:54 -0700 Subject: license info In-Reply-To: <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> References: <016d01d8986b$51125c30$f3371490$@telus.net> <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> Message-ID: <03d701d89924$6dace770$4906b650$@telus.net> Thanks very much for the advice. I have, as of this message, installed v9.6.8. What steps, if any, do I need to take to "activate" the "Advanced Network Layer"? Doug -----Original Message----- From: use-livecode On Behalf Of matthias rebbe via use-livecode Sent: Friday, July 15, 2022 11:11 AM To: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Subject: Re: license info Douglas, If you have a business license, then you have access to the "Advanced Network Layer". LC with Pro Features is the same as the previous Business license. And if you have a current subscription or a lifetime license with lifetime updates, then why don't you download the latest release of LC, which is 9.6.8 btw.? Regards, Matthias > Am 15.07.2022 um 18:52 schrieb Douglas A. Ruisaard via use-livecode : > > Largely because I'm not crystal clear as to how to frame the following > request for information, I'd VERY MUCH appreciate if the LIVECODE > mothership could point me in the right direction. > > > > Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) > on a Windows 10 PC (not a server) with the latest updates installed. > > > > The recent discussion regarding : ".the following tsNet features are > in included in the Pro Features ." from matthias rebbe posting from > July 15 suggests that I could greatly simplify a significant > application I developed and manage for a major Health Care Laboratory > here in Canada. The features enumerated might be able to eliminate a > very expensive 3rd party SFTP server I currently employ for > communicating and transferring very sensitive medical information to external clinics and hospitals (over 5,000 of them). > > > > I would sincerely appreciate if someone could give me even a ballpark > dollar figure I'd have to pay in order to upgrade my current license > (see above) to whatever is necessary to incorporate the "tsNet Pro" > features Matthias described. I only need the one development license > for Windows since I distribute the app from the STANDALONE feature of LIVECODE. > > > > Hopefully that's enough information to frame my request so I can pass > a fairly accurate cost estimate to the end-user. > > > > Sincerely > > Doug Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Sun Jul 17 05:16:25 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sun, 17 Jul 2022 05:16:25 -0400 Subject: deleting folders on server with revDeleteFolder Message-ID: Hi list, On my LC Hosting account, I have a php script that creates directories : mkdir($dirname, 0755); Each directory is used to temporarily store text & image files. Then I have a LC script that is supposed to delete those directories under certain conditions. No problem for deleting files inside each directory, but 2 sub-directories are systematically created, named "." and ".." and those can't be deleted, either by script of via ftp. Therefore, there's no way to delete the directories created via php. Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" is the command to use to remove a folder and all its contents and that it is available on both desktop and server platforms, but on my LC hosting account I get : Handler: can't find handler (revDeleteFolder) Any idea how to solve this problem ? Thank you in advance. jbv From matthias_livecode_150811 at m-r-d.de Sun Jul 17 07:13:38 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 17 Jul 2022 13:13:38 +0200 Subject: deleting folders on server with revDeleteFolder In-Reply-To: References: Message-ID: I’m not at my desk at the moment, so I cannot give detailed information. But what I know is, that this function/command is included in the rev common library and that library is not included by default in LC Server. You need to copy that library from your LC ide Installation path to your LC Server installation path first. Then you have to load that library in your script using “start using stack Regards Matthias Von meinem iPhone gesendet > Am 17.07.2022 um 11:18 schrieb jbv via use-livecode : > > Hi list, > > On my LC Hosting account, I have a php script that creates directories : > mkdir($dirname, 0755); > Each directory is used to temporarily store text & image files. > > Then I have a LC script that is supposed to delete those directories > under certain conditions. No problem for deleting files inside each > directory, but 2 sub-directories are systematically created, named > "." and ".." and those can't be deleted, either by script of via ftp. > Therefore, there's no way to delete the directories created via php. > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > is the command to use to remove a folder and all its contents and that > it is available on both desktop and server platforms, but on my LC > hosting account I get : Handler: can't find handler (revDeleteFolder) > > Any idea how to solve this problem ? > Thank you in advance. > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 17 08:20:52 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 17 Jul 2022 13:20:52 +0100 Subject: deleting folders on server with revDeleteFolder In-Reply-To: References: Message-ID: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Those folders are "." - the folder itself ".." - the parent of the folder itself. As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else. So - there isn't really a problem, just don't try to delete them by those names. Alex. On 17/07/2022 10:16, jbv via use-livecode wrote: > Hi list, > > On my LC Hosting account, I have a php script that creates directories : >    mkdir($dirname, 0755); > Each directory is used to temporarily store text & image files. > > Then I have a LC script that is supposed to delete those directories > under certain conditions. No problem for deleting files inside each > directory, but 2 sub-directories are systematically created, named > "." and ".." and those can't be deleted, either by script of via ftp. > Therefore, there's no way to delete the directories created via php. > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > is the command to use to remove a folder and all its contents and that > it is available on both desktop and server platforms, but on my LC > hosting account I get : Handler: can't find handler (revDeleteFolder) > > Any idea how to solve this problem ? > Thank you in advance. > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Sun Jul 17 12:25:52 2022 From: kee.nethery at elloco.com (Kee Nethery) Date: Sun, 17 Jul 2022 09:25:52 -0700 Subject: deleting folders on server with revDeleteFolder In-Reply-To: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> References: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Message-ID: <8D2CC775-175C-4964-B50B-12A86F8FA858@elloco.com> Perhaps try using something other than a period as the beginning folder name character? Could be that’s why it’s not working. Just a thought, could be totally wrong. Kee Nethery > On Jul 17, 2022, at 5:21 AM, Alex Tweedly via use-livecode wrote: > > Those folders are > > "." - the folder itself > > ".." - the parent of the folder itself. > > As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else. > > So - there isn't really a problem, just don't try to delete them by those names. > > > Alex. > > >> On 17/07/2022 10:16, jbv via use-livecode wrote: >> Hi list, >> >> On my LC Hosting account, I have a php script that creates directories : >> mkdir($dirname, 0755); >> Each directory is used to temporarily store text & image files. >> >> Then I have a LC script that is supposed to delete those directories >> under certain conditions. No problem for deleting files inside each >> directory, but 2 sub-directories are systematically created, named >> "." and ".." and those can't be deleted, either by script of via ftp. >> Therefore, there's no way to delete the directories created via php. >> >> Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" >> is the command to use to remove a folder and all its contents and that >> it is available on both desktop and server platforms, but on my LC >> hosting account I get : Handler: can't find handler (revDeleteFolder) >> >> Any idea how to solve this problem ? >> Thank you in advance. >> jbv >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 19 12:00:01 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 19 Jul 2022 16:00:01 +0000 Subject: Debugging libraries Message-ID: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> Hi all. There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! Bob S From ahsoftware at sonic.net Tue Jul 19 13:45:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 10:45:37 -0700 Subject: Debugging libraries In-Reply-To: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> Message-ID: <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> On 7/19/22 09:00, Bob Sneidar via use-livecode wrote: > Hi all. > > There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! Set gRevDevelopment true to debug system stacks (starting with "rev" or plugins). And remember to set it false afterwards. If you're trying to debug a library that's been password-protected, though, it won't help. -- Mark Wieder ahsoftware at gmail.com From paulmcclernan at gmail.com Tue Jul 19 14:19:55 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Tue, 19 Jul 2022 14:19:55 -0400 Subject: deleting folders on server with revDeleteFolder In-Reply-To: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> References: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Message-ID: Yeah, what Alex said, those are posix (Unix) placeholders that point to folders (. self, and .. parent directory), they aren’t actual real folders. On Sun, Jul 17, 2022 at 8:21 AM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > Those folders are > > "." - the folder itself > > ".." - the parent of the folder itself. > > As such, neither can be deleted directly, nor do they need to be in > order to delete the folder itself. The folder itself should be deleted > when the current folder is set to somewhere else. > > So - there isn't really a problem, just don't try to delete them by > those names. > > > Alex. > > > On 17/07/2022 10:16, jbv via use-livecode wrote: > > Hi list, > > > > On my LC Hosting account, I have a php script that creates directories : > > mkdir($dirname, 0755); > > Each directory is used to temporarily store text & image files. > > > > Then I have a LC script that is supposed to delete those directories > > under certain conditions. No problem for deleting files inside each > > directory, but 2 sub-directories are systematically created, named > > "." and ".." and those can't be deleted, either by script of via ftp. > > Therefore, there's no way to delete the directories created via php. > > > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > > is the command to use to remove a folder and all its contents and that > > it is available on both desktop and server platforms, but on my LC > > hosting account I get : Handler: can't find handler (revDeleteFolder) > > > > Any idea how to solve this problem ? > > Thank you in advance. > > jbv > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 19 18:48:43 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 19 Jul 2022 22:48:43 +0000 Subject: Debugging libraries In-Reply-To: <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> Message-ID: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. To my recollection the sqlYoga sqlquery_retrieveAsData was a command like the array and record variants, but apparently not. It's a function so the code never got around to executing. DOH! Bob S > On Jul 19, 2022, at 10:45 , Mark Wieder via use-livecode wrote: > > On 7/19/22 09:00, Bob Sneidar via use-livecode wrote: >> Hi all. >> There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! > > Set gRevDevelopment true to debug system stacks (starting with "rev" or plugins). And remember to set it false afterwards. If you're trying to debug a library that's been password-protected, though, it won't help. > > -- > Mark Wieder > ahsoftware at gmail.com From ahsoftware at sonic.net Tue Jul 19 19:30:05 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 16:30:05 -0700 Subject: Debugging libraries In-Reply-To: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Message-ID: <4d501ba3-a664-b1df-5f22-bd327160bbb6@sonic.net> On 7/19/22 15:48, Bob Sneidar via use-livecode wrote: > Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. Shouldn't that have thrown a runtime error? -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Tue Jul 19 20:20:17 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 17:20:17 -0700 Subject: Debugging libraries In-Reply-To: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Message-ID: <9599622c-32c5-0200-f472-64cbc6b687c0@sonic.net> On 7/19/22 15:48, Bob Sneidar via use-livecode wrote: > Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. ...and as a hint the glx2 script editor will pop up a clairvoyance type-ahead bubble if you're using a command or a function properly, but won't if you're trying to use a function as a command or vice versa. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Mon Jul 25 01:37:48 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 22:37:48 -0700 Subject: Stylistic question. In-Reply-To: References: <1818ceeb0b0.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Sorry for the late response, but thanks for the shoutout. I'll also mention that some time ago I put a fair bit of effort into enabling Navigator to behavior-ify any set of controls, automatically extracting their built-in code to script-only-stacks. I did it as part of the migration of Navigator to SOS behaviors. I haven't checked to make sure, but I believe *all code* in Navigator is a SOS-behavior; and I did that automatically from a no-behaviors standing start with a simple command in Navigator itself. The end result is that there can be any number of Navigator windows without any duplication of code at all. Previously I had built Navigator with three built-in copies, at the cost of making it three times as large. That wasn't such a terrible thing, but I did find that anything beyond three copies eventually broke (no idea why). Since migrating 100% to behaviors, I've tried, I think, having ten copies open with no problem. Disclaimer/warning: I wrote that code five years ago and haven't looked at it since. No one has told me it doesn't work, but I only used it the one time on Navigator itself. So work on a copy, please. gc On Wed, Jun 22, 2022 at 1:25 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Well then Navigator is for you! If an object has a behavior and no script > of it's own, it's color in the list is green. If it has a script but no > behavior, it's color is blue. If it has both, it's purple. Simply double > clicking an object opens it's behavior script if it has one, and it's > native script if it doesn't. > > You don't have to keep track of anything anymore. > > Bob S > > > > On Jun 22, 2022, at 12:41 , J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I find that too many behavior stacks make it difficult to keep track of > where things are. But the primary downside is that script-only stacks don't > work with remote debugging. That's a big drawback for me since most of my > apps these days are for mobile. I do use behaviors quite a bit, but I put > the scripts into buttons so they can be debugged remotely. Or maybe you > mean you use regular stacks for behaviors? Those would work. > > > > The switch construct is way more flexible than if/then and much cleaner > to read and track. I use them all the time. They're especially useful when > you want to group several conditionals. What don't you like about them? > Just curious. > > > > -- > > Jacqueline Landman Gay | jacque at 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 gcanyon at gmail.com Mon Jul 25 02:01:22 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 23:01:22 -0700 Subject: Is syntax a dead issue? Message-ID: On this Hacker News thread , I read this programming interview question . Roughly, the challenge is to count the frequency of words in input, and return a list with counts, sorted from most to least frequent. So input like this: The foo the foo the defenestration the would produce output like this: the 4 foo 2 defenestration 1 Of course I smiled because LC is literally built for this problem. I took well under two minutes to write this function: function wordCount X repeat for each word w in X add 1 to R[w] end repeat combine R using cr and tab sort R numeric descending by word 2 of each return R end wordCount There are quibbles -- the examples given in the article work line by line, so input size isn't an issue, and of course quotes would cause an issue, and LC is case insensitive, so it works, but the output would look like this: The 4 foo 2 defenestration 1 But generally, it works, and is super-easy to code. But for the sake of argument, consider this Python solution given: counts = collections.Counter() for line in sys.stdin: words = line.lower().split() counts.update(words) for word, count in counts.most_common(): print(word, count) That requires a library, but it's also super-easy to code and understand, and it requires just the same number of lines. So, daydreaming extensions to LC syntax, this comes to mind: function wordCount X add 1 to R[w] for each word w in X return R combined using cr and tab and sorted numeric descending by word 2 of each end wordCount or if you prefer: function wordCount X for each word w in X add 1 to R[w] return (R combined using cr and tab) sorted numeric descending by word 2 of each end wordCount Or to really apply ourselves: function wordCount X return the count of each word in X using cr and tab sorted numeric descending by word 2 of each end wordCount So: the xTalk syntax is over thirty years old; when was the last significant syntax update? (I'm not at all core to the process, so feel free to tell me how much I've missed lately!) From gcanyon at gmail.com Mon Jul 25 02:42:30 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 23:42:30 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: As a meta point, I wrote a version closer to the actual requirements -- lowercase everything, process an external input line by line to allow for arbitrary input size. The result is about 8-10x slower than most other languages -- not as bad as I feared, not as good as I hoped. Here's the code for that version: on mouseUp answer file "choose input:" if it is empty then exit mouseUp put it into F lock screen put the long seconds into T open file F for read repeat read from file F for 1 line repeat for each word w in toLower(it) add 1 to R[w] end repeat if the result is not empty then exit repeat end repeat combine R using cr and tab sort R numeric descending by word 2 of each put the long seconds - T into T1 put R into fld "output" put the long seconds - T into T2 put T1 && T2 close file F end mouseUp On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon wrote: > On this Hacker News thread , > I read this programming interview question > . Roughly, the challenge is to > count the frequency of words in input, and return a list with counts, > sorted from most to least frequent. So input like this: > > The foo the foo the > defenestration the > > would produce output like this: > > the 4 > foo 2 > defenestration 1 > > Of course I smiled because LC is literally built for this problem. I took > well under two minutes to write this function: > > function wordCount X > repeat for each word w in X > add 1 to R[w] > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > return R > end wordCount > > There are quibbles -- the examples given in the article work line by line, > so input size isn't an issue, and of course quotes would cause an issue, > and LC is case insensitive, so it works, but the output would look like > this: > > The 4 > foo 2 > defenestration 1 > > But generally, it works, and is super-easy to code. But for the sake of > argument, consider this Python solution given: > > counts = collections.Counter() > for line in sys.stdin: > words = line.lower().split() > counts.update(words) > > for word, count in counts.most_common(): > print(word, count) > > That requires a library, but it's also super-easy to code and understand, > and it requires just the same number of lines. So, daydreaming extensions > to LC syntax, this comes to mind: > > function wordCount X > add 1 to R[w] for each word w in X > return R combined using cr and tab and sorted numeric descending by > word 2 of each > end wordCount > > or if you prefer: > > function wordCount X > for each word w in X add 1 to R[w] > return (R combined using cr and tab) sorted numeric descending by word > 2 of each > end wordCount > > Or to really apply ourselves: > > function wordCount X > return the count of each word in X using cr and tab sorted numeric > descending by word 2 of each > end wordCount > > So: the xTalk syntax is over thirty years old; when was the last > significant syntax update? > > (I'm not at all core to the process, so feel free to tell me how much I've > missed lately!) > > From jbv at souslelogo.com Mon Jul 25 02:59:04 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 25 Jul 2022 02:59:04 -0400 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: Just curious : why do you use "read from file F for 1 line" ? Instead, why don't you read the file in one go, load the content into a variable and then use "for each line j in myVar" ? Wouldn't that run faster ? Best, jbv Le 2022-07-25 02:42, Geoff Canyon via use-livecode a crit : > As a meta point, I wrote a version closer to the actual requirements -- > lowercase everything, process an external input line by line to allow > for > arbitrary input size. The result is about 8-10x slower than most other > languages -- not as bad as I feared, not as good as I hoped. Here's the > code for that version: > > on mouseUp > answer file "choose input:" > if it is empty then exit mouseUp > put it into F > lock screen > put the long seconds into T > open file F for read > repeat > read from file F for 1 line > repeat for each word w in toLower(it) > add 1 to R[w] > end repeat > if the result is not empty then exit repeat > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > put the long seconds - T into T1 > put R into fld "output" > put the long seconds - T into T2 > put T1 && T2 > close file F > end mouseUp > > On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon > wrote: > >> On this Hacker News thread >> , >> I read this programming interview question >> . Roughly, the challenge is >> to >> count the frequency of words in input, and return a list with counts, >> sorted from most to least frequent. So input like this: >> >> The foo the foo the >> defenestration the >> >> would produce output like this: >> >> the 4 >> foo 2 >> defenestration 1 >> >> Of course I smiled because LC is literally built for this problem. I >> took >> well under two minutes to write this function: >> >> function wordCount X >> repeat for each word w in X >> add 1 to R[w] >> end repeat >> combine R using cr and tab >> sort R numeric descending by word 2 of each >> return R >> end wordCount >> >> There are quibbles -- the examples given in the article work line by >> line, >> so input size isn't an issue, and of course quotes would cause an >> issue, >> and LC is case insensitive, so it works, but the output would look >> like >> this: >> >> The 4 >> foo 2 >> defenestration 1 >> >> But generally, it works, and is super-easy to code. But for the sake >> of >> argument, consider this Python solution given: >> >> counts = collections.Counter() >> for line in sys.stdin: >> words = line.lower().split() >> counts.update(words) >> >> for word, count in counts.most_common(): >> print(word, count) >> >> That requires a library, but it's also super-easy to code and >> understand, >> and it requires just the same number of lines. So, daydreaming >> extensions >> to LC syntax, this comes to mind: >> >> function wordCount X >> add 1 to R[w] for each word w in X >> return R combined using cr and tab and sorted numeric descending by >> word 2 of each >> end wordCount >> >> or if you prefer: >> >> function wordCount X >> for each word w in X add 1 to R[w] >> return (R combined using cr and tab) sorted numeric descending by >> word >> 2 of each >> end wordCount >> >> Or to really apply ourselves: >> >> function wordCount X >> return the count of each word in X using cr and tab sorted numeric >> descending by word 2 of each >> end wordCount >> >> So: the xTalk syntax is over thirty years old; when was the last >> significant syntax update? >> >> (I'm not at all core to the process, so feel free to tell me how much >> I've >> missed lately!) >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.clavel at gmail.com Mon Jul 25 03:06:52 2022 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Mon, 25 Jul 2022 09:06:52 +0200 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: just curious : what about using LCB for the repeat loop ? jc Le lun. 25 juil. 2022 à 08:44, Geoff Canyon via use-livecode < use-livecode at lists.runrev.com> a écrit : > As a meta point, I wrote a version closer to the actual requirements -- > lowercase everything, process an external input line by line to allow for > arbitrary input size. The result is about 8-10x slower than most other > languages -- not as bad as I feared, not as good as I hoped. Here's the > code for that version: > > on mouseUp > answer file "choose input:" > if it is empty then exit mouseUp > put it into F > lock screen > put the long seconds into T > open file F for read > repeat > read from file F for 1 line > repeat for each word w in toLower(it) > add 1 to R[w] > end repeat > if the result is not empty then exit repeat > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > put the long seconds - T into T1 > put R into fld "output" > put the long seconds - T into T2 > put T1 && T2 > close file F > end mouseUp > > On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon wrote: > > > On this Hacker News thread < > https://news.ycombinator.com/item?id=32214419>, > > I read this programming interview question > > . Roughly, the challenge is > to > > count the frequency of words in input, and return a list with counts, > > sorted from most to least frequent. So input like this: > > > > The foo the foo the > > defenestration the > > > > would produce output like this: > > > > the 4 > > foo 2 > > defenestration 1 > > > > Of course I smiled because LC is literally built for this problem. I took > > well under two minutes to write this function: > > > > function wordCount X > > repeat for each word w in X > > add 1 to R[w] > > end repeat > > combine R using cr and tab > > sort R numeric descending by word 2 of each > > return R > > end wordCount > > > > There are quibbles -- the examples given in the article work line by > line, > > so input size isn't an issue, and of course quotes would cause an issue, > > and LC is case insensitive, so it works, but the output would look like > > this: > > > > The 4 > > foo 2 > > defenestration 1 > > > > But generally, it works, and is super-easy to code. But for the sake of > > argument, consider this Python solution given: > > > > counts = collections.Counter() > > for line in sys.stdin: > > words = line.lower().split() > > counts.update(words) > > > > for word, count in counts.most_common(): > > print(word, count) > > > > That requires a library, but it's also super-easy to code and understand, > > and it requires just the same number of lines. So, daydreaming extensions > > to LC syntax, this comes to mind: > > > > function wordCount X > > add 1 to R[w] for each word w in X > > return R combined using cr and tab and sorted numeric descending by > > word 2 of each > > end wordCount > > > > or if you prefer: > > > > function wordCount X > > for each word w in X add 1 to R[w] > > return (R combined using cr and tab) sorted numeric descending by word > > 2 of each > > end wordCount > > > > Or to really apply ourselves: > > > > function wordCount X > > return the count of each word in X using cr and tab sorted numeric > > descending by word 2 of each > > end wordCount > > > > So: the xTalk syntax is over thirty years old; when was the last > > significant syntax update? > > > > (I'm not at all core to the process, so feel free to tell me how much > I've > > missed lately!) > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacques Clavel From gcanyon at gmail.com Mon Jul 25 10:15:20 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Jul 2022 07:15:20 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: On Mon, Jul 25, 2022 at 12:00 AM jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Just curious : why do you use "read from file F for 1 line" ? > Instead, why don't you read the file in one go, load the content > into a variable and then use "for each line j in myVar" ? > Wouldn't that run faster ? > > Best, > jbv > My base version does all the processing in one go and ignores lines entirely except as they count as white space. But the second set of requirements for the task from the original post required dealing with arbitrarily large inputs (it mentioned terabytes). It's not a completely unrealistic concept: at the rate this goes on my Mac, it would take about 100 hours to process a terabyte input. In any case, I just tried my base "all in one go" version on the 50mb test file, and it's about 3x as fast as parsing line-by-line, which makes it still among the slowest languages as far as I can tell -- no idea how my M1 Macbook Air compares to the machine he used. From gcanyon at gmail.com Mon Jul 25 10:16:13 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Jul 2022 07:16:13 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: On Mon, Jul 25, 2022 at 12:08 AM Jacques Clavel via use-livecode < use-livecode at lists.runrev.com> wrote: > just curious : what about using LCB for the repeat loop ? > > jc > I confess I haven't touched LCB From lists at mangomultimedia.com Mon Jul 25 14:24:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 25 Jul 2022 13:24:58 -0500 Subject: Monterey + Dark Mode + LC 9.6.6 In-Reply-To: References: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> Message-ID: Thanks for posting this Marty. I just needed to add that to my app :-) -- Trevor DeVore ScreenSteps On Mon, Mar 7, 2022 at 7:10 PM Marty Knapp via use-livecode < use-livecode at lists.runrev.com> wrote: > I think I found the issue. I use Levure to build my apps (great framework > - you should try it!) and it uses a a customized plist file. I compared > that to a plist file from a normally complied app and notice it has has > parameter that is needed: > > NSRequiresAquaSystemAppearance > > > --- > Marty Knapp > > > On Mar 7, 2022, at 4:05 PM, Marty Knapp > wrote: > > > > I just had a customer send a screen shot of my app (built with LC 9.6.6) > running on Mac Monterey in dark mode and buttons and fields are all messed > up. I don’t use dark mode and so tried it on my Mac and see the issue. I > then tried an app built with a previous version of LC (9.6.1 I believe) and > it looks fine. Anybody else seeing this? > > --- > > Marty Knapp > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From martyknappster at gmail.com Mon Jul 25 15:06:45 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 25 Jul 2022 12:06:45 -0700 Subject: Monterey + Dark Mode + LC 9.6.6 In-Reply-To: References: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> Message-ID: <6AAA4E05-11E0-448C-9156-B96CC36C7793@gmail.com> Glad I could reciprocate for once! I’m sure glad I took the time to learn Trevor's “Levure" framework - such great way to build apps in LC. I would encourage you to try this if you have not done so. One one of my favorite features is the update helper using the Sparkle framework. And you can’t beat the price - free! https://github.com/trevordevore/levure/wiki --- Marty Knapp > On Jul 25, 2022, at 11:24 AM, Trevor DeVore via use-livecode wrote: > > Thanks for posting this Marty. I just needed to add that to my app :-) > > -- > Trevor DeVore > ScreenSteps > > On Mon, Mar 7, 2022 at 7:10 PM Marty Knapp via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I think I found the issue. I use Levure to build my apps (great framework >> - you should try it!) and it uses a a customized plist file. I compared >> that to a plist file from a normally complied app and notice it has has >> parameter that is needed: >> >> NSRequiresAquaSystemAppearance >> >> >> --- >> Marty Knapp >> >>> On Mar 7, 2022, at 4:05 PM, Marty Knapp >> wrote: >>> >>> I just had a customer send a screen shot of my app (built with LC 9.6.6) >> running on Mac Monterey in dark mode and buttons and fields are all messed >> up. I don’t use dark mode and so tried it on my Mac and see the issue. I >> then tried an app built with a previous version of LC (9.6.1 I believe) and >> it looks fine. Anybody else seeing this? >>> --- >>> Marty Knapp >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 26 09:20:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 26 Jul 2022 08:20:58 -0500 Subject: Automating LiveCode builds with Github Actions? Message-ID: Hello, I would like to automate the following sequential steps using Github Actions and I'm wondering if anyone has experience automating LiveCode with Github Actions that they could share. 1. Open a stack in LiveCode and send a message to it. This would be for building a Levure application. 2. Build an MSI file using Wix 3. Build an exe installer with Inno Setup. The end result would be the ability to create MSI and exe installers from a LIveCode application from a central location (Github) either manually or as part of another workflow. -- Trevor DeVore ScreenSteps From bobsneidar at iotecdigital.com Tue Jul 26 11:06:59 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 26 Jul 2022 15:06:59 +0000 Subject: sqlYoga queries Message-ID: Hi. This is directed at Trevor Devore, although if anyone else knows they can chime in. sqlYoga can define table objects and relations in a database object. Heretofore I have not availed myself of this, being content to only work with query objects and record objects. Now as I am trying to optimize this new socket agent I wrote, I am wondering if a single query for all the data for a given customer/site/device would be more time efficient than multiple queries for each table. So the question is, if I were to use table and relations, could I craft a statement so that it perfoms a single query? Bob S From lists at mangomultimedia.com Tue Jul 26 11:47:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 26 Jul 2022 10:47:58 -0500 Subject: sqlYoga queries In-Reply-To: References: Message-ID: On Tue, Jul 26, 2022 at 10:08 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > sqlYoga can define table objects and relations in a database object. > Heretofore I have not availed myself of this, being content to only work > with query objects and record objects. Now as I am trying to optimize this > new socket agent I wrote, I am wondering if a single query for all the data > for a given customer/site/device would be more time efficient than multiple > queries for each table. So the question is, if I were to use table and > relations, could I craft a statement so that it perfoms a single query? > Hi Bob, So table/relationship objects in SQL Yoga aren't required here. You can set the `related table joins` (or just `joins`) property of a SQL Query Object. See docs: https://github.com/trevordevore/sql-yoga/wiki/SQL-Yoga-API#sqlquery_set Per the docs, if you have table and relationship objects defined you can use shorthand to set the property. You can just use the longhand approach to run some tests and see if your code runs faster with a single query that returns data from multiple tables vs multiple queries that query each table individually. -- Trevor DeVore ScreenSteps From bobsneidar at iotecdigital.com Tue Jul 26 11:54:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 26 Jul 2022 15:54:20 +0000 Subject: sqlYoga queries In-Reply-To: References: Message-ID: Thanks Trevor. I'll give it a go. Bob S > On Jul 26, 2022, at 08:47 , Trevor DeVore via use-livecode wrote: > > On Tue, Jul 26, 2022 at 10:08 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> sqlYoga can define table objects and relations in a database object. >> Heretofore I have not availed myself of this, being content to only work >> with query objects and record objects. Now as I am trying to optimize this >> new socket agent I wrote, I am wondering if a single query for all the data >> for a given customer/site/device would be more time efficient than multiple >> queries for each table. So the question is, if I were to use table and >> relations, could I craft a statement so that it perfoms a single query? >> > > Hi Bob, > > So table/relationship objects in SQL Yoga aren't required here. You can set > the `related table joins` (or just `joins`) property of a SQL Query Object. > See docs: > https://github.com/trevordevore/sql-yoga/wiki/SQL-Yoga-API#sqlquery_set > > Per the docs, if you have table and relationship objects defined you can > use shorthand to set the property. You can just use the longhand approach > to run some tests and see if your code runs faster with a single query that > returns data from multiple tables vs multiple queries that query each table > individually. > > -- > Trevor DeVore > ScreenSteps > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 26 12:42:40 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 16:42:40 +0000 Subject: Android Player Object in Background Message-ID: I have a music playing app that uses the native player object to play music. When in the background, iOS allows control of the playing song in the Control Center. This not function this way on Android. There is a androidStartAudioPlayingInBackground command, but that plays a supplied url, not from the player object. Does anyone have any insight on this? -Dan From dan at clearvisiontech.com Tue Jul 26 12:45:04 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 16:45:04 +0000 Subject: LiveCode access to mpnowplayinginfocenter? Message-ID: On iOS, a song playing in the native player can be controlled in the Control Center. However, it doesn't display the song name, or artwork or other details. Looks like LC needs to access mpnowplayinginfocenter. Is this possible? Anyone know anything about this? -Dan From tom at makeshyft.com Tue Jul 26 17:28:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 26 Jul 2022 17:28:10 -0400 Subject: Android Player Object in Background In-Reply-To: References: Message-ID: The way I achieved this is using a html 5 player in the browser instead of the player object. The player has no way of doing this currently....as far as I know. On Tue, Jul 26, 2022 at 12:43 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a music playing app that uses the native player object to play > music. When in the background, iOS allows control of the playing song in > the Control Center. This not function this way on Android. There is a > androidStartAudioPlayingInBackground command, but that plays a supplied > url, not from the player object. Does anyone have any insight on this? > > -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 dan at clearvisiontech.com Tue Jul 26 18:23:22 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 22:23:22 +0000 Subject: Android Player Object in Background In-Reply-To: References: Message-ID: Tom, Yes, I know the browser will do this. That's what we did originally. But, I couldn't get enough control over the playback in the browser. The Player Object does everything I need! Except work with the OS apparently. I'll have to reach out to LC for assistance. -Dan On 7/26/22, 2:29 PM, "use-livecode on behalf of Tom Glod via use-livecode" wrote: The way I achieved this is using a html 5 player in the browser instead of the player object. The player has no way of doing this currently....as far as I know. On Tue, Jul 26, 2022 at 12:43 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a music playing app that uses the native player object to play > music. When in the background, iOS allows control of the playing song in > the Control Center. This not function this way on Android. There is a > androidStartAudioPlayingInBackground command, but that plays a supplied > url, not from the player object. Does anyone have any insight on this? > > -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 paul at researchware.com Wed Jul 27 11:17:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 27 Jul 2022 11:17:23 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: Still looking for a LCB developer to build/configure Trevor's wrapper for pocketsphinx for macOS also for Windows. On 7/14/2022 3:50 PM, Paul Dupuis via use-livecode wrote: > I am looking to hire someone to take what Trevor DeVore started 3 > years ago, for the Livecode conference, of making an LCB wrapper for > pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for > macOS and extend it to Windows including builds of the pocketsphinx > libraries for macOS and Windows. Essentially, advance it a bit further > so it can just be plugged into Livecode and used as a library in the > IDE and standalones. > > Anyone experienced in making LCB libraries for macOS and Windows > interested? > > If so, please email me off-list and send me a rate and/or estimate. > > P.S. I contacted Trevor, but he is tied up with other work and > unavailable. > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 28 08:39:59 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 28 Jul 2022 08:39:59 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: I don't know if I'm surprised or not surprised that the LCB takeup seems to be low. On Wed, Jul 27, 2022 at 11:18 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Still looking for a LCB developer to build/configure Trevor's wrapper > for pocketsphinx for macOS also for Windows. > > > On 7/14/2022 3:50 PM, Paul Dupuis via use-livecode wrote: > > I am looking to hire someone to take what Trevor DeVore started 3 > > years ago, for the Livecode conference, of making an LCB wrapper for > > pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for > > macOS and extend it to Windows including builds of the pocketsphinx > > libraries for macOS and Windows. Essentially, advance it a bit further > > so it can just be plugged into Livecode and used as a library in the > > IDE and standalones. > > > > Anyone experienced in making LCB libraries for macOS and Windows > > interested? > > > > If so, please email me off-list and send me a rate and/or estimate. > > > > P.S. I contacted Trevor, but he is tied up with other work and > > unavailable. > > > > Paul Dupuis > > Researchware > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 paul at researchware.com Thu Jul 28 10:57:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 28 Jul 2022 10:57:23 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: On 7/28/2022 8:39 AM, Mike Kerner via use-livecode wrote: > I don't know if I'm surprised or not surprised that the LCB takeup seems to > be low. > > Actually, I am surprised. I have seen mentioned on this list dozens of LCB widgets and libraries, including those developed by others and licensed by Livecode for the Summer Bundle. Not hundreds true, but many dozens. That implies to e there are at least a few dozen LCB developers out there. What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). I can learn how to do this, but I expect it will take me 4-8 times as long. So basic math says that if I can find someone to perform the task for pay, it is likely a better option than my trying to spend the time to do it myself. I also figured, since it would seem to be a small job, that it might be attractive to an LCB developer out there to fill in and around other work they are doing. However, if there are no takers, then I guess I'll just make the time and jump in. From harrison at all-auctions.com Thu Jul 28 11:57:55 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Thu, 28 Jul 2022 11:57:55 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> Hi Paul, I seriously doubt that anyone would be chomping at the bit for this task. First, you expect the person to spend their free time looking at the task to determine the effort and cost required to accomplish the task. There is no paid incentive to do that first step. If after the person gave you their estimate, and you decided you didn’t like it, then the developer has lost their time and effort for nothing. Secondly you have stated that you expect the effort required would be no more than 1 day. It’s very possible that your 1 day projection is completely off the mark. If it took the person more time than that, you would probably be dissatisfied. Who would want to deal with that? Thirdly, even if your projection of 1 day of effort was 100% correct, why would anyone want to bother trying to do the task for just one day’s pay? It simply isn’t worth the time or the hassle for any potential programmer to want to deal with the task for that reason alone. So yes, the bottom line here for you is that you indeed will have to work on the task yourself or it’s not going to get done at all. I hope you will keep this in mind for any future work you would like to have performed. I have to get back to my work here. I hope you have a fruitful and productive day! Cheers, Rick > On Jul 28, 2022, at 10:57 AM, Paul Dupuis via use-livecode wrote: > > What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). From paul at researchware.com Thu Jul 28 12:23:52 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 28 Jul 2022 12:23:52 -0400 Subject: Livecode Builder developer wanted In-Reply-To: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> Message-ID: <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> I've hired and managed independent software developers for various businesses for nearly 40 years. I am well aware of the market. We pay competitive contract rates. My estimate of time is probably about right for someone who has set up at least 1 or 2 cross-platform LCB DLL wrappers based on decades of estimating IT projects, but it was more meant to suggest the work is something in the scope of many hours to days vs. weeks or months. As for job size, if you are a contract developer who has a queue of large jobs providing regular income, good for you. My experience is that many contract developers value non-time sensitive small jobs they can fit in and around larger projects to fill in the inevitable gaps between larger projects that can come up. If no one is available or interested, as I said, it is not time sensitive, so we can either wait or tackle it ourselves as time permits. Paul Dupuis Researchware  On 7/28/2022 11:57 AM, harrison--- via use-livecode wrote: > Hi Paul, > > I seriously doubt that anyone would be chomping at the bit for this task. > > First, you expect the person to spend their free time looking at the task to > determine the effort and cost required to accomplish the task. There is > no paid incentive to do that first step. If after the person gave you their > estimate, and you decided you didnt like it, then the developer has lost > their time and effort for nothing. > > Secondly you have stated that you expect the effort required would be > no more than 1 day. Its very possible that your 1 day projection is > completely off the mark. If it took the person more time than that, you > would probably be dissatisfied. Who would want to deal with that? > > Thirdly, even if your projection of 1 day of effort was 100% correct, why would > anyone want to bother trying to do the task for just one days pay? It simply > isnt worth the time or the hassle for any potential programmer to want to > deal with the task for that reason alone. > > So yes, the bottom line here for you is that you indeed will have to work > on the task yourself or its not going to get done at all. > > I hope you will keep this in mind for any future work you would like > to have performed. > > I have to get back to my work here. > > I hope you have a fruitful and productive day! > > Cheers, > > Rick > > > >> On Jul 28, 2022, at 10:57 AM, Paul Dupuis via use-livecode wrote: >> >> What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Thu Jul 28 13:43:43 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Thu, 28 Jul 2022 13:43:43 -0400 Subject: Livecode Builder developer wanted In-Reply-To: <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> Message-ID: Hi Paul, You should have led with that information. Keys here: Not time sensitive. Pay competitive rates: What is your rate? Be upfront with that if you can. Thanks for clearing things up a bit. Cheers, Rick > On Jul 28, 2022, at 12:23 PM, Paul Dupuis via use-livecode wrote: > > I've hired and managed independent software developers for various businesses for nearly 40 years. I am well aware of the market. > > We pay competitive contract rates. My estimate of time is probably about right for someone who has set up at least 1 or 2 cross-platform LCB DLL wrappers based on decades of estimating IT projects, but it was more meant to suggest the work is something in the scope of many hours to days vs. weeks or months. > > As for job size, if you are a contract developer who has a queue of large jobs providing regular income, good for you. My experience is that many contract developers value non-time sensitive small jobs they can fit in and around larger projects to fill in the inevitable gaps between larger projects that can come up. > > If no one is available or interested, as I said, it is not time sensitive, so we can either wait or tackle it ourselves as time permits. > > Paul Dupuis > Researchware From paul at researchware.com Sat Jul 30 15:53:22 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jul 2022 15:53:22 -0400 Subject: wait 0 with messages Message-ID: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> My understanding of 'wait 0 with messages' is that it will cause any pending messages, that are not scheduled for a time later than the current time, in the pendingMessages queue to be processed before continuing. Messages later than the current time (when the statement is executed) will not be processed (yet). Is this correct? From ahsoftware at sonic.net Sat Jul 30 19:49:36 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 30 Jul 2022 16:49:36 -0700 Subject: wait 0 with messages In-Reply-To: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> Message-ID: <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> On 7/30/22 12:53, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement is > executed) will not be processed (yet). > > Is this correct? My understanding of this is close but not quite the same. The "wait 0 with messages" statement is the fastest implementation ("wait 0") of an opportunity for the system event loop to process any pending instructions. The "with messages" statement in effect yields control to the event loop to check if any "send in time" messages have timed out and are pending or to handle other tasks that may have accumulated (mouse or keyboard events, etc). -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Sat Jul 30 22:02:54 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jul 2022 22:02:54 -0400 Subject: wait 0 with messages In-Reply-To: <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> Message-ID: On 7/30/2022 7:49 PM, Mark Wieder via use-livecode wrote: > On 7/30/22 12:53, Paul Dupuis via use-livecode wrote: >> My understanding of 'wait 0 with messages' is that it will cause any >> pending messages, that are not scheduled for a time later than the >> current time, in the pendingMessages queue to be processed before >> continuing. Messages later than the current time (when the statement >> is executed) will not be processed (yet). >> >> Is this correct? > > My understanding of this is close but not quite the same. > The "wait 0 with messages" statement is the fastest implementation > ("wait 0") of an opportunity for the system event loop to process any > pending instructions. The "with messages" statement in effect yields > control to the event loop to check if any "send in time" messages have > timed out and are pending or to handle other tasks that may have > accumulated (mouse or keyboard events, etc). > So Mark, Your understanding is that 'wait 0' (WITHOUT with messages) would allow OS events like a screen redraw, USB drive insertion/removal, etc. but NOT livecode engine events in the queue like mouseDown, mouseUp, resumeStack, etc, OR That wait 0 (again without with messages) would include in addition to OS events, LC built-in events like mouseDown, resumeStack, etc., but not custom messages (or LC standard messages) sent to the queue via sent in time? Thanks for responding! From ahsoftware at sonic.net Sun Jul 31 01:04:14 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 30 Jul 2022 22:04:14 -0700 Subject: wait 0 with messages In-Reply-To: References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> Message-ID: <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> On 7/30/22 19:02, Paul Dupuis via use-livecode wrote: > So Mark, > > Your understanding is that 'wait 0' (WITHOUT with messages) would allow > OS events like a screen redraw, USB drive insertion/removal, etc. but > NOT livecode engine events in the queue like mouseDown, mouseUp, > resumeStack, etc, > > OR > > That wait 0 (again without with messages) would include in addition to > OS events, LC built-in events like mouseDown, resumeStack, etc., but not > custom messages (or LC standard messages) sent to the queue via sent in > time? I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running the script in the first button will prevent mouseUp events in button 2 from being processed. button 1 script: on mouseUp repeat forever wait 0 end repeat end mouseUp button 2 script: on mouseUp put the name of me & cr after msg end mouseUp Now hit command-period to exit to the debugger, change the script of button 1 to on mouseUp repeat forever wait 0 with messages end repeat end mouseUp and you can click button 2 and see new text in the message box. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Sun Jul 31 15:14:39 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 31 Jul 2022 14:14:39 -0500 Subject: wait 0 with messages In-Reply-To: <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> Message-ID: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: > > I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running > the script in the first button will prevent mouseUp events in button 2 from being processed. I think it must do something, "wait 0" is a workaround for bug 22453 (and 18924 which is now marked as a duplicate.) I had to use the workaround and it works. So my take is that any wait allows LC to do housekeeping, and "with messages" also allows app-generated messages. I'd like to get a confirmation from the team though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Sun Jul 31 23:46:38 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 31 Jul 2022 20:46:38 -0700 Subject: wait 0 with messages In-Reply-To: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> Message-ID: On 7/31/22 12:14, J. Landman Gay via use-livecode wrote: > On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: >> >> I don't think "wait 0" by itself does anything useful. Make a stack >> with two buttons. Running the script in the first button will prevent >> mouseUp events in button 2 from being processed. > > I think it must do something, "wait 0" is a workaround for bug 22453 > (and 18924 which is now marked as a duplicate.) I had to use the > workaround and it works. > > So my take is that any wait allows LC to do housekeeping, and "with > messages" also allows app-generated messages. I'd like to get a > confirmation from the team though. That's pretty bizarre. I wonder what's going on. All I can think of is that processing the wait command gives the java JNI command enough time to recover before processing the mobileControlSet vscroll command. And ios wouldn't need that extra time because there's no java interaction. -- Mark Wieder ahsoftware at gmail.com From hershelflc at gmail.com Fri Jul 1 16:24:45 2022 From: hershelflc at gmail.com (Hershel F) Date: Fri, 1 Jul 2022 16:24:45 -0400 Subject: sorting datagrids In-Reply-To: <240E44BA-75A1-4E14-8226-0C874FFFA8CD@iotecdigital.com> References: <510268AA-C4D4-444A-AE64-99F0307E9C25@gmail.com> <240E44BA-75A1-4E14-8226-0C874FFFA8CD@iotecdigital.com> Message-ID: this is more what i’m concerned. i’ll give it a shot and let you know. thanks. > On Jun 30, 2022, at 7:26 PM, Bob Sneidar via use-livecode wrote: > > > put the dgText of group "myDataGrid" into tText > set the itemDelimiter to tab > > repeat with i = 1 to the number of lines of tText > put item i of tText into tLine > sort items of tLine ascending > put tLine into line i of tText > end repeat > > set the dgText of group "myDataGrid" to tText From bobsneidar at iotecdigital.com Fri Jul 1 19:49:10 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 1 Jul 2022 23:49:10 +0000 Subject: Is LC encryption different for Mac than for Windows?? Message-ID: Hi all. As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! Bob S From bobsneidar at iotecdigital.com Fri Jul 1 19:56:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 1 Jul 2022 23:56:33 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: Hmmm... I think I see what is happening. I compared the encrypted string from the server to the string from the client after it received it via the socket connection. I am only getting the last part of the encrypted string! So it looks like the socket connections using with message is losing data somehow. Bob S > On Jul 1, 2022, at 16:49 , Bob Sneidar via use-livecode wrote: > > Hi all. > > As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. > > The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. > > The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! > > When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) > > How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! > > 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 Jul 1 20:08:33 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 00:08:33 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? Sent from my iPhone > On Jul 1, 2022, at 16:57, Bob Sneidar wrote: > > Hmmm... I think I see what is happening. I compared the encrypted string from the server to the string from the client after it received it via the socket connection. I am only getting the last part of the encrypted string! > > So it looks like the socket connections using with message is losing data somehow. > > Bob S > > >> On Jul 1, 2022, at 16:49 , Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> As I may have mentioned I wrote an SQL Server agent that uses sockets to listen for data from a client. The client first arrayEncodes an array, then encrypts the result using an encryption library I wrote. Then it sends the data to the Server Agent. >> >> The Agent receives the encrypted stream, decrypts it using the exact same library, arrayDecodes the data, then performs a query against the database and retrieves th data as an array. All that works. >> >> The agent then arrayEncodes the array and re-encrypts it using THE SAME LIBRARY. It then sends the data back to the client which of course, decrypts it and arrayDecodes it producing the resultant array. All fine and good. But wait there's more! >> >> When I run the Server Agent on my Macintosh all works as expected. I get an array of the queried data. When I run it on a Windows desktop however, the data coming back is corrupted somehow! The decryption command produces an error: ERROR: (SSL error: wrong final block length) >> >> How can that be? It's the same file I just copy it to the windows machine from the Mac along with the encryption library. Everything should be exactly the same! >> >> 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 Jul 1 20:55:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 00:55:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: That's supposed to be Binary Encoding > On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: > > Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? > > Sent from my iPhone > From bobsneidar at iotecdigital.com Fri Jul 1 21:05:28 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:05:28 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. Bob S > On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: > > That's supposed to be Binary Encoding > >> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >> >> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? >> >> Sent from my iPhone >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at pdslabs.net Fri Jul 1 21:10:52 2022 From: phil at pdslabs.net (Phil Davis) Date: Fri, 1 Jul 2022 18:10:52 -0700 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> Message-ID: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. Phil Davis On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: > Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. > > Bob S > > >> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: >> >> That's supposed to be Binary Encoding >> >>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >>> >>> Also when I was running it on my Mac, the client in the server were running on the same Macintosh. On the windows machine however Im going over the wire. Should I buy Ineri encoded or something? >>> >>> Sent from my iPhone >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis (503) 307-4363 From bobsneidar at iotecdigital.com Fri Jul 1 21:19:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:19:22 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: <4FD9D0C1-A732-4FC1-B162-596F0445DBF0@iotecdigital.com> I do. The server agent was written in LC and I am running it in a community version. Just to eliminate the possibility that things are different between Community 9.5 and Pro 9.6.8, I am DL'ing the latest (which I am running on the Mac). I'll try with that. Basically I encrypt and decrypt using aes256 and a key and salt value I store as constants in both the client and the server. I'm really stumped. This should work as advertised. Bob S > On Jul 1, 2022, at 18:10 , Phil Davis via use-livecode wrote: > > I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. > > Phil Davis From phil at pdslabs.net Fri Jul 1 21:23:28 2022 From: phil at pdslabs.net (Phil Davis) Date: Fri, 1 Jul 2022 18:23:28 -0700 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: I don't know about newer LC versions, but some older ones don't do "read from socket until EOF" correctly. Because of that, I added a data header containing the length of the data in bytes. On the receiving end, something like this happens: read from socket for 1 line put it into tLength read from socket for tLength put it into tData close socket I add error-checking of course. HTH - Phil On 7/1/22 6:10 PM, Phil Davis via use-livecode wrote: > I was about to suggest that - you beat me to it. My client/server apps > use base64 encode/decode as the final "envelope" for the data before > network transfer. But I have LC on both ends of the transfer, and you > may not. But ultimately it shouldn't matter. > > Phil Davis > > > On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: >> Okay so I base64Encoded the encrypted string before sending over the >> wire, and base64Decoded on the receiving end. Same thing coming back. >> I am still getting the error. It's not a problem with sending data >> over the wire. >> >> Bob S >> >> >>> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode >>> wrote: >>> >>> That's supposed to be Binary Encoding >>> >>>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode >>>> wrote: >>>> >>>> Also when I was running it on my Mac, the client in the server >>>> were running on the same Macintosh. On the windows machine however >>>> Im going over the wire. Should I buy Ineri encoded or something? >>>> >>>> Sent from my iPhone >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis (503) 307-4363 From bobsneidar at iotecdigital.com Fri Jul 1 21:27:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 2 Jul 2022 01:27:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: <21608B73-A6D7-41D9-8FEF-F0AD356A59FD@iotecdigital.com> <3f535285-9075-bbad-2afa-dc156fff3264@pdslabs.net> Message-ID: OIC. Well I am using the non-blocking method using with message. I don't read from until. All the data should come through then send the message. It may be that there is some kind of limit on the length of the data, but that would suck. Also it doesn't explain why when the client and the server are both running on the Mac, it works flawlessly. A socket is a socket. Bob S > On Jul 1, 2022, at 18:23 , Phil Davis via use-livecode wrote: > > I don't know about newer LC versions, but some older ones don't do "read from socket until EOF" correctly. Because of that, I added a data header containing the length of the data in bytes. On the receiving end, something like this happens: > > read from socket for 1 line > put it into tLength > read from socket for tLength > put it into tData > close socket > > I add error-checking of course. > > HTH - > Phil > > > On 7/1/22 6:10 PM, Phil Davis via use-livecode wrote: >> I was about to suggest that - you beat me to it. My client/server apps use base64 encode/decode as the final "envelope" for the data before network transfer. But I have LC on both ends of the transfer, and you may not. But ultimately it shouldn't matter. >> >> Phil Davis >> >> >> On 7/1/22 6:05 PM, Bob Sneidar via use-livecode wrote: >>> Okay so I base64Encoded the encrypted string before sending over the wire, and base64Decoded on the receiving end. Same thing coming back. I am still getting the error. It's not a problem with sending data over the wire. >>> >>> Bob S >>> >>> >>>> On Jul 1, 2022, at 17:55 , Bob Sneidar via use-livecode wrote: >>>> >>>> That's supposed to be Binary Encoding >>>> >>>>> On Jul 1, 2022, at 17:08 , Bob Sneidar via use-livecode wrote: >>>>> >>>>> Also when I was running it on my Mac, the client in the server we’re running on the same Macintosh. On the windows machine however I’m going over the wire. Should I buy Ineri encoded or something? >>>>> >>>>> Sent from my iPhone >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Phil Davis > (503) 307-4363 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From neville.smythe at optusnet.com.au Sat Jul 2 20:18:46 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Sun, 3 Jul 2022 10:18:46 +1000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: Is socketTimeOut set high enough? Neville From ms1 at soas.ac.uk Sun Jul 3 09:26:24 2022 From: ms1 at soas.ac.uk (Muaath Salih) Date: Sun, 3 Jul 2022 14:26:24 +0100 Subject: No subject Message-ID: From bobsneidar at iotecdigital.com Sun Jul 3 18:02:14 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sun, 3 Jul 2022 22:02:14 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: References: Message-ID: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> Ill check later. Sent from my iPhone > On Jul 2, 2022, at 17:20, Neville Smythe via use-livecode wrote: > > Is socketTimeOut set high enough? > > > Neville > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Jul 4 11:08:50 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 4 Jul 2022 18:08:50 +0300 Subject: [ANN] Release 9.6.8 RC-3 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 RC-3. Getting the Release =================== You can find the release in your LiveCode account area or get it via the automatic updater. To find the 9.6.8 RC-3 test release in your LiveCode account, please scroll down to below the list of stable releases, to find your available test releases. Release Contents ================ LiveCode 9.6.8 RC-3 comes with 1 regression bugfix: - The standalone builder now ensures all executables in a macOS standalone only contain the requested architectures For the full list of all fixes, updates and enhancements please see the release notes: http://downloads.livecode.com/livecode/9_6_8/LiveCodeNotes-9_6_8_rc_3.pdf Known issues ============ - The Browser widget's native layer is not shown in some Linux distros with Cinnamon window manager. - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS yet. Required Software ================= To build iOS apps with LiveCode you must have the appropriate versions of Xcode as follows: - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS 12.1 SDK - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS 13.2 SDK - macOS 10.15.4: Xcode 12.4.x - LiveCode builds iOS apps using the iOS 14.4 SDK - macOS 11+ : Xcode 13.2.x - LiveCode builds iOS apps using the iOS 15.2 SDK There is a full list of working LiveCode/macOS/Xcode combinations here: https://livecode.com/faq Note: Whilst we endeavour to release updated versions of LiveCode supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly recommend disabling automatic update of Xcode or downloading the specific version of Xcode required directly from the Apple developer portal and installing it separately. Important: From the start of April 2022, Apple is only accepting apps built using iOS15.x SDKs. This means that, if you wish to submit apps to the AppStore you will have to be running at least macOS 11 in order to be able to install the necessary version of Xcode. To build macOS apps with an Apple architecture slice requires macOS High Sierra (10.13) or higher. Feedback ======== Please report any bugs encountered on our quality center at http://quality.livecode.com/ We have a forum available for discussing LiveCode at http://forums.livecode.com Have fun! The LiveCode Team -- From mkoob at rogers.com Mon Jul 4 12:06:54 2022 From: mkoob at rogers.com (Martin Koob) Date: Mon, 4 Jul 2022 12:06:54 -0400 Subject: {OT} Are there any ffmpeg "experts" on this list? In-Reply-To: References: Message-ID: <2B9CC490-0274-4F09-AB1E-921F14511B68@rogers.com> Hi Mark Yes mergAV can be used concatenate videos, resize them, layer them and then export them to a video file. I wrote an app that did this a while ago on LiveCode 6.7.3. I haven’t tried using mergAV on LC 9.x. It would be nice if there was a set of common commands that could be used to do video editing on either Mac or Windows, just like player object does with video playback. Probably not a high demand for that though to make it cost effective. Martin > On Jun 24, 2022, at 12:23 PM, Mark Waddingham via use-livecode wrote: > > FWIW, I *think* mergAV can do similar things on macOS* to the mediafoundation external on Windows - although the APIs, while similar, do require different code. From paul at researchware.com Tue Jul 5 17:20:29 2022 From: paul at researchware.com (Paul Dupuis) Date: Tue, 5 Jul 2022 17:20:29 -0400 Subject: Images and arrays... Message-ID: I am drawing a blank: If I have the following code:                   export snapshot from rect tRect of player "mediaConvert" of stack "libHrAPI" to tImage as PNG                   put tImage into pRefArray[tRef] The actual image (not a reference, such as a long ID) is placed in the tRefArray[tRef] array element However, if I have a variable tImageID that contains a reference to an image such as image id 10328 of card id 10001 of stack "X" How do I get that actual Image stored in the array? put tImageID into pRefArray[tRef] -- results in the array element storing the long ID put (tImageID) into pRefArray[tRef] -- also results in the array element storing the long ID. I thought the () might for the long ID to be evaluated to an actual image From bobsneidar at iotecdigital.com Tue Jul 5 21:47:24 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 01:47:24 +0000 Subject: Images and arrays... In-Reply-To: References: Message-ID: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> Put the imageData? Sent from my iPhone > On Jul 5, 2022, at 18:40, Paul Dupuis via use-livecode wrote: > > I am drawing a blank: > > If I have the following code: > > export snapshot from rect tRect of player "mediaConvert" of stack "libHrAPI" to tImage as PNG > put tImage into pRefArray[tRef] > > The actual image (not a reference, such as a long ID) is placed in the tRefArray[tRef] array element > > However, if I have a variable tImageID that contains a reference to an image such as > > image id 10328 of card id 10001 of stack "X" > > How do I get that actual Image stored in the array? > > put tImageID into pRefArray[tRef] -- results in the array element storing the long ID > > put (tImageID) into pRefArray[tRef] -- also results in the array element storing the long ID. I thought the () might for the long ID to be evaluated to an actual 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 bobsneidar at iotecdigital.com Tue Jul 5 21:49:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 01:49:26 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> References: <903A67EB-C6ED-47EC-9683-9747DCF86688@iotecdigital.com> Message-ID: <3EF815F8-847D-4094-9938-8AA8DF171889@iotecdigital.com> So strange. I built in some logging, removed the base64 stuff, and now it works! Timing problem of some sort? Who knows. Sent from my iPhone > On Jul 3, 2022, at 15:03, Bob Sneidar via use-livecode wrote: > > Ill check later. > > Sent from my iPhone > >> On Jul 2, 2022, at 17:20, Neville Smythe via use-livecode wrote: >> >> Is socketTimeOut set high enough? >> >> >> Neville >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Jul 5 23:22:38 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 5 Jul 2022 23:22:38 -0400 Subject: Images and arrays... In-Reply-To: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> References: <5AC38BAA-8D60-4202-8E21-D0804FBB8A34@iotecdigital.com> Message-ID: imagedata does not include alpha as odd as it sounds .... "the text of image" contains all of the data. :D On Tue, Jul 5, 2022 at 9:48 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Put the imageData? > > Sent from my iPhone > > > On Jul 5, 2022, at 18:40, Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I am drawing a blank: > > > > If I have the following code: > > > > export snapshot from rect tRect of player > "mediaConvert" of stack "libHrAPI" to tImage as PNG > > put tImage into pRefArray[tRef] > > > > The actual image (not a reference, such as a long ID) is placed in the > tRefArray[tRef] array element > > > > However, if I have a variable tImageID that contains a reference to an > image such as > > > > image id 10328 of card id 10001 of stack "X" > > > > How do I get that actual Image stored in the array? > > > > put tImageID into pRefArray[tRef] -- results in the array element > storing the long ID > > > > put (tImageID) into pRefArray[tRef] -- also results in the array element > storing the long ID. I thought the () might for the long ID to be evaluated > to an actual 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 neville.smythe at optusnet.com.au Wed Jul 6 00:57:17 2022 From: neville.smythe at optusnet.com.au (Neville Smythe) Date: Wed, 6 Jul 2022 14:57:17 +1000 Subject: Is LC encryption different for Mac than for Windows?? Message-ID: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> Bob Sneider wrote > So strange. I built in some logging, removed the base64 stuff, and now it > works! Timing problem of some sort? Who knows. That’s what I was inferring. I’d suggest you increase socketTimeOut to avoid the problem recurring (or reduce it if you want to test that timing was the problem!) It may well be that > A socket is a socket but performance ain’t performance Neville From bobsneidar at iotecdigital.com Wed Jul 6 11:15:17 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 6 Jul 2022 15:15:17 +0000 Subject: Is LC encryption different for Mac than for Windows?? In-Reply-To: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> References: <1DF8F62E-8EEE-4FB9-9F92-04F5C43AC6E7@optusnet.com.au> Message-ID: <4521035E-856F-4C0D-AF6E-643C0E8D2B3B@iotecdigital.com> Thanks. I still have to test outside the network. If I have issues I will definitely check the socketTimeoutInterval. Currently it is 10000. I take it that is milliseconds. Bob S > On Jul 5, 2022, at 21:57 , Neville Smythe via use-livecode wrote: > > Bob Sneider wrote >> So strange. I built in some logging, removed the base64 stuff, and now it >> works! Timing problem of some sort? Who knows. > > That’s what I was inferring. I’d suggest you increase socketTimeOut to avoid the problem recurring (or reduce it if you want to test that timing was the problem!) > > It may well be that > >> A socket is a socket > > but performance ain’t performance > > Neville > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jul 8 08:03:55 2022 From: panos.merakos at livecode.com (panagiotis merakos) Date: Fri, 8 Jul 2022 15:03:55 +0300 Subject: [[ ANN ]] Release 9.6.8 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.8 STABLE You can find more details on the bug fixes and improvements of this new release here: https://livecode.com/livecode-9-6-8-stable-m1-and-onwards-apple-architecture-support/ You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From markclark at mac.com Fri Jul 8 13:21:55 2022 From: markclark at mac.com (Mark Clark) Date: Fri, 8 Jul 2022 12:21:55 -0500 Subject: MegaBundle whatnot Message-ID: I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? TIA, Mark (on digest mode) From ambassador at fourthworld.com Fri Jul 8 13:34:30 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 8 Jul 2022 10:34:30 -0700 Subject: Tree Widget: hilitedValue? Message-ID: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> I see the Tree widget supports a hilitedElement property, which is useful for managing the selection in the UI. Is there a one-liner for obtaining not the element path but the value? It wouldn't kill me to extract the arrayData and turn a hilitedElement path like: level1,level2,level3, ...into a proper array notation to obtain the value at: tArray["level1"]["level2"]["level3"] But it seems such a common need I'm guessing I'm overlooking a more direct way to do that. TIA - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From matthias_livecode_150811 at m-r-d.de Fri Jul 8 15:00:23 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 8 Jul 2022 21:00:23 +0200 Subject: MegaBundle whatnot In-Reply-To: References: Message-ID: Mark, that seems to be a problem with Indy and Business licenses. I can reproduce it here with an Indy license. Seems, the Enh.Pack needs to be modified a little bit.;) As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. https://quality.livecode.com/show_bug.cgi?id=23799 Maybe you want to add yourself to the CC list. Regards, Matthias > Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode : > > I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? > > Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? > > TIA, > Mark (on digest mode) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 8 19:14:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 8 Jul 2022 23:14:40 +0000 Subject: Encrypted Data over Sockets Message-ID: Hi all. I'm running into a curious thing. I am sending encrypted data over a socket connection. When I send the data, I am using blocking mode, where the commands look like this: if tCurrentConnectionA ["ssl"] is true then put slyEncrypt(tSocketData) into tSocketData end if close socket tSocket -- in case it was left open open socket to tSocket write tSocketData & linefeed to socket tSocket read from socket tSocket until linefeed put it into tReceivedData if the last char of tReceivedData is linefeed then \ delete last char of tReceivedData close socket tSocket if tCurrentConnectionA ["ssl"] is true then put slyDecrypt(tReceivedData) into tReceivedData end if Now just to belay questions that might be asked, I know that the read from socket is working because I get a salted hash back, so the server is doing what it is supposed to on the other end. However when I go to decrypt the hash I am SOMETIMES getting the dreaded Wrong final block length as an error. Curiously, sometimes it works! My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? I need a delimiter. Read from socket until eof fails with a timeout. That is intensly unfortunate by the way, it ought to work. Bob S From ahsoftware at sonic.net Fri Jul 8 19:35:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 16:35:41 -0700 Subject: Encrypted Data over Sockets In-Reply-To: References: Message-ID: On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: > My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? Not a valid question. If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Jul 8 19:49:22 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 8 Jul 2022 23:49:22 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: Message-ID: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. Bob S > On Jul 8, 2022, at 16:35 , Mark Wieder via use-livecode wrote: > > On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: > >> My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? > > Not a valid question. > > If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. > > -- > 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 alex at tweedly.net Fri Jul 8 20:47:07 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sat, 9 Jul 2022 01:47:07 +0100 Subject: Encrypted Data over Sockets In-Reply-To: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Message-ID: <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> But, an encoded array is STILL binary data. So any issues with "read until linefeed" will still exist. Try sending a header with number of bytes, followed by the bytes. If you really wanted, you could do:    write  (the number of bytes in tSocketData) & linefeed to socket tSocket    write tSocketData & linefeed to socket tSocket and then when you read,    read from socket tSocket until linefeed    put it into tNumBytes    read from socket tSocket until linefeed    put it into tData and compare tNumbytes with the number of bytes in tData Or, just do    read tnumbytes form socket tSocket Alex. On 09/07/2022 00:49, Bob Sneidar via use-livecode wrote: > Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. > > Bob S > > >> On Jul 8, 2022, at 16:35 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:14, Bob Sneidar via use-livecode wrote: >> >>> My suspicion is that the hash contains a linefeed (sometimes). So the question I have is, what character is GUARANTEED to NOT be in an aes256 hash? >> Not a valid question. >> >> If you really need to send binary data over a socket connection, start by sending a header that contains the data length. Extract that and then read that many bytes. >> >> -- >> 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 Fri Jul 8 20:48:41 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 17:48:41 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> Message-ID: <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: > Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. Not sure what "looks like" an encoded array should mean. When you encode an array you get binary data. You can't treat it like text. -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Fri Jul 8 20:58:03 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 8 Jul 2022 17:58:03 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <11cf1e98-486c-bd59-1fa6-dc0c620c91a9@tweedly.net> Message-ID: On 7/8/22 17:47, Alex Tweedly via use-livecode wrote: > But, an encoded array is STILL binary data. So any issues with "read > until linefeed" will still exist. > > Try sending a header with number of bytes, followed by the bytes. Yeah. What he said. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Jul 8 22:14:42 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:14:42 +0000 Subject: Encrypted Data over Sockets In-Reply-To: <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? Bob S > On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: > > On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. > > Not sure what "looks like" an encoded array should mean. > When you encode an array you get binary data. You can't treat it like text. > > -- > 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 Fri Jul 8 22:47:40 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:47:40 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> Okay apparently base64Encode/Decode is my friend. I have this working now without encryption. I will re-enable encryption and see if that works. Bob S > On Jul 8, 2022, at 19:14 , Bob Sneidar via use-livecode wrote: > > It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. > > I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? > > Bob S > > >> On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >>> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. >> >> Not sure what "looks like" an encoded array should mean. >> When you encode an array you get binary data. You can't treat it like text. >> >> -- >> 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 bobsneidar at iotecdigital.com Fri Jul 8 22:53:58 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 9 Jul 2022 02:53:58 +0000 Subject: Encrypted Data over Sockets In-Reply-To: References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> Message-ID: <0FE598F2-3CF3-4D4E-8300-F608B3D8897E@iotecdigital.com> Hi all. Thanks for putting up with me. I finally got it all to work using base64Encode/Decode on the encrypted string before sending it with a delimiter appended. Same thing coming back. Thank for all your patience. I almost became a patient myself. Bob S > On Jul 8, 2022, at 19:14 , Bob Sneidar via use-livecode wrote: > > It looks after the agent receives it generally like how it looked after I encoded the array but before I sent it. Obviously it's not the same. Something is corrupting it over the wire. I am not even using encryption now, just sending the encoded array data and a delimiter. When it decodes on the other end now, arrayDecode fails. > > I guess the question I *should* be asking is, how do I encode binary data to be sent over the wire so that it doesn't become corrupted? > > Bob S > > >> On Jul 8, 2022, at 17:48 , Mark Wieder via use-livecode wrote: >> >> On 7/8/22 16:49, Bob Sneidar via use-livecode wrote: >>> Well I disabled encryption alltogether, sending and receiving an encoded array instead. Upon trying to decode I still get an error, and looking at what I get back, it LOOKS like an encoded array. They is just something wrong with the data. Curiously, if I just send and receive plain text it works every time. >> >> Not sure what "looks like" an encoded array should mean. >> When you encode an array you get binary data. You can't treat it like text. >> >> -- >> 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 matthias_livecode_150811 at m-r-d.de Sat Jul 9 03:39:50 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sat, 9 Jul 2022 09:39:50 +0200 Subject: MegaBundle whatnot In-Reply-To: References: Message-ID: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Mark, What I forgot. I assume you have a current subscription, right? So why do you not try a newer LC release; one of the new editions without Indy and business in the name? Anything higher than 9.63 should do. Regards Matthias Von meinem iPhone gesendet > Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: > > Mark, > > that seems to be a problem with Indy and Business licenses. I can reproduce it here with an Indy license. Seems, the Enh.Pack needs to be modified a little bit.;) > > As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. > > https://quality.livecode.com/show_bug.cgi?id=23799 > > Maybe you want to add yourself to the CC list. > > Regards, > Matthias > > >> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode : >> >> I went ahead and purchased the megabundle, mostly for the LC Enhancement piece. Got that download and clicked the install widgets and the widgets all show “unlicensed.” Hmm, what? >> >> Tried to re-license and for some reason I only see my business license as an option (also have the old commercial license whatever that maps to now). So, np figure it out later, selected business license and LC starts but the enhancements still show unlicensed. Is there something manual I’m missing? >> >> TIA, >> Mark (on digest mode) >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From kaveh at rivervalleytechnologies.com Sat Jul 9 07:41:26 2022 From: kaveh at rivervalleytechnologies.com (Kaveh) Date: Sat, 9 Jul 2022 12:41:26 +0100 Subject: MegaBundle whatnot In-Reply-To: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Message-ID: Why does LiveCode make the licenses so complicated? I try to understand from time to time so I can repurchase, then give up... On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Mark, > What I forgot. > > I assume you have a current subscription, right? > So why do you not try a newer LC release; one of the new editions without > Indy and business in the name? Anything higher than 9.63 should do. > > Regards > Matthias > > Von meinem iPhone gesendet > > > Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: > > > > Mark, > > > > that seems to be a problem with Indy and Business licenses. I can > reproduce it here with an Indy license. Seems, the Enh.Pack needs to be > modified a little bit.;) > > > > As you are on digest mode and i do not know when you read this, I've > filed a bug already to speed it up a little bit. > > > > https://quality.livecode.com/show_bug.cgi?id=23799 > > > > Maybe you want to add yourself to the CC list. > > > > Regards, > > Matthias > > > > > >> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> I went ahead and purchased the megabundle, mostly for the LC > Enhancement piece. Got that download and clicked the install widgets and > the widgets all show “unlicensed.” Hmm, what? > >> > >> Tried to re-license and for some reason I only see my business license > as an option (also have the old commercial license whatever that maps to > now). So, np figure it out later, selected business license and LC starts > but the enhancements still show unlicensed. Is there something manual I’m > missing? > >> > >> TIA, > >> Mark (on digest mode) > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Kaveh Bazargan PhD Director River Valley Technologies ● Twitter ● LinkedIn ● ORCID *Accelerating the Communication of Research* From jbv at souslelogo.com Sat Jul 9 07:43:03 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sat, 09 Jul 2022 07:43:03 -0400 Subject: LC 9.6.8 and UTF-8 on MacOS 10.15 Message-ID: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> Hi list, I have a serie of text files in UTF-8 format for which I need to do some processing in LC, and then save to a single text file also in UTF-8. I am using the following code : open file tpath for UTF8 read read from file tpath until EOF close file tpath1 --put it into tfile put textdecode(it,"UTF-8") into tfile -- processing open file tpath2 for UTF8 write write liste_credits to file tpath2 close file tpath2 If I use "put it into tfile" instead of "put textDecode...", the text content is full of typical gibberish (such as "" instead of ""). I thought the latest LC versions could process UTF-8 natively. So why is "textdecode" necessary to obtain special characters in their true form ? Thank you in advance. jbv From sean at pidigital.co.uk Sat Jul 9 08:50:49 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Sat, 9 Jul 2022 13:50:49 +0100 Subject: LC 9.6.8 and UTF-8 on MacOS 10.15 In-Reply-To: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> References: <69ee56759df71bf88f08157d1a83d302@souslelogo.com> Message-ID: <806C3DD1-5EAA-48F5-B8BD-4FAE343D2609@pidigital.co.uk> What result do you get from: put it contains “æ” Sean Cole Pi > On 9 Jul 2022, at 12:43, jbv via use-livecode wrote: > > æ From ahsoftware at sonic.net Sat Jul 9 11:37:21 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 9 Jul 2022 08:37:21 -0700 Subject: Encrypted Data over Sockets In-Reply-To: <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> References: <9CFC5800-6F23-473F-8277-2247C77B5F0D@iotecdigital.com> <49890233-a7b7-4437-8f1d-91d38f1ebf91@sonic.net> <4B7BF8DA-6182-41EF-A409-252A4B8B8D6B@iotecdigital.com> Message-ID: <62687332-7e51-8e02-2709-98c18073ea4f@sonic.net> On 7/8/22 19:47, Bob Sneidar via use-livecode wrote: > Okay apparently base64Encode/Decode is my friend. I have this working now without encryption. I will re-enable encryption and see if that works. Base64 encoding will do the trick but at the expense of making your data strings twice as long as the binary equivalents. -- Mark Wieder ahsoftware at gmail.com From dan at clearvisiontech.com Sat Jul 9 15:07:44 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Sat, 9 Jul 2022 19:07:44 +0000 Subject: Signing and Uploading apps to the Mac App Store HELL! Message-ID: <6AECE726-DF3C-4B4B-BE69-5757F25B2C2C@clearvisiontech.com> Greetings! I am pulling out my hair in getting my app prepared for the MacApp Store (and for downloading from my website). I can't take it anymore!! Is there someone here I can pay to either do this for me, or walk me through this hideous process? -Dan From jacque at hyperactivesw.com Sat Jul 9 16:17:23 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 9 Jul 2022 15:17:23 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> Message-ID: <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: > I see the Tree widget supports a hilitedElement property, which is useful for managing the > selection in the UI. > > Is there a one-liner for obtaining not the element path but the value? I'm using an older version, but here the hilitedElement includes the values of each element in the path. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Jul 9 17:07:01 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 9 Jul 2022 16:07:01 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> Message-ID: <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> On 7/9/22 3:17 PM, J. Landman Gay via use-livecode wrote: > On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: >> I see the Tree widget supports a hilitedElement property, which is useful for managing the >> selection in the UI. >> >> Is there a one-liner for obtaining not the element path but the value? > > I'm using an older version, but here the hilitedElement includes the values of each element in > the path. > I misunderstood, you don't mean just the names of the elements. The value shows up as part of the tree unless you turn off "show values". I think you'll have to parse the array to actually get the values in a leaf. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From markclark at mac.com Sat Jul 9 19:25:10 2022 From: markclark at mac.com (Mark Clark) Date: Sat, 9 Jul 2022 18:25:10 -0500 Subject: use-livecode Digest, Vol 226, Issue 8 In-Reply-To: References: Message-ID: <9AC9115B-E414-471E-8729-107880559181@mac.com> Hey, saw your post this am and much appreciated. I sent a request to support as well. Thanks for the assist and confirmation! Mark It seems that each time I sign up for the bug tracker and or forums my main livecode.com password gets mangled. Been happening for years and if I remember I’ll ask for support help there. Likely something to do with keychain being confused about similar url’s. > On Jul 9, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: > > As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. > > https://quality.livecode.com/show_bug.cgi?id=23799 > > > Maybe you want to add yourself to the CC list. > > Regards, > Matthias From matthias_livecode_150811 at m-r-d.de Sat Jul 9 19:34:49 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 10 Jul 2022 01:34:49 +0200 Subject: use-livecode Digest, Vol 226, Issue 8 In-Reply-To: <9AC9115B-E414-471E-8729-107880559181@mac.com> References: <9AC9115B-E414-471E-8729-107880559181@mac.com> Message-ID: <1F9D5EFE-55D7-4B15-93B8-4DF55115FF7B@m-r-d.de> > Am 10.07.2022 um 01:25 schrieb Mark Clark via use-livecode : > > Hey, saw your post this am and much appreciated. I sent a request to support as well. > > Thanks for the assist and confirmation! > > Mark > > It seems that each time I sign up for the bug tracker and or forums my main livecode.com password gets mangled. Been happening for years and if I remember I’ll ask for support help there. Likely something to do with keychain being confused about similar url’s. > The easiest way to see if it is really a keychain thing is, search for livecode in KeyChain.app and delete all Livecode entries and then reset your password for Livecode.com account and the QualityCenter. Regards, Matthias >> On Jul 9, 2022, at 11:00 AM, use-livecode-request at lists.runrev.com wrote: >> >> As you are on digest mode and i do not know when you read this, I've filed a bug already to speed it up a little bit. >> >> https://quality.livecode.com/show_bug.cgi?id=23799 > >> >> Maybe you want to add yourself to the CC list. >> >> 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 brian at milby7.com Sat Jul 9 20:11:29 2022 From: brian at milby7.com (Brian Milby) Date: Sat, 9 Jul 2022 20:11:29 -0400 Subject: Tree Widget: hilitedValue? In-Reply-To: <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> Message-ID: I don't think there is an existing one liner, but it can be done a couple ways. Here is a recursive function defined in the PI code for Custom Props: on fetchArrayDataOnPath pPath, pArray, @rData local tKey put item 1 of pPath into tKey if the number of items in pPath is 1 then if tKey is not among the keys of pArray then return "no such key" else put pArray[tKey] into rData return empty end if else delete item 1 of pPath fetchArrayDataOnPath pPath, pArray[tKey], rData end if end fetchArrayDataOnPath There are other handlers in that script that could be useful as well (add/set/delete). You could also turn the path into an array (but lose the error checking above): function getValue pArray, pPath split pPath by comma return pArray[pPath] end getValue Thanks, Brian On Sat, Jul 9, 2022 at 5:08 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 7/9/22 3:17 PM, J. Landman Gay via use-livecode wrote: > > On 7/8/22 12:34 PM, Richard Gaskin via use-livecode wrote: > >> I see the Tree widget supports a hilitedElement property, which is > useful for managing the > >> selection in the UI. > >> > >> Is there a one-liner for obtaining not the element path but the value? > > > > I'm using an older version, but here the hilitedElement includes the > values of each element in > > the path. > > > > I misunderstood, you don't mean just the names of the elements. The value > shows up as part of > the tree unless you turn off "show values". I think you'll have to parse > the array to actually > get the values in a leaf. > > -- > 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 paul at researchware.com Sun Jul 10 12:58:16 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 10 Jul 2022 12:58:16 -0400 Subject: macOS Ventura (13.x.x)... Message-ID: Is anyone out there in Livecode land running a developer beta of macOS Ventura (13.x.x)? If so, I am hoping you can perform a quick test: systemVersion() returns 10.16 for macOS Big Sur or Monterey under Livecode 9.6.7 and earlier (in the 9.6.x versions). The systemVersion() bug was just fixed in LC 9.6.8. I'd like to ask if someone on Ventura (13.x.x) can run LC 9.6.7 or any 9.6.x less than 9.6.8) and confirm that systemVersion() also reports 10.16 for macOS Ventura - i.e. that the systemVersion() bug behaves the same way under Ventura for recent versions of LC less than LC 9.6.8. Thank you to anyone that can do this test in advance, Paul Dupuis Researchware From colinholgate at gmail.com Sun Jul 10 13:26:31 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Sun, 10 Jul 2022 11:26:31 -0600 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. Opening a stack made in 9.6.3 with Monterey, does show 10.16.0 when run in 9.6.3 in Ventura. > On Jul 10, 2022, at 10:58 AM, Paul Dupuis via use-livecode wrote: > > Is anyone out there in Livecode land running a developer beta of macOS Ventura (13.x.x)? > > If so, I am hoping you can perform a quick test: > > systemVersion() returns 10.16 for macOS Big Sur or Monterey under Livecode 9.6.7 and earlier (in the 9.6.x versions). The systemVersion() bug was just fixed in LC 9.6.8. > > I'd like to ask if someone on Ventura (13.x.x) can run LC 9.6.7 or any 9.6.x less than 9.6.8) and confirm that systemVersion() also reports 10.16 for macOS Ventura - i.e. that the systemVersion() bug behaves the same way under Ventura for recent versions of LC less than LC 9.6.8. > > Thank you to anyone that can do this test in advance, > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Sun Jul 10 14:29:08 2022 From: paul at researchware.com (Paul Dupuis) Date: Sun, 10 Jul 2022 14:29:08 -0400 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: <9feab550-465d-f0f3-9754-cf7ba7c96259@researchware.com> On 7/10/2022 1:26 PM, Colin Holgate via use-livecode wrote: > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. > > Opening a stack made in 9.6.3 with Monterey, does show 10.16.0 when run in 9.6.3 in Ventura. > > Thank you. From ambassador at fourthworld.com Sun Jul 10 16:33:15 2022 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 10 Jul 2022 13:33:15 -0700 Subject: Tree Widget: hilitedValue? In-Reply-To: References: Message-ID: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> Brian Milby wrote: > You could also turn the path into an array (but lose the error > checking above): > > function getValue pArray, pPath > split pPath by comma > return pArray[pPath] > end getValue Thanks, Brian. I keep forgetting we can use an array as an element specifier. Has that been around the whole time, or was it added in recent years? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Sun Jul 10 16:45:35 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Jul 2022 15:45:35 -0500 Subject: Tree Widget: hilitedValue? In-Reply-To: References: <40617774-9e2b-4c3d-7cbe-df34553aab16@fourthworld.com> <1d6413a2-e2fc-5676-c21c-ffe1be21f960@hyperactivesw.com> <3aacafc7-a26e-c55f-107c-7272cdc86794@hyperactivesw.com> Message-ID: On 7/9/22 7:11 PM, Brian Milby via use-livecode wrote: > function getValue pArray, pPath > split pPath by comma > return pArray[pPath] > end getValue I keep forgetting we can do that. It's cool, but I don't understand how it works. Splitting the path by comma produces a numbered array, and yet the function appears to ignore the numerical keys and return only the element values. How come? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Jul 10 16:49:23 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 10 Jul 2022 15:49:23 -0500 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: Message-ID: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. Sounds like the OSS community has some work to do, if there is anyone with the skills still there. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From brian at milby7.com Sun Jul 10 17:24:06 2022 From: brian at milby7.com (Brian Milby) Date: Sun, 10 Jul 2022 17:24:06 -0400 Subject: Tree Widget: hilitedValue? In-Reply-To: References: Message-ID: <6ED6C57B-246A-45EB-8128-69A655C9E215@milby7.com> If pPath[1] = “a” and pPath[2] = “b” Then pArray[pPath] is the same as saying pArray[“a”][“b”] I’m not sure when it was added. It is relatively recent (7 or 8 I think, but not sure) Thanks, Brian Sent from my iPhone > On Jul 10, 2022, at 4:46 PM, J. Landman Gay via use-livecode wrote: > > On 7/9/22 7:11 PM, Brian Milby via use-livecode wrote: >> function getValue pArray, pPath >> split pPath by comma >> return pArray[pPath] >> end getValue > > I keep forgetting we can do that. It's cool, but I don't understand how it works. Splitting the path by comma produces a numbered array, and yet the function appears to ignore the numerical keys and return only the element values. > > How come? > > -- > 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 paulmcclernan at gmail.com Mon Jul 11 02:45:01 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Mon, 11 Jul 2022 02:45:01 -0400 Subject: macOS Ventura (13.x.x)... In-Reply-To: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: The OSS "community" already had TONs of work to do. Apparently a lot of other software is crashing with macOS Ventura as well. I wonder why? Time to install Ventura and find out I guess. Every year this former mac fan-boy inches closer to becoming a Linux regular. On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode wrote: > > On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > > With 9.6.3 Community version, showing the message box, or the script window of a button, crashes LiveCode right away. > > Sounds like the OSS community has some work to do, if there is anyone with the skills still there. > > -- > 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 richmondmathewson at gmail.com Mon Jul 11 02:53:03 2022 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Mon, 11 Jul 2022 08:53:03 +0200 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: Well there go my plans for early adoption. I do feel that the 'new OS a year' model means that ALL the versions are unfinished. I could say the same about LiveCode versions. Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the niggles relating to the elevator theory of human evolution. On Mon, 11 Jul 2022, 08:46 Paul McClernan via use-livecode, < use-livecode at lists.runrev.com> wrote: > The OSS "community" already had TONs of work to do. > > Apparently a lot of other software is crashing with macOS Ventura as well. > I wonder why? Time to install Ventura and find out I guess. > > Every year this former mac fan-boy inches closer to becoming a Linux > regular. > > > On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode > wrote: > > > > On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: > > > With 9.6.3 Community version, showing the message box, or the script > window of a button, crashes LiveCode right away. > > > > Sounds like the OSS community has some work to do, if there is anyone > with the skills still there. > > > > -- > > 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 heather at livecode.com Mon Jul 11 04:27:50 2022 From: heather at livecode.com (Heather Laine) Date: Mon, 11 Jul 2022 09:27:50 +0100 Subject: MegaBundle whatnot In-Reply-To: References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> Message-ID: <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Kaveh and Co, We have actually simplified the licensing in the move to Single Edition, which is what is causing the confusion here. There is no such thing as Indy or Business anymore. It's all just LiveCode. You pick the platforms you want and off you go... However the new Enhancements Bundle widgets post-date Indy/Business and hence do not recognise it. The solution being simply to run the latest version. 9.6.8 or 10 dp 4 will be just fine. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 9 Jul 2022, at 12:41, Kaveh via use-livecode wrote: > > Why does LiveCode make the licenses so complicated? I try to understand > from time to time so I can repurchase, then give up... > > On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Mark, >> What I forgot. >> >> I assume you have a current subscription, right? >> So why do you not try a newer LC release; one of the new editions without >> Indy and business in the name? Anything higher than 9.63 should do. >> >> Regards >> Matthias >> >> Von meinem iPhone gesendet >> >>> Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: >>> >>> Mark, >>> >>> that seems to be a problem with Indy and Business licenses. I can >> reproduce it here with an Indy license. Seems, the Enh.Pack needs to be >> modified a little bit.;) >>> >>> As you are on digest mode and i do not know when you read this, I've >> filed a bug already to speed it up a little bit. >>> >>> https://quality.livecode.com/show_bug.cgi?id=23799 >>> >>> Maybe you want to add yourself to the CC list. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < >> use-livecode at lists.runrev.com>: >>>> >>>> I went ahead and purchased the megabundle, mostly for the LC >> Enhancement piece. Got that download and clicked the install widgets and >> the widgets all show “unlicensed.” Hmm, what? >>>> >>>> Tried to re-license and for some reason I only see my business license >> as an option (also have the old commercial license whatever that maps to >> now). So, np figure it out later, selected business license and LC starts >> but the enhancements still show unlicensed. Is there something manual I’m >> missing? >>>> >>>> TIA, >>>> Mark (on digest mode) >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Kaveh Bazargan PhD > Director > River Valley Technologies ● Twitter > ● LinkedIn > ● ORCID > > *Accelerating the Communication of Research* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Mon Jul 11 07:35:07 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 11 Jul 2022 20:35:07 +0900 Subject: What is the best way to trigger an action at a certain time? Message-ID: Dear all, I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? Any pointers appreciated! Tim Selander Tokyo, Japan From tore.nilsen at me.com Mon Jul 11 07:43:45 2022 From: tore.nilsen at me.com (Tore Nilsen) Date: Mon, 11 Jul 2022 13:43:45 +0200 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: Message-ID: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> For this I would use a recursive approach with «send in time» something like this: on openStack checkTime end openStack on checkTime ## Do your routines of checking time, performing the required action etc. send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you end checkTime Best regards Tore Nilsen > 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : > > Dear all, > > I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. > > In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? > > Any pointers appreciated! > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From selander at tkf.att.ne.jp Mon Jul 11 07:47:33 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Mon, 11 Jul 2022 20:47:33 +0900 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: Tore, Interesting! 'send in time' is a new one for me. Thanks! Tim On 2022.07.11 20:43, Tore Nilsen via use-livecode wrote: > For this I would use a recursive approach with «send in time» something like this: > > on openStack > checkTime > end openStack > > on checkTime > ## Do your routines of checking time, performing the required action etc. > send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you > end checkTime > > Best regards > Tore Nilsen > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : >> >> Dear all, >> >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? >> >> Any pointers appreciated! >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From colinholgate at gmail.com Mon Jul 11 08:22:20 2022 From: colinholgate at gmail.com (Colin Holgate) Date: Mon, 11 Jul 2022 06:22:20 -0600 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: <8E31A85E-2C32-45EB-BFAB-62C716D9E6AC@gmail.com> In general, Ventura is going well. > On Jul 11, 2022, at 12:53 AM, Richmond Mathewson via use-livecode wrote: > > Well there go my plans for early adoption. > > I do feel that the 'new OS a year' model means that ALL the versions are > unfinished. > > I could say the same about LiveCode versions. > > Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the > niggles relating to the elevator theory of human evolution. > > On Mon, 11 Jul 2022, 08:46 Paul McClernan via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> The OSS "community" already had TONs of work to do. >> >> Apparently a lot of other software is crashing with macOS Ventura as well. >> I wonder why? Time to install Ventura and find out I guess. >> >> Every year this former mac fan-boy inches closer to becoming a Linux >> regular. >> >> >> On Sun, Jul 10, 2022 at 4:50 PM J. Landman Gay via use-livecode >> wrote: >>> >>> On 7/10/22 12:26 PM, Colin Holgate via use-livecode wrote: >>>> With 9.6.3 Community version, showing the message box, or the script >> window of a button, crashes LiveCode right away. >>> >>> Sounds like the OSS community has some work to do, if there is anyone >> with the skills still there. >>> >>> -- >>> 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 MikeKerner at roadrunner.com Mon Jul 11 09:14:08 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 11 Jul 2022 09:14:08 -0400 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: I've got a library for adding CRON functionality, if you want something more elaborate. https://github.com/macMikey/mikeys-cron-library On Mon, Jul 11, 2022 at 7:48 AM Tim Selander via use-livecode < use-livecode at lists.runrev.com> wrote: > Tore, > > Interesting! 'send in time' is a new one for me. > Thanks! > > Tim > > On 2022.07.11 20:43, Tore Nilsen via use-livecode wrote: > > For this I would use a recursive approach with «send in time» something > like this: > > > > on openStack > > checkTime > > end openStack > > > > on checkTime > > ## Do your routines of checking time, performing the required action > etc. > > send checkTime to me in 300 seconds. ## you set the interval to > whatever is best for you > > end checkTime > > > > Best regards > > Tore Nilsen > > > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Dear all, > >> > >> I want to have an LC app running on a computer doing nothing but > watching the time. At predetermined times, I then want it to run a command. > A call to an API on a website. > >> > >> In the old HC days, I remember using "on idle" to watch for a set time. > But even then, using "on idle" was less than ideal. CPU hog. What is the > preferred/LC way to have an app trigger a command at a specific time of day? > >> > >> Any pointers appreciated! > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 mark at livecode.com Mon Jul 11 09:25:36 2022 From: mark at livecode.com (Mark Waddingham) Date: Mon, 11 Jul 2022 14:25:36 +0100 Subject: Tree Widget: hilitedValue? In-Reply-To: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> References: <9c1a8fdb-0e03-9389-dd6c-ddc85be232f3@fourthworld.com> Message-ID: <1d540e298547e449e91ef40f8a6d916a@livecode.com> On 2022-07-10 21:33, Richard Gaskin via use-livecode wrote: > Brian Milby wrote: > >> You could also turn the path into an array (but lose the error >> checking above): >> >> function getValue pArray, pPath >> split pPath by comma >> return pArray[pPath] >> end getValue > > Thanks, Brian. I keep forgetting we can use an array as an element > specifier. > > Has that been around the whole time, or was it added in recent years? I added it before 6.0 - probably in 4.5 or 5. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Mon Jul 11 11:27:09 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 11 Jul 2022 15:27:09 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> Message-ID: <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> Slight improvement: local lInterval constant cInterval = 300 on openStack put cInterval into lInterval checkTime end openStack on checkTime -- your code send checkTime to me in lInterval seconds end checkTime setProp interval, pInterval if pInterval is empty then ask "Enter a time interval in seconds:" as sheet if the result is not "Cancel" and it is an integer and it >0 then \ put it into lInterval else put pInterval into lInterval end if end interval Bob S > On Jul 11, 2022, at 04:43 , Tore Nilsen via use-livecode wrote: > > For this I would use a recursive approach with «send in time» something like this: > > on openStack > checkTime > end openStack > > on checkTime > ## Do your routines of checking time, performing the required action etc. > send checkTime to me in 300 seconds. ## you set the interval to whatever is best for you > end checkTime > > Best regards > Tore Nilsen > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode : >> >> Dear all, >> >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> In the old HC days, I remember using "on idle" to watch for a set time. But even then, using "on idle" was less than ideal. CPU hog. What is the preferred/LC way to have an app trigger a command at a specific time of day? >> >> Any pointers appreciated! >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Jul 11 11:31:26 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 11 Jul 2022 15:31:26 +0000 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> Message-ID: <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Like how did our stomaches evolve without a circulatory system, and without a circulatory system, how did we develop stomaches? Bob S > On Jul 10, 2022, at 23:53 , Richmond Mathewson via use-livecode wrote: > > Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the > niggles relating to the elevator theory of human evolution. From richmondmathewson at gmail.com Tue Jul 12 06:28:04 2022 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 12 Jul 2022 13:28:04 +0300 Subject: macOS Ventura (13.x.x)... In-Reply-To: <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Message-ID: That is a complete misunderstanding of the elevator theory of evolution: this was a theory propagated by some of the people who misread Darwin (I don't mean Hobbesian individualists like Huxley and Dawkins) to say that evolution is a linear and ever-upwards process. On 11.07.22 18:31, Bob Sneidar via use-livecode wrote: > Like how did our stomaches evolve without a circulatory system, and without a circulatory system, how did we develop stomaches? > > Bob S > > >> On Jul 10, 2022, at 23:53 , Richmond Mathewson via use-livecode wrote: >> >> Running RevMedia 4 on Xubuntu 22.04 serves as a reminder of some of the >> niggles relating to the elevator theory of human evolution. > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 12 08:33:31 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Tue, 12 Jul 2022 08:33:31 -0400 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> References: <126692CE-04E5-4930-A7DC-5BB96BA49B90@me.com> <39730F96-363E-4B60-A1BF-FEF41E857164@iotecdigital.com> Message-ID: I would suggest sending the "checkTime" message at the top of the handler in case something happens in --your code On Mon, Jul 11, 2022 at 11:28 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Slight improvement: > > local lInterval > constant cInterval = 300 > > on openStack > put cInterval into lInterval > checkTime > end openStack > > on checkTime > -- your code > send checkTime to me in lInterval seconds > end checkTime > > setProp interval, pInterval > if pInterval is empty then > ask "Enter a time interval in seconds:" as sheet > if the result is not "Cancel" and it is an integer and it >0 then \ > put it into lInterval > else > put pInterval into lInterval > end if > end interval > > Bob S > > > > On Jul 11, 2022, at 04:43 , Tore Nilsen via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > For this I would use a recursive approach with «send in time» something > like this: > > > > on openStack > > checkTime > > end openStack > > > > on checkTime > > ## Do your routines of checking time, performing the required action > etc. > > send checkTime to me in 300 seconds. ## you set the interval to > whatever is best for you > > end checkTime > > > > Best regards > > Tore Nilsen > > > >> 11. jul. 2022 kl. 13:35 skrev Tim Selander via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> Dear all, > >> > >> I want to have an LC app running on a computer doing nothing but > watching the time. At predetermined times, I then want it to run a command. > A call to an API on a website. > >> > >> In the old HC days, I remember using "on idle" to watch for a set time. > But even then, using "on idle" was less than ideal. CPU hog. What is the > preferred/LC way to have an app trigger a command at a specific time of day? > >> > >> Any pointers appreciated! > >> > >> Tim Selander > >> Tokyo, Japan > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- 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 benr_mc at cogapp.com Tue Jul 12 10:48:04 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 12 Jul 2022 15:48:04 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: Message-ID: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Hi Tim, On 11/07/2022 12:35, Tim Selander via use-livecode wrote: > I want to have an LC app running on a computer doing nothing but watching the > time. At predetermined times, I then want it to run a command. A call to an > API on a website. My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. Ben From bobsneidar at iotecdigital.com Tue Jul 12 10:53:16 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 14:53:16 +0000 Subject: macOS Ventura (13.x.x)... In-Reply-To: References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> Message-ID: <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> Ah. I stand corrected. Of course, nothing in nature is linear. And I still need to figure out how a stomache would have done us any good withour a circulatory system to get the food to the cells, or lungs to get oxygen to everything for that matter. It seems if you think about it that no vital organ would have provided any advantage without all the other organs being fully developed. Begs some questions, eh? Bob S > On Jul 12, 2022, at 03:28 , Richmond via use-livecode wrote: > > That is a complete misunderstanding of the elevator theory of evolution: this was a theory propagated by some > of the people who misread Darwin (I don't mean Hobbesian individualists like Huxley and Dawkins) to say that > evolution is a linear and ever-upwards process. From bobsneidar at iotecdigital.com Tue Jul 12 10:56:03 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 14:56:03 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: It seems to me that if you have an open socket to listen for commands, you could have the chron or windows scheduler send those commands to your LC app. Ben, some syntax would be helpful. Bob S > On Jul 12, 2022, at 07:48 , Ben Rubinstein via use-livecode wrote: > > Hi Tim, > > On 11/07/2022 12:35, Tim Selander via use-livecode wrote: >> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. > > My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. > > I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. > > Ben From chipsm at themartinz.com Tue Jul 12 11:09:51 2022 From: chipsm at themartinz.com (chipsm themartinz.com) Date: Tue, 12 Jul 2022 15:09:51 +0000 Subject: MegaBundle whatnot In-Reply-To: <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Message-ID: What effect does this do to my account? I have a lifetime guaranteed price account and I don’t know what happens to my account. Sincerely, Clarence P. Martin chipsm at themartinz.com 626 7874442 From: use-livecode on behalf of Heather Laine via use-livecode Date: Monday, July 11, 2022 at 1:29 AM To: How to use LiveCode Cc: Heather Laine Subject: Re: MegaBundle whatnot Kaveh and Co, We have actually simplified the licensing in the move to Single Edition, which is what is causing the confusion here. There is no such thing as Indy or Business anymore. It's all just LiveCode. You pick the platforms you want and off you go... However the new Enhancements Bundle widgets post-date Indy/Business and hence do not recognise it. The solution being simply to run the latest version. 9.6.8 or 10 dp 4 will be just fine. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 9 Jul 2022, at 12:41, Kaveh via use-livecode wrote: > > Why does LiveCode make the licenses so complicated? I try to understand > from time to time so I can repurchase, then give up... > > On Sat, 9 Jul 2022 at 08:41, Matthias Rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Mark, >> What I forgot. >> >> I assume you have a current subscription, right? >> So why do you not try a newer LC release; one of the new editions without >> Indy and business in the name? Anything higher than 9.63 should do. >> >> Regards >> Matthias >> >> Von meinem iPhone gesendet >> >>> Am 08.07.2022 um 21:01 schrieb matthias_livecode_150811 at m-r-d.de: >>> >>> Mark, >>> >>> that seems to be a problem with Indy and Business licenses. I can >> reproduce it here with an Indy license. Seems, the Enh.Pack needs to be >> modified a little bit.;) >>> >>> As you are on digest mode and i do not know when you read this, I've >> filed a bug already to speed it up a little bit. >>> >>> https://quality.livecode.com/show_bug.cgi?id=23799 >>> >>> Maybe you want to add yourself to the CC list. >>> >>> Regards, >>> Matthias >>> >>> >>>> Am 08.07.2022 um 19:21 schrieb Mark Clark via use-livecode < >> use-livecode at lists.runrev.com>: >>>> >>>> I went ahead and purchased the megabundle, mostly for the LC >> Enhancement piece. Got that download and clicked the install widgets and >> the widgets all show “unlicensed.” Hmm, what? >>>> >>>> Tried to re-license and for some reason I only see my business license >> as an option (also have the old commercial license whatever that maps to >> now). So, np figure it out later, selected business license and LC starts >> but the enhancements still show unlicensed. Is there something manual I’m >> missing? >>>> >>>> TIA, >>>> Mark (on digest mode) >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Kaveh Bazargan PhD > Director > River Valley Technologies ● Twitter > ● LinkedIn > ● ORCID > > *Accelerating the Communication of Research* > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jul 12 11:45:14 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 12 Jul 2022 17:45:14 +0200 Subject: MegaBundle whatnot In-Reply-To: References: <96C795BD-3743-4913-AEDF-2D5D1C17E723@m-r-d.de> <4A342ED1-8FEC-4577-8B0C-C8D7360A7258@livecode.com> Message-ID: <555F38B1-8184-4F62-B1D7-296B4262AF89@m-r-d.de> Livecode Ltd. sent out an email last year to all license holders with information how this change would affect their license. If i recall it correctly then subscriptions with the "old" price model will keep this price also for renewings as long as the subscription does not completely expire or is changed. I would suggest to contact support at livecode.com to get exact information about this. Regards, Matthias > Am 12.07.2022 um 17:09 schrieb chipsm themartinz.com via use-livecode >: > > What effect does this do to my account? > I have a lifetime guaranteed price account and I don’t know what happens to my account. From benr_mc at cogapp.com Tue Jul 12 16:15:17 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 12 Jul 2022 21:15:17 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: I think I may not have been very clear. This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). I usually create a .bat file (on Windows) or .sh file (on Mac/Linux) to run the LC app with the appropriate parameters. On Windows you run the "Task Scheduler" and create a task to run the .bat file, with whatever schedules you like. On Mac/Linux you edit the 'crontab' file adding one or more lines with the interesting syntax to execute the .sh file. Your app can read the command line parameters (on Mac/Linux or Windows) by inspecting the special global variables $0, $1 etc. The only gotcha is that on Mac, you think your app is at e.g. /Users/yourname/Myapp - but actually on Mac what appears to be an application "Myapp" is a bundle (i.e. a folder with a special flag so the Finder pretends it's not), and the path to the executable app is e.g. /Users/yourname/Myapp.app/Contents/MacOS/Myapp On Linux and Windows, it's where you think it is! Ben On 12/07/2022 15:56, Bob Sneidar via use-livecode wrote: > It seems to me that if you have an open socket to listen for commands, you could have the chron or windows scheduler send those commands to your LC app. > > Ben, some syntax would be helpful. > > Bob S > > >> On Jul 12, 2022, at 07:48 , Ben Rubinstein via use-livecode wrote: >> >> Hi Tim, >> >> On 11/07/2022 12:35, Tim Selander via use-livecode wrote: >>> I want to have an LC app running on a computer doing nothing but watching the time. At predetermined times, I then want it to run a command. A call to an API on a website. >> >> My $0.02, FWIW: it this is really all your app is doing, and the times are every fee hours or days, rather than every few seconds, I would use the computer's built in scheduler to invoke your app, rather than have it running continuously and watching the time. >> >> I have a number of things like this - LC apps which are launched by schedule. On Windows, the Windows scheduler (I generally use a batch script which launches the app in this case); on Mac or Linux, use cron. I find this more reliable, easier to update etc. >> >> 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 jacque at hyperactivesw.com Tue Jul 12 17:10:50 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 12 Jul 2022 16:10:50 -0500 Subject: macOS Ventura (13.x.x)... In-Reply-To: <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> References: <89711cd0-dfea-6c65-1ccb-fb3bedae2896@hyperactivesw.com> <7CA94173-546D-410C-8CE1-76EADEC8F149@iotecdigital.com> <56EA2603-420C-4C4B-BF81-D842EF754B7E@iotecdigital.com> Message-ID: <181f4401790.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> This has little to do with LC and less to do with Ventura, but see your email. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 12, 2022 9:55:22 AM Bob Sneidar via use-livecode wrote: > Ah. I stand corrected. > > Of course, nothing in nature is linear. > > And I still need to figure out how a stomache would have done us any good > withour a circulatory system to get the food to the cells, or lungs to get > oxygen to everything for that matter. It seems if you think about it that > no vital organ would have provided any advantage without all the other > organs being fully developed. Begs some questions, eh? > > Bob S > > >> On Jul 12, 2022, at 03:28 , Richmond via use-livecode >> wrote: >> >> That is a complete misunderstanding of the elevator theory of evolution: >> this was a theory propagated by some >> of the people who misread Darwin (I don't mean Hobbesian individualists >> like Huxley and Dawkins) to say that >> evolution is a linear and ever-upwards process. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jul 12 17:56:50 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 12 Jul 2022 21:56:50 +0000 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> Message-ID: <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> Hmmm. Ok, but it seems having the LC app running invisibly all the time, listening for a command, something the cron service could do through the terminal easily enough, you could make it much more efficient. Just methods and madness I suppose. Bob S > On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode wrote: > > I think I may not have been very clear. > > This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). From benr_mc at cogapp.com Wed Jul 13 05:20:39 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 13 Jul 2022 10:20:39 +0100 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> Message-ID: <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> Whatever works for your situation! At least one of my jobs, which runs a few times a week (pulling data from an internal system, generating and emailing a PDF report) has to launch fresh each time because of a bug in the graph widget which displays wrong if the script runs twice! There are others where the LC qpp is part of a dance in which other systems run before and after, so a batch script invoking each in turn is the thing that's scheduled. But of course there are contexts in which the best solution is an LC app waiting for a time or a command at which to leap into action. On 12/07/2022 22:56, Bob Sneidar via use-livecode wrote: > Hmmm. Ok, but it seems having the LC app running invisibly all the time, listening for a command, something the cron service could do through the terminal easily enough, you could make it much more efficient. Just methods and madness I suppose. > > Bob S > > >> On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode wrote: >> >> I think I may not have been very clear. >> >> This isn't LiveCode doing anything special; just a standalone LiveCode app that either does something immediately on launch (and then quits), or inspects the command line parameters to decide what to do (and then quits). > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ms1 at soas.ac.uk Wed Jul 13 12:18:24 2022 From: ms1 at soas.ac.uk (Muaath Salih) Date: Wed, 13 Jul 2022 17:18:24 +0100 Subject: No subject Message-ID: From sean at pidigital.co.uk Wed Jul 13 12:26:16 2022 From: sean at pidigital.co.uk (Pi Digital) Date: Wed, 13 Jul 2022 17:26:16 +0100 Subject: No subject In-Reply-To: References: Message-ID: <77502D3D-AD49-49A0-A41B-5520C060CE9F@pidigital.co.uk> I agree. There is also no content :) Let us know if there is anything else you would like help with, Muaath. Sean > On 13 Jul 2022, at 17:18, Muaath Salih 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 bobsneidar at iotecdigital.com Wed Jul 13 17:50:19 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 13 Jul 2022 21:50:19 +0000 Subject: remoteDebugger error Message-ID: Whenever I open my Forms Generator project, I get a dialog pop up saying an error occured in the stack com.livecode.library.remotedebugger, and that there is no more information because the stack is password protected. It does not seem to affect to workings of my project though. Other stacks do not seem to induce this dialog. How can I tell what is causing it? Bob S From matthias_livecode_150811 at m-r-d.de Wed Jul 13 18:44:11 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 14 Jul 2022 00:44:11 +0200 Subject: remoteDebugger error In-Reply-To: References: Message-ID: Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? Regards, Matthias > Am 13.07.2022 um 23:50 schrieb Bob Sneidar via use-livecode : > > Whenever I open my Forms Generator project, I get a dialog pop up saying an error occured in the stack com.livecode.library.remotedebugger, and that there is no more information because the stack is password protected. It does not seem to affect to workings of my project though. > > Other stacks do not seem to induce this dialog. How can I tell what is causing it? > > 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 Wed Jul 13 19:02:11 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 13 Jul 2022 23:02:11 +0000 Subject: remoteDebugger error In-Reply-To: References: Message-ID: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Yup. Don't we all have to be on that license if we are running 9.6.8? But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. Bob S > On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: > > Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? > > Regards, > > Matthias From monte.goulding at livecode.com Wed Jul 13 19:07:22 2022 From: monte.goulding at livecode.com (Monte Goulding) Date: Thu, 14 Jul 2022 09:07:22 +1000 Subject: remoteDebugger error In-Reply-To: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Hi Bob Could you create a bug report about this? The remote debugger obviously shouldn’t be throwing bugs itself. It should be telling the IDE about errors and getting it to show the debugger. Cheers Monte > On 14 Jul 2022, at 9:02 am, Bob Sneidar via use-livecode wrote: > > Yup. Don't we all have to be on that license if we are running 9.6.8? But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. > > Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. > > Bob S > > >> On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: >> >> Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? >> >> 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 matthias_livecode_150811 at m-r-d.de Wed Jul 13 19:20:41 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Thu, 14 Jul 2022 01:20:41 +0200 Subject: remoteDebugger error In-Reply-To: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: > Am 14.07.2022 um 01:02 schrieb Bob Sneidar via use-livecode : > > Yup. Don't we all have to be on that license if we are running 9.6.8? Not that i am aware of. If you have the Addon Pro Pack Features in your license "the editiontype" returns professional, if you don't then "commercial" is returned. https://livecode.com/pro-features/ > But I found the problem, just not how to prevent remoteDebugger from throwing unknown errors, or how to figure out what the error is. I basically had to step through my code until I found the culprit. > > Thanks though. I am going through the code which sets up sqlYoga so that I can have multiple database objects and connections instead of just using the defaults. > > Bob S > > >> On Jul 13, 2022, at 15:44 , matthias rebbe via use-livecode wrote: >> >> Just a shot in the dark, but the RemoteDebugger is part of the Pro Features Pack. Does your license include that pack? >> >> Regards, >> >> Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Wed Jul 13 20:14:13 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 14 Jul 2022 00:14:13 +0000 Subject: remoteDebugger error In-Reply-To: References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> Message-ID: <78464170-F02D-4C67-AC00-328F795DC316@iotecdigital.com> Returns "Professional" Bob S > On Jul 13, 2022, at 16:20 , matthias rebbe via use-livecode wrote: > >> Am 14.07.2022 um 01:02 schrieb Bob Sneidar via use-livecode : >> >> Yup. Don't we all have to be on that license if we are running 9.6.8? > Not that i am aware of. > If you have the Addon Pro Pack Features in your license "the editiontype" returns professional, if you don't then "commercial" is returned. From bobsneidar at iotecdigital.com Wed Jul 13 20:15:01 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 14 Jul 2022 00:15:01 +0000 Subject: remoteDebugger error In-Reply-To: <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Message-ID: Monte, I'll do that in the morning. They are kicking me out of the building. :-| Bob S > On Jul 13, 2022, at 16:07 , Monte Goulding via use-livecode wrote: > > Hi Bob > > Could you create a bug report about this? The remote debugger obviously shouldn’t be throwing bugs itself. It should be telling the IDE about errors and getting it to show the debugger. > > Cheers > > Monte > From selander at tkf.att.ne.jp Wed Jul 13 20:16:58 2022 From: selander at tkf.att.ne.jp (Tim Selander) Date: Thu, 14 Jul 2022 09:16:58 +0900 Subject: What is the best way to trigger an action at a certain time? In-Reply-To: <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> References: <5f54fb78-1b04-60a3-4797-52034fd89ba9@cogapp.com> <12013DF1-5611-4770-B8D3-C9D3A7BEC9C6@iotecdigital.com> <9380d08d-53b7-15f9-1399-63828a13d928@cogapp.com> Message-ID: Gentlemen, The trigger will be 'pulled' once or twice a day only -- so these external to LC options are also viable. Hadn't entered my head at all! Will be playing around with all these ideas and learn something! Basically use Macs, but have couple unused Windows laptops -- sounds like Task Scheduler and .bat files might be easier to deal with. Thanks. Tim On 2022.07.13 18:20, Ben Rubinstein via use-livecode wrote: > Whatever works for your situation! At least one of my jobs, which > runs a few times a week (pulling data from an internal system, > generating and emailing a PDF report) has to launch fresh each > time because of a bug in the graph widget which displays wrong if > the script runs twice! > > There are others where the LC qpp is part of a dance in which > other systems run before and after, so a batch script invoking > each in turn is the thing that's scheduled. > > But of course there are contexts in which the best solution is an > LC app waiting for a time or a command at which to leap into action. > > On 12/07/2022 22:56, Bob Sneidar via use-livecode wrote: >> Hmmm. Ok, but it seems having the LC app running invisibly all >> the time, listening for a command, something the cron service >> could do through the terminal easily enough, you could make it >> much more efficient. Just methods and madness I suppose. >> >> Bob S >> >> >>> On Jul 12, 2022, at 13:15 , Ben Rubinstein via use-livecode >>> wrote: >>> >>> I think I may not have been very clear. >>> >>> This isn't LiveCode doing anything special; just a standalone >>> LiveCode app that either does something immediately on launch >>> (and then quits), or inspects the command line parameters to >>> decide what to do (and then quits). >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Thu Jul 14 01:03:23 2022 From: merakosp at gmail.com (panagiotis m) Date: Thu, 14 Jul 2022 08:03:23 +0300 Subject: remoteDebugger error In-Reply-To: References: <2EBB7F19-0E08-4992-AD87-04E1E710EAEA@iotecdigital.com> <4B2FB61F-CDD8-4B22-88B8-EAEA9F2F795E@livecode.com> Message-ID: Hello all, @Bob Sneidar Are there any modal windows involved in the recipe? I think it is this bug: https://quality.livecode.com/show_bug.cgi?id=23758 Cheers, Panos -- On Thu, 14 Jul 2022 at 03:15, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Monte, I'll do that in the morning. They are kicking me out of the > building. :-| > > Bob S > > > > On Jul 13, 2022, at 16:07 , Monte Goulding via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi Bob > > > > Could you create a bug report about this? The remote debugger obviously > shouldn’t be throwing bugs itself. It should be telling the IDE about > errors and getting it to show the debugger. > > > > 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 paul at researchware.com Thu Jul 14 15:50:57 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 14 Jul 2022 15:50:57 -0400 Subject: Livecode Builder developer wanted Message-ID: I am looking to hire someone to take what Trevor DeVore started 3 years ago, for the Livecode conference, of making an LCB wrapper for pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for macOS and extend it to Windows including builds of the pocketsphinx libraries for macOS and Windows. Essentially, advance it a bit further so it can just be plugged into Livecode and used as a library in the IDE and standalones. Anyone experienced in making LCB libraries for macOS and Windows interested? If so, please email me off-list and send me a rate and/or estimate. P.S. I contacted Trevor, but he is tied up with other work and unavailable. Paul Dupuis Researchware From klaus at major-k.de Fri Jul 15 07:14:50 2022 From: klaus at major-k.de (Klaus major-k) Date: Fri, 15 Jul 2022 13:14:50 +0200 Subject: iPhoneSafeAreaInsets() and Android Message-ID: Hi friends, quick question, cannot test it myself in the moment. Will -> iPhoneSafeAreaInsets() a. work or b. throw an error when being used on Android? If a. I presume it will return "the screenrect" without any "notches". Does it? If b. then I will to check "if the platform = "iphone"..." Thanks for any quick answer! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From benr_mc at cogapp.com Fri Jul 15 10:22:28 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 15 Jul 2022 15:22:28 +0100 Subject: Complete Advanced Networking Layer? Message-ID: Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? TIA, Ben From rdimola at evergreeninfo.net Fri Jul 15 10:44:48 2022 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Fri, 15 Jul 2022 10:44:48 -0400 Subject: Complete Advanced Networking Layer? In-Reply-To: References: Message-ID: <001601d89859$721c53c0$5654fb40$@net> Ben, I believe that's referring to tsNet. All tsNet's advanced functionality(async and such) is in the dictionary. Works great! In mobile I start 4 or 5 simultaneous downloads when the app is first opened. 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 Ben Rubinstein via use-livecode Sent: Friday, July 15, 2022 10:22 AM To: Use LiveCode Cc: Ben Rubinstein Subject: Complete Advanced Networking Layer? Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? TIA, Ben _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Fri Jul 15 11:40:34 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 15 Jul 2022 17:40:34 +0200 Subject: Complete Advanced Networking Layer? In-Reply-To: References: Message-ID: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> According to this overview there https://livecode.com/pro-features/ the following tsNet features are in included in the Pro Features - Non-blocking, asynchronous operations on SFTP, SMTP, SMTPS and SMTP/TLS - SFTP authentication via public key authentication giving the best possible security - SMTP(S/TLS) / SFTP downloads and uploads can either be via file or via variable – you are not limited by the memory available to your variable - Ability to generate public / private key pairs suitable for use with SFTP – no need for an external application to create these - Ability to send additional raw commands along with FTP and SFTP transfers to be executed before or after the transfer completes > Am 15.07.2022 um 16:22 schrieb Ben Rubinstein via use-livecode : > > > Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Fri Jul 15 12:25:14 2022 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 15 Jul 2022 17:25:14 +0100 Subject: Complete Advanced Networking Layer? In-Reply-To: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> References: <08876529-BFB8-479C-96B9-6E61CAC5DB33@m-r-d.de> Message-ID: <8915b5fa-a023-03c2-c7f3-94ead78986f6@cogapp.com> Ah, thanks both. I see now there's a "[PRO]" badge on some tsNet functions in the Dictionary. Thanks very much, Ben On 15/07/2022 16:40, matthias rebbe via use-livecode wrote: > According to this overview there https://livecode.com/pro-features/ > > the following tsNet features are in included in the Pro Features > > - Non-blocking, asynchronous operations on SFTP, SMTP, SMTPS and SMTP/TLS > - SFTP authentication via public key authentication giving the best possible security > - SMTP(S/TLS) / SFTP downloads and uploads can either be via file or via variable you are not limited by the memory available to your variable > - Ability to generate public / private key pairs suitable for use with SFTP no need for an external application to create these > - Ability to send additional raw commands along with FTP and SFTP transfers to be executed before or after the transfer completes > >> Am 15.07.2022 um 16:22 schrieb Ben Rubinstein via use-livecode : >> >> >> Is there reference documentation anywhere for the "Complete Advanced Networking Layer" which is included in the "Pro Features Pack"? >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Fri Jul 15 12:52:49 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Fri, 15 Jul 2022 09:52:49 -0700 Subject: license info Message-ID: <016d01d8986b$51125c30$f3371490$@telus.net> Largely because I'm not crystal clear as to how to frame the following request for information, I'd VERY MUCH appreciate if the LIVECODE mothership could point me in the right direction. Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) on a Windows 10 PC (not a server) with the latest updates installed. The recent discussion regarding : ".the following tsNet features are in included in the Pro Features ." from matthias rebbe posting from July 15 suggests that I could greatly simplify a significant application I developed and manage for a major Health Care Laboratory here in Canada. The features enumerated might be able to eliminate a very expensive 3rd party SFTP server I currently employ for communicating and transferring very sensitive medical information to external clinics and hospitals (over 5,000 of them). I would sincerely appreciate if someone could give me even a ballpark dollar figure I'd have to pay in order to upgrade my current license (see above) to whatever is necessary to incorporate the "tsNet Pro" features Matthias described. I only need the one development license for Windows since I distribute the app from the STANDALONE feature of LIVECODE. Hopefully that's enough information to frame my request so I can pass a fairly accurate cost estimate to the end-user. Sincerely Doug Ruisaard From matthias_livecode_150811 at m-r-d.de Fri Jul 15 14:11:19 2022 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 15 Jul 2022 20:11:19 +0200 Subject: license info In-Reply-To: <016d01d8986b$51125c30$f3371490$@telus.net> References: <016d01d8986b$51125c30$f3371490$@telus.net> Message-ID: <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> Douglas, If you have a business license, then you have access to the "Advanced Network Layer". LC with Pro Features is the same as the previous Business license. And if you have a current subscription or a lifetime license with lifetime updates, then why don't you download the latest release of LC, which is 9.6.8 btw.? Regards, Matthias > Am 15.07.2022 um 18:52 schrieb Douglas A. Ruisaard via use-livecode : > > Largely because I'm not crystal clear as to how to frame the following > request for information, I'd VERY MUCH appreciate if the LIVECODE mothership > could point me in the right direction. > > > > Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) on a > Windows 10 PC (not a server) with the latest updates installed. > > > > The recent discussion regarding : ".the following tsNet features are in > included in the Pro Features ." from matthias rebbe posting from July 15 > suggests that I could greatly simplify a significant application I developed > and manage for a major Health Care Laboratory here in Canada. The features > enumerated might be able to eliminate a very expensive 3rd party SFTP server > I currently employ for communicating and transferring very sensitive medical > information to external clinics and hospitals (over 5,000 of them). > > > > I would sincerely appreciate if someone could give me even a ballpark dollar > figure I'd have to pay in order to upgrade my current license (see above) to > whatever is necessary to incorporate the "tsNet Pro" features Matthias > described. I only need the one development license for Windows since I > distribute the app from the STANDALONE feature of LIVECODE. > > > > Hopefully that's enough information to frame my request so I can pass a > fairly accurate cost estimate to the end-user. > > > > Sincerely > > Doug Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Sat Jul 16 10:57:54 2022 From: dougr at telus.net (Douglas A. Ruisaard) Date: Sat, 16 Jul 2022 07:57:54 -0700 Subject: license info In-Reply-To: <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> References: <016d01d8986b$51125c30$f3371490$@telus.net> <42426102-8301-43F9-86F7-7B3F6AC81109@m-r-d.de> Message-ID: <03d701d89924$6dace770$4906b650$@telus.net> Thanks very much for the advice. I have, as of this message, installed v9.6.8. What steps, if any, do I need to take to "activate" the "Advanced Network Layer"? Doug -----Original Message----- From: use-livecode On Behalf Of matthias rebbe via use-livecode Sent: Friday, July 15, 2022 11:11 AM To: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Subject: Re: license info Douglas, If you have a business license, then you have access to the "Advanced Network Layer". LC with Pro Features is the same as the previous Business license. And if you have a current subscription or a lifetime license with lifetime updates, then why don't you download the latest release of LC, which is 9.6.8 btw.? Regards, Matthias > Am 15.07.2022 um 18:52 schrieb Douglas A. Ruisaard via use-livecode : > > Largely because I'm not crystal clear as to how to frame the following > request for information, I'd VERY MUCH appreciate if the LIVECODE > mothership could point me in the right direction. > > > > Currently I am using LIVECODE Business Edition v 9.6.1 (build 15522) > on a Windows 10 PC (not a server) with the latest updates installed. > > > > The recent discussion regarding : ".the following tsNet features are > in included in the Pro Features ." from matthias rebbe posting from > July 15 suggests that I could greatly simplify a significant > application I developed and manage for a major Health Care Laboratory > here in Canada. The features enumerated might be able to eliminate a > very expensive 3rd party SFTP server I currently employ for > communicating and transferring very sensitive medical information to external clinics and hospitals (over 5,000 of them). > > > > I would sincerely appreciate if someone could give me even a ballpark > dollar figure I'd have to pay in order to upgrade my current license > (see above) to whatever is necessary to incorporate the "tsNet Pro" > features Matthias described. I only need the one development license > for Windows since I distribute the app from the STANDALONE feature of LIVECODE. > > > > Hopefully that's enough information to frame my request so I can pass > a fairly accurate cost estimate to the end-user. > > > > Sincerely > > Doug Ruisaard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Sun Jul 17 05:16:25 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sun, 17 Jul 2022 05:16:25 -0400 Subject: deleting folders on server with revDeleteFolder Message-ID: Hi list, On my LC Hosting account, I have a php script that creates directories : mkdir($dirname, 0755); Each directory is used to temporarily store text & image files. Then I have a LC script that is supposed to delete those directories under certain conditions. No problem for deleting files inside each directory, but 2 sub-directories are systematically created, named "." and ".." and those can't be deleted, either by script of via ftp. Therefore, there's no way to delete the directories created via php. Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" is the command to use to remove a folder and all its contents and that it is available on both desktop and server platforms, but on my LC hosting account I get : Handler: can't find handler (revDeleteFolder) Any idea how to solve this problem ? Thank you in advance. jbv From matthias_livecode_150811 at m-r-d.de Sun Jul 17 07:13:38 2022 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe) Date: Sun, 17 Jul 2022 13:13:38 +0200 Subject: deleting folders on server with revDeleteFolder In-Reply-To: References: Message-ID: I’m not at my desk at the moment, so I cannot give detailed information. But what I know is, that this function/command is included in the rev common library and that library is not included by default in LC Server. You need to copy that library from your LC ide Installation path to your LC Server installation path first. Then you have to load that library in your script using “start using stack Regards Matthias Von meinem iPhone gesendet > Am 17.07.2022 um 11:18 schrieb jbv via use-livecode : > > Hi list, > > On my LC Hosting account, I have a php script that creates directories : > mkdir($dirname, 0755); > Each directory is used to temporarily store text & image files. > > Then I have a LC script that is supposed to delete those directories > under certain conditions. No problem for deleting files inside each > directory, but 2 sub-directories are systematically created, named > "." and ".." and those can't be deleted, either by script of via ftp. > Therefore, there's no way to delete the directories created via php. > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > is the command to use to remove a folder and all its contents and that > it is available on both desktop and server platforms, but on my LC > hosting account I get : Handler: can't find handler (revDeleteFolder) > > Any idea how to solve this problem ? > Thank you in advance. > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 17 08:20:52 2022 From: alex at tweedly.net (Alex Tweedly) Date: Sun, 17 Jul 2022 13:20:52 +0100 Subject: deleting folders on server with revDeleteFolder In-Reply-To: References: Message-ID: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Those folders are "." - the folder itself ".." - the parent of the folder itself. As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else. So - there isn't really a problem, just don't try to delete them by those names. Alex. On 17/07/2022 10:16, jbv via use-livecode wrote: > Hi list, > > On my LC Hosting account, I have a php script that creates directories : >    mkdir($dirname, 0755); > Each directory is used to temporarily store text & image files. > > Then I have a LC script that is supposed to delete those directories > under certain conditions. No problem for deleting files inside each > directory, but 2 sub-directories are systematically created, named > "." and ".." and those can't be deleted, either by script of via ftp. > Therefore, there's no way to delete the directories created via php. > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > is the command to use to remove a folder and all its contents and that > it is available on both desktop and server platforms, but on my LC > hosting account I get : Handler: can't find handler (revDeleteFolder) > > Any idea how to solve this problem ? > Thank you in advance. > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Sun Jul 17 12:25:52 2022 From: kee.nethery at elloco.com (Kee Nethery) Date: Sun, 17 Jul 2022 09:25:52 -0700 Subject: deleting folders on server with revDeleteFolder In-Reply-To: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> References: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Message-ID: <8D2CC775-175C-4964-B50B-12A86F8FA858@elloco.com> Perhaps try using something other than a period as the beginning folder name character? Could be that’s why it’s not working. Just a thought, could be totally wrong. Kee Nethery > On Jul 17, 2022, at 5:21 AM, Alex Tweedly via use-livecode wrote: > > Those folders are > > "." - the folder itself > > ".." - the parent of the folder itself. > > As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else. > > So - there isn't really a problem, just don't try to delete them by those names. > > > Alex. > > >> On 17/07/2022 10:16, jbv via use-livecode wrote: >> Hi list, >> >> On my LC Hosting account, I have a php script that creates directories : >> mkdir($dirname, 0755); >> Each directory is used to temporarily store text & image files. >> >> Then I have a LC script that is supposed to delete those directories >> under certain conditions. No problem for deleting files inside each >> directory, but 2 sub-directories are systematically created, named >> "." and ".." and those can't be deleted, either by script of via ftp. >> Therefore, there's no way to delete the directories created via php. >> >> Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" >> is the command to use to remove a folder and all its contents and that >> it is available on both desktop and server platforms, but on my LC >> hosting account I get : Handler: can't find handler (revDeleteFolder) >> >> Any idea how to solve this problem ? >> Thank you in advance. >> jbv >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 19 12:00:01 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 19 Jul 2022 16:00:01 +0000 Subject: Debugging libraries Message-ID: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> Hi all. There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! Bob S From ahsoftware at sonic.net Tue Jul 19 13:45:37 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 10:45:37 -0700 Subject: Debugging libraries In-Reply-To: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> Message-ID: <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> On 7/19/22 09:00, Bob Sneidar via use-livecode wrote: > Hi all. > > There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! Set gRevDevelopment true to debug system stacks (starting with "rev" or plugins). And remember to set it false afterwards. If you're trying to debug a library that's been password-protected, though, it won't help. -- Mark Wieder ahsoftware at gmail.com From paulmcclernan at gmail.com Tue Jul 19 14:19:55 2022 From: paulmcclernan at gmail.com (Paul McClernan) Date: Tue, 19 Jul 2022 14:19:55 -0400 Subject: deleting folders on server with revDeleteFolder In-Reply-To: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> References: <7bc4657f-68c2-440c-e89a-c787d0fed24b@tweedly.net> Message-ID: Yeah, what Alex said, those are posix (Unix) placeholders that point to folders (. self, and .. parent directory), they aren’t actual real folders. On Sun, Jul 17, 2022 at 8:21 AM Alex Tweedly via use-livecode < use-livecode at lists.runrev.com> wrote: > Those folders are > > "." - the folder itself > > ".." - the parent of the folder itself. > > As such, neither can be deleted directly, nor do they need to be in > order to delete the folder itself. The folder itself should be deleted > when the current folder is set to somewhere else. > > So - there isn't really a problem, just don't try to delete them by > those names. > > > Alex. > > > On 17/07/2022 10:16, jbv via use-livecode wrote: > > Hi list, > > > > On my LC Hosting account, I have a php script that creates directories : > > mkdir($dirname, 0755); > > Each directory is used to temporarily store text & image files. > > > > Then I have a LC script that is supposed to delete those directories > > under certain conditions. No problem for deleting files inside each > > directory, but 2 sub-directories are systematically created, named > > "." and ".." and those can't be deleted, either by script of via ftp. > > Therefore, there's no way to delete the directories created via php. > > > > Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder" > > is the command to use to remove a folder and all its contents and that > > it is available on both desktop and server platforms, but on my LC > > hosting account I get : Handler: can't find handler (revDeleteFolder) > > > > Any idea how to solve this problem ? > > Thank you in advance. > > jbv > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jul 19 18:48:43 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 19 Jul 2022 22:48:43 +0000 Subject: Debugging libraries In-Reply-To: <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> Message-ID: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. To my recollection the sqlYoga sqlquery_retrieveAsData was a command like the array and record variants, but apparently not. It's a function so the code never got around to executing. DOH! Bob S > On Jul 19, 2022, at 10:45 , Mark Wieder via use-livecode wrote: > > On 7/19/22 09:00, Bob Sneidar via use-livecode wrote: >> Hi all. >> There is a global variable, I thought it was gRevDevelopment, where you set it to true if you need to debug a script which begins with "lib". I cannot think what that global is! > > Set gRevDevelopment true to debug system stacks (starting with "rev" or plugins). And remember to set it false afterwards. If you're trying to debug a library that's been password-protected, though, it won't help. > > -- > Mark Wieder > ahsoftware at gmail.com From ahsoftware at sonic.net Tue Jul 19 19:30:05 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 16:30:05 -0700 Subject: Debugging libraries In-Reply-To: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Message-ID: <4d501ba3-a664-b1df-5f22-bd327160bbb6@sonic.net> On 7/19/22 15:48, Bob Sneidar via use-livecode wrote: > Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. Shouldn't that have thrown a runtime error? -- Mark Wieder ahsoftware at gmail.com From ahsoftware at sonic.net Tue Jul 19 20:20:17 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 19 Jul 2022 17:20:17 -0700 Subject: Debugging libraries In-Reply-To: <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> References: <88C847AF-40CA-42C0-871E-49D9FBB99D05@iotecdigital.com> <48032bc8-be5e-0ec3-f5d6-6f3f1860058d@sonic.net> <945788AA-055B-432D-AA90-74DFE76E7BB5@iotecdigital.com> Message-ID: <9599622c-32c5-0200-f472-64cbc6b687c0@sonic.net> On 7/19/22 15:48, Bob Sneidar via use-livecode wrote: > Thanks for the reply Mark, I did that (after declaring the global first) but breakpoints did not break! But then I discovered that the error was that I was calling a function as a command. ...and as a hint the glx2 script editor will pop up a clairvoyance type-ahead bubble if you're using a command or a function properly, but won't if you're trying to use a function as a command or vice versa. -- Mark Wieder ahsoftware at gmail.com From gcanyon at gmail.com Mon Jul 25 01:37:48 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 22:37:48 -0700 Subject: Stylistic question. In-Reply-To: References: <1818ceeb0b0.276f.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: Sorry for the late response, but thanks for the shoutout. I'll also mention that some time ago I put a fair bit of effort into enabling Navigator to behavior-ify any set of controls, automatically extracting their built-in code to script-only-stacks. I did it as part of the migration of Navigator to SOS behaviors. I haven't checked to make sure, but I believe *all code* in Navigator is a SOS-behavior; and I did that automatically from a no-behaviors standing start with a simple command in Navigator itself. The end result is that there can be any number of Navigator windows without any duplication of code at all. Previously I had built Navigator with three built-in copies, at the cost of making it three times as large. That wasn't such a terrible thing, but I did find that anything beyond three copies eventually broke (no idea why). Since migrating 100% to behaviors, I've tried, I think, having ten copies open with no problem. Disclaimer/warning: I wrote that code five years ago and haven't looked at it since. No one has told me it doesn't work, but I only used it the one time on Navigator itself. So work on a copy, please. gc On Wed, Jun 22, 2022 at 1:25 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Well then Navigator is for you! If an object has a behavior and no script > of it's own, it's color in the list is green. If it has a script but no > behavior, it's color is blue. If it has both, it's purple. Simply double > clicking an object opens it's behavior script if it has one, and it's > native script if it doesn't. > > You don't have to keep track of anything anymore. > > Bob S > > > > On Jun 22, 2022, at 12:41 , J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I find that too many behavior stacks make it difficult to keep track of > where things are. But the primary downside is that script-only stacks don't > work with remote debugging. That's a big drawback for me since most of my > apps these days are for mobile. I do use behaviors quite a bit, but I put > the scripts into buttons so they can be debugged remotely. Or maybe you > mean you use regular stacks for behaviors? Those would work. > > > > The switch construct is way more flexible than if/then and much cleaner > to read and track. I use them all the time. They're especially useful when > you want to group several conditionals. What don't you like about them? > Just curious. > > > > -- > > Jacqueline Landman Gay | jacque at 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 gcanyon at gmail.com Mon Jul 25 02:01:22 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 23:01:22 -0700 Subject: Is syntax a dead issue? Message-ID: On this Hacker News thread , I read this programming interview question . Roughly, the challenge is to count the frequency of words in input, and return a list with counts, sorted from most to least frequent. So input like this: The foo the foo the defenestration the would produce output like this: the 4 foo 2 defenestration 1 Of course I smiled because LC is literally built for this problem. I took well under two minutes to write this function: function wordCount X repeat for each word w in X add 1 to R[w] end repeat combine R using cr and tab sort R numeric descending by word 2 of each return R end wordCount There are quibbles -- the examples given in the article work line by line, so input size isn't an issue, and of course quotes would cause an issue, and LC is case insensitive, so it works, but the output would look like this: The 4 foo 2 defenestration 1 But generally, it works, and is super-easy to code. But for the sake of argument, consider this Python solution given: counts = collections.Counter() for line in sys.stdin: words = line.lower().split() counts.update(words) for word, count in counts.most_common(): print(word, count) That requires a library, but it's also super-easy to code and understand, and it requires just the same number of lines. So, daydreaming extensions to LC syntax, this comes to mind: function wordCount X add 1 to R[w] for each word w in X return R combined using cr and tab and sorted numeric descending by word 2 of each end wordCount or if you prefer: function wordCount X for each word w in X add 1 to R[w] return (R combined using cr and tab) sorted numeric descending by word 2 of each end wordCount Or to really apply ourselves: function wordCount X return the count of each word in X using cr and tab sorted numeric descending by word 2 of each end wordCount So: the xTalk syntax is over thirty years old; when was the last significant syntax update? (I'm not at all core to the process, so feel free to tell me how much I've missed lately!) From gcanyon at gmail.com Mon Jul 25 02:42:30 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Sun, 24 Jul 2022 23:42:30 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: As a meta point, I wrote a version closer to the actual requirements -- lowercase everything, process an external input line by line to allow for arbitrary input size. The result is about 8-10x slower than most other languages -- not as bad as I feared, not as good as I hoped. Here's the code for that version: on mouseUp answer file "choose input:" if it is empty then exit mouseUp put it into F lock screen put the long seconds into T open file F for read repeat read from file F for 1 line repeat for each word w in toLower(it) add 1 to R[w] end repeat if the result is not empty then exit repeat end repeat combine R using cr and tab sort R numeric descending by word 2 of each put the long seconds - T into T1 put R into fld "output" put the long seconds - T into T2 put T1 && T2 close file F end mouseUp On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon wrote: > On this Hacker News thread , > I read this programming interview question > . Roughly, the challenge is to > count the frequency of words in input, and return a list with counts, > sorted from most to least frequent. So input like this: > > The foo the foo the > defenestration the > > would produce output like this: > > the 4 > foo 2 > defenestration 1 > > Of course I smiled because LC is literally built for this problem. I took > well under two minutes to write this function: > > function wordCount X > repeat for each word w in X > add 1 to R[w] > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > return R > end wordCount > > There are quibbles -- the examples given in the article work line by line, > so input size isn't an issue, and of course quotes would cause an issue, > and LC is case insensitive, so it works, but the output would look like > this: > > The 4 > foo 2 > defenestration 1 > > But generally, it works, and is super-easy to code. But for the sake of > argument, consider this Python solution given: > > counts = collections.Counter() > for line in sys.stdin: > words = line.lower().split() > counts.update(words) > > for word, count in counts.most_common(): > print(word, count) > > That requires a library, but it's also super-easy to code and understand, > and it requires just the same number of lines. So, daydreaming extensions > to LC syntax, this comes to mind: > > function wordCount X > add 1 to R[w] for each word w in X > return R combined using cr and tab and sorted numeric descending by > word 2 of each > end wordCount > > or if you prefer: > > function wordCount X > for each word w in X add 1 to R[w] > return (R combined using cr and tab) sorted numeric descending by word > 2 of each > end wordCount > > Or to really apply ourselves: > > function wordCount X > return the count of each word in X using cr and tab sorted numeric > descending by word 2 of each > end wordCount > > So: the xTalk syntax is over thirty years old; when was the last > significant syntax update? > > (I'm not at all core to the process, so feel free to tell me how much I've > missed lately!) > > From jbv at souslelogo.com Mon Jul 25 02:59:04 2022 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 25 Jul 2022 02:59:04 -0400 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: Just curious : why do you use "read from file F for 1 line" ? Instead, why don't you read the file in one go, load the content into a variable and then use "for each line j in myVar" ? Wouldn't that run faster ? Best, jbv Le 2022-07-25 02:42, Geoff Canyon via use-livecode a crit : > As a meta point, I wrote a version closer to the actual requirements -- > lowercase everything, process an external input line by line to allow > for > arbitrary input size. The result is about 8-10x slower than most other > languages -- not as bad as I feared, not as good as I hoped. Here's the > code for that version: > > on mouseUp > answer file "choose input:" > if it is empty then exit mouseUp > put it into F > lock screen > put the long seconds into T > open file F for read > repeat > read from file F for 1 line > repeat for each word w in toLower(it) > add 1 to R[w] > end repeat > if the result is not empty then exit repeat > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > put the long seconds - T into T1 > put R into fld "output" > put the long seconds - T into T2 > put T1 && T2 > close file F > end mouseUp > > On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon > wrote: > >> On this Hacker News thread >> , >> I read this programming interview question >> . Roughly, the challenge is >> to >> count the frequency of words in input, and return a list with counts, >> sorted from most to least frequent. So input like this: >> >> The foo the foo the >> defenestration the >> >> would produce output like this: >> >> the 4 >> foo 2 >> defenestration 1 >> >> Of course I smiled because LC is literally built for this problem. I >> took >> well under two minutes to write this function: >> >> function wordCount X >> repeat for each word w in X >> add 1 to R[w] >> end repeat >> combine R using cr and tab >> sort R numeric descending by word 2 of each >> return R >> end wordCount >> >> There are quibbles -- the examples given in the article work line by >> line, >> so input size isn't an issue, and of course quotes would cause an >> issue, >> and LC is case insensitive, so it works, but the output would look >> like >> this: >> >> The 4 >> foo 2 >> defenestration 1 >> >> But generally, it works, and is super-easy to code. But for the sake >> of >> argument, consider this Python solution given: >> >> counts = collections.Counter() >> for line in sys.stdin: >> words = line.lower().split() >> counts.update(words) >> >> for word, count in counts.most_common(): >> print(word, count) >> >> That requires a library, but it's also super-easy to code and >> understand, >> and it requires just the same number of lines. So, daydreaming >> extensions >> to LC syntax, this comes to mind: >> >> function wordCount X >> add 1 to R[w] for each word w in X >> return R combined using cr and tab and sorted numeric descending by >> word 2 of each >> end wordCount >> >> or if you prefer: >> >> function wordCount X >> for each word w in X add 1 to R[w] >> return (R combined using cr and tab) sorted numeric descending by >> word >> 2 of each >> end wordCount >> >> Or to really apply ourselves: >> >> function wordCount X >> return the count of each word in X using cr and tab sorted numeric >> descending by word 2 of each >> end wordCount >> >> So: the xTalk syntax is over thirty years old; when was the last >> significant syntax update? >> >> (I'm not at all core to the process, so feel free to tell me how much >> I've >> missed lately!) >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacques.clavel at gmail.com Mon Jul 25 03:06:52 2022 From: jacques.clavel at gmail.com (Jacques Clavel) Date: Mon, 25 Jul 2022 09:06:52 +0200 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: just curious : what about using LCB for the repeat loop ? jc Le lun. 25 juil. 2022 à 08:44, Geoff Canyon via use-livecode < use-livecode at lists.runrev.com> a écrit : > As a meta point, I wrote a version closer to the actual requirements -- > lowercase everything, process an external input line by line to allow for > arbitrary input size. The result is about 8-10x slower than most other > languages -- not as bad as I feared, not as good as I hoped. Here's the > code for that version: > > on mouseUp > answer file "choose input:" > if it is empty then exit mouseUp > put it into F > lock screen > put the long seconds into T > open file F for read > repeat > read from file F for 1 line > repeat for each word w in toLower(it) > add 1 to R[w] > end repeat > if the result is not empty then exit repeat > end repeat > combine R using cr and tab > sort R numeric descending by word 2 of each > put the long seconds - T into T1 > put R into fld "output" > put the long seconds - T into T2 > put T1 && T2 > close file F > end mouseUp > > On Sun, Jul 24, 2022 at 11:01 PM Geoff Canyon wrote: > > > On this Hacker News thread < > https://news.ycombinator.com/item?id=32214419>, > > I read this programming interview question > > . Roughly, the challenge is > to > > count the frequency of words in input, and return a list with counts, > > sorted from most to least frequent. So input like this: > > > > The foo the foo the > > defenestration the > > > > would produce output like this: > > > > the 4 > > foo 2 > > defenestration 1 > > > > Of course I smiled because LC is literally built for this problem. I took > > well under two minutes to write this function: > > > > function wordCount X > > repeat for each word w in X > > add 1 to R[w] > > end repeat > > combine R using cr and tab > > sort R numeric descending by word 2 of each > > return R > > end wordCount > > > > There are quibbles -- the examples given in the article work line by > line, > > so input size isn't an issue, and of course quotes would cause an issue, > > and LC is case insensitive, so it works, but the output would look like > > this: > > > > The 4 > > foo 2 > > defenestration 1 > > > > But generally, it works, and is super-easy to code. But for the sake of > > argument, consider this Python solution given: > > > > counts = collections.Counter() > > for line in sys.stdin: > > words = line.lower().split() > > counts.update(words) > > > > for word, count in counts.most_common(): > > print(word, count) > > > > That requires a library, but it's also super-easy to code and understand, > > and it requires just the same number of lines. So, daydreaming extensions > > to LC syntax, this comes to mind: > > > > function wordCount X > > add 1 to R[w] for each word w in X > > return R combined using cr and tab and sorted numeric descending by > > word 2 of each > > end wordCount > > > > or if you prefer: > > > > function wordCount X > > for each word w in X add 1 to R[w] > > return (R combined using cr and tab) sorted numeric descending by word > > 2 of each > > end wordCount > > > > Or to really apply ourselves: > > > > function wordCount X > > return the count of each word in X using cr and tab sorted numeric > > descending by word 2 of each > > end wordCount > > > > So: the xTalk syntax is over thirty years old; when was the last > > significant syntax update? > > > > (I'm not at all core to the process, so feel free to tell me how much > I've > > missed lately!) > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacques Clavel From gcanyon at gmail.com Mon Jul 25 10:15:20 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Jul 2022 07:15:20 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: On Mon, Jul 25, 2022 at 12:00 AM jbv via use-livecode < use-livecode at lists.runrev.com> wrote: > Just curious : why do you use "read from file F for 1 line" ? > Instead, why don't you read the file in one go, load the content > into a variable and then use "for each line j in myVar" ? > Wouldn't that run faster ? > > Best, > jbv > My base version does all the processing in one go and ignores lines entirely except as they count as white space. But the second set of requirements for the task from the original post required dealing with arbitrarily large inputs (it mentioned terabytes). It's not a completely unrealistic concept: at the rate this goes on my Mac, it would take about 100 hours to process a terabyte input. In any case, I just tried my base "all in one go" version on the 50mb test file, and it's about 3x as fast as parsing line-by-line, which makes it still among the slowest languages as far as I can tell -- no idea how my M1 Macbook Air compares to the machine he used. From gcanyon at gmail.com Mon Jul 25 10:16:13 2022 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 25 Jul 2022 07:16:13 -0700 Subject: Is syntax a dead issue? In-Reply-To: References: Message-ID: On Mon, Jul 25, 2022 at 12:08 AM Jacques Clavel via use-livecode < use-livecode at lists.runrev.com> wrote: > just curious : what about using LCB for the repeat loop ? > > jc > I confess I haven't touched LCB From lists at mangomultimedia.com Mon Jul 25 14:24:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 25 Jul 2022 13:24:58 -0500 Subject: Monterey + Dark Mode + LC 9.6.6 In-Reply-To: References: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> Message-ID: Thanks for posting this Marty. I just needed to add that to my app :-) -- Trevor DeVore ScreenSteps On Mon, Mar 7, 2022 at 7:10 PM Marty Knapp via use-livecode < use-livecode at lists.runrev.com> wrote: > I think I found the issue. I use Levure to build my apps (great framework > - you should try it!) and it uses a a customized plist file. I compared > that to a plist file from a normally complied app and notice it has has > parameter that is needed: > > NSRequiresAquaSystemAppearance > > > --- > Marty Knapp > > > On Mar 7, 2022, at 4:05 PM, Marty Knapp > wrote: > > > > I just had a customer send a screen shot of my app (built with LC 9.6.6) > running on Mac Monterey in dark mode and buttons and fields are all messed > up. I don’t use dark mode and so tried it on my Mac and see the issue. I > then tried an app built with a previous version of LC (9.6.1 I believe) and > it looks fine. Anybody else seeing this? > > --- > > Marty Knapp > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From martyknappster at gmail.com Mon Jul 25 15:06:45 2022 From: martyknappster at gmail.com (Marty Knapp) Date: Mon, 25 Jul 2022 12:06:45 -0700 Subject: Monterey + Dark Mode + LC 9.6.6 In-Reply-To: References: <71F66BA4-23E7-4B56-9549-6DE442B74635@gmail.com> Message-ID: <6AAA4E05-11E0-448C-9156-B96CC36C7793@gmail.com> Glad I could reciprocate for once! I’m sure glad I took the time to learn Trevor's “Levure" framework - such great way to build apps in LC. I would encourage you to try this if you have not done so. One one of my favorite features is the update helper using the Sparkle framework. And you can’t beat the price - free! https://github.com/trevordevore/levure/wiki --- Marty Knapp > On Jul 25, 2022, at 11:24 AM, Trevor DeVore via use-livecode wrote: > > Thanks for posting this Marty. I just needed to add that to my app :-) > > -- > Trevor DeVore > ScreenSteps > > On Mon, Mar 7, 2022 at 7:10 PM Marty Knapp via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I think I found the issue. I use Levure to build my apps (great framework >> - you should try it!) and it uses a a customized plist file. I compared >> that to a plist file from a normally complied app and notice it has has >> parameter that is needed: >> >> NSRequiresAquaSystemAppearance >> >> >> --- >> Marty Knapp >> >>> On Mar 7, 2022, at 4:05 PM, Marty Knapp >> wrote: >>> >>> I just had a customer send a screen shot of my app (built with LC 9.6.6) >> running on Mac Monterey in dark mode and buttons and fields are all messed >> up. I don’t use dark mode and so tried it on my Mac and see the issue. I >> then tried an app built with a previous version of LC (9.6.1 I believe) and >> it looks fine. Anybody else seeing this? >>> --- >>> Marty Knapp >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 26 09:20:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 26 Jul 2022 08:20:58 -0500 Subject: Automating LiveCode builds with Github Actions? Message-ID: Hello, I would like to automate the following sequential steps using Github Actions and I'm wondering if anyone has experience automating LiveCode with Github Actions that they could share. 1. Open a stack in LiveCode and send a message to it. This would be for building a Levure application. 2. Build an MSI file using Wix 3. Build an exe installer with Inno Setup. The end result would be the ability to create MSI and exe installers from a LIveCode application from a central location (Github) either manually or as part of another workflow. -- Trevor DeVore ScreenSteps From bobsneidar at iotecdigital.com Tue Jul 26 11:06:59 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 26 Jul 2022 15:06:59 +0000 Subject: sqlYoga queries Message-ID: Hi. This is directed at Trevor Devore, although if anyone else knows they can chime in. sqlYoga can define table objects and relations in a database object. Heretofore I have not availed myself of this, being content to only work with query objects and record objects. Now as I am trying to optimize this new socket agent I wrote, I am wondering if a single query for all the data for a given customer/site/device would be more time efficient than multiple queries for each table. So the question is, if I were to use table and relations, could I craft a statement so that it perfoms a single query? Bob S From lists at mangomultimedia.com Tue Jul 26 11:47:58 2022 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 26 Jul 2022 10:47:58 -0500 Subject: sqlYoga queries In-Reply-To: References: Message-ID: On Tue, Jul 26, 2022 at 10:08 AM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > sqlYoga can define table objects and relations in a database object. > Heretofore I have not availed myself of this, being content to only work > with query objects and record objects. Now as I am trying to optimize this > new socket agent I wrote, I am wondering if a single query for all the data > for a given customer/site/device would be more time efficient than multiple > queries for each table. So the question is, if I were to use table and > relations, could I craft a statement so that it perfoms a single query? > Hi Bob, So table/relationship objects in SQL Yoga aren't required here. You can set the `related table joins` (or just `joins`) property of a SQL Query Object. See docs: https://github.com/trevordevore/sql-yoga/wiki/SQL-Yoga-API#sqlquery_set Per the docs, if you have table and relationship objects defined you can use shorthand to set the property. You can just use the longhand approach to run some tests and see if your code runs faster with a single query that returns data from multiple tables vs multiple queries that query each table individually. -- Trevor DeVore ScreenSteps From bobsneidar at iotecdigital.com Tue Jul 26 11:54:20 2022 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 26 Jul 2022 15:54:20 +0000 Subject: sqlYoga queries In-Reply-To: References: Message-ID: Thanks Trevor. I'll give it a go. Bob S > On Jul 26, 2022, at 08:47 , Trevor DeVore via use-livecode wrote: > > On Tue, Jul 26, 2022 at 10:08 AM Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> sqlYoga can define table objects and relations in a database object. >> Heretofore I have not availed myself of this, being content to only work >> with query objects and record objects. Now as I am trying to optimize this >> new socket agent I wrote, I am wondering if a single query for all the data >> for a given customer/site/device would be more time efficient than multiple >> queries for each table. So the question is, if I were to use table and >> relations, could I craft a statement so that it perfoms a single query? >> > > Hi Bob, > > So table/relationship objects in SQL Yoga aren't required here. You can set > the `related table joins` (or just `joins`) property of a SQL Query Object. > See docs: > https://github.com/trevordevore/sql-yoga/wiki/SQL-Yoga-API#sqlquery_set > > Per the docs, if you have table and relationship objects defined you can > use shorthand to set the property. You can just use the longhand approach > to run some tests and see if your code runs faster with a single query that > returns data from multiple tables vs multiple queries that query each table > individually. > > -- > Trevor DeVore > ScreenSteps > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jul 26 12:42:40 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 16:42:40 +0000 Subject: Android Player Object in Background Message-ID: I have a music playing app that uses the native player object to play music. When in the background, iOS allows control of the playing song in the Control Center. This not function this way on Android. There is a androidStartAudioPlayingInBackground command, but that plays a supplied url, not from the player object. Does anyone have any insight on this? -Dan From dan at clearvisiontech.com Tue Jul 26 12:45:04 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 16:45:04 +0000 Subject: LiveCode access to mpnowplayinginfocenter? Message-ID: On iOS, a song playing in the native player can be controlled in the Control Center. However, it doesn't display the song name, or artwork or other details. Looks like LC needs to access mpnowplayinginfocenter. Is this possible? Anyone know anything about this? -Dan From tom at makeshyft.com Tue Jul 26 17:28:10 2022 From: tom at makeshyft.com (Tom Glod) Date: Tue, 26 Jul 2022 17:28:10 -0400 Subject: Android Player Object in Background In-Reply-To: References: Message-ID: The way I achieved this is using a html 5 player in the browser instead of the player object. The player has no way of doing this currently....as far as I know. On Tue, Jul 26, 2022 at 12:43 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a music playing app that uses the native player object to play > music. When in the background, iOS allows control of the playing song in > the Control Center. This not function this way on Android. There is a > androidStartAudioPlayingInBackground command, but that plays a supplied > url, not from the player object. Does anyone have any insight on this? > > -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 dan at clearvisiontech.com Tue Jul 26 18:23:22 2022 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 26 Jul 2022 22:23:22 +0000 Subject: Android Player Object in Background In-Reply-To: References: Message-ID: Tom, Yes, I know the browser will do this. That's what we did originally. But, I couldn't get enough control over the playback in the browser. The Player Object does everything I need! Except work with the OS apparently. I'll have to reach out to LC for assistance. -Dan On 7/26/22, 2:29 PM, "use-livecode on behalf of Tom Glod via use-livecode" wrote: The way I achieved this is using a html 5 player in the browser instead of the player object. The player has no way of doing this currently....as far as I know. On Tue, Jul 26, 2022 at 12:43 PM Dan Friedman via use-livecode < use-livecode at lists.runrev.com> wrote: > I have a music playing app that uses the native player object to play > music. When in the background, iOS allows control of the playing song in > the Control Center. This not function this way on Android. There is a > androidStartAudioPlayingInBackground command, but that plays a supplied > url, not from the player object. Does anyone have any insight on this? > > -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 paul at researchware.com Wed Jul 27 11:17:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Wed, 27 Jul 2022 11:17:23 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: Still looking for a LCB developer to build/configure Trevor's wrapper for pocketsphinx for macOS also for Windows. On 7/14/2022 3:50 PM, Paul Dupuis via use-livecode wrote: > I am looking to hire someone to take what Trevor DeVore started 3 > years ago, for the Livecode conference, of making an LCB wrapper for > pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for > macOS and extend it to Windows including builds of the pocketsphinx > libraries for macOS and Windows. Essentially, advance it a bit further > so it can just be plugged into Livecode and used as a library in the > IDE and standalones. > > Anyone experienced in making LCB libraries for macOS and Windows > interested? > > If so, please email me off-list and send me a rate and/or estimate. > > P.S. I contacted Trevor, but he is tied up with other work and > unavailable. > > Paul Dupuis > Researchware > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jul 28 08:39:59 2022 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 28 Jul 2022 08:39:59 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: I don't know if I'm surprised or not surprised that the LCB takeup seems to be low. On Wed, Jul 27, 2022 at 11:18 AM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > Still looking for a LCB developer to build/configure Trevor's wrapper > for pocketsphinx for macOS also for Windows. > > > On 7/14/2022 3:50 PM, Paul Dupuis via use-livecode wrote: > > I am looking to hire someone to take what Trevor DeVore started 3 > > years ago, for the Livecode conference, of making an LCB wrapper for > > pocketsphinx (https://github.com/trevordevore/lc-pocketsphinx) for > > macOS and extend it to Windows including builds of the pocketsphinx > > libraries for macOS and Windows. Essentially, advance it a bit further > > so it can just be plugged into Livecode and used as a library in the > > IDE and standalones. > > > > Anyone experienced in making LCB libraries for macOS and Windows > > interested? > > > > If so, please email me off-list and send me a rate and/or estimate. > > > > P.S. I contacted Trevor, but he is tied up with other work and > > unavailable. > > > > Paul Dupuis > > Researchware > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode 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 paul at researchware.com Thu Jul 28 10:57:23 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 28 Jul 2022 10:57:23 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: On 7/28/2022 8:39 AM, Mike Kerner via use-livecode wrote: > I don't know if I'm surprised or not surprised that the LCB takeup seems to > be low. > > Actually, I am surprised. I have seen mentioned on this list dozens of LCB widgets and libraries, including those developed by others and licensed by Livecode for the Summer Bundle. Not hundreds true, but many dozens. That implies to e there are at least a few dozen LCB developers out there. What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). I can learn how to do this, but I expect it will take me 4-8 times as long. So basic math says that if I can find someone to perform the task for pay, it is likely a better option than my trying to spend the time to do it myself. I also figured, since it would seem to be a small job, that it might be attractive to an LCB developer out there to fill in and around other work they are doing. However, if there are no takers, then I guess I'll just make the time and jump in. From harrison at all-auctions.com Thu Jul 28 11:57:55 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Thu, 28 Jul 2022 11:57:55 -0400 Subject: Livecode Builder developer wanted In-Reply-To: References: Message-ID: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> Hi Paul, I seriously doubt that anyone would be chomping at the bit for this task. First, you expect the person to spend their free time looking at the task to determine the effort and cost required to accomplish the task. There is no paid incentive to do that first step. If after the person gave you their estimate, and you decided you didn’t like it, then the developer has lost their time and effort for nothing. Secondly you have stated that you expect the effort required would be no more than 1 day. It’s very possible that your 1 day projection is completely off the mark. If it took the person more time than that, you would probably be dissatisfied. Who would want to deal with that? Thirdly, even if your projection of 1 day of effort was 100% correct, why would anyone want to bother trying to do the task for just one day’s pay? It simply isn’t worth the time or the hassle for any potential programmer to want to deal with the task for that reason alone. So yes, the bottom line here for you is that you indeed will have to work on the task yourself or it’s not going to get done at all. I hope you will keep this in mind for any future work you would like to have performed. I have to get back to my work here. I hope you have a fruitful and productive day! Cheers, Rick > On Jul 28, 2022, at 10:57 AM, Paul Dupuis via use-livecode wrote: > > What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). From paul at researchware.com Thu Jul 28 12:23:52 2022 From: paul at researchware.com (Paul Dupuis) Date: Thu, 28 Jul 2022 12:23:52 -0400 Subject: Livecode Builder developer wanted In-Reply-To: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> Message-ID: <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> I've hired and managed independent software developers for various businesses for nearly 40 years. I am well aware of the market. We pay competitive contract rates. My estimate of time is probably about right for someone who has set up at least 1 or 2 cross-platform LCB DLL wrappers based on decades of estimating IT projects, but it was more meant to suggest the work is something in the scope of many hours to days vs. weeks or months. As for job size, if you are a contract developer who has a queue of large jobs providing regular income, good for you. My experience is that many contract developers value non-time sensitive small jobs they can fit in and around larger projects to fill in the inevitable gaps between larger projects that can come up. If no one is available or interested, as I said, it is not time sensitive, so we can either wait or tackle it ourselves as time permits. Paul Dupuis Researchware  On 7/28/2022 11:57 AM, harrison--- via use-livecode wrote: > Hi Paul, > > I seriously doubt that anyone would be chomping at the bit for this task. > > First, you expect the person to spend their free time looking at the task to > determine the effort and cost required to accomplish the task. There is > no paid incentive to do that first step. If after the person gave you their > estimate, and you decided you didnt like it, then the developer has lost > their time and effort for nothing. > > Secondly you have stated that you expect the effort required would be > no more than 1 day. Its very possible that your 1 day projection is > completely off the mark. If it took the person more time than that, you > would probably be dissatisfied. Who would want to deal with that? > > Thirdly, even if your projection of 1 day of effort was 100% correct, why would > anyone want to bother trying to do the task for just one days pay? It simply > isnt worth the time or the hassle for any potential programmer to want to > deal with the task for that reason alone. > > So yes, the bottom line here for you is that you indeed will have to work > on the task yourself or its not going to get done at all. > > I hope you will keep this in mind for any future work you would like > to have performed. > > I have to get back to my work here. > > I hope you have a fruitful and productive day! > > Cheers, > > Rick > > > >> On Jul 28, 2022, at 10:57 AM, Paul Dupuis via use-livecode wrote: >> >> What I'm seeking is just to take what Trevor has already done in LCB for macOS and set it up for Windows as well. For someone with with experience at making LCB wrappers for DLLs, I would expect this work to be a relatively small effort (most likely no more than 1 day). > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Thu Jul 28 13:43:43 2022 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Thu, 28 Jul 2022 13:43:43 -0400 Subject: Livecode Builder developer wanted In-Reply-To: <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> References: <1C5DF67E-1332-42DB-BF43-1B0F709EF140@all-auctions.com> <7611291e-0782-ff86-d8e9-bff5cbe329ad@researchware.com> Message-ID: Hi Paul, You should have led with that information. Keys here: Not time sensitive. Pay competitive rates: What is your rate? Be upfront with that if you can. Thanks for clearing things up a bit. Cheers, Rick > On Jul 28, 2022, at 12:23 PM, Paul Dupuis via use-livecode wrote: > > I've hired and managed independent software developers for various businesses for nearly 40 years. I am well aware of the market. > > We pay competitive contract rates. My estimate of time is probably about right for someone who has set up at least 1 or 2 cross-platform LCB DLL wrappers based on decades of estimating IT projects, but it was more meant to suggest the work is something in the scope of many hours to days vs. weeks or months. > > As for job size, if you are a contract developer who has a queue of large jobs providing regular income, good for you. My experience is that many contract developers value non-time sensitive small jobs they can fit in and around larger projects to fill in the inevitable gaps between larger projects that can come up. > > If no one is available or interested, as I said, it is not time sensitive, so we can either wait or tackle it ourselves as time permits. > > Paul Dupuis > Researchware From paul at researchware.com Sat Jul 30 15:53:22 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jul 2022 15:53:22 -0400 Subject: wait 0 with messages Message-ID: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> My understanding of 'wait 0 with messages' is that it will cause any pending messages, that are not scheduled for a time later than the current time, in the pendingMessages queue to be processed before continuing. Messages later than the current time (when the statement is executed) will not be processed (yet). Is this correct? From ahsoftware at sonic.net Sat Jul 30 19:49:36 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 30 Jul 2022 16:49:36 -0700 Subject: wait 0 with messages In-Reply-To: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> Message-ID: <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> On 7/30/22 12:53, Paul Dupuis via use-livecode wrote: > My understanding of 'wait 0 with messages' is that it will cause any > pending messages, that are not scheduled for a time later than the > current time, in the pendingMessages queue to be processed before > continuing. Messages later than the current time (when the statement is > executed) will not be processed (yet). > > Is this correct? My understanding of this is close but not quite the same. The "wait 0 with messages" statement is the fastest implementation ("wait 0") of an opportunity for the system event loop to process any pending instructions. The "with messages" statement in effect yields control to the event loop to check if any "send in time" messages have timed out and are pending or to handle other tasks that may have accumulated (mouse or keyboard events, etc). -- Mark Wieder ahsoftware at gmail.com From paul at researchware.com Sat Jul 30 22:02:54 2022 From: paul at researchware.com (Paul Dupuis) Date: Sat, 30 Jul 2022 22:02:54 -0400 Subject: wait 0 with messages In-Reply-To: <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> Message-ID: On 7/30/2022 7:49 PM, Mark Wieder via use-livecode wrote: > On 7/30/22 12:53, Paul Dupuis via use-livecode wrote: >> My understanding of 'wait 0 with messages' is that it will cause any >> pending messages, that are not scheduled for a time later than the >> current time, in the pendingMessages queue to be processed before >> continuing. Messages later than the current time (when the statement >> is executed) will not be processed (yet). >> >> Is this correct? > > My understanding of this is close but not quite the same. > The "wait 0 with messages" statement is the fastest implementation > ("wait 0") of an opportunity for the system event loop to process any > pending instructions. The "with messages" statement in effect yields > control to the event loop to check if any "send in time" messages have > timed out and are pending or to handle other tasks that may have > accumulated (mouse or keyboard events, etc). > So Mark, Your understanding is that 'wait 0' (WITHOUT with messages) would allow OS events like a screen redraw, USB drive insertion/removal, etc. but NOT livecode engine events in the queue like mouseDown, mouseUp, resumeStack, etc, OR That wait 0 (again without with messages) would include in addition to OS events, LC built-in events like mouseDown, resumeStack, etc., but not custom messages (or LC standard messages) sent to the queue via sent in time? Thanks for responding! From ahsoftware at sonic.net Sun Jul 31 01:04:14 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sat, 30 Jul 2022 22:04:14 -0700 Subject: wait 0 with messages In-Reply-To: References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> Message-ID: <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> On 7/30/22 19:02, Paul Dupuis via use-livecode wrote: > So Mark, > > Your understanding is that 'wait 0' (WITHOUT with messages) would allow > OS events like a screen redraw, USB drive insertion/removal, etc. but > NOT livecode engine events in the queue like mouseDown, mouseUp, > resumeStack, etc, > > OR > > That wait 0 (again without with messages) would include in addition to > OS events, LC built-in events like mouseDown, resumeStack, etc., but not > custom messages (or LC standard messages) sent to the queue via sent in > time? I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running the script in the first button will prevent mouseUp events in button 2 from being processed. button 1 script: on mouseUp repeat forever wait 0 end repeat end mouseUp button 2 script: on mouseUp put the name of me & cr after msg end mouseUp Now hit command-period to exit to the debugger, change the script of button 1 to on mouseUp repeat forever wait 0 with messages end repeat end mouseUp and you can click button 2 and see new text in the message box. -- Mark Wieder ahsoftware at gmail.com From jacque at hyperactivesw.com Sun Jul 31 15:14:39 2022 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 31 Jul 2022 14:14:39 -0500 Subject: wait 0 with messages In-Reply-To: <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> Message-ID: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: > > I don't think "wait 0" by itself does anything useful. Make a stack with two buttons. Running > the script in the first button will prevent mouseUp events in button 2 from being processed. I think it must do something, "wait 0" is a workaround for bug 22453 (and 18924 which is now marked as a duplicate.) I had to use the workaround and it works. So my take is that any wait allows LC to do housekeeping, and "with messages" also allows app-generated messages. I'd like to get a confirmation from the team though. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ahsoftware at sonic.net Sun Jul 31 23:46:38 2022 From: ahsoftware at sonic.net (Mark Wieder) Date: Sun, 31 Jul 2022 20:46:38 -0700 Subject: wait 0 with messages In-Reply-To: <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> References: <1cae43a6-063a-8243-cee2-cbf8e3b45e47@researchware.com> <73d66312-e94e-aba5-5189-67ed6dc9995e@sonic.net> <8c7a0ae9-c8c8-14be-aea1-efa3cb915bd0@sonic.net> <079188a0-9eac-521d-c0d0-a0f1cb087cdb@hyperactivesw.com> Message-ID: On 7/31/22 12:14, J. Landman Gay via use-livecode wrote: > On 7/31/22 12:04 AM, Mark Wieder via use-livecode wrote: >> >> I don't think "wait 0" by itself does anything useful. Make a stack >> with two buttons. Running the script in the first button will prevent >> mouseUp events in button 2 from being processed. > > I think it must do something, "wait 0" is a workaround for bug 22453 > (and 18924 which is now marked as a duplicate.) I had to use the > workaround and it works. > > So my take is that any wait allows LC to do housekeeping, and "with > messages" also allows app-generated messages. I'd like to get a > confirmation from the team though. That's pretty bizarre. I wonder what's going on. All I can think of is that processing the wait command gives the java JNI command enough time to recover before processing the mobileControlSet vscroll command. And ios wouldn't need that extra time because there's no java interaction. -- Mark Wieder ahsoftware at gmail.com