From: Ruben Beltran del Rio Date: Tue, 27 Feb 2024 09:10:35 +0000 (+0100) Subject: UIpdate learning log X-Git-Url: https://git.r.bdr.sh/rbdr/txt/commitdiff_plain UIpdate learning log --- diff --git a/learning.md b/learning.md index 4d8a81c..8304334 100644 --- a/learning.md +++ b/learning.md @@ -1,3 +1,11 @@ +2024-02-26: There's no regex in the rust stdlib, but you can get pretty far in parsing a templating language by searching for simple tokens. +2024-02-25: Rust's .expect() is a great way to add user-friendly error messages. I think when building a library I would try to focus more on formal error specifications, but for an application I think it works great. +2024-02-24: Eternal terminal offers an alternative to MOSH for secure shell. I'm not too sure about security implications yet, but after trying SSH in the train, I do want to try a solution +2024-02-22: You can install asdf globall and set ASDF_DATA_DIR. This is pretty effective for multi-user environments where I still want each process to run as an unprivileged user, but have versionable tooling. +2024-02-21: S3 Handles multipart checksums by creating a checksum of each chunk, checksumming that, and then appending the count. This can help measure integrity for large uploads. +2024-02-19: Access to AWS glue requires access to a generated bucket. To give someone access to glue, you'd need glue:*, iam:ListRoles, iam:GetRole, iam:PassRole and s3:PutObject, s3:PutObjectAcl permissions. +2024-02-18: Emacs has very comprehensive built-in documentation that you can summon by using C-h k, followed by the key combination. +2024-02-17: Haproxy can load balance telnet connections, so you can potentially serve a different app per hostname or ensure only a single hostname accepts telnet. 2024-02-16: scroll-behavior: smooth; gives JS-free smooth scrolling when navigating anchors. 2024-02-11: You can't append some characters to iskeyword in vim, so you can't make boxes navigable like words. 2024-02-10: Long lived connections don't seem to fare well in a dialup PPP with the RS232 modem. For more usable internet on the SE/30 a PDA ethernet card is required.