Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
24

Running Pull Requests in Github Codespaces

from These Yaks Ain't Gonna Shave Themselves [alt+shift+b] in programming

Earlier this week, I was having a lot of trouble understanding how to get Dev Containers working. Dev Containers are the required way to enable Github Codespaces, which was my actual goal. I finally got to something that works, so I want to document what I learned. Dev Containers is a standard developed my Microsoft for using docker containers to run dev environments for a project. I use Docker for most of my projects these days. I think it’s a great tool both for simplifying local development and for packaging and deploying my projects. In the current project, I already have a Dockerfile and a docker-compose.yml file. I deploy to fly.io which will also run my docker build to deploy the project. This works fine for me, and I had never used Dev Containers. It seemed overly complicated (and I was right about that). I want to give more of the context about why I’ve been pursuing github codespaces, because I think it’s relevant. But if you wanna skip to the tips for getting Dev Containers and Codespaces working, feel free. (I’m also going to talk positively about using LLMs to code, so if that makes you want to skip too, there’s no hard feelings). Background Here’s the idea. I have a solo project that I’m working on, and instead of hacking away on the main branch, I’m using a full feature branch and pull request workflow to keep my changes organized. This might seem like overkill, but it’s helpful for me because I tend to bounce around and leave things half done. I can run things locally and test different things by switching between branches. But I’m also doing a lot more AI-assisted development. Locally I use Claude Code. But I’ve been experimenting with allowing Github Copilot to create PRs. I create a github issue, assign it to copilot, and it spins up in the cloud and does work. Afterwards it opens a pull request for me to review. So even though this is a “solo” project, I end up with pull requests that I didn’t write myself and I need to validate. Giving...
23rd Oct 2025

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from These Yaks Ain't Gonna Shave Themselves

Getting A Local Mastodon Setup In Docker

