Bitcoin Forum

Bitcoin => Project Development => Topic started by: smd75jr on July 10, 2011, 03:05:48 AM



Title: Aggregated view of important Block Explorer data
Post by: smd75jr on July 10, 2011, 03:05:48 AM
Ok, first post  ;D

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 (http://tdi-inc.com/bitcoin)

Any suggestions and/or comments are greatly appreciated.

Thanks,
smd75jr

P.S. WE LOVE YOU theymos


Title: Re: Aggregated view of important Block Explorer data
Post by: bitlotto on July 10, 2011, 01:04:11 PM
Umm..why does it say "You are using a browser that is actually secure :)"?

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?


Title: Re: Aggregated view of important Block Explorer data
Post by: XIU on July 10, 2011, 01:16:19 PM
One typo "The avarage time" :)


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 10, 2011, 02:30:23 PM
Umm..why does it say "You are using a browser that is actually secure :)"?

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" :)

Noted :)


Title: Re: Aggregated view of important Block Explorer data
Post by: XIU on July 10, 2011, 09:00:33 PM
Umm..why does it say "You are using a browser that is actually secure :)"?

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


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 11, 2011, 03:02:42 PM
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


Title: Re: Aggregated view of important Block Explorer data
Post by: bitlotto on July 11, 2011, 03:12:24 PM
Now it only yells at you if you're using Internet Explorer
;D Funny. What does it say? I won't ever touch the internet with that thing! LOL.


Title: Re: Aggregated view of important Block Explorer data
Post by: BitcoinHoarder on July 11, 2011, 03:35:39 PM
Umm..why does it say "You are using a browser that is actually secure :)"?

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


Title: Re: Aggregated view of important Block Explorer data
Post by: BitcoinHoarder on July 11, 2011, 03:39:28 PM
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.


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 11, 2011, 05:31:45 PM
Now it only yells at you if you're using Internet Explorer
;D 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!


Title: Re: Aggregated view of important Block Explorer data
Post by: wolf902 on July 11, 2011, 05:36:23 PM
I like it  8)


Pretty simple.

Using chrome...just saying..


Title: Re: Aggregated view of important Block Explorer data
Post by: vector76 on July 11, 2011, 05:39:25 PM
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.


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 11, 2011, 05:42:44 PM
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  8)


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


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 11, 2011, 08:16:54 PM
Changed the layout of the page to make it more compact and readable


Title: Re: Aggregated view of important Block Explorer data
Post by: bitlotto on July 11, 2011, 10:13:12 PM
How about date of last block too?


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 11, 2011, 10:26:49 PM
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.


Title: Re: Aggregated view of important Block Explorer data
Post by: bitlotto on July 11, 2011, 10:33:39 PM
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!  ;)


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 12, 2011, 02:29:17 PM
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!  ;)

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


Title: Re: Aggregated view of important Block Explorer data
Post by: bitlotto on July 12, 2011, 02:40:56 PM
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


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 12, 2011, 04:15:02 PM
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?


Title: Re: Aggregated view of important Block Explorer data
Post by: smd75jr on July 13, 2011, 06:00:41 PM
Any help? Anybody?