« first day (2304 days earlier)      last day (2658 days later) » 

12:53 AM
hey, @UrielEli ;)
 
lol sup @AndrasDeak
 
I'm sorry about that lambdify answer of yours
And I probably misunderstood you a bit... I thought you said that OP was doing it wrong (as in: their whole problem was not straightforward), which is why I wrote that I'm not sure if OP is doing unnecessary work
the whole "I don't know the order of input parameters to my lambda" setup is pretty weird to me
 
yea i tried to walk around it using manual reducing
didnt work out anyways
 
:(
I wonder if sympy should expect this scenario...maybe there's a setting, or this should be a feature/bug-request
 
i think its more of a numpy issue as you addressed in your answer
 
12:58 AM
for anybody else here: it seems that sympy turns Or(var1,var2,var3) into something like operator.or_(var1,var2,var3) or equivalent, more like numpy.logical_or(var1,var2,var3), which doesn't work because these are binary operators
@UrielEli superficially yes, but you don't even need numpy for this, and I'd expect lambdify to work without numpy...
sympy itself should realize that Or and And with >2 arguments whould be translated to any/all
 
in that case I would assume more cases of conversion might exist (not that I can think of any), but I guess it would come good as a feature
 
yeah, that's possible
skimming through the sympy github repo I only found an issue about np.max vs np.maximum, and one about lambdifying logical operators not working in 2009 which seems to be solved now:P
I might open an issue about this later
 
@AndrasDeak I think their last issue might be related github.com/sympy/sympy/issues/12126
In the specific problem context
 
hmmmm
suspiciously familiar
 
hmmmmm
 
1:12 AM
nice catch, I couldn't find that in two runs
 
beard scratch
deeper beard scratch
 
*scratches idjaw's beard*
 
turns over for belly rub
it just got weird didn't it?
 
@UrielEli I think the problem has to have the same source (school assignment?), but the actual issue is different
@idjaw :|
always poutine on a show
 
it's cool. It's not like this place is public or anything
 
1:13 AM
I dont think schools know sympy
@idjaw it is but i dont think its wierd
scratching beard is good for solving problems
 
I think idjaw's concerns are more along the belly-rub-from-foreign-stranger aspect:D
 
yeah, that one. More about my fully trusting Andras, but yeah, we can go with stranger
;)
 
oh in that case rest assured, i will have to get on a plane for that
 
I assure you, I'm one of the strangest
 
That's what makes you so loveable
 
1:16 AM
<3
 
Cbg. There should be a dupe for this but I'm on my phone so doing a search is a bit painful. stackoverflow.com/questions/42047222/…
 
cbg
 
I'm never going to get used to your timezone PM
I'm constantly surprised when you come online
I really need to start remembering it
 
I'm on summer time so it's UTC+11. But I'm a nightowl so it's not unusual for me to be here after 3am
 
@PM2Ring I couldn't quickly find a generic "unique non-hashables", only specific ones; mostly lists of lists
 
1:21 AM
There are many "extract unique" but not "validate unique"
 
well, if len(extract_unique)==len(orig), then you're done
so a good "extract unique" would suffice
 
If you find a good dupe I'll hammer. I guess a list of lists one is OK.
 
even OP notes that they would check len(str) vs len(set(str))
@PM2Ring I found the above two, but I'm not an experienced dupe hunter
 
@AndrasDeak I guess that works but I'd prefer something more direct. OTOH, the OP seems happy with the accepted answer.
 
yeah, I have none, sorry
 
1:33 AM
Moses posted an answer that tests that all items are identical but he deleted it after a couple of us posted comments. :)
 
aww
oh, I see, comments on his answer that it's wrong
well then I understand:D
 
@AndrasDeak No worries. Dupe hunting is a tedious and (mostly) thankless task.
 
yeah, I'm not straining myself to get a gold badge in anything:P
 
i would be surprised if out of the 700k python question more than 10k are unique
 
