Thursday, October 19, 2006
Monday, October 16, 2006
毫无成就感的一天
周一,从早上上班开始马不停蹄,时间和精力全搭在数据录入上了。今天的系统慢得不是一般,老外寄crf也不统筹一下,稀稀拉拉一大堆。唯一轻松的就是下午去银行存钱等的那几分钟。maggie没事还添乱,快受不了了,再忍她几天。
明天可怎么过。
明天可怎么过。
Friday, October 13, 2006
Switch statments in Python
Python没有switch语句。本人比较笨,每次都用一对if...elif...。今天才发现在Simon的blog上,他介绍了通过dictionary和lambda实现switch。
result = {
'a': lambda x: x * 5,
'b': lambda x: x + 7,
'c': lambda x: x - 2
}[value](x)
在ASPN上,还有"Readable switch construction without lambdas or dictionaries ",建了个switch的类。
Thursday, October 12, 2006
Tuesday, October 10, 2006
ad hoc什么意思?
在SOP中看到ad hoc,缩略词中也没有解释,网上查了半天。原来ad hoc的意思是"特别的,专门的,即兴的",金山词霸里就有。
ad hoc
ad hoc
adv.(副词)
For the specific purpose, case, or situation at hand and for no other:
特别地,专门地:为某一即将发生的特定目标、事件或局势而不为其他的:
a committee formed ad hoc to address the issue of salaries.
委员会特别形成用以提交有关工资问题的提案
adj.(形容词)
Formed for or concerned with one specific purpose:
专门的:为某一特定目的形成的或与某一特定目的有关的:
an ad hoc compensation committee.
专门的赔偿委员会
Improvised and often impromptu:
即兴的,即席的:即席的,通常未事先准备的:
"On an ad hoc basis, Congress has . . . placed . . . ceilings on military aid to specific countries"(New York Times)
"在事先未做准备的情况下,国会已…规定了…对特定国家军事援助的最高限额"(纽约时报)
ad hoc
ad hoc
adv.(副词)
For the specific purpose, case, or situation at hand and for no other:
特别地,专门地:为某一即将发生的特定目标、事件或局势而不为其他的:
a committee formed ad hoc to address the issue of salaries.
委员会特别形成用以提交有关工资问题的提案
adj.(形容词)
Formed for or concerned with one specific purpose:
专门的:为某一特定目的形成的或与某一特定目的有关的:
an ad hoc compensation committee.
专门的赔偿委员会
Improvised and often impromptu:
即兴的,即席的:即席的,通常未事先准备的:
"On an ad hoc basis, Congress has . . . placed . . . ceilings on military aid to specific countries"(New York Times)
"在事先未做准备的情况下,国会已…规定了…对特定国家军事援助的最高限额"(纽约时报)
Monday, October 09, 2006
Create SAS view via ODBC
proc sql;
connect to odbc(dsn=dsn_name uid=user_name pwd=password);
create view work.view_name as select
column_name format 2. from connection to odbc(select
column_name
from source_table_name);
disconnect from odbc;
quit;
Subscribe to:
Posts (Atom)