兜了一大圈,我的默认游戏平台又回到了 PC

作为玩家二十多年,我的”默认游戏平台“从 PC 开始,到自己工作后终于有了选择无脑 PS4,到喜欢 Switch 的轻量特性,到去年对被索尼欺骗多年深恶痛绝转投 Xbox,再到去年底又回归了 PC,我兜兜转转了一大圈的经历应该对在主机交接换代之季的今年想要选择游戏平台的玩家们应该还蛮有参考价值的,不如就此写个复盘,分析一下为什么我觉得对我来说 PC 是最好的游戏平台。

在此”默认游戏平台“指,如果一个游戏是跨我拥有的其他平台的话,我会优先选择购买的版本。

Continue Reading
Loading spinner

Kindle Notes 轻松导出导入 Notion —— 我的第一个 chrome extension

经过一周多的审核,我的第一个 chrome extension 终于上线啦!完全免费、开源,不收集任何用户信息,导出 csv 文件可导入 Notion 或任何可导入 csv 的笔记系统。跟 readwise 说再见。

点此到 Chrome extension store 下载

Screen Shot 2021-04-08 at 1 04 09 AM

与我之前的微信读书导出工具类似。不过微信读书那个工具需要会用命令行和装 Python,本工具只要有 chrome 就能用。

版权归作者所有,任何形式转载请联系作者。
作者:椒盐豆豉(来自豆瓣)
来源:https://www.douban.com/note/800152192/

(注:由于没有美区之外的 Kindle 账号我无法测试 i18n,本插件暂时只支持美区 Kindle 账号,如果有人愿意测试的话欢迎提交 pull request)

Continue Reading
Loading spinner

Mastodon 中文全文搜索失效 debug 日记及修复方法

我的长毛象实例最近全文搜索失效,debug 了一下失效原因。简而言之,elasticsearch 自动更新了,所以之前装的中文全文搜索 plugin 本来是给 6.8.12 built 的,现在 6.8.14 运行不了,elastisearch 就卡死了。

解决方法:

1. 在根目录下运行
/usr/share/elasticsearch/bin/elasticsearch-plugin remove analysis-ik
/usr/share/elasticsearch/bin/elasticsearch-plugin remove analysis-stconvert
来卸载旧版本 plugin。

2. 运行如下两个命令下载为新版本编译的两个中文 plugin。
/usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/
download/v6.8.14/elasticsearch-analysis-stconvert-6.8.14.zip

/usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-stconvert/releases/download/v6.8.14/elasticsearch-analysis-stconvert-6.8.14.zip

3. restart elasticsearch,运行 sudo systemctl restart elasticsearch.

以下是 debug 过程,不想深入研究的可以不看。

  1. 今天早上本站用户说搜索坏了,搜不到嘟文只能搜到用户名和 tag,我当时在手机上以为是之前搜索不全的老问题。
  2. 今天晚上自己测试了一下,确实任何全文搜索都搜不到,打开 sidekiq 发现从四月初开始 failure 暴增,应该是有问题。
  3. failed message Faraday::ConnectionFailed: Failed to open TCP connection to localhost:9200 (Connection refused - connect(2) for "localhost" port 9200) ,Google 此 message 可知是 elasticsearch (后简称 ES)的问题。
  4. Google 如何查看 active ports(没错这玩意儿天天用但是永远记不住,but why bother though),用 sudo netstat -tulpn | grep LISTEN 发现 9200 not active.
  5. Google 如何重启 ES,运行 sudo systemctl restart elasticsearch ,但发现 sidekiq 失败 message 并没有下降。Google 如何查看 ES 状态,运行 sudo systemctl status elasticsearch,发现重启失败,最后一行报错是 JAVA_HOME not set.
  6. export JAVA_HOME=/usr/bin/java ,重启 ES,发现没有解决问题,Google 之后发现有人说可能这并不是错误所在。
  7. Google 如何查看 ES log,运行 less /var/log/elasticsearch/elasticsearch.log ,发现报错 uncaught exception in thread [main]
    org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: Plugin [analysis-ik] was built for Elasticsearch version 6.8.12 but version 6.8.14 is running
  8. 在 mastodon doc(https://docs.joinmastodon.org/admin/optional/elasticsearch/ )里找到当初安装的俩中文 index plugin repo,进入 repo 找到安装方法,Google remove elasticsearch plugin 方法卸载旧 plugin,安装 6.8.14 相对应新版本的俩 plugin。
  9. 重启 ES,查了几次 status 发现运行稳定,sidekiq 里 failed retry queue 稳定下降,在 Mastodon 里随便搜了几个中文出现了过去的嘟文,确认问题解决。

如果喜欢本文的话,欢迎在 Patreon 给我打赏顺便解锁一下小 perks(不喜欢月费的话页面最下方可以 make custom pledge 输入自定义金额 (ง •̀_•́)ง)。Patreon 里提供诸如 1:1 聊天和博客选题投票等金主特权,如果想多聊几毛钱欢迎来成为金主:Become a Patron!
Loading spinner

The Perfect Phone for Casual Bird Lover – Samsung Galaxy S21 Ultra One Month Later

It’s been more than a month since I’ve been using Samsung Galaxy S21 Ultra, and I’m still constantly shocked at how good the 10x zoom is. In short it’s the best phone money can buy for almost all people. But I’m also surprised at the lack of reviews and appreciation for the zoom lens I’ve seen on youtube. So this review will focus on the zoom capability from a bird lover’s perspective. I’ve already done a full review, if you read Chinese click here check it out.

The 10x zoom, or zoom ability in general, is the most underrated feature for this phone, in my opinion. Back when you could only have two lens on a phone, I agreed that most people and I would prefer an ultra wide angle lens than a 2~3x zoom. Thus there’s a popular opinion of “Zoom lens are useless””Zoom lens are just gimmicks” among tech Youtubers. But this argument is so 2018. Nowadays all flagships have 3 or more lens, and the Zoom capability on some of them unlock you for a LOT more shot that you can never imagine.

Compared to Oneplus and many other companies’ approach of shameless wasting space and money on making the 4th lens a monochrome or shitty 2MP micro simply to pretend they have a higher end camera array, I prefer Samsung’s approach much more. A high quality 3x zoom, not only for zooming but also for that more close-to-human-eye perspective, plus a 10x zoom with killer stabilization, for wildlife, buildings, reading assist in distance, this is a casual bird lover’s dream.

It sounds less impressive thank it actually looks. This review is full of video and picture comparison, so connect to your wifi and let’s get started.

Continue Reading
Loading spinner

2021 三月消费理财好物读书游戏总结

三月的收入支出大体上没什么变化,继续按照一二月总结的分类来写。可以用上面的目录直接跳转到感兴趣的部分。

Continue Reading
Loading spinner