How can I embed Gravatar profiles into http://pharo-project.org/about/contributors ? Laurent On Fri, Aug 13, 2010 at 3:50 AM, Germán Arduino <[hidden email]> wrote: http://en.gravatar.com/germanarduino _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
2010/8/13 laurent laffont <[hidden email]>:
> How can I embed Gravatar profiles > into http://pharo-project.org/about/contributors ? This is quite easy. If you just want to add the images, you have to calculate the md5 hash of the email adress and add a parameter in the URL for the size of the picture. http://fr.gravatar.com/site/implement/images/ If you want to add also the profile, look here: http://fr.gravatar.com/site/implement/profiles/ -- Serge Stinckwich UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam Every DSL ends up being Smalltalk http://doesnotunderstand.org/ _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Fri, Aug 13, 2010 at 8:11 AM, Serge Stinckwich <[hidden email]> wrote: 2010/8/13 laurent laffont <[hidden email]>: Thank you. I will have a look. Hey !!!! No Smalltalk code sample http://fr.gravatar.com/site/implement/ Laurent
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
On Fri, Aug 13, 2010 at 8:28 AM, Adrian Lienhard <[hidden email]> wrote: see http://en.gravatar.com/site/implement/images/ OK it works I added German. Laurent
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
send them the code for pharo :)
Stef On Aug 13, 2010, at 8:18 AM, laurent laffont wrote: > On Fri, Aug 13, 2010 at 8:11 AM, Serge Stinckwich <[hidden email]> wrote: > 2010/8/13 laurent laffont <[hidden email]>: > > How can I embed Gravatar profiles > > into http://pharo-project.org/about/contributors ? > > This is quite easy. If you just want to add the images, you have to > calculate the md5 hash of the email adress and add a parameter in the > URL for the size of the picture. > http://fr.gravatar.com/site/implement/images/ > If you want to add also the profile, look here: > http://fr.gravatar.com/site/implement/profiles/ > > > Thank you. I will have a look. > > > Hey !!!! No Smalltalk code sample http://fr.gravatar.com/site/implement/ > > > Laurent > > > > -- > Serge Stinckwich > UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam > Every DSL ends up being Smalltalk > http://doesnotunderstand.org/ > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Fri, Aug 13, 2010 at 12:55 PM, Stéphane Ducasse <[hidden email]> wrote: send them the code for pharo :) Kata for better code ? (sorry German) |md5 url| md5 := MD5 new hashStream: (ReadStream on: '[hidden email]').
url := String streamContents: [:aStream| aStream nextPutAll: 'http://www.gravatar.com/avatar/'.
md5 do: [:aByte| aStream nextPutAll: aByte hex asLowercase]].
(ImageMorph fromStream: (url asUrl retrieveContents contentStream)) openInWorld. Laurent
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Aug 13, 2010, at 2:03 PM, laurent laffont wrote: > On Fri, Aug 13, 2010 at 12:55 PM, Stéphane Ducasse <[hidden email]> wrote: > send them the code for pharo :) > > > Kata for better code ? (sorry German) > > |md5 url| > md5 := MD5 new hashStream: (ReadStream on: '[hidden email]'). > url := String streamContents: [:aStream| > aStream nextPutAll: 'http://www.gravatar.com/avatar/'. > md5 do: [:aByte| > aStream nextPutAll: aByte hex asLowercase]]. > (ImageMorph fromStream: > (url asUrl retrieveContents contentStream)) openInWorld. > I would not hard code ReadStream > md5 := MD5 new hashStream: '[hidden email]' readStream. > > Laurent > > > > > Stef > > On Aug 13, 2010, at 8:18 AM, laurent laffont wrote: > > > On Fri, Aug 13, 2010 at 8:11 AM, Serge Stinckwich <[hidden email]> wrote: > > 2010/8/13 laurent laffont <[hidden email]>: > > > How can I embed Gravatar profiles > > > into http://pharo-project.org/about/contributors ? > > > > This is quite easy. If you just want to add the images, you have to > > calculate the md5 hash of the email adress and add a parameter in the > > URL for the size of the picture. > > http://fr.gravatar.com/site/implement/images/ > > If you want to add also the profile, look here: > > http://fr.gravatar.com/site/implement/profiles/ > > > > > > Thank you. I will have a look. > > > > > > Hey !!!! No Smalltalk code sample http://fr.gravatar.com/site/implement/ > > > > > > Laurent > > > > > > > > -- > > Serge Stinckwich > > UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam > > Every DSL ends up being Smalltalk > > http://doesnotunderstand.org/ > > > > _______________________________________________ > > Pharo-project mailing list > > [hidden email] > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > > _______________________________________________ > > Pharo-project mailing list > > [hidden email] > > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
2010/8/13 laurent laffont <[hidden email]>:
> On Fri, Aug 13, 2010 at 12:55 PM, Stéphane Ducasse > <[hidden email]> wrote: >> >> send them the code for pharo :) > > > Kata for better code ? (sorry German) hehe, don't worry. Instead 1 million of spam will start receiving 2 millions :) _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by laurent laffont
On 13 Aug 2010, at 14:03, laurent laffont wrote: > On Fri, Aug 13, 2010 at 12:55 PM, Stéphane Ducasse <[hidden email]> wrote: > send them the code for pharo :) > > > Kata for better code ? (sorry German) > > |md5 url| > md5 := MD5 new hashStream: (ReadStream on: '[hidden email]'). > url := String streamContents: [:aStream| > aStream nextPutAll: 'http://www.gravatar.com/avatar/'. > md5 do: [:aByte| > aStream nextPutAll: aByte hex asLowercase]]. > (ImageMorph fromStream: > (url asUrl retrieveContents contentStream)) openInWorld. > > Laurent I really like code that speaks for itself, like this example ! Great, Laurent. It can even be written shorter, like this: | md5 url | md5 := MD5 hashMessage: '[hidden email]'. url := ('http://www.gravatar.com/avatar/', md5 hex) asUrl. (ImageMorph fromStream: url retrieveContents contentStream) openInWorld. Sven _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Fri, Aug 13, 2010 at 5:03 PM, Sven Van Caekenberghe <[hidden email]> wrote:
I was looking for such brevity, cool ! Laurent
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Just sent to Gravatar, hope they will put it. Laurent
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |