« first day (1640 days earlier)      last day (3307 days later) » 

user559633
8:00 PM
how did they have steaks without a cattle car?
 
@tristan I figured it was just a super badass nuclear reactor or something with a long but not infinite capability.
 
user559633
what did they feed the cockroaches?
 
user559633
who was even so far as to be dog then?
 
I was wondering where the cockroaches came from too. Maybe they scooped them up from outside? How cold of an environment can a cockroach survive in?
 
user559633
and has anyone even so far even as decided to use even go want to do look more like?
 
8:03 PM
Yes. Yes they has.
 
user559633
oh, thank you then
 
Tristan's gone full tk 2 da bar|
 
user559633
Press X to dash!
 
@Ffisegydd went to lunch, have meeting, then will make example. I agree on needing gin.
 
user559633
>_>
 
user559633
8:05 PM
I submitted a proposal to give a talk at a conference.
 
user559633
Joke's on them: I lock up and feel like I'm going to pass out and die when I have to speak to a room of more than 5 people
 
I think you're being too hard on Snowpiercer. I was just delighted to get like, a thinly veiled social commentary like that. It was like an Ayn Rand story if she dropped acid.
 
Okay - that's my voting done...
 
If I ever invent a perpetual energy device right before the beginning of an endless artificial winter, rather than using it to power an ultra-train, I'll build a million and heat the atmosphere right back up.
 
user559633
8:05 PM
Read it as "gravitational cleansing"
 
I'm too stunned to vote.
 
That's my signature style. 90% mad science, 10% common sense.
 
user559633
@Kevin what kind of perpetual energy device? like duct-taping an air conditioner to an oven?
 
@MartijnPieters bahahahahaha nearly 200 now.
 
@MartijnPieters in the time it took me to click upvote, you got 12 more votes
 
8:08 PM
Oh our ninja is on the top.
 
remember to vote for the puppy as well!
 
user559633
i voted for the ninja and the puppy
 
is there any way to sort the nominees by votes?
 
no, it even says so in the sidebar: random order
 
@tristan upvoted right - don't want you to get it the wrong way around :)
 
8:09 PM
Holy bloody hell Martijn just got 100 in a few minutes between refreshing.
 
@tristan I've toyed with the "cat and buttered toast turbine" but maintenance is a nightmare. You'll get crumbs in your scratch wounds.
 
also remember, you can vote for more than three users
 
@davidsm someone had a script last year that periodically ordered them and posted it in the election room
 
user559633
@JonClements glances meaningfully to the tip jar on the table
 
@Ffisegydd yep,, too faaaaaaaaaaast.
 
8:10 PM
I wish we could have gotten the votes with time as data.
 
vote for people you want to hear more from, the vote doesn't decide the final mods yet
 
user559633
Vote for the Puppy and the Ninja
 
DSM
Cabbage, all.
 
Cbg @DSM
 
user559633
Good god, over 400 now.
 
8:12 PM
/me discretely puts some notes in @tristan's jar
 
user559633
Greetings DSM
 
cbg @DSM
 
Oh three legged puppy also going too fast.
 
user559633
opens note this note just says "sod off" and has a crude drawing of a penis
 
weired, how he run too fast with three legs.
 
8:13 PM
@MartijnPieters done :P
 
Puppy done. Martjin done..
 
Python 3.4.2 (default, Oct  8 2014, 13:08:17)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> b'Hello %b' % b'world'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for %: 'bytes' and 'bytes'
>>> import megahack
>>> b'Hello %b' % b'world'
b'Hello world'
I backported it from Python 3.5
 
So my pretties, are we having a wee bet? Picking the three we think will get mod?
 
+1 for Martijn :)
 
martijn, joncle and unihedro :D
I will get angry if that deceze becomes a mod, what a waste
 
8:14 PM
@Antti those are the three I'd probably vote for :P
 
Well... if Martijn doesn't get mod... the election's fixed and needs to be re-run :)
 
@JonClements ^ did you see my megahack :D
 
@AnttiHaapala well... just upvote the ones you want in the final 10, downvote the ones you definitely don't want, and don't vote on "blah - don't mind"
 
cbg all
 
cbg @tzaman
 
8:16 PM
any experienced bs4/lxml guys here?
I used to love bs4, but I'm not thinking one should just always use bs4 :/
 
