smd75jr (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
July 10, 2011, 03:05:48 AM |
|
Ok, first post 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/bitcoinAny suggestions and/or comments are greatly appreciated. Thanks, smd75jr P.S. WE LOVE YOU theymos
|
|
|
|
bitlotto
|
|
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?
|
*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
|
|
July 10, 2011, 01:16:19 PM |
|
One typo "The avarage time"
|
|
|
|
smd75jr (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
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
|
|
|
|
XIU
|
|
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
|
|
|
|
smd75jr (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
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
|
|
|
|
bitlotto
|
|
July 11, 2011, 03:12:24 PM |
|
Now it only yells at you if you're using Internet Explorer
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
|
|
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
|
|
|
|
BitcoinHoarder
|
|
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.
|
|
|
|
smd75jr (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
July 11, 2011, 05:31:45 PM |
|
Now it only yells at you if you're using Internet Explorer
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
Activity: 28
Merit: 0
|
|
July 11, 2011, 05:36:23 PM |
|
I like it Pretty simple. Using chrome...just saying..
|
|
|
|
vector76
Member
Offline
Activity: 70
Merit: 18
|
|
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.
|
|
|
|
smd75jr (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
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 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
|
|
|
|
smd75jr (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
July 11, 2011, 08:16:54 PM |
|
Changed the layout of the page to make it more compact and readable
|
|
|
|
bitlotto
|
|
July 11, 2011, 10:13:12 PM |
|
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 (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
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.
|
|
|
|
bitlotto
|
|
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/000000000000012e9924c4628a8cf8f2f2cad86192c4dcb7175e3f91eb0fc317and get the time and then convert to UTC. Trickier but probably interesting to figure out!
|
*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 (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
July 12, 2011, 02:29:17 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).
|
|
|
|
bitlotto
|
|
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/latesthashWill 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 (OP)
Newbie
Offline
Activity: 11
Merit: 0
|
|
July 12, 2011, 04:15:02 PM |
|
Ok, that should work, but what about parsing it, how do I do that?
|
|
|
|
|