Extended Fishing Stats

User discussion of Fishing Portal

Extended Fishing Stats

Postby SigmaJargon » Mon Aug 06, 2007 11:58 am

I posted this over in Top Fishers, but I think it deserves to be posted here too. Many thanks to El for making some of the Portal information public and in a Javascript friendly format. :D

~:: Extended Stats Update ::~

New Version:
  • v1.11
Bugs Fixed:
  • Removed the lake PI columns from Overall. They were making the Overall table far too wide.
  • Fixed a security flaw that could've allowed an attacker to run custom Javascript on everybody using the script if the hacked the Portal.
New Features:
  • Added an educated guess at the number of junk each person in Overall has. If you show up as having 0 junk, you either don't have any junk or I wasn't able to find a good estimate. This is still being fine-tuned. The junk estimate is factored into PI and Potential Durem Fish.
  • Added a feature to keep track of score increase since last refresh. When you refresh the page, the change in their score since you last looked will be listed in parentheses after their score.
  • Portal-rific! Thanks to a generous contribution by Elendilon, Extended Stats now knows if a fisher has completed a bucket within the last twenty minutes. Fishers who are active are listed in bright blue.
Screenshot(s):
Download Link:
  • http://sigmajargon.googlepages.com/extendedfishingstats.user.js

For those of you who want to use the script, remember that you have to have the Greasemonkey Firefox extension to make it work!
The truth is in the details.
User avatar
SigmaJargon
 
Posts: 29
Joined: Sat Jul 21, 2007 11:24 am
Location: Salt Lake City

Re: Extended Fishing Stats

Postby SigmaJargon » Thu Aug 09, 2007 11:34 am

~:: Extended Stats Update ::~

New Version:
  • v1.12
Bugs Fixed:
  • Fixed a security problem that could've allowed execution of malicious Javascript if somebody compromised the Portal.
  • Extended Stats now works with Gaia's new layout! Huzzah!
New Features:
  • None. Yet. :ninja:
