2013年10月29日 星期二

python split string by multiple space

str = '111111      222222      333333'
arr = str.split()
print arr
['111111', '222222', '333333']

Structure Sensor 3D 掃瞄器

* iPad  使用

* 深度感應器、紅外線、紅外線補光燈、電池


* Kincet : RGB camera, Depth sensor, Microphone Array, Skeleton Tracking




Reference :
Structure Sensor 透過 3D 深度感應器搭配相機,讓iPad 變成神奇的 3D 掃瞄器!
Kinect Sensor

2013年10月26日 星期六

dunst shortcut key

    # shortcuts are specified as [modifier+][modifier+]...key
    # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
    # and 'mod4' (windows-key)
    # xev might be helpful to find names for keys
 
 
 
 
Reference :

python language detect library - chromium-compact-language-detector


透過 Python binding C++ libcld 的函式庫


以前要手動下載編譯,現在可透過 pip 自動執行這步驟
# pip install chromium_compact_language_detector




手動方式:

安裝 libcld
$ cd compact-language-detector-0.1
$ ./configure
$ make
# make install


安裝 python binding library
$ cd chromium_compact_language_detector-0.1.1
# python setup.py install





Reference :
chromium-compact-language-detector - C++ library and Python bindings for detecting language from UTF8 text, extracted from the Chromium browser - Google Project Hosting