« first day (1573 days earlier)      last day (3391 days later) » 

4:00 PM
@Natty also you can always write R code and run it from Python, if you need to :P
 
@Inthuson Sorry, I don't have any experience with matplotlib, so I can't give specific advice regarding alternatives
if cx_freeze didn't work and py2exe doesn't work, I don't know what else can be done
 
@Natty_E ipython.org/notebook.html this alongside with everything Fizzygood suggested
 
Oh yeah IPython is amazing too. Plus, if you press "Up" in chat you can edit your previous message :)
 
@Ffisegydd I've seen rpy, but I'm just looking to code in straight up Python for the moment.
@DSM I've not heard of statsmodels, thanks for pointing it out.
 
4:02 PM
I can't believe how much my rep went down just for that one question haha. Apologies I suppose...
 
can you explain this answer? /: I don't quite get what he's trying to say
 
Me neither, as I don't know how eggs work.
 
he's saying exactly what I said, which is to extract the eggs first before running the generator
 
@Inthuson you have setup.py?
 
eggs are just zip files with a different extension
 
4:03 PM
Today, it is me that wears the comically oversized sombrero of ignorance.
 
so unzip them into folders of the same name, then remove the eggs
 
DSM
@davidism: when is the RO meeting? My trello password is currently on a drive I don't have access to.
 
see pinned message to right
 
Daft question, but is there a way to install pandas using something like install.packages() in R?
 
DSM
@Kevin: if only it didn't look so much like the comically oversized sombrero of wisdom, you wouldn't have had this problem.
 
4:04 PM
@AnttiHaapala yep i have a setup.py file
 
DSM
@davidism: oh, so it's at the same time as the GM?
 
I shouldn't keep them next to one another on the hat rack of abstract mental states.
 
so could cxfreeze do standalone inst?
 
@Natty are you on Windows or Linux/OSX?
 
@Ffisegydd windows
 
4:05 PM
@DSM oh, there is no meeting, it's just a pre-discussion of what topics we should have on the agenda
 
@davidism that code on the answer where should i use it? in my module where i use matplotlib or the setup file?
 
is this a python solution?
1
A: Converting a str to a float (python34)

Mario Firminouse (string) before print. I have 35 year of xp. int i = 0; for proj in data['daily_projections']{ proj['nba_player_id'] = float(proj['nba_player_id']) printf((String)str(proj['fanduel_fp']) + ' ' + str(proj['nba_player_id'])); i++; }

 
the braces should tip you off
 
Basically there's something called pip in Python which allows you to do, for example, pip install pandas. But because of a compiler issue with Windows, installing a lot of the scientific modules fails (as a lot of the code is written in C to make it faster). As such you have to install via a .exe from lfd.uci.edu/~gohlke/pythonlibs
 
"I have 35 years of experience". Almost certainly a troll
 
DSM
4:06 PM
.. I'm betting he doesn't have 35 years of XP with Python..
 
Maybe he's a goblin that lives in GVR's attic, and for the last 3.5 decades has listened to his feverish babbling as Python slowly formed in his dreams.
 
DSM
@Natty_E: another alternative is to install a large base distribution like Anaconda to start with, and then pip whatever else you need. It's what I use, because (as I always say) life is too short to deal with Windows installations headaches.
 
I have 35 years of XP .... Lol XP released 15 years ago
 
Ah yes. I always forget about Anaconda >.< yeah Anaconda is a good solution for Windows.
 
DSM
4:08 PM
I think he means "xp" as short for "experience".
 
agreed
 
Yeah... But I made the xp in caps
 
Don't you see, the abbreviation was carefully designed to be ambiguous so that we would fight over it
 
DSM
Oh, he's a crafty one, this guy.
 
@DSM remember your advice on Dalhousie Univ, the other day ... I got through the third round ... So will be going to Canada (If they send invite) .... Thanks
 
DSM
4:11 PM
@BhargavRao: welcome to the True North. Don't say no one warned you about the cold.. :-)
 
thanks @davidism and @DSM. Trying to learn a new language without going on a course is difficult...
 
@DSM Naw .... Jun 1st - Jul 31st ..... So will be warm enough
 
@Antti niceeeeeeeeee.
 
4:16 PM
My writing has gotten even worse. It's always been bad, but now...I actually struggle to read it.
 
DSM
Handwriting, do you mean? We were just discussing this yesterday.
 
Yeah handwriting. It's because I rarely actually write more than my signature :/
 
DSM
Your name is Ffisegydd. No one's going to know whether it's right anyway..
 
;_;
 