This is the first in probably a series of posts as I dig into the technical aspects of mastodon. My goal is to get a better understanding of the design of ActivityPub and how mastodon itself is designed to use ActivityPub. Eventually I want to learn enough to maybe do some hacking and create some of the experiences I want that mastodon doesn’t support today. The first milestone is just getting a mastodon instance set up on my laptop. I’m gonna give some background and context. If you want to skip straight to the meat of things, here’s an anchor link. Some background Mastodon is a complex application with lots of moving parts. For now, all I want is to get something running so I can poke at it. Docker should be a great tool for this. Because a lot of that complexity can be packaged up in pre-built images. I tried several times using using the official docs and various other alternative projects to get a working mastodon instance in docker. But I kept running into problems that were hard to understand and harder to resolve. I have a lot to learn about all the various pieces of mastodon and how they fit together. But I understand docker pretty well. So after some experimenting, I was able to get an instance running on my own. The rest of this post will be dedicated to explaining what I did and what I learned along the way. One final note. I know many folks work hard to write docs and provide an out of the box dev experience that works. This isn’t meant to dismiss that hard work. It just didn’t work for me. I’m certainly going to share this experience with the mastodon team. Hopefully these lessons can make the experience better for others in the future. The approach Here’s the outline of what we’re doing. We’re going to use a modified version of the docker-compose.yml that comes in the official mastodon repo. It doesn’t work out of the box. So I had to make some heavy tweaks. As of this writing, the mastodon docs seem to want people to use an alternate setup based on Dev Containers. I found that very confusing, and it didn’t work for me at all. Once we have all of the docker images we need, all of the headaches are in configuring them to work together. Most of mastodon is a ruby on rails app with a database. But there is also a node app to handle streaming updates, redis for caching and background jobs, and we need to handle file storage. We will do the minimum configuration to get all of that set up and able to talk to each other. There is also support for sending emails and optional search capabilities. These are not required just to get something working, so we’ll ignore them for now. It’s also worth noting that if we want to develop code in mastodon, we need to put our rails app in development mode. That introduces another layer of headaches and errors that I haven’t figured out yet. So that will be a later milestone. For now, all of this will be in “production” mode by default. That’s how the docker image comes packaged. Keep it simple. There are still many assumptions here. I am running on Mac OS with Apple Silicon (M3). If you’re trying this out, you may run into different issues depending your environment. Pre-requisites We need docker. And a relatively new version. The first thing I did was ditch the version: 3 specifier in the docker-compose.yml. Using versions in these files is deprecated, and we can use some newer features of docker compose. I have v4.30.0 of Docker Desktop for Mac. We also need caddy. Mastodon instances require a domain in most cases. This is mostly about identity and security. It would be bad if an actor on mastodon could change their identity very easily just by pretending to be a different domain or account. There are ways around this, but I couldn’t get any of them to work for me. That complicates our setup. Because we can’t just use localhost in the browser. We need a domain, which means we also need HTTPS support. Modern browsers require it by default unless you jump through a bunch of hoops. Caddy gives us all of that out of the box really easily. It will be the only thing running outside of docker. There’s only one caveat with caddy. The way that it is able to do ssl termination so easily is that it creates its own certificates on the fly. The way it does this is by installing it’s own root cert on your machine. You’ll have to give it permission by putting in your laptop password the first time you run caddy. If that makes you nervous, feel free to skip this and use whatever solution you’re comfortable with for SSL termination. But as far as I know, you need this part. Choose a domain for your local instance. For me it was polotek-social.local. Something that mkes it obvious that this is not a real online instance. Add an entry to your /etc/hosts and point this to localhost. Or whatever people have to do on Windows these days. Let’s run a mastodon I put all of my changes in my fork of the official mastodon repo. You can clone this branch and follow along. All of the commands assume you are in the root directory of the cloned repo. https://github.com/polotek/mastodon/tree/polotek-docker-build > git clone [email protected]:polotek/mastodon.git > cd mastodon > git co -b polotek-docker-build I rewrote the docker section of the README.md to outline the new instructions. I’m going to walk through my explanation of the changes. Pull docker images This is the easiest part. All of the docker images are prepackaged. Even the rails app. You can use the docker compose command to pull them all. It’ll take a minute or 2. > docker compose pull Setup config files We’re using a couple of config files. The repo comes with .env.production.sample. This is a nice way to outline the minimum configuration that is required. You can copy that to .env.production and everything is already set up to look for that file. The only thing you have to do here is update the LOCAL_DOMAIN field. This should be the same as the domain you chose and put in your /etc/hosts. You can put all of your configuration in this file. But I found it more convenient to separate out the various secrets. These often need to be changed or regenerated. I wrote a script to make that repeatable. Any secrets go in .env.secrets. We’ll come back to how you get those values in a bit. I had to make some other fixes here. Because we’re using docker, we need to update how the rails app finds the other dependencies. The default values seem to assume that redis and postgres are reachable locally on the same machine. I had to change those values to match the docker setup. The REDIS_HOST is redis, and the DB_HOST is db. Because that’s what they are named in the docker-compose file. Diff of config file on github The rest of the changes are just disabling non-essential services like elastic search and s3 storage. Generate secrets We need just a handful of config fields that are randomly generated and considered sensitive. Rails makes it easy to generate secrets. But run the required commands through docker and getting them in the right place is left as an exercise for the reader. I added a small script that runs these commands and outputs the right fields. Rather than try to edit the .env.production file in the right places everytime secrets get regenerated, I think it’s much easier to have them in a separate file. Fortunately, docker-compose allows us to specify multiple files to fill out the environment variables. Diff of config file on github This was a nice quality of life change. And now regenerated secrets and making them available is just one command. > bin/gen_secrets > .env.secrets Any additional secrets can be added by just updating this script. For example, I use 1password to store lots of things, even for development. And I can pull things out using their cli named op. Here’s how I configured the email secrets with the credentials from my mailgun account. # Email echo SMTP_LOGIN=$(op read "op://Dev/Mailgun SMTP/username") echo SMTP_PASSWORD=$(op read "op://Dev/Mailgun SMTP/password") Run the database Running the database is easy. > docker compose up db -d You’ll need to have your database running while you run these next steps. The -d flag will run it in the background so you can get your terminal back. I often prefer to skip the -d and run multiple terminal windows. That way I can know at a glance if something is running or not. But do whatever feels good. The only note here is to explain another small change to docker-compose to get this running. We’re using a docker image that comes ready to run postgres. This is great because it removes a lot of the fuss of running a database. The image also provides some convenient ways to configure the name of the database and the primary user account. This becomes important because maston preconfigures these values for rails. We can see this in the default .env.production values. DB_USER=mastodon DB_NAME=mastodon_production The database name is not a big issue. Rails will create a database with that name if it doesn’t exist. But it will not create the user (maybe there’s a non-standard flag you can set?). We have to make sure postgres already recognizes a user with the name mastodon. That’s easy enough to do by passing these as environment variables to the database container only. Diff of config file on github Load the database schema One thing that’s always a pain when running rails in docker. Rails won’t start successfully until you load the schema into the database and seed it with the minimal data. This is easy to do if you can run the rake tasks locally. You can’t run the rake tasks until you have a properly configured rails. And it’s hard to figure out if your rails is configured properly because it won’t run without the database. I don’t know what this is supposed to look like to a seasoned rails expert. But for me it’s always a matter of getting the db:setup rake task to run successfully at least once. After that, everything else starts making sense. However, how do you get this to work in our docker setup? We can’t just do docker compose up, because the rails container will fail. We can’t use docker compose exec because that expects to attach to an existing instance. So the best thing to do is run a one-off container that only runs the rake task. The way to achieve that with docker compose is docker compose run --rm. The rm flags just makes sure the container gets trashed afterwards. Because we’re running our own command instead of the default one, we don’t want it hanging around and potentially muddying the waters. Once we know the magic incantation, we can setup the database. > docker compose run --rm web bundle exec rails db:setup Note: Usually you don’t put quotes around the whole command. For some reason, this can cause problems in certain cases. You can put quotes around any individual arguments if you need to. Run rails and sidekiq If you’ve gotten through all of the steps above, you’re ready to run the whole shebang. > docker compose up This will start all of the other necessary containers, including rails and sidekiq. Everything should be able to recognize and connect to postgres and redis. We’re in the home stretch. But if you try to reach rails directly in your browser by going to https://localhost:3000, you’ll get this cryptic error. ERROR -- : [ActionDispatch::HostAuthorization::DefaultResponseApp] Blocked hosts: localhost:3000 It took me a while to track this down. It’s a nice security feature built into rails. When running in production, you need to configure a whitelist of domains that rails will run under. If it receives request headers that don’t match those domains, it produces this error. This prevents certain attacks like dns rebinding. (Which I also learned about at the same time) If you set RAILS_ENV=development, then localhost is added to the whitelist by default. That’s convenient, and what we would expect from dev mode. But remember we’re not running in development mode quite yet. So this is a problem for us. The nice thing is that mastodon has added a domain to the whitelist already. Whatever value you put in the LOCAL_DOMAIN field is recognized by rails. (In fact, if you just set this to localhost you might be good to go. Shoutout to Ben.) However, when you use an actual domain, then most modern web browsers force you to use HTTPS. This is another generally nice security feature that is getting in our way right now. So we need a way to use our LOCAL_DOMAIN, terminate SSL, and then proxy the request to the rails server running inside docker. That brings us to the last piece of the puzzle. Running caddy outside of docker. Run a reverse proxy The configuration for caddy is very basic. We put in our domain, we put in two reverse proxy entries. One for rails and one for the streaming server provided by node.js. Assuming you don’t need anything fancy, caddy provides SSL termination out of the box with no additional configuration. # Caddyfile polotek-social.local reverse_proxy :3000 reverse_proxy /api/v1/streaming/* :4000 We put this in a file named Caddyfile in the root of our mastodon project, then in a new terminal window, start caddy. > caddy run Success? If everything has gone as planned, you should be able to put your local mastodon domain in your browser and see the frontpage of mastodon! Mastodon frontpage running under local domain! In the future, I’ll be looking at how to get actual accounts set up and how to see what we can see under the hood of mastodon. I’m sure I’ll work to make all of this more developement friendly to work with. But I learned a lot about mastodon just by getting this to run. I hope some of these changes can be contributed back to the main project in the future. Or at least serve as lessons that can be incorporated. I’d like to see it be easier for more people to get mastodon set up and start poking around.

