logo

lifelong journey with

understanding and presenting

Thu, Oct 26, 2017
Upgrade Ruby to the lastest version on Mac OSX with Homebrew

Quick Tips

Upgrade Ruby to the lastest version on Mac OSX with Homebrew

Recently when installing some gems, it popped out errors that telling the Ruby version is lower than required... I have to upgrade the shipped Ruby, version 2.0.0p648 (2015-12-16 revision 53162), on my machine. There are a few methods dealing with this, but I found the easiest way is using Homebrew.

continue reading
Sun, May 21, 2017
Build a personal Markdown notebook with Firebase Storage

Site Construction

Build a personal Markdown notebook with Firebase Storage

Just make a online Markdown notebook using Firebase, build for personal use.

continue reading
Mon, Apr 24, 2017
Common sorting algorithms, understand and implemention in C

C Notes | CS Basics

Common sorting algorithms, understand and implemention in C

Understand the common sorting algorithms, just because recent take CS50 course.

continue reading
Thu, Apr 20, 2017
First taste of Heroku, h5ai for file indexer

Site Construction

First taste of Heroku, h5ai for file indexer

I've known Heroku for a long time, but never have a try to build with it. This time, I found a beautiful file indexer h5ai that requires PHP 5.5+, and Heroku is a perfect platform to build and host it.

continue reading
Sat, Mar 25, 2017
Self-host comments in Jekyll, powered by Firebase real-time database

Site Construction

Self-host comments in Jekyll, powered by Firebase real-time database

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 many comments →_→), simple and controllable. And it becomes true with Firebase database.

continue reading
Sat, Mar 18, 2017
Syntax highlight with Rouge in Jekyll

Site Construction

Syntax highlight with Rouge in Jekyll

By default, Jekyll 3 and above versions 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.

continue reading
Mon, Oct 03, 2016
Save script bookmarklets in Microsoft Edge

Quick Tips

Save script bookmarklets in Microsoft Edge

Bookmarklets are shortcuts that actually run javascript snippets, usually to add a page to a service. But saving a bookmarklet was trickier than I thought in Edge.

continue reading
twitter github weibo linkedin
to top