« first day (4540 days earlier)      last day (394 days later) » 

5:52 AM
@Arne database history logs sound exciting. Could you provide a guidance on what I should learn about it? Also, which are the best tools for Postgres?
 
6:24 AM
second question: no clue, ArneCorp uses mysql
 
7:16 AM
@PaulMcG My rule-of-thumb is that it's ok to use map (and filter & reduce) if the function arg already exists (ideally, a built-in implemented in C). If you create the function just to pass it to map, you're doing it wrong.
 
8:12 AM
@PM2Ring When I first saw this, I thought your link said "What time is it in Eccles?" and it spooked me a bit since that's my hometown :P
The good ol' Eccles Cake put us on the map. So much so that we put up a plaque on the building where it was invented, which my grandma informed me is about 100 yards away from the actual building. Close enough.
 
8:25 AM
As a slight aside on the theme of time, though, we also have a clock that chimes 13 times for 1 o'clock to stop the excuse of workers "not hearing the chime" to end their lunch break :P
 
 
5 hours later…
1:24 PM
So apparently I've been wasting my time switching between my "PC glasses" and "outdoor glasses" for the last 15 years, eye doctor said until the age of 40 it's better to have only 1 pair of glasses
(Not sure if this also applies to far-sighted people)
Off I go to buy my 6th pair of glasses
 
how pc glasses are different from outdoor glasses? i uses one glasses for all
 
My outdoor glasses are stronger. Let me see further than 1 meter
 
To be fair, I suspect that it's screen use that has degraded my eyesight, but I'm not sure how exactly having different pairs of glasses/contacts would have helped
 
I would've thought - and I could've sworn that my optician confirmed this 15 years ago - that it's a bad idea to read the newspaper with a pair of binoculars on your face
 
@roganjosh it's because of our constant focus on screen our sight has become clear to near object like laptop distance one and degraded for far objects
 
1:31 PM
@roganjosh it depends. I know the "pc glasses" I have currently are to prevent from UV/blue light eye damage from screens.
 
@Aran-Fey so newspaper text size is 1-2 i see
 
@sahasrara62 I'm aware of this, but I can still read a laptop screen fine without my contacts and I know my eyesight is much worse than Aran's from a conversation a while back. Half-correcting my vision to see a screen clearer (but not to be able to see generally) seems a bit odd to me, but maybe it reduces the strain (and also UV light like Nordine has suggested)
 
The "switching pair of glasses often won't help" might be because of the fact the eye adapt or get used to too fast,, and then take too long to get back to a normal state. If I use a pair of glasses too long, usually I notice some difference with my current vision vs when I wear the glasses for too long and remove them
 
so i guess we all have one common suffering ie eyesight
 
That's why a lot of companies in the UK will pay for your glasses if you're computer-based
 
1:36 PM
Unfortunately I'm carbon-based :(
 
Robot rights FTW
 
what about Silicon-based? :o
 
2:35 PM
Hello there, I have a weird issue with os.system(). The command ps -fp 25408 | awk 'FNR == 2 {$1=$2=$3=$4=$5=$6=$7=""; print $0}' runs perfectly fine in the bash shell of my Ubuntu machine, so it returns what I expect. But with os.system("ps -fp 25408 | awk 'FNR == 2 {$1=$2=$3=$4=$5=$6=$7=""; print $0}'") it fails with the message awk: line 1: syntax error at or near; 512. I'm puzzled... Anyone have an idea about it ?
 
Have you tried escaping the quotes after $7 e.g. $7=\"\"?
 
@0x263A nope, thank you, that's the kind of dummy thing I didn't think about.
 
 
2 hours later…
4:10 PM
Is there a simple means to ignore all but a specific set of exceptions? Kind of the inverted feature of contextlib.suppress.
 
except Exception as ex:
    if isinstance(ex, SpecificException):
        raise ex;
    else:
        pass
 
Yeah, ideally with less than 5 extra lines of code.
Right now I have this, and I need it a lot:
            try:
                await something
            except ASYNCIO_SHUTDOWN:
                raise
            except BaseException:
                pass
 
I guess you could wrap it into function or context manager, maybe?
 
4:30 PM
@MisterMiyagi isn't that what PEP 654 introduced? With a dollop of new syntax
well, a side-serving of syntax, not quite a full course
Actually, no, I guess it doesn't catch the "everything else" case
 
@roganjosh Bah, you new age kids with your new and fancy Python versions! shakes walking cane
 
As you know, I'm a huge fan of adding complexity
What I really need is an obscurely-typed async function with an exception capture group for an asspression. But I need it to be a one liner.
There's a dark part of my brain now saying "maybe if you try get even somewhere close to building such a monster, maybe your anxiety will disappear". Maybe tomorrow
 
Sounds eerie. With two ee.
 
I'm not quite sure what I just said but it's quite possible I mentioned The Scary Door
 
Doing async programming after a bit of intermediate admin/admin work certainly feels like going through The Scary Door.
 
4:48 PM
I'm curious as to whether you got round to implementing your job scheduler with rust?
I was watching a tutorial on Tokio a few weeks back and finally actually feel like I got my head around async in general. Shame that it needed to be in the context of a different language :(
 
 
3 hours later…
7:44 PM
@roganjosh No, there sadly would be absolutely no advantage. Performance isn’t needed, so we would mostly get the added complexity of build tooling and lack of experience from most of our people.
We’ve already had a very nasty case of our in-house Java application crumbling to dust as the build chain broke when a dependency needed an update. Only one expert in the entire team, and she was already pretty stressed out from having to juggle both dev itself and keeping helpful people from sticking an fork into com.institute.miyagi.poweroutlet.
So we are even more sold on Python for anything new just because it is easier to keep going.
 
8:02 PM
Gosh, that's surprising to hear! Bus factors are a concern for me with my little forays into new languages but I would have thought you might have more backup where you are. A single dependency relied on a single expert to fix?
I might need to rethink my new toy that I intend to build if it can be that fragile. I've always gone with "well, nobody knew how to program python before they learned, so they can learn this too". Maybe that's too cavalier
I recently found PuLP solving Sudoku and it was an eye-opener for me. I've always associated LP with having an objective function but this thing solves the problem in negligible time with only constraints. It strikes me that there could be a melding of heuristic search and LP in unison on things like scheduling problems
I wonder whether it can be used to quickly evaluate feasible/infeasible solutions generated by an outer heuristic in a search space, if you're smart about the problem setup
 
8:44 PM
I still think this is a duplicate: stackoverflow.com/questions/75811286
 
9:24 PM
Hi. Is there any automatic way to convert an IPython notebook (.ipynb) with IPython Magic Commands to a pure Python script (.py)?
 
sounds like the standard tool is nbconvert which doesn't do anything to magics
 
9:46 PM
I didn't get to test it, but I believe that it really doesn't do anything about the magic commands, I'll check it out.
Thanks.
 

« first day (4540 days earlier)      last day (394 days later) »