Notes

August 2021

Note (2021-08-04 22:49)

素质教育棒棒,Comic Sans 也可以做成字帖了 👍


July 2021

Note (2021-07-27 11:08)

何伟的最后一课 | 故事硬核


Note (2021-07-17 23:43)

今天浑身是胆 在发给内部的文档里开始说书:在正文里写批注又麻烦又难看、中易宋体超丑的、中文没有斜体你用我推荐我用我不用


Note (2021-07-17 16:06)

Thought for a long time what to leave to my would-be ex-colleagues and ended up with this


Note (2021-07-15 10:55)

However they arrive at estrangement, parents and adult children seem to be looking at the past and present through very different eyes. Estranged parents often tell me that their adult child is rewriting the history of their childhood, accusing them of things they didn’t do, and/or failing to acknowledge the ways in which the parent demonstrated their love and commitment. Adult children frequently say the parent is gaslighting them by not acknowledging the harm they caused or are still causing, failing to respect their boundaries, and/or being unwilling to accept the adult child’s requirements for a healthy relationship.

Why Parents and Kids Get Estranged - The Atlantic https://www.theatlantic.com/family/archive/2021/01/why-parents-and-kids-get-estranged/617612/


Note (2021-07-15 09:19)

Vim 的 ex 模式用惯了真的让人对正则表达式乐不思蜀,比如我想用 stylus 改一个网站的字体,需要从原始 CSS 里找出所有指定了 font-family 的 selector,如果用正则表达式还要磨叽一会,但是用 vim 都不要动脑子: :g/family/norm k0yt ggpa, (找到所有包含 family 的行,光标移到上一行行首,选中到第一个空格之前的位置,复制,光标移到文件开头,粘贴,结尾追加一个逗号) 现成的 selector 就给我写好了


Note (2021-07-13 09:41)

Obsidian = 冥想盆 in Harry Potter 有多准确另说 这真是见过对网状笔记最文艺的比喻了


Note (2021-07-12 14:31)

想研究一下 Office 文档标准的修订历史 结果发现国会图书馆已经把这事干完了 图书馆员真的是一个可怕的职业


Note (2021-07-11 23:08)

结果这个 2017 年度爆款文章还能有这种后续 …… | “Cat Person” by Kristen Roupenian draws specific details from my life. https://slate.com/human-interest/2021/07/cat-person-kristen-roupenian-viral-story-about-me.html


Note (2021-07-02 11:28)

碰到个傻白甜公司拿个点商标(就是一个野鸡 TLD)注册证跑来说之前办不下来的商标办下来了 也是不忍心告诉他被沙雕商标代理骗钱了还瞎高兴


June 2021

Note (2021-06-29 09:10)

A solo walk is like entering into that Writing Room, except the entirety of the world is the room. Alone, walking those countryside villages roads and paths, I am in a near constant state of writing — either working paragraphs over in my head or dictating to my phone. I can’t shut up the writing voice.

这段看得点头如拨浪鼓

Web Excursions 2021-06-28 - Platy’s Web Excursions https://platylinks.substack.com/p/web-excursions-2021-06-28


Note (2021-06-26 21:19)

The Best Way to Clean Your Ears: With a Spoon

Over time I came to recognize the practice as something more profound: a form of meditation, of mindfulness. You have to be fully conscious, fully present in a world with ever spiraling demands.


Note (2021-06-25 10:44)

经验上,看到 HN 上发工单的帖子,可以直接页面内搜老板名字看结局 因为只要能上首页 老板基本就会感到需要本人来救火 果然:

Ask HN: Notion is withholding my company data, what can I do? https://t.cn/A6fUdJsN


Note (2021-06-23 20:31)

TODO:


Note (2021-06-14 15:46)

你也吃香喝辣完忘记擦嘴了吗


Note (2021-06-12 21:52)

The law firm’s staff is slowly trickling back and getting reaccustomed to office life. A particular highlight, said a partner in the firm, is “to be able to look out at the river, all seasons, all times of day."

