« first day (4610 days earlier)      last day (554 days later) » 

02:37
@12944qwerty Does anyone remember what it used to look like
or have the svg
nvm i'm dumb found the stack post
03:31
Created it here
Nvm someone created a css and I jhust found out ofc
but i'll still use userscript :)
 
5 hours later…
08:56
@PM2Ring good thing then since this is probably tkinter related :P
For those in need of 🍿 or 🥃, the Stack Exchange AI Wars have just entered the Century of the Anchovy.
yeah, already noticed since I'm usually in the meta room :/
@Thingamabobs "job scheduler" could work here, although I got inspired from the description of the "cron job" command on Linux
maybe "task scheduler" or just "scheduler" could also work
 
3 hours later…
12:33
First proper polars gripe. This is busted between 0.17.12 and 0.18.0:
self.deduped = self.dom_data.groupby('uprn').first()
self.deduped = self.deduped.with_columns(
    pl.col('CONSTRUCTION_AGE_BAND').str.split(by=": ").arr.get(-1)
)
That's.... really basic functionality. I want to split the string in that column by ': ' and take the last element. How has this been broken?
sobbing uncontrollably I knew it was too good to be true that the API would be so seemingly stable
13:33
What happens when you run that?
  File "/Users/joshpilkington/Desktop/git/laep/esc-laep/laep/simulator/scenario_plotter.py", line 25, in __init__
    pl.col('CONSTRUCTION_AGE_BAND').str.split(by=": ").arr.get(-1)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExprArrayNameSpace' object has no attribute 'get'
I could look into how it broke but I have a time pressure atm so I just pinned it to the version that works
My incredulity is just over the fact that something like that should break, especially with zero deprecation warning
Huh. If I'm reading this right, .arr only allows 3 operations, namely min, max, and sum? That definitely seems rather lacking
Yet it apparently worked in the last version with .get(). It's quite a change indeed
I wouldn't naturally have used .arr.get(-1) if I hadn't found that in an SO answer on how to do exactly what I wanted it to. That answer is now invalid
@Aran-Fey It does more (or, at least, did) in this answer from the library creator
13:49
Is there a way to limit what os.cpu_count() reports? Ideally via some env variables?
@MisterMiyagi Is this based on cloud resources?
We never got it working via os but we did with some other multiprocessing library and I've totally forgotten the name now :'( os always reported the underlying architecture of the instance and not the bit that was carved out in the "virtual machine"
I've got some process Pools in users scripts running haywire here...
@roganjosh Our own bare metal machines.
256 cores. 256 jobs that each think "nice, I've got 256 cores".
In which case, I think you've answered that? The Config() can have self.cpu_count = min(10, os.cpu_count()) and you pass that around? I'm assuming there's something more complex to your problem
os.cpu_count = lambda: 1 ¯\_(ツ)_/¯
The Config() could have a lookup table for the max cores for any named process. But I fear that I'm "teaching you how to suck eggs" in this case
13:59
@roganjosh Well, it's not my program. And not my Python installation. :D
Ah, ten minutes of searching later and I know it's not a regular process pool.
Even if it were, are you not authorised to put a PR in if the library is going bonkers on your servers?
Oh, something you really wanna know about mamba @MisterMiyagi. It currently doesn't work with M1/M2 chipsets. If you're upgrading your hardware (I think you said you were) then look out for that one
@roganjosh I could, but it would take a while until our users adopt the fixed version. I'm the dude still bound to Python 3.6, remember? ;)
D'oh!
@roganjosh Ooooh, thanks, that's indeed good to know.
Not related, but while I'm not bound to anything, I like it at 3.8...
 
3 hours later…
17:24
That moment when you find out that a lot of the code issues you've been fighting against come from GPT4. I just want to find a corner and darkness. This is utterly depressing
I am but a contractor. It would have been nice to know that the people "writing" the code didn't actually, you know, write it in the first place. I bet that's what's spawned the whole byecycle thing for the problems I was trying to fix.
 
3 hours later…
19:58
@roganjosh Eek. :(
20:19
It's a ****-show that I've waded through here. It's also made a mockery of any pulling power I had in this room to try fix it. byecycle is undoubtedly a good outcome, but I feel ashamed that I was fighting complete bull all along and didn't see it. I'll get this contract over and then I need a break
I had fun writing it
(still not done, btw)
unfortunate that you had to work at a place that managed to use weaponized cargo-culting to this degree =/
Given the circumstances, it'll apparently be more important than ever before :)
 
3 hours later…
23:42
@PM2Ring Oh, ok
@roganjosh Eh? Which code? In your workplace. Not here on SO. You're scaring me. Anyway, stand back and let that company learn its own errors

« first day (4610 days earlier)      last day (554 days later) »