2011年6月8日星期三

Good bands

air
boston--augustana
blonde redhead
the cardigans
cocteau twins
the cranberries
eric clapton
flunk
iron and wine
jem
massive attack
maximilian hecker
moby
paolo nutini
the perishers
pink
the pogues
portishead
radiohead
razorlight
snow patrol
sting
tori ames
travis
elenore--the turtles
tori ames
travis
elenore--the turtles
vintage material

2011年6月2日星期四

[ZT] Fighting procrastination的重要工具 by Cher

Fighting procrastination的重要工具:陷入procrastination不是什么神秘不可解释的事情,每个procrastinator,都是因为被一些distorted thinking困扰,才会失去行动力的。有一些重要的工具,就是用来untwist这些distorted thinking,让我们重新行动起来的。

 1. "时间不够了,我肯定做不完了"。大部分procrastinator并不是因为一件事有太多时间去做,而恰好是因为它快临近deadline了,觉得自己根本做不完了,太痛苦以至于反而拖下去了。解决这种distorted thought的方法就是 replace "finish it" with "start it". 告诉自己,我不需要考虑是否能完成的问题,有一点可以肯定,如果我永远不开始,当然我肯定不能完成,好的,现在,我只需要start it! 就这么简单,我现在唯一需要的,就是start it!

 2. "我好像不想干活,等我想干的时候再干吧。"procrastinator都以为人本来就是应该等到想干活的时候才能干的,(大部分以'自己想干的时候效率高'为理由来justify这种想法),并且以为身边其他不procrastinate的人就是因为想干愿意干,跟自己不一样。其实很多活就是很 boring很缺乏instant reward的,也许是写论文,也许是反复修改论文,也许是做slides,也许是写proposal,也许是打扫,要等到想干它们的时候的结果就是,永远也等不到,越等越想逃避。解决这个的办法是action before motivation, 不要等待motivation,告诉自己,i don't need to feel motivated to start the project, 先做了再说,做的过程中,因为已经开始做了,并且有些小阶段成果,往往motivation会增加起来,让自己等有更多的action.

 3. "这个project太大了,根本不是我能完成的。"越大越远的目标,越容易让人Procrastinate,因为怎么看也不像是能一下子到达的。的确,不可能一下子到达,所以需要break down into small pieces。"写完一篇论文"这个目标看上去太大,别让它出现在你的计划中,这只会让你觉得frustrated,需要赶紧去上网闲逛一会儿消除痛苦。改为"写这篇论文的一段"是不是就不那么intimidating了?再进一步分解为"把过去写过的一点相关的东西先copy-paste到论文的文件上 "和"在此基础上修改以符合这个论文的内容"和"增加一些新东西",是否就更显得容易开动些了?不光在内容上要break down into small pieces,抽象的进步也需要这样,比如,你过去一个月很颓废,每天只能平均工作半小时,现在忽然下定决心,从今天起每天工作八小时,能行吗?一般来说不行,这种是self-defeating的目标,唯一结果就是发现没有做到,自己觉得又fail了自己, fail了大家,于是像以前很多次一样,缩回自责自我否定的壳子里去。把目标break down into small pieces,这周先试试每天平均工作一小时,如果能做到,下周继续坚持,还能做到的话,再下周试试每天两小时,这样循序渐进。

 4. "太晚了, 我又没做到,完蛋了"procrastinator往往在发现自己误过某个目标时就despair了,然后消沉下去,结果很显然,就是 procrastinate了更长时间。没有procrastinator是能够一旦设定目标,从此就一帆风顺的,fighting procrastination本来就是漫长而有反复的过程,为了能够螺旋形前进,要在进入低谷时告诉自己,better late than never。是的,的确比较晚,可是从来没有一个时间是"太晚了",现在就开始比现在不开始肯定要好些,它永远都是现在的最佳选择。

 5. 体育锻炼坚持体育锻炼不光对physical health有好处,还对改善情绪,走出抑郁有不可忽视的作用。心情好了,我们才有动力去fight procrastination. 就算时间少也没关系,可以就在楼里上下几分钟楼梯,或者如果在计算机前坐太久了,做一两分钟颈部操:颈部操:前点头,后仰头,左侧头,右侧头,向左转头,向右转头,左环转,右环转。八个动作,每个动作大概花一两秒时间,慢慢的,以不能再弯曲但是也不痛为底,重复大概四轮。

[ZT] 我的毕业答辩经以及其他 by 小萨

亲爱的同修们,上周我终于回到母校,通过毕业答辩,顺利毕业了~~~ [?]

