Author

Topic: Miner Data [API] Dynamic Avatar's (and signature images) .png (Read 2638 times)

hero member
Activity: 560
Merit: 500
Just wanted to poke this thread back to the top.
Possibly thinking about going back and tweaking this script a little bit.
hero member
Activity: 560
Merit: 500
About to start development on MySQL registration so Avatar & Signature API calls only need to be called once per 60 seconds (or caching time).
I may also set it up so users can pay say, 0.01BTC/mo to allow their images to be cached for any time-frame (from 10 seconds up to 24hours, as that's when the /day/flush will occur).
Might make it 1BTC (for life) to be able to setup the time-frame deal.

My first current project is getting a namecoin domain.
At the same time, I'm coding the code generator page which will be able to integrate into the new MySQL registration system I'll be working on (as I said before, domain first Smiley).

[edit]: Check first post!
hero member
Activity: 560
Merit: 500
That does sound like a fun idea  Cheesy
I'd like to be the rebel and use sqlite for small projects like this.
I will put that idea on the back-burner for now.

I'm currently trying to figure out how to automatically size the signatures width based on the length of text.
Only problem with that is:
I have to use an image as a background, Place text on it, Use imagettftext() to check the text width, Create a new image based on the width of imagettftext(), discard the old image, write the text on the new image, then cache it.

It's not impossible, just takes more processing than I want to use in code right now.

As far as the .gif idea,
I haven't done .gif's so I'd really be interested in looking into it.

My only fear right now is XSS/SQL Injects. I've got a lot of friends that don't like me, and they are eager to see me mess up my code.
So, if I were to do what you're thinking, I'd like to get off the http://tgservers.com/ domain. Wink
newbie
Activity: 29
Merit: 0
Only other idea I had, which would require a simple page on your site/mysql backend.
If people mined on several sites, they could enter all their API's on your site, it would produce a single link and be displayed in animated .gif where it would display info on a 5 sec rotation.

However I'm assuming coding the animated .gif would be a bit of a nightmare!
hero member
Activity: 560
Merit: 500
Tip sent.. not much i'm afraid, but it's what I had left after my other transactions.
Keep up the good work!
Thank you and I shall!
If you have any more ideas, let me know. Smiley
newbie
Activity: 29
Merit: 0
Tip sent.. not much i'm afraid, but it's what I had left after my other transactions.
Keep up the good work!
hero member
Activity: 560
Merit: 500
Aah yes, it's dropped down now, looks to be evening itself out.

Happy to drop over a small tip as thanks (once my BTC withdrawal goes through), got a payment address I can drop something off to?
Glad your happy with it Smiley
Also, you should be able to notice the current minors of total miners.

You can send anything you like to:
1AvTdTT6i5WswL2xtLh1HWBHWc1toGMzZv
newbie
Activity: 29
Merit: 0
Aah yes, it's dropped down now, looks to be evening itself out.

Happy to drop over a small tip as thanks (once my BTC withdrawal goes through), got a payment address I can drop something off to?
hero member
Activity: 560
Merit: 500
Awesome :-)
Although bitclockers is only estimating me at 1195.2 MHash (and it's actually closer to 1000 MHash from my terminal stats).
Avatar is showing current at 1992. Calculation issue?
(only 3 out of the 6 miners are being used at the moment)
I didn't think about checking if only some of the workers were in use (I'll go fix that here in a few).
As far as the calculation, it goes to what the API is getting.
I re-cache the images every 60seconds, but it's up to the API to keep the data up-to-date.
newbie
Activity: 29
Merit: 0
Awesome :-)
Although bitclockers is only estimating me at 1195.2 MHash (and it's actually closer to 1000 MHash from my terminal stats).
Avatar is showing current at 1992. Calculation issue?
(only 3 out of the 6 miners are being used at the moment)
hero member
Activity: 560
Merit: 500
Good work :-)
Would be interested in that avatar stat for bitclockers.

Code:
http://dev.tgservers.com/bitcoin_avatar/bitclockers.com/000000/8856fdeca579e4fa4dece1ad08a2f7af.png
http://dev.tgservers.com/bitcoin_avatar/bitclockers.com/hexcolor/api.png