2nd Jun 2024 • 14 votes
How to Build Fly Locally With Docker for Mac

In my recent side projet, I’ve been deploying to fly.io and really enjoying it. It’s fairly easy to get setup. And it supports my preferred workflow of deploying my changes early and often. I have run into a few snags though. Fly.io builds your project into a docker image and deploys containers for you. That process is mostly seamless when it works. But sometimes it fails, and you need to debug. By default, fly builds your docker images in the cloud. This is convient and preferred most of the time. But when I wanted to test some changes to my build, I wanted to try building locally using Docker Desktop. This should be easy. The fly cli is quite nice. And there is a flag to build locally. fly deploy --build-only --local-only This failed saying it couldn’t find Docker. > fly deploy --build-only --local-only ==> Verifying app config Validating /Users/polotek/src/harembase/fly.toml Platform: machines ✓ Configuration is valid --> Verified app config ==> Building image Error: failed to fetch an image or build from source: docker is unavailable to build the deployment image I spent quite a bit of time googling for the problem here. You can also run fly doctor --verbose to get some info. (If you run this in your fly app folder, it will show more info not relevant to this topic.) > fly doctor --verbose Testing authentication token... PASSED Testing flyctl agent... PASSED Testing local Docker instance... Nope (We got: failed pinging docker instance: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?) This is fine, we'll use a remote builder. Pinging WireGuard gateway (give us a sec)... PASSED No app provided; skipping app specific checks I found various forum posts discussing this problem. The folks at fly have spent a lot of time investigating some deep technical issues. I appreciate that work, but ultimately none of it seems to reflect my problem. And the issue felt simpler to me. Fly couldn’t find docker. Why not? Where is it looking? Eventually I found the answer on stackoverflow. It turns out that things have settled pretty recently to a basic config setting. By default, Docker Desktop installs the socket for the daemon in a non-global space. Usually in your personal user folder, e.g. ~/.docker/run/docker.sock. But other tools expect the docker daemon socket to be available in a standard location, e.g. /var/run/docker.sock As of this writing, Docker Deskstop has added a recommended way to enable the standard location. In the Docker Desktop dashboard, got to Settings > Advanced and enable “Allow the default Docker socket to be used”. Docker for Mac settings screen This will require your system password and restart. Then you should be able to see the docker socket in the standard place. And fly will be able to see it! Hopefully the next person who’s banging their head against this will have an easier time.

2nd Oct 2023 • 18 votes
How to Actually Integrate Angular and Nestjs

