What have you found for these years?

2010-09-06

the beginning of a week?

should be Sunday, isn't it???
but on my mac (ical) it's Monday, which seems very odd to me.
previously, i just hacked into /Library/Widgets/iCal.wdgt/Calendar.js
to make it begin from Sunday, but in OS 10.6, i found that it's
hard to make this hack, i think the code is badly written,
this logic spreads all over the javascript, can't find a vital point to hit.

finally i found where to set this stuffs.
in System Preferences => Language and Text => Formats
you can change the first day of a week. just change it to Sunday...

finally!! cong!

git filter-branch (2)

Say you want to extract a feature in a project called A to a
new project called B, and the feature is in file0.txt and file1.txt,
and reserved all commits logs. Then clone the project first:

> git clone A/.git B

Then invoke this crazy command:

> git filter-branch --prune-empty --index-filter \
"git ls-files | egrep --invert-match '(file0.txt)|(file1.txt)' |
xargs git rm --cached --ignore-unmatch"

But I don't know how to remove empty merge commits...
The docs say --prune-empty didn't apply to merge commits:
--prune-empty
Some kind of filters will generate empty commits, that left the
tree untouched. This switch allow git-filter-branch to ignore such
commits. Though, this switch only applies for commits that have one
and only one parent, it will hence keep merges points. Also, this
option is not compatible with the use of --commit-filter. Though
you just need to use the function git_commit_non_empty_tree "$@"
instead of the git commit-tree "$@" idiom in your commit filter to
make that happen.
Google says nothing as well. Anyone?

正向思考全壘打

儘管日前耳聞逆向思考全壘打,完全是翻譯自己編出來的,
但是,真是奇怪,這句話真的讓人印象深刻,大家不約而同
能夠一起引用這句話...

我一直不能理解,那些毫無意義,卻又能同時讓不同地方的人,
同時覺得有趣而想引用,究竟是為什麼?他的魅力到底在哪?

2010-09-05

2010-09-05

忽然在想(萬年發語詞),也不是我喜歡想那些沒什麼意義的問題,
只是去想那些事情時,其他的問題似乎就顯得微不足道...

請參考動物大悶鍋...
不過我好像還人了,下次來買一本

2010-09-04

2010-09-04 (2)

每次碰到這種事情的時候,所有過去相似的痛苦感就會一股腦兒全部浮現。
這種感覺真的很可怕,只要一旦稍微勾起,一瞬間就會被壓垮。過去的傷痛
永遠無法復原,只能花很長的時間慢慢遺忘。然而要喚醒,只要方法對了,
卻是如此輕易。

多麼漫長而煎熬

2010-09-04

期待這麼久,結果卻變成這樣。累了一週,然後更累。
這種日子要怎麼過啊...
可以不要那麼難受痛苦嗎?

updated: 19:00 心情得弄好一點才有辦法吃東西

All texts are licensed under CC Attribution 3.0