« first day (3458 days earlier)      last day (1480 days later) » 
00:00 - 12:0012:00 - 00:00

12:06 PM
Is there a dupe to close this? They literally just needed to implement the loop that they mentioned in the title
My only hesitancy is whether folium has a method to ingest lists of points rather than add in a loop
 
questions like that are so basic, you just want to tell the guy to go do a tutorial and learn python first
 
Yeah, it's kinda frustrating to know how to handle them. But, I think I found a reasonable dupe and used it
 
good
 
Sadly I do not wield a hammer so it can use some supporting votes :)
 
Hey, I'm new here. How does this chat work?
 
12:15 PM
if you have a question, just fire away and post it
if you just want to hang out and talk, you can do that too if it's python related
 
@BluePrint Welcome :) It's a way for people interested in Python to communicate in a slightly less formal way than the main site. We have some room rules that may help understand how it works
 
Do you think its worth to put ai neat python project on my portfolio if it uses tensorflow, so I didnt code the whole thing. I see alot of people coding their own neat library all the time.
 
why not
 
@roganjosh I often find myself close-voting Q:"how do I do X" A: "do X" questions as needing more details, because it's absolutely unclear why they don't just do X.
 
@BluePrint Most work will utilise existing libraries anyway and reinventing the wheel isn't exactly to be lauded if tools already exist. I think it's probably a decent skill to put down (demand for tensorflow skills is only going to increase)
@MisterMiyagi makes sense. Maybe less-so from the OP's perspective if we don't follow it up with a comment
 
user10984358
12:32 PM
Talking about reinventing the wheel, my superiors ask me to keep using the python2 framework in python3, even though there are things like a non-lazy map and filters are used. They just said thanks for the intern for exploring but we need work done
 
user10984358
Maybe test engineers don’t realize those changes, their response was change print() and fix errors as the code is run in python3
 
user10984358
In this case is it better to write a new code base in python3 or fix what is there?
 
     File "scipy/linalg/setup.py", line 19, in configuration
        raise NotFoundError('no lapack/blas resources found')
    numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
is there any about this?
in python 3.8
 
Plenty of information. Have you searched around the error?
@MisterMiyagi huh, the OP accepted the dupe
 
I found this solution
sudo apt-get -y install liblapack-dev libblas-dev

but I am afraid as if this will affect something else
 
12:45 PM
I think it unlikely that installing BLAS and LAPACK on a system that currently doesn't have it will break something else, but I can't give a guarantee
 
I thought numpy or scipy vendored some blas/lapack
 
1:04 PM
I ran both command and my error got changed to
 
@TheNamesAlc If people are forced to use Python 2 they should at least be using the future imports so that they can use the print function, and so that / division works like it does in Python 3. And avoid doing dumb Python 2 stuff like sorting heterogeneous lists (i.e., lists containing a mixture of different types).
 
or str vs bytes problems
 
@Mannya That looks horrible. I'm gonna go with the off/on again approach and suggest that you might want to reinstall numpy to have it compile against blas/lapack that you installed. What do you get from import numpy; numpy.show_config()? Please post in dpaste as the output might be quite large
 
It is often possible to write Py 3 code that works correctly on Py 2, but it's often slower due to the list vs generator thing requiring you to wrap generators in a list() call.
 
I made the mistake before on trying to keep a bunch of terrible code running, when I really should have thrown it out and reimplemented it - if that helps
 
1:12 PM
@roganjosh Okey give me 5 min i am updating you
 
But str vs bytes issues can be very difficult to handle in a way that works properly on both versions. Most of the time, it's just too complicated, and can easily lead to bugs.
 
doesn't the futures module have a unicode strings feature?
 
Hi :) I would like to learn how can I combine a code (ctrl + k) and text together, properly.
If I highlight only the code and press ctrl + k , all the text (the code and the explanations) get a form of a code after pressing enter, which is an unwanted result.

