« first day (2333 days earlier)      last day (2600 days later) » 

12:14 AM
Lol wat
WOW THANKS A LOT U WORTHLESS BEING!! UR A LOSER ALL THE WAY! — Polly Programmmer 3 mins ago
Can't flag from bed :D
Also, cv-pls. Lacking error and probably spaces vs tabs or other typo
 
Flagged, CV'd and -1'd.
 
thx
 
DSM
Just for posterity:
> U GUYS R SUCH SCRUBS U STUPID MEMBERS OF STACK OVERFLOW!!! DELETING MY COMMENTS LIKE WTF!!!! WHERE DID ALL THE RESPECT GO?!?!?!?! I WILL HAVE TO LET U KNOW THAT I AM THE BEST PROGRAMMER EVER TO LIVE ON THE FACE OF EARTH!!! I WAS MERELY TESTING U PEOPLE CUZ I THOUGHT EVERYONE LOST THEIR MINDS!!! HOW DARE U PEOPLE DISRESPECT ME LIKE THIS?!?!?!?!? U GUYS DONT DESERVE RESPECT FROM A HOBO LIVING ON THE STREETS OF CHICAGO!!!
Big ups to Chicago!
 
Awesome :-D
Polly really seems to want a comment ban.
 
12:36 AM
Input = ['1','518','51']
....
a = str(Input[1]).strip('[]')
b = int(a)
Ok that requires a lot of explaining...
 
Well, if there's one thing we've established beyond doubt, it's that Polly Programmer will respond to any answer you post in a mature and rational fashion …
 
1:09 AM
Cabbage
 
@paul23 When code is that bad the OP clearly needs more help than what SO can supply. And with an attitude like that who'd want to help them. I guess a rep-farmer might respond with a code dump, but they're unlikely to explain the actual problems with the original code.
 
1:24 AM
Is there a close reason "You need help, go look for a professional!"?
 
There used to be "Lacks minimal understanding" but it got abused, so the powers that be got rid of it.
 
I was idly mulling the idea of a "too easy" / "too hard" parallel voting mechanism for SO the other day - no effect on rep, but could be used to filter a question feed toward those who'd find it the appropriate level of interest/challenge.
Idea being that SO is clearly never going to be able to end the "flood of crap" problem, but might be able to direct the flood a little better. Nothing that radical is ever going to happen, I know, but I amused myself for a while considering how you'd do it.
@paul23 An old favourite:
Jun 5 '14 at 11:56, by Zero Piraeus
@Kevin "lacks minimal grip on reality" might be better in this case.
 
1:56 AM
@ZeroPiraeus I originally thought that the Triage queue was going to tackle that, but I spent about half an hour working the queue and ran away screaming. ;)
 
I haven't touched Triage in a long time ... when I last did, the categories were horrendously ill-defined.
SO does seem to have a recurring habit of half-assing something then getting bored (or, in the case of Docs, quarter-assing it and then stubbornly refusing to put it out of its misery).
Actually I suppose they have put a lot of work into Docs. I retract "quarter-assing" in favour of "wrong-assing".
 
To put it frankly: I think documentation is typically not something you wish to stay community moderated.
 
You just need a person who makes sure everything is described in a similar way and guards the overall quality.
Just first thing I could open: stackoverflow.com/documentation/c%2b%2b/511/…
It doesn't look like documentation, it looks like chaos
 
 
2 hours later…
3:59 AM
Cabbage :-)
 
 
1 hour later…
5:14 AM
recbg
 
 
1 hour later…
6:19 AM
cbg
 
6:40 AM
cbg 0/
 
 
1 hour later…
7:43 AM
Regarding Polly: there's a long-time troll in JS (java?) posting weird code with weirder alleged errors. I wouldn't be surprised if this was a similar troll or even a new one looking for new hunting grounds.
 
8:07 AM
@AndrasDeak what account is that?
 
@MartijnPieters this nuked one...
And I couldn't find the reference to which I remembered on meta
 
Different troll from the JS one. The JS troll doesn't get as nasty as this one did.
 
cabbage
 
8:23 AM
@MartijnPieters thanks:) Good to know we might have a new one just for ourselves;)
 
@DSM: perhaps not re-post troll rants in the future; don't feed em by giving attention to rants like that.
@AndrasDeak Oh, I'm not sure that's a new one, but I'm not going to feed that ego either if I'm right.
I've cancelled the stars on that post for that reason.
 
Sure thing.
 
Cabbage.
 
cbg
 
