Hugo

Install brew install hugo Add backlink 在 themes/xxx/layouts/partials/ 下新增 backlink.html​,内容如下。 {{ $re := $.File.BaseFileName }} {{ $backlinks := slice }} {{ range .Site.AllPages }} {{ if and (findRE $re .RawContent) (not (eq $re .File.BaseFileName)) }} {{ $backlinks = $backlinks | append . }} {{ end }} {{ end }}...

March 6, 2024 · 2 min · 521 words · Lucius Chen

setting up pass on git with a gpg key

References pass : 密码管理本不复杂 - Nayuki’s Archive Home · mssun/passforios Wiki · GitHub https://github.com/benthamite/dotfiles/blob/master/emacs/config.org#password-store Pass: The Standard Unix Password Manager Source: Setting up pass on git with a gpg key · GitHub Pass for iOS private repos 需要用 SSH Key 来访问。参考 Generating a new SSH key and adding it to the ssh-agent - GitHub Docs 生...

January 16, 2024 · 1 min · 340 words · Lucius Chen

Importing Bookmark Files for Scanned PDFs

从 FreeMdict Forum 下载的扫描电子书,发帖人提到了书签文件可以用来查找,这个想法是我之前没有想到的。尝试用 pdftk-java 来导入书签文件。 brew install pdftk-java 书签文件如下的格式,相同...

November 14, 2023 · 3 min · 1110 words · Lucius Chen

Note-taking and GTD with Emacs

得益于 Emacs 的扩展性,丰富的插件生态,我构建的笔记和 GTD 流程是杂糅在一起的。并没有完全遵照「卡片笔记法」或 GTD 的流程,其中也有不完善的地方,在不断地...

August 3, 2023 · 6 min · 2792 words · Lucius Chen

Pinboard

Misc Templatemaker 制作各种纸盒的教程,可以选择对应的例子下载剪裁的 PDF。 Wi-Phi – Wireless Philosophy 很赞的网站:Wireless Philosophy,简称 Wi-Phi ,一个开放的哲学...

August 3, 2023 · 2 min · 637 words · Lucius Chen

Clustered Indexes / Index Organized Tables (IOT)

Some databases can indeed use an index as primary table store. The Oracle database calls this concept index-organized tables (IOT), other databases use the term clustered index. In this section, both terms are used to either put the emphasis on the table or the index characteristics as needed. An index-organized table is thus a B-tree index without a heap table. This results in two benefits: (1) it saves the space...

May 14, 2023 · 1 min · 493 words · Lucius Chen

Secondary Indexes

除主键外的其他列上新建的索引都是二级索引。 二级索引的排序与物理记录的排序不一致,存储的是该列本身排序后的值和主键。

May 14, 2023 · 1 min · 57 words · Lucius Chen

Table access by index rowid

遍历二级索引树找到对应的主键后,再从索引组织表中查找数据所在的叶节点叫做「回表」。在英文中没有特定的词表示这个过程,叫做 table access by index rowidi...

May 14, 2023 · 1 min · 71 words · Lucius Chen

covering index

即可以直接通过遍历聚簇索引获取到非主键列数据的场景,即不需要「回表(Table access by index rowid)」操作。覆盖索引一般出现在「联合索引」中,因...

May 14, 2023 · 1 min · 98 words · Lucius Chen

Vanilla Emacs with Purcell

Introduction Emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish. – Neal Stephenson, In the Beginning was the Command Line (1998) Install Emacs-plus With Homebrew brew tap d12frosted/emacs-plus brew install emacs-plus --with-native-comp --with-modern-vscode-icon ln -s /usr/local/opt/emacs-plus@29/Emacs.app /Applications Build Emacs on UbuntuLucius’s Workflow git clone git://git.sv.gnu.org/emacs.git sudo apt install...

February 28, 2023 · 26 min · 12640 words · Lucius Chen