星期一, 十一月 29, 2010

惊出一身冷汗

我有一个500G的移动硬盘,eSATA/USB连接,昨天拿回家了。今天拿来上班,嫌声音大,就放在桌子底下,结果eSATA线就富裕了一块,然后俺不小心踩上了一脚。等我mount进入,赫然发现目录都变成了问号,无论如何重新mount、开关电源,硬盘通通不予理会,系统回复can't read superblock。可嚇坏了俺,俺很多新工作进展通通在这个上面,真要了命了,没有备份啊!

等再仔细检查之后,才发现eSATA线给我踩断了。还好有一根USB线。立即备份:
rsync -avz work/ account@server:~/work/
数据在俺的超级计算机上基本万无一失了。以后每次回家前运行该命令。

星期四, 十一月 18, 2010

Ubuntu no_pubkey

When met no_pubkey problem during apt-get update:

gpg --keyserver pgpkeys.mit.edu --recv-key  010908312D230C5F 
gpg -a --export 010908312D230C5F | sudo apt-key add -
Note, replace the key ID with you met.

New icc and iomanip problem

Create a file named /etc/profile.d/intel.sh (or whatever you like, but with .sh extension), which contains:
source /opt/intel/composerxe/bin/compilervars.sh intel64
alias icpc="icpc -std=c++0x"
This will both set up the environment and solve the problem.
This is related to Fedora 14, g++ 4.5+, and icpc 12.

星期一, 十一月 15, 2010

何去何从?

Daniel Gianola在这里讲了两个周的课,题目叫做“Introduction to machine learning and non-parametric techniques for genome enabled data analysis”。说实在,一来我连线性模型都还没有全部通关,二来截至目前还算是个frequencist,因此许多细节没有听懂。但是最后的几段话给我留下了最为深刻的印象:

星期四, 十一月 04, 2010

男儿脆弱不如女

男儿脆弱不如女

http://www.bbc.co.uk/ukchina/simp/uk_life/2010/11/101103_men_health.shtml

男人
男性健康隐患大多数都与可以避免的因素有关联,比如肥胖、酗酒等。
从健康角度衡量,男人全面不如女人。
男子汉的形象总是跟刚阳健壮联系在一起,但英国专家们说,从主要疾病的发病率、死亡率、精神健康状况、承受压力的能力、饮食锻炼等健康生活方式等各方面衡量,男性都比女性差。

星期三, 十一月 03, 2010

Codes using MKL libraries blocked by SELinux

I upgraded my desktop to Fedora 14 today.  Then my programs written for icc can not run.
  1. programs with #include<iomanip> can't be compiled by icc, g++ is fine
    solution: copy old version of iomanip to local directory, and change code to #include"iomanip"
  2. programs are not allowed to run MKL libraries.
    solution: $chcon -t execmem_exec_t a.out
These are just some temporary solutions as I don't know the background.  Hope these problems be solved soon.

星期一, 十一月 01, 2010

Vamp: Tir N’a Noir

 Det e svart novembar, havet knuse mot strand
Ein forliste drøm fra et sommargrønt land.
Men eg huske ennå vakre Mary McKear,
Longt vest i Tir n’a Noir Va du drøm? Va du te? Va du hud? Va du blod?
Eg kan hørra deg le. Eg kan huska eg lo.
Bakom horisontar,
Så forvitra og glir
E du mi,
Mi Mary McKear.