Sorting cards

2021-12-29 Thread J. Landman Gay via use-livecode
I am converting an old stack to LC and it needs to sort cards by one of two fields. LC does stable sorts, so if I sort by field 1 it works, and then if I sort later by field 2 it retains the original sort and does a sub-sort. I don't want that. What's the best way to ignore the previous sort

Re: Only kinda OT

2021-12-29 Thread Mark Smith via use-livecode
Oh Jacque, it may have been short but then there was the tantalizing link to Ray Dalio’s Last Warning: “Most People have no idea what’s coming”. And then the one about the “Most Powerful Computers you never heard of”. Oh, and the MIT study that predicted that Society will collapse in 2040 (this

Re: Is there a better way to check if images are the same? I now use imagedata

2021-12-29 Thread J. Landman Gay via use-livecode
If the intent is to copy the example exactly then I'd think the imageData would be the same. But I'd use location data as others have suggested. Get the end points of the line graphic and loop through a list of correct points to compare against. -- Jacqueline Landman Gay |

Only kinda OT

2021-12-29 Thread J. Landman Gay via use-livecode
It's short: -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Is there a better way to check if images are the same? I now use imagedata

2021-12-29 Thread William de Smet via use-livecode
Thanks for the replies. I just put it on the forum as well and attached an image with it to get a better idea of what I want to do. https://forums.livecode.com/viewtopic.php?f=8=36585 greetings,, William Op wo 29 dec. 2021 om 17:51 schreef William Prothero via use-livecode <

Re: Infection Simulation

2021-12-29 Thread Roger Guay via use-livecode
Thanks for the many great ideas, Alex. They will keep me busy for a while. Roger > On Dec 29, 2021, at 6:23 AM, Alex Tweedly via use-livecode > wrote: > > That's really cool - thanks. > > Improvements ? How much time do you have :-) > > 1. Visual display of contagion zone while running. >

Re: Is there a better way to check if images are the same? I now use imagedata

2021-12-29 Thread William Prothero via use-livecode
William, My basic suggestion is that you use the location data of each connected dot, rather than the image data. Good luck, Bill P Sent from my iPad > On Dec 29, 2021, at 8:42 AM, William Prothero via use-livecode > wrote: > > William, > I understand that you want to see if the dots that

Re: Is there a better way to check if images are the same? I now use imagedata

2021-12-29 Thread William Prothero via use-livecode
William, I understand that you want to see if the dots that are connected in one path are also connected in another path which may have them connected in a different order. Seems you could just loop through each dot in the reference path, then see if the same dots are included in the user’s

Re: Is there a better way to check if images are the same? I now use imagedata

2021-12-29 Thread Rick Harrison via use-livecode
Hi William, If you could provide a link to a photo example of what you are doing that would help us to understand the problem better. There may be a way to simplify your process so you don’t have to check every pixel. Rick > On Dec 29, 2021, at 4:57 AM, William de Smet via use-livecode >

Re: Infection Simulation

2021-12-29 Thread Alex Tweedly via use-livecode
That's really cool - thanks. Improvements ?   How much time do you have :-) 1. Visual display of contagion zone while running. 2. Recovery. After being infected for some length of time, an individual stops being infectious; either it dies, and becomes a static black dot, or recovers and

Re: Infection Simulation

2021-12-29 Thread Mark Smith via use-livecode
Neat simulation Roger. I wonder if you could simulate the effect of a lock down where small groups form and individuals rarely move outside their bubble? That might show the benefit of lockdowns in helping to reduce the spread of disease. Also, I did not understand what the concept of

Re: chartsEngine bug with version 10 of LC

2021-12-29 Thread scott--- via use-livecode
> (If they are equal: then the 2nd chars, etc.) Ah, that was the helpful piece of information I required. I didn’t realize it worked through the string one ASCII character at a time (with neither side being a “number” anymore.) (With the exception of upper and lower case characters having

Is there a better way to check if images are the same? I now use imagedata

2021-12-29 Thread William de Smet via use-livecode
Hi there, Is there a better way to check if images are the same? I now use imagadata. In my app I have an example drawn image (5x5 matrix with dots, a Geoboard). These dots are important because by touching them their Loc is used (gStartLoc and gStartLoc) Two dots will be connected by setting