I don’t know who needs to hear this. But your frontend and backend systems don’t need to be completely separate. I started anew side project recently. You know, one of things that allows me to tinker with new technology but will probably never be finished. I’m using Angular for the frontend and Nestjs for the backend. All good. But then I go to do something that I thought was very normal and common and run into a wall. I want to integrate the two frameworks. I want to serve my initial html with nestjs and add script tags so that Angular takes over the frontend. This will allow me to do dynamic things on the backend and frontend however I want. But also deploy the system all as one cohesive product. Apparently this is no longer How Things Are Done. I literally could not find documentation on how to do this. When you read the docs and blog posts, everybody expects you to just have two systems that run entirely independently. Here’s the server for your backend and here’s the entirely different server for your frontend. Hashtag winning! When I google for “integrate angular and nestjs”, nobody knows what I’m talking about. On the surface, this seems like is a great technical blog post from LogRocket. It says “I will teach you how. First, set up two separate servers…” I think I know why the community has ended up in this place. But that’s a rant for another blog post. Let me try to explain what I’m talking about. Angular is designed as an a frontend framework (let’s set aside SSR for now). The primary output of an Angular build is javascript and css files that are meant to run in the browser. When you run ng build, you’ll get a set of files put into your output folder. Usually the folder is dist/<your_project_name>. Let’s look at what’s in there. polotek $> ls -la dist/my-angular-project -rw-r--r-- 1 polotek staff 12K Sep 13 14:15 3rdpartylicenses.txt -rw-r--r-- 1 polotek staff 948B Sep 13 14:15 favicon.ico -rw-r--r-- 1 polotek staff 573B Sep 13 14:15 index.html -rw-r--r-- 1 polotek staff 181K Sep 13 14:15 main.c01cba7b28b56cb8.js -rw-r--r-- 1 polotek staff 33K Sep 13 14:15 polyfills.2f491a303e062d57.js -rw-r--r-- 1 polotek staff 902B Sep 13 14:15 runtime.0b9744f158e85515.js -rw-r--r-- 1 polotek staff 0B Sep 13 14:15 styles.ef46db3751d8e999.css Some javascript and css files. Just as expected. A favicon. Sure, why not. Something about 3rd party licenses. I have no idea what that is, so let’s ignore it. But there’s also an index.html file. This is where the magic is. This file sets up your html so it can serve Angular files. It’s very simple and looks like this. <!doctype html> <html lang="en" data-critters-container> <head> <meta charset="utf-8"> <title>MyAngularProject</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="stylesheet" href="styles.ef46db3751d8e999.css"> </head> <body> <app-root></app-root> <script src="runtime.b3cecf81bdcc5839.js" type="module"></script> <script src="polyfills.41808b7aa9da5ebc.js" type="module"></script> <script src="main.cf1267740c62d53b.js" type="module"></script> </body> </html> It turns out the web browser still works the way it always did. You use <script> tags and <link> tags to load your javascript and css into the page. But we want to let the backend do this rather than using this static html file. I’m using NestJS for the backend. It’s modeled after Angular, so a lot of the structures are very similar. Just without all of the browser-specific stuff. Nest is not so important here though. This problem is the same with whatever backend you’re using. The important thing is how static files are served. If you copy the above html into a backend template, it probably won’t work. This is what you get in the browser when you try this with NestJS. Angular fails to load. This is part of my gripe. By default, these are two separate systems right now. So NestJS doesn’t know that these files exist. And they’re in two separate folders. So it’s unclear what the best way is to integrate them. In the future, I might talk about more sustainable ways to do this for a real project. But for now, I’m going to do the simple thing just to illustrate how this is supposed to work. In NestJS, or whatever backend you’re using, you should be able to configure where your static files go. In Nest, it looks something like this. async function bootstrap() { const app = await NestFactory.create<NestExpressApplication>(AppModule); app.useStaticAssets(path.resolve("./public")); await app.listen(3000); } bootstrap(); So there should be a folder called public in your backend project, and that’s where it expect to find javascript and css files. So here’s the magic. Copy the Angular files into that folder. Let’s say you have the two projects side by side. It might look like this. polotek $> cp my-angular-project/dist/my-angular-project-ui/* my-nest-project/public/ This will also copy the original index.html file and the other junk. We don’t care about that for now. This is just for illustration. So now we’ve made NestJS aware of our Angular files. Reload your NestJS page and you should see this. Assets loading properly. Angular Welcome screen loading. We did it! This is how to integrate a cohesive system with frontend and backend. The frontend ecosystem has wandered away from this path. But this is how the web is supposed to work in my opinion. And more importantly, it is actually how a lot of real products companies want to manage their system. I want to acknowledge that there are still a lot of unanswered questions here. You can’t deploy this to production. The purpose of this blog post is to help the next person like me who was trying to google how to actually integrate Angular and a backend like NestJS because I assumed there was a common and documented path to doing so. If this was useful for you, and you’re interested in having me write about the rest of what we’re missing in modern frontend, let me know.

15th Sep 2023 • 13 votes

More in programming

How an accessibility designer adds keyboard shortcuts to a web app

This is another window into the sometimes unglamorous-yet-vital tasks that being an accessibility designer demands. Keyboard shortcuts occupy a strange area for web design. Most websites don’t have them, and that’s totally fine. However, it makes more sense for web apps to utilize them. Web apps utilize keyboard shortcuts for speedier navigation and operation, for people who want or need to spend extended periods of time using the service. It’s the same as non-web apps. That said, there’s a lot of nuance when it comes to adding a keyboard shortcut. It feels a lot like something akin to the Swiss Cheese model, delicately threading a needle through multiple, complicated pieces of fabric. The support table placed later on in this post is the result of research I conducted at work as a result of acknowledging said nuance. The task itself was to figure out how to get better support for Home, End, Page Up, and Page Down behavior for a new feature. A considered experience The “designer” part of “accessibility designer” is ensuring that the keyboard shortcuts you help create feel natural and intuitive to operate for all involved. More importantly, the “accessibility” part is ensuring the widest possible range of people—with unknown devices, circumstances, and preferences—aren’t negatively affected by your choices. Consider people who: Use a keyboard intermittently, Who use it as much as possible by choice, and Use one all of the time by virtue of circumstance. Then know that there are multiple, overlapping layers of keyboard shortcuts present on every device, including ones for: The operating system, Apps installed on the operating system, The browser, Extensions installed on the browser, Assistive technology, and Plugins installed on the assistive technology. Also note that the keyboard shortcuts themselves can be adjusted by someone on all of these levels to suit their own needs, via official and unofficially-supported means. You need to navigate this tangled mess to find a combination of keys that: Are not claimed at all, or more realistically Won’t drastically affect someone’s experience in a negative way if overridden in a limited specific and context. You’ll also need to navigate the tangled mess that is politics. The organizations that produce web apps are made out of people, and people have opinions. This includes notions around: How things should operate, even at the expense of excluding some unknown number of people. Instituting features that have no direct connection to profitability. Remembering that doing accessibility work means advocating for concerns in an industry that has systematically deprioritized it as a practice can help out some in terms of approach to all of this. The world does not revolve around your web app You also need to internalize that your web app is not the center of the universe. It is part of a larger suite of interactions someone is doing on their device to get what they need. The best possible outcome for introducing a keyboard shortcut that overrides someone’s existing expectations is mild annoyance. A range of negative outcomes follows, probably the most notable being reputational damage. The worst—and unfortunately oftentimes quiet—outcome is that you break assistive technology functionality for someone. This is why WCAG Success Criterion 2.1.4: Character Key Shortcuts exists. It’s also why mature web apps like GitHub have this type of preference toggle: To the extent of my knowledge, Firefox is the only browser that lets you natively override a keyboard shortcut override, via some buried, legacy menus. This lends further ammo to my belief that browsers are a failure of imagination—the end result of misaligned business priorities. Some may also point out here that screen readers have passthrough key capability. It is a fallacy to assume everyone has perfect working knowledge of the full capabilities of their software and hardware. For people that do know about passthrough key support, it is annoying, tedious, and sometimes even painful to have to use them for frequently-used commands. To say it more plainly: Advocating for the creation of a keyboard preference support area on your web app will be a painful undertaking. This is due to a contemporary business culture that largely views user experience to be an inconvenient friction that gets in the way of metrics-obsessed rent-seeking. The map is not the territory In reviewing the support table, the lack of OS, browser, or screen reader keyboard shortcuts for an Alt/Command + End keypress might make it seem like a good candidate to use for my task. However, Alt/Command + Home opens the browser start page, moves current page back one history event for every major browser on Windows. People who use a modifier key with End will likely expect the same modifier key applied to Home to operate in a similar fashion. For example, if some combination of modifier keys plus Page Down scrolls down 75% of the height of the page, one would assume that the same combination plus Page Up scrolls upward 75% instead. As my research shows, this is true until it isn’t. Decisions and ramifications After figuring out what keypresses do what comes the responsibility of figuring out if this behavior is something you want to intentionally suppress. To me, opening the browser start page and moving the current page back one history event is a weird, awkward, and surprising behavior. However, given the scope and scale of the audience GitHub serves, it is statistically almost certain at least one person loves the feature and uses it every day. I need to weigh that consideration against the context of the task I am helping out with at work. The new feature involves data entry, so a navigation event introduces the chance of accidental data loss—not ideal! I say responsibility because there’s also an incredible amount of weight when you factor in how assistive technology operates. Suppressing the home page-summoning behavior might be annoying, but there are workarounds. Suppressing keys that people who use screen readers rely on to navigate and take action on things locks them out. For example, don’t use h to open a help dialog. Both NVDA and JAWS use the h key to navigate by heading, and this is the far most popular way that people use screen readers to navigate. Another way to contextualize it: Overwriting h keypresses would be the equivalent of preventing you from scrolling down via mouse, trackpad, or screen swipe. More learnings The table is a beast, but it reveals all sorts of interesting things. A few that stand out to me are: Screen readers don’t have parity in function across different versions, unless they do. Browsers have consistent behavior across different operating systems, until they don’t. All browsers can have the same behavior, save for one—I’m pointing my finger at you, Safari. Two browsers may share the same underlying rendering engine, yet have completely different behaviors. Another map-is-not-the-territory consideration is large areas of seeming cross-operating system support may not work as expected in the actual. Command is frequently used on macOS as a modifier key, so a lack of existing behavior for it and its Windows equivalent may seem tempting. However, Alt, otherwise known the Windows key, opens the Start Menu. Although this would have cross-operating system parity, it would not be a great experience for people who use Windows. Availability bias As people who predominately use macOS or Linux to build web experiences, we oftentimes tend to forget other operating systems exist. This can have even more subtle consequences, in that Mac laptops don’t have Home, End, Page Up, and Page Down keys. This fact can conspire to make people forget that these keys exist and are used, to say nothing of other biases such as non-English keyboard layouts. Source: MediaRange Keyboard USB Qwertz German Black, W128289008 (Black). And speaking of things we assume based on the devices we use, another learning well-worth pointing out is the divergence between VoiceOver and JAWS or NVDA. VoiceOver is exclusive to macOS, while JAWS and NVDA are exclusive to Windows. This is important to note in that JAWS and NVDA are far, far more popular than macOS VoiceOver. Broadly-speaking, VoiceOver has a different interaction paradigm when compared to other popular screen readers. Without proper education about the space, this may lead to false understandings of how things operate in the actual for a lot of people. The support table Skip support table. Results for Home. Results for End. Results for Page Up. Results for Page Down. Keyboard combo Operating system Browser Screen reader Existing behavior? Scope Function Home Shift + Home Windows Chrome None No N/A JAWS No N/A NVDA No N/A Edge None No N/A JAWS No N/A NVDA No N/A Firefox None Yes Browser Selects all text on line of text before last known cursor position JAWS No N/A NVDA No N/A macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Control + Home Windows Chrome None Yes Browser Scrolls to top of page JAWS Yes Browser Scrolls to top of page NVDA Yes Browser Scrolls to top of page Edge None Yes Browser Scrolls to top of page JAWS Yes Browser Scrolls to top of page NVDA Yes Browser Scrolls to top of page Firefox None Yes Browser JAWS Yes Screen Reader Places focus on first focusable element on the page NVDA Yes Screen Reader Places focus on first focusable element on the page macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None Yes Browser Scrolls to top of page VoiceOver Yes Browser Scrolls to top of page Safari None No N/A VoiceOver No N/A Option + Home Windows Chrome None Yes Operating System Minimizes all open windows and apps that don’t currently have focus JAWS Yes Operating System Minimizes all open windows and apps that don’t currently have focus NVDA Yes Operating System Minimizes all open windows and apps that don’t currently have focus Edge None Yes Operating System Minimizes all open windows and apps that don’t currently have focus JAWS Yes Operating System Minimizes all open windows and apps that don’t currently have focus NVDA Yes Operating System Minimizes all open windows and apps that don’t currently have focus Firefox None Yes Operating System Minimizes all open windows and apps that don’t currently have focus JAWS Yes Operating System Minimizes all open windows and apps that don’t currently have focus NVDA Yes Operating System Minimizes all open windows and apps that don’t currently have focus macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver Yes Screen Reader Focuses an arbitrary focusable element before the currently focused item in the DOM, relatively close proximity to the currently focused item Firefox None Yes Browser Opens the browser start page, moves current page back one history event VoiceOver Yes Screen Reader Moves focus to the first focusable element in the DOM, then opens the browser start page and moves current page back one history event Safari None No N/A VoiceOver No N/A Alt / Command + Home Windows Chrome None Yes Browser Opens the browser start page, moves current page back one history event JAWS Yes Browser Opens the browser start page, moves current page back one history event NVDA Yes Browser Opens the browser start page, moves current page back one history event Edge None Yes Browser Opens the browser start page, moves current page back one history event JAWS Yes Browser Opens the browser start page, moves current page back one history event NVDA Yes Browser Opens the browser start page, moves current page back one history event Firefox None Yes Browser Opens the browser start page, moves current page back one history event JAWS Yes Browser Opens the browser start page, moves current page back one history event NVDA Yes Browser Opens the browser start page, moves current page back one history event macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None Yes Browser Opens the browser start page, moves current page back one history event VoiceOver Yes Browser Opens the browser start page, moves current page back one history event End Shift + End Windows Chrome None No N/A JAWS Yes Screen Reader Re-reads content the virtual cursor is placed on NVDA Yes Screen Reader Selects next line Edge None No N/A JAWS Yes Screen Reader Re-reads content the virtual cursor is placed on NVDA Yes Screen Reader Selects next line Firefox None No N/A JAWS Yes Screen Reader Re-reads content the virtual cursor is placed on NVDA Yes Screen Reader Selects next line macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Control + End Windows Chrome None Yes Browser Scrolls to bottom of page JAWS Yes Screen Reader Places virtual cursor on the last node in the DOM NVDA Yes Screen Reader Places virtual cursor on last landmark in the DOM Edge None No N/A JAWS Yes Screen Reader Places virtual cursor on the last node in the DOM NVDA Yes Screen Reader Places virtual cursor on last landmark Firefox None Yes Browser Scrolls to end of page JAWS Yes Screen Reader Places virtual cursor on the last node in the DOM NVDA Yes Screen Reader Re-reads currently focused DOM node macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver Yes Screen Reader Moves focus to the end of the next content section in the DOM Firefox None No N/A VoiceOver Yes Screen Reader Moves focus to the end of the next content section in the DOM Safari None No N/A VoiceOver No N/A Option + End Windows Chrome None No N/A JAWS No N/A NVDA No N/A Edge None No N/A JAWS No N/A NVDA No N/A Firefox None No N/A JAWS No N/A NVDA No N/A macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver Yes Screen Reader Moves focus to the end of the next content section in the DOM Firefox None No N/A VoiceOver Yes Screen Reader Moves focus to the end of the next content section in the DOM Safari None No N/A VoiceOver No N/A Alt / Command + End Windows Chrome None No N/A JAWS No N/A NVDA No N/A Edge None No N/A JAWS No N/A NVDA No N/A Firefox None No N/A JAWS No N/A NVDA No N/A macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Page Up Shift + Page Up Windows Chrome None No N/A JAWS Yes Screen Reader Selects all text in a range above and below the current position of the virtual cursor NVDA Yes Screen Reader Reads the DOM past the current position of the virutal cursor Edge None No N/A JAWS Yes Screen Reader Selects a section of text below the current position of the virtual cursor NVDA Yes Screen Reader Reads the DOM past the current position of the virutal cursor Firefox None Yes Browser Scrolls down one page section and selects all text in range of the scroll distance JAWS Yes Screen Reader Reads a small portion of the DOM past the current position of the virtual cursor NVDA Yes Screen Reader Reads the DOM past the current position of the virutal cursor macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Control + Page Up Windows Chrome None Yes Browser Opens previous browser tab JAWS Yes Browser Opens previous browser tab NVDA Yes Browser Opens previous browser tab Edge None Yes Browser Opens previous browser tab JAWS Yes Browser Opens previous browser tab NVDA Yes Browser Opens previous browser tab Firefox None Yes Browser Opens previous browser tab JAWS Yes Browser Opens previous browser tab NVDA Yes Browser Opens previous browser tab macOS Chrome None Yes Browser Opens previous browser tab VoiceOver Yes Browser Opens previous browser tab Edge None Yes Browser Opens previous browser tab VoiceOver Yes Browser Opens previous browser tab Firefox None Yes Browser Opens previous browser tab VoiceOver Yes Browser Opens previous browser tab Safari None No N/A VoiceOver No N/A Option + Page Up Windows Chrome None No N/A JAWS No N/A NVDA No N/A Edge None No N/A JAWS No N/A NVDA No N/A Firefox None No N/A JAWS No N/A NVDA No N/A macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Alt / Command + Page Up Windows Chrome None No N/A JAWS No N/A NVDA No N/A Edge None No N/A JAWS No N/A NVDA No N/A Firefox None No N/A JAWS No N/A NVDA No N/A macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Page Down Shift + Page Down Windows Chrome None No N/A JAWS Yes Screen Reader Selects all text in range above and below the current position of the virtual cursor NVDA Yes Screen Reader Reads the DOM past the current position of the virutal cursor Edge None No N/A JAWS Yes Screen Reader Selects a section of text below the current position of the virtual cursor NVDA Yes Screen Reader Reads the DOM past the current position of the virtual cursor Firefox None Yes Browser Scrolls down one page section and selects all text in range of the scroll distance JAWS Yes Screen Reader Reads a small portion of the DOM past the current position of the virtual cursor NVDA Yes Screen Reader Reads the DOM past the current position of the virutal cursor macOS Chrome None N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Control + Page Down Windows Chrome None Yes Browser Opens next browser tab JAWS Yes Browser Opens next browser tab NVDA Yes Browser Opens next browser tab Edge None Yes Browser Opens next browser tab JAWS Yes Browser Opens next browser tab NVDA Yes Browser Opens next browser tab Firefox None Yes Browser Opens next browser tab JAWS Yes Browser Opens next browser tab NVDA Yes Browser Opens next browser tab macOS Chrome None Yes Browser Opens next browser tab VoiceOver Yes Browser Opens next browser tab Edge None Yes Browser Opens next browser tab VoiceOver Yes Browser Opens next browser tab Firefox None Yes Browser Opens next browser tab VoiceOver Yes Browser Opens next browser tab Safari None No N/A VoiceOver No N/A Option + Page Down Windows Chrome None No N/A JAWS No N/A NVDA No N/A Edge None No N/A JAWS No N/A NVDA No N/A Firefox None No N/A JAWS No N/A NVDA No N/A macOS Chrome None N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Alt / Command + Page Down Windows Chrome None No N/A JAWS No N/A NVDA No N/A Edge None No N/A JAWS No N/A NVDA No N/A Firefox None No N/A JAWS No N/A NVDA No N/A macOS Chrome None No N/A VoiceOver No N/A Edge None No N/A VoiceOver No N/A Firefox None No N/A VoiceOver No N/A Safari None No N/A VoiceOver No N/A Testing notes Evaluation was conducted the week of January 19th, 2026. Following is what I used to in my research: Keyboards 2021 MacBook Pro. Logitech Slim Solar+ K980. Operating Systems and browsers Windows, version X. Chrome, version 144.0.7559.97. Edge, version 144.0.3719.92. Firefox, version 147.0.1. macOS, version 15.7.3 (fuck you, Liquid Glass). Chrome, version 144.0.7559.97. Edge, version 144.0.3719.92. Firefox, version 147.0.1. Safari, version 26.2 (20623.1.14.18.4). Assistive technology JAWS, version 2026.2512.50. NVDA, version 2025.3.2. VoiceOver, using macOS version 15.7.3. Also note I am not presenting the suggestions I recommended at my job because of how contextual this work is. These observations from a past effort. What wasn’t evaluated: I didn’t evaluate less-popular Chromium browsers. I didn’t evaluate popular browser extensions like Grammarly. I didn’t evaluate support on iOS or Android, but they do support keyboard input and people do use them. I also didn’t evaluate Linux or Orca. There are just too many possible permutations. Seriously. I am only one man with a full-time job and a dog with attachment issues, folks. Using an LLM: Using plaintext copies of screen reader manuals to use as LLM context still created hallucinations. It also doesn’t cover the app or operating system layers. The stakes are too high considering the human-facing impact, and it was likely net-less effort to manually test to get certainty with results. There might be a metaphor worth thinking through in that previous bullet point.

yesterday • 3 votes
A design audit of an AI-built GitHub clone

slug: design-audit-ai-built-github-clone

2 days ago • 1 votes
the incredible lightness of not being

Good evening! Long time no type. I am feeling a lightness, a floating, and wanted to share it with you. In a , I confessed that once, adrift, unmoored from God, I threw away my bible and reached instead for a slim pamphlet, the United Nations Declaration of Human Rights. One needs a anchor betimes. It was a funny instinct but not capital-W Wrong. I joined the university chapter of Amnesty International; I wasn’t much on writing to political prisoners, but much more about opposing Wrong, that which was Not Right. Any port in a storm, I suppose. We would table in the university quad, hold posters at prominent intersections in town, and vigil all night outside the state prison on execution nights. I admired the chapter president, and somehow, eventually, in a way I still don’t understand, I became president.previous missive I didn’t do a great job. I’m not great at motivating people; that requires a combination of organization and follow-through, and though I’m good at steady participation (I’ll show up), I will do anything rather than send an e-mail on time. I think I became president by virtue of participating and then proceeded to do it poorly, leading the organization to a period of gentle decline. The nice thing about trying things at university is that there is a natural term limit; graduation bounds the damage any one person can do. — I don’t know what pulls me to this kind of rights-based organization. Though human rights are a useful rhetorical device, I no longer have the grasping faith that they are axiomatic, beyond reason themselves. But they seem to correlate with what I feel in my bones, that a christian who works for the “least of us” is more my comrade than the atheist that can’t be arsed. — Time passed. I changed countries, once, twice; new ports, new storms. One stays plugged in to home, though, and you can’t really unplug from the US. When Trump was elected in 2016 I knew it was going to get bad for immigrants, and I knew also that I couldn’t do anything about it. Anything there, anyway. But it was Not Right. I decided to reach out to a couple local associations that worked for immigrant rights; after all, I am an immigrant here in France, I have been through the system and I knew how to work it pretty well. I ended up joining the local chapter, riding shotgun in the weekly office-hours sessions that sometimes lasted until eleven at night.Ligue des droits de l’Homme I admired the chapter president and somehow, eventually, in a way I don’t understand, I became president. Dint of participation, I expect. Groups like this are funny: there is no graduation, just incapacity, death, and attrition. Around 2018 or so, some lifers got in a spat, and almost tore the place apart. The chapter I inherited in late 2020 was a husk of what it was. I kept the lights on, and I’m still there at the weekly office hours, three weeks out of four. But happily, like university, statutory term limits mitigate the effect that any one person can have, and I am delighted, elated that as of tonight, I am free again, free from being responsible for sending emails to tell people what they already know, that the monthly meeting is the last Thursday in the month, that we need to figure out who will staff which office hours, free to be nagged by someone else instead of being the one to do the nagging. And so that’s the end of tonight’s short note: I’m free, wheee!!!

3 days ago • 3 votes
Winner, Name that Ware October 2026

The ware for October 2026 is the control board from a SodaStream drinking water carbonation machine. It was really interesting to see people puzzle over the nature of the board – I would say I’d have a similarly difficult time guessing this. On the flip side, I also never would have suspected that the operating […]

3 days ago • 2 votes
Sumatra File Manager: Multiple selection

Sumatra File Manager is a file manager for Windows. Multiple selection Several files can be selected with Ctrl and Shift click. See this day in the changelog, the full changelog, or download Sumatra File Manager.

4 days ago • 2 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in