Really the "magic smoke"!
You should have seen the smoke coming out of my ears!
Grazie Bogs, sei un tesoro!
(='.'=)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Really the "magic smoke"!
Code: Select all
set the uAllWords of stack "newTest" to the uAllWords of stack "workingWindowsSampleStack"
That answer is a few posts back, Elanor answered it after I left a comment on the lesson page.FourthWorld wrote: ↑Tue Oct 02, 2018 6:32 pmIt appears the data in the custom prop was not compressed with a standard gzip algo. Where did it come from? Can we examine it to check that?
Thanks. Hunch correct, original data already fixed. Good outcomes.bogs wrote: ↑Tue Oct 02, 2018 8:32 pmThat answer is a few posts back, Elanor answered it after I left a comment on the lesson page.FourthWorld wrote: ↑Tue Oct 02, 2018 6:32 pmIt appears the data in the custom prop was not compressed with a standard gzip algo. Where did it come from? Can we examine it to check that?
Code: Select all
on mouseup
answer file "Cara Maria, please select the uncompressed text file with all your custom words:"
if it = EMPTY then
exit mouseup
end if
## Now import...
put url("file:" & it) into tWords
## ...and compress the file...
put compress(tWords) into tWordsCompressed
## ...into a custom property:
set the uAllWords of this stack to tWordsCompressed
end mouseup
Erm, um, ah,....
Code: Select all
on preOpenCard
-- Fetch the compressed list of words and decompress it
local tWords
put decompress(the uAllWords of this stack) into url "file:/tWords.text" --tWords
// in the line above, after your list of words is exported, remove {url "file:/tWords.text" -- }
from before tWords so that the program runs normally again...
Code: Select all
put decompress(the uAllWords of this stack)
Probably because we don't know a file is problematic until someone trying to use it lets us know.
How would you require it? Only if your posting to the lessons page? Posting in the forums? Posting anywhere you might post a demo stack?Why we are not requiring that developers
post the MD5, SHA1 or SHA256 of problematic files downloaded
from the web?
I think your alright now, so you shouldn't wait nearly so long
*Edit - I should have mentioned they are pretty easy to generate as well for internal parts of your application. Max's Wiki has a pretty good breakdown on the topicVerifying the integrity of messages and files
Main article: File verification
An important application of secure hashes is verification of message integrity. Comparing message digests (hash digests over the message) calculated before, and after, transmission can determine whether any changes have been made to the message or file.
MD5, SHA1, or SHA2 hash digests are sometimes published on websites or forums to allow verification of integrity for downloaded files, including files retrieved using file sharing such as mirroring. This practice establishes a chain of trust so long as the hashes are posted on a site authenticated by HTTPS. Using a cryptographic hash and a chain of trust prevents malicious changes to the file to go undetected. Other error detecting codes such as cyclic redundancy checks only prevent against non-malicious alterations of the file.