now*
eh, always lxml* man
it's just so much faster
 
Sorry ignore that.
 
hmmhm
 
user559633
je refuse
 
8:18 PM
the bad thing about this bytes thingie is that ...
it uses pyunicode_formatlong
 
@PascalvKooten bs4 can use lxml as the parsing engine....
 
in Stack Overflow 2015 Moderator Election Chat, 12 secs ago, by meagar
$($('table:first > tbody > tr').detach().sort(function(a, b) { return ($(b).find('.vote-count-post').text() | 0) - ($(a).find('.vote-count-post').text() | 0) })).appendTo('table:first')
 
@JonClements But my benchmarks show no speedup
not the roughly 10x shown by using simply lxml
 
hmhm
next in, how to hack parser so that it would parse u'' prefix :P
in 3.2 :P
 
@JonClements I used some pages as examples:
# lxml 7.282546043395996
# soup default 50.42802596092224
# soup lxml 78.93327498435974
default & lxml switched
 
8:22 PM
I imagine it's because BS is going to have Python object overhead, instead of being able to use lxml as a compiled lib
it'd be interesting to see what the timing for producing an lxml.objectify does...
 
in Stack Overflow 2015 Moderator Election Chat, 3 mins ago, by AstroCB
// ==UserScript==
// @name           Simplify Election Pages
// @namespace      http://github.com/AstroCB
// @author         Cameron Bernhardt (AstroCB)
// @description  Hides post text on the election page for those who already know where their votes are going
// @version        1.0
// @include        http://stackoverflow.com/election
// ==/UserScript==
var posts = document.getElementsByClassName("post-text");
for (var i = 0; i < posts.length; i++) {
	posts[i].hidden = "true";
}
Nice Userscript to remove the text.
 
Well, I really loved bs4. But the speedup is just so ridiculous that one should just go with lxml
 
user559633
@PascalvKooten agreed. lxml is the right choice
 
meager is looking strong.
 
@JonClements: you are doing pretty spiffy there too!
 
8:26 PM
I feel sorry for some of the candidates that are getting really heavily downvoted though
 
@MartijnPieters WHAT a lead! Take a bow
 
DSM
Can't leave a good taste in one's mouth.
 
As expected
 
I'm going to write "sky"
from sky import scraper
 
user2555451
Having Martijn go through the election is a huge waste of time. They should just have given him the modship.
 
8:27 PM
a smart scraper
anyone interested in the ideas lol?
 
I asked around, and everyone said Martijn would be running, so I stayed out so he'd come in first.
 
user2555451
Call him a "company appointed" mod.
 
DSM
@iCodez: process matters, though. The balance between SO the company and SO the community needs to be maintained.
 
@Jon Puppy 's in 3rd place ... C'mon get to 2nd
 
8:28 PM
@Martijn you've almost got 1000! Go Martijn!!!!
 
martijn has gotten 700 votes in the last 30 minutes, omg!
 
user559633
@PascalvKooten we're all working on things in the room, so you'll probably have more luck after you work on it for a while and put the code on github
 
I hate the guy who made it random. I wanted to order it vote wise
 
user2555451
@DSM - I was mostly joking. :)
 
DSM
Why? @BhargavRao
 
user559633
8:30 PM
@BhargavRao that's a strong emotion
 
@tristan I have a huge list of features, and parts are on github yet
 
@Ffisegydd yeah... haven't forgotten that - it shows a certain amount of presumption to answer it now though really :)
 
@BhargavRao chat.stackoverflow.com/transcript/message/22659020#22659020 for a userscript to sort and reduce the text automagically.
 
gooooood
 
Grats on the 1000 votes Martijn.
 
8:31 PM
Wow..
 
whoa, it was 400 five minutes ago
and gratz!
 
C'mon Ninja. Get to 10,000 asap
 
pretty much i want a scraper that kind of suggests conflicts that can be resolved by a user whenever they want
 
Woah! Refresh and it randomizes again
 
one of the features would be that it will detect whether selenium is needed, or requests is fine
 
8:34 PM
hey
 
@BhargavRao that's kinda the point of randomised. :P
 
anyone here owns a drone?
 
DSM
I might not even have shown the vote totals at all, TBH, but I don't mind that they did.
 
