Live data from Hacker News

Create a Robot Image from any text string

robohash.org

51–60 of 104 posts

Re: Create a Robot Image from any text string

#53
post #32

It would be awesome if http://robohash.org/google.jpg generated a jpg, and http://robohash.org/google.png generated a png. It would be even more awesome if http://robohash.org/favicon.ico generated a .ico file.

Google.jpg does generate a jpg, but it's not the same as google.png; The reason for that is that I'm hashing whatever you send in, including the extension.. Otherwise, if you passed file.txt and file.mp3 they'd come to the same hash.

I realize what you're doing. This was more of a "really cool feature request" than a bug report.

favicon.ico does respond with a 404 though.

Re: Create a Robot Image from any text string

#54

If/when you debut the [robohash] watermark in the image, it would be great if you would also debut a paid plan without the watermark. Plus, paid plans give people confidence that your service will continue to exist.

I think it would be pretty silly to add a paid plan to a weekend project. ;)

I'll only do that, with the watermark, if it goes over what my bottom-rung Linode+CDN can deliver.

Re: Create a Robot Image from any text string

#55
post #51

If I put a % anywhere in the string (except at the end where I think it is ignored) it doesn't give me my robot, but a broken link!

It's doing a URL decode to store them. I think that a % is not valid in a URL..

From http://www.w3.org/Addressing/URL/4_URI_Recommentations.html-

The percent sign ("%", ASCII 25 hex) is used as the escape character in the encoding scheme and is never allowed for anything else.

I'll try to see why it's not converting it after work.

Re: Create a Robot Image from any text string

#56

I like it but shouldn't it do similarity instead of producing a unique bot? For example, "similar" strings should produce similar bots.

I'm generating the bots by reading the bits from a SHA1 hash, so they won't be very similar on an english-text level.

Re: Create a Robot Image from any text string

#58
post #57

if you go to http://static1.robohash.com/ you get the same page as http://robohash.org/ but the IP used is not my IP. nice project though. :)

Static1.robohash.com goes through the CDN.. If you load a PNG through there, it's cached. I wouldn't do the whole site through there, though, or you'll get the CDN's IP!

Re: Create a Robot Image from any text string

#59
post #2

Morning, I created this as an extended-weekend project, after realizing that I'd need these hashes as a part of larger project I'm working on. Basically, Text goes in, Picture of a Robot comes out. Where I'm using this is sort of like an identicon, to help quickly identify a poster's 4096-bit public keys, and see if you're talking to the same man. Is it perfect? No, but it's a quick visual guide to any text, in the f…

This is extremely well done.

But incidentally:

see if you're talking to the same man

comes across a bit odd, seeing as lately a few women and children have been reported using IP addresses.

Re: Create a Robot Image from any text string

#60
post #59
post #2

Morning, I created this as an extended-weekend project, after realizing that I'd need these hashes as a part of larger project I'm working on. Basically, Text goes in, Picture of a Robot comes out. Where I'm using this is sort of like an identicon, to help quickly identify a poster's 4096-bit public keys, and see if you're talking to the same man. Is it perfect? No, but it's a quick visual guide to any text, in the f…

This is extremely well done. But incidentally: see if you're talking to the same man comes across a bit odd, seeing as lately a few women and children have been reported using IP addresses.

Sorry, too late to edit the comment now, HN won't let me anymore. I was using man generically, not specifically. Mankind, if you will.

s/man/person

Post reply on HN