git-svn 搭配 remote git repo. 的注意事項

This all hinges on the fact that git svn dcommit changes the SHA1's associated with the original git commits. With that point firmly in mind, after making a commit locally, I [optionally git svn rebase then] git svn dcommit, producing the final SHA1. At that point, I push to my remote git repo.

svn dcommit 跟 rebase 一樣會產生新的 commit object;所以要先作完 svn dcommit 再 push 才不會有問題。

Tagged Git Subversion

讓 msysGit 正確處理中文

via Git 系列之二:Windows 下 Git 客户端的选择,及 msysGit 各种中文问题的解决 - 风中之哨

~/.profile

alias ls='ls --show-control-chars --color=auto'
export LESSCHARSET=utf-8 

~/.inputrc

set output-meta on
set convert-meta off

git config

git config --global gui.encoding utf-8
git config --global i18n.commitEncoding Big5
git config --global i18n.logOutputEncoding Big5 

--

Update 2011-04-07: 不要用 commitEncoding,而改用 logOutputEncoding,確保在不同機器上可以產生出相同的 commit object。(主要是為了 git-svn,因為 git-svn fetch 總是會產生新的 commit object。)

Tagged Git

Using Git to manage a web site

Using Git to manage a web site

The one-line summary: push into a remote repository that has a detached work tree, and a post-receive hook that runs "git checkout -f".

  • bare repository + core.worktree = detached work tree
  • post-receive = auto update
Tagged Git

Solution for "rails: undefined method camelize" (FreeBSD)

Don’t panic. Everyting ok and  solution is pretty simple. In fact its not a trouble with rails, but  there is a missed unmentioned dependency

all you need to do:

> cd /usr/ports/converters/ruby-iconv
> make install clean

Tagged FreeBSD Rails Ruby

啟用Vista與Windows 7的無敵模式(God Mode)

新增一個資料夾,
名稱為「GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}」。

重點是大括號的部分,前面可以隨便取。

Tagged Vista Windows 7

Java Logging Standards and Guidelines

  • Use TRACE only for tracing execution flow
  • Prefix all logging statements with a method name
  • Use DEBUG to report results to yourself and other developers
  • Use INFO to report results to Administrators and Users
  • Use Guarded Logging Use StringBuffers and toString() or toPrint() to ease and improve logging
  • Use Delegates, Managers, or Service classes as a logging juncture
Tagged Java Logging

Wise programming techniques for writing quality code

  1. Think before coding
  2. Fix bugs immediately
  3. Test individual functional elements
  4. Test complete puzzle
  5. Write robust code components
  6. Fail as early as possible
  7. Avoid quick hacks
  8. Use defensive programming
  9. Prefer strong typing over dynamic binding
  10. Write self-explanatory code
  11. Avoid sophisticated code
  12. Avoid dense code blocks
  13. Avoid code duplication
  14. Avoid magic constants
  15. Strive for loose coupling
  16. Avoid hidden dependencies
  17. Strive for flat responsibility distribution
  18. Keep related code close together
  19. Build a house, not an empire
  20. Redesign when needed
  21. Do not sacrifice quality

10件敏捷專案時間管理原則

  1. 利用DoD (Defintion of Done)
  2. 使用時間框(timeboxes)去管理工作
  3. 不要在自己的工作評估時保留buffer
  4. 延遲再決定
  5. 縮短生產週期
  6. 保持pipeline短而細
  7. 維持紀律
  8. 限制工作互換
  9. 預防持續的加班
  10. 分離急迫性和重要性