书摘:自卑与超越

作者:【奥】阿弗雷德·阿德勒

2013-03-30 17:45:35
人生的意义即“对整体作出贡献”。

2013-04-01 06:35:55
人的目标一旦建立,随后便会开始自我管理。

2013-04-01 06:36:29
人生的真谛就在于奉献与合作。

2013-04-01 06:38:08
他们对于人生的理解已经表现在他们的行为之中,如果他们不对自己的思想加以改变,行为自然也不会改变。

2013-04-01 06:39:15
正因为无人可以理解他们的痛苦,所以他们总是越来越自我。

2013-04-02 14:06:03
在那些孩子的心目中,他们的愿望就是法律,自己无须争取便可达到一切。他们还认为自己天生就具有某种权力,无人能及。然而,一旦他们不再成为众人的焦点,他们的位置被人取代时,便会无法忍受,他觉得周围的人都对他有所亏欠。在他们的生活中,已经习惯了只索取而不付出,他们根本不懂得如何面对生活中的问题。因为一直生活在别人的关照之中,他们已经没有了自立能力,也从不知道自己能做什么。他们的脑海中除了自己别无他物,根本不懂得与人相处、合作的益处。当有困难出现,他们唯一想到的便是求助于人。

2013-04-02 14:11:34
无论是对别人公然反抗还是将别人的善意当成恶意,都表明他们对人生的理解是错误的。

2013-04-02 14:12:13

…more

Quickest fix: Windows - Taskbar Has Disappeared from the Desktop

  1. Press Alt + Ctrl + Del => choose Task Manager
  2. find the Windows explorer process,
  3. Restart it.

PS: If you use a remote desktop, Press Alt + Ctrl + End instead. It's actually not a fix; it's only a workaround. Anyway, we cannot expect there to be a perfect fix for that. Microsft just sucks.

Movie "2010 The Year We Make Contact"

Watched this movie Last night on my macbook pro 2015 alone. I like it because it is a little less scientific but a little more romantic. I cannot help to recall the book “2010: Odyssey Two”, which I read it many years ago.

HAL9000: "Thank you for telling me the truth." I cannot tell you more before you watch it :D

If you want to watch this movie and haven't watched "2001 Space Odyssey". Please watch that movie first; it will help you understand this movie.

Movie "Awakenings" (無語問蒼天)

最近頗讀了幾本與大腦有關的書。這個禮拜我在讀的書是《讓成熟的大腦自由》。在這本書裏提到了"Awakenings" (有名爲《睡人》和《甦醒》兩個不同的中文譯本,遺憾的是我沒有找到電子版本)這本書,又提到這本書被拍成了一部同名電影,進而得知它還得了一個中文名字《無語問蒼天》。出於對腦科學的好奇,我今天一個人看了這部電影。它真的是蠻感人的一部影片,劇情很緊湊,沒有什麼費話和刻意,我很喜歡。另外,它足足有兩個小時長,如果你也想看的話,建議找一個相對比較完整的時間。

我是在這個 在線觀影 地方用電腦看的這部電影。

它讓我感受到腦科學的神奇和複雜,也讓我對一線的腦科學研究者產生了深深的敬意。我應該約 Eric 抽個時間再看一遍。

git diff/difftool

set meld as an external diff tool, it is the Old way, which is no longer preferred

First you will need to create a simple wrapper script for meld

$ cat ~/bin/git-meld
#!/usr/bin/bash
exec Meld "$2" "$5"

Please don't forget to add the directory containes Meld.exe to your PATH environment variable.
if you are using a real Linux system instead of MSYS2, you will normally need to change Meld to meld and /usr/bin/bash to /bin/bash

After that, run git config --global diff.external git-meld. Ok, you have done. Every time you run git diff, meld will be called.

In case you want to temporarily disable the behaviour, run git diff --no-ext-diff

Normally it is enough for your daily diff job. However, there is also another approach that you can always keep the default text diff behaviour for git diff while you use git difftool for a gui diff.

Another way / Preferred way

Regarding this approach,

  • don't set the diff.external config, so we will not change the default diff behaviour
  • run the following config instructions:
git config --global diff.tool meld
git config --global difftool.prompt false

If you want a normal text diff, run git diff as usual. If you want a GUI diff, run git difftool instead.
PS. Based on my experience, the second way is more comfortable, so it is the preferred way.