From 6100ec782a092960cde126c77b07360d4cc38041 Mon Sep 17 00:00:00 2001 From: Jason Swift Date: Sat, 11 May 2024 20:34:00 +0800 Subject: [PATCH] update: 1. use yaml instead of toml as metadata 2. enable `LaTeX` 3. remove unnecessary folders --- .../post/{encoding => }/Chinese-encoding.md | 14 ++- .../post/{computer => }/Julia-installation.md | 14 ++- .../post/{computer => }/Rust-installation.md | 14 ++- content/post/algorithm/Catalan-number.md | 2 +- content/post/algorithm/Fibonacci.md | 2 +- content/post/algorithm/_index.md | 0 content/post/algorithm/compute-PI.md | 2 +- content/post/{encoding => }/base64.md | 14 ++- .../post/{biology/snake.md => bio-snake.md} | 13 ++- content/post/biology/_index.md | 0 .../{experience => }/change-vs-nickname.md | 15 ++- content/post/{encoding => }/cmd-encoding.md | 15 ++- .../post/{computer => }/compiler-bootstrap.md | 13 ++- content/post/computer/_index.md | 0 content/post/computer/computer-system.md | 33 ------ content/post/computer/file-system.md | 16 --- content/post/{ctf => }/ctf-03k-qq/index.md | 14 ++- content/post/{ctf => }/ctf-03k-qq/q1.jpeg | Bin content/post/{ctf => }/ctf-03k-qq/q2.jpeg | Bin content/post/{ctf => }/ctf-03k-qq/q2.py | 0 content/post/{ctf => }/ctf-03k-qq/q3.jpeg | Bin content/post/{ctf => }/ctf-03k-qq/q3.py | 0 content/post/{ctf => }/ctf-03k-qq/qg.jpeg | Bin content/post/{ctf => }/ctf-03k-qq/what.png | Bin content/post/{ctf => }/ctf-03k-qq/what.zip | Bin content/post/{ctf => }/ctf-03k-qq/what2.zip | Bin content/post/{ctf => }/ctf-03k-qq/what3.zip | Bin content/post/{ctf => }/ctf-03k-qq/what4.zip | Bin .../post/{computer => }/dll-search-path.md | 14 ++- content/post/editor/_index.md | 0 content/post/encoding/_index.md | 0 .../post/{computer => }/executable-file.md | 14 ++- content/post/experience/_index.md | 0 .../rust-analyzer-fetching-metadata.md | 9 -- content/post/{os => }/fedora-config.md | 16 +-- .../post/{os => }/fedora-partition-gparted.md | 18 +-- .../film-collection/7xs1cz.png | Bin .../film-collection/8zhjkt.png | Bin .../film-collection/9n0zqy.png | Bin .../film-collection/apkcu8.png | Bin .../film-collection/awjak1.png | Bin .../{experience => }/film-collection/index.md | 14 ++- .../film-collection/lmk7me.png | Bin .../film-collection/om8ttd.png | Bin content/post/git/_index.md | 0 content/post/{git => }/gitee-ssh.md | 15 ++- .../{experience => }/ipynb-export-to-PDF.md | 16 +-- .../post/{editor => }/lazyvim-installation.md | 15 +-- .../post/{computer => }/legacy-syntax-of-C.md | 13 ++- .../post/{computer => }/linux-for-windows.md | 14 ++- .../{experience => }/manim-installation.md | 15 +-- content/post/math/23m1p14.md | 2 +- content/post/math/2o-linear-const-de.md | 2 +- content/post/math/Taylor-formula.md | 2 +- ...initesimal order of a variable integral.md | 2 +- content/post/math/_index.md | 0 .../math/calculus of elementary functions.md | 2 +- .../post/math/commonly-used-distributions.md | 2 +- content/post/math/coordinates transform.md | 2 +- .../math/formula/Trigonometric functions.md | 2 +- content/post/math/some formula.md | 2 +- content/post/my-first-post.md | 17 +-- .../post/{computer => }/plugin-programming.md | 14 ++- content/post/python/_index.md | 0 .../post/{regex/regex.md => regex-note.md} | 107 ++++++++++++++++-- content/post/regex/_index.md | 0 content/post/regex/about-regex.md | 96 ---------------- .../rename-Windows-username.md | 17 ++- .../post/rust-analyzer-fetching-metadata.md | 11 ++ content/post/something/_index.md | 0 content/post/{tex => }/tex-note-0616.md | 14 +-- content/post/tex/_index.md | 0 content/post/{something => }/what-is-GNU.md | 14 +-- hugo.toml | 4 +- 74 files changed, 333 insertions(+), 333 deletions(-) rename content/post/{encoding => }/Chinese-encoding.md (97%) rename content/post/{computer => }/Julia-installation.md (90%) rename content/post/{computer => }/Rust-installation.md (93%) delete mode 100644 content/post/algorithm/_index.md rename content/post/{encoding => }/base64.md (95%) rename content/post/{biology/snake.md => bio-snake.md} (97%) delete mode 100644 content/post/biology/_index.md rename content/post/{experience => }/change-vs-nickname.md (73%) rename content/post/{encoding => }/cmd-encoding.md (79%) rename content/post/{computer => }/compiler-bootstrap.md (85%) delete mode 100644 content/post/computer/_index.md delete mode 100644 content/post/computer/computer-system.md delete mode 100644 content/post/computer/file-system.md rename content/post/{ctf => }/ctf-03k-qq/index.md (96%) rename content/post/{ctf => }/ctf-03k-qq/q1.jpeg (100%) rename content/post/{ctf => }/ctf-03k-qq/q2.jpeg (100%) rename content/post/{ctf => }/ctf-03k-qq/q2.py (100%) rename content/post/{ctf => }/ctf-03k-qq/q3.jpeg (100%) rename content/post/{ctf => }/ctf-03k-qq/q3.py (100%) rename content/post/{ctf => }/ctf-03k-qq/qg.jpeg (100%) rename content/post/{ctf => }/ctf-03k-qq/what.png (100%) rename content/post/{ctf => }/ctf-03k-qq/what.zip (100%) rename content/post/{ctf => }/ctf-03k-qq/what2.zip (100%) rename content/post/{ctf => }/ctf-03k-qq/what3.zip (100%) rename content/post/{ctf => }/ctf-03k-qq/what4.zip (100%) rename content/post/{computer => }/dll-search-path.md (76%) delete mode 100644 content/post/editor/_index.md delete mode 100644 content/post/encoding/_index.md rename content/post/{computer => }/executable-file.md (86%) delete mode 100644 content/post/experience/_index.md delete mode 100644 content/post/experience/rust-analyzer-fetching-metadata.md rename content/post/{os => }/fedora-config.md (74%) rename content/post/{os => }/fedora-partition-gparted.md (96%) rename content/post/{experience => }/film-collection/7xs1cz.png (100%) rename content/post/{experience => }/film-collection/8zhjkt.png (100%) rename content/post/{experience => }/film-collection/9n0zqy.png (100%) rename content/post/{experience => }/film-collection/apkcu8.png (100%) rename content/post/{experience => }/film-collection/awjak1.png (100%) rename content/post/{experience => }/film-collection/index.md (97%) rename content/post/{experience => }/film-collection/lmk7me.png (100%) rename content/post/{experience => }/film-collection/om8ttd.png (100%) delete mode 100644 content/post/git/_index.md rename content/post/{git => }/gitee-ssh.md (90%) rename content/post/{experience => }/ipynb-export-to-PDF.md (96%) rename content/post/{editor => }/lazyvim-installation.md (93%) rename content/post/{computer => }/legacy-syntax-of-C.md (82%) rename content/post/{computer => }/linux-for-windows.md (90%) rename content/post/{experience => }/manim-installation.md (91%) delete mode 100644 content/post/math/_index.md rename content/post/{computer => }/plugin-programming.md (91%) delete mode 100644 content/post/python/_index.md rename content/post/{regex/regex.md => regex-note.md} (68%) delete mode 100644 content/post/regex/_index.md delete mode 100644 content/post/regex/about-regex.md rename content/post/{experience => }/rename-Windows-username.md (94%) create mode 100644 content/post/rust-analyzer-fetching-metadata.md delete mode 100644 content/post/something/_index.md rename content/post/{tex => }/tex-note-0616.md (89%) delete mode 100644 content/post/tex/_index.md rename content/post/{something => }/what-is-GNU.md (78%) diff --git a/content/post/encoding/Chinese-encoding.md b/content/post/Chinese-encoding.md similarity index 97% rename from content/post/encoding/Chinese-encoding.md rename to content/post/Chinese-encoding.md index 664aa7f..2a59d0e 100644 --- a/content/post/encoding/Chinese-encoding.md +++ b/content/post/Chinese-encoding.md @@ -1,9 +1,11 @@ -+++ -title = '中文乱码分析' -date = 2023-09-24T11:53:49+08:00 -tags = ['encoding'] -categories = 'computer' -+++ +--- +title: 中文乱码分析 +date: 2023-09-24 +tags: + - encoding + - Chinese +categories: computer +--- 由于世界各地文字多样,计算机世界产生了很多编码。 编码就是以一种规则解释二进制机器码,不同文字的机器码是一样的,都是 `0101` 序列。 diff --git a/content/post/computer/Julia-installation.md b/content/post/Julia-installation.md similarity index 90% rename from content/post/computer/Julia-installation.md rename to content/post/Julia-installation.md index 5284eb5..5929ca6 100644 --- a/content/post/computer/Julia-installation.md +++ b/content/post/Julia-installation.md @@ -1,9 +1,11 @@ -+++ -title = 'Julia 编程语言安装教程' -date = 2023-12-26T14:36:44+08:00 -tags = ['Julia'] -categories = 'computer' -+++ +--- +title: Julia 编程语言安装教程 +date: 2023-12-26 +tags: + - Julia + - installation +categories: computer +--- [Julia](https://julialang.org/) 是一门新生的科学计算编程语言,拥有动态语言的方便与静态语言的性能。 diff --git a/content/post/computer/Rust-installation.md b/content/post/Rust-installation.md similarity index 93% rename from content/post/computer/Rust-installation.md rename to content/post/Rust-installation.md index 7d256f4..c6ee59d 100644 --- a/content/post/computer/Rust-installation.md +++ b/content/post/Rust-installation.md @@ -1,9 +1,11 @@ -+++ -title = 'Rust 编程语言安装教程' -date = 2024-01-20T22:49:16+08:00 -tags = ['Rust'] -categories = 'computer' -+++ +--- +title: Rust 编程语言安装教程 +date: 2024-01-20 +tags: + - Rust + - installation +categories: computer +--- [Rust](https://www.rust-lang.org/) 是一门可靠而高效的编程语言,其安装也很简便。 diff --git a/content/post/algorithm/Catalan-number.md b/content/post/algorithm/Catalan-number.md index a21f3e4..6bffa12 100644 --- a/content/post/algorithm/Catalan-number.md +++ b/content/post/algorithm/Catalan-number.md @@ -3,7 +3,7 @@ title = '卡特兰数' date = 2023-11-05T19:01:44+08:00 tags = ['stack'] categories = 'algorithm' -enableLaTeX = true +math = true +++ 卡特兰数 Catalan number 是一个数列,可以用在计算 n 个元素进出栈的情况数目。例如一个序列以 `1 2 3 4` 的顺序入栈,有多少种出栈情况? diff --git a/content/post/algorithm/Fibonacci.md b/content/post/algorithm/Fibonacci.md index e6b5b6d..3bbb2ba 100644 --- a/content/post/algorithm/Fibonacci.md +++ b/content/post/algorithm/Fibonacci.md @@ -3,7 +3,7 @@ title = '斐波那契数' date = 2023-11-05T19:06:01+08:00 tags = [''] categories = 'algorithm' -enableLaTeX = true +math = true +++ diff --git a/content/post/algorithm/_index.md b/content/post/algorithm/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/algorithm/compute-PI.md b/content/post/algorithm/compute-PI.md index cecf2b6..89c0a14 100644 --- a/content/post/algorithm/compute-PI.md +++ b/content/post/algorithm/compute-PI.md @@ -3,7 +3,7 @@ title = '计算圆周率' date = 2023-11-05T19:05:14+08:00 tags = ['series'] categories = 'algorithm' -enableLaTeX = true +math = true +++ 圆周率的计算更多的是数学问题,但计算机的算力很大程度上推进了圆周率算法的研究。 diff --git a/content/post/encoding/base64.md b/content/post/base64.md similarity index 95% rename from content/post/encoding/base64.md rename to content/post/base64.md index e65d724..f5a9b82 100644 --- a/content/post/encoding/base64.md +++ b/content/post/base64.md @@ -1,9 +1,11 @@ -+++ -title = 'base64 编码原理' -date = 2023-11-23T12:37:03+08:00 -tags = ['encoding', 'base64'] -categories = 'computer' -+++ +--- +title: base64 编码原理 +date: 2023-11-23 +tags: + - encoding + - base64 +categories: computer +--- 先前一直有听说 base64 编码应用很广泛,日常也曾调包使用, 但是从未深究其原理,只大概了解它是用 6 bit 表示 8 bit 的信息。 diff --git a/content/post/biology/snake.md b/content/post/bio-snake.md similarity index 97% rename from content/post/biology/snake.md rename to content/post/bio-snake.md index b17fe6c..7f8fff1 100644 --- a/content/post/biology/snake.md +++ b/content/post/bio-snake.md @@ -1,9 +1,10 @@ -+++ -title = '🐍' -date = 2023-04-11T19:10:28+08:00 -tags = [] -categories = 'biology' -+++ +--- +title: 🐍 +date: 2023-04-11 +tags: + - snake +categories: biology +--- *在哔哩哔哩看到了解说蛇的视频,很感兴趣,遂查资料、作笔记。* diff --git a/content/post/biology/_index.md b/content/post/biology/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/experience/change-vs-nickname.md b/content/post/change-vs-nickname.md similarity index 73% rename from content/post/experience/change-vs-nickname.md rename to content/post/change-vs-nickname.md index 141673f..67b530c 100644 --- a/content/post/experience/change-vs-nickname.md +++ b/content/post/change-vs-nickname.md @@ -1,9 +1,12 @@ -+++ -title = 'Visual Studio 修改别名' -date = 2023-05-03T15:13:56+08:00 -tags = ['Visual Studio', 'rename'] -categories = 'computer' -+++ +--- +title: Visual Studio 修改别名 +date: 2023-05-03 +tags: + - Visual Studio + - rename +categories: computer +--- + Edit files in two places[^1]: diff --git a/content/post/encoding/cmd-encoding.md b/content/post/cmd-encoding.md similarity index 79% rename from content/post/encoding/cmd-encoding.md rename to content/post/cmd-encoding.md index 09d5388..b619a76 100644 --- a/content/post/encoding/cmd-encoding.md +++ b/content/post/cmd-encoding.md @@ -1,9 +1,12 @@ -+++ -title = 'Windows 命令行编码' -date = 2022-02-21T15:21:29+08:00 -tags = ['encoding', 'cmd'] -categories = 'computer' -+++ +--- +title: Windows 命令行编码 +date: 2022-02-21 +tags: + - encoding + - Windows + - cmd +categories: computer +--- diff --git a/content/post/computer/compiler-bootstrap.md b/content/post/compiler-bootstrap.md similarity index 85% rename from content/post/computer/compiler-bootstrap.md rename to content/post/compiler-bootstrap.md index 1c4bab3..af59892 100644 --- a/content/post/computer/compiler-bootstrap.md +++ b/content/post/compiler-bootstrap.md @@ -1,9 +1,10 @@ -+++ -title = '编译器自举' -date = 2023-12-26T13:43:22+08:00 -tags = ['compiler','bootstrap'] -categories = 'computer' -+++ +--- +title: 编译器自举 +date: 2023-12-26 +tags: + - compiler +categories: computer +--- 有一种特殊的编译技术被称为自举(bootstrap),其原理很简单,实现稍复杂。 diff --git a/content/post/computer/_index.md b/content/post/computer/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/computer/computer-system.md b/content/post/computer/computer-system.md deleted file mode 100644 index d987ae1..0000000 --- a/content/post/computer/computer-system.md +++ /dev/null @@ -1,33 +0,0 @@ -+++ -title = '计算机系统' -date = 2021-10-28T12:34:56+08:00 -tags = ['system'] -categories = 'computer' -+++ - -计算机系统主要由*硬件系统*和*软件系统*两部分组成。 - -硬件系统包括*主机*和*外部设备*。 - -> 冯·诺依曼的计算机体系结构包括五个部分:存储器、运算器、控制器、输入设备、输出设备。 - -主机由处理器和存储器组成: - -- 处理器 - - 运算器(算数运算和逻辑运算) - - 控制器(善生控制信号) -- 存储器 - - 只读存储器(ROM) - - 随机存储器(RAM) - -外部设备包括输入输出设备和外部存储器: - -- 输入设备:鼠标、键盘、摄像头、麦克风…… -- 输出设备:显示器、打印机、音响…… -- 外部存储器:硬盘、软盘、光盘、磁带…… - - -软件系统包括*系统软件*和*应用软件*。 - -- 系统软件:操作系统、语言处理程序(编译程序、解释程序、汇编程序)、数据库管理系统…… -- 应用软件:文字处理软件(Office)、图形处理软件…… diff --git a/content/post/computer/file-system.md b/content/post/computer/file-system.md deleted file mode 100644 index 1b20268..0000000 --- a/content/post/computer/file-system.md +++ /dev/null @@ -1,16 +0,0 @@ -+++ -title = '操作系统——文件系统' -date = 2023-10-29T14:43:47+08:00 -draft = true -tags = ['os', 'file','system'] -categories = 'computer' -+++ - - - - -文件是一个抽象数据结构,主要由 `元信息` 和 `数据` 组成。 -操作系统通过文件控制块(File Control Block, FCB)管理文件, FCB 记录了文件的元信息。 -如果没有 FCB ,“数据”将成为散乱无章的噪音,是没有任何意义的。 - -> 计算机内部的数据在形式上都是一串 01 ,经过特定的规则解释,才形成各种文件。 diff --git a/content/post/ctf/ctf-03k-qq/index.md b/content/post/ctf-03k-qq/index.md similarity index 96% rename from content/post/ctf/ctf-03k-qq/index.md rename to content/post/ctf-03k-qq/index.md index a52420c..0d8ca51 100644 --- a/content/post/ctf/ctf-03k-qq/index.md +++ b/content/post/ctf-03k-qq/index.md @@ -1,9 +1,11 @@ -+++ -title = 'CTF - 零散坑 QQ 号获取' -date = 2023-10-25T17:53:42+08:00 -tags = ['ctf', '03k'] -categories = 'ctf' -+++ +--- +title: CTF - 零散坑 QQ 号获取 +date: 2023-10-25 +tags: + - ctf + - 03k +categories: ctf +--- # 前言 diff --git a/content/post/ctf/ctf-03k-qq/q1.jpeg b/content/post/ctf-03k-qq/q1.jpeg similarity index 100% rename from content/post/ctf/ctf-03k-qq/q1.jpeg rename to content/post/ctf-03k-qq/q1.jpeg diff --git a/content/post/ctf/ctf-03k-qq/q2.jpeg b/content/post/ctf-03k-qq/q2.jpeg similarity index 100% rename from content/post/ctf/ctf-03k-qq/q2.jpeg rename to content/post/ctf-03k-qq/q2.jpeg diff --git a/content/post/ctf/ctf-03k-qq/q2.py b/content/post/ctf-03k-qq/q2.py similarity index 100% rename from content/post/ctf/ctf-03k-qq/q2.py rename to content/post/ctf-03k-qq/q2.py diff --git a/content/post/ctf/ctf-03k-qq/q3.jpeg b/content/post/ctf-03k-qq/q3.jpeg similarity index 100% rename from content/post/ctf/ctf-03k-qq/q3.jpeg rename to content/post/ctf-03k-qq/q3.jpeg diff --git a/content/post/ctf/ctf-03k-qq/q3.py b/content/post/ctf-03k-qq/q3.py similarity index 100% rename from content/post/ctf/ctf-03k-qq/q3.py rename to content/post/ctf-03k-qq/q3.py diff --git a/content/post/ctf/ctf-03k-qq/qg.jpeg b/content/post/ctf-03k-qq/qg.jpeg similarity index 100% rename from content/post/ctf/ctf-03k-qq/qg.jpeg rename to content/post/ctf-03k-qq/qg.jpeg diff --git a/content/post/ctf/ctf-03k-qq/what.png b/content/post/ctf-03k-qq/what.png similarity index 100% rename from content/post/ctf/ctf-03k-qq/what.png rename to content/post/ctf-03k-qq/what.png diff --git a/content/post/ctf/ctf-03k-qq/what.zip b/content/post/ctf-03k-qq/what.zip similarity index 100% rename from content/post/ctf/ctf-03k-qq/what.zip rename to content/post/ctf-03k-qq/what.zip diff --git a/content/post/ctf/ctf-03k-qq/what2.zip b/content/post/ctf-03k-qq/what2.zip similarity index 100% rename from content/post/ctf/ctf-03k-qq/what2.zip rename to content/post/ctf-03k-qq/what2.zip diff --git a/content/post/ctf/ctf-03k-qq/what3.zip b/content/post/ctf-03k-qq/what3.zip similarity index 100% rename from content/post/ctf/ctf-03k-qq/what3.zip rename to content/post/ctf-03k-qq/what3.zip diff --git a/content/post/ctf/ctf-03k-qq/what4.zip b/content/post/ctf-03k-qq/what4.zip similarity index 100% rename from content/post/ctf/ctf-03k-qq/what4.zip rename to content/post/ctf-03k-qq/what4.zip diff --git a/content/post/computer/dll-search-path.md b/content/post/dll-search-path.md similarity index 76% rename from content/post/computer/dll-search-path.md rename to content/post/dll-search-path.md index bedd66b..b833567 100644 --- a/content/post/computer/dll-search-path.md +++ b/content/post/dll-search-path.md @@ -1,9 +1,11 @@ -+++ -title = 'Windows 动态链接库找寻顺序' -date = 2023-12-26T13:34:44+08:00 -tags = ['dll', 'Windows'] -categories = 'computer' -+++ +--- +title: Windows 动态链接库找寻顺序 +date: 2023-12-26 +tags: + - dll + - Windows +categories: computer +--- 动态链接库是一种共享程序文件,Windows 下后缀名为 .dll (dynamic link library) ,Linux 下为 .so (shared object) 。 diff --git a/content/post/editor/_index.md b/content/post/editor/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/encoding/_index.md b/content/post/encoding/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/computer/executable-file.md b/content/post/executable-file.md similarity index 86% rename from content/post/computer/executable-file.md rename to content/post/executable-file.md index b8dc6f4..8079f3b 100644 --- a/content/post/computer/executable-file.md +++ b/content/post/executable-file.md @@ -1,9 +1,11 @@ -+++ -title = '可执行文件' -date = 2023-12-26T13:39:17+08:00 -tags = ['exe','PE'] -categories = 'computer' -+++ +--- +title: 可执行文件 +date: 2023-12-26 +tags: + - exe + - PE +categories: computer +--- # 可执行文件格式 diff --git a/content/post/experience/_index.md b/content/post/experience/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/experience/rust-analyzer-fetching-metadata.md b/content/post/experience/rust-analyzer-fetching-metadata.md deleted file mode 100644 index 91ede0c..0000000 --- a/content/post/experience/rust-analyzer-fetching-metadata.md +++ /dev/null @@ -1,9 +0,0 @@ -+++ -title = 'rust-analyzer 卡在 fetching metadata' -date = 2023-10-05T13:32:51+08:00 -tags = ['rust', 'rust-analyzer'] -categories = 'computer' -+++ - -有时候 rust-analyzer 会卡在 fetching metadata 这一步, -只需要删除 `~/.cargo/.package-cache` 然后重启编辑器就可以了。 diff --git a/content/post/os/fedora-config.md b/content/post/fedora-config.md similarity index 74% rename from content/post/os/fedora-config.md rename to content/post/fedora-config.md index 624394b..e6d678a 100644 --- a/content/post/os/fedora-config.md +++ b/content/post/fedora-config.md @@ -1,10 +1,12 @@ -+++ -title = 'fedora 踩坑' -date = 2024-04-11T19:38:34+08:00 -draft = true -tags = ['fedora','nvim'] -categories = 'os' -+++ +--- +title: fedora 踩坑 +date: 2024-04-11 +tags: + - fedora + - nvim + - libluv +categories: os +--- # neovim diff --git a/content/post/os/fedora-partition-gparted.md b/content/post/fedora-partition-gparted.md similarity index 96% rename from content/post/os/fedora-partition-gparted.md rename to content/post/fedora-partition-gparted.md index cae1ca3..db473a3 100644 --- a/content/post/os/fedora-partition-gparted.md +++ b/content/post/fedora-partition-gparted.md @@ -1,10 +1,14 @@ -+++ -title = '移动和调整 linux 分区' -date = 2024-04-11T17:50:30+08:00 -draft = true -tags = ['linux','partition', 'gparted'] -categories = 'os' -+++ +--- +title: 移动和调整 linux 分区 +date: 2024-04-11 +tags: + - linux + - fedora + - ubuntu + - partition + - gparted +categories: os +--- 我的 PC 最初只有一块 475 GiB 的固态硬盘,下载的文件和媒体资料占用了大量磁盘空间,但又不经常使用, 于是我购入一块 1TB 的西数移动机械硬盘作为这些“冷”文件的存储介质。 diff --git a/content/post/experience/film-collection/7xs1cz.png b/content/post/film-collection/7xs1cz.png similarity index 100% rename from content/post/experience/film-collection/7xs1cz.png rename to content/post/film-collection/7xs1cz.png diff --git a/content/post/experience/film-collection/8zhjkt.png b/content/post/film-collection/8zhjkt.png similarity index 100% rename from content/post/experience/film-collection/8zhjkt.png rename to content/post/film-collection/8zhjkt.png diff --git a/content/post/experience/film-collection/9n0zqy.png b/content/post/film-collection/9n0zqy.png similarity index 100% rename from content/post/experience/film-collection/9n0zqy.png rename to content/post/film-collection/9n0zqy.png diff --git a/content/post/experience/film-collection/apkcu8.png b/content/post/film-collection/apkcu8.png similarity index 100% rename from content/post/experience/film-collection/apkcu8.png rename to content/post/film-collection/apkcu8.png diff --git a/content/post/experience/film-collection/awjak1.png b/content/post/film-collection/awjak1.png similarity index 100% rename from content/post/experience/film-collection/awjak1.png rename to content/post/film-collection/awjak1.png diff --git a/content/post/experience/film-collection/index.md b/content/post/film-collection/index.md similarity index 97% rename from content/post/experience/film-collection/index.md rename to content/post/film-collection/index.md index 037b96b..d454857 100644 --- a/content/post/experience/film-collection/index.md +++ b/content/post/film-collection/index.md @@ -1,9 +1,11 @@ -+++ -title = '收藏电影方法' -date = 2023-06-20T14:27:01+08:00 -tags = ['film', 'collection'] -categories = 'film' -+++ +--- +title: 收藏电影 +date: 2023-06-20 +tags: + - film +categories: experience +--- + 起初是看了几部很棒的电影,时时回味,就把它们下载下来了。一直放在“下载”文件夹,与其它文件混作一团。 diff --git a/content/post/experience/film-collection/lmk7me.png b/content/post/film-collection/lmk7me.png similarity index 100% rename from content/post/experience/film-collection/lmk7me.png rename to content/post/film-collection/lmk7me.png diff --git a/content/post/experience/film-collection/om8ttd.png b/content/post/film-collection/om8ttd.png similarity index 100% rename from content/post/experience/film-collection/om8ttd.png rename to content/post/film-collection/om8ttd.png diff --git a/content/post/git/_index.md b/content/post/git/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/git/gitee-ssh.md b/content/post/gitee-ssh.md similarity index 90% rename from content/post/git/gitee-ssh.md rename to content/post/gitee-ssh.md index 7f5dca1..6d8d5dd 100644 --- a/content/post/git/gitee-ssh.md +++ b/content/post/gitee-ssh.md @@ -1,9 +1,12 @@ -+++ -title = 'Gitee 添加 ssh 公钥' -date = 2023-11-22T21:39:07+08:00 -tags = ['ssh', 'git', 'gitee'] -categories = 'computer' -+++ +--- +title: Gitee 添加 ssh 公钥 +date: 2023-11-22 +tags: + - ssh + - git + - gitee +categories: computer +--- 先前一直使用 GitHub ,已经添加了两个 ssh 密钥,在 `~/.ssh` 目录下有 6 个文件: diff --git a/content/post/experience/ipynb-export-to-PDF.md b/content/post/ipynb-export-to-PDF.md similarity index 96% rename from content/post/experience/ipynb-export-to-PDF.md rename to content/post/ipynb-export-to-PDF.md index 2963e2e..f1413a6 100644 --- a/content/post/experience/ipynb-export-to-PDF.md +++ b/content/post/ipynb-export-to-PDF.md @@ -1,10 +1,12 @@ -+++ -title = 'ipynb 导出 PDF' -date = 2023-06-22T22:08:02+08:00 -tags = ['jupyter', 'PDF'] -categories = 'computer' -+++ - +--- +title: ipynb 导出 PDF +date: 2023-06-22 +tags: + - jupyter + - ipynb + - PDF +categories: computer +--- Jupyter Notebook 是很好的编辑器,甚至可以用来写文章。 diff --git a/content/post/editor/lazyvim-installation.md b/content/post/lazyvim-installation.md similarity index 93% rename from content/post/editor/lazyvim-installation.md rename to content/post/lazyvim-installation.md index d7aae71..93eaea9 100644 --- a/content/post/editor/lazyvim-installation.md +++ b/content/post/lazyvim-installation.md @@ -1,10 +1,11 @@ -+++ -title = 'LazyVim 安装' -date = 2023-12-20T14:25:18+08:00 -lastmod = 2024-05-10T21:42:21+08:00 -tags = ['lazyvim', 'nvim'] -categories = 'editor' -+++ +--- +title: LazyVim 安装 +date: 2023-12-20 +tags: + - LazyVim + - nvim +categories: editor +--- LazyVim 是基于 lazy.nvim 的一个 neovim 发行版,类似于预先安装很多插件的 vscode ,实现了即开即用。 diff --git a/content/post/computer/legacy-syntax-of-C.md b/content/post/legacy-syntax-of-C.md similarity index 82% rename from content/post/computer/legacy-syntax-of-C.md rename to content/post/legacy-syntax-of-C.md index c4da15c..d0fd644 100644 --- a/content/post/computer/legacy-syntax-of-C.md +++ b/content/post/legacy-syntax-of-C.md @@ -1,9 +1,10 @@ -+++ -title = 'C语言冷知识(哔哩哔哩)' -date = 2024-01-20T22:42:58+08:00 -tags = [''] -categories = 'computer' -+++ +--- +title: C语言冷知识 +date: 2024-01-20 +tags: + - C +categories: computer +--- See: diff --git a/content/post/computer/linux-for-windows.md b/content/post/linux-for-windows.md similarity index 90% rename from content/post/computer/linux-for-windows.md rename to content/post/linux-for-windows.md index 15780af..32c5d68 100644 --- a/content/post/computer/linux-for-windows.md +++ b/content/post/linux-for-windows.md @@ -1,9 +1,11 @@ -+++ -title = 'Linux for Windows' -date = 2022-07-21T09:42:11+08:00 -tags = ['Linux', 'Windows'] -categories = 'computer' -+++ +--- +title: Linux for Windows +date: 2022-07-21 +tags: + - Linux + - Windows +categories: computer +--- Linux 是开发的理想环境,但在办公娱乐不如 Windows。 diff --git a/content/post/experience/manim-installation.md b/content/post/manim-installation.md similarity index 91% rename from content/post/experience/manim-installation.md rename to content/post/manim-installation.md index 591fcff..7425316 100644 --- a/content/post/experience/manim-installation.md +++ b/content/post/manim-installation.md @@ -1,10 +1,11 @@ -+++ -title = 'manim 安装' -date = 2023-06-14T22:46:35+08:00 -tags = ['manim', 'Python'] -categories = 'computer' -+++ - +--- +title: manim 安装 +date: 2023-06-14 +tags: + - manim + - Python +categories: computer +--- manim 是 3blue1brown 绘制数学动画使用的 Python 库。 在安装 manim 和配置环境时遇到一大堆坑。 diff --git a/content/post/math/23m1p14.md b/content/post/math/23m1p14.md index 53f744a..02cb071 100644 --- a/content/post/math/23m1p14.md +++ b/content/post/math/23m1p14.md @@ -3,7 +3,7 @@ title = '2023数一14题' date = 2022-12-26T08:34:56+08:00 tags = ['math', 'NPEE'] categories = 'math' -enableLaTex = true +math = true +++ 设连续函数 $f(x)$ 满足 diff --git a/content/post/math/2o-linear-const-de.md b/content/post/math/2o-linear-const-de.md index 116dfa7..1e7b62f 100644 --- a/content/post/math/2o-linear-const-de.md +++ b/content/post/math/2o-linear-const-de.md @@ -3,7 +3,7 @@ title = '二阶常系数线性齐次微分方程共轭复根通解思考' date = 2023-11-21T17:36:03+08:00 tags = ['differential equation'] categories = 'math' -enableLaTex = true +math = true +++ 二阶常系数线性齐次微分方程形如: diff --git a/content/post/math/Taylor-formula.md b/content/post/math/Taylor-formula.md index 2723682..ee3ac24 100644 --- a/content/post/math/Taylor-formula.md +++ b/content/post/math/Taylor-formula.md @@ -3,7 +3,7 @@ title = '等价无穷小/泰勒公式' date = 2024-01-10T20:46:57+08:00 tags = [''] categories = 'math' -enableLaTeX = true +math = true +++ # 指数函数 diff --git a/content/post/math/The infinitesimal order of a variable integral.md b/content/post/math/The infinitesimal order of a variable integral.md index 145886c..0e361c2 100644 --- a/content/post/math/The infinitesimal order of a variable integral.md +++ b/content/post/math/The infinitesimal order of a variable integral.md @@ -3,7 +3,7 @@ title = '变限积分的无穷小阶' date = 2023-12-26T16:21:10+08:00 tags = [''] categories = 'math' -enableLaTeX = true +math = true +++ 对于 diff --git a/content/post/math/_index.md b/content/post/math/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/math/calculus of elementary functions.md b/content/post/math/calculus of elementary functions.md index 30da261..b9661e4 100644 --- a/content/post/math/calculus of elementary functions.md +++ b/content/post/math/calculus of elementary functions.md @@ -3,7 +3,7 @@ title = '常用初等函数微积分' date = 2023-12-26T16:48:56+08:00 tags = [''] categories = 'math' -enableLaTeX = true +math = true +++ *不定积分需要 $+C$,下面都省略了。验证两个不定积分结果是否相等的方法是求导。* diff --git a/content/post/math/commonly-used-distributions.md b/content/post/math/commonly-used-distributions.md index a0f1d46..24a5c74 100644 --- a/content/post/math/commonly-used-distributions.md +++ b/content/post/math/commonly-used-distributions.md @@ -3,7 +3,7 @@ title = '常用随机分布' date = 2024-01-10T21:03:37+08:00 tags = [''] categories = 'math' -enableLaTeX = true +math = true +++ |名称|参数|概率公式|期望|方差| diff --git a/content/post/math/coordinates transform.md b/content/post/math/coordinates transform.md index c20c337..9bb5c33 100644 --- a/content/post/math/coordinates transform.md +++ b/content/post/math/coordinates transform.md @@ -4,7 +4,7 @@ date = 2023-12-26T17:26:38+08:00 draft = true tags = [''] categories = 'math' -enableLaTeX = true +math = true +++ ***不知为何无法渲染公式,暂时不用管它。*** diff --git a/content/post/math/formula/Trigonometric functions.md b/content/post/math/formula/Trigonometric functions.md index 2496cf7..c8eec3e 100644 --- a/content/post/math/formula/Trigonometric functions.md +++ b/content/post/math/formula/Trigonometric functions.md @@ -3,7 +3,7 @@ title = '三角函数公式' date = 2023-12-26T16:08:49+08:00 tags = [''] categories = 'math' -enableLaTeX = true +math = true +++ # 三角函数 diff --git a/content/post/math/some formula.md b/content/post/math/some formula.md index 81673d8..e148dfa 100644 --- a/content/post/math/some formula.md +++ b/content/post/math/some formula.md @@ -3,7 +3,7 @@ title = '一些公式' date = 2023-12-26T17:41:37+08:00 tags = [''] categories = 'math' -enableLaTeX = true +math = true +++ 记录一些公式,排列较为混乱,凑合看看吧。 diff --git a/content/post/my-first-post.md b/content/post/my-first-post.md index 8bdd6af..d054cf4 100644 --- a/content/post/my-first-post.md +++ b/content/post/my-first-post.md @@ -1,10 +1,13 @@ -+++ -title = 'My First Post' -date = 2023-10-26T20:37:14+08:00 -tags = ['blog', 'markdown', 'math'] -categories = 'computer' -enableLaTeX = true -+++ +--- +title: My First Post +date: 2023-10-26 +tags: + - blog + - markdown + - math +categories: computer +math: true +--- # Introduction diff --git a/content/post/computer/plugin-programming.md b/content/post/plugin-programming.md similarity index 91% rename from content/post/computer/plugin-programming.md rename to content/post/plugin-programming.md index 5f1bf7c..bdabaf2 100644 --- a/content/post/computer/plugin-programming.md +++ b/content/post/plugin-programming.md @@ -1,9 +1,11 @@ -+++ -title = '插件式编程?' -date = 2023-12-26T14:26:56+08:00 -tags = ['plugin'] -categories = 'computer' -+++ +--- +title: 插件式编程 +date: 2023-12-26 +tags: + - plugin + - programming +categories: computer +--- 遇到某些情况,循环内的条件在循环开始前就确定了,但只是给原来增添一些功能,为了代码复用,不必写在外边。 diff --git a/content/post/python/_index.md b/content/post/python/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/regex/regex.md b/content/post/regex-note.md similarity index 68% rename from content/post/regex/regex.md rename to content/post/regex-note.md index a6076bd..0ddd302 100644 --- a/content/post/regex/regex.md +++ b/content/post/regex-note.md @@ -1,10 +1,11 @@ -+++ -title = '正则表达式' -date = 2023-11-05T22:34:06+08:00 -draft = true -tags = ['regex'] -categories = 'computer' -+++ +--- +title: 正则笔记 +date: 2023-09-04 +draft: true +tags: + - regex +categories: computer +--- 正则表达式(regular expression)是一个模式匹配典例,正则引擎可以根据模式串从目标串中 @@ -91,3 +92,95 @@ categories = 'computer' ## 分组 ## 断言 + +--- + +正则表达式是初级的模式匹配,在字符串处理中有很重要的作用。 + +> 对于结构化文本,如 HTML XML JSON 等,使用对应的解析器更方便。 +> 正则表达式更适用于非结构化文本,如自然语言段落。 + + + +# 字符 + +使用正则表达式要与各种字符串打交道,主要是元字符、一般字符、限定符等。 + +## 元字符 + +元字符是一个字符模式,用于匹配符合该模式的字符。包括匹配字符和匹配位置两种。 + +匹配字符 + +- `.` 换行符以外的所有字符 +- `\w` 字母、空格、下划线 `\W` 补集 +- `\s` 空格、制表符、换行符 `\S` 补集 +- `\d` 数字 `\D` 补集 + +匹配位置 + +- `^` +- `$` +- `\b` + +## 字符 + +一般字符简称字符,就是字面量。 + +字符类 + +- `[string]` 匹配一个字符 +- `[^string]` 补集 + +转义字符 + +- `\` + +## 限定符 + +限定符就是量词。 + +- `{n}` 重复 n 次 +- `{n,}` 至少重复 n 次 +- `{n,m}` +- `*` 重复 0 次或多次 +- `+` 重复 1 次或多次 +- `?` 0 次或 1 次 +- `x?` 非贪婪匹配,x 表示以上限定符 + +# 运算 + +替换 `a|b` + +分组 `(x)` + +反向引用:分组从左到右遇到左括号开始从 1 编号,`\1`(有些地方使用 `$1`)引用第一个分组,不必重复编写。 +只作为整体,不希望编号:`(?:x)` + +常用分组 + +- 正向先行断言 `(?=x)` +- 负向先行断言 `(?!x)` +- 正向后行断言 `(?<=x)` +- 负向后行断言 `(?x)` + +> 正向:是它;先行:后面;正向先行:后面是它。 + +(零宽)断言 + +- `^` `$` +- `\A` +- `\z` `\Z` +- `\G` +- `\b` `\B` + +优先级 + +1. 转义符 `\` +2. 圆括号和方括号 + `()` `(?:)` `(?=)` `[]` +3. 限定符 +4. 位置和顺序 + `^` `$` 元字符 +5. 或运算 `|` diff --git a/content/post/regex/_index.md b/content/post/regex/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/regex/about-regex.md b/content/post/regex/about-regex.md deleted file mode 100644 index f3feb0e..0000000 --- a/content/post/regex/about-regex.md +++ /dev/null @@ -1,96 +0,0 @@ -+++ -title = '正则笔记' -date = 2023-09-04T12:01:55+08:00 -tags = ['regex'] -categories = 'computer' -+++ - -正则表达式是初级的模式匹配,在字符串处理中有很重要的作用。 - -> 对于结构化文本,如 HTML XML JSON 等,使用对应的解析器更方便。 -> 正则表达式更适用于非结构化文本,如自然语言段落。 - - - -# 字符 - -使用正则表达式要与各种字符串打交道,主要是元字符、一般字符、限定符等。 - -## 元字符 - -元字符是一个字符模式,用于匹配符合该模式的字符。包括匹配字符和匹配位置两种。 - -匹配字符 - -- `.` 换行符以外的所有字符 -- `\w` 字母、空格、下划线 `\W` 补集 -- `\s` 空格、制表符、换行符 `\S` 补集 -- `\d` 数字 `\D` 补集 - -匹配位置 - -- `^` -- `$` -- `\b` - -## 字符 - -一般字符简称字符,就是字面量。 - -字符类 - -- `[string]` 匹配一个字符 -- `[^string]` 补集 - -转义字符 - -- `\` - -## 限定符 - -限定符就是量词。 - -- `{n}` 重复 n 次 -- `{n,}` 至少重复 n 次 -- `{n,m}` -- `*` 重复 0 次或多次 -- `+` 重复 1 次或多次 -- `?` 0 次或 1 次 -- `x?` 非贪婪匹配,x 表示以上限定符 - -# 运算 - -替换 `a|b` - -分组 `(x)` - -反向引用:分组从左到右遇到左括号开始从 1 编号,`\1`(有些地方使用 `$1`)引用第一个分组,不必重复编写。 -只作为整体,不希望编号:`(?:x)` - -常用分组 - -- 正向先行断言 `(?=x)` -- 负向先行断言 `(?!x)` -- 正向后行断言 `(?<=x)` -- 负向后行断言 `(?x)` - -> 正向:是它;先行:后面;正向先行:后面是它。 - -(零宽)断言 - -- `^` `$` -- `\A` -- `\z` `\Z` -- `\G` -- `\b` `\B` - -优先级 - -1. 转义符 `\` -2. 圆括号和方括号 - `()` `(?:)` `(?=)` `[]` -3. 限定符 -4. 位置和顺序 - `^` `$` 元字符 -5. 或运算 `|` diff --git a/content/post/experience/rename-Windows-username.md b/content/post/rename-Windows-username.md similarity index 94% rename from content/post/experience/rename-Windows-username.md rename to content/post/rename-Windows-username.md index 74d2733..4d38713 100644 --- a/content/post/experience/rename-Windows-username.md +++ b/content/post/rename-Windows-username.md @@ -1,9 +1,14 @@ -+++ -title = 'Windows 修改用户名' -date = 2022-02-21T15:19:24+08:00 -tags = ['Windows', 'rename'] -categories = 'computer' -+++ +--- +title: Windows 修改用户名 +date: 2022-02-21 +draft: true +tags: + - Windows + - rename +categories: computer +--- + + Windows 新机激活系统或者重装系统后需要登陆微软帐户,一般是一个邮箱或者一个电话, 然后系统自动截取前 5 个字符作为用户名。 diff --git a/content/post/rust-analyzer-fetching-metadata.md b/content/post/rust-analyzer-fetching-metadata.md new file mode 100644 index 0000000..e88bd7d --- /dev/null +++ b/content/post/rust-analyzer-fetching-metadata.md @@ -0,0 +1,11 @@ +--- +title: rust-analyzer 卡在 fetching metadata +date: 2023-10-05 +tags: + - rust + - rust-analyzer +categories: computer +--- + +有时候 rust-analyzer 会卡在 fetching metadata 这一步, +只需要删除 `~/.cargo/.package-cache` 然后重启编辑器就可以了。 diff --git a/content/post/something/_index.md b/content/post/something/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/tex/tex-note-0616.md b/content/post/tex-note-0616.md similarity index 89% rename from content/post/tex/tex-note-0616.md rename to content/post/tex-note-0616.md index 1d103d1..533f78d 100644 --- a/content/post/tex/tex-note-0616.md +++ b/content/post/tex-note-0616.md @@ -1,10 +1,10 @@ -+++ -title = 'Tex 笔记' -date = 2023-06-16T13:32:47+08:00 -tags = ['tex'] -categories = 'tex' -+++ - +--- +title: Tex 笔记 +date: 2023-06-16 +tags: + - tex +categories: tex +--- 常用插图语法 diff --git a/content/post/tex/_index.md b/content/post/tex/_index.md deleted file mode 100644 index e69de29..0000000 diff --git a/content/post/something/what-is-GNU.md b/content/post/what-is-GNU.md similarity index 78% rename from content/post/something/what-is-GNU.md rename to content/post/what-is-GNU.md index ba7f730..9b40afc 100644 --- a/content/post/something/what-is-GNU.md +++ b/content/post/what-is-GNU.md @@ -1,10 +1,10 @@ -+++ -title = '什么是 GNU ?' -date = 2023-11-05T22:30:40+08:00 -tags = [''] -categories = '' -+++ - +--- +title: 什么是 GNU ? +date: 2023-11-05 +tags: + - GNU +categories: computer +--- 一段有趣的对话: diff --git a/hugo.toml b/hugo.toml index dd3483e..11fdb7a 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,3 +1,3 @@ [frontmatter] -date = ["lastmod", "date", ":git"] -lastmod = ["lastmod", ":git"] +date = ["date", "lastmod"] +lastmod = ["lastmod", "date"]