Bitcoin Forum
April 23, 2024, 12:18:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Miner Data [API] Dynamic Avatar's (and signature images) .png  (Read 2626 times)
NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 13, 2011, 02:48:35 PM
Last edit: June 16, 2011, 10:37:17 AM by NothinG
 #1

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

1713874715
Hero Member
*
Offline Offline

Posts: 1713874715

View Profile Personal Message (Offline)

Ignore
1713874715
Reply with quote  #2

1713874715
Report to moderator
1713874715
Hero Member
*
Offline Offline

Posts: 1713874715

View Profile Personal Message (Offline)

Ignore
1713874715
Reply with quote  #2

1713874715
Report to moderator
"Bitcoin: the cutting edge of begging technology." -- Giraffe.BTC
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713874715
Hero Member
*
Offline Offline

Posts: 1713874715

View Profile Personal Message (Offline)

Ignore
1713874715
Reply with quote  #2

1713874715
Report to moderator
NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 14, 2011, 02:01:57 AM
Last edit: June 15, 2011, 12:28:46 PM by NothinG
 #2

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)

NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 14, 2011, 06:21:32 AM
Last edit: June 15, 2011, 12:41:11 PM by NothinG
 #3

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).

Tunes0710
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
June 14, 2011, 07:57:57 AM
 #4

Good work :-)
Would be interested in that avatar stat for bitclockers.
NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 14, 2011, 08:11:40 AM
 #5

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

Tunes0710
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
June 14, 2011, 09:56:57 AM
 #6

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)
NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 14, 2011, 09:59:47 AM
 #7

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.

Tunes0710
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
June 14, 2011, 10:06:56 AM
 #8

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?
NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 14, 2011, 10:08:28 AM
 #9

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

Tunes0710
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
June 14, 2011, 10:39:27 AM
 #10

Tip sent.. not much i'm afraid, but it's what I had left after my other transactions.
Keep up the good work!
NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 14, 2011, 10:40:34 AM
 #11

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

Tunes0710
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
June 14, 2011, 10:46:26 AM
 #12

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!
NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 14, 2011, 10:54:28 AM
 #13

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

NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
June 15, 2011, 09:07:35 AM
Last edit: June 15, 2011, 09:52:59 AM by NothinG
 #14

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!

NothinG (OP)
Hero Member
*****
Offline Offline

Activity: 560
Merit: 500



View Profile
January 21, 2012, 11:13:19 AM
 #15

Just wanted to poke this thread back to the top.
Possibly thinking about going back and tweaking this script a little bit.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!