Identicons for Community Server

Community Server , CarKnee Bundle

Jeff Atwood posted up a C# implementation of Identicons the other day. While I do not see them being all that useful, they are pretty neat. I whipped up a little Community Server Add-on that can display an Identicon.

The code is more or less right from Jeff; I modified image caching to use Community Server caching rather than the straight up HttpRuntime Cache.

I currently use this as a replacement link for the comments permalink in my blog (it used to use '#'). To see an example of these in action, just make a comment on this blog post. Once your comment appears you should have your unique Identicon!

This Community Server Add-On is packaged up into the CarKnee Bundle.

Comments

Avatar of Sean Kearney

Sean Kearney

Thanks Jeff. I was thinking the same thing earlier.

Avatar of Jeff Atwood

Jeff Atwood

Very nice! I do think you should go for a larger size, though..16x16 is just so very small. 32x32 is only about 100-200 bytes more data (PNG compressed).

Avatar of Sean Kearney

Sean Kearney

For people who do not run CS in the root, the file has been fixed.

Avatar of Thomas Freudenberg

Thomas Freudenberg

[;)] Yeah, it works much better now. Thanks Sean.

Avatar of Sean Kearney

Sean Kearney

Thomas, That is what happens when you make a change as your walking out the door. lol. I put up a fresh copy this morning that should take care of the bug. Thanks, Sean

Avatar of Thomas Freudenberg

Thomas Freudenberg

Sean, nice work. However, I tried to add it to my site, but couldn't get it working. The value of the img's src is always "/". Inspecting your assembly with Reflector, I noticed that the result of String.Format is never used.

Avatar of Dave Burke

Dave Burke

I want an identicon, too!!!

Avatar of Styx31

Styx31

Same here

Avatar of Sean Kearney

Sean Kearney

Look at my Identicon...