Gravatar and Website (was little pictures of you )

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Gravatar and Website (was little pictures of you )

laurent laffont
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

2010/8/12 Ramiro Diaz Trepat <[hidden email]>:
> http://en.gravatar.com/ramirodt
>
>
>
> 2010/8/12 laurent laffont <[hidden email]>
>>
>> I'm tired of creating accounts everywhere :(
>> Laurent
>>
>> On Thu, Aug 12, 2010 at 8:38 AM, Serge Stinckwich
>> <[hidden email]> wrote:
>>>
>>> 2010/8/12 Peter Hugosson-Miller <[hidden email]>:
>>> > Looks simple enough :-)
>>> >
>>> > http://gravatar.com/oldmanlink
>>>
>>> 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
>>> [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
>



--
=================================================
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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Gravatar and Website (was little pictures of you )

SergeStinckwich
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
Reply | Threaded
Open this post in threaded view
|

Re: Gravatar and Website (was little pictures of you )

laurent laffont
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
Reply | Threaded
Open this post in threaded view
|

Re: Gravatar and Website (was little pictures of you )

laurent laffont
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/

I've added an example of how to embed images easily in Cmsbox, but didn't publish


OK it works I added German.

Laurent

 

Adrian
___________________
http://www.adrian-lienhard.ch/

On Aug 13, 2010, at 08:04 , laurent laffont wrote:

> 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
>>
>> 2010/8/12 Ramiro Diaz Trepat <[hidden email]>:
>>> http://en.gravatar.com/ramirodt
>>>
>>>
>>>
>>> 2010/8/12 laurent laffont <[hidden email]>
>>>>
>>>> I'm tired of creating accounts everywhere :(
>>>> Laurent
>>>>
>>>> On Thu, Aug 12, 2010 at 8:38 AM, Serge Stinckwich
>>>> <[hidden email]> wrote:
>>>>>
>>>>> 2010/8/12 Peter Hugosson-Miller <[hidden email]>:
>>>>>> Looks simple enough :-)
>>>>>>
>>>>>> http://gravatar.com/oldmanlink
>>>>>
>>>>> 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
>>>>> [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
>>>
>>
>>
>>
>> --
>> =================================================
>> 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
>> [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
Reply | Threaded
Open this post in threaded view
|

Re: Gravatar and Website (was little pictures of you )

Stéphane Ducasse
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
Reply | Threaded
Open this post in threaded view
|

Re: Gravatar and Website (was little pictures of you )

laurent laffont
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


 

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
Reply | Threaded
Open this post in threaded view
|

Re: Gravatar and Website (was little pictures of you )

Stéphane Ducasse

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
Reply | Threaded
Open this post in threaded view
|

Re: Gravatar and Website (was little pictures of you )

garduino
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
Reply | Threaded
Open this post in threaded view
|

Re: [SPAM] Re: Gravatar and Website (was little pictures of you )

Sven Van Caekenberghe
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
Reply | Threaded
Open this post in threaded view
|

Re: [SPAM] Re: Gravatar and Website (was little pictures of you )

laurent laffont

On Fri, Aug 13, 2010 at 5:03 PM, Sven Van Caekenberghe <[hidden email]> wrote:

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.




I was looking for such brevity, cool !

Laurent




 

Sven


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: [SPAM] Re: Gravatar and Website (was little pictures of you )

laurent laffont
> 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.



Just sent to Gravatar, hope they will put it.

Laurent




 


I was looking for such brevity, cool !

Laurent




 

Sven


_______________________________________________
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