we should ask how we can reduce the python questions to the unique ones...
they're not hashable after all:P
 
1:38 AM
:P
 
add a library for frozenquestion :D
early morning cbg
 
:D
cbg
PM and Moinuddin are here, I should go to sleep:D
 
I think I will sleep back in 5 minutes :P As per my schedule, I should be sleeping for 3 more hours. Don't know for how much time I could make it
Oh, yesterday I slept 4 hours before my schedule. May be I am going to be up ;)
 
DSM
2:04 AM
@AndrasDeak: thanks, I wasn't familiar with that at all! Very nice. A lot more sophisticated than the kind of manual unpacking I've done in the past.
 
2:35 AM
@UrielEli in case you're interested: I opened an issue on sympy's github
 
1 among the 2268 opened issue o.O
 
this seems easy to fix, or easy to dismiss
good night
 
good nite
 
3:10 AM
@AndrasDeak Are you still awake?
That horribly bad code from earlier today - the OP sent me an email, letting me know that they're a final year PhD student trying to finish their thesis, and attached like a 5000 line Python script as completely broken as the little clip in that question lol.
 
 
4 hours later…
7:19 AM
noob scientists
 
7:42 AM
cbg
 
8:08 AM
cbg
 
8:23 AM
what is this: pypi.org
 
9:07 AM
How do I plot with matplotlib?
pyplot.show() does nothing
dpaste.de/40tm this does nothing
 
9:20 AM
@khajvah it plots the graph , how can i show that to you?
 
well it doesn't for me :D
@Naveen are you on windows?
 
ubuntu, whats your matplotlib backend khajvah?
 
GTK, Qt4Agg
both don't work
 
@khajvah thats strange
 
ok, I found an error message
I will be able to fix it
 
9:29 AM
@khajvah are you able to save the plot?
 
this is the first time I am using matplotlib
I haven't tried
 
9:43 AM
@khajvah warehouse
built on pyramid by dstufft
 
@AnttiHaapala lol, noob. Didn't use node.js
 
this guy, aws is now hopefully letting him finish that :/
 
looks great
 
@MYGz old
 
9:47 AM
hmm
 
though it wasn't discussed then
the real problem is the damn forking :D
 
I can't install pyqt on virtual machine because my Internet is so shit that it can't download 90 MBs without interrupting
 
Told OP to use raw string in c# regex. Now he is asking whats a raw string. Google fu is failing me.
 
it's raaaaaaw
 
Hi All , i need some help from you guys..
 
10:35 AM
@DeletingAccountNeverReturning so now you want to state an acceptable political position of your own. This is not on-topic for this room. I'm sorry you feel so strongly about that one post, you are free to delete your account (an overly dramatic gesture in my view), but keep it out of this chat room. There is a chat room specifically for that topic.
sigh, stupid Mac UI not supporting multi-select. Bear with me folks.
 
guys, I am asked to fit a polynomial through some test points using least squares method
he also told that we need to make an educated guess on the order of the polynomial
but I don't know how to make the guess
orders 2-5 look fine
 
11:17 AM
HEllo
 
11:41 AM
here is my code file http://pastebin.com/6J1iqAn1 i am trying to login to this http://www.vanbuuren.eu/zoeken/ website and fetch category list
but somehow it is showing nothin can someone tell me bug in my code and also how do i make sure that i have logged in page ?
 
12:34 PM
Cbg
 
1:29 PM
cbg
@khajvah did you get matplotlib working?
@Mitch It's sooooo hard not to say "told you so", so... told you so! :D
that's hilarious and so so sad at the same time :|
 
cbg
 
off topic: anyone knows how to find path for a prefix command in nginx? like "service" is /usr/sbin/service but how can i find for a specific?
 
which in shell, but there was a way to do in python
29
Q: 'which' equivalent function in Python

