Stuff to do after install Ubuntu 11.10

Update repository:

sudo apt-get update && sudo apt-get upgrade

Install restricted extras

sudo apt-get install ubuntu-restricted-extras

Install compiz for desktop effects

sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-fusion-plugins-extra

After installed Audacious from software center, change preference->playlist->fallback character: cp936 to display Chinese properly
install OSD lyrics for audacious

sudo add-apt-repository ppa:osd-lyrics/ppa
sudo apt-get update && sudo apt-get install osdlyrics

Install sensors

sudo apt-get install lm-sensors
sudo sensors-detect

Install screenlet

sudo apt-add-repository ppa:screenlets/ppa
sudo apt-get update
sudo apt-get install screenlets

some shorcuts key:
super – Open dash
super + a – application dash
super + f – file dash
super + s – swtich workspace

Decmial To Binary

0.8125
0.8125*2=1.625
0.625*2=1.25
0.25*2=0.5
0.5*2=1.0

thus 0.8125 in binary is 0.1101

IEEE 754 standards

single precision 32 bit float
1 bit sign, 8 bit exponent, implicit 1, 23 bit mantissa.
»Read More

cannot create directory .svn

Today I was trying to get my project that I being working on up to the SVN server. And in the first commit I got this ugly error:

cannot create directory /xxxx/xxxx/xxx/.svn permission denied.

Then I tried to commit again, this time it gives me something like:

/xxxx/.svn containing working copy admin area is missing.

Here is the reason for this error:
One reason for this problem is that the directory is locked, thus no folder can be created under the directory and so we have the first error. And the second error is just due to the first error, the .svn is missing.
»Read More

这也会过去

古希腊有一位国王,拥有至高无上的权势、享用不尽的荣华富贵,但他并不快乐。他可以主宰自己的臣民,却难以操控自己的情绪,种种莫名其妙的焦虑和忧郁不时让他闷闷不乐、寝食难安。于是,他召来了当时最负盛名的智者苏菲,要求他找出一句人间最有哲理的箴言,而且这句浓缩了人生智慧的话必须有一语惊心之效,能让人胜不骄、败不馁,得意而不忘形、失意而不伤神,始终保持一颗平常心。苏菲答应了国王,条件是国王将佩戴的那枚戒指交给他。

几天后,苏菲将戒指还给了国王,并再三劝告他:不到万不得已,别轻易取出戒指上镶嵌的宝石,否则,它就不灵验了。没过多久,邻国大举入侵,国王率部拼死抵抗,最终整个城邦沦陷于敌手,于是,国王四处亡命。有一天,为逃避敌兵的搜捕,他藏身在河边的茅草丛中,当他掬水解渴,猛然看到自己的倒影时,不禁伤心欲绝——谁能相信如今这个蓬头垢面、衣衫褴褛的人,就是那个曾经气宇轩昂、威风凛凛的国王呢?就在他双手掩面欲投河轻生之际,他想到了戒指。他急切地抠下了上面的宝石,只见宝石里侧镌刻着一句话——这也会过去!

顿时,国王的心头重新燃起希望的火花。从此,他忍辱负重、卧薪尝胆,重招旧部并东山再起,最终赶走了外敌,赢回了王国。而当他再一次返回王宫后,所做的第一件事便是将“这也会过去”这句五字箴言镌刻在象征王位的宝座上。

后来,他被誉为最有智慧的国王而名垂青史。据说,在临终之际,他特意留下遗嘱:死后,双手空空地露出灵柩之外,以此向世人昭示那句箴言。

哲理暗示:普希金说,一切都是暂时的,转瞬即逝······因此,在我们身处顺境时,要学会惜福与感恩;身处逆境时,要学会坚忍和等待,要相信逆境只是暂时的,告诉自己:这也会过去,一切都将会过去。