« first day (1984 days earlier)      last day (2954 days later) » 

7:00 PM
I'm probably in the 1% that make business analysts go insane. "THIS PERSON DOESN'T FOLLOW ANY OF MY MODELS! HE'S BEEN A KEEN SUBSCRIBER FOR 2+ YEARS BUT HAS NEVER READ ANYTHING!"
 
Put a space in a list of strings made an interesting choice of presentation of his code. Instead of putting it in a code block, he described each line of code in a sentence, separated by commas and "and".
 
@Ffisegydd that reminds are you are slack right now?
 
is there a standard tool for finding unused code in a python project? not unused imports, but methods/member variables?
 
@enderland Some IDEs have some form of formatting for that.
@JonC I can be.
 
I can find a lot of tools for finding unused imports :)
 
7:03 PM
http://stackoverflow.com/questions/36162499/recursive-function-retur‌​ns-none-instead-of-the-values dupe
 
Such a tool couldn't be 100% accurate, because it wouldn't pick up things like getattr(instanceOfYourClass, "memberN" + "ame")
 
No. Generally PyCharm will create skeletons to do this.
It gets unwieldy past 10k+ files though.
 
DSM
Sure, but just because it's not 100% accurate doesn't mean it isn't handy. I found a bunch of pandas bugs just by cythonizing everything in sight and looking at gcc/clang's output.
 
that looks ok, it seems to have found some things at least
 
Yeah, I'm not claiming a 99% tool wouldn't be useful. I'm just being a sour little raincloud.
 
7:06 PM
Without you being a sour little raincloud, we wouldn't appreciate the sunshine.
So feel free to be unhappy with things, so we can all think "Well, at least we aren't Kevin".
It's like a public service.
 
Life tip: if the rainwater in your area tastes sour, consider moving.
 
or get a distillery? :)
this appears to be identifying a few unused things
except it doesn't like test classes, heh
 
@BhargavRao I'm in the NL?
 
Is this a sensible edit?
Is truncating and flooring the same thing?
 
@holdenweb NewsLetter :)
 
7:09 PM
@Ffisegydd not for negative numbers
floor(x)<x for negatives
 
Not for -- oops beaten
 
trunc(x)>x for negatives, I think
 
Andras is a fast gun today.
 
wish I could get rep for it:P
 
Cool: edited the answer on the grounds that it's likely to get more attention than my run-of-the-mill answers
 
7:10 PM
@Ffisegydd I think the edit is correct
OP is talking about truncation
 
DSM
The edit made this question comprehensible.
 
@AndrasDeak how do you know he's talking about truncation vs flooring?
In this case, from the OPs example, they're the same thing, no?
 
@Ffisegydd they use int()
 
I'm not disagreeing with you, just don't see the evidence
 
by definition, that should is truncating
 
7:12 PM
Yes but how do you know that's what the OP wants to do?
 
@Ffisegydd I tend to believe code more than literature
 
I don't think we can ever truly know what anyone wants.
 
otherwise sure, no explicit intention
 
But how do you know they don't want flooring and just don't know that int does trunc?
 
anyway, OP probably doesn't consider negatives at all
in which case they are the same for all intents and purposes
nobody in their right mind would use negative numbers, right?
 
7:13 PM
I try to be a positive person, so I don't.
Then again sometimes I'm quite complex.
 
DSM
(countdown to ..)
 
I can imagine that
 
DSM
(someone making an imaginary numbers joke: 0 seconds.)
 
It's a natural impulse.
 
at least if you're being rational about it
 
7:15 PM
:(
 
Important Question: Are we a 1i or a 1j room for our imaginary numbers?
 
Andras fastness count: 3
 
I'm 1i
and I can't put "octonion" in a sentence:(
My mind is mushy like Oct onions.
 
I don't think I've ever used imaginary numbers in a programming context.
 
user559633
7:16 PM
what's math
 
Anytime I work in a context requiring pairs of numbers I just use a tuple, or a Vector/Point class.
 
DSM
@Ffisegydd: I still write i on the page, TBH.
@AndrasDeak: wow, I thought that was just folklore. I didn't know it was actually from a published paper back in the mists of time!
 
In the rare instance that I am doing complex math on paper, I use "i".
 
@DSM and it seems to work
@Kevin use \imath ;)
@DSM though generally you can either differentiate by hand and implement that, or you have numerical input, in which case it's not applicable
but still pretty awesome
 
7:24 PM
I use j because I'm not a barbarian.
 
@Ffisegydd pfft
engineers (are you that?)
 
DSM
That doesn't make sense. The engineers use j and they're all barbaric.
 
My handwriting isn't precise enough to differentiate between i and \imath.
 
