Hello JavaScript with Node.js

JavaScript is a popular web language initially implemented on Netscape Navigator and later adapted on virtually all browsers. Since a JavaScript engine is a part of a browser, we had to embed JavaScript file in a HTML page, to load the script from the browser, and to use function like prompt() or alert() to receive from and response to develope...
「點我閱讀更多」

Convert TXT to Excel with Perl

If we want to convert comma- or space-seperated text files to Excel ones, we have to open Excel and do manual conversion. Is there automatic way to do batch conversion? Of course, you can do batch conversion without opening Excel with Data::Table::Excel. Data::Table::Excel is a Perl module to convert between Data::Table objects and Excel (xls...
「點我閱讀更多」

How to Remove PKG packages on Mac

For GUI mac software, AppCleaner is an easy way to safely and cleanly uninstall it on Mac. However, there is no easy method to uninstall PKG packages on Mac. I have written a small script to uninstall PKG packages on my homebin repo. You can easily download it with curl or wget. $ curl https://raw.githubusercontent.com/cwchen123/homebin/mast...
「點我閱讀更多」

Install Ruby Gems in Home Directory

Although some system package managers on Linux or Unix provides Ruby gems as package, you still want to gem to install updated or specific gems sometimes. One popular way is using RVM, a command-line tool which allow you to manage multiple Ruby environment. Nevertheless, if you do not need multiple Ruby versions in one system, you may also cho...
「點我閱讀更多」

KeySnail - Surf the Net with Emacs Power

Some people might prefer keyboard strokes over mouse clicks. Some people may miss convenient Emacs-style keybindings. Although we cannot do everything in Emacs, we can surf the Net in Emacs fashion with KeySnail. KeySnail is a Firefox extension for Emacs-stype keybindings. With KeySnail, you can scroll web pages down and up with Ctrl-v and M...
「點我閱讀更多」