-
How to Statically Compile a Python Program into a Binary Executable File
How to Statically Compile a Python Program into a Binary Executable FileCreating a statically compiled binary for your Python program ensures it can run independently of the target system’s libraries. Here’s a step-by-step guide:1. Install Necessa...…
-
eMMC timeout management in Linux&Uboot
eMMC timeout managementFor eMMC, we implement two levels of timeout management: Block Layer Timeout eMMC Core Timeout +---------------+ | VFS | +---------------+ | FS | +---------------+ | Block Layer | -> 1. Sets...…
-
Linux System call example
What are Syscalls?System calls (syscalls) are the mechanism through which user-space applications interact with the kernel. They provide an abstracted interface for processes to request services and resources from the operating system. Syscalls se...…
-
git send-email tricks
用git提交patch,并发送邮件安装 git git-email apt-get install git git-core git-email.gitconfig[user]name = xxxemail = xxx@xxx.com[sendemail]smtpencryption = tlssmtpserver = smtp.gmail.comsmtpuser = xxx@gmail.comsmtpserverport = 587cleanfile如果需要,在提交之前, run ./...…
-
Django-message
messages.success(), messages.error(), and JsonResponse()In Django, there are multiple ways to send feedback or data from the backend to the frontend. This post explains the differences between messages.success(), messages.error(), and JsonResponse...…
-
Django-MySQL
How to Enter the MySQL ShellTo enter the MySQL shell (command-line interface), follow these steps:1. Install MySQL Client (if not already installed)If you don’t have the MySQL client installed, install it first:On Ubuntu/Debian:sudo apt updatesudo...…
-
Heap and Stack, one Minimalist heap Allocator
📚 Introduction to the Heap💡 What is the Heap?The heap is a region of memory used for dynamic memory allocation — memory that is allocated and freed at runtime rather than at compile time.In C, you access the heap using: malloc() / calloc() / real...…