not my highlight at all and just leave that to yourself, thank you very much.


Note (2021-06-12 15:02)

讲一个冷笑话 我的 CHH 账号有小半年没能登录进去了 因为异地 IP 被风控要验证手机号 而我再怎么试都填不对手机号(一个十位美国号码) 今天突然开窍 地区选成巴基斯坦(+92),号码填剩下的八位数 就对了 ……


Note (2021-06-11 13:06)

WWDC 视频里主讲人的多元性实在太过于完美,让人都有点怀疑苹果是不是在确定人选的时候搞了个算法,按照几个维度穷举,务求把所有排列组合都覆盖到,仿佛有点从 affirmative action 变成 quota system 的味道了


Note (2021-06-10 18:16)

我以为自己已经够菜了 仿佛是要给我打气一样最近频繁遇到更菜的 「轮次定义不影响其他股东权利只要公司同意就可以改」[费解]


Note (2021-06-08 17:25)

果味包容写作指南:Apple Style Guide > Writing Inclusively

整体比较常规,但也有些不太容易想到的点


Note (2021-06-07 20:15)

一点正能量 这期扭腰客的封面是去年夏天就画出来的,但是当时被拒了,因为「没到时候」。现在可以发出来了 | Adrian Tomine’s “Easing Back” | The New Yorker https://www.newyorker.com/culture/cover-story/cover-story-2021-06-14


Note (2021-06-06 09:23)

发现一个专门拍游泳池的神仙 ig 号 instagram.com/bradscanvas/ NYT 文章:nytimes.com/2021/05/31/travel/pools-from-above.html


Note (2021-06-05 08:38)

POKEGB: a gameboy emulator that only plays Pokémon blue binji.github.io/posts/pokegb/


Note (2021-06-02 08:19)

对办公环境的 Word 文档格式逐渐得过且过,像正文直接写评论、全角方括号和高亮这类随地大小便做法我已经懒得管了,但还剩一个底线是,经过我手的文件不可以出现斜体中文。老板发的也不可以。可以折磨我但是不要折磨汉字


May 2021

Note (2021-05-28 01:12)

今天升级软件包把服务器玩跪了 nginx 和 mysql 都罢工而且没法重装(好像是依赖乱了)一边上班搬砖一边救火终于捡回来一个完整博客

中间掉进坑里无数次,但实际解决方法意外的简单:

  1. sftp 到 /var/lib/mysql 也就是默认的 data dir,复制出来 ib_logfile0、 ib_logfile1、ibdata1(InnoDB 的文件)和 wordpress/ 数据库目录
  2. ssh 到新的 remote 装好 LNMP 基本环境,把上面备份的文件复制到 /var/lib/mysql,然后对这个目录 chown -R mysql:mysql 修一下权限
  3. 进 phpMyAdmin 检查一下,同时先导出一份 sql 备份
  4. 装 WordPress 挂上这个原来的数据库(也可以把备份导入到已有的数据库,但是要过渡性地改一下 wp_options 表里面的 URL)
  5. 进 wp-admin 页面装回原来的插件和主题(看页面上的报错就知道缺了哪些插件),同时导出一份 xml 备份
  6. DNS 把原来域名指向新的 remote

教训:

  1. 不要在滚动更新的发行版上装生产环境
  2. 不要在滚动更新的发行版上装生产环境
  3. 不要在滚动更新的发行版上装生产环境,其实我装的就是 Debian,但我嫌包太老智障一般把 apt 切换到了 unstable 频道
  4. 保持冷静,出问题先拍一个快照止损,然后能备份的全部拖下来备份
  5. 看官方文档,一开始看半天 reddit 和 stackoverflow 全都是无效信息,最后思路全部是 mysql 和 wordpress 官方文档提供的
  6. 鸡蛋不要放在一个篮子里,虽然救回一个博客,但是本来配置的 RSS、pastebin 和 nextcloud 都没了
  7. 管理型服务多收的钱真的不完全是黑心