3.0 Basic Python Programming for Daily Tasks

3.0 Basic Python Programming for Daily Tasks

Zero, Introduction: Programming is like snacking on sunflower seeds, once you start, you can’t stop! Friends, today let’s talk about something practical! Python is like our family heirloom kitchen knife; it can chop dumpling filling and is also great for smashing cucumbers. I’ll teach you the most basic syntax to handle those daily chores, saving … Read more

Virtual Serial Port Driver in Linux (Part 2)

Virtual Serial Port Driver in Linux (Part 2)

Introduction In the previous article, we briefly introduced the difference between bare-metal drivers and device drivers, as well as the driver architecture of character devices in the Linux kernel. Without an operating system, upper-layer applications directly access the driver interface, and application engineers need to know the driver interface for each device. When accessing Flash, … Read more

C++ std::filesystem: Elegantly Handling Files and Paths

C++ std::filesystem: Elegantly Handling Files and Paths

Handling files and paths is a frequent task in any programming language. In C++, we used to rely on platform-specific APIs (such as CreateFile on Windows or open in POSIX) to accomplish this. This approach was not only cumbersome but also required consideration of cross-platform compatibility issues. The good news is that with the introduction … Read more