How to Mount a Newly Added Hard Drive in LINUX System

How to Mount a Newly Added Hard Drive in LINUX System

This article takes the addition of an 8GB hard drive as an example: (This article is merely a record and communication of daily work)The mounting steps are as follows:1. Check if the hard drive has been recognized by the system# lsblk2. Create a partition on the newly added hard drive# sudo fdisk /dev/sdb (Note: sdb … Read more

My Python Learning Diary 2

Below are some common formatting considerations in Python programming, particularly related to syntax structures and code indentation. 📝 Summary of Python Formatting Considerations: 1. Colon (: In Python, the colon<span>:</span> is very important as it marks the beginning of a control structure. It typically appears in places such as conditional statements, loops, and function definitions. … Read more

Getting Started in 30 Minutes: Practical Disk Management on Linux Servers (Including Partitioning, Formatting, and Mounting Tutorials)

Question 0: Disk Structure Hard disks are divided into sectors (each sector is 512b or 4kb). The first sector records: the starting sector number of the partition, the ending sector number of the partition, the type of partition (linux/swap), and the status of the partition (whether it is bootable). Question 1: How are disks partitioned … Read more

rustfmt: Architectural Practices of Rust’s Official Code Formatting Tool

The official code formatting tool for Rust, based on an AST-driven intelligent layout engine, supports CI integration and editor interaction, allowing for a unified team code style with a single command—an essential infrastructure for backend collaboration. Original text and source: https://yunpan.plus/t/315-1-1 “Is your team still arguing over code style? A single <span>cargo fmt</span> command can … Read more

Getting Started in 30 Minutes: Practical Disk Management on Linux Servers (Including Partitioning, Formatting, and Mounting Tutorials)

Question 0: Disk Structure The hard disk is divided into sectors (each sector is 512b or 4kb). The first sector records: the starting sector number of the partition, the ending sector number of the partition, the type of partition (linux/swap), and the status of the partition (whether it is bootable). Question 1: How are disks … Read more

C++ Strings: Transitioning from C-Style to String Class

C++ Strings: Transitioning from C-Style to String Class

Strings are ubiquitous elements in C++ development, essential for everything from user input to network transmission. While strings may seem simple, they are fraught with numerous details and pitfalls that can easily catch developers off guard.Issues like buffer overflows and memory leaks can be extremely difficult to diagnose once they occur, often arising from inadvertent … Read more

Tips for Using Memory Cards: Key Points to Note

Tips for Using Memory Cards: Key Points to Note

Currently, the vast majority of digital cameras require the use of external memory cards to store large amounts of data, rather than relying on built-in memory. Due to the need for frequent insertion and removal, and the variety and quality of memory cards available, improper handling can often lead to issues such as data loss, … Read more

Practical Tips for Using Keil: Formatting Code with AStyle Plugin

Practical Tips for Using Keil: Formatting Code with AStyle Plugin

Follow+Star Public Account Number, Don’t Miss Exciting ContentAuthor | strongerHuangWeChat Public Account | Embedded ColumnIf you download a source code online, or take over a colleague’s code, and it looks like the image below, do you still have the mood to look at it? However, if you format (beautify) it with a tool like this, … Read more

Clang-format Plugin for Keil MDK5: Code Formatting Tool

Clang-format Plugin for Keil MDK5: Code Formatting Tool

Introduction This article will introduce a code formatting tool called Clang-format, and detail how to use the Clang-format plugin in Keil MDK5 for code formatting, while showcasing the formatting effects of Clang-format on code. If you are a C/C++ programmer, this article will be helpful for your daily development work. 1. Overview of Clang-format Clang-format … Read more

AStyle Code Formatting Plugin for MDK-ARM

AStyle Code Formatting Plugin for MDK-ARM

Follow Our Official Account to not miss any updates! Today I will share two points: 1. A code formatting plugin [AStyle] — recommended by a friend who follows me! 2. STM32 Clock and Precautions; 1AStyle Plugin A few days ago, a friend who follows me (*inbun Yi*) recommended this AStyle plugin. I checked it out … Read more