Glyph
glyph.mastodon.social.ap.brid.gy
Glyph
@glyph.mastodon.social.ap.brid.gy
he/him

You probably heard about me because I am the founder of the Twisted python networking engine open source project. But I’m also the author and maintainer […]

🌉 bridged from https://mastodon.social/@glyph on the fediverse by https://fed.brid.gy/
I think I need new headphones. I have 2 pairs of simple wired ones: an open-back pair for "kid and/or spouse are around and might need me to hear them but I am trying to listen to something to get a *modicum* of executive function" and a closed-back pair for "monitors for streaming & podcasting" […]
Original post on mastodon.social
mastodon.social
November 19, 2025 at 9:33 PM
panic!() at the disconnection
November 19, 2025 at 9:20 PM
oops apparently I missed an update, https://github.com/glyph/mopup time
November 19, 2025 at 8:18 PM
Reposted by Glyph
user with 537 tabs and documents open on three 4k monitors: why do computers these days use so much ram? this never happened when I had one single Internet Explorer window open on a 800x600 monitor
November 19, 2025 at 4:21 PM
Reposted by Glyph
Remember that time Mozilla said it was going to stop working with the personal data removal service Onerep after I published a story showing Onerep's CEO was actually running several people search sites at the same time? […]
Original post on infosec.exchange
infosec.exchange
November 19, 2025 at 5:16 PM
I am still at a point where I feel like this is irrational catastrophizing, but not, like, completely: every time I open Feedback Assistant now, I think, "if I submit a sysdiagnose along with this feedback, will the information it contains be used to imprison or kill me or a politically active […]
Original post on mastodon.social
mastodon.social
November 19, 2025 at 5:11 PM
the Local Network Access permission on macOS is really determined to ruin my day. I finally reached the bottom of a towering, ridiculous, huge stack of yaks. At the top, macOS-13 images are having an hours-long brownout on Github Actions, so I can't test my code
November 19, 2025 at 3:46 AM
Reposted by Glyph
Chatting with a friend about Cloudflare's intermittent outages today, they brought up an interesting point: How many organizations have started relying on Cloudflare to do basic security blocking and tackling stuff, like stopping SQL injection attacks at the edge? Maybe your devs were lazy at […]
Original post on infosec.exchange
infosec.exchange
November 18, 2025 at 4:52 PM
I will be streaming on Twitch at https://www.twitch.tv/glyph_official/ at 10AM US/Pacific tomorrow (in a bit over 16½ hours), writing open source #python code of one type or another, in #emacs. Feel free to drop by if that is a topic which of interest to you.
glyph_official - Twitch
That guy that wrote that computer program that one time.
www.twitch.tv
November 18, 2025 at 1:21 AM
Be aware of this limitation, but, this project is *very* cool and provides the ergonomic "wtf is this process doing" affordance I've wanted for years, at least for 3rd-party binaries

https://github.com/Mic92/strace-macos/issues/10
does nothing for system (SIP-protected) binaries · Issue #10 · Mic92/strace-macos
I was very excited to see this project! I did: ★ pipx install --python=/usr/bin/python3 git+https://github.com/Mic92/strace-macos ↩ Mon Nov 17 13:52:52 PST 2025 installed package strace-macos 0.1.0...
github.com
November 17, 2025 at 10:25 PM
Reposted by Glyph
TIL: matplotlib supports specifying colors using standard X11/CSS4 names, but also supports the names from the xkcd color survey.

(While looking this up, I also learned about the full-on xkcd mode, but different topic!)

#python #matplotlib
Color Survey Results
> Who in the rainbow can draw the line where the violet tint ends and the orange tint begins? Distinctly we see the difference of the colors, but where exactly does the one first blendingly enter into the other? So with sanity and insanity. > —Herman Melville, _Billy Budd_ > Orange, red? I don’t know what to believe anymore! > —Anonymous, Color Survey > I WILL EAT YOUR HEART WITH A FUCKING SPOON IF YOU AKS ANY MORE QUESTIONS ABOUT COLORS > —Anonymous, Color Survey Thank you so much for all the help on the color survey. Over five million colors were named across 222,500 user sessions. If you never got around to taking it, it’s too late to contribute any data, but if you want you can see how it worked and take it for fun here. First, a few basic discoveries: * If you ask people to name colors long enough, they go totally crazy. * “Puke” and “vomit” are totally real colors. * Colorblind people are more likely than non-colorblind people to type “fuck this” (or some variant) and quit in frustration. * Indigo was totally just added to the rainbow so it would have 7 colors and make that “ROY G. BIV” acronym work, just like you always suspected. It should really be ROY GBP, with maybe a C or T thrown in there between G and B depending on how the spectrum was converted to RGB. * A couple dozen people embedded SQL ‘drop table’ statements in the color names. Nice try, kids. * _Nobody_ can spell “fuchsia”. Overall, the results were really cool and a lot of fun to analyze. There are some basic limitations of this survey, which are discussed toward the bottom of this post. But the sheer amount of data here is cool. **Sex** By a strange coincidence, the same night I first made the color survey public, the webcomic Doghouse Diaries put up this comic (which I altered slightly to fit in this blog, click for original): It was funny, but I realized I could test whether it was accurate (as far as chromosomal sex goes, anyway, which we asked about because it’s tied to colorblindness) _[Note: For more on this distinction, see my_ _follow-up post_ _]_. After the survey closed, I generated a version of the Doghouse Diaries comic with actual data, using the most frequent color name for the handful of colors in the survey closest to the ones in the comic: Basically, women were slightly more liberal with the modifiers, but otherwise they generally agreed (and some of the differences may be sampling noise). The results were similar across the survey—men and women tended on average to call colors the same names. So I was feeling pretty good about equality. Then I decided to calculate the ‘most masculine’ and ‘most feminine’ colors. I was looking for the color names most disproportionately popular among each group; that is, the names that the most women came up with compared to the fewest men (or vice versa). Here are the color names most disproportionately popular among women: 1. Dusty Teal 2. Blush Pink 3. Dusty Lavender 4. Butter Yellow 5. Dusky Rose Okay, pretty flowery, certainly. Kind of an incense-bomb-set-off-in-a-Bed-Bath-&-Beyond vibe. Well, let’s take a look at the other list. Here are the color names most disproportionately popular among men: 1. Penis 2. Gay 3. WTF 4. Dunno 5. Baige I … that’s not my typo in #5—t _he only actual color_ in the list really is a misspelling of “beige”. And keep in mind, this is based on the number of unique people who answered the color, not the number of times they typed it. This isn’t just the effect of a couple spammers. In fact, this is _after_ the spamfilter. I weep for my gender. But, on to: **RGB Values** Here are RGB values for the first 48 out of about a thousand colors whose RGB values (across the average monitor, shown on a white background) I was able to pin down with a fairly high degree of precision: The full table of 954 colors is here, also available as a text file here (I have no opinion about whether it should be used to build a new X11 rgb.txt except that seems like the transition would be a huge headache.) The RGB value for a name is based on the location in the RGB color space where there was the highest frequency of responses choosing that name. This was tricky to calculate. I tried simple geometric means (conceptually flawed), a brute force survey of all potential center points (too slow), and fitting kernel density functions (math is hard). In the end, I used the average of a bunch of runs of a stochastic hillclimbing algorithm. For mostly boring notes on my data handling for this list, see the comments at the bottom of the xkcd.com/color/rgb/ page. **Spelling and Spam** Spelling was an issue for a lot of users: Now, you may notice that the correct spelling is missing. This is because I can’t spell it either, and when running the analysis, used Google’s suggestion feature as a spellchecker: A friend pointed out that to spell it right, you can think of it as “fuck-sia” (“fuch-sia”). Misspellings aside, a lot of people spammed the database, but there were some decent filters in place. I dropped out people who gave too many answers which weren’t colors used by many other people. I also looked at the variation in hue; if people gave the same answer repeatedly for colors of wildly varying hue, I threw out all their results. This mainly caught people who typed the same thing over and over. Some were obviously using scripts; based on the filter’s certainty, the #1 spammer in the database was someone who named 2,400 colors—all with the same racial slur. **Map** Here’s a map of color boundaries for a particular part of the RGB cube. The data here comes from a portion of the survey (1.5 million results) which sampled only this region and showed the colors against both black and white backgrounds. The data for this chart is here (3.6 MB text file with each RGB triplet named). Despite some requests, I’m not planning to make a poster of any of this, since it seems wrong to take advantage of all this volunteer effort for a profit; I just wanted to see what the results looked like. You’re welcome to print one up yourself (huge copy here), but keep in mind that print color spaces are different from monitor ones. **Basic Issues** Of course, there are basic issues with this color survey. People are primed by the colors they saw previously, which adds overall noise and some biases to the data (although it all seemed to even out in the end). Moreover, monitors vary; RGB is not an absolute color space. Fortunately, what I’m really interested in is what colors will look like on a typical monitors, so most of this data is across the sample of all non-colorblind users on all types of monitors (>90% LCD, roughly 6% CRT). Color is a really fascinating topic, especially since we’re taught so many different and often contradictory ideas about rainbows, different primary colors, and frequencies of light. If you want to understand it better, you might try the neat introduction in Chapter 35 ofThe Feynman Lectures on Physics (Vol. 1), read Charles Poynton’s Color FAQ, or just peruse links from the Wikipedia article on color. For the purposes of this survey, we’re working inside the RGB space of the average monitor, so this data is useful for picking and naming screen colors. And really, if you’re reading this blog, odds are you probably—like me—spend more time looking at a monitor than at the outdoors anyway. **Miscellaneous** Lastly, here are some assorted things people came up with while labeling colors: Thank you so much to relsqui for writing the survey frontend, and to everyone else who sacrificed their eyeballs for this project. If you have ideas and want to analyze these results further, I’ve posted the raw data as an SQLite dump here (84 MB .tar.gz file). It’s been anonymized, with IPs, URLs, and emails removed. I also have GeoIP information; if you’d like to do geocorrelation of some kind, I’ll be providing a version of the data with basic region-level lat/long information (limited to protect privacy) sometime in the next few days. _Note: The ColorDB data is the main survey. The SatOnly data is the supplementary survey covering only the RGB faces in the map, and was presented on a half-black half-white background.)_ And, of course, if you do anything fun with this data, I’d love to see the results—let me know at xkcd@xkcd.com. ### Share this: * Click to share on X (Opens in new window) X * Click to share on Facebook (Opens in new window) Facebook * Like Loading... ### _Related_
blog.xkcd.com
November 17, 2025 at 3:13 AM
I've got a CS problem: let's say you're writing a networked service that wants to allow clients to create posts. In a naive centralized system, you'd generate UUID4s (or maybe UUID7s, if you're nasty) on the back end. But, for idempotence, you really want the *client* to generate the IDs, so […]
Original post on mastodon.social
mastodon.social
November 17, 2025 at 1:10 AM
Reposted by Glyph
my advice to every new software engineer out there: if you ever have a choice between writing a parser and not writing a parser, for the good of us all, please choose to not write a parser.
November 2, 2025 at 2:59 AM
"utility" is becoming a signal word for me that a technology is a grift.

When people are talking about stuff they use to solve problems, they talk about the problems. Word processors allow you to write documents. Messaging apps let you talk to friends in real time. IDEs let you develop software.
November 16, 2025 at 10:58 PM
Reposted by Glyph
@glyph $deity backing up a dump truck full of additional multitudes: “wait a sec, chief, you telling me you didn’t order these? I gotta leave ‘em somewhere!”
November 16, 2025 at 8:19 PM
Some days I wish I contained fewer multitudes, you know?
November 16, 2025 at 7:30 PM
RE: https://hachyderm.io/@jedbrown/115557958690672625

feeling somewhat justified in my trepidation about accepting LLM output due to copyright concerns, but I have to admit, “they are completely lying about the indemnification” was a bit too cynical a prediction even for me
hachyderm.io
November 16, 2025 at 6:42 AM
trying to be a responsible #ADHD-haver, undocking the laptop,, taking it upstairs, and doing a transition to "it's night time, maybe wind down for sleep" that might be legible to my stupid brain

to be rewarded by opening the laptop up once upstairs, finding that the display does not power on
November 15, 2025 at 5:07 AM
pyvideo is such an amazing resource and I love that I can jump in with existing tools to do this and the only thing that would make it even better would be if I didn't always have to do this https://github.com/pyvideo/data/pull/1360/files
fix speaker to match mononym for consistency by glyph · Pull Request #1360 · pyvideo/data
compare https://pyvideo.org/speaker/glyph.html and https://pyvideo.org/speaker/glyph-lefkowitz.html on the live site right now
github.com
November 15, 2025 at 3:25 AM
Reposted by Glyph
my husband made it so the home assistant voice assistant can use full-on ollama to interpret instructions. then he told it to turn the lights on. it's been explaining its thought process for over five minutes now and the lights are still off.
November 15, 2025 at 1:06 AM
finally got around to going back to what cannot, due to litigation, be called “therapy” and must instead be called “coaching” today, and hooooo buddy do I have a lot gunking up the ol’ brain box apparently
November 14, 2025 at 11:43 PM
okay so we've got "Palantir" and "Erebor", how close are we to an LLM that accurately describes its capabilities by using the name "Gríma"
November 14, 2025 at 9:54 PM
Reposted by Glyph
Really interesting teen subculture: straightedge #noai art kids. (They're developing IT skills just to turn off or avoid "AI" slop—this gives me hope for the future)

For a lot of these kids (I've also heard them called the "AI vegans") a big college decision is coming up. And colleges […]
Original post on federate.social
federate.social
November 14, 2025 at 4:41 PM
remember, python programmers, if you use macOS, ~/Library/Caches/pip is where the operating system stores cached information for the picture-in-picture feature's operation
November 13, 2025 at 7:41 PM
There seems to be a distressing trend of Steam games on macOS deciding that ~/GameName is the place for save games. I'm not sure what to do about this other than report bugs, then request refunds from unresponsive devs if they don't get fixed. Is there some option I'm not seeing for how to tell […]
Original post on mastodon.social
mastodon.social
November 13, 2025 at 6:12 PM