Kara-Moon Forum

Developers & Technology => Musical MIDI Accompaniment (MMA) => Topic started by: bvdp on November 02, 2013, 06:10:15 PM



Title: SHA1 checksums now on site
Post by: bvdp on November 02, 2013, 06:10:15 PM
I had one reported corrupt file on my website. I really don't know if there are others. The pdf docs for mma were corrupt and I've uploaded a new (correct) copy.

I have updated my website-creation software script to calculate a SHA1 checksum for each downloadable file. It's printed right below the filename. To verify, just run a sha1 checker against the file. On linux, you just (from a command line): sha1sum <file>. For Windows: http://support.microsoft.com/kb/889768 and Mac: http://osxdaily.com/2009/10/13/check-md5-hash-on-your-mac/  should get you started.


Title: Re: SHA1 checksums now on site
Post by: bvdp on November 03, 2013, 12:29:21 AM
And, to add insult to injury, the files I thought were bad were just fine. For those who "need to know", my web host has a option to enable apache compression. The call it "Optimize Website".  It just sets a flag in apache's  mod_deflate modules. There are 3 options:

   - Disabled
   - Compress all content
   - Compress the specified MIME types

I had selected the 2nd option which compressed all content. Now, this should work. But it doesn't. I think it might be an apache bug, but I don't want to wander down that path ... life is too short!

But, with the option enabled all my .gz files were screwed up. I changed the option to "MIME" and now just html and text files are compressed.

If nothing else, it was a nice way to while away time on a rainy day (which we've had here today). And, the site does have sha1 checksums too ... I'll leave them if for no other reason than they look like I know what I'm doing!


Title: Re: SHA1 checksums now on site
Post by: folderol on November 03, 2013, 07:14:27 PM
We already know that you know what you're doing Bob. The 'others' probably think a checksum is the amount you write at the bottom of a paying in slip ;D


Title: Re: SHA1 checksums now on site
Post by: bvdp on November 03, 2013, 09:17:38 PM
Actually, most of the time I have no idea of what I'm doing. I just keep trying and if it seems to be working, I stop ... sometimes ... othertimes I keep on and screw it up again.