Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pganssle
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
pganssle
3mo ago
I'm not sure I understand the question, but I can answer both interpretations: 1. Did it (the chord trainer app) help my son when he was studying music? Not as far as I can tell. He has also been taking piano lessons and sometimes it h
2.
▲
by
pganssle
3mo ago
I can't believe I didn't put this in the original repo, but this is where I got the piano samples from: https://theremin.music.uiowa.edu/mis.html They have guitar samples as well, but it was a bit more complicated
3.
▲
by
pganssle
3mo ago
So I built the original web app for this (it's not stolen, it's open source and I told OP they could fork it). I've been glad to see it getting more attention over the years. One note of caution here is that with my older son
4.
▲
by
pganssle
3y ago
Well, pytz actually is technically flawed at the moment because it cannot read TZif Version 2+ files, so it breaks for dates >2038 (and it would break if you tried to point it at system data generated with zic's "slim" mod
5.
▲
by
pganssle
3y ago
Actually, naïve times are considered aware in the system time zone. There's no good way to create a `tzinfo` object that behaves like "the system time zone" and doesn't have unfortunate consequences. See this article: h
6.
▲
by
pganssle
3y ago
To be clear, when I wrote this article, I had not yet created the `zoneinfo` module in the standard library. All the recommendations for `dateutil.tz` apply to `zoneinfo` as well, except that `zoneinfo` is also faster than `pytz`.
7.
▲
by
pganssle
4y ago
As mentioned in the article, this was a deliberate change in Python 3. If you read this article: https://blog.ganssle.io/articles/2022/04/naive-local-datetim... you will see why this actually makes quite a bi
8.
▲
by
pganssle
4y ago
I did not realize that I never stated that in the original article. I've updated it to be a bit more explicit. Thanks!
9.
▲
by
pganssle
5y ago
> I can't help but read all the interjections from the core developers as a strong indication of why all these sorts of things tend to fail on the vine. I think this might be a misunderstanding of the nature of the event that these
10.
▲
by
pganssle
5y ago
This is at worst a lateral move — you need something installed that handles your test invocation for you. It could be `make`, `tox`, `nox`, `poetry` or whatever. For a number of reasons (detailed in the article), that thing shouldn't
11.
▲
by
pganssle
5y ago
Sorry, I could have been more clear there, and I've updated the post. I have the "curse of knowledge" and took is as assumed that you can only do this if your particular build configuration fits in setup.cfg. For me, the fact
12.
▲
by
pganssle
5y ago
I think that it is true that I should have written this article or something like it years ago, but there's still a long tail of people who don't even know that invoking setup.py is bad, or that the goal is to get rid of all set