我答应了要回来写一下自己的心路的,趁着今天有点时间,先来梳理一下思路,也希望我的这些经历对还在读博(特别是文科)、在找工作第一线的同修们有一点点帮助。

这里熟悉我的同修们都知道,就在不到一年前,我还是个博士读了N多年、毕业遥遥无期的大龄学生。那个时候的日子,我都不敢回头去看。读博期间我流的眼泪,可以漂起来一条大船。我那时最大的痛苦是对未来巨大的不确定感和自信心的丧失。由于读博比较盲目,所以读得超级痛苦。写论文阶段又是off campus,身边没有了能督促自己的导师,这下更是放了羊,于是一年一年地耽误下来。拖得越久,对自己越怀疑,找工作、写论文都完全丧失动力,但是内心的压力反而随着拖延与日俱增,每天都活得象在地狱里一样。我拖延最严重的时候,一年只写了一个chapter。

在MITBBS上看到了cher的帖子,加入这个小组,才知道我那叫拖延症,也才开始面对拖延的问题。时间所限,我还是把有限的篇幅集中在写论文和毕业答辩这些方面吧。我记得紫儿和Beehappy都有很好的总结,我自己总结几点体会:

*写论文*

1.毕业论文只是一个练习,不是最终目的,降低期待值。我觉得,期待值过高,是拖延症的一个根源。毕业论文本来就是一个巨大的project,需要很多的能动性,而且不是一时能看到曙光的,如果期待值再无限拔高,那几乎是mission impossible。当年一个老师告诉我,我应该集中精力*写完*论文,而不是写一个高质量的论文时,我一边若有所悟,一边感到一点屈辱,觉得她也有点太看不起人了。但事实证明,我给自己的期待太高,以至于overwhelmed了。每交一个chapter,我都希望听到我导师说“Wow,this is wonderful!"
但事实上,无论我自己觉得有多wonderful的chapter,最后还是需要根据导师的意见来修改,而且导师其实并不会期待我给他一个超水平的chapter。这些压力完全是我给我自己的。虽然写出来超一流的chapter也是很好的,但就整个毕业的流程来讲,这是plus, 而不是necessary的部分。

2. 客观看待写论文的难度。写论文很容易自我否定,把写不出来、写不好的一切原因都归结于”我很糟糕。“其实我们没那么糟糕。写论文本来就很难 。我们看到那些老师在讲台上滔滔不绝,看到他们写的论文那么华美,那是因为他们比我们早入行N多年,他们当年也是从我们这个阶段过去的。当然不否认有牛人的存在,但毕竟牛人很很少很少的一小撮。绝大部分人的资质都是差不多的。论文已经很难了,如果我们再不给自己credit,反而辱骂自己一番,那内心的小人绝对要罢工的。与其这样,不如静下心来分析一下论文的难度,试着想想怎么让这个很难的过程变得稍微容易一些。把大砖头拆成小砖头,小砖头拆成小小砖头,一天一小块儿往上垒。总有一天会小河汇成大河,大河汇成海洋。

3. 动手、现在就动手。机器人法则,每天计时劳动,每天给自己奖励,这些都是很重要的小肌肉。我的好几个chapter都是在这种看似很boring很无奈的小trick的帮助下写出来的。脑子里的”快做吧,快写吧,“和实际的动手,完全是天壤之别。要真的行动起来,进入状态,对拖延症患者来说,最好的办法就是机器人法则。我有个习惯是把每天计时的纸片(不好意思我用电子版的总不习惯)贴在书桌边的墙上,隔一段时间就会贴满一墙,密密麻麻都是工作时间的记录,觉得很有成就感呢。不管具体时间多少,能看到自己在用功就是个很大的宽慰。

4.建立自信。我很喜欢看功夫熊猫,里面的Master Wugui说:You just need to believe,我觉得这很有智慧。我曾经对英语有心理障碍,因为来美国前自认有语言天分,结果刚来美国自信心一下子没了,好多年都没恢复。每次要说英语,我都觉得象上刑场。我的专业还是对英文要求很高的那种文科。。。后来认识了我的language partner,她一针见血地指出来,我不是真的需要语言方面的辅导(当然,需要不断充实和提高),而是需要自信。真的,当我把注意力放在表达我自己,而不是去impress 别人的时候,我可以说流利的英语,别人听我说话也没问题。就是心理上一个小小的barrier,跨越它,生活质量真的差好多。

*找工作*

1. 不要被job ad上的高要求吓到。我记得当年pangpang给我打过气,说那些写ad的人自己都可能不知道要个什么样的人,先投了再说,不投永远没机会。我现在的工作,当初在ad上写的方向和我的expertise是在一个大方向内,但是小方向上完全不吻合。他们要我是因为他们想往我这个方向发展,但是在ad上完全没反映出来。可见,job ad误人啊!

