Latest post

Mar 2, 2026, 00:07:43

I am using #Thunar as my #filemanager and #Ghostty as my #terminal. One thing that bugs me is that clicking "open terminal here" in Thunar opens Ghostty in the default working directory instead. I just fixed this today by changing the command to `TERM_PROGRAM=dumb exo-open --working-directory %f --launch TerminalEmulator`, i.e., adding an environment variable `TERM_PROGRAM`. The value does not matter, but it has to have some value for exo-open to work. No idea why.

follow me on Mastodon

Articles

  • Use complex numbers as canonical variables

    Article cover image with no practical usageIn this article, I try exploring an idea: using complex numbers to combine pairs of canonical variables into complex variables: cαq+iβp\mathbf c\coloneqq\alpha\mathbf q+\mathrm i\beta\mathbf p. It turns out that we can write canonical equations dcdt=2iαβHc\frac{\mathrm d\mathbf c}{\mathrm dt}=-2\mathrm i\alpha\beta\frac{\partial\mathcal H}{\partial\mathbf c^*}, Poisson brackets {f,g}=2iαβ(fcgcfcgc)\left\{f,g\right\}=-2\mathrm i\alpha\beta \left(\frac{\partial f}{\partial\mathbf c}\cdot \frac{\partial g}{\partial\mathbf c^*}- \frac{\partial f}{\partial\mathbf c^*}\cdot \frac{\partial g}{\partial\mathbf c}\right), and canonical transformations cc=cc,cc=cc\frac{\partial\mathbf c^*}{\partial\mathbf c'^*}= \frac{\partial\mathbf c'}{\partial\mathbf c}, \frac{\partial\mathbf c}{\partial\mathbf c'^*}= -\frac{\partial\mathbf c'}{\partial\mathbf c^*} in these complex numbers. Finally, I show two examples of using them in real problems: a free particle, and a harmonic oscillator.

  • Giving birth to my own blog

    Article cover image with no practical usageThis is my first blog! I will share interesting things in my life here.

subscribe via Atom