@pganssle@qoto.org
@pganssle@qoto.org avatar

pganssle

@pganssle@qoto.org

Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.

#python #programming #foss

This profile is from a federated server and may be incomplete. Browse more on the original instance.

pganssle, to apple
@pganssle@qoto.org avatar

WTF is wrong with the Apple ecosystem? I’ve tried 3 different podcast apps now (Podcasts, @overcastfm and PocketCasts) and it seems like none of them are capable of easily like… opening a link to an RSS feed and turning that into a podcast if the feed is only available on the LAN. It’s infuriating that every time I deal with some Apple thing it’s something like this.

davidism, to random
@davidism@mas.to avatar

Every now and then I get frustrated with Linux and Android and think "maybe I should just go Apple". But I have a feeling I'd just have a different set of problems, not necessarily fewer.

pganssle,
@pganssle@qoto.org avatar

@davidism Yeah, can attest to that as someone who has family members in the Apple ecosystem. Lots of stuff is a pain in the ass, slow or borderline impossible on Apple devices.

pganssle, to linux
@pganssle@qoto.org avatar

Do you use and ?

I am wondering if you also see this behavior: https://github.com/keepassxreboot/keepassxc/issues/9438#issuecomment-1564883094

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

pganssle, to random
@pganssle@qoto.org avatar

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.

pganssle, to random
@pganssle@qoto.org avatar

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

https://stackoverflow.com/q/76297425/467366

pganssle,
@pganssle@qoto.org avatar

@paulox @fdroidorg @AntennaPod So it seems like the issue is that you need to have some sort of service that defines a MediaBrowserCompatService or something. Not sure I’ve got it all the way, and my task seems complicated by the fact that Android 9+ doesn’t allow you to start a background service that has access to the microphone, and it seems that whatever I have done is trying to do that‽

pganssle, to random Igbo
@pganssle@qoto.org avatar

Yo dawg, I heard you like bicycles…

pganssle, to programming
@pganssle@qoto.org avatar

datetime.utcnow and datetime.utcfromtimestamp will be deprecated in 3.12: https://github.com/python/cpython/issues/103857

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. 📅🕐

pganssle,
@pganssle@qoto.org avatar

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: https://blog.ganssle.io/articles/2019/11/utcnow.html

pganssle, to random
@pganssle@qoto.org avatar

$ 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.

pganssle,
@pganssle@qoto.org avatar

@acdha Hah, good call, I had just remembered that I usually do… something with block sizes when I saw this.

Speed is still trending down so maybe not a steady state yet, but looks like maybe a 4-5x speedup, so this might be done in only 16 or so hours!

pganssle,
@pganssle@qoto.org avatar

@acdha Yeah, this is an empty drive that I’m about to encrypt. Filling it with random data is the first step, which I may be cargo culting, but IIRC the idea is that it prevents leaking the amount of data on the drive or something.

pganssle,
@pganssle@qoto.org avatar

@cnx @acdha Yes, but the way it works is that you create a dm-crypt partition seeded from /dev/urandom, then you mount it and fill it with 0s. The encryption translates the 0s into random bytes.

Here are the instructions I usually use: https://wiki.archlinux.org/title/Dm-crypt/Drive_preparation

pganssle, to programming
@pganssle@qoto.org avatar
Step 5/7 : RUN python3 -m pip install .
 ---> Running in 31b96e802fdb/usr/bin/python3: No module named pip

Hmm.. So also ships a crippled thing that is not when you dnf install python3.

I was hoping that that was a reasonable alternative to Debian/Ubuntu ☹

pganssle, to random
@pganssle@qoto.org avatar

Psst. Next year is a leap year. Depending on your deployment story, now (or 3 months ago😅) might be a good time to start looking into logic that won’t handle leap years correctly.

pganssle, to random
@pganssle@qoto.org avatar

“Oh I need to communicate with someone on Discord quickly, guess I’ll launch it. Oh, there’s an update available, so Discord prevents me from opening their appliaction.”

Reason to avoid .

pganssle,
@pganssle@qoto.org avatar

isn’t great, but it’s a darn sight better than this.

pganssle,
@pganssle@qoto.org avatar

@rober Lol, “Our user experience is trash, but we also have a different trash UX that is complementary to the other one!”

I appreciate the helpful tip, but also I’m not sure I want to encourage the continued existence of Discord.

kazarnowicz, (edited ) to random
@kazarnowicz@unstraight.club avatar

A question for frequent readers: without looking it up, do you know what 'hegira' means?

pganssle,
@pganssle@qoto.org avatar

@kazarnowicz Yes, but I had to look it up to verify that I had it right.

pganssle,
@pganssle@qoto.org avatar

@kazarnowicz I am a native speaker, and I suspect that I have an unusually large vocabulary, but I got that from reading a lot, and these days if you read on any kind of e-reader device you can long-press on a word to define it. I suspect that most people won’t know the word but in most contexts I can imagine using it the meaning should be clear enough.

Unlike, for example, the words “bemused”, “quizzical”, “nonplussed” or “easterly”, where you get sentences like, “Harold gave Jane a bemused look”, and you don’t know if the author is in the group of people who know the “correct” meaning or the group of people who thinks it means the thing it sounds like it means.

drewtoynbee, to random

Bit of a long shot, but could my good mastodon follower folk give me some boosts?

I'm starting work on a documentary podcast series about the future of space; renewable/sustainable technologies, commercialism in the sector and the public's perception of it all.

I'm hoping to connect with people who know space to complement my client's contacts, so any signal boosting would be appreciated!

pganssle,
@pganssle@qoto.org avatar

@drewtoynbee This may be of interest to you, @astrojuanlu

pganssle, to random
@pganssle@qoto.org avatar

It was just a few days ago that I was spontaneously praising @kevin for his work transforming Bloomberg’s culture with respect to open source. You could do much worse than hiring him.

hugovk, to programming
@hugovk@mastodon.social avatar
pganssle,
@pganssle@qoto.org avatar

@hugovk Ugh. I guess I know what I’ll be doing instead of actually working on getting dateutil 3.0 out next time I have free time to work on open source.

pganssle,
@pganssle@qoto.org avatar

@hugovk Self-hosted CI

pganssle,
@pganssle@qoto.org avatar

@hynek Yeah, that is indeed the problem. I’ve got too much to do and every time I try and accomplish the last task with 2.7 support I’m bogged down with a bunch of CI bitrot, which all bitrots again before I make much progress on the final PR.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • cisconetworking
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Durango
  • Youngstown
  • slotface
  • thenastyranch
  • love
  • kavyap
  • tacticalgear
  • tester
  • provamag3
  • khanakhh
  • ngwrru68w68
  • everett
  • osvaldo12
  • rosin
  • cubers
  • GTA5RPClips
  • normalnudes
  • modclub
  • ethstaker
  • Leos
  • anitta
  • JUstTest
  • All magazines