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
-
Hölder means inequality
The Hölder mean of with weights and a parameter is defined as , and the value at are defined by the limits. We can prove using Jensen’s inquality that the Hölder mean increases as increases. This property can be used to prove HM-GM-AM-QM inequalities. -
A polynomial whose sum of coefficients is a factorial
The function is a polynomial of degree w.r.t. , and the sum of its coefficients is . This turns out to be properties of Eulerian numbers. -
The image of a circular object through a thin lens
The image of a circle with radius and centered at through a thin lens at with focal length and centered at is a conic section with the focus being , the directrix being line , and the eccentricity being . -
The point on the circle farthest to two lines
Suppose is a point on the circle . When is the sum of distances from to two edges of extremal? It turns out to be related to angle bisectors (the intersections of and the bisector of or its adjacent supplementary angle are extremals), while the edge cases (at the intersections of and edges of ) are a little tricky: we need to use the bisectors to divide the plane into four quadrants, pick the two quadrants where the line intersecting at lies, translate the region to make it center at , and see whether is inside the translated region. -
Typesetting math in emails
After some comparison among solutions, I use KaTeX to typeset math in my emails. -
Mapping from Kepler problem to free particle on 3-sphere
There is a canonical transform of the Kepler problem which is the same as the problem of motion of a free particle on 3-sphere. The explicit formula of the transform as well as some links about this topic is written in the article. The explicit formula for is where is the position of the particle on 3-sphere (a 4-dimensional vector),
is the momentum of the original particle in Kepler problem, is a vector perpendicular to the 3-dimensional hyperplane where lies, and . -
Solving linear homogeneous ODE with constant coefficients
By using power series, we can prove that the problem of solving linear homogeneous ODE with constant coefficients can be reduced to the problem of solving a polynomial with those coefficients. This article illustrates this point in detail, but it uses a very awful notation… -
Thoughts on a middle school thermal physics problem
To heat an object with hot water, if we divide the water into more parts and use each part to heat the object one after another, the final temperature will be higher. If the number of parts tends to infinity, then the final temperature will tend to the limit , where is the initial temperature of the object, is the temperature of the hot water, is the heat capacity of the object, and is the heat capacity of the hot water. -
I created a community rhythm game called Dododo
I have created a community rhythm game called Dododo. It is a rhythm game with musical rhythm notations. -
New website for MOIS Project (club)
I have built a website for our club called MOIS Project. It is a club related to music and band.
subscribe via Atom