@BhargavRao don't count your chickens etc...
 
8:36 PM
@Bhargav don't count your chickens
 
@Ffisegydd that was spooky
 
lol
That timing
 
They'll be one mod from this room anyway :)
 
user2555451
I wonder if showing the totals influences voting. I mean, people might think "why bother" for candidates who could not possibly win.
 
It makes us look bad/dickish. I had to cancel stars on someone saying the same thing a few days ago.
 
8:37 PM
deleted not to influence :D
 
@iCodez I'd imagine it does yes.
 
DSM
Remind me to bring up at the next room meeting that I'm not a fan of starring personally-aimed criticisms (the usual in-jokes between the regulars excepted). Sometimes we've had three or four stars on a comment about a visitor passing through who admittedly didn't cover themselves with glory, but still.
 
1164 for Martijn
 
user2555451
Well, looks like someone else thought the same:
 
user2555451
3
Q: In StackOverflow elections, should the vote counts be hidden until after the election?

BlowskiIn the current Stackoverflow election, I noticed that the vote counts are displayed alongside each candidate. I wonder whether this leads to a 'hive mind' where people who already have a lot of votes attract more votes. In real life elections, reporters are often banned from reporting poll count...

 
8:39 PM
is that possible to parse the vote count through BS?
 
Obviously this is happening with Martijn's election. — Mike McCaughan 3 mins ago
:D
 
is there anyone trying this in the background?
 
parse the vote count with bs?
just use selenium haha
 
@AvinashRaj Not yet asleep? Njoying elections?
 
@BhargavRao yep, What about the match?
 
8:44 PM
Don't ask thaat
:(
 
:-)
 
Also realized that @JonClements has the least number of downvotes
 
cbg
 
cbg
:)
 
@MartijnPieters eval:
Python 3.4.2 (default, Oct  8 2014, 13:08:17)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import megahack
>>> list({'1': 5, 2: 6}.iterkeys())
['1', 2]
>>> b'Hello %s' % b'world'
b'Hello world'
 
8:55 PM
@Antti what are you doing? :p
 
python 2 compatibility in Cpython3.4
and 3.3
and 3.2
 
1500 mark for Martijn.
 
Any idea how many eligible voters are there on SO?
 
how much rep is needed to vote?
 
150
> Any community member with 150 reputation may vote in the primary.
 
8:58 PM
do you get the +100 rep if you are high rep on another SE and link an acct to SO?
 
It's soooooooooock time!
 
yep
 
lol
@BhargavRao over 1/2 of all users do not have any rep at all :D
 
user559633
which half?
 
of all users on stackoverflow
 
9:00 PM
@AnttiHaapala That's why I asked eligible voters :P
Jon's pace has reduced -or- others have picked up
 
@BhargavRao about 260k
joncle still 3rd
this is the beauty contest again
three legged puppies are not the favs
 
Jon's got the least dvs still
So no one hates puppies
 
It looks like the key thing is which candidates get Martijn's second votes...
 
lol
I gave it to you Jon :P
 
@BhargavRao There are 225k users with 200+ points, so 300k people maybe?
I can do a SEDE query.
 
9:07 PM
Naw! Don't take that trouble. N'joy your last few days as a normal SO user
:D
 
normal? How is Martijn normal? :p
 
user559633
@JonClements i thought that's just how dutch people are with python
 
Okay, I finished voting Phew
 
271000 that's a far way from 1900 at present
 
9:11 PM
@BhargavRao don't forget - a large percentage don't bother taking part
 
I'm surprised. There were some candidates I liked who are on -ve score.
 
Well, I'll wait till Jon get's 1k and then I'll continue my job
 
@Bhargav I don't believe your abstaining from doing any work is doing to affect the votes :p
 
:D
Unihedro's neck to neck +119 -118
 
4
Q: StackExchange Election: Primary counter

pokeI want to keep an eye on the votes of the ongoing election, but the unsortedness of the list during the primary election phase makes it hard to keep track of anything. So I wrote a quick script that goes through them all and puts a short overview list at the top, sorted by the current vote count....

^ This was just updated for the new election
 
9:20 PM
- 180
Doorknob 1161
Raghav Sood 1346
Undo 1356
Matt 1378
Jon Clements 1528
Siddharth Rout 1718
meagar 1897
0x7fffffff 1921
bluefeet 3340
Bohemian 5655
these from last yr
first votes
the 3 most voted in primaries were elected as moderators
 
