Skip to content

u/synthead

In this archive from Oct 2014 to Jun 2023

25
posts
254
comments
14
media
5k
score
1 saved before deletion

The moral of the story is to always always always use tzinfo data and never do dates using math. If you say "the time between this exact date in this time zone and this exact date in this other time zone," then you can allow dates to be a solved problem, and it will mostly not be your problem.

Btw, 131K votes up on this video, yet I'm at -1. Never change, Reddit.

2 points

Days aren't always 24h. There are leap seconds, daylight savings, etc. Additionally, "a day" can be in the scope of a person or a location. If you fly somewhere, your personal day could be longer or shorter.

Then there are also points in history where countries decided to sync clocks with other countries, and they changed the time of day during the day. So if you wanted to go back "a day," say 3 PM to 3 PM the day before, the amount of time difference depends on what date it is.

Some countries even have time zones that have a remainder of 45 minutes time difference from GMT. This is also subject to change, like North Korea talking about a 30 minute adjustment in their time zone.

This might sound nitpicky, but write some software that relies on accurate dates and you'll quickly realize how it can be a nightmare of gotchas.

0 points

This is the way. If you're doing your own thing, make your own environment. You have enough opinions on your runtime to warrant keeping it the way you want.

If you're consuming Python as a user, then it makes perfect sense as a system lib. I shouldn't have to build my own python env to run yt-dlp, for example. pacman -S yt-dlp and go.

You'll see this philosophy with a bunch of languages. It's not exclusive to Python.

21 points

I suppose I don't understand how more memory usage means more performance. It sounds like you know what it's doing by your confidence; what is the additional memory usage doing to increase performance? What aspects of performance is improved with the increased usage?

7 points

You probably have the old package in/var/cache/pacman. Find it, and extract it to a temporary directory. You'll find the binary file tree for the package. As root, copy this tree to / (and maybe skip config files if you want to preserve them). Make sure to do a -Syu afterwards so your packages are accurate to the local files.

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.