-1

Just wanted to know for fun who has hit the highest score hit for a single given day? And if possible, how can I determine mine? Thanks.

6
  • 3
    Why so many question marks? Also: you should have figured out by now, that greetings in questions are not good practice on these sites.
    – fretje
    May 4, 2010 at 8:26
  • 5
    The same goes for whining on down-votes.
    – fretje
    May 4, 2010 at 8:32
  • 1
    @Sarfraz never mind the downvotes. Meta is a ... special place :)
    – Pekka
    May 4, 2010 at 9:28
  • 1
    @Pekka, a harsh, but special place ;-)
    – Andy E
    May 4, 2010 at 11:19
  • @Andy E that sums it up pretty well. :)
    – Pekka
    May 4, 2010 at 12:17
  • Plug for my FAQ proposal: meta.stackexchange.com/questions/47634/…
    – Pops
    May 4, 2010 at 14:03

2 Answers 2

5

Disclaimer: I haven't checked everyone.

Paste the following code into LINQPad:

DateTime Zero = new DateTime(1970, 1, 1, 0,0,0, DateTimeKind.Local);
void Main()
{
    DayReport[] days = null;
    //Hans Passant: 17034
    //Jon Skeet:    22656
    //Marc Gravell: 23354
    //Cletus:       18393
    //Guffa:        69083
    //SLaks:        34397
    //tvanfosson:   12950
    //JaredPar:     23283
    using (var reader = OpenPage(34397)) {
        string line;
        while(null != (line = reader.ReadLine())) {
            const string repArrayPrefix = "var d = [";

            line = line.Trim();
            if (line.StartsWith("<title>"))
                line.Dump();
            else if(line.StartsWith(repArrayPrefix)) {
                line = line.Substring(repArrayPrefix.Length).TrimEnd(';', ']');

                days = (from s in line.Split(new [] { "],[" }, StringSplitOptions.None)
                        let comma = s.IndexOf(',')
                        select new DayReport {
                            Date = Zero.AddMilliseconds(long.Parse(s.Remove(comma).TrimStart('['))),
                            FinalRep = int.Parse(s.Substring(comma + 1).TrimEnd(']'))
                        }).ToArray();
                break;
            }
        }
    }
    days[0].DeltaRep = days[0].FinalRep;
    for(int i = 1; i < days.Length; i++) 
        days[i].DeltaRep = days[i].FinalRep - days[i - 1].FinalRep;

    days.OrderByDescending(d => d.DeltaRep).Dump();
}

static StreamReader OpenPage(int userid) {
    using(var wc = new WebClient()) {
        return new StreamReader(wc.OpenRead("https://stackoverflow.com/users/" + userid + "?tab=reputationhistory"));
    }

}

// Define other methods and classes here
class DayReport {
    public DateTime Date { get; set; }
    public int FinalRep { get; set; } 
    public int DeltaRep { get; set; } 
}
12
  • With a 615 (2009-08-26) I'm not doing too badly, but I thought Jon had some much bigger numbers. Might want to double-check that... May 4, 2010 at 14:12
  • @Marc: Feel free to edit in your score. Jon Skeet consistently gets higher (but not highest) deltas; he probably has more 400's than anyone else.
    – SLaks
    May 4, 2010 at 14:17
  • Note; the above 615 doesn't show on your query; it might not be reliable for this purpose... I won't edit it in because the 615 is from the rep-report, not this query. May 4, 2010 at 14:17
  • I've never even hit 300, according to my rep report. Possibly because I don't think I've ever posted more than five answers in a day, and I've never won a bounty on SO.
    – mmyers
    May 4, 2010 at 14:24
  • @mmyers: Believe it or not, I've never won a bounty either.
    – SLaks
    May 4, 2010 at 14:25
  • Then that is a jaw-dropping number of accepted answers. What is that, 28 and one downvote? (I've posted 28 answers since March 17, but I have slowed quite a bit.)
    – mmyers
    May 4, 2010 at 14:41
  • SLaks is the fastest gun in the popular tags :) Mine doesn't come above 600. I've two in 500+ range (both feeded by a 250-rep bounty), five in 400+ range, over a quart in 300+ range and for remnant almost all in 200+ range.
    – user138231
    May 4, 2010 at 15:07
  • @Slaks great work!
    – Pekka
    May 4, 2010 at 17:21
  • I got 140 upvotes that day.
    – SLaks
    May 4, 2010 at 18:25
  • @Marc: this problem may be related to the fact that the datasource of the reputation graph has still to be updated to reflect the "Big Recalc" last March. It are still the old values from before March. Also see this topic.
    – user138231
    May 4, 2010 at 19:08
  • According to my current rep report, my best day was June 30th 2009, when I received 755 - but that was including a bounty worth 300.
    – Jon Skeet
    May 28, 2010 at 16:20
  • Does this include bounties? If yes, my highest score is -- 2010-02-18 rep +870 (from my reputation report). Jun 17, 2010 at 23:46
1
  1. Should be possible by querying the data dump, but I don't know how to in detail.

  2. www.stackoverflow.com/reputation

3
  • The data dump won't work with 100% precision because the -1 you get for downvoting aren't available. But close enough.
    – balpha StaffMod
    May 4, 2010 at 8:04
  • I can't figure out where to find that out on dump and which user has the highest.
    – Sarfraz
    May 4, 2010 at 8:11
  • 1
    @Sarfraz: sqlserverpedia.com/wiki/… and w3schools.com/SQL
    – user138231
    May 4, 2010 at 13:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .