Page 3 of 5

Re: nseslo ---> lesson (='.'=)

Posted: Thu Aug 23, 2018 12:02 pm
by Klaus
FourthWorld wrote: Thu Aug 23, 2018 11:57 amTo clarify, if the bug report is against LC's gzip functionality, I can't reproduce that.

If the report is against the that one property in the tutorial stack, I can reproduce that.
Make an educated guess! :D

Richard, I did not mean that you should file a bug report, but someone, before we reach page 3 here. 8)

Damn, we are already on page 3 now...

Re: nseslo ---> lesson (='.'=)

Posted: Thu Aug 23, 2018 3:55 pm
by bogs
FourthWorld wrote: Thu Aug 23, 2018 11:57 am Since then I hunted back in this thread to find the stack, and it opens but the compressed data does appear to be corrupted.
Well, that isn't exactly correct, if the compressed data were corrupted, it wouldn't have been able to be opened on a Mac either.

Indeed, it seems more likely the compressed data was compressed using something other than Lcs internal system**. The "how" would be a bit beyond my own understanding of how Lc works at this point, though, and I think we would probably need some input from the person who put up the stack itself.

Maybe we'll hear from them by page 4.... but in the meantime, I left a comment on the page of the lesson.

** Edit - I found no actual 'compress' statements in the code, my theory is that they compressed it outside of Lc and then threw the 'decompress' command and called it fine since it worked on their machine.

Re: nseslo ---> lesson (='.'=)

Posted: Thu Aug 23, 2018 6:33 pm
by jacque
FourthWorld wrote: Thu Aug 23, 2018 2:51 am Does BBEdit handle gzip, or just Zip?
It handles gz files, it auto-opens my server logs. This is strange because I use gz across platforms like you do and haven't had any problems. Did LC change the compression library since the lesson was written? Or maybe Windows did? I don't know if LC calls out to the OS for that, but I didn't think so.

@bogs, since it can be done in a single line of code, it's also possible (or even likely) they compressed and set the property from the message box.

Re: nseslo ---> lesson (='.'=)

Posted: Thu Aug 23, 2018 6:48 pm
by Klaus
bogs wrote: Thu Aug 23, 2018 3:55 pm...
Maybe we'll hear from them by page 4.... but in the meantime, I left a comment on the page of the lesson.
Sure you left a comment here: http://lessons.livecode.com/m/4071/l/18 ... finder-app?
The page reads: 0 Comments

Re: nseslo ---> lesson (='.'=)

Posted: Thu Aug 23, 2018 6:57 pm
by bogs
jacque wrote: Thu Aug 23, 2018 6:33 pm @bogs, since it can be done in a single line of code, it's also possible (or even likely) they compressed and set the property from the message box.
Absolutely it could have happened that way, but if it were, I suspect the Lc compression would work unilaterally and it would decompress on any OS. Because of the way it is only decompressing on Macs, and not on Windows or Linux, that is what is making me suspect it more likely they used the msgbox to just read in an already compressed on the Mac file to the property instead. It fits what we're seeing in trying to open it on different systems.
Klaus wrote: Thu Aug 23, 2018 6:48 pm
bogs wrote: Thu Aug 23, 2018 3:55 pm...
Maybe we'll hear from them by page 4.... but in the meantime, I left a comment on the page of the lesson.
Sure you left a comment here: http://lessons.livecode.com/m/4071/l/18 ... finder-app?
The page reads: 0 Comments
Yes, because comments on the lessons are moderated. Sorry, you'll have to wait till they approve the comment before you can see it :wink: I did check the 'email me' box, hopefully they will when it posts and I'll point it out again then.

Re: nseslo ---> lesson (='.'=)