How do you pronounce that?
 
4:19 PM
My father has unreadable handwriting, so I have legible handwriting so I can go "I'm not like you! I'll never be like you!"
 
Well according to the native Welsh tongue you..............oh f**k it, you pronounce it "fizzy good".
 
fizzy good??? That's good
 
I'm glad our relationship is good enough that "learn from my example, don't do X" just applies to penmanship
 
DSM
@Kevin: my youthful rebellion was to embrace the blues, to distinguish myself from my jazz-loving father. Take that, Dad!
 
Here's to sticking it to The Man.
 
4:23 PM
Hello people, are cv2.shape() and numpy.shape() the same functions ?
 
I say "no", because look, the names are different.
 
@Kevin but they do the same job
 
I think you're playing a trick on me, because I don't see shape in the OpenCV documentation
 
DSM
Question: what's the canonical way to use commas as the decimal point marker without changing any locale-related state?
 
You can use locale, do you actually need a Q to hammer something with?
 
4:29 PM
@Kevin I think I was wrong. In OpenCV when you do : image=cv2.imread() to read an image, then you can run image.shape()
 
Oh nvm, I totally ignored the "without changing any locale-related state" :P
 
DSM
No, it's the pandas paste-with-commas-as-decimal question. I was hoping there was an option for format, something like we have to use commas as the 1000s separators.
 
@DSM to_csv accepts a float_format kwarg pandas.pydata.org/pandas-docs/dev/generated/…
And to_clipboard uses to_csv
 
DSM
@Ffisegydd: yeah, I know, I'm trying to figure out what to pass as that arg.
I mean I can always fall back on string replacement, but, I mean, blek.
 
Yeah.
 
4:37 PM
Just ask the users to pretty please use "." instead of ","
 
when an image is loaded by OpenCV (cv2.imread()) , the representation of the image is done by a matrix in the memory of the computer. Is this matrix handled by default using Numpy ? because I find on OpenCV documentation for this instruction for example: image=cv2.imread() operations related to Numpy: image.shape(), image.dtype() ...
 
I don't think it's possible without modifying locale.
 
DSM
That's silly, then. There should be a "format this string assuming the locale were X" idiom without save-and-reset.
 
Because you pass something like '%f' to the string format (I assume they still use the old style) and you can't modify the . for , using that string formatting.
 
@PythonLearner I suggest an empirical approach. Just assume that it's handled by Numpy, and treat it as you would any other kind of numpy matrix. Then later, if an error occurs that looks something like "cv2 matrix has no method insert_numpy_exclusive_method_name_here", you know that it isn't handled by numpy, and you've got your answer.
 
4:39 PM
Possibly a with locale as ... would be nice
 
I wish the whole world just used ascii sometimes
 
If I do find it out though, I'll make sure to tell you once I've answered the question.
 
0
Q: Converting Ruby to Python

RandallHas anyone tried converting anything from Ruby to Python using unholy? If so, is the resulting code readable/supportable at all? We have an old project written in Ruby that is still in use, but the developer left a while ago. We have no in-house Ruby expertise at this point, so we're looking fo...

spam???
 
Not at all.
Closable though.
 
DSM
Not really.
 
4:44 PM
opinion based?
voted to close
 
@BhargavRao Do you even know what the spam is?
 
@BhargavRao closed..
anyone willing to delete?
 
@Kevin thank you. In fact your answer lead me to the precise one: when I installed OpenCV, guess what ? The documentation asked me to install Numpy first ! So I am almost sure, now that I remember this, that Numpy acts in the background
 
I think I have seen you struggling with the term a few times.
 
@Fenikso Sorry ... I read the first line ... So asked
 
4:46 PM
Willing? Yes. Able? No.
 
@Fenikso Yeah ... I've never flagged anything as spam till now ... (1 offensive marked - rejected)
 
DSM
Arr, I'm tempted to answer a question but I'm 90% convinced the guy is going to say "oh, that's not what I want to happen in this obscure case I didn't mention".
 
@DSM Which question?
 
DSM
This one. It's trickier than it seems, because you have to decide what you want to do when there are multiple values at the median or zero values at the median.
 
Should I let the OP delete this post?
I didn't get an upvote on my answer yet..
Is the question useful for future visitors or should it be regarded as a typo-question?
 
DSM
@Martijn: maybe if we rework the title into something more generic?
 
Even I had faced that situation once ... Better leave it
 
@DSM suggestions?
 
@MartijnPieters Typo.
 
5:03 PM
I do not think anyone with similar problem would ever find it.
 
