Pinned toot

I haven’t had a chance to set up a calendly link or anything, but if anyone is interested in meeting up with me during , shoot me an email and we can arrange a time. 🙂

Pinned toot

Latest post is a big one: “Why you shouldn’t invoke setup​.py directly”

A lot of people don’t know about this because we haven’t been great about getting the word out. This blog post is in part an attempt to remedy this.

Please help spread the word!

Pinned toot

From the archives of my blog but still very relevant: "pytz: The Fastest Footgun in the West", about why you probably shouldn't be using pytz:

This post basically describes my approach to understanding computers (and to doing physics):

- watch / poke / use system
- develop mental model of why it is
- find where that model breaks and you can not predict what the system does correctly

The places where your mental model and reality are wrong are the most interesting and productive things to look at!

Do you use and ?

I am wondering if you also see this behavior:

If you don’t, what OS and desktop environment are you using?

Next, GitHub will be removing support for Python 2.7 from actions/setup-python in under a month, on 19th June. 🪦

"Breaking changes

"Hello everyone. The Python 2.7.x will be removed from python-versions and it won't be possible to set up Python 2.7.x by setup-python.

"The motivation for the changes

"Python2.7 is not supported since January 1, 2020."

#GitHub #GitHubActions #Python #Python27 #CI #EOL

Show thread

This is the one place where ChatGPT has seemed useful to me, by the way. When I try and use it for anything Python-related, it’s worse than useless because I know Python stuff way better than ChatGPT, and it’s faster for me to just do it myself anyway.

When I’m trying to get a handle on super basic questions, ChatGPT seems to be kind of OK at explaining things in such a way as to unblock me.

Show thread

Not that I think that there’s something we or they could be doing a ton better. I’m sure there are reasons for why it’s all confusing and disorienting.

Show thread

Spending time trying to contribute to open source Android applications really brings me a lot of empathy for new Python users.

I barely understand what I’m doing. The packaging ecosystem seems complicated and I don’t understand it. When I try and upgrade versions a bunch of stuff breaks. The documentation refers to a bunch of stuff I don’t understand, and seems relevant only to newer code bases.

The votes have been counted, announcing the 2022 #Wikimedia #Commons Picture of the Year :poty:

Great cormorant (Phalacrocorax carbo), Little egret (Egretta garzetta) and Gadwell duck (Mareca strepera) in Taudaha Lake, near Katmandu, Nepal.

Attribution: Prasan Shrestha / CC-BY-SA 4.0

3,600+ voters selected this picture first out of 1,102 featured pictures and 55 other finalists!

See the rest of the results:

#POTY #FreeCulture #CreativeCommons

Long shot, but anyone with Android / Android Auto experience know what’s going on here?

Long shot, but anyone with Android / Android Auto experience know what’s going on here?

I'm over the moon that the #Python helper function I write more than _any_ other, `chunks`, is coming to the stdlib in 3.12 as `itertools.batched(iterable, n)`! It takes a long iterable and yields chucks (or batches) of length `n`.

I think I've pasted the same Stackoverflow snippet into... 10 projects at this point? So this is huge for me.

Carter’s has this shirt for kids, but I can’t find an adult version anywhere. Trying to tell Amazon or a search engine that it’s important that the shirt have all three colors (much less in a specific order) seems impossible.

Show thread

One day I hope ML technology advances to the point that I can describe a shirt and find out if someone is selling something like it.

@mjgardner @icing actually, being liberal in accepting things is not a good idea either. If it violates the protocol, eject, close, kill, abort. At once. That leads to better code and protocols in the longer run.

Do I know anyone who's worked on budgeting infrastructure projects (physical infrastructure like roads and buildings, not software) who would be open to chatting with me for a short time and answering some questions about terminology used in that context?

Today's my last day at Google 🥲

I'm taking some time off to focus on my family, personal health, and to work on my bots.

If anyone knows of a role that'll fit me, I'll appreciate the intro! 😊


It’s relatively easy to make a drop-in replacement for these, but also we’re deprecating them because they’re conceptually the wrong thing to do, so it’s best to migrate to using aware datetimes if possible:

Show thread

datetime.utcnow and datetime.utcfromtimestamp will be deprecated in 3.12:

If you maintain a package, now is probably a good time to grep your source code for utcnow and utcfromtimestamp to get out ahead of the deprecation warnings. 📅🕐

$ sudo dd if=/dev/zero of=/dev/mapper/to_be_wiped status=progress
59001459200 bytes (59 GB, 55 GiB) copied, 904 s, 65.3 MB/s

65 MB/s, nice, nice. At this rate it’s only going to take…. 3 days to wipe this 16TB drive.

Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.