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

gpshead, to SEC

The U.S. SEC's twitter account “did not have two-factor authentication enabled”. In 2024. For reals.

pganssle,
@pganssle@qoto.org avatar

@gpshead Interesting, I was not surprised by this because last time I checked, Twitter was only supporting SMS 2FA(and IIRC Twitter once used those numbers for advertising), which I assume is incompatible or massively inconvenient for an org account, but it seems like they have improved the situation a lot since then.

webology, to random
@webology@mastodon.social avatar

🎧 I'm trying to figure out the least annoying way to load an audiobook onto my phone so I can listen to @pluralistic's
Enshittification audiobook as one does on a Saturday morning.

📚 I'm on a Mac, and I thought that was the Books app, but it's not showing up on my iPhone. Excellent start and an example of enshittification.

https://craphound.com/category/internetcon/

pganssle,
@pganssle@qoto.org avatar

@webology @pluralistic Probably not the easiest way to do it if you just want one audiobook, but I put audiobooks on my phone by turning them into podcasts: https://github.com/pganssle/audio-feeder/

Here is a docker-compose configuration: https://github.com/pganssle/audio_feeder_docker

pganssle,
@pganssle@qoto.org avatar

@webology @pluralistic There are some complications if you just serve it locally like I do, particularly with iPhones, because almost all iOS podcast players are apparently awful, and everything except Apple podcasts apparently needs to serve the audio from their own servers for some reason or something like that, but if you make it Internet-facing you won’t have any problems I think.

pganssle, to random
@pganssle@qoto.org avatar

My 2-year old was mashing keys on my keyboard and somehow summoned an emoji picker (something I’ve been meaning to configure for ages), and I can’t figure out what he did…

pganssle,
@pganssle@qoto.org avatar

I think it was Ctrl + ., but it only works in certain places…

pganssle,
@pganssle@qoto.org avatar

@brettcannon Yeah, Arch using Cinnamon. Doesn’t seem as useful as I had hoped anyway because it seems like you need to select the emoji with a mouse anyway?

