Latest post
The 12 outlets on my power board and the 10 USB ports on my USB hub are used up. I am feeling unsafe.
Things connected to the power outlets: router, mini PC, main laptop, another laptop, three USB chargers, external HDD, monitor, speaker, lamp, USB hub.
Things connected to the USB ports: keyboard, mouse, drawing tablet, keypad, phone cable, external HDD, external SSD, another two lamps, microphone.
follow me on Mastodon
Articles
-
Imperative programming in Nix language
Nix is a functional programming language primarily used for package management and system configuration. However, it may be interesting to emulate imperative programming constructs within Nix. This post explores how to achieve imperative-style programming in Nix.
- Categories: programming
- Tags: nix, functional programming
-
Multi-pass Gaussian blur filter
According to the central limit theorem, the sum of some i.i.d. samples is normally distributed in the limit of large sample size. This fact can be used to implement a multi-pass Gaussian blur filter, where the total number of passes is equal to the number of samples used in the averaging. Through this, we can also see a nice relation to the heat equation, which is not surprising since the heat kernel is a Gaussian function.
- Categories: programming
- Tags: algorithm, shader, probability, pde
-
The buildup kickroll in Time to beat the odds
There is a gradually-accelerating buildup kickroll at 1:18 in the song Time to beat the odds by 影虎。. In order to know the details of this rhythm, I have to analyze the sample using Python.
- Categories: music
- Tags: fourier transform, python
-
Eigenfunctions of the Laplacian on an annulus with homogeneous Neumann boundary condition
Several features of the eigenfunctions of the Laplacian on an annulus with homogeneous Neumann boundary condition are discussed. The distribution of the eigenvalues is discussed in detail, making use of a phase angle function called . The limiting cases of a disk and a circle are discussed.
- Categories: math
- Tags: mathematical physics, pde, ode, long paper
-
The role of particle indistinguishability in statistical mechanics
Indistinguishability plays an important role in enumerative problems in combinatorics. This article explains the concept and significance of particle indistinguishability in statistical mechanics.
- Categories: physics
- Tags: mathematical physics, statistical mechanics, probability, long paper, combinatorics, quantum mechanics
-
Why it is a bad idea to use GitHub for submiting school homework
It is common for school courses to require students to submit their homework using GitHub. However, this is usually a bad idea for several reasons.
-
How to use JavaScript in GitHub Actions without committing
node_modules
I was creating my first GitHub Action. According to the official documentation, I should commit the node_modulesto the repo or generate a script that bundles the wholenode_modulesif I want to create a JavaScript action. I think this is not good practice, so I try to find another way.- Categories: guide
- Tags: javascript, github
-
Some understanding of Grassmann numbers out of intuition
I was briefly introduced to Grassmann numbers when I studied quantum field theory. I then had the natural question of how we can formally define them. In this article, I went with my intuition and tried to answer this question.
- Categories: math
- Tags: quantum field theory, linear algebra, abstract algebra
-
The notational convenience of imaginary time in the derivation of the metric in Poincaré coordinates
In general relativity, people usually choose one of the two major metric signatures. However, in certain cases, the imaginary time convention can be more convenient. Here is one of such cases: the derivation of the metric in Poincaré coordinates for the anti-de Sitter space.
- Categories: physics
- Tags: general relativity, ads space
-
The smallest wave packet in the lowest Landau level
The smallest wave packet in the lowest Landau level exists, and is a Gaussian wave packet. This turns out to be related to the coherent state of the harmonic oscillator.
- Categories: physics
- Tags: quantum mechanics, condensed matter physics
subscribe via RSS