Thanks.
 
And of course there's a ton of Py 2 code out there in the wild that doesn't handle Unicode properly, it just appears to if it only ever encounters Latin1 encoded stuff. But throw an emoji at it and it will do Bad Things.
@YoelZajac It's impossible. Chat doesn't support mixing normal text & code, except by using backticks for single lines of code, not ctrl-k.
 
@roganjosh here is the output
https://dpaste.org/dYrq
of numpy.show_config()
 
1:18 PM
@YoelZajac read sopython.com/wiki/… and practice in the sandbox. URLs don't need code markdown.
 
@Todd It can't, due to the way Py 2 strings work. Fortunately, they realised that dropping u-strings in Py 3 was a dumb idea, so they added them back in.
 
@Mannya Ok, then I'm gonna stick to my guns and suggest that you'll want to reinstall numpy because it looks like there is no lapack linkage
 
you could prepare for python3 stringwise by making it policy to put a u in front of strings
 
@Mannya but be aware that I'm guessing here
 
1:21 PM
oh yeah.. that would be dumb to drop that - it's a good feature to help migrate
 
@roganjosh okey.
 
@Todd Yep. And using b-strings for strings that are supposed to be bytes, so there are no plain strings in the code. It's not a perfect solution, but it will eliminate a lot of problems
 
@AndrasDeak thanks for explanation.
 
I spent about a year writing "bilingual" code in my SO answers that works on Py 2 & 3, but eventually I decided it was too annoying, and it was better to post code that forces people to upgrade. :)
 
1:39 PM
I can do this all day
21 mins ago, by Andras Deak
@YoelZajac read https://sopython.com/wiki/An_Illustrated_Guide_To_Formatting_Code_In_Chat and practice in the sandbox. URLs don't need code markdown.
ignore the last part about the URL (I confused your question with Mannya's posts)
 
2:00 PM
@Todd it does, but that one has issues.
 
Holy cabbage, sopython.com gets 3000 views a week. Looks like our canon is fairly popular.
 
Why was I thrown from the chat several minutes ago? was it a technical problem or intetionally?
 
2:15 PM
Because you kept spamming messages that took up a bunch of screen space in order to ask "what does a.rect.x = a.x mean?
 
@YoelZajac I was trying to find the quote where I told you to read the formatting guide, but you kept reposting the same message over and over again. You stopped when I kicked you so it seems it worked.
 
I'm here only to learn, definitely not to spam.
If it takes more time than it should take I'm sorry.
 
It's alright. Just pay more attention to what's happening around you.
 
AMC
@Mannya I'm late, but you could always use something like Conda if you're worried about global installs and conflicts.
 
I'll try again if it's ok...
What's the meaning of: alien.rect.x = alien.x ?
without the context.
 
2:30 PM
did you take a basic Python tutorial? do you know what the syntax a.b means?
 
I'm studying from a book: "Python crash course."
 
@YoelZajac You weren't asked to post your question without context, you were asked to read the formatting guide <-- that's a hyperlink that you should click, read through and understand
 
What's unclear about it? It assigns the value of alien.x to alien.rect.x.
 
I'd also remind of yesterday's similar situation
20 hours ago, by Andras Deak
@YoelZajac it's been 1.5 hours since we started and we're not a single step closer to what you're asking. I'm starting to think this is not very helpful.
it sounded a lot like how this sounds now
 
Did you try it?
 
2:39 PM
yeah it fails
 
Then that's the answer. You can't have mutable keys
 
user10984358
@PM2Ring this is what bothers me. There is a lot of len() checks on map objects which obviously won’t work on py3.
 
@roganjosh ill need a tuple then
 
Yup. Not sure why we've had to go through chat to answer something you already knew?
 
I'll enter here when I know more. Thank you guys for all the help. :)
 
2:41 PM
@roganjosh tuple also fails
 
AMC
@YoelZajac It's probably a good idea to try walking through the code on paper.
 
@Permian care to give any more info on what exactly you're doing and how it fails?
 
im trying to debug first
 
@YoelZajac thank you!
@AMC pygame's a bit less transparent than usual python code
but otherwise I agree
 
2:58 PM
i fail hidden cases despite passing all the visible tests
am i allowed to ask whether there is anything obviously wrong with my answer
 
You can ask (you already did) but I'm not sure people are so enthused to answer these questions (we can't see the hidden tests any more than you)
 