2. 被拒不代表你不好。我身边这样的例子太多了,研究做得好、论文写得好、有publication却找不到工作的多得是。找到工作的,也不是每一个都那么优秀,有些是有牛导师开路,有些是有network,有些是运气好(我就是个例子),有些是正好吻合对方的需要。真的,找工作里面好多都不是看你的成绩、publication、grants有多好多好,这些硬件当然要有,越多越好,但是不代表你没有你就找不到工作。

3. 如果找学术界的工作,campus visit前,试讲非常非常重要。这不光是让你对材料和job
 talk的方式有个熟悉的机会,而且会让你从feedback里学到很多。朋友和老师的意见真的很有用,可以大幅度地提高你job talk的质量。尽量找一些友善、positive的朋友来听你试讲,那些喜欢把人家说得一钱不值的,少找几个没害处。

4. campus visit的时候,自信最重要,相信自己是这个领域的专家,相信自己是最好的。其实博士读到最后的人,研究能力这些都没问题了,job talk什么的一般不会有硬伤,而且一定会百分百尽力去做到最好,但是不能没有信心。有了信心,哪怕只有80分的内容也会变成100分。那些面试官也都是普通人而已,他们很多时候还是看第一印象的。一个有信心又reasonable的candidate,和一个紧张得说话都结结巴巴、做事看人眼色的candidate,要我也会选第一个。

5. 尽了全力,就要给自己credit。工作市场真的变幻莫测,不能用一时有没有工作来判断人生的成败。人生长着呢,而且人是有很多选择的。只要是尽了全力的,就不要给自己太多压力,更不要负面评价。

好像就能想到这么多了哈。如果我想到别的,再来补充吧。希望有点帮助。

自从答辩后,我的拖延毛病好像又回来了,呵呵,奇怪吧。而且最近这段时间人变得很uneasy,有种失重的感觉。可能跟我在transitional的状态有关吧。我决定要勤来组里报道,督促自己前进。

2011年5月24日星期二

[ZT] Fixes and Suggestions for Springer's Journal of Mathematical Biology


LaTeX Support :: Fixes and Suggestions for Springer's Journal of Mathematical Biology
BACKGROUND: The origins of this post are a Phase Portrait post, Preamble for Journal of Mathematical Biology. See that post for the history behind this issue.