meager ... just missed
 
@BhargavRao it is 3 vote stv
I didn't calculate how far was it
but I think joncle needs all the 1st votes he can get :D
 
100k or so of them should do it :)
 
@MartijnPieters I’m confused?
 
9:28 PM
@poke You wrote that userscript
I posted an updated version in the comments, you could apply the changes to the gist.
Then anyone using the script will get the update.
 
Yes. And I updated it ~15 minutes ago to work with this election. As I wrote about 11 lines above your message here :P
9 mins ago, by poke
^ This was just updated for the new election
 
@JonClements Congrats on 1k
@MartijnPieters Congrats on 2k
Rbrb
 
@poke ah.
 
:D
 
I had 1.2.0, I see that there is an update. :-P
 
9:31 PM
Indeed ;D
Good to know that you didn’t forget about the userscript though! Thanks :D
 
@MartijnPieters why would a C type __dict__ remember that it didn't have a certain method?
 
Woo! 1kgrtz, @Jon :-)
 
@AnttiHaapala hrm?
 
my megahack...
 
Now I'll stop refreshing every five seconds :-)
 
9:35 PM
this is very surprising
if I try to call {}.iterkeys() before importing my hack, I get:
>>> list({}.iterkeys())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'dict' object has no attribute 'iterkeys'
>>> list({}.itervalues())
[]
afterwards...
>>> dict.__dict__['iterkeys']
<method 'iterkeys' of 'dict' objects>
>>> dict.__dict__['itervalues']
<method 'itervalues' of 'dict' objects>
they are still cached elsewhere but where :d
 
I'm out of time for tonight, sorry.
 
@Martijn been crushed by all your votes? :p
 
> You may only fetch vote counts once every second
meh :(
So much for querying them all at once
 
10:03 PM
How much does Unutbu have a point about the need to explain "in place" here?
0
Q: mutable objects changed in-place means what?

phoenixwu0229only mutable objects can be changed in-place; strings, tuples, and other objects will always have to create new objects if you change them. What does in-place mean here,and why tuples, strings are special cases here

I stand by my duping there, myself.
 
+1 dupe
my only quibble is that it's rather unfortunate there is no Accepted answer on the marked dupe
 
10:21 PM
stackapps.com/questions/4548/… <- has a function to query the vote count (individually) now.
 
10:46 PM
>>> f̜̩͇̎̎͋́ͫͫ́ͭͨ́͝o̵ͫ̿̈͌̉̈̄̋̽͢͏͉̪̟̗o̟͙̝̼͒͊͋ = 'bar'
>>> f̜̩͇̎̎͋́ͫͫ́ͭͨ́͝o̵ͫ̿̈͌̉̈̄̋̽͢͏͉̪̟̗o̟͙̝̼͒͊͋
'bar
 
Wow... these questions are fun
 
Air
11:03 PM
Someone familiar with pygame/livewires want to sanity check the mutable default argument in this answer?
My gut says ohnoes, but perhaps it's part of how you're supposed to implement the exercises in the referenced book, which I've never read
 
11:32 PM
Wow... those 12 questions took a while
 
11:45 PM
Hey guys, how would you tackle a crazy exercise like this postimg.org/image/5zp77dy0z where there are so many conditions. This is the final exercise of my beginner's tutorial on grok and I'd appreciate a few or any tips
 
@poke lol exactly why i dislike unicode variable names :P
@Roger i would use pyparsing and write a lexer/grammar
 
I'm not sure what those are. Only started programming/python 3 weeks ago through grok tutorials
 
i dont know what grok tutorials are
 
python tutorials :)
 
but if it was a tutorial I would have expected them to cover how to do it somewhere previous to the excersize
 
11:51 PM
They've introduced all the functions and statements required to do it
But one thing i can't figure out how to do is return a number of letters, for example 3, 2, 1,1,1
 
return "ab"?
is 2 letters?
 
yea, like the last example
"bokoNNNN
returns
["bo", "ko", "N", "N", "N", "N"]
 
uh huh ... I saw your picture .... it explains the transition from the original string to the parsed string
 

« first day (1640 days earlier)      last day (3307 days later) »