u wot m8 calling me an engineer i'll batter u i swer on me mum.
 
Frankly I count myself lucky when I can tell it apart from 1.
 
7:25 PM
:D
oh, in handwriting it's just i
(i suck)
 
I think I picked j up from electronics.
 
--> engineers
why would you reserve i for current?
 
The poster of this question is interested in improving their question, but it's still far from being answerable :[
 
Let's all compromise and use "k".
 
I write i because i is smaller
 
7:26 PM
@Kevin k
 
The clearly most superior unit vector.
 
warpedwales.co.uk/2016/03/22/… o.o I want it to be true so badly...
 
I feel like most complex number problems you go polar to solve, so I use θ.
 
DSM
Just one more reopen vote needed.. (hint hint)
 
I get the impression that this guy actually wanted to ask "how do I print the current time in natural language?" but knew that we'd dogpile him if he provided zero code, so he frantically composed an integer-reading program that has nothing to do with the problem, just to say he tried something.
Also, the edit to the code introduces an infinite loop. Every participant in this question is rustling my jimmies.
 
7:41 PM
WTB the John Hopkins Data Science course but using Python vs R.
 
DSM
WTB?
 
what the broccoli
probably a variant of yam
 
I changed my mind. OP really does want to take an integer input and convert it into a time. But he dodged my first question asking how he's thinking of doing that.
 
DSM
Don't be asking for trade secrets, Kevin.
 
7:44 PM
Venti knows my jam.
He's down with wowtalk.
 
LFM 2DPS HBRM!
So many flashbacks. :D
 
@AndrasDeak Suppose it's too late to tell you guys to get real
 
Rhubarb all, Time to sleep
 
sigh. still at the office, but at least now we have got the build to work. Still a ways to go with the deploy, though
 
7:51 PM
@davidism you are a UCSD alumni, right?
 
@holdenweb aaaw, it's never late for a math joke;)
 
Of course I'd have to work late tonight, having taken delivery of my brand new toy
 
@Ffisegydd yeah
 
Cool. Just the MOOC I was looking at is provided by them.
 
Which one?
 
I never really paid attention to the researchers in the CompSci department, I don't recognize any of them. But it looks cool.
UCSD has one of the highest rated CS departments.
 
DSM
Makes sense, they have CS right there in the centre.
 
I would say "With jokes like that, don't quit your day job" but that'd be a bit too late, eh?
 
:-| I'm not joking here: in four years there I never heard that joke. How did not one professor think to say it?
 
DSM
@Ffisegydd: have you taken any of the courses previously? I'm wondering if it'd be worth it for me to use some of my downtime to brush up my skills.
Also, ouch.
 
7:59 PM
@DSM I've taken the R Programming one. They're definitely good, but you have to have the self-control to actually do it. I've heard stats on the drop out rates and they're awful - people starting and then never completing.
I'd do the entire Data Science one but it's all in R.
I suppose at the end of the day it's like most things - you get from it what you put into it.
 
DSM
Here's the thing: if it were free, I don't think I'd have the motivation to finish it. But if I pay, I'm damn well getting the certificate.
 
Well you can be sure they give you the choice of paying :P
As part of the FizzyCorp training for the next grade up there are some MOOC courses, so I'm basically jumping the gun a bit.
 
DSM
I think my data-y math is good, but I admit I've been doing a lot of custom stuff, most of which is in-core. And my official position is that Medium Data is better than Big Data because you're more likely to get Big Information out of it. But I should at least know more about the various platforms than I do.
 
My new employer has an interesting incentive for continued education: "A-B: we pay your tuition. C: we pay 50%, you pay 50%. D or below: you pay 100%"
 
Most of us don't ever do big data. That doesn't mean we can't use big data tech though.
 
8:03 PM
I'm currently considering whether I'd be properly motivated to study if many dollars were on the line.
 
DSM
HugeCo: where accomplishment is rewarded, and failure is punished. Has a certain appeal.
 
Things like Spark are perfectly fine to use locally for analysis, and then have the advantage of scaling up should you need it.
I've been looking at Storm lately. Looks really interesting for pipeline analysis.
 
DSM
All things being equal we're pretty lucky that subject-independent mathy thinking about stuff is now a Thing.
 
Yeah definitely. I should brush up on my maffs more.
Oh wait this Big Data course is pay-only? Well there's that out of the window!
 
DSM
Your reaction suggests that teaching online courses in data analysis with Python is unlikely to be a good part-time job. ;-)
 
8:09 PM
I would pay for it if it was FizzyCorp paying and not actually me...
I'd pay for it with someone elses money happily
I must have paid for the R Programming one at the time then.
 
DSM
Not sure I could work up the will to do that, even if it was demonstrably a skill I need to recover. You're paying money and you have to write R?
 