Changed to Why doesn't this error message point to the first invalid octal number in the list?
 
Recommendation request
Oops, beaten
 
DSM
@Martijn: ah, sorry, got caught up talking to an OP. Yeah, that works for me
 
Yay
@Kevin The answers ... seem to come with upvotes... Isn't it suspicious?
 
Maybe, maybe not. low level graphics is a fairly common problem, so there might be ordinary users saying "yes, this is a helpful reply"
 
5:06 PM
Nah. Maybe the OP liked the answers.
 
Oh ...
Yeah, that may be the possibility
 
Plus the rep of the answerers is wildly different.
 
OP rep is 11 ... Not possible
 
If they were both low then maybe sock puppetry
 
What is sock puppetry?
 
5:08 PM
In real life, drawing a face on a sock and using it as a puppet.
On the Internet, signing up many accounts and using them to upvote one another.
 
DSM
You can use buttons and string too!
 
When someone runs multiple accounts to both ask and answer and then votes themselves up
 
Oh ... Thanks
Now the upvote is missing ... lol ...
 
@Ffisegydd i did not upvote, read my comments to the moderators before spending your day speaking about me
 
The term is also used on Wikipedia to denote a user with multiple accounts used to try and keep their edits in articles.
 
5:14 PM
@PythonLearner I don't believe anyone was talking about you, though. We were discussing this question
Or am I missing something here?
 
is greedy just a subset of DP?
is that a true statement?
 
Ok, I see, you were referring to a post on Meta. Carry on.
 
DSM
@Kevin: what am I missing?
 
this meta post, although now I see Ffisegydd didn't comment on it at all, so I'm back to being confused
 
What's going on now? What have I done now?
 
5:19 PM
My current theory is now: half an hour ago, PythonLearner made a post on meta, stating that he was not doing sock puppetry and thought the accusation from the mods was unfair. Later, he read Ffisegydd's "If they were both low then maybe sock puppetry" comment in this room, and assumed that it was referring to him, although in reality it wasn't.
 
DSM
That deduction is web-scale.
 
Then I came in and tried to sort things out, then you guys also became confused, and then I wrote the above explanatory paragraph, and this sentence.
 
DSM
I'm drowning, drowning, drowning in self-reference.
 
Ah, I thought that user seemed familiar
 
Yeah same.
I suspected, but didn't say
 
5:22 PM
I, for one, am totally surprised.
 
DSM
I don't pay enough attention to things to notice one way or another.. but I did spot one of our old friends with multiple names trolling a few days back, so keep an eye out.
 
Alls well that ends well anyway :3
 
I blame the cold winter months. I assume each of us is snowed in at a secluded mountain chalet, yes? Perfect opportunity for cabin fever.
 
5:37 PM
on ubuntu I use this program i62.tinypic.com/11hq5wz.png
is there any similar program for windows which can tell me mouse pointer coordinates?
 
What program? I can't click links or see pictures.
Sorry, still can't tell what that is. Does your program have a name and description?
 
a program which can give mouse pointer coordinate
do you know about Java Robot class
 
1 message moved to Trash
1 message moved to Trash
 
Everywhere you go, you always take the cabbage with you!
 
DSM
Well, of course. They might not have any where I'm going.
 
5:43 PM
No matter where you go, there you cabbage.
@ShubhamNishad this is not the Java room or the software recommendation room, please look elsewhere or ask a question specific to Python
 
DSM
Doomed is your cabbage, and damned is your cabbage.
 
@ShubhamNishad The Windows API has a getCursorPos function. You can access it through ctypes, or through the third party pywin32 library, which is a little more user-friendly.
Neither of them will have a pre-made GUI window or anything, but it shouldn't be difficult to make one yourself with Tkinter or similar in with about 30 minutes of work or so
 
DSM
"Why is there a watermelon there?" "I'll tell you later."
 
Questioning the watermelon - that's a paddlin'
 
5:55 PM
re-cbg
Home now with soup :D
 
got a small database problem here. Is there any reason one would be able to update the relationship of Workflow.categories, but not Category.workflows?
 
DSM
Only the pure in heart can make a good soup.
 
@ShubhamNishad Turned out to be easier than I thought, so I've graciously written a sample implementation here
 
@DSM this came out of a can.
 
If you're about to ask, "now how do I make this into a standalone executable so it works on any machine?", I don't know.
 
5:56 PM
But I'm pure of heart, so that makes it all good.
 
My heart is made of stone, does that count? It's very nice stone.
 
c:\pyinstaller\pyinstaller.py --onefile kevins_script.py
 
