Blog: 2024-01-24: Difference between revisions
(Created page with "Got this clip of a huge combat on twitch stream https://clips.twitch.tv/ObedientBlushingCrabYee-LXkN_6PeFZAFcKb6") |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Got this clip of a huge combat on twitch stream https://clips.twitch.tv/ObedientBlushingCrabYee-LXkN_6PeFZAFcKb6 |
Got this clip of a huge combat on twitch stream https://clips.twitch.tv/ObedientBlushingCrabYee-LXkN_6PeFZAFcKb6 |
||
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 https://clips-media-assets2.twitch.tv/raw_media/ghZBmS15Df-j3hWQBXCm-g/42248907161-offset-23416.mp4 |
|||
Made me think of https://en.wikipedia.org/wiki/Injective_function#/media/File:Injection.svg |
|||
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 https://rust-lang.github.io/mdBook/guide/creating.html |
|||
--- |
|||
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 https://github.com/zed-industries/zed-fonts and it looks pretty good https://twitter.com/devongovett/status/1672307153699471360 |
|||
--- |
|||
Coming across some weird behavior with <code>mv</code> |
|||
$ 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 <code>man 2 renameat2</code> |
|||
ENOTDIR |
|||
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. |
Latest revision as of 23:44, 24 January 2024
Got this clip of a huge combat on twitch stream https://clips.twitch.tv/ObedientBlushingCrabYee-LXkN_6PeFZAFcKb6
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 https://clips-media-assets2.twitch.tv/raw_media/ghZBmS15Df-j3hWQBXCm-g/42248907161-offset-23416.mp4
Made me think of https://en.wikipedia.org/wiki/Injective_function#/media/File:Injection.svg
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 https://rust-lang.github.io/mdBook/guide/creating.html
---
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 https://github.com/zed-industries/zed-fonts and it looks pretty good https://twitter.com/devongovett/status/1672307153699471360
---
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
ENOTDIR 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.