From: Ruben Beltran del Rio Date: Wed, 13 Mar 2024 10:34:12 +0000 (+0100) Subject: Update files from notes X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/commitdiff_plain/ef8dfccf9ed5c2c71456f1c97e052dcbfe868f75?ds=inline;hp=4b678bee90d50050745332a42a375883bf2ec00d Update files from notes --- diff --git a/.plan b/.plan index 75d9211..82289d8 100644 --- a/.plan +++ b/.plan @@ -2,6 +2,12 @@ - Package blog and page for fedora, arch, and debian. + I started by checking how to build for multiple architectures. I'll start building only for linux arm64 and x64 because building for darwin is a hassle (plus we have homebrew already). + + For now I'll drop arch as a target, but I was able to set up rpm and deb packages. I also included a man page, which I had never written before. The syntax is pretty terrible. + + Based on this experience I want to package lyricli like this. Being written in swift, I'm not sure how much of a hassle it is. Might re-write in rust. + - Add gopher functionality (geomyidae) to page. [2024-03-10] diff --git a/learning.txt b/learning.txt index ea937d7..81754ab 100644 --- a/learning.txt +++ b/learning.txt @@ -1,3 +1,5 @@ +2024-03-13: Man pages are stored gzipped. I should probably update my packaging to make sure the manpages are gzipped first. +2024-03-11: You can iterate over several architectures in make by setting a variable to space separated values, then using the variable name as the target (eg. $(architectures):). Then you can access the value with $@ 2024-03-09: I misunderstood how expect() works in rust. In a Result it won't return Err, it'll panic. .map_err() and ok_or_else() are a closer way to offer the same result. 2024-03-06: The definition of the first week in the ISO standard is the one that contains january 4th. 2024-03-06: In lua os.time() if you pass month 13 or month -1, it correctly calculates the next or previous year, so you don't have to manually do that math.