Table of Contents
1. What:OPDS
OPDS stands for “Open Publication Distribution System”. OPDS is an acronym that stands for Open Publication Distribution System. It enables a streamlined way of distributing and accessing digital publications, including eBooks, magazines, and audiobooks. By utilizing OPDS, users can browse through catalogs of available content and download items directly to their devices. This protocol enhances the user experience by providing a structured format for accessing various publications.
2. Why:OPDS
In the digital age, accessing and managing eBooks has become an essential skill for readers and content creators alike.
3. Why: deploy OPDS
- Effortless Content Management
- Streamlined Sharing
- User-Friendly Interface
- Cross-Platform Access
- Enhanced Discoverability
4. How: deploy OPDS on Calibre
Update Config Files with Dotdrop
Table of Contents
1. Why
为什么要使用 dotdrop ,我的理解是「复现」,也就是重现。这个概念出现在很多场景:
- 当可以重现某个 bug 的时候,通常也找到了解决问题的方法,当然这个重现隐含的是更低成本的重现;
- 成熟产品的稳定性,也就是提升设计内可控场景的重现(至 100%)而尽量降低不可预见和不可清晰业务的重现。
重现 0% 和重现 100% 是我们追求的目标:科学研究的论文的准确度,也依赖于重现;对于任何事物的精准描述,依托于更加精准的场景。也许未来,我们会使用更好的工具来实现更快更精准的「重现」,dotdrop 在中间可以充当一个过渡的桥梁。
2. Dotdrop
Dotdrop1 是什么? As mainpage of Dotdrop says: “Save your dotfiles once, deploy them everywhere”. 其中隐含的就是同步我们的配置。
3. 安装
可以使用 pip 来安装 dotdrop 。
4. Dotdrop 使用
例如对于本地的 ~/.gitconfig
文件,dotdrop 导入后 key 为 f_gitconfig
。一般常用操作如下:
- 导入并保存文件到 dotdrop 中
dotdrop import ~/.gitconfig
- 找到目前 dotdrop 中保存文件和本地有不同内容的文件
dotdrop compare -L
- 比较特定文件 dotdrop 和本地使用的不同内容
dotdrop compare -C ~/.gitconfig
- 更新保存本地单个文件到 dotdrop 中
dotdrop update -f -k f_gitconfig
- 更新保存本地所有文件到 dotdrop 中
dotdrop update -f
- 安装或更新 dotdrop 保存文件到本地
dotdrop install f_gitconfig
- 安装或更新 dotdrop 所有文件到本地
dotdrop install -f
5. 使用 git 仓库管理 Dotdrop 文件
最好的方式还是使用 git 来对集中的 Dotdrop 文件进行版本管理,可以更加精细的了解到什么时候什么理由做的更改,在遇到问题是可以更好的回溯。
Footnotes:
Set Syncthing Excluding A Repo's git Directory
使用 Syncthing 时在不同主机端间同步文件,如果在同步完成前就对端操作,会生成临时的冲突文件 .sync-conflict*
。
Practice Ediff in Emacs
Table of Contents
1. Working with Aidermacs Code Actions
When using Aidermacs1 code actions, the system generates AI-powered modifications to your source code after responding to your prompt. These changes are displayed as a patch in Emacs’ built-in ediff
format2.
Use MPC in Emacs
Share permission between Apache/httpd and common user
Minds and Artists
有三句话,一直以来印象比较深:
Great minds discuss ideas. Average minds discuss events. Small minds discuss people.
在 Emacs 中利用正则表达式处理换行
将 Emacs 的文本中的两个换行替换为一行,用于将某些文本中具有空行的内容全都去掉,临时处理一些文本便于进一步处理的情况。步骤如下:
Philosophy in Haskell
Table of Contents
1. Human-centric
Using a value before defining it
Persist and reload prompt in gptel-mode
Table of Contents
1. 生成 prompt 并保存
M-x gptel
,选择默认的后端*Claude*
;M-x gptel-menu
, set system message for this buffer , Pick crowdsourced prompt 选择 prompt generator ;Act as an clojure developer who uses Emacs.
C-c RET
;M-x gptel-menu
, set system message for this buffer, 粘贴刚才获得的结果;C-x C-w
保存为文件,下次可以继续打开并使用之前的语境。
2. 加载已保存的 prompt 并恢复对话
可以参考之前的博客