Identicons for Community Server
2007-01-23 | Community Server CarKnee BundleJeff 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
2007-01-24T02:02:17.0000000Z
Look at my Identicon...
2007-01-24T05:36:46.0000000Z
Same here
2007-01-24T08:32:19.0000000Z
I want an identicon, too!!!
2007-01-25T08:30:33.0000000Z
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.
2007-01-25T22:22:42.0000000Z
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
2007-01-26T17:02:23.0000000Z
[;)] Yeah, it works much better now. Thanks Sean.
2007-01-26T22:21:56.0000000Z
For people who do not run CS in the root, the file has been fixed.
2007-01-27T11:25:20.0000000Z
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).
2007-01-27T12:52:20.0000000Z
Thanks Jeff. I was thinking the same thing earlier.