« first day (6 days earlier)      last day (35 days later) » 

10:02 PM
@TravisJ sorry, no, no time tonight.
Apologies, I had closed one tab too many, then counted out tabs wrong.
 
Expected nothing less.
@MartijnPieters does not look at titles. He counts them.
 
As long as he does not counts them in binary he can stays in the human league. :)
 
41
A: I am a hater because people do not understand voting patterns properly

Brad LarsonEvery moderator election, someone comes along and questions the voting history of nominees. To someone unfamiliar with the site and how things operate here, at first glance a high number of downvotes would seem to indicate harsh treatment of others. That's not at all the case. In my experience, t...

 
@AstroCB your JS is bad and you should feel bad :D
 
@BenjaminGruenbaum Hastily created prototypes are the best kind.
 
10:20 PM
I couldn't decide, I voted on all nominees
 
@AstroCB @b.enoit.be You’ve seen the userscript?
@Jonathan I don’t think that’s helpful :P
 
@AstroCB Just make a chatbot that spams the room every 30 minutes or something
 
So, in the primary, we can vote for as many people as we want?
 
@Z̷͙̗̻͖̣̹͉̫̬̪̖̤͆ͤ̓ͫͭ̀̐͜͞ͅͅαлγo Yup. Some people cast votes for all of them.
 
10:25 PM
Apparently, but I've evidently forgotten.
 
@AstroCB xD (thanks! ;) )
 
The Fiddle is cross-domain, though, so you can use it anywhere you'd like.
 
@AstroCB can I plz make it pretty?
 
@BenjaminGruenbaum Do with it as you wish.
 
10:27 PM
@Z̷͙̗̻͖̣̹͉̫̬̪̖̤͆ͤ̓ͫͭ̀̐͜͞ͅͅαлγo Only if they're all upvotes or all downvotes. :D
 
@AstroCB what do you think? jsfiddle.net/v8srsxd3
 
@BenjaminGruenbaum Much better.
 
:)
JW, why didn't you use jQuery?
 
FWIW I wrote it the other way because I planned on adding it to xkcdBot's userscript, and that's the format that it needs (with the exception of the querySelectors – those are a needed improvement).
@BenjaminGruenbaum ^
 
10:39 PM
1
Q: Strange vote totals in elections

justcool393It seems to be that there are some odd things with how voting is in elections, compared to normal posts. For the first post, the vote count +318|-105 seems to be correct (there seems to have been a downvote from when I cast a vote), but the vote totals doesn't show a "-" symbol on the downvotes ...

 
@Z̷͙̗̻͖̣̹͉̫̬̪̖̤͆ͤ̓ͫͭ̀̐͜͞ͅͅαлγo WTH is that first character(s) in your name 0.o
 
Hey guys test this: disorient.ddns.net/SOVoteMonitor live vote count monitor, updates every 5 seconds. Let me know if it works. Don't pass the link around outside of the chatroom, I don't want to get hammered with requests.
7
 
Nice idea
 
@JasonC What server side do you use?
 
@JasonC nice!
 
10:42 PM
would be cool to have a more persistent change column (if you don’t watch every 5 seconds)
 
@SecondRikudo It's a servlet, Tomcat 7, I poll the site every 5 seconds server side for updates. It's easy on SO.
 
Also, WebSockets WebSockets WebSockets :)
@JasonC Ah well, guess WebSockets are out of the question then.
 
@JasonC Why java?
 
Yeah, I'm not really a web programmer, it was a little bit of a struggle as-is. That's the first time I used jquery too.
@BenjaminGruenbaum Because I had eclipse open already when I thought of it.
 
Oh, if it's your first time then nice work :D
 
10:44 PM
@Jonathan Zalgo
 
@JasonC I suspect a bug
 
Also my web server already runs tomcat.
 
I see -1s on me, but my score goes up
 
@SecondRikudo What's up
 
@poke Ah thanks, it's nice
 
