One for all,all for one.

2014年9月29日 星期一

vimdiff 讀取 stdin

›
$ vimdiff <(echo -e "aaa\nbbb\nccc") <(echo -e "aaa\nbbd\nccc")

使用 PyInstaller 將 Python 打包成執行檔

›
PyInstaller 同時支援 Windows, Linux, OS X,但是不同系統需要在其系統下進行打包 使用方式: 產生 hello.spec 檔 $ /usr/local/lib/python2.7/dist-packages/PyInstaller/m...

Python get stdout encoding

›
import sys sys.stdout.encoding References : How do you get the encoding of the terminal from within a python script? - Stack Overflo...
2014年9月17日 星期三

x86_64-linux-gnu-gcc: error trying to exec 'cc1plus': execvp: No such file or directory

›
# apt-get install g++
2014年9月15日 星期一

Python json.dumps 時含有時間物件

›
TypeError: datetime.datetime(2014, 9, 16, 10, 24, 26, 755110) is not JSON serializable class DateEncoder ( json . JSONEncoder ): d...
2014年9月13日 星期六

git list remote branches

›
可以列出本地與遠端的 branch 對應 $ git branch -avv 
2014年9月9日 星期二

MPD music directory

›
MPD search music file in /var/lib/mpd/music/*  directory References : Music Player Daemon - ArchWiki
‹
›
首頁
查看網路版
技術提供:Blogger.