M-x Melt

An Emacser


  • Home

  • Archives

  • Tags

Philosophy in Haskell

Posted on 2025-02-17 00:00 | Post modified

Table of Contents

  • 1. Human-centric

1. Human-centric

Using a value before defining it

Read more »

Persist and reload prompt in gptel-mode

Posted on 2025-01-04 00:00 | Post modified

Table of Contents

  • 1. 生成 prompt 并保存
  • 2. 加载已保存的 prompt 并恢复对话
  • 3. 流程参考

1. 生成 prompt 并保存

  1. M-x gptel ,选择默认的后端 *Claude* ;
  2. M-x gptel-menu , set system message for this buffer , Pick crowdsourced prompt 选择 prompt generator ;
  3. Act as an clojure developer who uses Emacs. C-c RET ;
  4. M-x gptel-menu , set system message for this buffer, 粘贴刚才获得的结果;
  5. C-x C-w 保存为文件,下次可以继续打开并使用之前的语境。

2. 加载已保存的 prompt 并恢复对话

可以参考之前的博客

3. 流程参考

总体流程

Read more »

2024 年读书观影记录

Posted on 2025-01-01 00:00 | Post modified

Table of Contents

  • 1. Books
  • 2. Films
Read more »

Compute Replacement String in Emacs

Posted on 2024-11-15 00:00 | Post modified

Compute Replacement String ,顾名思义,在替换字符串时候可以带有一些计算,做一些常见的转换。

Read more »

Emacs Ledger-mode Reconcilation

Posted on 2024-11-10 00:00 | Post modified

Table of Contents

  • 1. What: Double-entry Accounting
  • 2. Why: 复式记账流程中的 Reconcile
  • 3. How: Reconcile in Ledger-mode
  • 4. Attachment   ARCHIVE

1. What: Double-entry Accounting

Double-entry Accounting 也即复式记账:

  1. 每一笔经济业务同时记录于借方和贷方,同时记录也即 double-entry ;
  2. 准确和完整反映财务状况;
  3. 很多工具支持,例如 hledger, ledger, GNU Cash 等, Emacs 的 ledger-mode 也对其有很好支持。

2. Why: 复式记账流程中的 Reconcile

Why 才是复式记账系统或者说核心。讨论 Why 从复制记账系统的流程说起,Reconcile 在复式记账中的流程处于什么位置呢? 对账的目的是确保账簿记录与实际情况相符,如银行对账单等。对账后如发现差异,需要进行调整分录。 以下步骤是复式记账的基本流程:

Read more »

Shortcuts Shares Large Amounts of Data

Posted on 2024-11-08 00:00 | Post modified

Table of Contents

  • 1. Failure & Fixup
  • 2. Improvement

1. Failure & Fixup

在使用 Shortcuts App 归档 Apple Notes App 的笔记时,遇到 This actions is trying to share 21 Notes items, which is not allowed. You can allow this in Preferences. 的错误。

Read more »

Going Home for National Day

Posted on 2024-10-19 00:00 | Post modified

Table of Contents

  • 1. 夕阳 9/31
  • 2. 不知名的甲虫 9/31
  • 3. 小狗 10/1
  • 4. 打球 10/1
  • 5. 钓鱼 10/1
  • 6. 旧书 10/1
  • 7. War3 10/3
  • 8. 回上海 10/5
Read more »

Deploy A Wordpress Site on Docker

Posted on 2024-10-13 00:00 | Post modified

Table of Contents

  • 1. Docker 部署
  • 2. Cloudflare Tunnel 设置

1. Docker 部署

利用这个 docker-compose.yml 可以搭建一个本地 20080 端口的 wordpress 服务。

Read more »

在 OpenWRT 上设置 DDNS

Posted on 2024-10-04 00:00 | Post modified

Table of Contents

  • 1. DDNS 原理
  • 2. Cloudflare API 测试
  • 3. Openwrt 设置及测试
    • 3.1. 更新设置
    • 3.2. 接口设置
    • 3.3. 验证
  • 4. 更新局域网设备地址
  • 5. 访问防火墙设置

1. DDNS 原理

家用路由器或设备定期向 DDNS 服务商发送并更新设备当前 IP 地址,并和指定域名进行绑定。在进行域名解析时, DDNS 服务器会自动解析出当前 IP ,将访问者引向设置的 IP 地址。

2. Cloudflare API 测试

  1. 不推荐使用 Cloudflare 的 global key ,最好创建仅限于修改指定域名的专用 token
  2. Read more »

如何使用独立的 org-roam 目录

Posted on 2024-09-28 11:10 | Post modified 2025-06-07 14:30

在使用 Emacs 的 org-roam 时,有可能有需求使用独立的 org-roam 目录(例如区分生活和工作的 org-roam 文件),这样每个 org-roam 目录下的数据库不会大到处理时速度很慢。

Read more »
1 2 3 … 8
Melt

Melt

Questions create realities.

74 posts
5 categories
21 tags
RSS
GitHub
© 2021 - 2025 Melt
Powered by Jekyll
Theme - NexT.Muse