About Program Memory, A Few Insights
About Program Memory: A Few Insights
Foreword: Recently, I have been studying pointers, which has led me to have a deeper interaction with memory. I realized that I had a blank slate regarding this area. Thus, I took the opportunity to learn a bit and wanted to share my reflections.
Introduction1234567891011121314#include <stdio.h>int main(){ char str[] = {"asdasd"}; char *p = (char *)"asdasd"; *(p + 2) = "e"; // 1 str[2] = " ...
How to Ask Questions Elegantly
How to Ask Questions Elegantly
Introduction:
For most students who are just starting in computer science, they will inevitably encounter various questions during their studies. When feeling lost and helpless, the only way out is to ask teachers or classmates for help. However, sometimes these questions seem to vanish without a trace. You may wonder why these teachers or classmates, who usually seem so friendly and approachable, become so indifferent when you ask them questions. Sometimes, they e ...
Installing Network Card Drivers on Ubuntu
Installing Network Card Drivers on UbuntuPreparationsHardware:
A USB drive
An Ethernet cable
Software:
make
gcc
Installing the SoftwareInstalling with an Ethernet CableBefore compiling the drivers, you need to install make and gcc:
12sudo apt-get updatesudo apt-get install build-essential
After running these commands, gcc, g++, and make will be installed. The build-essential package includes a complete set of tools such as gcc, libc, and more.
Offline Installation
Check the version of ...
Switching from Win10 to Ubuntu 22.04.1 LTS
The Process of Switching from Win10 to Ubuntu
IntroductionThere are several reasons for switching my desktop computer from Windows to Linux:
The desktop has been used for many years and its performance has declined.
It is no longer my primary machine.
It is used for learning Linux.
I love tinkering.
PreparationHardware:
A desktop computer
A 16GB USB flash drive
Ethernet cable/network card
Software:
Disk image burning software
Creating a Bootable USB DriveDownloading the ImageDownlo ...
Setting Up a Minecraft Server on Raspberry Pi
Setting Up a Minecraft Server on Raspberry Pi
General Steps: Install the runtime environment –> Install the server panel –> Upload the server files –> Configure –> Start the server
Preparation Materials
Raspberry Pi 4B boardHeat sink (passive cooling is recommended)Raspberry Pi power supply (Type-C is fine, official recommended)Ethernet cable (wired connection is recommended, as wireless networks are unstable for hosting)Card readerHigh-speed storage card (32GB or more)A computerSof ...
Mathematical Modeling Study Notes
Mathematical Modeling Study Notes
Understanding Mathematical ModelingWhat is Mathematical Modeling?1. What is a Mathematical Model?A mathematical model is a mathematical structure that represents the characteristics or quantitative dependency relationships of a system, using mathematical language to abstractly or approximately describe these characteristics. This structure captures the pure relational structure of a system through mathematical symbols. In a broad sense, a mathematical model incl ...
Setting Up Hexo on Raspberry Pi 4B
Setting Up Hexo on Raspberry Pi 4B (Part 1)
IntroductionHexo is a fast, simple, and efficient blogging framework. Hexo uses Markdown (or other rendering engines) to parse articles. Within seconds, it generates static web pages using beautiful themes, converting your markdown files into static websites according to the specified theme.
PreparationsHardware:
Raspberry Pi 4B
16(GB) SD card
Software:
RASPBERRY PI OS LITE (64-BIT)
Public IP + DDNS from China Telecom
node.js + Git
Installing Hex ...