3.5k words

It happens that the stage sets collapse. Rising, streetcar, four hours in the office or the factory, meal, streetcar, four hours of work, meal, sleep, and Monday Tuesday Wednesday Thursday Friday and Saturday according to the same rhythm — this path is easily followed most of the time. But one day the “why” arises and everything begins in that weariness tinged with amazement. “Begins” — this is important.
by Albert Camus

一次存在主义危机

3.2k words

前阵子就职典礼上,Sanders 穿着大棉衣端坐在椅子上的照片突然在互联网上流行。这张照片再次引起了我对这位 80 岁的高龄参议员的注意。之所以是再次,是因为在 2016 和 2020 的总统选举上,Sanders 都宣布了竞选,但都失败了。其次,他经常自称为 democratic socialist(民主社会主义),尽管有这概念的支持者,但也有反对者对 “democratic” 和 “socialist” 提出了质疑。

最令我感兴趣的是,这位 80 岁高龄的参议员意外地在年轻人中有一众的支持者,这和其它政治家带来的印象特别地不同。

《Bernie Sanders’ Guide to Political Revolution》是他在 2017 年发表的著作,或许可以作为一本指引了解一下这位很受欢迎但也有不少质疑的参议员(似乎只要是政治家,都少不了大量的质疑)。

2.2k words

上周六,7 月 14 日,miku 在纽约城举办了一场演唱会,而这也是我第一次参加 miku 的演唱会。在这里分享一些经历,感悟及收获吧。

5.4k words

需求描述

对于任意的 Error 对象,如果将其输出,我们可以看见这个异常的堆栈信息。例如:

1
2
3
4
5
6
7
8
9
10
Error
at Object.<anonymous> (/Users/lazzzis/Documents/Projects/Test/test.js:10:12)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
at startup (internal/bootstrap/node.js:238:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

可以看到这个异常来自: test.js 的第 10 行。但现在的需求是要用 代码 捕捉报错的来源文件以及行数。

3.5k words

2018 年 5 月 5 日更新: 因为我突然发现如果采用单页的话,就很难处理 SEO 的问题,所以我现在已经基本不再考虑在 hexo 的基础上考虑这个主题。所以我现在也已经在使用别的主题。在未来,我会考虑采用 vuepress 或者 peco 搭建我的博客。


大概一年以前,我发布过一个主题,名为 hexo-theme-mls。这个主题是我当时在学完如何写一个 hexo 主题后完成的。后来在学了 vue 之后,构思着再写一个主题。我非常想把它写成一个单页应用,可是一直没有思绪。直到后来看到了 hexo-theme-one,我才有了思绪,于是开始写一个单页的主题。