SRL Archive - SRL Stats

[March 3] Stats Update


Wizzup?

2011-03-03 05:22:43

Hereby announcing SRL Stats release-1.3. Nothing too exciting. Except for the fact that it has been completely stable for four weeks now. I'm not going to declare it bug free, but it seems to no longer crash. ;)

Although all the bug fixes and features have gone into SRL-Stats as soon as I fixed them, I did add some additional features this morning.

  • Graphs (as previously posted)
  • Added a ``personal'' page. (New!)
  • Upon register the user will receive a link to his ``page''.
  • Lots of other bug fixes and tweaks, see change list below.

Changes:

$ git shortlog release-1.2..release-1.3 --no-merges | cat
Merlijn Wajer (54):
Query: Work around mySQL bug.
Query: Fix more MySQL bugs.
Query: Fix MySQL bug part three.
Query: More mySQL madness.
README: Fix typo.
Query: Add MySQL workaround for new user_script.
Stats: Fix a couple of bugs.
Stats: Add a lot of documentation.
Documentation: Add sphinx documentation.
Stats: More documentation.
Stats: Add exception handling when committing.
Templates: Add owner of script.
Stats: Less strict on empty variables.
Templates: Show commit date on scriptcommits.
Stats: Add more logging.
SQL: Small cleanups.
Stats: Small changes.
Stats: Update TODO. Start session switch.
Stats: Remove unused spaces.
Stats: New session alternative should now work.
Stats: Remove a few prints.
Stats/commit.html: Add link to commit filter.
Stats/commit.html: Remove slash.
Stats/commit.html: Totalle tested that...
Stats: Fix variable/all.
Tools: Updated addvariable to use new session.
Minor change to the TODO file.
Stats: Update URL list.
Stats: Add initial graph support.
Stats: Add failsafe.
Stats: Fix import dependency.
Stats: Fix constant month.
Stats: Add more graphs.
Stats: Remove pylab; use matplotlib main API.
Stats: ``Simplify'' graph code.
Stats: Fix bug with MySQL Database.
Stats: Add extra error handling.
Stats: Fix bug when post data is None.
Stats: Remove a print.
Stats: Fix import.
Stats: Fix issue in register_user. Stupid mistake.
Stats: Experimental support for variable ID's.
Classes: Increase variable name length.
Stats: Change variable length.
Stats: Show URL to user page on register.
Stats: Loginform redirects to user page.
Stats: Add personal page.
Stats: Add more information to personalised page.
Stats: Fix desc usage.
Stats: Add additional text.
Stats: Addtional template fixes.
Stats: Fix loginform redirect.
Stats: Fix query.
Stats: Update TODO.

YoHoJo

2011-03-03 14:38:56

Hoorah, personal page thank you!
Could it also possibly show each script ran, and next to that total time ran of each script?
And variables too?

I really wanted a personal page this is great, thanks for the hard work!

Wizzup?

2011-03-03 17:29:19

From: YoHoJo
Hoorah, personal page thank you!
Could it also possibly show each script ran, and next to that total time ran of each script?
And variables too?

I really wanted a personal page this is great, thanks for the hard work!


What do you mean, each script ran? All the scripts you've ever committed to? And the total time you committed to it?

YoHoJo

2011-03-03 17:59:33

YoHoJo

Scripts Ran:
P.M.S:
3 days 2 hours 4 Seconds

M.S.I:
5 days 6 hours 3 seconds

etc. etc.

and maybe

Vaiables:
Iron Mined: 942724 ores
Copper Mined: 234902 ores
Tuna Fished: 2340234 Fish
etc. etc.

^Yes to your post basically. These things would be nice additions to the 'Personal Page'.

Coh3n

2011-03-10 21:56:41

From: YoHoJo
YoHoJo

Scripts Ran:
P.M.S:
3 days 2 hours 4 Seconds

M.S.I:
5 days 6 hours 3 seconds

etc. etc.

and maybe

Vaiables:
Iron Mined: 942724 ores
Copper Mined: 234902 ores
Tuna Fished: 2340234 Fish
etc. etc.

^Yes to your post basically. These things would be nice additions to the 'Personal Page'.

You mean like this? :)

Wizzup, I think a search feature would be a nice addition. To search for a variable or a user.

smurg

2011-03-10 22:40:26

Managing a script seems broken.

Yago

2011-03-10 22:42:41

Yeah it gives me an error like cannot find page …

Coh3n

2011-03-11 00:03:44

You guys should try to be more specific. "Cannot fine page" could mean the server is down, but in this case it seems to be in the server itself. This is the message I get when I try to manage any one of my scripts.

"We could not find the page you requested in our web space:"

Smartzkid

2011-03-11 02:10:47

User rankings would be pretty neat ;)

I'm loving the user page, it's very useful! Thank you Wizz!

Wizzup?

2011-03-11 06:06:23

From: smurg
Managing a script seems broken.


Fixed.

From: Smartzkid
User rankings would be pretty neat ;)

I'm loving the user page, it's very useful! Thank you Wizz!


Yeah. I need to figure out temporary tables in SQLAlchemy. :)

Yago

2011-03-11 13:45:42

Can there be an option to remove variables then? I accidentally added one.

Wizzup?