I am falling back to my previous plan to reactivate ibus to try its emoji picker (I already have it installed from when I used to write a lot more Japanese text, but I switched to uim ages ago for reasons I can’t now recall and also now I am not 100% sure how to switch back 😛

tonybaloney, to random
@tonybaloney@fosstodon.org avatar

Finger is now colors it shouldn’t be (sprain or break) so I’ve strapped it to a buddy. On the plus side, My swimming/paddling stroke will only be partially impacted for a week or so with a claw hand

pganssle,
@pganssle@qoto.org avatar

@brettcannon @tonybaloney I don’t know about you guys, but for me in my early 20s it was like, “Oh giant metal spike pierced several vital organs; the doctor said it would take a month to heal but I was pretty much fine on week 3.”

Now it’s like, “I stood up in a weird way and now my right arm tingles whenever I turn left. The doctor said I should give it 6 months but I’ll be happy if the tingling is less noticable in 2 years…”

pganssle, to microsoft
@pganssle@qoto.org avatar

Haven’t interacted with a product in a long, long time, then my son got really into and I bought a Windows computer. So far I’ve found:

  1. Not only is internet required to install Windows, you also need a Microsoft account¹.
  2. The Switch, Xbox and PS4/PS5 versions of Minecraft can only connect to “featured” servers rather than custom servers.²

Not a good track record for like… 1 week of interacting with their products.

¹I realize that there’s some convoluted way to do this, but it definitely derailed me from doing the Windows install when I wanted to. Particularly since I’m just dual-booting Windows as a “just-in-case” type situation.
²Luckily someone has hacked around this requirement, though who knows how long that can last.

mariatta, to random
@mariatta@fosstodon.org avatar

Tried to use the search engine to ask about "how to pronounce #"
but the search engine treated "#" as a comment and it tried to be "smart" and is telling me how to pronounce the word "to" instead.

I also tried "how to pronounce the # symbol", "the # sign", but it just tells me how to pronounce "symbol" or "sign"

🤕

pganssle,
@pganssle@qoto.org avatar

@mariatta In case you didn’t find it, Wikipedia has a good write up on the varied things that is called: https://en.wikipedia.org/wiki/Number_sign#Names

I like “Octothorpe”, but I don’t think that’s nearly as common as “pound” or “hash” in American English. (Hashtag as the name for that symbol seems to have skyrocketed in the past 10-15 years).

tonybaloney, to random
@tonybaloney@fosstodon.org avatar

The hard part now is finding a web framework that’ll compile on the no-GIL branch.
Litestar is no (msgspec won’t compile)
Flask is no (MarkupSafe won’t compile)
FastAPi is no (pydantic-core won’t compile)
Maybe an old version of FastAPI?

pganssle,
@pganssle@qoto.org avatar

@tonybaloney python -m http.server? 😛

brettcannon, to random
@brettcannon@fosstodon.org avatar

Any recommendations on a baby monitor that does audio and video?

I'm assuming this crowd has parents that don't want a security hole in their child's nursery and thus already did the research for me. 😉

pganssle,
@pganssle@qoto.org avatar

@brettcannon This is the one we bought, very basic, runs over local RF: https://www.amazon.com/gp/aw/d/B00ECHYTBI

We broke one after about two years and bought a new one, which we just gave away to family members (ones we like) recently.

As far as I know you can’t use it to record video or audio. It has a talk button that is sometimes useful, but also sometimes used to freak out our older one.

Range was decent (though not compared to an internet-connected device). We could go outside when we lived in a townhouse in NY, and when we had a big suburban house it reached the whole thing plus the yards.

pganssle,
@pganssle@qoto.org avatar

@brettcannon I seem to remember @glyph might have gotten the same one? Or considered it?

glyph, to random
@glyph@mastodon.social avatar

Can someone ( @pganssle ) tell me why I shouldn't do this:

ZoneInfo("/".join(readlink("/etc/localtime").split("/")[-2:]))

pganssle,
@pganssle@qoto.org avatar

@glyph What are you trying to do here? You can use ZoneInfo.from_file to use the file directly if you know it exists.

That said, with proper error handling and fallbacks I don’t see why doing that wouldn’t work in a lot of situations. If you want something more robust I think tzlocal encapsulates a bunch of these kinds of hacks.

pganssle,
@pganssle@qoto.org avatar

@glyph Can you not ask the user what time zone they want to use?

pganssle,
@pganssle@qoto.org avatar

@glyph Everything about datetimes (and probably most human-centric things) is super context-dependent, so what time zone they want to tell the system may have nothing to do with what time zone they want to tell your program.

I don’t know what your program is and why you need to serialize civil times with time zones, so it’s really hard to have concrete advice here. The only thing I can think of where you’d want it to represent whatever the system local time is, but also pass it around as a civil datetime with an attached zone would be calendar entries, and calendar entries are definitely something you’d want to offer the option to choose a time zone for (since you may say, “Oh this event is two weeks happens at noon in New Jersey, but I live in London”).

For pretty much everything else, you either care about the absolute time something happens/ed (e.g. log entries, something that must happen every 24 hours or something), or you care about what time it happens in local time (e.g. “install updates and restart at 2AM because that’s when I’m asleep”). In the first case you can basically pass around epoch timestamps or equivalent, and in the second case you can pass around naïve datetimes.

pganssle,
@pganssle@qoto.org avatar

@glyph Though I imagine that a general rule of “try to guess the time zone they care about by looking at /etc/localtime or the TZ variable or in the Windows registry or whatever” + have an option to manually specify your time zone would basically have you covered. You don’t necessarily need a modal at the beginning like, “Hey, what is your time zone, I couldn’t possibly figure this out.”

pganssle, to linux
@pganssle@qoto.org avatar

Does anyone have a good solution for typing emojis in any random box on ? Right now I’ve got compose key shortcuts set up for a few of them, but I have to remember which ones I’ve defined, and that doesn’t exactly scale. Ideally I’d be able to define a hotkey that would bring up a little search box that I can type in “tada” for 🎉 and “flamingo” for 🦩.

pganssle,
@pganssle@qoto.org avatar

@cnx Hm, I did have IBus set up at one point when I was doing a lot more Japanese text input. If it’s any good it might be worth enabling it again.

simon, (edited ) to random
@simon@simonwillison.net avatar

Urgh. Got woken up at 3:19am by a test of the earthquake alert system that was supposed to happen at 10:19am... but they accidentally scheduled it in UTC instead of California time zone!

I mean, time zones are hard, but still - such a rookie error
https://www.latimes.com/california/story/2023-10-19/california-earthquake-early-warning-test-goes-off-seven-hours-early

pganssle,
@pganssle@qoto.org avatar

@glyph @simon I hate these things and it feels like some Soviet style bullshit that I can’t turn them off on “my” phone BUT to be fair, I think “all the alerts to my phone using the system have been some kind of mistake” is approximately what I would expect here even in competent hands.

Considering that as far as I know there has never been a situation where the relevant features of the system would be useful, all such notifications are bound to be tests or mistakes. Tests must necessarily be rare for the system to have any kind of validity, and for rare things where you get one shot it’s incredibly hard to anticipate everything.

To me, “Get the time zone right and don’t notify people in the middle of the night” seems pretty basic, but potentially there are dozens of things that they did right that I wouldn’t think of and that would seem like elementary mistakes to someone else.

pganssle, to random
@pganssle@qoto.org avatar

Since my new only has 1TB of space and no expandable storage, I decided that I would keep all my “on device” videos as 720p instead of the 4k 60fps originals (it’s visually indistinguishable while watching them on the phone anyway, as far as I can tell).

450GB compressed all the way down to 21 GB, wow!

pganssle, to espanol
@pganssle@qoto.org avatar

Anyone aware of something like the Speech Accent Archive (https://accent.gmu.edu/) but for Spanish? SAA has people (native and non-native speakers) read a short example phrase in English to capture their accent. I seem to remember encountering a similar thing for French years ago, I would be curious to hear the same thing with Spanish.

pganssle, to random
@pganssle@qoto.org avatar

I don’t understand why it’s 2023 and I’ve never seen a Bluetooth connection UI that allows filtering by the type of device you are looking for. I’m trying to pair headphones, I don’t need to see that there are 50 TVs and computers broadcasting their IDs around me.

pganssle,
@pganssle@qoto.org avatar

@webology Thanks, I don’t use Apple or Apple products (not on principle or anything, I just don’t think they’re very good).

Honestly, considering nearly everything I use is open source, I should probably file this as a bug report in a tracker somewhere even if I don’t do the fix myself.

pganssle, to random
@pganssle@qoto.org avatar

I had a dream last night that Java came out with a new packaging spec that involved encoding your metadata as a crystal that you then dissolved in a liquid, and somehow my first thought was, “That seems convoluted, but who are we (Pythonistas) to judge?”

mariatta, to random
@mariatta@fosstodon.org avatar

Lenovo website.

I tried setting a password (generated using 1password) based on the specification. The password definitely has uppercase, lowercase, numbers, and special characters, but the website validator wouldn't let me proceed.

After feeling frustrated, trying for more than 10 minutes, and also involving my husband to try it, we finally figured out the problem.

Before I reveal the solution, does anyone wanna guess why the form validator didn't work?

🤕

pganssle,
@pganssle@qoto.org avatar

@mariatta @d Wow.

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