Show newer

Does anyone know a good tool for that I can use to draw shapes and output clip paths for use in /#CSS that work to clip stuff?

What I'm getting from is not clipping my divs correctly. Here's a MWE:

jsfiddle.net/gawLvzqu/

(There should be three divs there, with the left two clipped on rounded triangles)

I'd like to do more measurements of real-world #Python test suite running times.

Do you have a project with an easily runnable test suite that takes between 1 and 10 minutes to run and uses coverage? Ideally it could also be run without coverage measurement, and can run under Python 3.12.

TIA!

@pganssle GrapheneOS has this feature and I'd love if it would become a general part of AOSP.

It allows you to choose which contacts to share, or just pretend you don't have any.

@BryanGreyson Nice! Next time I have time / inclination to switch to a custom OS I'll have to give it a try.

When are they going to add an app-specific "Contacts sandbox" for Android — or the ability to do app-specific spoofed permissions in general?

It is annoying that I either give WhatsApp *all* my contacts or *none* of them. For stuff like that I'd like to be able to share contacts on a per-contact basis (with the app unable to tell the difference between partial and full contact lists, mind you).

Something *like* that exists for file system permissions already. I'm surprised I haven't seen it in any custom OSes or mods.

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

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

@brettcannon This is the one we bought, very basic, runs over local RF: 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.

PEP 723 was provisionally accepted today! That means you can embed a pyproject.toml into a single file Python script! So this:

# /// pyproject
# run.requirements = [“requests”]
# ///

At the top of your file should enable tools like pipx to know it needs requests to run!

( I made the PR to pipx today )

Today I helped my friend get into her apartment when she was locked out. She was locked out because she was distracted trying to get her and her kids' costumes on, so when we were breaking into her place, she was dressed as... a stereotypical thief, holding a bag with a dollar sign on it. Very inconspicuous. 😅

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

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

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

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

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

@WindOfChange @aes__ Ah, I'm not using KDE and Cinnamon doesn't seem to have an equivalent thing, though yeah copying to the clipboard is not great either.

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](github.com/pganssle/dotfiles/b), 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 🦩.

Show older
Qoto Mastodon

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