{"id":1383,"date":"2011-08-17T16:00:56","date_gmt":"2011-08-17T23:00:56","guid":{"rendered":"https:\/\/www.reenigne.org\/blog\/?p=1383"},"modified":"2011-08-11T17:11:52","modified_gmt":"2011-08-12T00:11:52","slug":"checksum-utility","status":"publish","type":"post","link":"https:\/\/www.reenigne.org\/blog\/checksum-utility\/","title":{"rendered":"Checksum utility"},"content":{"rendered":"<p>I couldn't find a good <a href=\"http:\/\/www.reenigne.org\/computer\/software\/crc32.exe\">CRC32 checksum utility<\/a> that properly handled wildcards, so I wrote my own.<\/p>\n<p>I actually first wrote this a very long time ago using <a href=\"http:\/\/www.delorie.com\/djgpp\/\">DJGPP<\/a>. Actually, thinking about it it might have been the first 32-bit program I ever wrote. That compiler made it very easy because the command-line handling did the directory recursion for me (though it did mean you had to use the awkward syntax \"crc32 ...\\*\" instead of \"crc32 *\" or \"crc32 .\". However, 64-bit Windows won't run DOS programs so it needed a rewrite, and once I had completed the filesystem routines I <a href=\"https:\/\/www.reenigne.org\/blog\/run-a-random-file\">mentioned before<\/a> it was just as easy.<\/p>\n<p>This program is very handy for comparing contents of large directories across machines (\"windiff -T\" would copy everything across the network so would take forever.) Just run it on the two directories locally and compare the output.<\/p>\n<p>I used to use this for weekly backups of my machine. It's nice to see exactly what's changed since the last backup so I can delete the backup files made by my text editor and anything else I didn't really mean to keep. Nowadays I use rsync to a Linux machine which amounts to something very similar but more automatically.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I couldn't find a good CRC32 checksum utility that properly handled wildcards, so I wrote my own. I actually first wrote this a very long time ago using DJGPP. Actually, thinking about it it might have been the first 32-bit program I ever wrote. That compiler made it very easy because the command-line handling did [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1383","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/comments?post=1383"}],"version-history":[{"count":2,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1383\/revisions"}],"predecessor-version":[{"id":1388,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/posts\/1383\/revisions\/1388"}],"wp:attachment":[{"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/media?parent=1383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/categories?post=1383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reenigne.org\/blog\/wp-json\/wp\/v2\/tags?post=1383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}