Pete Corey

@petecorey
143 Followers
324 Following
111 Posts
+++ All Things Strive +++
websitehttp://www.petecorey.com/
tweetshttps://twitter.com/petecorey

Another #Music post. "Scales as Multipermutations of 0 and 1 into Twelve Places", written in #ElixirLang.

https://petecorey.com/blog/2025/06/25/scales-as-multipermutations-of-0-and-1-into-twelve-places/

Scales as Multipermutations of 0 and 1 into Twelve Places

The itch to write a property test for the musical scale generator we built last time led to explore how to generate all possible scales.

Pete Corey

I'm back, and I'm rebuilding my guitar chord tool, Glorious Voice Leader in Elixir.

Related, I wrote a post on how to generate musical scales:

https://petecorey.com/blog/2025/06/22/generating-musical-scales/

Generating Musical Scales

In my journey to rebuild Glorious Voice Leader in Elixir, I need a way to generate correctly spelled musical scales. Here’s how I did it.

Pete Corey
Before you continue to YouTube

@petecorey yes and in html/vue/xml/… the `vit`/`vat`/… is also handy for selecting outside/inside the tag

TIL you can expand a visual selection in #vim by just tacking on more nouns or modified nouns.

{{{}}}

If you're in the middle braces, you can `va{` to select the middle set. Then you can `a{` to select around the next most outer set, and `a{` to select around the outermost set.

🤯

I spotted this in an elevator today, but I can’t figure out which #linux distro logo this is, if it’s a distro logo at all. What is this? Any thoughts?

Dear #Elixir and maybe #Security friends, there are multiple CVEs marking the `jose` package as vulnerable for _all versions_, but the vulnerability was patched in 1.11.7.

How do I, a mild-mannered developer just wanting my CI to stop complaining, get these CVEs to recognize that a fix exists in version 1.11.7?

https://www.cve.org/CVERecord?id=CVE-2023-50966
https://nvd.nist.gov/vuln/detail/CVE-2023-50966
https://security.snyk.io/vuln/SNYK-HEX-JOSE-6468183

CVE Website

Dear #ElixirLang friends, I'm trying to find a way to tell me if ExAws can resolve credentials (so I can switch certain functionality on/off in the presence of AWS).

Is there a straight forward way of doing this? I seem to be going into some deep weeds.

https://hexdocs.pm/ex_aws/readme.html#aws-key-configuration

ExAws — ExAws v2.5.3

Does anyone play #guitar using an open diminished or diminished seventh tuning? I had the thought while driving home today.

After some googling, apparently it’s a thing for harmonica, but I haven’t seen much for guitar.

#postgresql friends - I'm trying to create a trigger that fires on "true inserts," but not on ON CONFLICT DO UPDATE upserts. So it only fires when a new row has been inserted into the table, and not when an existing document has been updated on conflict.

Is this possible? I was naively hoping I could do something like WHEN (OLD IS NULL), but INSERT triggers can't reference OLD.