logo
Self-hosted comment system in Jekyll, powered by Firebase real-time database

Self-hosted comment system in Jekyll, powered by Firebase real-time database

Mar 25, 2017 - by Frank Lin
It's convenient to set up a comment system in Jekyll site with external social comment systems like Disqus or Duoshuo (多说). However, as you all know, Disqus was blocked in China and Duoshuo is going to shutdown. It's the time to rethink about the comment system (although I didn't get too much comments →_→), simple and controllable. And it comes true with Firebase database.
Syntax highlight with Rouge in Jekyll

Syntax highlight with Rouge in Jekyll

Mar 18, 2017 - by Frank Lin
By default, Jekyll 3 and above comes with Rouge, a pure Ruby syntax highlighter which supports 98 languages. Since Rouge themes are compatible with Pygments’s stylesheets, it’s nice for us to choose the favourable styles.
吾家博客初长成

吾家博客初长成

Feb 06, 2017 - by Frank Lin
断断续续折腾博客有一年多了,博客文章却没写几篇,甚为汗颜。最近下定了决心修改模板,如今已算是大功告成,我想很长一段时间不会再有大的改动了,今后还是要以内容为主才是,谨记谨记!
定点数与浮点数

定点数与浮点数

Jan 17, 2017 - by Frank Lin
定点数表达法的缺点在于其形式过于僵硬,固定的小数点位置决定了固定位数的整数部分和小数部分,不利于同时表达特别大的数或者特别小的数。最终,绝大多数现代的计算机系统采纳了所谓的浮点数表达方式。这种表达方式利用科学计数法来表达实数,即用一个尾数(Mantissa),一个基数(Base),一个指数(Exponent)以及一个表示正负的符号来表达实数。
LabVIEW 中 XY 图实时显示多曲线

LabVIEW 中 XY 图实时显示多曲线

Jan 16, 2017 - by Frank Lin
最近组里同学叫我帮忙编个实时显示多条曲线的 LabVIEW 程序,用来观察光谱随时间的变化。以前写过类似程序,本以为胸有成竹,没想到真到用时又忘了具体实现方法,还得去找以前收藏的笔记。这次就把笔记再总结一下分享出来,以备不时之需。