I was so tempted to post a pithy comment to Polly, but I realised that that would just be giving them attention, so I decided that the best course was to close-vote, flag the comment, and move on.
Hi, Andras Denk. :)
 
8:32 AM
:D
 
TIL: idjaw programmed the internet. :)
 
We're a skillful lot
idjaw might be the very first Elder of the Internet
 
Cbg rbrb
 
bbq
rbrb from me too
 
 
1 hour later…
9:52 AM
@thefourtheye Wore the SE shirt for the first time to office, someone asked me if I have 100k on meta SE :D
 
"Nope, I am much cooler than that"
 
@BhargavRao Did you reply: "No, nothing like that. I'm just a diamond mod..."
 
Lol, I should have said that.
 
cbg folks
 
cabbage
 
10:16 AM
Cabbage!
 
10:36 AM
cbg
 
how can i get only 'GM' from 'PUBLIC- (TICKER: GM) HEADQUARTERS'
i just want to get the 'Ticker value"
PUBLIC- (TICKER: etc) HEADQUARTERS
need to get etc
 
@SohaibAsif Do you know much about strings in Python? Or perhaps regular expressions in Python?
 
good morning folks
 
10:52 AM
morning
 
@SohaibAsif specifiy start and stop position => x = yourstring[3:5]
but be careful if your GM/etc has different lengths at times.
 
...
@Cribber cbg
 
@AnttiHaapala yeah :(
(Also cbg)
 
cbg?
sorry, I dont know what that means.
 
10:54 AM
Greetings, @Cribber. Take a look at our room rules, and the link to Salad Language
 
alright, cool thanks!
 
Also it's generally better to point people at docs so they learn instead of giving them what might be a fragile answer, but that'll come with time :-)
 
that's true :D
 
@SohaibAsif You could do that with a simple regex, but since the start and end portions of the source string have fixed length it's pretty easy to extract the desired field using string slicing.
 
Hey guyz
 
10:57 AM
Sorry for that then, tbh im new to the chat - just saw it as a functionality on the site so I thought I check it out ;)
 
No problem at all, just a little nudge. Nothing to apologise about!
 
What Robert said.
 
And welcome, on top of that. :)
 
What PM said
 
...what Khajvah said?
 
10:58 AM
It is however dangerous to assume that you can open this room and ever close it again. It's been my browser tab #1 for a couple of years now!
 
(Just realised I've been pronouncing @khajvah's name wrong in my head all this time)
 
@GaneshKumar Hi, Ganesh.
 
pronouncing?
or spelt?
 
Can you even pronounce something that isn't a pronoun? Wake up, sheeple!
 
10:59 AM
The latter as a consequence of the former.
 
@Withnail I assume it rhymes with "casbah", but I could be totally wrong. :)
 
how does one pronounce Khazhak
 
11:09 AM
@BhargavRao Cool... People recognise huh :-)
 
11:21 AM
@PM2Ring yeah
@AnttiHaapala English is missing two letters from my name
@AnttiHaapala хажак
that's in Russian
 
@thefourtheye Lol, yep.
 
Then you are in the right place ;-)
 
If a programmer doesn't recognise Stack Overflow, what on earth are they doing working as a programmer?
 
Apparently, database guys and few system admins don't know about SO :-/
 
@PM2Ring Perhaps they are reading TFM. They are soo good that they don't need Stack Overflow.
:D
 
11:29 AM
Fair point. After all, SO didn't exist when I learned to program. For that matter the Web or personal computers didn't exist when I learned to program. :) OTOH, it's silly to ignore a useful resource like SO when it's only a click or two away.
 
@PM2Ring Specially when you feel that you don't need to ponder over the specifics and save your time by just googling (I am feeling lucky) the error.
 
@AshishNitinPatil True. I often use that technique to find dupe targets.
 
Not to mention the rare golden moments when you see your own answer as the solution for your problem.
 
@khajvah ooooooooooooh I see!
then I've definitely been miscalling you in my head (and will continue to do so)
 
I wonder if there is Turing completeness for natural languages
 
11:50 AM
хажак hmm, yeah, so if like that, then I know
 
seee
 
might as well be Kojak
 
@AshishNitinPatil It's fun when you go to upvote an answer and then you find that you can't vote for it because you wrote it. :)
 
it is not fun!
why can't I upvote my own answers!!
 
I once managed to upvote my answer, and later realized that I was running a sock account :O
6
 
11:52 AM
they were useful!
@BhargavRao reported :P
 
MODS
oh wait
 
@BhargavRao Pinned for visibility!!!!!!!1111
:D
 
