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

Unique IDs for sorting images

Name: Anonymous 2009-09-14 3:51

I've got a problem. I been using MD5 hash as the name for images, but it's too damn long. What would you guys suggest as a shorter alternative solution?

Name: Anonymous 2009-09-14 19:17

>>37
But.. you're wrong. Unix time is only 10 characters. Filenames on 4chan are 13 chars because the last 3 chars are there in case two files are uploaded at the same time.

Name: Anonymous 2009-09-14 19:56

just a simple increment.  That's all you need.

Name: Anonymous 2009-09-14 20:06

Use the full contents of the file as an ID.

Name: Anonymous 2009-09-15 18:51

>>43
Some sort of reversible AND unique hash?
BRILLIANT!

Name: Anonymous 2009-09-15 20:04

>>41
I always assumed the last three numbers were milliseconds.

Name: Anonymous 2009-09-15 21:19

the number of bytes in the file converted to base36

Name: Anonymous 2009-09-15 21:23

>>46
actually, why not just use MD5 instead?
assuming you're using a hex string representation of the hash value, converting that to base 36 effectively halves its length.

Name: Anonymous 2009-09-16 0:16

>>47
Why use a string representation at all?

Name: Anonymous 2009-09-16 1:00

>>48
because most OS's won't let you use something like öÕöw—éçæAÞê¿ê in a file name

Name: Anonymous 2009-09-16 2:10

>>49
Insomuch that most OS's don't have a file system at all. But the ones that do, including all the most popular desktop and server OS's, tend to be permissive to a fault, requiring you only to escape somewhere between one and a dozen control characters.

Name: Anonymous 2010-12-26 17:11

Name: Anonymous 2011-02-03 0:04

<

Name: Anonymous 2011-02-03 4:54


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