I spent the better part of the yesterday afternoon trying to figure out why I was getting different results when using GzipWriter
versus using Zlib::deflate
and putting my own headers on it. Lo and behold while both gzip and zlib use DEFLATE
Ruby is fun. Ruby is sexy. But Ruby doesn't do underlying bytes as nice as I'd like. But Knowles, whatever do you mean?
Consider the following, I have a file with contents:
If I tell you nothing else about the file, what can you infer? Well it's probably hex, but maybe it's ascii. If you read this file in Ruby and print it out...