UPDATE 4: The updated svglov2.clo and svglov3.clo are not needed if the preamble is used below (i.e., if the \RequirePackage{fix-cm} line is added before the documentclass line.

UPDATE 3: See the section that redefines \autoref. Changed definition to support starred commands that are unlinked.

UPDATE 2: See the section starting with the comment "%% Level 1 Subsections". It forces subsections to show up like sections in the PDF bookmarks; this is a (strange) JMB convention. In the comment I make some suggestions for improvements.

UPDATE 1: See the small commented section "%%%% Table Support". If the LaTeX code is uncommented there, there is no need for the \noalign{\smallskip} stuff around \hline horizontal table rules. It uses the tabls package to do this.

I've been trying to fix and modernize some of the Springer LaTeX support files for the Journal of Mathematical Biology (JMB). I've come up with these...
svglov2.clo - document class option for svjour2.cls. I used fix-cm to get rid of some of the warnings about not being able to scale the Computer Modern fonts. This is not needed if the preamble below is used (i.e., with the fix-cm line before the documentclass line).

svglov3.clo - document class option for svjour3.cls. I used fix-cm to get rid of some of the warnings about not being able to scale the Computer Modern fonts. This is not needed if the preamble below is used (i.e., with the fix-cm line before the documentclass line).

spmpsci.bst - BiBTeX bibliography style file for JMB. The original version of this did not reverse the first and last name of the editors as required; I fixed that.

spmpscinat.bst - natbib compatible BiBTeX bibliography style file for JMB. Be sure to include natbib with numbers and sort&compress options.
I recommend using a preamble like this one...
%%%% Journal of Mathematical Biology (JMB) setup

% Allow Computer Modern fonts to be scaled (must be before svjour3)
\RequirePackage{fix-cm}

% Use running heads
\documentclass[runningheads]{svjour3}

% The journal's name
\journalname{Journal of Mathematical Biology}

% use Times fonts
\usepackage{mathptmx}

% flush right qed marks (Halmos square),
% e.g., at end of proof
\smartqed

% Use natbib for \citet, \citep, etc.
% (JMB: numbered citations that are sorted and compressed)
\usepackage[numbers,sort&compress]{natbib}
%\bibliographystyle{spmpsci}
\bibliographystyle{spmpscinat}

%%%% Some useful packages

% Allow for smarter labeling of enumerations and itemizations
% (consider using enumitem instead)
\usepackage{paralist}

% Provides \labelformat, which changes how \ref references look
\usepackage{varioref}

% Mathematical symbols, etc.
\usepackage{amssymb,amsfonts,amsmath}

%%%% Table Support

% UNCOMMENT THE FOLLOWING LINES TO GET RID OF
% \noalign{\smallskip} STUFF AROUND \hline's IN
% TABLES
%
% % The following three lines remove the need for
% % the \noalign{\smallskip} around the \hline's
% % in the _Journal of Mathematical Biology_ LaTeX
% % template
% \usepackage{tabls}
% \addtolength\extrarulesep{\smallskipamount}
% \addtolength\extrarulesep{1pt}

%%%% Graphics and Figure Support

% Use subfig for subfigures
\usepackage[nearskip=-3pt,captionskip=4pt,
listofformat=subsimple,
labelformat=simple]{subfig}

% Make sure subfigures have parentheses around them everywhere
\renewcommand\thesubfigure{(\alph{subfigure})}

% Use graphicx for including graphics
\usepackage{graphicx}

% When picture environments are used, use
% pict2e for better resolution and flexibility
\usepackage{pict2e}

%%%% Hyperlink and Autoreference Support

%% Level 1 Subsections
%
% JMB does this weird thing where all subsection-level PDF
% bookmarks are displayed as section-level bookmarks.
% Strangely, they do *NOT* turn on the ``bookmarksnumbered''
% hyperref option. I think their articles would be MUCH more
% readable with all level-1 bookmarks if they were prefixed
% by their section number. I'm sure they'd argue that since the
% sections are linked within the document, this is not needed.
%
% (note: another option is to set tocdepth=2 and turn on
% the ``bookmarksopen'' hyperref option)
%
% Anyway, the following redefines \addcontents line to setup
% the bookmarks like JMB articles. Must do this after hyperref
% because it redefines \addcontentsline Therefore, just use an
% AtBeginDocument.
%
\AtBeginDocument{\let\orgaddcontentsline\addcontentsline
\renewcommand{\addcontentsline}[3]{
\ifthenelse{\equal{#1}{toc}}
{\ifthenelse{\equal{#2}{subsection}}
{\orgaddcontentsline{#1}{section}{#3}}
{\orgaddcontentsline{#1}{#2}{#3}}}
{\orgaddcontentsline{#1}{#2}{#3}}}}

% Include hyperref for link support
%\usepackage[dvipdfmx, % If need dvipdfmx
%\usepackage[dvips, % If need dvips
\usepackage[% % Fine in most cases
pdfpagelabels,hypertexnames=true,
plainpages=false,
naturalnames=false]{hyperref}

% Configure the hyperlink color
\usepackage{color}
\definecolor{darkblue}{rgb}{0,0.1,0.5}
\hypersetup{colorlinks,
linkcolor=darkblue,
anchorcolor=darkblue,
citecolor=darkblue}

% In the future, it would be nice to use the package
%
% cleveref
%
% Right now, it breaks svjour3 and svjour2, so we just have to use
% autoref and labelformat :(.

% Make sure \autoref puts parentheses around
% equations and enumeration items (similar to \eqref)
% NOTE: This allows us to use \ref instead of \eqref
\labelformat{equation}{\textup{(#1)}}
\labelformat{enumi}{\textup{(#1)}}

% Make sure equations are numbered by section
\numberwithin{equation}{section}

%% We need to redefine \autoref. We should use
%% abbreviations inside the sentence and full names
%% at the beginning of sentences. Additionally,
%% need to handle the plural cases.

% \Autoref is for the beginning of the sentence
\let\orgautoref\autoref
\providecommand{\Autoref}
{\def\equationautorefname{Equation}%
\def\figureautorefname{Figure}%
\def\subfigureautorefname{Figure}%
\def\sectionautorefname{Section}%
\def\subsectionautorefname{Section}%
\def\subsubsectionautorefname{Section}%
\def\Itemautorefname{Item}%
\def\tableautorefname{Table}%
\orgautoref}

% \Autorefs is plural for the beginning of the sentence
\providecommand{\Autorefs}
{\def\equationautorefname{Equations}%
\def\figureautorefname{Figures}%
\def\subfigureautorefname{Figures}%
\def\sectionautorefname{Sections}%
\def\subsectionautorefname{Sections}%
\def\subsubsectionautorefname{Sections}%
\def\Itemautorefname{Items}%
\def\tableautorefname{Tables}%
\orgautoref}

% \autoref is used inside a sentence
% (this is a renew of the standard)
\renewcommand{\autoref}
{\def\equationautorefname{Eq.}%
\def\figureautorefname{Fig.}%
\def\subfigureautorefname{Fig.}%
\def\sectionautorefname{Sect.}%
\def\subsectionautorefname{Sect.}%
\def\subsubsectionautorefname{Sect.}%
\def\Itemautorefname{item}%
\def\tableautorefname{Table}%
\orgautoref}

% \autorefs is plural for inside a sentence
\providecommand{\autorefs}
{\def\equationautorefname{Eqs.}%
\def\figureautorefname{Figs.}%
\def\subfigureautorefname{Figs.}%
\def\sectionautorefname{Sects.}%
\def\subsectionautorefname{Sects.}%
\def\subsubsectionautorefname{Sects.}%
\def\Itemautorefname{items}%
\def\tableautorefname{Tables}%
\orgautoref}


This lets you do cool things like... (hyperlinks depicted in blue)
\ref{eq:1} produces linked "(1)"
\ref*{eq:1} produces unlinked "(1)"
\autoref{eq:1} produces linked "Eq. (1)"
\autoref*{eq:1} produces unlinked "Eq. (1)"
\Autoref{eq:1} produces linked "Equation (1)"
\autoref{sec:2} produces linked "Sect. 2.1"
\Autoref{sec:2} produces linked "Section 2.1"
\Autorefs{sec:1} and \ref{sec:2} produces linked "Sections 1 and 2.1"
\autorefs{sec:1} and \ref{sec:2} produces linked "Sects. 1 and 2.1"
\autoref{item:1} produces linked "item (i)"
\autorefs{item:1} and \ref{item:2} produces linked "items (i) and (ii)"
\citep{SK86} produces linked "[61]"
\citep[p.~41]{SK86} produces linked "[61, p. 41]"
\citep{Cha76,SK86} produces linked "[14, 61]"
\citep[e.g.,][]{SK86,Cha76} produces linked "[e.g., 14, 61]"
\citeauthor{SK86} produces linked "Stephens and Krebs"
\citet{SK86} produces linked "Stephens and Krebs [61]"





Original page (see http://www.tedpavlic.com/post_preamble_for_journal_of_math_bio.php).

2011年1月7日星期五

[ZT] ubuntu下使用latex:XeTeX+Lyx

早就听说Latex了,据说排版规范漂亮,今天就在ubuntu下安装配置了一下,方法如下:
1、安装Latex 在ubuntu下直接就可以从软件管理中安装texlive,再安装上texlive-xetex
2、编辑latex文件,保存为tex格式即可,举例如下,其中STKaiti要换成你系统中已经有的字体,可以在终端中通过fc-list命令查看字体名称。
\documentclass[12pt,a4paper]{article}
\usepackage{fontspec,xunicode,xltxtra}
\setmainfont{STKaiti}
\begin{document}
\title{试验}
\maketitle
\section{ 简介}
\end{document}
3.编译 在终端中执行 “xelatex 文件名.tex” 命令
由于xetex那些语法比较恶心,你可以使用所见即所得工具lyx,直接apt-get install安装即可。需要中文支持的话还要进行一些设置,使得lyx支持xetex编译,方法如下:
1.第一次启动Lyx后运行”工具-重配置”,让Lyx检查TeX系统装在哪,有哪些包可用,结束后退出;
2.在 ~/.lyx/preferences结尾添加两行(如果没有preferences这个文件的话,在工具-首选项中任意设置一下就有了,貌似新建一个也可以,没有尝试):
\format pdf4 pdf “PDF (xetexpdf)” “” “” “” “document,vector” \converter pdflatex pdf4 “xelatex $i” “latex”
3.在文档-首选项-语言中,编码选择Unicode(Xetex)(utf8)即可,注意不要选错了。语言选择Chinese simplified即可,貌似别的也可以,主要是编码。
4.在上面步骤的首选项菜单的Latex序中填写下列内容:
%%%%%%%%%%%%%%%%%%
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{文泉驿正黑} %这里是字体名
%中文断行
\XeTeXlinebreaklocale “zh”
\XeTeXlinebreakskip = 0pt plus 1pt
%%%%%%%%%%%%%%%%%%%%%%%
5 然后就可以通过菜单视图-pdf(xetexpdf)获得pdf输出了。要想获得pdf文件可以通过文件菜单中的导出选择pdf(xetexpdf)即可!
贴图一张: