json-print 及 json-print2 2018/10/02

這兩周花了些時間做了串流式 JSON 美化程式。基本上是覺得 json_xs / json_pp 都需要等完整份 JSON 檔案讀 入進來才能開始解析。既然上百 MB 的 JSON 檔案已經不那麼罕見了,如果只是想排好看一些或是稍微用肉眼瀏覽 一下其內容結構,全檔解析實在是很浪費記憶體又要等很久。因此,若有個可以立刻有輸出的串流式 JSON 美化程 式,是比較符合實際的。


TPC::Glasgow 2018/09/29

歐洲 Perl 研討會,今年舉辨在蘇格蘭的格拉斯哥市。三天的議程之外,尚有兩日的教學課程。十分充實。


Perl 內建函數在純量語境之下的行爲 2017/07/26

最近有個同事問我爲什麼這段程式碼的輸出是 "54321" 而不是 "1" 或 "5"。


jui lightning talk: jFormino 2017/06/02

| View | Upload your own


In reply to Marty's Haiku: Winter Advice 2017/06/02

Marty is pretty awesome to make this short Haiku: Winter Advice


Bike ride: 從竹北到台中 2017/06/02

View Larger Map


Git: Checkout remote branch 2017/06/02

Using jformino repository in the example. To checkout the "gh-pages" branch:


Emacs: my snippet.el 2017/06/02

Evers since I tried TextMate, I want the small code-completion magic of that. But I can't just switch to TextMate because it totally fsck up editing Chinese text. So I stick with Emacs, and search. Then I found this snippet.el, a TextMate template add-on for Emacs. It is so great and a little buggy so I made my on little modification of it: snippet.el, and made my on perl template for cperl mode: my-snippet.el. You guys may just download it to your lisp path and say: (load "snippet") (load "my-snippet") To use this great tool. Thanks the author of snippet.el, Pete Kazmier. You are great. Cheers, Kang-min Liu


Twirc: 用 irssi 上 Twitter 的方法 2017/06/02

總之先來個有圖有真相:


ErrCount.com: 簡單明瞭的計數器服務 2017/06/02

自從學網頁程式設計以來,「計數器」不知道是多少本書裡面的範例程式了。而這功能從以往用 cgi 產生計數器圖片的實作方式,也演化出了 web 2.0 風味、javascript 版本。請連到 http://errcount.com/ ,輸入網站的 URL,就會得到一小段像這樣的程式碼: