This AI stuff is taking off and I see next to nothing from LC
Hi, There is so much happening and is any of it happening with this tool? Am I in the wrong place to see what others are doing with AI and LiveCode? Pointers welcome. -- Ta. Mark Rauterkus *mark.rauter...@gmail.com * ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Encoding Arrays with File Paths
Hi Monte. I did try your versioning solution but I am still having issues on the receiving end. Given your understanding of what I am trying to do here, how would you “package” the data so that it can be sent over the wire (socket communications)? The idea is to send an array with different key value pairs, but the file data needs to be encrypted for security. I’m not sure I should even be using base64encoding. There is something in the arrayEncode dictionary entry that says I should be using URLEncode before sending data over the wire. I tried that but the receiving end got an empty string. Bob S > On Feb 18, 2025, at 3:29 PM, Monte Goulding via use-livecode > wrote: > > Ah ok so just checked the docs on the array encode version added in LC 7 and > found: > ``` > If present, and >= "7.0" then the array is encoded in such a way as to > preserve unicode in keys and values, as well as NUL chars in keys and values > ``` > > So try `arrayEncode(array, “7.0")` > >> On 19 Feb 2025, at 10:18 AM, Bob Sneidar via use-livecode >> wrote: >> >> The structure looks like the following: >> >> Sly File Agent API >> Structure of payload sent >> >> [0] >>[profile] >> [n] >>[data] >>[datemodified] >>[extpath] >>[filecategory] >>[fileid] >>[filename] > database when data is returned> >>[filepath] > this> >>[operation] >>[saveaction] >>[version] > data is returned> >> [n+1]… >> >> The problem is definitely the binary data stored in the [n] [“data”] key. If >> I immediately decrypt the data in the key on the MacOS the data is correct. >> But when I decrypt the exact same data on the Windows OS I get a bad decrypt >> error. >> >> So to be perfectly clear, I create the above array, I iterate through each >> key from 1 to n, encrypting and overwriting the information in the [“data”] >> key. I then arrayEncode the entire array, then base64encode everythign >> before transmitting it over the wire. >> >> I reverse the process on the receiving side. It seems to work if I send >> non-binary data in the [“data”] key but if the data is binary, it fails. I >> do not think arrayEncode / decode likes to work with binary data. >> >> Bob S >> >> >>> On Feb 18, 2025, at 2:45 PM, Monte Goulding via use-livecode >>> wrote: >>> >>> >>> On 19 Feb 2025, at 9:39 AM, Bob Sneidar via use-livecode wrote: but one key is the binary file data of a file that has been encrypted using LC’s built in library. >>> >>> Are you using this as the key or element value? I think keys are always >>> treated as text. It has been quite one time since I’ve been poking the >>> engine in a meaningful way though so I might be forgetting that. >>> >>> Cheers >>> >>> Monte >>> ___ >>> use-livecode mailing list >>> use-livecode@lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: This AI stuff is taking off and I see next to nothing from LC
Hi, I am doing a lot of things as a hobbyist with LC and IA, either locally or on a vps with ollama, and also with the OpenAI API. That includes embedding, vision, syntaxic trees of sentences, etc. A few days ago, I have posted on this forum the code I use to interact with ollama via curl requests. jbv Le 2025-02-19 11:27, Mark Rauterkus via use-livecode a écrit : Hi, There is so much happening and is any of it happening with this tool? Am I in the wrong place to see what others are doing with AI and LiveCode? Pointers welcome. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Encoding Arrays with File Paths
On 2025-02-18 23:18, Bob Sneidar via use-livecode wrote: The structure looks like the following: I reverse the process on the receiving side. It seems to work if I send non-binary data in the [“data”] key but if the data is binary, it fails. I do not think arrayEncode / decode likes to work with binary data. I think the problem here is with encrypt/decrypt - there is an anomaly in that although the operations morally work on binary strings, their internal signatures (in the engine) take and return normal strings. This doesn't make any difference if you are saving the data to a binary file or working on the same platform - but it does make a difference if you store the value in something which records the difference between strings and binary strings - like arrayEncode. If you put `byte 1 to -1 of tEncryptedData into tArray["key"]` then it should solve the problem as the engine won't be doing any (native) encoding translation when you pass the data to decrypt on a different platform. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
This AI stuff is taking off and I see next to nothing from LC
I have been working on my AI app since 2023. I added AI to my app in September of 2023. As AI changes, there has been ia lot of changes made in my app. I have to mention that LiveCode assistance has been instrumental in getting AI added to my app. I have been slowed by my stroke, which I suffered near the end of2021. Since my app is a report writer, my app required a lot of changes. Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: This AI stuff is taking off and I see next to nothing from LC
Hi Mark In the there was a webinar on Jan 24, 2025 with updates on the progress on LiveCode Create. https://livecode.com/create-progress-the-three-ds/ Create Progress - the Three D's livecode.com AI was not one of the topics covered in the webinar but in the discussion afterwards there was a question on it. There were a number of questions that they did not get to during the webinar so the responses were included on the same page as the webinar video above. The one regarding AI is here. [Question] Paul A: Will AI be integrated and if yes how? [Answer] AI is already working in some areas, it can provide assistance with your code in the Code Editor for example. We are working on a feature to describe your project interface and have AI automatically build it. So there is work being done on it. It is not in DP5 as far as I know. I don’t remember if there was any mention of parts of the AI feature set being included in DP6. If you need it earlier try contacting support and explain your use case and ask if you can get access to those features. They are willing to lift the limit of 1 project per workspace on a case by case basis so I don’t know whether that is possible with how AI is implemented but won’t hurt to ask. Best regards, Martin Koob > On Feb 19, 2025, at 11:27 AM, Mark Rauterkus via use-livecode > wrote: > > Hi, > > There is so much happening and is any of it happening with this tool? > > Am I in the wrong place to see what others are doing with AI and LiveCode? > > Pointers welcome. > > > -- > Ta. > > > Mark Rauterkus *mark.rauter...@gmail.com * > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Encoding Arrays with File Paths
> On 20 Feb 2025, at 12:17 PM, Bob Sneidar via use-livecode > wrote: > > I have narrowed down the issue to the fact that the array I am trying to > arrayDecode has a lot of data in the [n] [“data”] key. Without that data, the > array decodes file. With it I get an error. I even tried base64encoding it > first before putting it in the array key, but that does not seem to help. I > may be running up on some kind of limit to array keys. Small UTF8 text files > transfer no problem. Large binary files, BIG problem. (And yes I am using > open file for binary read.) > > If I do not put the data in an array key, but rather send the data by itself, > then it decrypts successfully on the other end, so I think what I am going to > have to do is send the array first without file data, then recursively send > each file after encrypting and base64encoding. It sounds like it’s time for a bug report Bob. If you can create a stack that demonstrates the issue it would be good to get it resolved. Cheers Monte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Encoding Arrays with File Paths
I have narrowed down the issue to the fact that the array I am trying to arrayDecode has a lot of data in the [n] [“data”] key. Without that data, the array decodes file. With it I get an error. I even tried base64encoding it first before putting it in the array key, but that does not seem to help. I may be running up on some kind of limit to array keys. Small UTF8 text files transfer no problem. Large binary files, BIG problem. (And yes I am using open file for binary read.) If I do not put the data in an array key, but rather send the data by itself, then it decrypts successfully on the other end, so I think what I am going to have to do is send the array first without file data, then recursively send each file after encrypting and base64encoding. Oh well. Lessons learned. Bob S > On Feb 19, 2025, at 8:01 AM, Bob Sneidar via use-livecode > wrote: > > Hi Monte. I did try your versioning solution but I am still having issues on > the receiving end. Given your understanding of what I am trying to do here, > how would you “package” the data so that it can be sent over the wire (socket > communications)? The idea is to send an array with different key value pairs, > but the file data needs to be encrypted for security. > > I’m not sure I should even be using base64encoding. There is something in the > arrayEncode dictionary entry that says I should be using URLEncode before > sending data over the wire. I tried that but the receiving end got an empty > string. > > Bob S > > >> On Feb 18, 2025, at 3:29 PM, Monte Goulding via use-livecode >> wrote: >> >> Ah ok so just checked the docs on the array encode version added in LC 7 and >> found: >> ``` >> If present, and >= "7.0" then the array is encoded in such a way as to >> preserve unicode in keys and values, as well as NUL chars in keys and values >> ``` >> >> So try `arrayEncode(array, “7.0")` >> ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode