PeerCoinTalk - PeerCoin (PPC) & PrimeCoin (XPM)
Primecoin (XPM) => Mining Primecoin => Topic started by: Sy on September 16, 2013, 10:08:51 am
- As said in the main thread, i build a little user stats script - so this is the thread for feedback and suggestions - the ANN thread kinda switched topic xD
http://xpm.syware.de/
The layout is...okay i guess, i'm more the coder than the designer xD
Legend:
Value = Block Value
Shares = Your Shares
XPM = Your XPM
Matured = Every block needs to be confirmed enough to mature -> get credited
Stash = Your current pool balance, auto payout is at 3
Strike-through lines -> Orphan Blocks
Green Line -> Payout treshold reached
ToDo:
Add some % again ^^
24h Stats
Overall Stats
Hide Matured
- Nice job, but may I kindly ask to get the frames around the cells back? :)
- I'll add alternating row colors, i dont like borders ^^
- okilidokili :)
-
okilidokili :)
Row color added, not sure if too light though 8)
- Not too light for me. Now it's much easier to keep track. Thanks!
- Blocks are adding up quickly - i'll come up with something ;D
- Update: Overview on top 8)
- Good job, thank you.
This Orphan blocks?
165410
165390
165287
163476
159242
155339
How to recognize Orphan blocks? How do you know that?
- Orphan blocks have reward: 0 in their payout info
Updates:
Some layout changes
Added XPM / Min on Details, can't think of a better number to check if your earnings are sort of consistent
Added Stake - same as above ^^
Added estimate to when a payout will happen according to current blockspeed
Added Value Box BTC & USD
Fixed my data update, the check was always true, getting stuff from beeeeer.org on every load xD its every 10 mins now
-
Orphan blocks have reward: 0 in their payout info
165390 It is not orphan block
"reward": 10.157399999999999,
http://www.beeeeer.org/payout/165390
-
Orphan blocks have reward: 0 in their payout info
165390 It is not orphan block
"reward": 10.157399999999999,
http://www.beeeeer.org/payout/165390
Fixed an ETA error, i actually calced it twice -.- the orphan block is gone, i cleaned the code a bit, guess i've fixed it on the way 8)
- My firefox (23.0.1) messes the layout of the page a little bit up (e.g. by putting the XPM/BTC trade info right over the block list). Is this something special and only applying to me? Internet exploder (10.0.8 ) displays the page in a readable way.
-
My firefox (23.0.1) messes the layout of the page a little bit up (e.g. by putting the XPM/BTC trade info right over the block list). Is this something special and only applying to me? Internet exploder (10.0.8 ) displays the page in a readable way.
Strange, i guess FF is picky about some tag i either misspelled or forgot to close - can't really put my finger on it but yeah, the problem is present - i'll try to fix it :-\
Update:
Fixed a few HTML messups, even validated my css (its W3C Valid now! ;D ) html is valid too but FF still messes up so im at a loss right now, no idea why - feel free to investigate yourself if you are good at webdesign, i've formatted the code from my earnings to make it easier to read and pasted it here:
http://pastebin.com/rNNzwxjp
-
My firefox (23.0.1) messes the layout of the page a little bit up (e.g. by putting the XPM/BTC trade info right over the block list). Is this something special and only applying to me? Internet exploder (10.0.8 ) displays the page in a readable way.
Strange, i guess FF is picky about some tag i either misspelled or forgot to close - can't really put my finger on it but yeah, the problem is present - i'll try to fix it :-\
Update:
Fixed a few HTML messups, even validated my css (its W3C Valid now! ;D ) html is valid too but FF still messes up so im at a loss right now, no idea why - feel free to investigate yourself if you are good at webdesign, i've formatted the code from my earnings to make it easier to read and pasted it here:
http://pastebin.com/rNNzwxjp
I was wondering if it was Firefox or not and tried it out in IE and Chrome and both worked. I decided to look at your stylesheet. I got it working in Firefox by adding float:right; to your details id. I'm not sure if that breaks IE and Chrome, though...
-
I was wondering if it was Firefox or not and tried it out in IE and Chrome and both worked. I decided to look at your stylesheet. I got it working in Firefox by adding float:right; to your details id. I'm not sure if that breaks IE and Chrome, though...
You are absolutely right, that fixed it, working in all major browsers now, thanks alot!
- Shortened the block details list, only showing blocks relevant for the pending payments, optional link to show all added 8)
Also the Payments Box only shows payments up to the last Paid IF there are more than 10 entries, otherwise the last 10 are shown.
- Hi Sy's
I'm getting the following error on your webpage:
Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 28699 bytes) in /kunden/schaunwama.de/webseiten/de.syware/xpm/classes/Block.php on line 53
Is it on maintenance right now?
cheers
-
Hi Sy's
I'm getting the following error on your webpage:
Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 28699 bytes) in Block.php on line 53
Is it on maintenance right now?
cheers
Haha i had to optimize variable setting a bit, not saving all that stuff i dont need reduced the php memory usage by 2800% from 56 MB to 2 ;D
-
Hi Sy's
I'm getting the following error on your webpage:
Fatal error: Allowed memory size of 104857600 bytes exhausted (tried to allocate 28699 bytes) in Block.php on line 53
Is it on maintenance right now?
cheers
Haha i had to optimize variable setting a bit, not saving all that stuff i dont need reduced the php memory usage by 2800% from 56 MB to 2 ;D
wow that's a big % of memory saved!!
-
wow that's a big % of memory saved!!
Yes indeed, i went through every block and payout data and when it matched the user, set a few variables plus saved everything into raw_data (you never know! 8) ), i used 3-4 values from that raw_data that i've set specificly now and discard everything else afterwards :)
- Stats are spot on atm, right?
I have to donate some xpm to you man...you've done a great job.
- Thanks for putting up the stats site. Sent a small donation your way.
-
Fixed the date cell, forgot that one in my last overhaul ^^ site is getting slow now, almost parsing 6k files on load ;D
Stats are spot on atm, right?
I have to donate some xpm to you man...you've done a great job.
Update is every 10 mins so...yes i guess 8)
Thanks for putting up the stats site. Sent a small donation your way.
Received, thanks :)
-
Fixed the date cell, forgot that one in my last overhaul ^^ site is getting slow now, almost parsing 6k files on load ;D
Stats are spot on atm, right?
I have to donate some xpm to you man...you've done a great job.
Update is every 10 mins so...yes i guess 8)
Thanks for putting up the stats site. Sent a small donation your way.
Received, thanks :)
Are you using PHP to parse all this stuff out?
-
Are you using PHP to parse all this stuff out?
Yep
-
Are you using PHP to parse all this stuff out?
Yep
Are you doing it on each page load?
- Is it broken? It does not seem to be updating. Might this be the result of the payout method change?
UPDATE: While the block details are not updating some of the numbers in the summary are changing, although I can't verify they are doing so correctly. I can't say they are not either.
- Hey guys! I'm new here :)
I can also confirm that it is not updating. My last block (where it stopped) was 191901
- Yes, stuck at the same block here :)
- Confirmed, its hitting a timeout, looking into it right now.
Update 1:
The summarie seems to be counting fine though, its just the details view...
Update 2:
Fixed, Xolo messed up the block output a bit xD
- i'll provide you a serepate JSON interface asap
so you don't have to parse the html garbage
-
i'll provide you a serepate JSON interface asap
so you don't have to parse the html garbage
That would be awesome :) no rush over the weekend though, im outa town.
- ok here's the "new" interface:
just add /raw to the url, e.g.
http://www.beeeeer.org/raw/payouts
http://www.beeeeer.org/raw/blocks
http://www.beeeeer.org/raw/block/193476
http://www.beeeeer.org/raw/payout/189813
glhf
try to point all your scripts to these URLs now
- xolokram
-
ok here's the "new" interface:
just add /raw to the url, e.g.
http://www.beeeeer.org/raw/payouts
http://www.beeeeer.org/raw/blocks
http://www.beeeeer.org/raw/block/193476
http://www.beeeeer.org/raw/payout/189813
glhf
try to point all your scripts to these URLs now
- xolokram
Nice but im on the jump to a wedding, will change saturday / monday - thanks in advance, looking good!
Update 1:
Sweet, this is WAY faster!
Update 2:
Changed my codebase to the new URLs and added caching, updating right now - will work on database integration over this week...i think ;D
Update 3:
And running again
-
Done with the old version, added some server stats at the bottom.
Update 15:26
Haha done with the basic database insert
Foreach done in 1269.29ms, added 596,219 rows.
- Hi Sy,
a user named "topnetdeal" (see http://ppcointalk.org/index.php?topic=501.msg4613#msg4613 ) showed me, that your stats page is not using/parsing the correct values.
from the block information pages (JSON objects), you should use the "reward" field, not the "amount" field. as the "reward" field is the value of the found block minus the pool fee.
also: do you use rounded values to calculate the payouts with your own script?!?
- xolokram
-
Hi Sy,
a user named "topnetdeal" (see http://ppcointalk.org/index.php?topic=501.msg4613#msg4613 ) showed me, that your stats page is not using/parsing the correct values.
from the block information pages (JSON objects), you should use the "reward" field, not the "amount" field. as the "reward" field is the value of the found block minus the pool fee.
also: do you use rounded values to calculate the payouts with your own script?!?
- xolokram
I round them at output, not for calculations - for payout i take block-> payout -> address , not payout -> add -> address - i'll look into it in v2 with database support, its so much faster :D
- ok, then there's something else 'wrong'
/edit:
i'm really confused, when you check my page:
block -> payout is the same as payout -> add
payout -> prev is the same as (payout - 1) -> next
and
payout -> next is the same as (payout -> prev) + (payout -> add) (for all users that are not over the 3.01 payout barrier)
or am i missing something???
but this is not what you can see on your web frontend.
- sorry for the double post
you're counting the orphaned blocks as valid blocks. but their value is 0 as you can see in the payout info.
(the reward is not updated in the block info page once the confirmations are checked, it's only visible in the payout info)
i'm sorry if there was a mistunderstanding regarding the block/payout information.
- xolokram
-
ok, then there's something else 'wrong'
/edit:
i'm really confused, when you check my page:
block -> payout is the same as payout -> add
payout -> prev is the same as (payout - 1) -> next
and
payout -> next is the same as (payout -> prev) + (payout -> add) (for all users that are not over the 3.01 payout barrier)
or am i missing something???
but this is not what you can see on your web frontend.
It's possible that they are the same, i didnt check, just told where i take the values from :)
I'll most likely fix it today, original script is almost (or sometimes) at 30s runetime limit for first creation so it's about time :)
- DB switch mostly done, it's glitching from time to time when things don't work on the webserver that where fine on my local machine - just wait a few minutes and reload.
Can someone please verifiy that the values are correct? It's definately not counting orphans (anymore? ^^)
Highscore added, cache valid 1h
5 min vor every other page
Update:
I've got 362 cache files, that's around 90 users if everyone visited the 4 available pages and not a single feedback post? come on...
Update 2:
I've set the sites refreshtimer to cachetime + 1 second so you never have to reload the page, just keep it open.
- i like the highscore page :)
-
i like the highscore page :)
Haha i'm wondering who the top #3 are, im still on the page but moving down slowly -.- ;D
Payment Database is at roughly 700k entries now ^^
- How many blocks are shown at the "Show payout details" page?
-
How many blocks are shown at the "Show payout details" page?
All blocks that are valid for not paid payouts, the next block at the bottom would been green again since it reached the treshold but as it got paid already (if everything is correct) is not relevant anymore :)
I might remove the full list since it's cachefile is ~1 mb big for "old miners" growing fast, my cache folder contains 596 files, 75 mb total.
But site generation itself is so much faster with the database backend, i could turn off caching for sumary but since i only query your server every 10 mins, no point in generating it more often 8) i also removed around 300 mb of block and payout data i was parsing at the end ;D ;D ;D
-
I have been noticing that the ETA value jumps around quite a lot;
on my most recent payout it just went from 6h (ridiculous for 3200 confirms) to 43.1 h (more reasonable). Can anybody tell me how it is calculated? I would expect to see in the neighborhood of 2 days at inception slowly decreasing over time, not jumping all over the place; am I missing something?
EDIT: The absurdly low value is on the summary if you click on "highschore"; it is more well behaved on the other links...
EDIT: The absurdly low value is now on every page links...
I also noticed on the blocks 197702 has turned orange with strike-out text and zero payout; is that an orphaned block?
I also noticed that on block 202001 the "Mins since Block" was negative (how can that be?) and my "Stash" decreased even though the "XPM" was positive...
Block Date Diff Value Stake XPM Matured? Stash Mins since Block
202003 10-10 01:12 9.894 10.23 4.06% 0.4099 1.994 16.6
202001 10-10 01:09 9.894 10.2 4.22% 0.4264 2.4203 -3.8 ???
-
Update:
I've got 362 cache files, that's around 90 users if everyone visited the 4 available pages and not a single feedback post? come on...
:D Feedback:
Extremely useful page Sy, thank you for creating it.
I would suggest that after you solve all the glitches, you add some more stats, like xpm/block, total shares submitted, ratio of share lengths, etc.
Keep up the good work
-
I have been noticing that the ETA value jumps around quite a lot; on my most recent payout it just went from 6h (ridiculous for 3200 confirms) to 43.1 h (more reasonable). Can anybody tell me how it is calculated? I would expect to see in the neighborhood of 2 days at inception slowly decreasing over time, not jumping all over the place; am I missing something?
EDIT: The absurdly low value is on the summary if you click on "highschore"; it is more well behaved on the other links...
EDIT: The absurdly low value is now on every page links...
I also noticed on the blocks 197702 has turned orange with strike-out text and zero payout; is that an orphaned block?
I also noticed that on block 202001 the "Mins since Block" was negative (how can that be?) and my "Stash" decreased even though the "XPM" was positive...
Block Date Diff Value Stake XPM Matured? Stash Mins since Block
202003 10-10 01:12 9.894 10.23 4.06% 0.4099 1.994 16.6
202001 10-10 01:09 9.894 10.2 4.22% 0.4264 2.4203 -3.8 ???
The ETA is calulated by the top summary "package" avg blocktime which is quite jumpy for the first few blocks (~10) and should even out after that, i came to realize though that i could just see at what block we are now, at what block all your blocks have matured and just calculate diff * 1 minute - since thats the target block time.
Orange and strike-out is orphan, that is correct.
The negative time, i'm not 100% sure, that usually happens if the block is found too fast, should never be negative though, the stash decrease is way more odd - i'll look into it.
:D Feedback:
Extremely useful page Sy, thank you for creating it.
I would suggest that after you solve all the glitches, you add some more stats, like xpm/block, total shares submitted, ratio of share lengths, etc.
Keep up the good work
ratio of length of shares is tbh pretty boring and very static once you mine more than 24h at the pool, it's the same for all of us :D xpm/block is shown in your details list, same for shares and those numbers decrease with pool growth so they have no real readable meaning imho.
I will work on xpm/day though :)
- @SY
There has been half a dozen or so instances of the negative "Mins since Block", and the corresponding stash decrease, since the one I initially posted about; one was on a payout block and things got really strange. Would it help debugging if I posted the info and/or the block numbers, or do you see this as well?
I echo what has already been said: Great work, thanks!
- I'll check it out tomorrow i guess, still tweaking the db import 8)
Tomorrow Update:
Hmm something broke over night...not sure what - highscore is still working so the data should be okay....
Update:
Working again, payout treshold was removed from my ini, not sure if it was because i overwrote it with an old version (shouldnt ever happen) or if it happened while updating it with the current rates, which brings me to point 2, cryptsy api is down atm, so no USD conversions for now -.-
- Looks like stats are down, all payouts are showing 00000000
- All summary showing 0, Stash and Mins since Block showing 0.
- Sy, What about the new statistics?
Thank you for your work.
-
Looks like stats are down, all payouts are showing 00000000
All summary showing 0, Stash and Mins since Block showing 0.
Sorry about that, looks like that if cryptsy fails to update it also fails to rewrite the ini file, thus removing the payout treshold of 3.01 - fixed.
Also removed all those PHP errors, they were meant to only show if visited by me, never tested it though ;D
Sy, What about the new statistics?
Thank you for your work.
What exactly do you mean?
Hmm it's not updating anymore but block data is written to the db...strange.
- Status right now:
The stats aren't working anymore, i'm not sure why since the block data is all there and accounted for at the highscore, i don't have the time right now to fix it though since i'm working on a different codebase for the stats, improving some of the underlying code.
On a second note, the stats won't (for now at least) ever be 100% accurate, they are just a rough estimate - since the payout changed somewhere from 3.00 to 3.01 and i always recalculate the page with the current treshold it won't really fit on the payouts - but the numbers you've earned are correct ^^ (minus fee)
I'll have to rewrite alot anyway once Xolo is done with this weeks work so - hang on, it will work again soon :)
I've also removed the full block history, it just filled up my cache folder and took a long time to generate, i don't see any reason for it at all, we got way too much blocks now for the details to be really informative, i might change the whole thing a bit - maybe something like pool user stats with daily earning bar chart - i would love to add miner monitoring but there is no data on miners and their id yet...
- SY,
Take a read over on the main beeeeer support and pool page, they have changed the payout to a PPS model.
-
SY,
Take a read over on the main beeeeer support and pool page, they have changed the payout to a PPS model.
I know, the data itself is still the same though until xolo updated that one aswell - ill just relax and wait for his update :)
- Still no working version, ORM is giving me some trouble and other stat sites are emerging, for now check out http://xpm.altcoin-dash.org/ made by churchmouse, it's pretty nice tbh :)