I did it for a job interview.
 
DSM
I don't think I could pick up (well, re-pick up -- I used R in my master's) enough R in time to be ready for an interview. Unless the interview was months away, I guess.
 
Oh wait I can do audit-only! \o/
Well it wasn't for a specific one I suppose, I was applying for data science positions and thought R would look good.
So I did the course while applying.
I have an Amex card, I wonder if I could convince FizzyCorp to not shout at me for using it on training...
 
DSM
Not quite true that it never hurts to ask, but seldom. :-)
 
8:54 PM
cabbage
 
@davidism I'm new here , whats that?
 
A link for room owners
 
@davidism you program professionally?
 
yeah
 
9:02 PM
hrm apparently nearly everyone here is a room owner...
 
don't mind me if I ask questions here. I'm just trying to pick the brains of some great minds every now and again lol
 
Well, I tried to pose a self-answered question, but all it did was kick off a sh*tstorm. See here. So much for trying to do a good deed! — Digger 46 mins ago
Feel kinda bad because I encouraged him to self-answer in the first place. On second look the question is kinda a mess though.
Also, not sure what to believe because this is the Internet, but we may have just shut down a NASA astronaut.
 
what?:D
who's "we"?
oh
sorry
I read astronaut and understood satellite facepalm
and don't feel bad, I'm sure you weren't sure in advance that the self-answer would be crap (assuming that it was indeed crap)
 
I agree with the comments on the Q&A saying that the question is just asking for code without explaining why there's a problem, and the answer is a crazy one liner.
 
Daredevil is getting weird
 
9:12 PM
The question could probably be cleaned up and reopened.
@RobertGrant I've been thinking of watching it, is it good weird or bad weird?
 
DSM
Hmm. Is discussion of quality a spoiler or not? ;-) Probably not.
 
@DSM I guess it's not, if you keep it full of [citation needed]
 
@Robert is it better then the flash?
 
Not seen that, but DD is very good
@davidism good.
 
check it out on Netflix, you won't be disappointed
 
9:16 PM
I'm in season 2; you can see season 1 and it's more standard comic book fare, but really well done. S2 is slightly less normal, that's all
It has very violent moments, just so you're aware
 
DSM
I'm usually not enormously pro-violence in shows, but the hallway fight scene back in Daredevil S01E01 was amazing. Still remember it.
 
Heh yeah that is brilliant. Properly looks like what it's meant to be.
 
cabbage @ antti
 
9:46 PM
stackoverflow.com/questions/36165675/… how to say nicely "LMGIFY" or "RTFM"
someone even upvoted that.
"shows research effort"
 
Woohoo, within the top 20k of hackerrank
 
stackoverflow.com/questions/36165137/… what am I missing here? :|
question talks about 3 word moving window, but obviously we do not agree on what that is
 
Yeah I'm also confused. Can't spot what they mean.
 
A bigram or digram is a sequence of two adjacent elements from a string of tokens, which are typically letters, syllables, or words. A bigram is an n-gram for n=2. The frequency distribution of every bigram in a string is commonly used for simple statistical analysis of text in many applications, including in computational linguistics, cryptography, speech recognition, and so on. Gappy bigrams or skipping bigrams are word pairs which allow gaps (perhaps avoiding connecting words, or allowing some simulation of dependencies, as in a dependency grammar). Head word bigrams are gappy bigrams with an...
gappy bigrams/skipping bigrams; but why in hell does the example have that one pair reversed
@Ilja btw sergey wasn't op
 
doh, perhaps it's time to go to sleep
 
9:59 PM
lucky oyu
 
@AnttiHaapala teh examples given do seem like permutations though, not just gappy
["This is","is an","This an","an this",...]
 
yeah that's why I asked wth that one pair is reversed there
so where is "is this"
and then you suddenly notice that it is a damn stupid idea
 
that it is
 
this is a question, is this a question
d'oh
 
10:36 PM
Hi
say you have dataset like:
df.head()
        date       username
0 2007-08-09      ginaemiko
1 2007-07-30        AtomAnt
2 2008-07-08  RecoveryTweet
3 2008-07-05  RecoveryTweet
4 2008-06-29            lwu
And you want to plot the number of rows in each quarter of a year.
Is this code correct?
ax=df.date.groupby([df.date.dt.year, df.date.dt.quarter]).count().plot(kind="bar")
I can't find any mistakes but the resulting graph is wrong.
@Ilja just wondering, wouldn't it be better off to use a word tokenizer instead of split()?
 
11:25 PM
cabbage
 
11:39 PM
ok guys I have a question I need some help
 

« first day (1984 days earlier)      last day (2954 days later) »