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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Klaus
Posts: 13823
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Thu Aug 23, 2018 12:02 pm

FourthWorld wrote:
Thu Aug 23, 2018 11:57 am
To 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...

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Thu Aug 23, 2018 3:55 pm

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.
Image

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7227
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

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

Post by jacque » Thu Aug 23, 2018 6:33 pm

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.
Last edited by jacque on Thu Aug 23, 2018 6:38 pm, edited 1 time in total.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 13823
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » 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

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Thu Aug 23, 2018 6:57 pm

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.
Image

Klaus
Posts: 13823
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Thu Aug 23, 2018 7:13 pm

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

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Thu Aug 23, 2018 8:44 pm

That it might, I have no idea how often they look at those lessons :D
Image

elanorb
Livecode Staff Member
Livecode Staff Member
Posts: 516
Joined: Fri Feb 24, 2006 9:45 am

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

Post by elanorb » Fri Aug 24, 2018 11:17 am

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
Elanor Buchanan
Software Developer
LiveCode

Klaus
Posts: 13823
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Fri Aug 24, 2018 11:34 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.
What a great idea from one of the main LC developers! :shock:
And so much for the motherships LC development being Mac-centric.

elanorb
Livecode Staff Member
Livecode Staff Member
Posts: 516
Joined: Fri Feb 24, 2006 9:45 am

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

Post by elanorb » Fri Aug 24, 2018 12:22 pm

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
Elanor Buchanan
Software Developer
LiveCode

Klaus
Posts: 13823
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Fri Aug 24, 2018 12:27 pm

elanorb wrote:
Fri Aug 24, 2018 12:22 pm
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.
Hark, hark! :-)

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Fri Aug 24, 2018 3:06 pm

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 pm
Yes, 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:
Image

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Tue Aug 28, 2018 10:11 am

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 :|
Image

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

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

Post by Mariasole » Tue Sep 04, 2018 9:13 am

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!
(='.'=)
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Tue Sep 04, 2018 12:54 pm

Oooo, sorry to hear your system released the 'magic smoke', but glad to hear all else worked out for you :D
Image

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”