Bitcoin Forum
December 09, 2016, 04:01:36 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: Aggregated view of important Block Explorer data  (Read 1849 times)
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 10, 2011, 03:05:48 AM
 #1

Ok, first post  Grin

So i was getting somewhat frustrated with having to open about 10 tabs on Block Explorer and constantly refresh/switch between them just to get all of the information i wanted. So i decided to finally teach myself PHP and wrote a simple little web page that pulls all of the most important data from Block Explorer and puts it all on one, nice, clean, convenient page.

The URL is: tdi-inc.com/bitcoin

Any suggestions and/or comments are greatly appreciated.

Thanks,
smd75jr

P.S. WE LOVE YOU theymos
1481256096
Hero Member
*
Offline Offline

Posts: 1481256096

View Profile Personal Message (Offline)

Ignore
1481256096
Reply with quote  #2

1481256096
Report to moderator
1481256096
Hero Member
*
Offline Offline

Posts: 1481256096

View Profile Personal Message (Offline)

Ignore
1481256096
Reply with quote  #2

1481256096
Report to moderator
1481256096
Hero Member
*
Offline Offline

Posts: 1481256096

View Profile Personal Message (Offline)

Ignore
1481256096
Reply with quote  #2

1481256096
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481256096
Hero Member
*
Offline Offline

Posts: 1481256096

View Profile Personal Message (Offline)

Ignore
1481256096
Reply with quote  #2

1481256096
Report to moderator
1481256096
Hero Member
*
Offline Offline

Posts: 1481256096

View Profile Personal Message (Offline)

Ignore
1481256096
Reply with quote  #2

1481256096
Report to moderator
1481256096
Hero Member
*
Offline Offline

Posts: 1481256096

View Profile Personal Message (Offline)

Ignore
1481256096
Reply with quote  #2

1481256096
Report to moderator
bitlotto
Hero Member
*****
Offline Offline

Activity: 672


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
July 10, 2011, 01:04:11 PM
 #2

Umm..why does it say "You are using a browser that is actually secure Smiley"?

Sure it's great, and I try to stay secure, but I'm wondering why are you testing that? What happens when someone visits and it's not?

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
XIU
Member
**
Offline Offline

Activity: 84


View Profile
July 10, 2011, 01:16:19 PM
 #3

One typo "The avarage time" Smiley

1xiuHwHk81j4TRnLuLBMvH2ctqtTsubT6
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 10, 2011, 02:30:23 PM
 #4

Umm..why does it say "You are using a browser that is actually secure Smiley"?

Sure it's great, and I try to stay secure, but I'm wondering why are you testing that? What happens when someone visits and it's not?

That was more me bashing Internet Explorer than anything, I was planing to remove it when i update it.

One typo "The avarage time" Smiley

Noted Smiley
XIU
Member
**
Offline Offline

Activity: 84


View Profile
July 10, 2011, 09:00:33 PM
 #5

Umm..why does it say "You are using a browser that is actually secure Smiley"?

Sure it's great, and I try to stay secure, but I'm wondering why are you testing that? What happens when someone visits and it's not?

That was more me bashing Internet Explorer than anything, I was planing to remove it when i update it.

Well you could still use it to see if the browser version isn't the latest version or something Smiley

1xiuHwHk81j4TRnLuLBMvH2ctqtTsubT6
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 11, 2011, 03:02:42 PM
 #6

Ok, updated it

Changes:

Fixed spelling error as noted above
Now shows how much the difficulty will change
Now it only yells at you if you're using Internet Explorer
bitlotto
Hero Member
*****
Offline Offline

Activity: 672


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
July 11, 2011, 03:12:24 PM
 #7

Now it only yells at you if you're using Internet Explorer
Grin Funny. What does it say? I won't ever touch the internet with that thing! LOL.

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
BitcoinHoarder
Full Member
***
Offline Offline

Activity: 145


View Profile
July 11, 2011, 03:35:39 PM
 #8

Umm..why does it say "You are using a browser that is actually secure Smiley"?

Sure it's great, and I try to stay secure, but I'm wondering why are you testing that? What happens when someone visits and it's not?

OP said he learned PHP for this project, one of the fun things to do when learning PHP is to test the User-Agent
BitcoinHoarder
Full Member
***
Offline Offline

Activity: 145


View Profile
July 11, 2011, 03:39:28 PM
 #9

