Creating music online since 2012,
games since 2020.

Past works available over here → Works


May 3, 2023

How do you debug a Python script that crashes Python itself?


Use faulthandler.enable(); Python will print the stack trace to stderr before fully crashing.


Today I tried to daemonize a Python script that calls requests.get on macOS, and it was insta-dying for no apparent reason. I tested without daemonization, but the problem only popped up when I daemonize it. this post on

Feb 6, 2023

Beware of 'Padding' in TextMeshPro

TextMeshPro renders text wrong?

When you want to display text in Unity (starting circa version 2021,) the text components default to TextMeshPro (TMP). TextMeshPro makes you create an asset called “Font Asset” before you can display anything. It contains a Font Atlas, which is a collection of pre-rendered letters packed into a single image, whose mapping TMP keeps track of to display the text afterwards.
When making the atlas, you can set the sampling point size (SPS), which is the font size used to pre-render the letters. This also translates to the biggest font size at which TMP can safely display the letters (for the most part). For example, smaller SPS sometimes characters to be positioned incorrectly. Bigger SPS requires larger atlas size, but it helps you avoid weird issues… or does it? this post on

Jan 22, 2023

How the Unity's new Input System liberates the input detection from frame-rate

Unity’s conventional input system is easy to use, but there is one issue with it - it is frame locked.

Not sure what that means? Let me show you: if you are new to Unity, chances are that you have read or even written this piece of code yourselves.

using UnityEngine;
public class Sample: MonoBehaviour {
  private void Update() {
    if (Input.GetKeyDown(KeyCode.Space)) {
        Debug.Log("Space pressed now");
} this post on

Nov 16, 2022

Typeset LaTeX files with TeX Live on macOS and IntelliJ IDEA

So you want to typeset LaTeX locally

Nowadays, we have the luxury of ‘cloud LaTeX services’ like Overleaf, but sometimes you will run into timeout issues because you used a bit too many images.
It will never be a problem if you can just typeset LaTeX locally, so here’s the setup I use for my purposes.
Note that I need a CJK environment, or more specifically, I need to be able to typeset Japanese characters. this post on

Nov 11, 2022

Did you know I sell stock music?

Well, this is a shameless plug but this is my blog, so here goes;

Did you notice that the sidebar on this blog now has an ad?

If you are reading this on smartphones, sorry, sidebar is only available on the desktop version of this website. Try viewing it from tablet or PC!

Don’t worry, this is not a tracking ad. It is a static ad that I’ve placed. Audiostock is a website where I sell some “stock music.” this post on

Older 1/3 Latest post!

subscribe via RSS