Author Archives: cowman.chiang

Install aglio in Ubuntu 14.04

Install nodejs Ref. NodeSource Node.js Binary Distributions apt-get install -y nodejs nodejs-legacy Install python apt-get install python-dev Install aglio Ref. Github : aglio npm install -g aglio

Posted in Aglio, Ubuntu | Leave a comment

Mac 安裝 brew cask

brew install caskroom/cask/brew-cask

Posted in Mac | Leave a comment

sed 筆記

每第9個”;”換行 Ref: http://arstechnica.com/civis/viewtopic.php?f=20&t=370486 sed -E ‘s/(([^;];){8}[^;]);/1n/g’ sed.txt 擷取 plist= 與 ;erUid 中間的字串 sed -e ‘s/.plist=(.);erUid.*/1/p’

Posted in sed | Leave a comment

[Apache HBase] Install Apache HBase in Ubuntu 14.04

Java 1.7 add-apt-repository ppa:webupd8team/java apt-get update apt-get install oracle-java7-installer apt-get install oracle-java7-set-default Cloudera HBase Ref. installing-apache-hbase-on-ubuntu-for-standalone-mode Note. hbase tar file choose http://archive.apache.org/dist/hbase/hbase-0.98.5/hbase-0.98.5-hadoop1-bin.tar.gz (or http://ftp.mirror.tw/pub/apache/hbase/hbase-0.98.11/hbase-0.98.11-hadoop1-bin.tar.gz )

Posted in HBase, Ubuntu | Leave a comment

REST API

REST:REpresentational State Transfer RESTful Web Service:以HTTP為基礎 1. 所有API或是以Resource的形式存在 2. 可以接受與返回某個 MIME-Type,常見JSON格式,可以回傳PNG/JPG/TXT等格式 3. 對資源的操作會支援各種請求方法(例如GET, POST, PUT ,DELETE) WADL:Web Application Description Language URI:Uniform Resource Identifier CRUD:Create, Read, Update, Delete

Posted in 名詞解釋 | Leave a comment

[Git] Git command…

git stash: 暫存機制 git stash: 暫存機制,可保留目前狀態,重新取回其他版本的code git stash clear: 清除所有暫存空間 git stash drop {git status name}: 清除指定的暫存狀態,如果不加參數,則刪除最近的那一個 git stash list: 查看目前暫存列表 git stash apply {git stash name}: 取回暫存的狀態,如果不加參數,則抓取最近的版本 git stash show {git stash name}: 查看指定的暫存與parent差異的部分,如果不加參數,則顯示最近的那一個版本 git stash branch {git stash … Continue reading

Posted in Git | Leave a comment

[Cloudera HBase] Install Cloudera HBase in Ubuntu 14.04 x64

Install Oracle Sun Java 1.7. Add Repository. sudo add-apt-repository ppa:webupd8team/java Repository update. sudo apt-get update Install Java 1.7. sudo apt-get install oracle-java7-installer Install Java Environment Variable. sudo apt-get install oracle-java7-set-default Cloudera HBase Ref 1. – Installing the Latest CDH 5 … Continue reading

Posted in Cloudera, HBase | Leave a comment

[Ubuntu] Enable exFAT support

All you need is install the exfat-* packages. sudo apt-get install exfat-fuse exfat-utils

Posted in Ubuntu | Leave a comment

Bitwise operator (位元運算)

Ref. Wiki Bitwise operations are contrasted by byte-level operations which characterize the bitwise operators’ logical counterparts, the AND, OR and NOT operators. Instead of performing on individual bits, these operators perform on strings of eight bits (known as bytes) at … Continue reading

Posted in 名詞解釋 | Leave a comment

Camel Case (駝峰式命名法)

Ref. Wiki Camel case may start with a capital or, especially in programming languages, with a lowercase letter. Ex. ageOfStudent => the age of the student.

Posted in 名詞解釋 | Leave a comment