« first day (4621 days earlier)      last day (321 days later) » 

6:45 AM
Weird bug of the day: asyncio.create_subprocess_exec('full/path/to/program.exe') works reliably, but asyncio.create_subprocess_exec('program.exe') occasionally makes the process crash. That was not fun to figure out.
Same thing happens with subprocess.Popen, too. What the heck
 
 
2 hours later…
8:55 AM
@Aran-Fey What does it crash with? Fails to find the executable?
 
Some exit code which, according to my google search, means something along the lines of "heap corruption"
My best guess at this point is that the program does some undefined behavior if its first command line argument isn't a full path
 
Yikes, that doesn't sound like fun to debug.
At least on UNIX, program startup puts a lot of things (env variables, argv, ...) at the start of the memory. Having a shorter/longer executable path may well shift things from one memory page into the next and cause spurious clashes if a program is faulty.
 
9:11 AM
I think if you double-click an exe, Windows gives it the full path as a command line argument? Some careless programmer must've relied on that instead of making the path absolute
 
Honestly, I'm not sure how one could mess this up to only fail occasionally. Alas, I can't pretend to not know these programs are out there...
#IDon'tWantToBelieve
 
 
1 hour later…
 
2 hours later…
12:27 PM
class A:
    __slots__ = ('a')

class B(A):
    __slots__ = ('b')

class C(A):
    __slots__ = ('c')

class D(C,B):
    __slots__ = ('d')
results in:
Traceback (most recent call last):
  File "C:\Users\PC\Desktop\help.py", line 10, in <module>
    class D(C,B):
TypeError: multiple bases have instance lay-out conflict
drove me crazy today. Better start with __slots__ right from the start an do not implemnt it just after you finished your mixin class. In case you want to use slots of course.
 
1:16 PM
I don't know about those on the continent but the weather in the UK today is superb. I'd forgotten what proper sunshine looked like
 
So it was you who stole our sun
 
Soz not soz
 
You better return it on time or you'll get slapped with those late fees. Brits are only allowed to check it out for 2 days max
 
So that's why it's gotten rainy all of a sudden. Everything make sense now
 
I've somehow found myself in a beer garden listening to a brass band playing several patriotic songs (this wasn't planned) but I don't much feel like giving this sun back
Land of hope and glory is currently playing. This might actually be a bit much for me, actually
 
1:29 PM
It'll be over in a few minutes (probably, I don't know the song)
 
1:41 PM
It's over. That was their finale :) it's a tired piece that gets dragged out for anything with pomp in the UK
Queen Elizabeth's theme music in WWE. The national anthem aside
I wonder what Charles will have... that could be a fun one
 
 
3 hours later…
5:00 PM
Giving this font a try in PyCharm - github.com/intel/intel-one-mono
 
 
1 hour later…
6:20 PM
@PaulMcG looks pretty clean. What is the intended usecase?
 
7:08 PM
To display Python in the PyCharm IDE while I am editing my Python code. The font is for me.
 
 
1 hour later…
8:17 PM
^^ this is definitely better on a higher resolution monitor. On lower res, I need to increase the font size or things get annoyingly blurry
 
 
3 hours later…
11:09 PM
@Aran-Fey heh. interesting consequence of how magic @dataclass is, but both results are clearly the "right" behaviour
@Aran-Fey that seems incredibly bad, considering that programs that care about the command line are normally run from the command line, in which case they would normally just see program.exe
 

« first day (4621 days earlier)      last day (321 days later) »