2011-03-11 13:48:16

From: yago
Can there be an option to remove variables then? I accidentally added one.


It is planned. Thing is that I'll also have to change all commits that may have previously touched that variable.

I'm working on user ranks atm.

Yago

2011-03-11 13:54:14

ok. thanks

Coh3n

2011-03-11 15:15:32

Apparently there's a variable "Trout Cooked" and "Raw Trout Cooked". I'm not sure how difficult it would be to add a system that compares a variable to be added with existing ones to make sure the same thing isn't added twice.

Gu3st...

2011-03-11 15:33:38

I think the whole variable system is a bit messy and poorly planned as it is right now…
I think it would be better with IDs instead of strings

Wizzup?

2011-03-11 15:53:00

From: Zyt3x
I think the whole variable system is a bit messy and poorly planned as it is right now…
I think it would be better with IDs instead of strings


I disagree a bit; they both have their advantages and disadvantages. For example, if I somehow have to switch server and re-insert the database, the ID's for the variables may not be the same; whereas the names will be. Plus, the names are generally more readable in scripts. We'll have to discuss it in greater detail before we decide. The stats system supports using IDs too though. I added that recently. (A month ago or so)

Gu3st...

2011-03-11 16:07:35

From: Wizzup?
I disagree a bit; they both have their advantages and disadvantages. For example, if I somehow have to switch server and re-insert the database, the ID's for the variables may not be the same; whereas the names will be. Plus, the names are generally more readable in scripts. We'll have to discuss it in greater detail before we decide. The stats system supports using IDs too though. I added that recently. (A month ago or so)
Hmm.. Then what am I complaining about? ;)

Yago

2011-03-11 17:13:49

From: Wizzup?
The stats system supports using IDs too though. I added that recently. (A month ago or so)


Wait, Can we have to put item ID's such as 315 for shrimps cooked?

Wizzup?

2011-03-11 17:43:12

From: yago
Wait, Can we have to put item ID's such as 315 for shrimps cooked?


It should work, but the Simba file for stats probably needs to be adapted to support ID's too. But really, you should use the string. :)

Yago

2011-03-11 18:20:13

I am and they're working great. Thanks for the management fix :)

Wizzup?

2011-03-12 16:03:10

Added user ranks.

http://stats.villavu.com/user/1
http://stats.villavu.com/user/all/2

Smartzkid

2011-03-17 00:03:45

Time delta for the past 24 hours would be pretty awesome, anyone agree?

Wizzup?

2011-03-17 05:09:20

From: Smartzkid
Time delta for the past 24 hours would be pretty awesome, anyone agree?


Quite agree! And it's perfectly possible too… For any time period.

Do you have a more concrete idea as to how you'd like to see it? My problem with the stats system is that it can do so much I get blown away by ideas and eventually end up implementing none because I can't think of a way to properly integrate them all in the system.

Also, what graphs would you guys (and girls) like to see most?

E: Perhaps also some ``weekly/monthly'' report. Who gained the most, what was the average gain. What were the most active scripts during that period…

TomTuff

2011-03-17 05:37:26

If a time delta is what I think it is, have a world map, and have it color coded - no use = white, green = low, red = highest; have some in between shades of course.

Yago

2011-03-17 15:42:01

I like the weekly/monthly ideas

Smartzkid

2011-03-18 01:36:58

From: Wizzup?
Quite agree! And it's perfectly possible too… For any time period.

Do you have a more concrete idea as to how you'd like to see it? My problem with the stats system is that it can do so much I get blown away by ideas and eventually end up implementing none because I can't think of a way to properly integrate them all in the system.

Also, what graphs would you guys (and girls) like to see most?

E: Perhaps also some ``weekly/monthly'' report. Who gained the most, what was the average gain. What were the most active scripts during that period…


I'd love to see a user_time vs time graph + the derivative of the most current values for each user. Basically, just an indicator of how many scripts they're running at once.


Daily/weekly/monthly reports would be really awesome! (And probably easier to code than odd graphs and derivatives :p)

A way to compare specific users (on the same graph?) would be really cool as well.

From: TomTuff
If a time delta is what I think it is, have a world map, and have it color coded - no use = white, green = low, red = highest; have some in between shades of course.


Ahh, not quite what I meant (though that would be pretty neat!)

Coh3n

2011-03-18 02:51:02

One graph I'd really like would be one that shows the activity of the script (i.e. minutes run per week/month/even year if possible). Could also get in to specific variables, but I'm not sure if that's too much. I was thinking if one could track certain variables, they could realize that gold ore, for example, hasn't been mined using MSI for quite some time so that would lead them to believe something is wrong with the gold miner. But again, that may be too much and completely unnecessary.

Wizzup?

2011-03-18 13:44:53

I like your suggestions, all of them. :p
Time delta would probably be a bit like the GE does them, TomTuff. So "+42 in the last day".

Smartz, the graphs actually aren't too hard. there's just so much to create graphs with. :p (I use matplotlib for graphs)

Smartzkid

2011-03-25 23:43:11


Huh?

Wizzup?

2011-03-27 05:12:27

From: Smartzkid

Huh?


Ranks are updated every hour. :)
https://github.com/MerlijnWajer/SRL-Stats/blob/master/stats.py#L208