Show more

I spent a lot of time this long weekend making improvements to my perfect pitch training app: pganssle.github.io/cim/

I’m pretty happy with how it’s shaping up. My son has been using it 4-5 times per day (the sessions are frequent but short), and it’s kind of amazing to see how good he is at identifying chords.

So I figured out how to do this with Inkscape, it’s just a bit wonky:

  1. Make your shape as a simple path
  2. Set the size of the shape to be between 0 and 1 (width and height) in some base unit
  3. Set up the document so that the scale is 1 of whatever your base unit is.
  4. Save an optimized SVG (not always necessary) to get a maximally simplified path (with no transforms or whatever).
  5. Open with a text editor and copy the path into your <clipPath> SVG.

If that doesn’t work as expected, you may have to copy the path and paste it into a new document after it’s been scaled and moved.

If that’s still not working, you can copy-paste the path into this tool and play with the scaling: yqnn.github.io/svg-path-editor

Paul Ganssle  
Does anyone know a good tool for #linux that I can use to draw shapes and output clip paths for use in #HTML/#CSS that work to clip stuff? What I’m...

Some of the shapes I want to draw can be accomplished easily enough with regular CSS polygons, but I want to clip with something like star, crescent moon, teardrop, heart. I would much prefer to build that stuff in Inkscape or something.

Show thread

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.

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.

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

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

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

Might be a good idea to call your representatives about this.

Legit_Spaghetti  
We're on hour... what, 4 now, of struggling through my kid's 3rd grade homework. This isn't difficult homework. The problem is that the DEA has cre...

We're on hour... what, 4 now, of struggling through my kid's 3rd grade homework. This isn't difficult homework. The problem is that the DEA has created a situation where countless Americans are without the #ADHD meds they need to function, and my son is one of them.

The other night at dinner he was in tears, saying "I'm not even myself anymore."

This shortage is heartbreaking, cruel, and completely unnecessary. I can't even imagine what adults with ADHD are going through. This is hell.

Anyone have a recommendation for a case for the ? I basically want the thinnest thing that lets me put the phone down without the camera lying straight on the surface.

(Though also I guess I drop my phone all the time nowadays, and the back case of my old one is broken, so I guess impact resistance might be more important than it has been in the past)

Though I guess they don’t really make 2TB SDHC cards yet, so my plan to get a tablet with a 2TB memory card and keep the originals on it might not work out as well as I had hoped.

Given how much space I saved, it might be worth it to use 1080p and just have that be the main thing I watch on both phone and tablet.

Show thread

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!

A client wanted me to text his fleet when they were speeding. To do that I needed to know the speed limits of the street they're on.

I try to use Open source whenever possible, so I hooked into the free Open Street Maps API and was seriously disappointed of the percentage of streets in my state with speed limits.

I really wish somebody would add those speed limits. Then I remembered I'm somebody.

So I'm adding speed limits. It's oddly satisfying.

#openstreetmap #opensource

Show more
Qoto Mastodon

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