Keyword:

I am running Arch Linux with T2 kernel on a 2019 iMac. The audio does not work until I apply patches from snd_hda_macbookpro. However, I am still getting no sound if iMac goes into sleep. Brief debugging Going through kernel messages and checking PCI devices, indicate that after machine resuming, the audio device is lost or does not turn on. The device id is reset to 0x10138409 which is not a subsystem id but the PCI device id of the main sound device.…

| Ready Debian 11


Why Debian? Stability of Debian distro has nothing left to argue. The software can be far behind latest version. The default configurations can be lacking. And you may not have the most lousy community. But hey, it just works and it will not give you any surprise. There is a old saying, Debian unstable is more stable than most of stable releases of other distros. Basic Setup Even though Debian tends to work out of box, it still requires some efforts to properly setup.…

I build a simple text editor in the terminal here. Overview Similar to MVC pattern, a text editor has three independent modules: controller: to handle customer keyboard input and dispatch for further processing. model: to store what customer is working on and process necessary business logic. view: to render user interface of the editor You can think of the editor is in an infinite loop. First we clear the screen and render the viewable text document content in stdout.…

Why? Any civilization is evitably strangled in a process where it starts with exploring into the wild land, then settling, developing to its most high, and eventually fallen by the warfare or other misfortune. I am deeply curious about such process and try to simulate it. For simplicity, there are only three types of events in Flatdom, exploration, development and war. What is Flatdom? Flatdom is a 2-dimensional world. The world consists of many grids.…