Noooo, hides
 
I knew something was off about that guy.
 
Confessions of a Diamond :D
5
 
11:55 AM
lol, yeah. I'll suspend myself :p
 
use your sock account to do that too
 
@BhargavRao So what happens when someone replies - "glad, I'm not alone"?!
(who is not a diamond of course)
 
:D
 
This year I'm mostly learning BCS, as we're going to Bosnia later in the year.
 
what's BCS?
 
12:04 PM
Bosnian/Croatian/Serbian
 
Bardeen--Cooper--Schrieffer theory? :P
 
:D
 
ah
 
superconductivity is fun
 
@AndrasDeak That's weirder than the Google search results...
But yeah, now I can see how it may be relevant to you
 
12:06 PM
it does have limitations for describing high-Tc superconductors, but whatever
 
anyways, I think I am quitting my job. There is a big inconsistency in my country. I work for a company which employs cheap locals but sells the product worldwide(mainly in US). I figured, the expected value is higher(in my country at least) when selling something on your own than working for somebody else.
 
@AshishNitinPatil they get an instant check by diamonds :P
 
@khajvah oh? Good luck :)
 
@khajvah if there's no plan yet, could you start slowly on freelancer.com before committing to leaving your employer?
 
@RobertGrant The good thing is, I don't have much to lose right now.
but that won't be the case in a year or two, so this is the best time.
 
12:11 PM
Fair enough :(
Oh I see - consider the sad smiley removed
 
plus if you're low on cash, you'll just go outside and loiter a bit, and you'll be taken to custody and eat jail food for a few days for free
 
I will try to do something for a year and then look for a job abroad.
 
Cool :-)
 
12:55 PM
Andras Deak, your comment made me laugh - thanks for ruining a perfectly good cup of coffee.
can someone suggest any good books/article/etc (better yet: online pdf) that deal with how to implement "multiplayer" functionality via the internet? e.g. a chess game that will listen until the other player sends information about the move he made?
I'd be curious on how to implement such a thing
curious about*
 
Pusher.io is an easy way to get started with realtime events.
Or you can use Django channels
ducks the inevitable Antti backlash
 
@Cribber It wouldn't be the 1st time khajvah's been arrested for no good reason: see chat.stackoverflow.com/transcript/6?m=32134630#32134630 and the image just above it.
 
@Cribber I read an (old) thing that was really interesting about that
 
lol....
alright, thanks, Ill check it out Withnail
 
Argh I can't remember where I saw it now
 
1:08 PM
if u do stumble upon it again sometime just send me the link ;) thanks anyways!
 
whooo
thanks!!
 
I thought it was really interesting
 
Ah, that's a great read.
 
Yeah :-)
 
user6845426
1:17 PM
cbg all o/
 
@PM2Ring Woah, way too cool @khajvah
 
user6845426
Can someone tell me what the following is doing: training_data[k:k+mini_batch_size] if training_data is a list of tuples (x, y) ?
 
It's called slicing
 
user6845426
I'll have a look at the docs now. Cheers
 
I remember reading a blog which discussed network operations in detail, mostly in the context of real-time multiplayer games. Can't find it now, though.
I clearly recall that it had illustrations of a cartoon rabbit representing the author.
 
1:21 PM
Feb 17 at 15:32, by Andras Deak
@dipper it's not k:k, it's k:(k+mini_batch_size), as in from:to
 
Kind of a middle era Looney Tunes look.
 
deja vu
 
@AshishNitinPatil don't
considering that he's been told this at least the second time
 
did someone say looney?
 
1:22 PM
@AndrasDeak oh, didn't know :|
 
looney?
oh wait nvm
loonie == one canadian dollar coin
 
And of course, the name of the Canadian two dollar coin should be obvious...
 
yup! 😀
two-dollar-coin.
:P
nono
twoonie
 
TuDoCo for short.
 
haha
 
1:25 PM
Gimmie four bumblebees for a tudoco, we'd say.
 
true story. When the two dollar coin was first introduced, there was a defect where the inner gold coloured piece would pop out. So, people in high school were selling them at premium dollar
 
Unfortunately googling "rabbit programming blog" just gives me a bunch of projects with "rabbit" in the name
 
 
I like the two-metal coins
 
oh my...They actually call it toonie
 
1:27 PM
aww, ferromagnetic money is the best
 
and per wikipedia article
> A failure in the bimetallic locking mechanism in the first batch of toonies caused some coins to separate if struck hard or frozen. Despite media reports of defective toonies, the RCM responded that the odds of a toonie falling apart were about one in 60 million.
 
