Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[Fucking stupid] Bad programming ideas [WTF]

Name: Anonymous 2008-04-28 16:29

Here's a thread where you can post retarded software/programming related ideas you read or saw on the internets. Retarded code from ENTERPRISE is fine too, but please don't turn this into “Retards writing Java” thread. You can think of it as /prog/'s own DailyWTF, only with less Java programmers and people laughing at stuff that they really don't understand. I'll start with a post from /a/:

I have been thinking about a P2P client which requests bytes from people who may not necessarily have the file they're downloading, but they have those specific bytes (which may be from another file), and the P2P client is designed to request the closed peer with those bytes, despite not having the file. So, it wouldn't matter if a torrent was dead, you'd just have to search other peers for those specific bytes.

It would have to be some sort of index of hashes of those bytes which would determine who sent them...


Name: Anonymous 2008-04-29 4:56

Oh great, we just found a way to build a 700MB file from its 128b hash (who uses SHA-1 anyway?). From the master has, you can build the sub-hashes you want (hash->bytes, 1st pass). For each of the sub-hashes, you can find sub-sub-hashes, which will in turn allow to find more hashes.
After enough iterations, you have enough hashes to build the entire file and you only downloaded 128b and used a few CPU cyles (much less than a bruteforcing the algorithm, which would also be a viable solution).

GREAT

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List