install gitosis,要有自己的 git server 的話,覺得自己程式寫得太差,不好意思放到 github 的話 ;-)
http://www.hackido.com/2010/01/installing-git-on-server-ubuntu-or.html
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
windows 上的 GUI 的工具
http://code.google.com/p/tortoisegit/
並需先裝 http://code.google.com/p/msysgit/
windows 用安裝完後記得用,GitBash
ssh-keygen -C “yourname” -t rsa
接著就可以把 publich key 放到 C:\Documents and Settings/YOR NAME/.ssh/id_rsa.pub
有關 hudson 整合
http://wiki.hudson-ci.org/display/HUDSON/Plugins
參考資料
Git Cheat Sheet http://ktown.kde.org/~zrusin/git/git-cheat-sheet.svg
http://github.com/guides/git-cheat-sheet
http://progit.org/
http://progit.org/book/zh/ 中文版
Git from subversion
http://www.ibm.com/developerworks/linux/library/l-git-subversion-1/
http://www.ibm.com/developerworks/linux/library/l-git-subversion-2/
http://git.or.cz/course/svn.html
http://plog.longwin.com.tw/my_note-unix/2009/05/19/git-learn-initial-command-2009
Git with SVN
http://blog.kanru.info/archives/466
Linux Talks at Google
(影片有點長,我也沒有時間看,很閒的人可以看)
Commonsense Computing Documentation
Commonsense Computing Documentation 看看他的文件標題,真是令人感到慚愧,應該每位老闆,都會說我們要 Agile software development ,應該沒有人不要吧,好聽的大家都喜歡,可是真正可不可以作到又是另一回事了
可以動就好,和所謂的敏捷開發,該是好好想想了
看看在外國人眼裡,這種開發環境設定的一般常識,http://csc.media.mit.edu/docs/developers/setup.html ,看起來,好像有點專業了,在台灣的軟體環境還蠻不易的
ps: 他裡面的環境設定,不錯可以參考,尤其是在 windows 上面的 Setting up MinGW and msysgit 的部份,,可以幫幫用 windows 的朋友,同事,還有Commonsense Computing 是他們組織的名字啦,只是剛好拿來呼隆大家一下 ;-)
PostgreSQL
不知道真的假的,很久沒有用 PostgreSQL 了,記得許久以前,作我第一個自己的網站,很敢衝,用得就是 PostgreSQL,不過,後還也是因為哪時的工作環境裡,用 MySQL 已經不多了,公司太有錢,都是用 Oracle 或是
MSSQL ,我說 PostgreSQL 不只被打槍,大家根本就是覺的你是來亂的,此一時,彼一時,過了這麼多年
一定要找時間來測一下, Open Source 進步的真快
PostgreSQL and NoSQL
rtl8192se new driver
http://www.realtek.com/
感謝螃蟹公司,還是有繼續把 Linux 的支援改好一點,希望這一版,可以提昇這一個晶片組在 Linux 下的穩定性,可以讓這一隻螃蟹活跳跳,在不同的 AP 下可以表現一致一點,不過這一版的沒有 Linux 的更新
http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true
ps: 很瞎的是,這一次的更新沒有 Linux 的驅動程式
Chrome 真快
Debian 上面直接裝,跟著更新,用一段時間,真的是快上癢了
體驗一下 javascript V8 engine 的飛快,這一個 V8 引擎的開發者真的強到一個不行
怎麼可以和其他的 VM 速度差這麼多,什麼時候 Python VM 也來換一下,不過光是,一些 c 或是 c++
的套件,就可以整死人了
將這一行,加到 /etc/apt/source.list
deb http://dl.google.com/linux/deb/ stable main
衝吧
aptitude install google-chrome-beta
還有 google-chrome-unstable google-chrome-stable
pip install from github
Example:
pip install -e git+http://github.com/jacobian/djangobench.git#egg=djangobench
PS: remember to use with virtualenv and virtualenvwrapper
vim autotag.vim
http://www.vim.org/scripts/script.php?script_id=1343
place autotag.vim under you ~/.vim/plugin/
touch a file tags under the working folder, or the filename you set up in .vimrc
via
let g:autotagTagsFile=“your_tags_file_name”
modify your code,
try
# move the cursor at the function want to lookup
Ctrl + ]
# back to edit
Ctrl + t
Good luck
Django 好簡報
舊版 ubuntu 裝 daemontools
舊版的 ubuntu 裝 daemontools 會有的問題,原本一直參考的網頁爛了,自己作一下筆記
sudo apt-get install daemontools daemontools-run
建立這一個檔案,讓他可以開機執行
/etc/event.d/svscanboot ,檔案內容
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on runlevel 0
stop on runlevel 1
stop on runlevel 6
respawn
exec /usr/bin/svscanboot
執行一下
sudo initctl start svscanboot
其他在 /etc/service/ 下的設定,照舊即可
這是一個,簡單的 hudson 的 run file
#!/usr/bin/env bash
cd /home/hudson
su -s /bin/sh hudson -c “exec envuidgid hudson java -jar /home/hudson/hudson.war”
ps: 當然,很多時候,會用 Debian,用舊版的 ubuntu 當然也是因為在團隊工作的環境,不是你要用那一版就用那一版,沒有原因,沒有為什麼,大頭會決定
PyAMF django test client
有用 PyAMF 來和 flash 坐資料傳輸,在寫 Django 的 test case,還要另外把 dev server 跑起來,才可以跑測試,這是一個,Unittest 的 test client 直接可以像 Django django.test.client 裡的 Client 直接對應 url 的方式來跑
http://hg.io/madssj/pyamf-django-testclient/src/tip/client.py
如果,不用 unitetest 用簡潔的 nose 寫 test case 可以把他所有的 self.logger 的程式標成註解
from django.test.client import Client
client = PyAMFClient(Client(), ‘/your_gateway_url/’)
service = client.getService(‘your_service’)
也可以直接跑 test case