Sitemap

A list of all the posts and pages found on the site. For you robots out there is an XML version available for digesting as well.

Posts

SV660N Keypad Panel Status Codes

13 minute read

Published:

SV660N 5-digit keypad: decode _28ry / AL blink, and panel-as-read faults (E6200, E6400, EE083) mapped to CoE 0x603F/0x203F.

GRUB’s GRUB_DEFAULT and GRUB_SAVEDEFAULT: Flexible but Confusing Design

6 minute read

Published:

GRUB splits reading and writing the saved boot entry across GRUB_DEFAULT and GRUB_SAVEDEFAULT. That flexibility helps admins and automation, but it exposes mechanism instead of user intent—and nested configfile menus can silently break remember-last-selection.

Give AI Agents Sudo with SUDO_ASKPASS

2 minute read

Published:

When an agent cannot type a sudo password into a TTY, a short zenity askpass helper unlocks a stable sudo -A workflow.

Using BaiduPCS-Go cli

4 minute read

Published:

BaiduPCS-Go is a command-line Baidu Netdisk client.

VFS 签证预约系统访问慢,可以先检查 DNS

1 minute read

Published:

在中国使用 VFS 签证预约系统时,如果 Cloudflare 验证加载很慢、页面经常卡死或登录被临时锁定,可以先尝试把 DNS 改成 1.1.1.1 和 8.8.8.8。

Ubuntu 下给微信添加显示/隐藏快捷键

1 minute read

Published:

Linux 版微信在 Ubuntu 中没有内置的显示/隐藏窗口快捷键,可以用 xdotool 和 GNOME 自定义快捷键实现一个类似的切换功能。

BLE Random Address Type Bits

1 minute read

Published:

BLE random device addresses encode their address type in the two most significant bits of the random address.

A Professional Git Worktree Workflow with a Bare Repository

7 minute read

Published:

If you regularly switch between branches, keep separate runtime environments, or want AI agents to work without disturbing your main checkout, a bare repository plus git worktree is one of the cleanest setups.

Why SSH Still Asks for a Password After PasswordAuthentication no

3 minute read

Published:

If you set PasswordAuthentication no in sshd_config and SSH still accepts a password, the problem is usually not your keys. The problem is that OpenSSH can still allow password-like login through KbdInteractiveAuthentication, often backed by PAM.

Good Software Rules

3 minute read

Published:

These are rules to reread, not slogans to admire.

Planar Homology: Applications and Intuition

4 minute read

Published:

Exploring the applications and intuitive understanding of planar homologies in projective geometry, computer vision, and geometric transformations.

Problems of China’s Math Education for Students

3 minute read

Published:

An analysis of the systemic problems in China’s math education system, examining what works and what doesn’t, and comparing approaches with other countries.

Setting Up Jupyter Terminal Keyboard Shortcut

1 minute read

Published:

Learn how to quickly create a new terminal in Jupyter using a custom keyboard shortcut. This is especially useful for developers who frequently need to run shell commands while working in Jupyter notebooks.

GraphHopper paths are edges, not nodes

3 minute read

Published:

GraphHopper makes a deliberate design choice: paths are represented by edges, not nodes. This matters for correctness (turn restrictions/costs), fidelity (multiple parallel edges between the same nodes), and efficiency (edge properties drive routing).

GPT Chats

6 minute read

Published:

Some chats from ChatGPT

argmax to multinomial

2 minute read

Published:

Why use a multinomial function to get the next word prediction in a GPT (generative) model rather than outputting the id with the largest probability?

解决Ubuntu中文字体缺失,中文文档丑

less than 1 minute read

Published:

Ubuntu下使用WPS, LibreOffice编辑文档、演示稿时,发现Ubuntu自带的(免费)字体丑。同样的文档在Windows,MAC下看着没问题,在Ubuntu下排版都乱了(字体宽度不一样)。将Windows的中文字体拷过来就好了。

Fundamental Theorem of Linear Programming

1 minute read

Published:

Fundamental Theorem of Linear Programming Given a linear program in standard form where A is an m × n matrix of rank m,

  1. (T1) if there is a feasible solution, there is a basic feasible solution;
  2. (T2) if there is an optimal feasible solution, there is an optimal basic feasible solution.

Optimization Problems

2 minute read

Published:

Problem summary of High-Dimensional Data Analysis with Low-Dimensional Models - John Wright, Yi Ma

L1 optimization by projected subgradient [python]

1 minute read

Published:

Python implementation of Algorithm L1-Minimization by Projected Subgradient from High-Dimensional Data Analysis with Low-Dimensional Models - John Wright, Yi Ma, Page 63

Projection onto an Affine Subspace

1 minute read

Published:

Let \(A\) be a matrix with size \(m \times n\). We want to project point z onto a plane \(\begin{align} \arg \min_{x} \lVert z-x \rVert_2 \\ \text{s.t. } Ax = y \end{align}\)

Subset Selection [python]

1 minute read

Published:

Python implementation of Algorithm L0-Minimization by Exhaustive Search from High-Dimensional Data Analysis with Low-Dimensional Models - John Wright, Yi Ma, Page 48

ros2/arm免依赖交叉编译教程

1 minute read

Published:

使用qemu运行arm docker模拟器,在模拟器中使用apt安装依赖后,将docker容器文件系统导出,作为cmake的sysroot,避免编译依赖。本文以ROS2为例,但方法并不限于ROS2

vietnam

less than 1 minute read

Published:

Nhatrang