There is an error in your script where you output the probability of a single hash getting a block.  You add a % to the end of the number without multiplying it by 100.

The probability of flipping a coin and turning up heads is: .5
The percent change of flipping a coin and turning up heads is 50% (.5 * 100)

Either take away the percentage sign or multiply the probability by 100.
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 11, 2011, 05:31:45 PM
 #10

Now it only yells at you if you're using Internet Explorer
Grin Funny. What does it say? I won't ever touch the internet with that thing! LOL.

Why are you working with Bitcoin in Internet Explorer?!?!?!?!


New changes:

Fixed probability (the number is now multiplied by 100)

Cheers!
wolf902
Newbie
*
Offline Offline

Activity: 28



View Profile WWW
July 11, 2011, 05:36:23 PM
 #11

I like it  Cool


Pretty simple.

Using chrome...just saying..

http://i.imgur.com/KN8Dd.png (http://wolf902.triplemining.com/register)
vector76
Member
**
Offline Offline

Activity: 70


View Profile
July 11, 2011, 05:39:25 PM
 #12

Modern exploits are FAR more likely to use stupidity of the user rather than weaknesses in the browser.

Not looking to start a platform argument, just saying it makes a lot less difference now than it used to.
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 11, 2011, 05:42:44 PM
 #13

Modern exploits are FAR more likely to use stupidity of the user rather than weaknesses in the browser.

Not looking to start a platform argument, just saying it makes a lot less difference now than it used to.


To be fair, it was mostly because Microshaft likes to think that they alone dictate Internet standards and that Internet Explorer has never really conformed to them properly

I like it  Cool


Pretty simple.

Thanks, I'm going to try to continue to improve it over time, if anyone has any feature requests I am fully open to see what i can do Smiley
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 11, 2011, 08:16:54 PM
 #14

Changed the layout of the page to make it more compact and readable
bitlotto
Hero Member
*****
Offline Offline

Activity: 672


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
July 11, 2011, 10:13:12 PM
 #15

How about date of last block too?

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 11, 2011, 10:26:49 PM
 #16

How about date of last block too?

Not really sure how i would do this, the page uses data pulled directly from blockexplorer.com/q, it just organizes and displays it efficiently.
bitlotto
Hero Member
*****
Offline Offline

Activity: 672


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
July 11, 2011, 10:33:39 PM
 #17

How about date of last block too?

Not really sure how i would do this, the page uses data pulled directly from blockexplorer.com/q, it just organizes and displays it efficiently.
You could, get latest block hash then parse it's page like:
http://blockexplorer.com/rawblock/000000000000012e9924c4628a8cf8f2f2cad86192c4dcb7175e3f91eb0fc317
and get the time and then convert to UTC. Trickier but probably interesting to figure out!  Wink

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 12, 2011, 02:29:17 PM
 #18

How about date of last block too?

Not really sure how i would do this, the page uses data pulled directly from blockexplorer.com/q, it just organizes and displays it efficiently.
You could, get latest block hash then parse it's page like:
http://blockexplorer.com/rawblock/000000000000012e9924c4628a8cf8f2f2cad86192c4dcb7175e3f91eb0fc317
and get the time and then convert to UTC. Trickier but probably interesting to figure out!  Wink

The other problem I've discovered after looking at it for a bit, is that i cant think of a way to make it look at the latest block (and I'm not going to use SQL because I want it to be as fast  as possible).
bitlotto
Hero Member
*****
Offline Offline

Activity: 672


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
July 12, 2011, 02:40:56 PM
 #19

The other problem I've discovered after looking at it for a bit, is that i cant think of a way to make it look at the latest block (and I'm not going to use SQL because I want it to be as fast  as possible).
https://blockexplorer.com/q/latesthash
Will give you the hash and you then know the link, for the raw block link is just:
http://blockexplorer.com/rawblock/latesthash

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
smd75jr
Newbie
*
Offline Offline

Activity: 11


View Profile
July 12, 2011, 04:15:02 PM
 #20

The other problem I've discovered after looking at it for a bit, is that i cant think of a way to make it look at the latest block (and I'm not going to use SQL because I want it to be as fast  as possible).
https://blockexplorer.com/q/latesthash
Will give you the hash and you then know the link, for the raw block link is just:
http://blockexplorer.com/rawblock/latesthash

Ok, that should work, but what about parsing it, how do I do that?
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!