From his silence, I can only assume he is totally satisfied. Another job well done by me.
 
I laughed when I saw your script ... that was pretty amazingly simple
 
Thus proving Python is the best language!
 
6:01 PM
(once again)
 
DSM
Your strength is as the strength of ten because your soup is pure!
 
hehe helpful flags 112
 
DSM
D'oh. I'm stuck at 98.
 
18 :-)
 
DSM
It's fun to reread some of the stuff I've flagged, though. "Cone Crusher Prominent Advantages"!
 
user2555451
6:06 PM
Could someone help me delete this: stackoverflow.com/a/28350840/2555451 The guy literally copy/pasted my answer.
 
@Ffisegydd you wanna flag this: stackoverflow.com/questions/26037902/…
again a verbatim copy
 
DSM
@iCodez: stepped in.
 
user2555451
Thanks.
 
DSM
That's not the first time I've seen a guy forget that everything's timestamped.
 
guys ._. when getting multiple job offers, how are you supposed to say to each you need some time to decide?
 
DSM
6:09 PM
#indemandproblems
 
"I need some time to decide"
Invite all of them over to your house, and hand the special winner a single red rose
 
wait you have multiple offers? or multiple offers to interview ... those are vastly different things
 
indeed
 
if its multiple interviews... just do them all
then you can pick the one you like best if you have multiple offers
 
DSM
That SoftExpert guy asks some terrible questions.
 
6:12 PM
I think it might be everyones favorite troll
 
@JoranBeasley one is an offer, the other is the third interview at a company
 
DSM
Oy, he's reposted the iCodez copy.
 
user2555451
Yea, this is ridiculous. I'm flagging him.
 
I would take the offer ... if its a job you like ... 3rd interview sounds like google or facebook or something ... where you will only be a small cog in a vast machine ... the offer is probably for a smaller company where you can have a direct impact on the product
 
it depends a lot on a smaller company
on google or facebook you can play with a big product
 
6:14 PM
as much as everyone want to work at google/facebook I really have no interest ... I can be a star at a smaller company ... or a mediocre low level developer at some huge house
 
in small company you can find yourself in the situation "WHO WHAT?"
I don't say I specifically want to work at google or facebook
 
In a small company you can still be the grand vizier of web development and Pam from accounting will still come by asking if you can fix her computer
 
what does that mean? "WHO WHAT?"
 
@JoranBeasley it's research funded by a university, so the first interview was really more like "here's what we're doing, sound good?", second interview was "you said you can program, but can you actually program?" so not sure what the third is
 
"who are X and what the hell do they do"
 
6:16 PM
yeah ... hopefully its a developer role and they have an IT dept to handle the boring stuff
 
a small company can be like a school for retarded children - you can be the star there but you're still retarded.
 
oh university research is a fun job
@AnttiHaapala lol that summerizes me perfectly I think :P
(jk I work with some very smart people)
 
I mean, how good is it, I find myself not only being the best developer in the house but the best in everything :D but I am not the boss
 
biotech also seems like it's becoming really popular lately
 
I wouldnt say im the best developer in house here ... I probably have the deepest python knowledge however
 
6:19 PM
what kind of stuff do you do with python?
 
mostly desktop application for industrial agriculture monitoring
I did some android thing too (using Kivy)
and some web stuff
we are a python house ... but since we also do sensors and whatnot we have C/C++ and EE people too ....
 
is Kivy any good? Been meaning to use that
 
its alright ... 20/20 hindsight I probably would have just done it in java
but in the end I got everything working that I needed too
 
I've only used phonegap for small scale android-esque apps, it's pretty eh.
buh, anyone know of any good libraries for validating data in web applications using python, and returning json responses?
 
