[Pharo-project] Gravatar and Website (was little pictures of you )
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 <garduino@gmail.com> wrote:
http://en.gravatar.com/germanarduino
2010/8/12 Ramiro Diaz Trepat <ramiro@diaztrepat.name>:
http://en.gravatar.com/ramirodt
2010/8/12 laurent laffont <laurent.laffont@gmail.com>
I'm tired of creating accounts everywhere :( Laurent
On Thu, Aug 12, 2010 at 8:38 AM, Serge Stinckwich <serge.stinckwich@gmail.com> wrote:
2010/8/12 Peter Hugosson-Miller <oldmanlink@gmail.com>:
Looks simple enough :-)
Cool !
What is interesting is that they provide an API to include the images in a website.
-- Serge Stinckwich UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam Every DSL ends up being Smalltalk http://doesnotunderstand.org/
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- ================================================= Germán S. Arduino <gsa @ arsol.net> Twitter: garduino Arduino Software & Web Hosting http://www.arduinosoftware.com PasswordsPro http://www.passwordspro.com =================================================
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
2010/8/13 laurent laffont <laurent.laffont@gmail.com>:
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/
On Fri, Aug 13, 2010 at 8:11 AM, Serge Stinckwich < serge.stinckwich@gmail.com> wrote:
2010/8/13 laurent laffont <laurent.laffont@gmail.com>:
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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
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 <serge.stinckwich@gmail.com> wrote: 2010/8/13 laurent laffont <laurent.laffont@gmail.com>:
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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
On Fri, Aug 13, 2010 at 12:55 PM, Stéphane Ducasse < stephane.ducasse@inria.fr> wrote:
send them the code for pharo :)
Kata for better code ? (sorry German) |md5 url| md5 := MD5 new hashStream: (ReadStream on: 'gsa@arsol.net'). 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
Stef
On Aug 13, 2010, at 8:18 AM, laurent laffont wrote:
On Fri, Aug 13, 2010 at 8:11 AM, Serge Stinckwich < serge.stinckwich@gmail.com> wrote: 2010/8/13 laurent laffont <laurent.laffont@gmail.com>:
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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr 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 <stephane.ducasse@inria.fr> wrote: send them the code for pharo :)
Kata for better code ? (sorry German)
|md5 url| md5 := MD5 new hashStream: (ReadStream on: 'gsa@arsol.net'). 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: 'gsa@arsol.net' 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 <serge.stinckwich@gmail.com> wrote: 2010/8/13 laurent laffont <laurent.laffont@gmail.com>:
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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
2010/8/13 laurent laffont <laurent.laffont@gmail.com>:
On Fri, Aug 13, 2010 at 12:55 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> 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 :)
On 13 Aug 2010, at 14:03, laurent laffont wrote:
On Fri, Aug 13, 2010 at 12:55 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote: send them the code for pharo :)
Kata for better code ? (sorry German)
|md5 url| md5 := MD5 new hashStream: (ReadStream on: 'gsa@arsol.net'). 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: 'gsa@arsol.net'. url := ('http://www.gravatar.com/avatar/', md5 hex) asUrl. (ImageMorph fromStream: url retrieveContents contentStream) openInWorld. Sven
On Fri, Aug 13, 2010 at 5:03 PM, Sven Van Caekenberghe <sven@beta9.be>wrote:
On 13 Aug 2010, at 14:03, laurent laffont wrote:
On Fri, Aug 13, 2010 at 12:55 PM, Stéphane Ducasse < stephane.ducasse@inria.fr> wrote: send them the code for pharo :)
Kata for better code ? (sorry German)
|md5 url| md5 := MD5 new hashStream: (ReadStream on: 'gsa@arsol.net'). 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: 'gsa@arsol.net'. url := ('http://www.gravatar.com/avatar/', md5 hex) asUrl. (ImageMorph fromStream: url retrieveContents contentStream) openInWorld.
I was looking for such brevity, cool ! Laurent
Sven
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Kata for better code ? (sorry German)
|md5 url| md5 := MD5 new hashStream: (ReadStream on: 'gsa@arsol.net'). 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: 'gsa@arsol.net'. url := ('http://www.gravatar.com/avatar/', md5 hex) asUrl. (ImageMorph fromStream: url retrieveContents contentStream) openInWorld.
Just sent to Gravatar, hope they will put it. Laurent
I was looking for such brevity, cool !
Laurent
Sven
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (5)
-
Germán Arduino -
laurent laffont -
Serge Stinckwich -
Stéphane Ducasse -
Sven Van Caekenberghe