Rendered at 20:31:43 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
jlundberg 2 days ago [-]
Thx for a good read!
Uncompressed ZIP files are a bit of an underappreciated container format.
Fetching individual files from a big ZIP file even works over HTTP when the http server support range requests.
pwdisswordfishq 1 days ago [-]
I actually did that a few times on gigabyte-sized ZIP files from the Internet Archive.
guipsp 2 days ago [-]
Well, you still have to find the zip header no?
tredre3 2 days ago [-]
HTTP supports negative ranges, so you can request the final 64KB and scan it. If you don't find the Central Directory (unlikely unless the zip contains 10k files and/or lots of comments) then you just request another 64KB.
sltkr 2 days ago [-]
Note that the end-of-central-directory record at the end of the file contains the size and offset of the central directory, so if the central directory is not in the final 64 KiB you already have, you know exactly which range you need to request to get it (i.e. you don't need to keep scanning backwards 64 KiB at a time).
2 days ago [-]
2 days ago [-]
ebb_earl_co 2 days ago [-]
I have been a software developer for ten years, enthusiast for 20 years, and am “the computer guy” to my family and friends. However, when I read through something like this, it really feels that my knowledge of computing is ε away from 0…
2 days ago [-]
dmit 2 days ago [-]
Wait 'til you find out the shenanigans one can do with RAR files!
ZIP isn't as flexible, but someone wrote a zip file quine - it decompresses to an exact copy of itself.
ZephyrP 2 days ago [-]
i attempted to certify an implementation of Keccak/SHA3 inside a RAR file [https://github.com/zv/SHA3ImplementedInsideofaRARfile] through formal procedures available to the public. The powers that be weren't ready for it.
Grimeton 2 days ago [-]
"Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should."
-- Dr. Ian Malcolm
pwdisswordfishq 1 days ago [-]
Why do people bring up this quote in cases of innocuous, potentially even useful fun like this, but never to criticise actually harmful things like AI slop generators?
Uncompressed ZIP files are a bit of an underappreciated container format.
Fetching individual files from a big ZIP file even works over HTTP when the http server support range requests.
https://blog.cmpxchg8b.com/2012/09/fun-with-constrained-prog...
-- Dr. Ian Malcolm