ok
 
3:20 PM
@Permian do you know anything about the failing test? the input or expected output?
take note that your output is not sorted by time.
sorted_ivls is derived from sorting intervals by time, but the output is created by the order of intervals.
The description is somewhat unclear which output is desired, or whether events can even be out of order.
Hm, no, it seems input order is desired
 
@Permian I haven't looked at your code, or the challenge site, but my advice is: don't just rely on their visible test data. Make up your own test data. Good data doesn't just verify that the code handles the easy cases. You need to verify that the code works correctly when given ugly data too. So you need to figure out what properties that ugly data needs in order to properly test all the logic in your code.
 
4:22 PM
@Permian I'm solving that one right now, will send you my test cases if I find any particularly edgy ones
(ping me in an hour if I don't)
 
4:34 PM
@shad0w_wa1k3r ok
@PM2Ring thanks
 
4:48 PM
the horrible edge case is
1
2
2 5
 
5:16 PM
that looks malformed.
 
i didnt press enter again
1
2
2 5
2 5
 
and you're supposed to say that's impossible because of overlap?
 
yes
its tripped up a lot of people juding by the internet elsewhere
 
I don't see anything in the problem description that rules out such cases as invalid. :/
dupe (see second dupe target in comments) stackoverflow.com/questions/61030761/…
 
@MisterMiyagi closed
 
5:28 PM
Just missed it
 
@AndrasDeak Can you bolt on the second dupe? It's almost exactly the same problem.
 
Sure
 
Thanks.
 
Ack, that was my bad, sorry
 
Is adding additional dupes tied to reputation, by the way? Or hammer privileges?
 
5:32 PM
Hammer
 
6:10 PM
@Permian no, that should basically give "JC" or "CJ" as an answer. The overlap should not happen for a single person. Both, C & J can work together on different activities, but one of them shouldn't be doing 2 activities at any time.
Mine got accepted :)
 
The new "needs more focus" and "needs more details" wording confuses me to no end. I've now settled for "needs more focus" => there is too much in the question, versus "needs more details" => there is too little in the question.
 
yeah, English is hard.
 
Nah, it's not an issue with the language itself IMO. The change in CV reasons seems quite deliberate to make it confusing. If we don't know why we're closing something, we won't close it and everyone will feel more welcome
 
@MisterMiyagi just remember their old names
 
6:25 PM
Like a picture of a love long gone, the old close reason wording is but a faint shadow in my ageing mind.
 
Right in the feels
 
"needs more focus": not focussed enough -> too broad. "needs details": details are missing, it's unclear
 
Hm, now that you mention these... seems like I should turn off the nostalgia filter from time to time.
 
6:59 PM
Dropping Python 2 from Flask: github.com/pallets/flask/pull/3554
6
Already did it for Jinja, Werkzeug, and MarkupSafe.
 
\o/
 
7:18 PM
@shad0w_wa1k3r thats exactly why it needed to be consider
c and j on the different activites at the same time
 
stackoverflow.com/q/61032702 dupe of stackoverflow.com/q/36250353 (was impossible to tell until the user self-answered, the question was low quality)
 
@davidism while you're here... What do you suggest in regards to the incompatibility of Flask-Session with Werkzeug 1.0 here. I've been holding werkzeug at 0.16 to avoid the issue but should I consider Flask-Session dead? I have advocated it a few times in answers, I think
 