There you go. Smiley
newbie
Activity: 29
Merit: 0
Good work :-)
Would be interested in that avatar stat for bitclockers.
hero member
Activity: 560
Merit: 500
Roadmap (A.K.A. Random Things that Need to be Done!)
Ping the host before the API call and determine if it's even plausible to get the API so in the event the ping takes longer than 5-10 seconds, the script doesn't error our (30 sec max execution) and not even show an image.

Finish Code Generator (will have to make one for signatures & one for avatars) @ ( http://dev.tgservers.com/bitcoin/generator.php )

Registration/Login for Multi -Site & -Type; also would save on API calls. Will help me get started with GIF support.

Looking for 3BTC to get a .bit domain. If anyone feels like donating, read the first post on this thread.


{Never Ending}: Add support for more sites (please request them in the thread).
hero member
Activity: 560
Merit: 500
Change Log
15 June 2011 @ 7:30AM
+ Finally got a good start on the Generate Page ( http://dev.tgservers.com/bitcoin/generator.php ).

14 June 2011 @ 7:30AM
~ When API isn't reachable it showed [ERR]: API Unreachable which didn't fully show. It will now show [API]: Unreachable.

14 June 2011 @ 7:30AM
~ Under Signature ["content"], changed numb_workers to miners. (numb_workers won't be removed from the script, but may once I go through and clean up).
~ Avatar Detentions changed from 150x150 to 150x80. [Forgot to put this as an update when I did it]

14 June 2011 @ 5:20AM
~ # Workers (Added Online over Total) [Thanks to Tunes0710 for the idea.]

14 June 2011 @ 3:30AM
+ Added support for bitclockers.com
~ Modified API Call for Avatar's to use only 1 API call per new image instead of 2.
~ Modified Error String.
~ Modified Caching Method to support Multiple Images w/ Different Colors.

14 June 2011 @ 1AM
+ Added Avatar Support

<14 June 2011
+ Added BTCguild.com support
~ Modified Caching Method (60sec)
hero member
Activity: 560
Merit: 500
Update (15 June 2011)
Keep looking at this new domain and already have the name I want to get; just need to get 3BTC.
Maybe if I can get people to donate towards the the domain I could list your name on the new site once it's up (thinking about starting the site anyways and worry about the domain later).

The site will have a Donators tab (clearly noticeable) with the list of people who contributed to the project (at the top will be the people who contributed to the projects first 3BTC to get the site going).

Username - Amount Donated - Donation Address

Username can be Anonymous upon request.
Donation Address is optional and can be updated via PM.

[-Current Donaters-]
Tunes0710 - Unmentioned until permission from Tunes0710 - -


Donations can be made to 1L8yDpPn6xDiKKmV3QDRBBxjHmHCTJD9Ny
____________________________________________________________________________

Signature Sets


Code:
http://dev.tgservers.com/bitcoin/deepbit.net/000000/hashs/4df1073e8161972519000008_C6AC07F2B3.png
http://dev.tgservers.com/bitcoin/deepbit.net/000000/miners/4df1073e8161972519000008_C6AC07F2B3.png



Code:
http://dev.tgservers.com/bitcoin/btcguild.com/000000/hashs/51192bf18b0d707d67fbe386b6322e80.png
http://dev.tgservers.com/bitcoin/btcguild.com/000000/miners/51192bf18b0d707d67fbe386b6322e80.png



Code:
http://dev.tgservers.com/bitcoin/bitclockers.com/000000/hashs/8856fdeca579e4fa4dece1ad08a2f7af.png
http://dev.tgservers.com/bitcoin/bitclockers.com/000000/miners/8856fdeca579e4fa4dece1ad08a2f7af.png

Avatar Sets

Code:
http://dev.tgservers.com/bitcoin_avatar/deepbit.net/000000/4df1073e8161972519000008_C6AC07F2B3.png


Code:
http://dev.tgservers.com/bitcoin_avatar/btcguild.com/000000/51192bf18b0d707d67fbe386b6322e80.png


Code:
http://dev.tgservers.com/bitcoin_avatar/bitclockers.com/000000/8856fdeca579e4fa4dece1ad08a2f7af.png

Syntax
Signature (250x18)
http://dev.tgservers.com/bitcoin/site/hexcolor/content/api.png
Avatar (150x80)
http://dev.tgservers.com/bitcoin_avatar/site/hexcolor/api.png

Image Caching Rate: 60sec
Jump to: