« first day (4327 days earlier)      last day (622 days later) » 

12:00 AM
@roganjosh to my understanding, yes. it was in an era when C and C++ were dominant, and marketing on such basis was feasible
you can find the phrase in some textbooks, e.g. oreilly.com/library/view/java-in-a/9781492037248/ch01.html
intermediate_df = df.groupby(
    by=['country','grade','category','id'],
    as_index=False
).agg(
    int_totals=pd.NamedAgg(column='amount', aggfunc='sum'),
    int_counts=pd.NamedAgg(column='id', aggfunc='count')
).groupby(
    by=['country','grade','category'],
    as_index=False
).agg(
    mean_totals=pd.NamedAgg(column='int_totals', aggfunc='mean'),
    mean_counts=pd.NamedAgg(column='int_counts', aggfunc='mean')
)
it's not bad with nice spacing. Just method chaining being method chaining
if I used Pandas all day, I'm sure I'd have a solid intuition for what it's doing, too
 
 
8 hours later…
7:56 AM
Doing some interactive testing using tkinter. Wondering, is it possible to use a tkinter's slider (using Scale) but without specifying the to= argument/parameter. Basically I don't want to have to set a maximum value, if that make sense
I guess this would be kind of hard since the slider length is determined by the max value, so I'm guessing I'm still obliged to have one (eg: maybe using a really huge value could work). Or maybe I can use a normal button and increment the value I want.
 
8:24 AM
No idea what you're using this for, but maybe a scale with a range from 0 to 1 would do the trick
 
9:12 AM
Whatever happend to that Eel library? I remember it being very promising.
 
9:34 AM
@Aran-Fey hmm, didn't think of using that, will try it thanks :)
@dhiaagr didn't know about that one. I did look up cefpython a while ago when I was trying to do a js/python project, but that's it
 
 
5 hours later…
2:05 PM
@NordineLotfi I might use Eel for an upcoming project. Cefpython looks pretty cool
 
 
2 hours later…
4:03 PM
Hey y'all. I would like to parallelise my work in python, but don't know if its multithreading or multiprocessing that I am looking for.
MWE:
class process(self):
wait
def do_this():
return "doing something..."

def then_this():
print(do_this()+"and then this")
 
"And then this" automatically implies it's not done in parallel
 
4:48 PM
well, let's ask. can these tasks happen separately? are they independent or dependent?
one of the key things in parallelizing work is establishing: can the work even be parallelized to begin with? are there some kind of repetitive work for different data points? your mwe is not really helpful at all im afraid.
 
 
1 hour later…
5:50 PM
@NischalKarki You need to be able to "know" how and what needs to be split to parallel processes/threads to be able to parallelize your application. Basically, sharing "work". As Paritosh said, your mwe is not really helpful so it's hard to say how it can even be parallelized.
@dhiaagr indeed. I didn't really used cefpython yet because of its (from first glance) complexity. I ended up trying to make a server side js + python client. It's really bad, and probably more of a time sinker than using cefpython would have been but...I guess it does help put things into perspective.
 
6:28 PM
DDoS attacks sure are ramping up. It's impressive how quickly they can be mitigated with the right applications but following some on from some of the links in that article show some really scary stats
 
 
1 hour later…
7:54 PM
wow, first time in my life I get a memory related error with python: stackoverflow.com/questions/50562192/…
 
8:08 PM
all these ml libraries are written in lower level langs, so their codes often don't make the same kind of guarantees of memory safety
also, i suppose we should exclude out of memory errors, because that can happen anywhere by simply trying to hold too much data in memory
 
yeah, what I was doing was basically playing around with both tkinter + pygame on separate threads. I guess I was clearly asking for it :P
 
huh. you got that error using those packages? thats, uh..impressive :D
 
Thanks? :D here a "fixed" version of the code that did the error if anyone's curious: gist.github.com/secemp9/e581411cddac7c402fef42e177edb9b2
without the if condition at the end, it basically happen once you decrement/increment the variable "width" fast enough
I didn't yet figured key repetition with tkinter, so it can take a bit to get there (had to use two fingers on my trackpad)
 
8:59 PM
pygame and tkinter together?? What was the usecase
 
9:18 PM
Did you look at the gist title? "pygame + tkinter on separate threads...because why not" :P
 
9:33 PM
https://stackoverflow.com/questions/5104957 Help.
The accepted answer is the one that fixes the code problem. If we interpret the question that way, it's a poor copy of the "windows path in python" canonical.
Every other answer actually answers the question that was asked. As such, it would be a reasonably good target for questions about how CWD works
and someone wants to use it now: stackoverflow.com/questions/73430425
er, most other answers*
 
9:47 PM
@KarlKnechtel I don't know if it's a great dupe target, because it's ambiguous what is actually being asked. The OP's code would have worked fine without the \T character in the path, so Ned Batchelder's answer is correct. However, doing the whole os.path thing is the proper way, so that's the correct answer. OTOH, the highest-voted answer doesn't use with, which a lot of newbies don't know about, so it's not a great target after all.
Maybe use it as a target for the question you referenced, but I wouldn't make it a canonical.
 
more generally I want to have some kind of process to clean these things up. I feel like we should always be moving in the direction of: everything that's closed as a duplicate has one target, or else it gets nuked as unclear or too broad; everything that's a target is clearly canonical; no target is ever itself a duplicate
one of the biggest problems I've noticed is the fundamental tension between "how do I do it" and "what is wrong here" questions
 
I don't think it's necessarily bad to have multiple dupes on a single question. Some people are doing more than one thing wrong. And, we don't have "unclear" or "too broad" as close reasons anymore...
 
10:32 PM
stackoverflow.com/questions/73438455 anyone have a canonical for this? basically "how do I filter a list using a list comprehension" (mapping is pretty well covered I think)
 
I kinda thought we weren't going to get this each night (UK time, at least) in dredging up dupes? I thought we had an understanding over this.
 
@MattDMo (yes, yes, but I liked those names/conceptualizations better than "needs details or clarity" and "needs more focus") Some people are doing more than one thing wrong, but those questions shouldn't stick around
sorry, I'm looking for advice for the one specific thing... if I were going through a list of questions I would wait till the end to assemble any help requests I needed
 
The suggestion (to my recollection before searching) was that you would start another chat and then compress anything pertinent to link back to this room
@KarlKnechtel going from here, this is surely the "stream of consciousness" that you referenced in your own meta post?
Aug 13 at 16:17, by PM 2Ring
Maybe Karl should start a new room dedicated to this stuff. And when he needs help dupe hammering he can post a brief link here.
 
I don't have a room set up, but this is already the 'compressed' version per how I was thinking at the time. I don't have other questions right now that need the closure, and I didn't find a bunch of candidates - the search results looked poor - so I'm not gathering a list of candidates in order to discuss them.
 
The line is definitely blurred here because I think all the ROs (though I can't speak on their behalf) support your effort but equally don't want the python main tag spilling into the room (it's a mess; we all acknowledge that)
 
10:44 PM
mm
it seems the primary goal here is to answer questions for people who come in and have some reason not to just use the main site?
if I'm the RO for a new room, can I rename it later? or would I have to recreate it
 
I think I can make it for you, then make you an RO. What would you like it to be called? :) (Separately, it'll take me a bit to explain the logic of what I think this - the room we're currently in - room should be)
 
(well, that's the thing; I'm not sure I can commit to a name that makes sense. But I'd rather it not be named after me, for a start)
 
I think setting up the room should be as easy as setting up a chat between the pair of us, making you an RO, and you just have to keep it alive (I can't remember if it's a post after 7 days or 14 days. I think the latter, but it hardly matters)
@KarlKnechtel Fair point
Go to "all rooms" in the top right of this screen, then from there, scroll to the bottom and you'll see "create a new room"
 
I probably should keep it Python-specific; if other tag communities decide they have similar issues, it would probably be better that they follow the example in separate rooms
 
"python-dupes"?
 
10:51 PM
I'm thinking something like "Canonicalization for "
I assume titles need to be plain text; so I guess "Canonicalization for Python questions"
 
I mean, it's not so catchy as a name, but it's your room :)
python-canon-discussion is probably more in-keeping with the general chat room naming
 
oh I like that
"Thanks, but the topic of my to-be-created room is entirely different." Painful to click :)
why didn't my github link onebox in there?
 
I can't say I've created one like this before sorry, so I don't know what your options were. Usually they're created for me to yell at me or something :P
 
I'll see whether we can get a link in the room description. It's actually not just a consideration of "taste" but actually character limit :/
 
11:01 PM
Could just pin that message
 
One can only pin it for so long
Though, take a second pass at your launch message and I'll pin that rather than the stars you currently have (it has no context in the star board currently)
 
@KarlKnechtel Great
 

« first day (4327 days earlier)      last day (622 days later) »