2016年9月22日 星期四

[JAVA] Parsing JSON

最近要在 Android5.1 上處理 JSON 格式的 HTTP request

記錄一下心得

1. 會使用的下列 class

import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONArray;

[MAC] Bash Configuration

environment : MacBook Pro @ OS X EL Capitan Version 10.11.6

1. create ~/.bash_profile and ~/.bashrc

I mainly use .bashrc but there are some programs will use .bash_profile.

Therefore, I also create .bash_profile and the only functionality of .bash_profile

is redirecting to .bashrc.

Here is the .bash_porfile

# use bashre
if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi

2. Some configurations of ~/.bashrc

[TOOL] tmux Configuration

environment : MacBook Pro @ OS X EL Capitan Version 10.11.6

1. Use homebrew to install tmux
brew install tmux
2. Configure
modify the ~/.tmux.conf
(1) 將控制鍵從 Ctrl+b 改成 Ctrl+f
# Use something easier to type as the prefix
set -g prefix C-f
unbind C-b
bind C-f send-prefix