cover image about Raspberry Pi's weak points

When not to Pi: Projects you shouldn't give to your Raspberry Pi

For a long time, I have pictured Raspberry Pi as the perfect computer. It’s cheap, its price is low, the manufacturing costs are minimal. To me, the most significant advantage of a Pi to a conventional computer is: “I won’t feel any remorse after accidentally breaking a Raspberry Pi or ripping it apart.” So why aren’t Raspberry Pis used everywhere? Turns out Pis are known to the State of California to cause [REDACTED], if consumed....

September 10, 2021 · 3 min · bhat
cover image about optimizing Linux laptop for longer battery life

Improve Battery Life on Linux Laptop to the Extreme

Recently I got a new laptop. It is an ASUS Zenbook flip model with i7-1165G7 (4 core…). I thought about getting an AMD model, but if there is anything good about Intel these days, it is their Linux support for mobile CPU. Right after I got this laptop, I did the thing any conscious human would do: Putting Arch Linux on it. The bundled Windows 10 is anything but user-friendly. Upon first boot, the laptop immediately exploded....

September 10, 2021 · 6 min · bhat
cover image about improving Raspberry Pi file transfer speed

3 Ways to Speed up Raspberry Pi's File Transfer

The Raspberry Pi 4 is the fastest of all Pi. It brings new interfaces to the Pi family: The USB 3.0 port, and gigabit ethernet. Now, people won’t have to be constrained by the crappy USB 2.0 interface of the previous Raspberry Pi generations. The Raspberry Pi Compute Module 4 is even better. A whole PCIe 2.0 port? That’s like 5Gbps of transfer speed! That is enough to enjoy the lightning speed of NVMe SSDs....

July 17, 2021 · 5 min · bhat
cover image about deleting files

Easily Copy/Delete Hidden Files in a Directory

Those nasty little dot files… When I tried to setup a Gitlab continuous deployment, I encountered a tiny problem: How to remove all files within a Linux directory? Apparently it is quite easy. Just with a simple rm -rf dir/* Wrong! The above command rm -r dir/* only remove all visible files and directories from the directory dir. It does not remove hidden files and directories. Similarly, I also had to copy all files from one directory to another....

July 13, 2021 · 3 min · bhat
cover image about fixing zsh glitches

Fix Annoying Cursor Glitches of Zsh Autosuggestions

Installing new Arch Linux machines are always delightful. Customization, lightweight, and maximum performance. However, in my career of installing 5 Arch Linux servers, there is this one server that always seems fishy. When zsh-autosuggestions tries to suggest past commands, the terminal’s cursor always gets messed up and starts to glitch everywhere. Deleting current characters would result in random characters disappearing, and random typing errors would appear when you press enter. This has never appeared on my other machines....

July 12, 2021 · 1 min · bhat