快轉到主要內容
  1. Categories/

程式開發

2014


Docker service behind proxy - Ubuntu

·1 分鐘

編輯 /etc/default/docker
把以下 export http_proxy 的那一行 unmark, 然後改成你的 proxy 設定

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Docker Upstart and SysVinit configuration file

# Customize location of Docker binary (especially for development testing).
#DOCKER="/usr/local/bin/docker"

# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

# If you need Docker to use an HTTP proxy, it can also be specified here.
export http_proxy="http://127.0.0.1:3128/"

# This is also a handy place to tweak where Docker's temporary files go.
#export TMPDIR="/mnt/bigdrive/docker-tmp"

重新啟動 docker service — service docker restart

Git-Tf 協同作業,Git 的一些小設定

·1 分鐘

本身有用 Windows, Mac 在開發系統,我其實是偏好在 Mac 編輯,因為我喜歡 Sublime Text !!!

不過,在 Windows 中用 Visual Studio 2013, 公司內部是規定使用 TFS (老實說我不是很喜歡,不過整個團隊以及公司都是這樣,也不得不用~)

有些時候,不想使用笨重的 VS2013,像是開發 Web Project,我還是喜歡用 Sublime Text 編輯,像是 javascript/html 都有不錯的開發經驗~ 所以只好用 git-tf 來做界接~

5 javascript debugging tips you'll start using today

·1 分鐘

原文出處
這是前幾天在網路上看到的一篇文章,我懶得翻譯標題的部份 (其實我不太會翻譯) 我個人覺得很有幫助,剛好最近有在寫 SPA 的專案

以下是我對原文的一些自己的理解,也算是簡單的翻譯啦。
下面用到的瀏覽器都是 Chrome (不得不說,這真的是 Web 開發者的一大利器,比起 ie 好太多了~又快~)

2013


Hubot first try

·1 分鐘

最近剛好想學 CoffeeScript,前幾天又看到有 hubot 的新聞,所以就想說來玩一下 Hubot