Just a little method to get an url to a public avatar image from gravatar.com. readonly static MD5CryptoServiceProvider _md5 = new MD5CryptoServiceProvider(); static Uri GetGravatar(string email) { const string uriFormat = “http://www.gravatar.com/avatar/{0}.jpg”; StringBuilder sb = new StringBuilder(); foreach(byte ch in _md5.ComputeHash( Encoding.ASCII.GetBytes(email.Trim().ToLowerInvariant()) )) sb.AppendFormat(“{0:x2}”, ch); return new Uri(string.Format(uriFormat, sb.ToString())); }
About
Klinkby
- Failed to get a glimpse of @MedinaMusic through a swarm of 30.000 drunk teens in #Tivoli - twitted 1 week ago
- .@SPSaturday_CPH is awfully quiet, I'm wondering (hoping) if there will be a #spscph this year? /cc: @sharepointdk @jesperpersson @meikdk - twitted 1 week ago
- Danish minister of justice won't answer if #NemId is a backdoor to citizen's computers ft.dk/samling/20111/… @smbrix #dkpol #stasi - twitted 2 weeks ago
- Hey birch get outta my face astma-allergi.dk/detlavervi/dag… #achoo - twitted 2 weeks ago
-
Top Posts
Tag Cloud
-
Bookmarked