1. Re-inventing muscle memory with zoxide

    Going down the rabbit hole of updating my terminal, I came across zoxide. In a nutshell, it’s a modern replacement for cd. It seems both a gift from heaven and hell.

    From their README.md:

    zoxide

    1
    z foo # cd into highest ranked directory matching foo
    2
    z foo bar # cd into highest ranked directory matching foo and bar
    3
    z foo / # cd into a subdirectory starting with foo
    4
    5
    z ~/foo # z also works like a regular cd command
    6
    z foo/ # cd into relative path
    7
    z .. # cd one level up
    8
    z - # cd into previous directory
    9
    10
    zi foo # cd with interactive selection (using fzf)
    11
    12
    z foo<SPACE><TAB> # show interactive completions (zoxide v0.8.0+, bash 4.4+/fish/zsh only)

    On the one hand, it makes digging through long directory trees faster. On the other hand, I came across a YouTube video saying they aliased cd for z. Seems like a recipe for disaster when you run bash scripts with expand_aliases, where previously working scripts would suddenly execute commands on the wrong directory.

    As for me, I’m getting used to re-wiring my muscle memory around the z command and how I navigate directory trees. So far, despite the extra convenience it offers, I’m still a bit slower than using just plain cd.

  2. Two cool things people made

    Here are two cool things I found on the internet today. These kinds of things only exist because of people who let their mind wander and then subsequently following up to validate their ideas.

    First is Slices: early versions of the shared XR experiences we have today. The idea is finding a shared common space in our environments by slicing through the room and matching them with another, and then subsequently recreating the shared space in XR.

    The other is Non-euclidean Doom: what happens to a game when pi is not 3.14159, which is…self-explanatory.

  3. $250 7+6 DoF humanoid arm

    I came across @lethic1 who seems to be building the same things as me, albeit at a much faster pace. Check out his progress on the arms below.

  4. 30 days of WhatPulse

    The 30 days are over, and here are the final stats for my F-key measurement exercise. Turns out, I made an error with my 15-day measurement by not being on premium and not selecting the All Time option.

    WhatPulse 15-day statistics

    F1: 15 F2: 177 F3: 328 F4: 227 F5: 491 F6: 1 F7: 4 F8: 0 F9: 1 F10: 40 F11: 2 F12: 180 ESC: 2788

    Despite the mistake, all the F-keys netted under 0.1%, with only the escape key being 0.6%! My most pressed keys are Space with ~35k presses. Needless to say, I think I’m ready for a 65% keyboard.

    In other news, I just settled in to my new terminal today:

    WhatPulse 15-day statistics

  5. Animated equations on the web: Part 2

    I got around to working on animated equations on the web again, just out of sheer procrastination and refusal to do the things I should actually be doing.

    Here’s my idea:

    • Convert LaTeX to HTML using katex βœ…
    • For each equation, generate a diff of the dom between the current and the next βœ…
    • Generate the transition dom between the current and the next, using revealjs to animate.

    So far, I’ve gotten to the diff part, and the only thing left is to assemble the transition, but my brain is fried from work, so I’m taking a break for now.

    diff between DOM

    Side note, I am really loving my Astro setup. Each entry is essentially its own playground with my own vanilla JS just running, so I wrote code above literally inside this entry as I was writing it.