[go: up one dir, main page]

Today I Learned

tags


2022/10/23

That ARIA stands for Accessible Rich Internet Applications! See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA


That in linux ls(1) uses the environment variable LS_COLORS to determine the colors in which the filenames are to be displayed. Also, that linux specifies a dir_colors(5) configuration file format for dircolors(1), which exports LS_COLORS

See https://man7.org/linux/man-pages/man5/dir_colors.5.html


That nix is complicated, which is exactly what my prior research told me.

On one hand, it is AWESOME to cd into a project and watch direnv automatically spawn a development shell with all the fixings. On the other, the nix ecosystem is bewildering. I read through a few articles:

Then there are the reasonable-yet-still-more confusing tools like

both of which expose tools to use nix (package manager) to provide development environments without requiring devs to write any nix (the language). Since I’m still struggling with the configuration language, I’m sympathetic to anyone wanting to avoid writing nix.

By dint of procrastinating, I now know that

I’m still putting off reading up on nix overlays at the time of writing.

I could see someone writing SDKs for nix-the-package-manager in non-nix languages that serialize and deserialize to JSON, just like is happening to infrastructure-as-code languages (pulumi, helm, terraform cloud development kit), etc.


that you can search for nix package names on https://search.nixos.org/packages


2023/01/28

That you need ato git add a flake.nix for the flake’s contents to start to work with nix develop

This is needed because Nix flakes respects gitignores. If you don’t add things to the git staging area, git doesn’t know about the files at all, and Nix flakes can’t know if it should ignore them. – https://xeiaso.net/blog/nix-flakes-go-programs


that “truecolor” support in shells is detected with the $COLORTERM env var