Loonies and toonies
 
yeah I don't know why I had twoonie in my head
silly me
 
Read that as "biometallic" initially.
 
1:29 PM
the good old days when our country had "republic" in its name
 
@Kevin the next British coins will have the Queen's blood mixed in to every coin's metal before it's cooled to a solid
 
well this is interesting
@RobertGrant LOL!!!!
 
oooh sweet, that means we can replicate the queen in a hundred years if our genetic laboratories are advanced! :D
 
@Kevin same, haha
 
you guys are weird
 
1:32 PM
I'm sure nobody has ever said that to any of us before...
eye-opening!
 
I take my weirdness seriously
 
Yeah, it's part of my personal brand
and helps to ensure a nice dose of peace in the office, as no one wants to get sucked into discussions with me. 8)
On that note, time to watch Rick and Morty on my lunchbreak.
 
Quebec, Rest of Canada
haha
 
:D
 
it is most likely because of the French. But it's just such a funny way to ask you that
alright. rbrb for now. Time to take the critters to daycare and get myself to work
 
1:45 PM
cbg! I'm writing a CSV file, code is:
`writer.writerow({'a': x, 'b': y, 'c': p[x,y], 'd': q[x,y]})`
Now, p and q are dicts, which may or may not have value for key [x,y]. How to catch KeyError at specific parts? Like which one failed, p or q?
 
morning everyone
 
@Grimlock You can't distinguish between the two of them if you index them both on the same line. Consider separating them into individual statements.
d = {'a': x, 'b': y}
try:
    d['c'] = p[x,y]
except KeyError:
    print("Oops, p doesn't have that key")
try:
    d['d'] = q[x,y]
except KeyError:
    print("Oops, q doesn't have that key")
writer.writerow(d)
 
@Kevin, Thanks a lot :)
 
Alternate syntax if you're not averse to LBYL-style design:
d = {'a': x, 'b': y}
if (x,y) not in p:
    print("Oops, p doesn't have that key")
elif (x,y) not in q:
    print("Oops, q doesn't have that key")
else:
    writer.writerow({'a': x, 'b': y, 'c': p[x,y], 'd': q[x,y]})
 
Oh, I was looking for this kind of Key-checking code, Thank you very much. What is LBYL, btw? and Why is it aversed?
 
1:55 PM
Look before you leap...
 
Aha! okay. :)
 
"Look Before You Leap". It exists in opposition to "easier to ask forgiveness than permission". The official docs speak more favorably of the latter to some extent
 
So, all by my own, when I was optimizing my code yesterday, I changed my all try-except blocks to if-else, now it doesn't seem like a smart decision lol
 
When the glossary says that EAFP is "faster" they mean like, 0.1 milliseconds faster per exception.
 
@Grimlock Depends on the situation I guess. And needless to say, "premature optimization is the root of all evil".
 
2:06 PM
Or, actually, IIRC a KeyError being raised is slower than checking for the presence of the key. It's only really faster when the key is actually there and so no exception occurs. So EAFP is faster on average only if you're getting a lot more hits than misses.
 
Aha, Good advice thanks all. I'm actually running the loop for 400k times, so it EAFP should definitely help.
I get around 70k misses per 400k iterations. So, what should I go with?
 
I'd probably check at that point, but that's just a guess
Someone timeit!
 
I'm writing a test case now, for the sake of curiosity.
import timeit
d = {x: x for x in range(4)}
def f():
    for i in range(5):
        if i in d:
            pass
def g():
    for i in range(5):
        try:
            d[i]
        except KeyError:
            pass
print timeit.timeit("f()", setup="from __main__ import f, d", number=10000)
print timeit.timeit("g()", setup="from __main__ import g, d", number=10000)
#result:
#0.0267029911955
#0.0717262183666
 
@Grimlock A rough rule of thumb is that if the exception is raised more than 5-10% of the time you should use if instead of try... except.
 
2:15 PM
My instincts are GOOOOOOD!
 
So basically this simulates accessing a dict using a key which isn't in the dict 1/5th of the time. LBYL appears to be about 2-3 times faster than EAFP here.
 
So much good advice guys! Appreciate it.
 
\o cbg
 
I'm not 100% convinced that there isn't some wacky peephole optimization occurring in one of the functions, and which wouldn't occur in actual real code that doesn't just pass in the conditional blocks, but I'm not going to investigate further because I like it when an experiment validates my preconceptions even if the experiment isn't very sound.
 