10:45 PM
Oh I think I inverted the change thing, duh. One sec.
 
I'll be writing my code variables in this from now on
 
@JasonC Looks like it
 
Fixed, refresh the page.
 
@JasonC Nifty, thanks for that! If you work on it any more, consider adding a line marking the cut-off below #10 (or just the ranks in general).
 
@JasonC Cheers
Very nice
Do you have the source code posted anywhere?
 
10:47 PM
@SecondRikudo I'll throw it on github in a little bit
 
I might give it a go in node in a short while
I've been looking for an excuse to practice my WebSockets :P
 
It’s funny how elections always turn into little code contests for the most useful gadgets.
 
I know, right
 
@poke yeah.... no-one really cares who gets made mod... it's another excuse to write code! :p
 
It’s as if we don’t have real things to do..
 
10:51 PM
You can generally tell when I have a lot of work to do, because I start procrastinating with things like this.
 
:D
 
@JasonC That page is the most distracting and stressful thing I have ever seen.
 
11:18 PM
@JasonC I wasted so much time staring at that.
 
@JasonC You should thicken the line below the 10th name so the cutoff is more obvious
Also just viewe'd source
> // i copied this from meagar's so chat message
:)
 
Chat user contributions are cc-by-sa 3.0 :P
 
heheh
 
Refresh the page it's way better now. cc @meagar
 
11:25 PM
Hey - that looks cool
 
refreshes
Oh thank god, I'm OK
 
You should post this in the Tavern, @JasonC.
 
What does reset() do?
 
resets all candidates back to 0
we should avoid pushing it
 
Ohhh there's an accumulative count now
 
11:44 PM
@SecondRikudo github.com/JC3/SOVoteMonitor is probably most of the source.
 
Java? removes upvote for JasonC
 
@JasonC You should add another dividing line to denote candidates ≤ 0.
 
@rlemon We went over this already, lol.
 
@AstroCB Ha, I suppose I could. I could show the actual up/down vote counts too, I guess.
 
11:48 PM
@JasonC You might not want to poll SE that hard.
 
@BenjaminGruenbaum Dude I know nothing about web programming. Every single line of that JSP file was a google search.
 
k, just so you know, the whole backend of that code is literally 10 lines of nodejs
 
@BenjaminGruenbaum You love it.
I believe you. I have no pride in this code.
My thought process was literally, "Hm, it would be cool to see the vote counts. Hm, Eclipse is already open and the server right next to me is running Tomcat." -> 30 minutes -> "Deploy."
 
You should have pride in the code because it's successfully doing a useful job that we appreciate, and that matters more than theoretical issues. :D
Perfect code is for blog posts, not software.
 
11:52 PM
@AstroCB It's probably not too bad. I'm only making one request to SO total per 5 seconds, everybody else gets it from my local cache.
I could also just display a random positive and negative number that add up to be the vote count.
I mean 3 seconds.
 
let [express, cheerio, request] = ["express", "cheerio", "request"].map(require);
express().get("/data", (req, resp) => {
    request(" "http://stackoverflow.com/election/6?tab=primary", (err, data) => {
          resp.json(cheerio.load(data).find("tr[id*=post]").map((i, el) => ({
              username: $(el).find(".user-details a ").text(),
              profile: $(el).find(".user-details a").attr("href"),
              score: $(el).find(".vote-count-post").text()
         })).get());
    })
}).listen(80);
Literally self contained code I wrote in the browser that does what your Java does, only it doesn't parse HTML with regex :P
Not trying to get you to not like your code, but learn node :)
 
@BenjaminGruenbaum Fwiw that parses a url, not html.
I'll happily learn node as soon as somebody pays me to.
 
A lot of votes in the first 4 hours... Spose it'll start picking up again soon as more people are up...
 
Raghav may pull ahead once utc+5 wakes up.
 
11:59 PM
@BenjaminGruenbaum Run that code so we can see you IP banned. :P
 

« first day (6 days earlier)      last day (35 days later) »