I've been meaning to see how far I can go with my own devcontainer cli implementation, with blackjack and hoo
Version 1.0 should of course include `stop` and `down`, because how are we 4 years in without??
I've been meaning to see how far I can go with my own devcontainer cli implementation, with blackjack and hoo
Version 1.0 should of course include `stop` and `down`, because how are we 4 years in without??
βSummoned an unusually powerful claude instanceβ
in-band signaling is always a mistake and unix tooling is full of in-band signaling https://mas.to/@zekjur/116022397626943871
Person: say, i am alive. Computer: I am alive. Person: oh my god.
edit: over the past week I've been very entertained and amused watching amos gradually replacing every single core dependency with a homegrown bearcove alternative
Recently found out about @fasterthanli.me's project github.com/bearcove/dod... and it has many good ideas I will shamelessly incorporate into my site
Yep, I want my site to break only when I break it π«‘
...beforehand, but it's still wild to me that musl is able to just save and restore two variables while glibc ends up performing 4 extra system calls every time `perror` is called (dup, fcntl, fstat, close)
...and if so _duplicates stderr's file descriptor, creates a FILE* from the new file descriptor, uses that, then closes the file!!_
Now `perror` is unlikely to be on the hot path by any means, and this only happens if you haven't interacted with stderr at all...
although it must work as if the stream is byte-oriented.
Musl handles this in 4 lines of code: 2 to save the locale and orientation before printing the message, and 2 to restore them afterwards.
Glibc on the other hand checks if the orientation is unset...
So the standard I/O streams in C (stdin/stdout/stderr) are unoriented by default until first use (ie. calling fgetc vs fgetwc on stdin determines if it is a byte-oriented stream or wide-oriented stream).
However, POSIX forbids `perror` from changing the orientation of unoriented streams,
Thinking of ways to hint more strongly that the KOSALAB at kosalab.dev is clickable and leads to a lot more content without putting another link down somewhere else
I realized that my initial post was pretty vague, sorry! An example is the "It stems from pre-processors" heading at piccalil.li/blog/css-nes.... The heading is linkable and the markup includes an SVG link icon to the heading, but the link icon does not show up at all.
@piccalil.li Are article heading links broken on the site right now? I see markup indicating support in the HTML so the CSS might be borked
Collaborative task tracker and management calling it now
DuckDuckGo AI Assist that reads: Ectoplasm is a Spectral Card in Balatro that reduces your hand size by 1 each time it is used, but the reduction increases with each subsequent use during a run. For example, the first use reduces hand size by 1, the second by 2, and the third by 3, making it important to use carefully.
Thanks duckduckgo AI
snrub www.youtube.com/watch?v=HRIt... by dankmus and delorean www.youtube.com/watch?v=JNaN... by toconoma have a similar tune
~/Documents/code/projects/pspsps βΊ ps a -o pid,comm,pri,priority,opri,pri_foo,pri_bar,pri_baz PID COMMAND PRI PRI PRI FOO BAR BAZ 1022 fish 19 20 80 0 21 120 1095 fish 19 20 80 0 21 120 1110 niri-session 19 20 80 0 21 120 1122 systemctl 19 20 80 0 21 120 4204 fish 19 20 80 0 21 120 5946 fish 19 20 80 0 21 120 17244 fish 19 20 80 0 21 120 25935 fish 19 20 80 0 21 120 29913 fish 19 20 80 0 21 120 84350 nvim 19 20 80 0 21 120 84372 nvim 19 20 80 0 21 120 90456 fish 19 20 80 0 21 120 93851 fish 19 20 80 0 21 120 93873 man 19 20 80 0 21 120 93881 sh 19 20 80 0 21 120 93883 bat 19 20 80 0 21 120 93891 less 19 20 80 0 21 120 104296 fish 19 20 80 0 21 120 107004 ps 19 20 80 0 21 120
That's not including the _other_ "priorities" a Linux system can have, which isn't documented in the manpage of ps and can only be found in the source code, which are (and I kid you not) pri_foo, pri_bar, and pri_baz...
~/Documents/code/projects/pspsps βΊ ps a -o pid,comm,pri,priority,opri PID COMMAND PRI PRI PRI 1022 fish 19 20 80 1095 fish 19 20 80 1110 niri-session 19 20 80 1122 systemctl 19 20 80 4204 fish 19 20 80 5946 fish 19 20 80 17244 fish 19 20 80 25935 fish 19 20 80 29913 fish 19 20 80 84350 nvim 19 20 80 84372 nvim 19 20 80 90456 fish 19 20 80 93851 fish 19 20 80 93873 man 19 20 80 93881 sh 19 20 80 93883 bat 19 20 80 93891 less 19 20 80 104296 fish 19 20 80 106185 ps 19 20 80
Did you know that `ps` has 3 different priorities that have the same column name in the output?
NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: vulnerable Cpus_allowed: 00000001 Cpus_allowed_list: 0 Mems_allowed: 1 Mems_allowed_list: 0 voluntary_ctxt_switches: 150 nonvoluntary_ctxt_switches: 545
Don't you just love how `/proc/pid/status` has CamelCase, Capital_snake_case, Camel_Snake_Case, and snake_case fields
The security fix for CVE-2018-1124, CVE-2018-1126, CVE-2018-1125, CVE-2018-1123, and CVE-2018-1122 has included the change that if the string is longer than 15 bytes you will not find the command name as it does not fit.
ah C, you never fail to impress me
The equivalent to `ps j` with only unix syntax is:
ps -Nt - -u $(ps -eo user= | sort -u | grep -v "^$(whoami)$" | paste -sd, -) -o ppid,pid,pgid,sid,tty,tpgid,stat,uid,time,command
Which says "get every process that is NOT 'all processes that do not have a terminal and whose user isn't me'".
The `ps` command from procps-ng has so many options, all in different styles, all that may or may not clash with one another it's kinda funny.
For example, you can't get the same output as `ps j` (without using BSD syntax) without multiple commands.
today I realized I lost one of my blog posts
I forgot to migrate it when I redid my site, and thought I was losing it when I couldn't find it on my website...had to dig through the old codebase to find it
New post! This time it's about EOF and the many things it is and isn't: kosalab.dev/posts/eof-is...
w3schools has done it
they've ruined their only useful page, www.w3schools.com/cssref/css_s... by splitting the content into multiple different pages
Somewhat miffed I can't style `::before::selection` because `::selection` does not apply to other pseudo-elements
Unfortunately it did not play nice with Svelte 5, so I ended up making my own. Thanks for the suggestion though!
Mobile app idea: power-user alarm
I want alarm groups
I want to be able to say "set an alarm every 10 minutes between 7am and 8am"