Posted: Thu Aug 23, 2018 7:13 pm
by Klaus
bogs wrote: Thu Aug 23, 2018 6:57 pmYes, because comments on the lessons are moderated.
Ah, OK, sorry, did not know that.
Hmmm, that may take some time... :(

Re: nseslo ---> lesson (='.'=)

Posted: Thu Aug 23, 2018 8:44 pm
by bogs
That it might, I have no idea how often they look at those lessons :D

Re: nseslo ---> lesson (='.'=)

Posted: Fri Aug 24, 2018 11:17 am
by elanorb
Hi all,

I have updated the sample stack on the lesson with a uAllWords custom property compressed in LiveCode which seems to resolve the issue.

I spoke to Ali, our resident Scrabble enthusiast and original author of the stack and lesson, and he can't remember exactly where the original data came from but it was likely just a zipped list of valid Scrabble words so I think you are correct in your theory that it was not originally compressed in LiveCode, just loaded into the custom property and, unfortunately, was in a form that LiveCode can't decompress on Windows or Linux.

Please let us know if the updated stack still has issues and we'll investigate further.

Kind regards

Elanor

Re: nseslo ---> lesson (='.'=)

Posted: Fri Aug 24, 2018 11:34 am
by Klaus
I spoke to Ali, our resident Scrabble enthusiast and original author of the stack and lesson, and he can't remember exactly where the original data came from but it was likely just a zipped list of valid Scrabble words so I think you are correct in your theory that it was not originally compressed in LiveCode, just loaded into the custom property and, unfortunately, was in a form that LiveCode can't decompress on Windows or Linux.
What a great idea from one of the main LC developers! :shock:
And so much for the motherships LC development being Mac-centric.

Re: nseslo ---> lesson (='.'=)

Posted: Fri Aug 24, 2018 12:22 pm
by elanorb
The lesson has been around for a while and I just meant that he can't remember off the top of his head exactly how the compressed list of words was created. He would have been working on a Mac so he wouldn't have picked up on the issue with decompression.

Of course we realise this is not ideal but it has been noted and we will be more aware of checking that our sample stacks work correctly on the supported platforms.

Elanor

Re: nseslo ---> lesson (='.'=)

Posted: Fri Aug 24, 2018 12:27 pm
by Klaus
elanorb wrote: Fri Aug 24, 2018 12:22 pmOf course we realise this is not ideal but it has been noted and we will be more aware of checking that our sample stacks work correctly on the supported platforms.
Hark, hark! :-)

Re: nseslo ---> lesson (='.'=)

Posted: Fri Aug 24, 2018 3:06 pm
by bogs
bogs wrote: Thu Aug 23, 2018 8:44 pm
Klaus wrote: Thu Aug 23, 2018 7:13 pm
bogs wrote: Thu Aug 23, 2018 6:57 pmYes, because comments on the lessons are moderated.
Hmmm, that may take some time... :(
That it might, I have no idea how often they look at those lessons :D
Apparently they look at the submitted comments quite quickly! Thank you Elanor and Ali! It is working now (on Linux), so I suspect it will now work everywhere (I haven't tested Windows, I'll leave that to one of our other intrepid helpers :wink: ).
elanorb wrote: Fri Aug 24, 2018 11:17 am I spoke to Ali, our resident Scrabble enthusiast and original author of the stack and lesson, and he can't remember exactly where the original data came from but it was likely just a zipped list of valid Scrabble words so I think you are correct in your theory that it was not originally compressed in LiveCode, just loaded into the custom property and, unfortunately, was in a form that LiveCode can't decompress on Windows or Linux.
I want to also thank you for going that extra mile, confirmation of my theories is always nice for me, and it should save at least one unnecessary bug report :mrgreen:

Re: nseslo ---> lesson (='.'=)

Posted: Tue Aug 28, 2018 10:11 am
by bogs
bogs wrote: Fri Aug 24, 2018 3:06 pm I suspect it will now work everywhere (I haven't tested Windows, I'll leave that to one of our other intrepid helpers :wink: ).
I wonder if Mariasole (or any of the windows users) ever got around to testing it out :|

Re: nseslo ---> lesson (='.'=)

Posted: Tue Sep 04, 2018 9:13 am
by Mariasole
Hello everyone!
Sorry for the delay in the reply... :cry:
Unfortunately my computer broke (power supply went up in smoke, literally, :shock: damaged motherboard). Fortunately, (thank God), the hard drive has been saved and, after so many ups and downs, here I am again in front of a "clone" of my old PC. :D
I thank everyone for the help!
I went over the page of the lesson, I have downloaded again the stack, and now everything works perfectly on Windows.
Now I can finally understand how it works!

Thanks again!
(='.'=)

Re: nseslo ---> lesson (='.'=)

Posted: Tue Sep 04, 2018 12:54 pm
by bogs
Oooo, sorry to hear your system released the 'magic smoke', but glad to hear all else worked out for you :D