6:38 PM
3 coders here :(
@Ffisegydd can flag this too: stackoverflow.com/questions/28297857/…
@Ffisegydd copy of the first link
(this guy cannot possibly be a coder in india, a spanish man and an kenyan woman at the same time)
 
DSM
I admit that all three are tough to pull off simultaneously.
 
If you think that's exceptional, you must not have spent much time on tumblr
This guy's only got two headmates, and neither of them is half hedgehog. Pfft.
 
yeah, or not trigendered planetkin
 
hmm... does this make sense?
 
Nope
 
DSM
6:51 PM
Well, I understood what you were asking, although not what it was about.
 
Does the scoping rules for javascript's this identifier make sense when registering callbacks? I posit that it does not.
 
class Category(db.Model):
  id = db.Column(db.Integer, primary_key=True)
  workflows = db.relationship(lambda: Workflow, lambda: workflow_category, backref=db.backref('workflows'))

  @validates('workflows')
  def validate_workflows(self, key, field):
    if len(field) == 0: raise DataError("must have at least one workflow")
    return field
 
yes they do
 
DSM
+1 for using posit, -1 because "does" and "rules" don't agree. So on balance, JavaScript.
 
I had to use "does" because that's what corvid's original message used :-( LOOK WHAT YOU MADE ME DO. LOOK AT IT.
 
6:54 PM
@Kevin it gets really weird in callbacks, best to use var self = this; before the callback and use self within the callback
 
no it does not
it is very simple. In javascript the this is whatever the method was bound to when called
 
Anyway. I have no idea whether this Category class makes sense, because I don't do db stuff in Python.
 
DSM
@Kevin: no excuse, you could have used "rule" instead, with the implicit generic plural.
 
though of course you never know exactly what it was bound to
I think the db. does not make sense but then not much in flask makes sense
 
DSM
I know enough to say "use sqlalchemy" the way some people say "use jQuery", but that's about it.
 
6:56 PM
hmhmhm
 
You know, when I was writing that post, I had a feeling we'd have a fight about grammar. I also knew we'd fight about variable binding in js. But I submitted it anyway because I need a little chaos in my afternoons.
 
DSM
This question seems well-written but maybe more appropriate for CR or Progs?
 
I've always felt like design questions of this nature don't have a place in SO at all. Much to my displeasure, as most of my own problems are design related.
 
DSM
:-( I can sympathize. The reason I don't ask questions on SO isn't because I don't have them, it's that I can usually muddle my way through "how do you use this API to achieve this", or "given these requirements, come up with an algorithm to turn this into that" questions. It's the fuzzy "how should I structure this large code in some hard-to-describe way" ones which stump me, and which don't really fit.
 
user2555451
Hooray! A Project Euler question without the tag: stackoverflow.com/q/28351928/2555451 Our efforts were successful!
 
7:03 PM
In an ideal world, we'd all be apprenticed to wise old mentors, who could turn their considerable experience to the matter.
 
I'd want to upvote the question because it is a good first post, but then at the same time would want to downvote because it uses python 2.7
 
I always have problems ... but they dont usually have SO answers ... and cant typically be phrased appropriatly and still illustrate the issue
like currently Im fighting with building a driver installer
and it claims the driver is unsigned when I connect the hardware ... however it does not complain when I install the driver and I can clearly see the driver is signed
 
Learning on SO makes me feel like the man in the parable who doesn't have ten year's experience, but rather one year's experience ten times over.
 
you mean groundhogs day?
:P
 
some article said that the groundhog day was repeated for 10000 years...
I am not sure the outcome would have been that sane in that case...
@Oz123: we just burninated the PE tag; it is a meta tag. Please don't re-create it. — Martijn Pieters 1 min ago
omg
 
7:21 PM
I just saw that article ... (shocker since it was just groundhogs day)
 
I may have read the same article. It was long enough that he went through an entire library reading a page a day.
(although that particular scene didn't actually make it to the finished movie, so its canonicity is questionable)
 
DSM
I spend time in a chatroom where the issue of the canonicity of deleted scenes in Groundhog Day is raised. This is a thing which is true.
 
It beats a kick in the pants.
 
DSM
Okay, time for calories. Rhubarb for all!
 
7:28 PM
The most recent theory I read, suggests that Punxsutawney Phil was actually some kind of powerful trickster god, explaining why Bill Murray entered the loop after he insulted the town and groundhog, and exited the loop when he complimented him.
If this is so, it would be well within his powers to keep a mortal from going insane over the course of his 10,000 year punishment, all the better to torment him.
 
lol
man what a deep movie
:P
 
It's one of my dad's favorite films, and thus I have had much time to ruminate about it.
 
7:43 PM
gotta put the final touches on this project .-. what kind of stuff are companies most expecting in a web app?
 
Blinking neon text
and imagemaps
 
that will really bring out the comic sans!
 
That thing where you scroll down and instead of the page scrolling, cool line animations move across the screen, or the features of your fancy smartphone pop up over the illustration
 
:thumbs up:
oh yeah and tiled animated gif backgrounds
 
Hmm, pretty sure my KS type system won't work unless I implement eval... That's probably not a good sign.
 
7:58 PM
JScript is basically
for line in input_file:
     if line.startswith("py"):
        eval(line.split(" ",1)[-1])
     else:
os.system(line)
:P
 

« first day (1573 days earlier)      last day (3391 days later) »