7:33 PM
It seems dead to me, the author hasn't been responsive for a long time.
I'd probably use flask-kvsession if I wanted to keep server side sessions (it uses redis)
 
Ok, thanks. I'll go check some of my answers shortly and update if necessary. I'll also make the change myself
 
kvsession isn't maintained either, but it's not broken
 
7:48 PM
@ThatComputerGuy please see sopython.com/chatroom for our rules about posting recent questions.
 
I am looking for some directions to contribute to numpy library. Any guidance on where to start?
 
go to their issue tracker, find an issue that's interesting to you that doesn't already have a pr, and make a pr
 
@davidism @roganjosh Thank you.
What I am having issues with is identifying the order in which each function is called. Is there any way I could visualize that?
 
You're going to need to be more specific. Do you have a MCVE? Is this related to your desire to contribute to numpy?
 
8:02 PM
I just want to be more useful to the community as a mathematician cum python developer. For eg: take this issue, github.com/numpy/numpy/issues/15905. It is reported as a bug. But I am not able to figure out where should I start checking to fix this issue. Is there any standard process to be followed in such scenarios?
 
In regards to the process on actually implementing something to fix it, I think my links are relevant. As to tracing code paths - I think you need to just be familiar with the code base. Can you easily navigate numpy on github?
 
There's a reproducible example. Use a debugger to run the code and step through the calls.
 
@roganjosh heads-up: I've recently learned that numpy.org is the good domain going forward
docs.scipy.org/doc/numpy should be a mirror numpy.org/devdocs
 
@AndrasDeak huh, ok, thanks. I guess they couldn't let pandas get ahead with their new docs :)
 
@davidsim @roganjosh Sure. So this is what I am going to do.
I will clone the repo, try to reproduce the stated issue with the given example. Since it is not outputting any errors, I will try to trace the calls that is being made, using step in. And will try to understand what is causing the issue. Is this the right way to do it?
 
8:17 PM
@codeslord if it's you that's starring messages, they work differently to upvotes from the main site. We prefer to just star things that are of interest to others in the room and not necessarily as a way of saying thanks
 
@roganjosh thank you for that. Will remove the stars now.
 
No worries :)
Separately, can you reproduce the issue with your current installed Numpy?
 
Will try that right away.
 
No rush. There's also only so far I can go in helping on this potential contribution, but this seems like a logical first step
 
I am able to reproduce the issue. trying to fix it right away. Thanks a lot.
 
8:28 PM
@codeslord be careful just diving in. It's a complex code base, to say the least. You will need a reasonable understanding to understand potential side-effects from changes that you make. In any case, I wish you luck
 
@roganjosh Sure,I will try to be very careful. I might need some guidelines to understand the side-effects. But I think that is too much to ask. Thanks for your help.
 
9:29 PM
In Matplotlib xtick labels are independent from the data! So how can I label the xaxis according to the data?
 
What kind of plot do you have?
 
@roganjosh scatter plot which gets latitudes and longitudes from an api
 
@aderchox plt.set_xticks(your_data_x) or ax.set_xticks(...)
or do you want to change labels?
in that case it's probably safer to read about Formatters
 
if I use set_xticks the longitudes for some points are added on the xaxis but the rest is just blank. I want the xaxis to be in range -180 to 180 and then the point be drawn in the right spot.
 
@aderchox ok, well then there are 2 things that don't make sense to me; 1) why would you expect an x axis label to be dependent on the data (beyond setting the upper and lower bounds) and 2) are you plotting lat/long in a Cartesian way?
 
9:43 PM
@aderchox That's not very clear to me. Can you show a figure?
 
@AndrasDeak yes, here's a screenshot. No matter what's the longitude, it starts drawing the first point at 0 longitude:
 
Then your data starts at 0...?
Now it's less clear than it was :)
If you want to assign different x values to your data, pass those when plotting instead of whatever you have now
 
