« first day (4102 days earlier)      last day (846 days later) » 

Avv
2:22 AM
Hello Guys!
 
cbg o/
 
 
4 hours later…
6:52 AM
Anyone here use ALE Dense Analysis (VIM plugin?)
if so, is there a way to get it to display e.g., import errors (like when we try to import a class from a certain module, but said module doesn't actually have that class)?
 
 
3 hours later…
9:32 AM
@roganjosh That's common. Not a big fan of the emojis myself, but the software's good. All we do on the book is try to give the flavour of it, with refs to the more than adequate documentation.
 
 
3 hours later…
12:35 PM
I remember explicitly returning None from a JSON fastapi view for the HTTP 204 code, which resulted in HTTP 204 response with null as the response body.
The status of this bug is "won't fix"
 
1:17 PM
@vaultah so it returns a status that indicates "no content" and still returns content anyway? Weird...
 
1:30 PM
@holdenweb talking of the book... I'm still up for reviewing if still required/wanted... what kind of timescale were you guys thinking of?
 
@vaultah wow... okay... scratches head
I'd have thought that while there's no guarantee something returning a 204 has to have a zero body length... it should
 
It appears that zero body length is a requirement github.com/tiangolo/fastapi/issues/717#issuecomment-693400670
 
yeah, sorry, I phrased that badly. It should be zero length, but there's nothing stopping a rogue system returning stuff anyway
 
2:07 PM
hellooo
 
howdy
 
2:38 PM
6 years on, after thinking I'd cracked this issue, I still find myself having to work on a Saturday to try handle lunch breaks in my optimisation. At this rate my tombstone will be "A tortured soul but, by God... he gave you lunch". Such a depressingly mundane problem to keep getting stuck on :/
 
Is it such a pressing issue that you have to work on it on a weekend? O.o
 
Yeah, it trashes the solution every time (I call it lunch, but it's the concept of driver breaks in general, which might also include overnight stops for trucks, for example). I have to present the solution on Weds and this is pre-doing-reports-etc so I need as much time as possible, given that I'm 6 years in in this domain already
I don't use OR-Tools for this but even Google has just abandoned it into an ever-pushed-back issue. That's heartening... and massively disheartening at the same time. It's just trying to find something that's on the verge of functional for basically everyone in this space
 
On one hand, it sounds unbelievable that this can be such a difficult problem, but on the other hand, I recently grossly underestimated the complexity of a download manager...
 
Given that people like throwing ridiculously-named optimisation algorithms at the VRP (Kicking Dead Horse Optimisation to the Capacited VRP) it sure would be nice if people focused their research into something practical, like solving breaks in the general case
 
2:55 PM
Giving workers breaks is(n't) very cash money after all
 
The problem is that they don't have a location of any description. They acquire a location as the solution progresses, and that could be at their last departure, or their next arrival, or somewhere in between. But what about when you initialise the problem and you have back-to-back jobs with no location? What happens when you try put a new job in between them? How disruptive might that be downstream given that it might suddenly flip location mid-iteration?
@Aran-Fey alas, Working Time Regulations don't allow someone to be quite so laissez-faire
 
3:23 PM
how are you guys today??
 
Good thanks, you?
 
weelll let say im in Canada lol
 
3:47 PM
ugh... I need a life :(
interesting numbers... oh well
seems I've got an audible token to use because I forgot to cancel... might go for some David Gemmel
 
i see nothing wrong here
 
4:02 PM
thought I already had the Jon Shannow trilogy... but don't see any there now... ummm... odd
Gone for "Wolf in Shadow" - will enjoy that
 
4:35 PM
I wish I stuck with Python :| Literally no-one is ever in the Javascript room.
 
4:47 PM
Ugh... X-Files is no longer on Amazon Prime!?
 
Is it, dare I say, permissible to ask a Javascript question in a Python room?
 
@rb3652 not really...
 
Yep, that's what I thought.
 
I hung out in the JS room around new years; took a few hours but I still got help
 
@rb3652 not in the least
 
5:06 PM
my leg keeps yamming cramping
(not important for discussion - just felt like saying it and throwing it out there)
 
That seems like an overreaction, I think you should keep your leg attached for now...
 
Anyone know where to get X-Files streamed online? If it's not on Amazon Prime anymore - I imagine it's probably on HBO/Fox or something? Although being in England... last time I checked, I couldn't actually sign up for HBO as it required a US credit card and address or something.
@Aran-Fey heh... not rushing to dispose of a leg... you can tell from my profile picture I'm already short of one anyway :p
 
Avv
Hello guys!
 
@JonClements brings out the eyepatch nope, no idea.
 
6:04 PM
quite enjoying "Inside Job" on Netflix though - definitely recommended
that seems too good to be true
but hey... not going to argue with a free £5 credit for just using the service as I use it (depending what those T&C's are of course...)
 
 
1 hour later…
7:36 PM
I have a class instance foo from a 3rd party library, and I need to add an attribute to it which is an instance of another class bar. However, by dynamically assigning the attribute as foo.bar: Bar = bar my IDE (PyCharm) does not know how to analyze bar's properties/methods when calling result = foo.bar.method(). How would I got about typing hinting the 2nd assignment? It complains about bar being unresolved.
 
7:54 PM
@JonClements Stonks
 
@crypticツ Pretty sure you can't. A static type checker can't deal with a dynamically created attribute
 
8:06 PM
Another day at stackoverflow, gave an honest opinion to someone about their answer and downvoted it because I thought their reason was quite unreasonable and the next thing I know I receive a downvote on my recent answer too
 
8:22 PM
Is there a way to make asyncio print exceptions whenever a task fails? I almost lost my mind trying to figure out why my code deadlocks because I didn't realize it crashed at a critical part
 
You could always call task.result()
result() will re-raise the task's exception if there is any. Or you could just await the task
 
cbg all
@CoolCloud retaliation voting is just annoying. Fortunately it's not nearly as weighted as upvotes
and of course serial downvoting tends to be auto-detected, but I recall someone getting beaned like that a long time ago and getting some mod attention
 
Imagine getting -10 just because someone is pissed at you for pointing out a genuine concern :)
@WayneWerner Dedication will be downvoting each answer each day so the script will fail to detect it
 
I think that's what happened. Obviously the victim noticed as they got dinged a significant amount over the few years lol
*weeks
 
8:39 PM
It's sad that the mods cannot see the downvotes but it is also fair
 
I believe mods can see DVs, can't they?
 
I meant the user that downvoted :p
 
right
I thought they could. Maybe not...
 
Oh they could? IIRC last time I asked someone here, they said no, I guess
 
That may be true. I thought I remembered the opposite, but I'm middle-aged and my memory sure ain't what it used to be :)
 
8:43 PM
@vaultah Hmm. I have a bit of an unusual situation, but in essence you're probably right - it wouldn't have been a problem if I hadn't been stupid
 
You have to love how standard library documentation forgets to type hint its own return types
 
9:20 PM
Hooray! Looks like I got a solution/workaround to my python3.10 install problem on Ubuntu (where pip failed and pointed the finger - unjustly! - at pyparsing). github.com/pypa/setuptools/issues/2988#issuecomment-1007991935
 
9:45 PM
Umm, anyone debugged some async code in vscode recently? I swear running the same code outside of vscode makes it do different things
 
9:58 PM
Or maybe not. What's definitely happening though is that (some) breakpoints don't trigger even though they should
 
10:18 PM
@PaulMcG glad to hear it!
 
11:03 PM
recbg
holy tshi, what has happened, vaultah, matt, wayne, did they invent time travel or what?:D
 

« first day (4102 days earlier)      last day (846 days later) »