Hi there 馃憢

Welcome to my blog.

  • I am an undergraduate student passionate about exploring and sharing ideas.
  • My interests span a wide range of topics, including computer science, programming competitions, and animation.
  • Feel free to explore my thoughts and join the conversation! Hoping to connect and learn together!

Network Flow

The Maximum Network Flow Problem Let鈥檚 begin with some key ideas about the network flow problem and relevant concepts. Given a directed graph $G=(V,E)$, a source node $s \in V$, and a sink node $t \in V$. For each $e \in E$, there is a capacity, denoted as $c(e)$ or $c(u,v)$. When $(u,v) \notin E $, we assume $c(u,v)=0$. Our goal for the maximum flow problem is to push as much flow as possible from $s$ to $t$ in the graph (network). The rules are that no edge can have flow exceeding its capacity, and for any vertex except $s$ and $t$, the in to the vertex must equal the flow out from the vertex. That is, ...

2025-07-09 路 10 min 路 2129 words 路 ssdxx

MacOS Conda Package Issue

Today I want to create an environment via conda, but I got an error when I typed the following command: $ conda create -n notion python=3.7 Channels: - defaults Platform: osx-arm64 Collecting package metadata (repodata.json): done Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - python=3.7* Current channels: - defaults To search for alternate channels that may provide the conda package you're looking for, navigate to https://anaconda.org and use the search bar at the top of the page. By some searching, I first tried the command conda config --append channels conda-forge, but the problem still persists. ...

2025-06-29 路 1 min 路 131 words 路 ssdxx

Personal Understanding of Rust Ownership

Stack and Heap The first thing to understand about ownership is to know about the stack and heap memory. This concept will be quite easy if you have learned C or C++, since they are almost the same. Stack Memory If you simply declare a variable in a function, then it will live in the stack. For example, the code below declares some such variables: fn main() { let a = 1; let y = plus_one(a); } fn plus_one(x: i32) -> i32 { x + 1 } The variables a, x, and y are all allocated and deallocated automatically, just like C/C++ compiler. ...

2025-06-25 路 5 min 路 1030 words 路 ssdxx

Apple Intelligence Network Troubleshooting

Recently I鈥檝e set up the Apple Intelligence, but I can鈥檛 log in to my ChatGPT account. The main reason for the problem is the special network environment in the Chinese mainland. It can be solved by adding the following domain to the proxy rules: apple-relay.cloudflare.com apple-relay.apple.com

2025-06-18 路 1 min 路 46 words 路 ssdxx

Esp32 Flash Troubleshooting

When I wanted to flash a firmware into the ESP32, I got the error as below: A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out) After some searching, I found that I missed a USB driver. The driver can be downloaded at https://www.wch.cn/downloads/CH34XSER_MAC_ZIP.html

2025-06-13 路 1 min 路 50 words 路 ssdxx