no, it starts from a number between -180 and 180 :)
 
OK, then I'll need a short MCVE that reproduces your problem. Are you using 2 arguments to plot?
 
What are you actually trying to do?
 
9:49 PM
Compare plt.plot(your_data) and pt.plot(your_x_data, your_y_data)
 
@roganjosh Just having a simple plot of the path of a moving satellite
@AndrasDeak ok
 
it seems to me that your x data right now is just np.arange(y_data.size), which is not what you want. You want to pass actual longitude values as the first arg.
which is to say, the problem is not with your labels, but with your data you're passing to plot
 
@AndrasDeak I'm almost sure I'm passing right longitudes. I'll put the code in pastebin
 
it's equally possible that you're mishandling the data from the API and you're using an index rather than the longitude
@aderchox OK. You an also always print(what_you_are_passing_as_x[:10])
 
9:55 PM
OK. the code seems fine to me. Check your data.
 
@aderchox what are the units of the axes?
 
you might also want to switch from scatter to plot and use a line without markers, but that's just a style suggestion for dense continuous data
 
@roganjosh degrees
@AndrasDeak I'll try that
 
that won't help with your problem!
another style note: use 4 spaces for indentation
 
Ok^2
 
9:57 PM
for your actual issue you have to investigate your data
I just grabbed the json and it's at 59.2, -44.5 which is consistent with degrees
OK, your code is not OK after all
  location_axes.set_xticks(range(-180,180,10))
  location_axes.set_yticks(range(-90,90,10))
  location_axes.set_xticklabels([ str(n) for n in range(-180,180,10)])
setting tick positions and tick labels is a good way to detach your axes from your actual data
 
@AndrasDeak I'm not sure what do you mean. Do you mean the data received might be wrong? I think it's from a very reliable source.
 
@aderchox that's what I meant, but looking at the API I find that unlikely now
I more expected a bug in your handling
Aaaah. The data you get from the API are strings!
 
@AndrasDeak ok but not setting them also gives a blank xaxis so
@AndrasDeak !!
 
@aderchox it shouldn't, I think
strings are plotted as categoricals, which are actually integer indices with automatic string labels
 
Ohh
 
10:02 PM
another side note: you should probably check for that message field as well, or you might end up with missing data/errors
@aderchox that's why I said earlier that if you want to mess with ticklabels it's usually safer to use a Formatter that keeps the data->label pairing
so... just use xs.append(float(...)) and it should start working
 
@AndrasDeak What is a formatter? Does it label ticks?
 
if your plots end up fishy (especially: empty) just remove all the xlim/xtick/xticklabel etc. calls and see what the automatic plot looks like
 
Thanks for your time.
 
no problem
 
10:28 PM
Does anyone else sometimes just appreciate the fact that music exists? I feel like I do that a bit too often in the middle of the night
 
@Aran-Fey I know I'm the worst person who can possibly reply this at this moment but I reply only because it might be funny. I don't like listening to music at all. It's just too artificial. I'd rather listen to the air and even the silence itself, but no music :D
 
Hmm, that's unusual :) But I'm sure there's a word for it.
Have you listened to a lot of different kinds of music to see if you like any?
 
I hate music, and good food.. and liquor..
 
Yes, I have, I enjoy listening some from time to time, but usually I'd rather not.
 
Oh no, we're outnumbered!
 
10:34 PM
Run away!
 
:))
 
and women, and people in general
 
Todd then you remind me of the first chapter of Siddhartha :)
 
i hate movies.. so I wouldn't know
 
That's a book
 
10:36 PM
ah
 
@Aran-Fey currently got Rocket Man on Magic radio on the lowest possible volume. Can't sleep without it atm
Not Rocket Man in particular, but music in general. I also can't work without headphones in with some music :)
 
@Todd I hope you won't become him in the second chapter :D
 
achieve enlightenment? I doubt that coudl happen
 
