Page 1 of 1
Embedded Stats
Posted: Mon Oct 13, 2008 4:48 pm
by Huggz
Is there any way to embed my project euler stats into another page, for the primary purpose of displaying how geeky I am? Manually entering them and updating doesn't count

I'm looking for auto updating display of the number of problems I've solved, my current rank, current performance ect.
Re: Embedded Stats
Posted: Mon Oct 20, 2008 11:30 am
by traviscj
I'd really like something like this too. Even just a page to link to that I could regex around a little bit or some special address to access my profile page would be really cool.
Re: Embedded Stats
Posted: Wed Oct 22, 2008 4:16 pm
by Helen
I noticed that there is a URL to access a particular person's profile page, but profiles are only available to logged-in users. It could be useful if there was an option to make one's own profile available to guests.
For embedding, I've seen that done in some online games, where they provide an easy-to-parse plaintext version of the profile as well as the regular one.
Re: Embedded Stats
Posted: Sun Oct 26, 2008 2:48 pm
by 3n1gm4
Do you have GD lib support here?!? (i think only euler can answer this question)
Re: Embedded Stats
Posted: Sun Oct 26, 2008 5:38 pm
by euler
Yes, it is installed: 2.0.28 compatible with FreeType 2.2.1 and full image support enabled. I can see that dynamic images could be the way to go, but I must confess that I have no experience with using the library.
Re: Embedded Stats
Posted: Tue Oct 28, 2008 12:48 pm
by 3n1gm4
I played with them a little. I've just seen there is an interesting lib that could make the job easier:
http://graphpite.sourceforge.net/
Re: Embedded Stats
Posted: Wed Oct 29, 2008 8:31 pm
by 3n1gm4
This is a "spoiler" of what could it be like:
Note that:
I did not used GraPHPite yet, I don know what and how to plot it, only the performance bar?
Anyway if you like it how it is now all things you need is
here
* If you did not understand, the cool part is the url. Just try to go to
http://www.nigma.be/pe/whatever.png and it will render a fake stats of the
whatever user

Re: Embedded Stats
Posted: Wed Oct 29, 2008 9:25 pm
by elendiastarman
Oh man! That's so cool!

Refreshing the page displays different stats...

I think this is a great idea overall...
Re: Embedded Stats
Posted: Wed Oct 29, 2008 9:46 pm
by 3n1gm4
elendiastarman wrote:Oh man! That's so cool!

Refreshing the page displays different stats...

I think this is a great idea overall...
I said they are all random (except the username)

I actually don't have that data (I did not write something that goes and get it from the site either

)
Anyway it is just a demo of the potential, a better graphic is a must

Re: Embedded Stats
Posted: Thu Oct 30, 2008 10:15 pm
by euler
That is very clever, 3n1gm4. In addition to me, I suspect that many members will be very grateful for your help here. When I get some time I'll have a play and look at implementing it. Many thanks.
Re: Embedded Stats
Posted: Thu Oct 30, 2008 11:35 pm
by 3n1gm4
euler wrote:That is very clever, 3n1gm4. In addition to me, I suspect that many members will be very grateful for your help here. When I get some time I'll have a play and look at implementing it. Many thanks.
It was a pleasure
PS: Don't be scared looking at my code, writing on images is pretty simple, I just did an unsuccessful try to write things centered, anyway feel free to contact me if you need any help with it
