Blog: 2024-01-24

From razwiki
Jump to navigation Jump to search

Got this clip of a huge combat on twitch stream

Hmm it looks different on that clip than it did in the browser, missed the action... here's the actual clip. Interesting to see offset encoded in url

Made me think of

Wiki extension: make links propagate so that if a proper noun is linked once, all further words that match it will be the same link


Thinking about doing this kind of splitting of content on my website: ability to post a blog, then include it in a guide. Maybe it's easy enough to copy and paste what I want, then link to specific blog posts from the guide and vice versa. But it could be cool to have a feature like:

- disambiguating between functions, commands, and keys in vim

and include it in a vim guide. Another way to look at this is the fact that all my guides currently load on a single massive page and have no sidebar for navigation etc. Something like


New editor is out, it's called zed and it's macos only... so no thanks... for now at least... but they have a custom font and it looks pretty good


Coming across some weird behavior with mv

$ mv .dotfiles/ someothername
mv: cannot move '.dotfiles/' to 'someothername': Not a directory

Ok turns out I had it symlinked.

$ ls -l .dotfiles
[...] .dotfiles -> /home/razzi/forks/dotfiles/

I was tipped off by reading the strace of mv which had this system call

renameat2(AT_FDCWD, ".dotbackup/", AT_FDCWD, "rename", RENAME_NOREPLACE) = -1 ENOTDIR (Not a directory)

which I looked up in man 2 renameat2

             A  component  used  as  a  directory in oldpath or newpath is not, in
             fact, a directory.  Or, oldpath is a directory,  and  newpath  exists
             but is not a directory.