Latest post
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
-
My activities in 2020 JDFZ Summer Session
JDFZ is hosting a summer session, where lectures covering a wide range of topics are held. Come and see what are my activities during this event. -
New website for Little Turings (club)
I, the president and one of the founders of Little Turings, created a website to distribute information about it. The website is bilingual (Chinese and English). -
Drawing a heart using Joukowsky transformation
Joukowsky transformation of a circle centered at of radius is a curve resembling a heart. -
Generalization of Euler–Lagrange equation
We may generalize Euler–Lagrange equation to higher dimensional optimization problems: find a function defined inside a region to extremize a functional defined as an integral over that region, with the constraint that the value of the function is fixed on the boundary of the region. -
View of the world (physically rather than philosophically)
The view of the world… Physically! In this article, I tried to use mathematical language to describe models of the physical world. A view of the world should include: a space (actually spacetime) with some mathematical structure on it (whose points are events in the world), a symmetry principle describing the symmetry of the world, and a motion law to describe the physics and dynamics of the world. This article proposed models for Galilean, Einsteinian, and even Aristotelian worlds. Can you come up with even other worlds? -
Simulating a mechanical system using rpg_core.js
Continuing my last work of simulating a mechanical system using RGSS3, I made a new version using rpg_core.js, the game scripting system shipped with RPG Maker MV. This version is live on web! -
Simulating a mechanical system using RGSS3
Hamiltonian mechanics gives us a good way to simulate mechanical systems as long as we can get its Hamiltonian and its initial conditions. I implemented this simulation in RGSS3, the game scripting system shipped with RPG Maker VX Ace. -
Writing a DSL with commands split by space
DSL means domain-specific language. Ruby is a powerful script language in terms of building DSLs (as sublanguages of Ruby). In this article, I implemented my idea of a DSL with commands split by space. For example, you may just write a b cto run the commandsa,b, andcone after another! This trick is heavily applied in my project alda-rb. How do I achieve this? -
Running Jekyll myself
I have got tired of letting GitHub Pages to run Jekyll for me. I cannot use custom plugins! I decide to run Jekyll myself and push the built result to GitHub repo. I wrote a script to do this. -
Algebraic structure of chemicals
Regarding balancing chemical equations, actually we are trying to find a non-trivial linear combination of some chemicals to get zero. The interesting thing is that the coefficients can only be integers (), which is not a field, so the algebraic structure of chemicals is not linear space. They actually live in a free -module. See how I formalize this idea in mathematical language.
subscribe via Atom