Screenshot(s):
    Download Link:
    • http://sigmajargon.googlepages.com/extendedfishingstats.user.js

    For those of you who want to use the script, remember that you have to have the Greasemonkey Firefox extension to make it work!

    Maybe I should start tagging the filename with the version, just 'cause. >_> <_<
    The truth is in the details.
    User avatar
    SigmaJargon
     
    Posts: 29
    Joined: Sat Jul 21, 2007 11:24 am
    Location: Salt Lake City

    Re: Extended Fishing Stats

    Postby Acorns » Thu Aug 09, 2007 11:58 am

    Thats prolly a good idea :P Keep past versions around and all.

    I need to put in some more smilies here! :ninja:
    Acorns
    Site Admin
     
    Posts: 92
    Joined: Fri Jul 20, 2007 2:14 pm

    Re: Extended Fishing Stats

    Postby Acorns » Thu Aug 09, 2007 1:41 pm

    A couple of interest statistics:

    Over the past 24 hours http://fish.acornscity.com/export/currentfishers.json was accessed a total of 3843 times by 426 unique IPs. Of these requests, 721 returned a status code of 304 (aka they refreshed before the file had changed). The total CPU time used serving this page was 1.4 seconds, or roughly the equiv of 20 pageviews in Fishing Portal (except without the database usage!). Apache had the file loaded and ready to serve from memory for a little over 5 hours.

    Roughly 70% of the people who accessed the file were using a FF 2.0 on Windows.
    Most of the remaining were using a FF-like browser on Mac or Ubuntu (And I'm betting a lot of the Ubuntu-ness was me).
    1ish% was an unknown browser, and 1ish% was I.E. 6.0 (wtf?).

    Let me know if I didn't cover anything you'd like to see :)
    Acorns
    Site Admin
     
    Posts: 92
    Joined: Fri Jul 20, 2007 2:14 pm

    Re: Extended Fishing Stats

    Postby tiranaki » Fri Sep 07, 2007 8:42 am

    random <.< well I'm on a Mac, and I use FF, so that could have been me <.<;
    tiranaki
     
    Posts: 3
    Joined: Sat Jul 28, 2007 6:37 pm

    Re: Extended Fishing Stats

    Postby SigmaJargon » Sat Nov 03, 2007 5:35 pm

    Strange thing is it couldn't've been me with IE6 - I only have IE7. Somebody just poking around the script, I imagine, and pulled that out to take a look at the file or something.

    In any case, I have something exciting and new done for Extended Stats. Well, done enough to show y'all, anyways. Just because I love suspense and all that, here's a few preliminary thoughts:

    1.) The scoreboards are currently overrun with bots. This is terrible for competition, since you don't know where you are relative to your fellow fishers.
    2.) An unofficial scoreboard is one answer, but takes a large amount of time and effort on the part of the person maintaining the board. It also requires fishers to manually inform the person running the board of their stats.
    3.) Extended Stats is reasonably popular, and has access to users stats.

    Now, I think you can see where this is going. What if Extended Stats could be used to automatically construct an unofficial scoreboard? It can, in fact, be used this way. My proof-of-concept script can be found here:
    http://sigmajargon.googlepages.com/exte ... 00.user.js

    But, you ask, isn't it evil to steal user's stats without asking them? Yes, of course it is. So you have to opt-in to have your scores submitted. You'll find the option to do so tucked away at the bottom of the personal and personal history stats pages. After opt'ing in, any time you load either the personal or the personal history page, your current month's stats are sent to an off-Gaia site, which can be found here:
    http://sigmatest.bzhost.net/fish/

    Now, this site sucks. Not only is it ugly (I'll do CSS stuff at some point), but going off site to see stats would be sad. However, the script could easily complete the cycle by displaying the unofficial scoreboards somewhere on the normal stat pages of Gaia. And that would be delicious and wonderful.

    Opinions? Thoughts? Concerns?

    Oh, and I have a question for El - what do you use to convert stuff to JSON? The format is great, and I'd love to use it. Also, I really don't like the place I'm hosting the site at. They force ads on me and such. If you like the look of this, what are your thoughts on me stealing a corner of your web space and database to use?
    The truth is in the details.
    User avatar
    SigmaJargon
     
    Posts: 29
    Joined: Sat Jul 21, 2007 11:24 am
    Location: Salt Lake City

    Re: Extended Fishing Stats

    Postby Dragon Cross » Sat Nov 03, 2007 6:00 pm

    Rather its very cool. What features were added there?
    User avatar
    Dragon Cross
     
    Posts: 2
    Joined: Tue Jul 31, 2007 3:17 am
    Location: Philippines

    Re: Extended Fishing Stats

    Postby SigmaJargon » Sat Nov 03, 2007 6:11 pm

    Just the stat submission. Oh, and all the images were changed to gifs, because a 30x30 gif is about ten times smaller than a 30x30 png. ><
    The truth is in the details.
    User avatar
    SigmaJargon
     
    Posts: 29
    Joined: Sat Jul 21, 2007 11:24 am
    Location: Salt Lake City

    Re: Extended Fishing Stats

    Postby Acorns » Sun Nov 04, 2007 1:50 pm

    Very nice! I wrote up something like this when Portal was still on 1AND1, but having a remote server log into a users acct came too close to botting :( With the Javascript, it is all client side and not at all for the purpose of botting.

    Yes to DB and server space - I'll try and catch you on MSN sometime about this.

    Generally I work in PHP, so see http://jp.php.net/json . Most other langs have an equiv function/class though. (Oh, and for making an array->json in JS, steal prototype's function).
    Acorns
    Site Admin
     
    Posts: 92
    Joined: Fri Jul 20, 2007 2:14 pm

    Re: Extended Fishing Stats

    Postby SigmaJargon » Sun Nov 04, 2007 6:34 pm

    Huzzah for webspace, working, and a new released version of the script. Say hello to version 2.02! :mrgreen:

    http://sigmajargon.googlepages.com/exte ... 02.user.js

    Posted it over in the TF monthly thread. Hopefully I can coerce some trophy fishers into opting in.
    The truth is in the details.
    User avatar
    SigmaJargon
     
    Posts: 29
    Joined: Sat Jul 21, 2007 11:24 am
    Location: Salt Lake City

    Next

    Return to Discussion

    Who is online

    Users browsing this forum: No registered users and 6 guests

    cron