Also, I learnt about timeit today xD. Till now I was using this block xD

start_time = time.time()
#code1
ex1 = time.time() - start_time

start_time = time.time()
#code2
ex2 = time.time() - start_time

print (ex1-ex2)
 
2:17 PM
If you want good advice, just come to room 6. We're full of it. And we have some good advice, too. :)
 
Where's room 6?
 
Here
 
not sure if meta question
 
http://chat.stackoverflow.com/rooms/6/python
 
Thanks!
 
2:19 PM
I thought it was more over to the right.
 
lol my bad.
 
Who moved it here?
 
cya guys later, again thanks to all.
 
How am I supposed to get any work done with this room right in front of me?
 
I moved the room over to the left, so as to properly balance it between the two potted plants on either side.
 
2:20 PM
It's just below my monitoring monitors, and off to the left of my coding monitor
 
Who monitors the monitoring monitors?
 
As a workaround, you can move yourself to the left to create the illusion that the room is moving to the right. As a side-effect, the potted plants will also move, along with the rest of your observable universe, but there's nothing we can do about that right now.
 
I do. :D
But who monitors whether I'm monitoring them, that's the real issue.
(No-one)
 
@Withnail Spoken like a true Vimes.
 
Emoticons don't exist on Discworld... Yet.
 
DSM
2:25 PM
Morning cabbage.
 
Nothing a little 50,000 word fanfiction can't fix though
 
I'm distinctly less Knurd than Vimes, i reckon.
 
DSM
@MartijnPieters: that was a work of beauty and deserved better than to be lost to the world. We need to give credit where credit is due.
 
you want us to restar it?
:D
 
DSM
Ehh, it can rest.. but now it's safe.
 
2:27 PM
@BhargavRao BR, if we ever do a secret santa and I manage to pull you, I'm going to get you a pair of blue socks :D
 
Lol, Thanks. I'm missing a pair anyway :P
 
DSM
@idjaw: I thought "doubloon" would have been perfect, but not many other people agreed. :-(
 
Has there really not been a Discworld novel about emoticons?
 
@kevin don't you like opening cans of worms. Great way to go fishing :D
 
I feel like it would have come up in one of the ones about the clacks network.
 
2:39 PM
The concept never got its own novel, but on second thought, maybe one of the books revolving around the newspaper or postal system mentioned it offhand.
 
I don't remember emoticons in the books, unless one of the Discworld childrens' books had them in
 
Omg
There's a Clacks board game. backspindlegames.com/clacks
 
Cool
 
(He discovers, by googling for something else about clacks)
 
When I had to write a little reverse proxy thing for $Reasons, I added an X-Clacks header into it :)
 
@DSM Yup, as troll messages go, it was indeed beautiful! However, I want to encourage them to find a different outlet for their art. :-)
 
I don't think there's an emoticon ref in Discworld, but I think icons get mentioned in reference to Vimes's dis-organisers. And there are control icons on the terracotta warriors in Interesting Times that were inspired by the icons in Lemmings.
 
Of course there's a discworld wiki
There goes my afternoon
 
You're welcome. :)
 
The distinction between an emoticon and an icon representing a face gets pretty blurred in a world where the vast majority of technology is analog.
 
2:47 PM
morning cbg
 
DSM
@MartijnPieters: I didn't upvote it.. (which I was also tempted to do, admittedly, but I was able to restrain myself.) Unless you officially put on your diamond hat to order otherwise, I'm going to respectfully decline your request that only you mods should get to savour such choice morsels. #chicagohobo4life
 
":-)" is only significantly different from a drawing of a smile when "a colon followed by a hypen followed by a right parenthesis" has some kind of internal representation that's different than "two dots followed by a line followed by a curve"
 
@DSM I'm not putting on a diamond hat on this yet. But as soon as we see any kind of attempts to solicit reactions from chat channels, then please do put a lid on troll feeding. :-)
 
@Withnail There's also The Annotated Pratchett File, which was started before the Web existed, when PTerry was active on Usenet. I like to refer to it when I'm re-reading the books.
 
Oh, crikey. :D
 
DSM
2:54 PM
@MartijnPieters: You 1%ers are always about preserving your special privileges and saying it's in everyone's interest. Rest assured I have a youtube link entitled "I'm being repressed!" at the ready.
 
www.pythonwars.com style
 
@DSM I'll henceforth will refer to you as Dennis-the-peasant! DTP, rather than DSM.
 
frustrated, need someone to delegate the standards and people to stick to it
 

« first day (2333 days earlier)      last day (2600 days later) »