@roganjosh Usually when I listen to music while doing other stuff my brain just kind of blocks it out :( Unless the song is bad or really good
 
you probably listen to country
 
10:45 PM
@Aran-Fey I listen to an awful lot of music without lyrics when I'm working. The more dramatic, the better. I'm just odd; it helps focus my brain. Half the time I'm working on problems, i have some epic instrumental music blasting in my ears :P
 
cue all of John Williams
 
@Aran-Fey That can also be deemed a good thing that your brain blocks it out(Hyper Auditory Sensitivity Autism)
 
Oh, I like me some epic music. I discovered Niklas Johanssen and David Chappell recently, still need to listen through their stuff though
 
@AndrasDeak I'm quite surprised it hasn't come up in my youtube playlist that it makes for me. A typical day starts with searching "kinetic epic music", clicking the video that has the dragon and just hoping youtube will fix the rest
 
huh, I don't believe I've heard "kinetic" and "music" in the same sentence before
 
10:56 PM
Just the way I remember to find the video. Same as with pandas, you just remember the keywords to get the result you want from a search :)
Genuinely curious, though. This is the top result for me. But, I don't know how much of that result relies on how much google et al. knows me
 
oof, 44 minutes. Sleep just got postponed again :P
it is the first result for me
 
Don't try pin your insomnia on me :P
(You also got me stuck in a Kichen Nightmares loop so at worst we've just got even :) )
 
hahaha, sorry about that
 
@roganjosh that reminded me of the OST of the new Witcher series. Really good, but probably not kinetic enough for you. And people who liked it also praised the music of the third witcher game, but I never played any.
The only music I can listen to in the background while I do something else is Lord of the Dance. Blast from the past, I'm aware.
 
I listened to the Witcher OST, there's some good stuff in there. I like the Khaer Morhen theme
although that's the polar opposite of epic
 
11:05 PM
Just watch out for Toss a coin... because that yam is an Ohrwurm if I ever heard one
 
Listen to Toss a coin to your Witcher, you say? Got it
 
That reminds me, Leo Moracchioli has a metal cover for everything, that song included. All brilliant.
 
Controversial opinion: I hated The Witcher. I couldn't finish the series :/
 
Worth listening to that version of Toto's Africa
@roganjosh not controversial, merely wrong
 
The books, game, or movie?
 
11:09 PM
The series on Netflix
 
oh right, it wasn't a movie
 
I think you mentioned when you were struggling with it
 
@AndrasDeak for someone that values the correct wording of "you cannot/shall not pass" from Tolkien, it hurts me that you're being like this
 
Just to be clear I wasn't serious :P
 
It's crazy how important a good soundtrack is though. Most movies and games that I remember as being good had great music. It just elevates it to a whole 'nother level
 
11:14 PM
Yeah, crucial for immersion
 
The first episode is just insane and nonsensical exposition. "Oh, we didn't do that since we fought the flimflams on dodo hill and they took over sillybilly castle" --> "hush child, we gifted them the nikinonk fields in exchange for ...".
 
@roganjosh oh I don't expect deep logic in a fantasy world with magic
Like, how do I know how a genie works?
Plus I figure there's a lot missing from the books
If you just mean the actual needless exposition: everybody does that :(
Hard to replace a narrator otherwise
Anyway, rhubarb for now
 
A lot of films would benefit from having a narrator tbh
 
Agreed
 
Hunter x Hunter proved that it works
heck, the HxH narrator is probably my favorite "character" in the show
 
11:24 PM
@AndrasDeak I think the original LOTR got around it pretty well. We dont speak o... The Hobbit
Rbrb Andras. Also, I need to try sleep. Rbrb
 
11:43 PM
OP wants to abuse dataframes, should we help them? Not sure should we close, ask for justifications, or what?
 
00:00 - 12:0012:00 - 00:00

« first day (3458 days earlier)      last day (1480 days later) »