prosseekI need to setup environment by running 'which abc' command. Is there python equivalent function for 'which' command? This is my code. cmd = ["which","abc"] p = subprocess.Popen(cmd, stdout=subprocess.PIPE) res = p.stdout.readlines() if len(res) == 0: return False return True

 
1:45 PM
@AndrasDeak yeah
I couldn't install pyqt on virtualenv though, so I didn't use virtualenv
but that's because my internet is crap
 
but there are like a dozen possible backends
 
LibreOffice writer became pretty good
 
agg-y stuff
 
@AndrasDeak I am dumb, I just copied a matplotlibrc file from somewhere looked at the errors
 
1:48 PM
never forget that I am lazy to read stuff thoroughly
 
for the record: backends
there's TkAgg for instance that doesn't need qt
 
@AndrasDeak is it as good though?
 
good as in?
 
qt one was pretty interactive
 
^ tkagg
you can't see the mouse but the bottom right interactively shows the coordinates
I'm fairly sure that all the interactive backends (i.e. which is not pdf, svg etc) have the same functionality
 
1:56 PM
looks the same
have you used spyder?
 
nope
 
looks good for sciencing
 
I do my own sciencing:P
vim+ipython+numpy+scipy is all I need
 
for short experiments where you change/rerun scripts often, spyder should be good
 
Wait, don't you write fully working code at first attempt?
 
2:01 PM
I was joking around Andras, of course I do
 
somebody should tell the spyder guys that their logo looks less like a snake and more like a spermatozoon
it seems to support exactly the stuff I usually use (forgot matplotlib from the above list), so sounds legit
hmm, there's even a debian package, nice
 
I used pip
 
aren't you on arch?
 
yea
 
:|
oh, spyder looks exactly like MATLAB
 
2:07 PM
that was the idea probably
 
wonder if it's similarly bulky
hopefully it doesn't run atop a java VM
no thanks, too much mouse
 
@AndrasDeak ha ha ha yep
 
@AndrasDeak the first thing I did when opened a script in it was "dd" :D
 
and it surprisingly typed 'dd'
 
2:09 PM
D:
the horror
 
whats 'dd'?
 
"delete this line" in vim
 
ah
 
I should compress my homework to .tar.gz, so my Windoz professor suffers
 
2:24 PM
when the student says "so my professor suffers", it's rarely the professor who ends up actually suffering
 
"I am sorry but I can't open your submission, and it's already too late, so I won't accept this homework"
 
2:38 PM
Cabbage
 
cbg
 
unclear how OP managed to find SO stackoverflow.com/questions/42052654/…
 
and lunch rbrb
@PM2Ring looking forward to delvoting that one
in a few days...
like this one :P
 
It may not last that long...
 
all the better
 
2:46 PM
@AndrasDeak I forgot to downvote that one but I just del voted.
 
what's the worst part of writing web app?
Question: is there a way to disable certain Vim plugins for specific file types?
I want to use YouCompleteMe for JS and jedi-vim for Python but Python gets messed up
 
@khajvah The UI?
 
yessss
 
It used to be worse when browsers were less compatible, OTOH, we didn't have to worry about mobile /touchscreen.
 
@khajvah of course
considering that you can do anything with vim
As the writer of jedi and jedi-vim I ask you: why do you want to do this? — David Halter Oct 19 '12 at 19:09
I have an if has("autocmd") block in my vimrc, this should go inside for your plugin of choice
 
3:07 PM
@AndrasDeak vim-plug looks cleaner
thanks
 
no worries
 
cbg
my old kernel doesn't seem to leak, Antti
 
hey guys
 
3:19 PM
i have a question about visual studio, i know this is a python chat, but nobody is active in the other chats :P
 
wait for Monday
 
okay :P
 
(unless others are inclined to help you, but python doesn't really sound like visual studio)
 
ye i know, i thought maybe others worked with visual studio before
 
it's typically discouraged to ask about explicitly unrelated languages just because "other rooms are inactive"
I was being serious, there's much more traffic on weekdays
 
3:22 PM
okay thanks you
 
you too
 
Isn't Visual Studio an IDE?
 
I already fixed it :)
 
3:53 PM
@AndrasDeak then compile the new kernel and earn +3 guruhood
 
I might have to:D
once I'll have compiled a kernel, I'm no longer allowed to claim to be an end-user
 
4:11 PM
:d
 
god I hate front end development
 
c|b|g
@khajvah me too :D
 
4:58 PM
ugh, I need a frontend developer for my project
I don't have the nerves
 
5:08 PM
cbg
 
5:45 PM
woop woop I am a css master
 
 
2 hours later…
8:10 PM
Is someone familiar with PyQt5?
I am currently working on a python program which should print the output of the console to the ui
Maybe I should drop the gui and run it on a flask webframework instead`?
 
@SebastianNielsen What do you mean? Is another program running and your program is watching the outputs?
 
No uhm, I want the output from the stdout printed in the widget. If that makes sense?
So if I say: "print('hi')" it should be printed in the widget.
 
Ohh
 
Do you understand what I am trying to accomplish?
 
Sort of, I've not used pyqt but i'm pretty good with google, sadly the only thing i can think of is replacing where stdout goes, changing it to go to your widget?
 
8:20 PM
Yeah but how is that done?
I am not used to pyqt either
 
Again, i've not used qt so i found a link on how to make it output to a file -- stackoverflow.com/questions/4675728/…
 
I wrote my code in a editor with python 3, and is trying to make it more userfriendly
I dont think that would help, in the link you sent me.
 
I don't know any qt either
I just googled "print to pyqt5 widget"
 
on the second answer you could change the bit that writes it to a file so it changes the widgets text
Or, yea, go for the simpler option and google what you're actually doing :D
 
there is a phone hanging message in(when the message is opened phone hangs for a while) whats app, anyone knows how its working?
 
8:39 PM
could use an opinion
if you are using a CSV import feature where you can add or edit items based on their row IDs, what would you say is expected behavior:
ID   Some_Column_Name
5    SomeNewName

Result:
ID exists: (item 5 is updated to SomeNewName)
ID does not actually exist: ??

vs.

ID   Some_Column_Name
     SomeNewName

Result: SomeNewName is added as a new item
 
9:12 PM
well, you can and perhaps should error on id "does not exist"
 
9:25 PM
cbg all
 
@AnttiHaapala That is how it's implemented currently, but was wondering about scenarios where someone would perform an export and then try to import later / they'd need to basically clear all the IDs, etc
 
note, for Qt, I would use either Stream (answer that @AndrasDeak linked to) or use interactive console if your using Python 3 and really just want a console interface which seems to be the main time I see people trying to legitimately do that (most just don't understand TextWidget)
with all the standard warnings that having to do an eval (or eval-ish) on user input would usually bring
 
9:44 PM
@MarcusS clearing the whole column is rather easy...
... or removing it altogether
and cbg @JGreenwell
long time no
 
cbg
 
yep, been busy and was kinda sick of burning in some of the flame wars that were on meta
Granted I'm sitting here doing the electronic version of fingers in the ears "Lalala...I'm not listening with the current meta stuff but I'm okay with that :)
 
10:11 PM
rerecbg
 
It's been bugging me too long
What's cbg?
 
short for "cabbage"
 
@Orange bugging you for too long eh? See the link in the sidebar: sopython.com/chatroom
 
I duped Python shorthand for multiple conditionals in an if statement But the answer to this question is very well explained as compared to answers in the linked questions
Should it be reopened? OR, could anyone suggest a better dupe target?
 
@AnttiHaapala wow, i thought people were just crazy here :P
 
10:16 PM
@Orange well, did I say we aren't?
 
@AnttiHaapala Laurel ;)
 
@Orange You should read the rules of chatrooms before starting the conversation in any room*. It will give you the idea of do's/don'ts of the room (might save you s being kicked out) ;) (PS: Even I wasn't knowing cbg when I first came here and asked the same thing. In return got the same response as I mentioned :P )
 
@MoinuddinQuadri the pycharm one is not really good at all
 
I took a quick look over the rules, but didn't even see the first paragraph which said about this!
 
well, it's not in the rules, but on the same page
 
10:22 PM
@AnttiHaapala I have reopened it. I doubt that there isn't any good dupe target to that question. I think it is me who is not able to find one :/
 
I really can't find :/:/
 
:/:/ not a recognized command in vim
or technically ex
but now its a mode
 
@MoinuddinQuadri perhaps it needs a canonical answer that explains all operators that chain
comp_operator ::= "<" | ">" | "==" | ">=" | "<=" | "<>" | "!="
| "is" ["not"] | ["not"] "in"
these all can be chained
 
and my conversation with myself about it points to the validity of the assumption that all these room 6 people are just crazy
 
10:30 PM
there is always an exception to the rule
also all the bots are sane
 
well, at least there is one who can't do predicate logic with existential quantifications
 
@AnttiHaapala Yes. I checked for canonical answers as well. The real issue is that the only answer to this question is precise, well explained and with references. I am not able to find a target with answer better to this one. I think we should leave it opened (at least I am no longer searching for the dupe :| )
 
I remember that library from Haskell.... argh! now I'm remembering Haskell
 
@JGreenwell Python has all(....) function which returns True only if the iterable passed to it contains only "Truthy" values. So, I guess there aren't any exceptions with all ;)
 
∃x∈ℝ⁶ (¬ C(x, P)); where C = can, P = predicate logic :P
 
10:39 PM
only if you pass it something that is not interable
 
^ :D . But our room 6 rules acts as try/except block for those exceptions :P
 
10:55 PM
To be fair, after signing on to chat I just lurked for a few days until I figured it out (only jumped in for a Qt question if I remember: yep, Qt question after 6 days) so I saw someone else with the "what is cbg?" question....which is more sane then I normally am
 
@AndrasDeak <3 Romania
 
11:19 PM
which part?
they're doing awesome with mobilizing the people and effecting change
 
Cabbage
 
cbg
you're earlier than usual, aren't you?:)
 
@AnttiHaapala Good idea. OTOH, there's this answer by Martijn stackoverflow.com/questions/28754726/…
 
@PM2Ring yea I saw that, but the question and answer do not explain it at all, this could be linked to in the other canonical Q/A
 
Yes, it's very early for me. :)
 
11:27 PM
I guess I need to get rid of my "football" virginity, so now watching the first minutes of superbowl
"so-called football" :D
 
@AnttiHaapala Yep, Martijn's one is better as a secondary link rather than as the canonical dupe target.
But until we have a canonical, that new question could be a target for the older questions that it was hammered to.
@AnttiHaapala I'm no sports fan, but American football seems like it has a lot of futzing around. I think Australian Rules is the most entertaining football to watch. But it's less popular in my state than Rugby League.
There's also this one but it's mainly about in chaining stackoverflow.com/questions/38296689/…
 
I played rugby once and I still don't see how that sport can be played without ambulances on stand-by
So far all I can say is I did like the Budweiser commercial
 
11:45 PM
:D
@JGreenwell though it is perhaps not historically very accurate...
 
rhubarb
 
Busch, or his family at least, would have been fairly rich, if I remember right from when I toured the estates/brewery in St. Louis - so steerage is unlikely at least
night @AndrasDeak
best part of tour of brewery was getting in a focus group to try new concept of their beer stored in bourbon barrels (casks?) - was really good
 
@JGreenwell I played Rugby Union when I was ten. Rugby League isn't quite as dangerous.
 
I played with cousins and uncles so I think that makes it extra dangerous
 

« first day (2304 days earlier)      last day (2658 days later) »