Monday, January 26, 2009

crontab example.

10 10 19 11 * /data/lgou/LMCX-1/rxte/DataAnalysis/general/ErrorAnalysis/error1/wrapper >& /dev/null

%%%%%%%%%%%%%%%%%%%%%
contents of wrapper:

#!/bin/csh
#source /home/lgou/.cshrc
setenv HEADAS /data/lgou/heasoft/headas-6.4/x86_64-unknown-linux-gnu
source $HEADAS/headas-init.csh
/data/lgou/LMCX-1/rxte/DataAnalysis/general/ErrorAnalysis/error1/error_analysis_all1.pl

Wednesday, January 21, 2009

laptop memory

http://forum.notebookreview.com/showthread.php?t=179939

What is RAM? When the end user thinks of RAM they are thinking of a RAM Module which for notebooks are called SO-DIMM (small outline dual in-line memory module). The modules consist of DRAM chips (integrated circuits) on a PCB (printed circuit board).



The black squares are DRAM chips the green is the PCB.

Five company's manufacture virtually all consumer DRAM chips produced. The DRAM is the foundation of the SO-DIMM. Producing these are so expensive and require so much infrastructure to manufacture that there is no such thing as an “off brand” here is the list of those company's.

Samsung largest
Hynix 2nd largest
Qimonda AG (Aeneon) 3rd largest
Micron (Crucial)
Elpida Memory

To make these into the SO-DIMM's we are familiar with requires assembling the module which some of the DRAM manufacturer's do, but many others do this as well, many names which you are likely even more familiar with. While producing a PCB (printed circuit board) is less demanding than manufacturing the DRAM, it still requires expertise and infrastructure that limits low quality products on the market. Here is a list of many in no order.

Kingston Technology
G.skill
Crucial (Micron)
Corsair Memory Inc.
OCZ Technology
Transcend
A-Data
Aeneon (Qimonda AG)
All Components Inc.
APIDA
Buffalo Technology
Centon
GeIL
Kingmax
Lenovo
Mushkin
Patriot Memory
PNY Technologies
PQI
Simple Tech
SUPER TALENT
TwinMOS
Wintec Industries

My opinion is because of the resources required to produce the sticks of RAM we buy there is realistically no such thing as non-brand name. The important thing to do is get a lifetime warranty from the seller or manufacturer which is standard now so should not be an issue. If it is you should purchase elsewhere.

A lingering question many might have is, what about performance? Good question. My answer is RAM performs as rated or it does not. You can not stop some one from placing a fake sticker on a stick of RAM. That is old fashioned fraud. That aside there are many applications for free you can use to confirm you did get what you paid for. CPU-Z is a good one but by no means the only. The specifications for the standards of RAM and also all IC's (integrated circuits) is JEDEC. RAM has a tendency to either work or not so wondering if it is working correctly should not be a great concern as long as you have confirmed it is the correct size and speed as well as latency. If it works and all three of those are the same there is absolutely no difference between RAM of any brand name, it is telling you what it can do.

Finally, why do they sell RAM that is for example; “gold”, “Titanium” and “extreme performance”, Those, to some level have been tested to perform beyond the standards and specifications of the JEDEC standards. You ask, well shouldn't I buy that? If you overclock and want to do this then you should already know more than this Guide is meant to teach you. But I will make clear that for the rest of us, do not confuse these “enthusiast” level SO-DIMM's with greater durability when operating in the specified standards, and add to that your lifetime warranty, it is not worth the extra money unless you have a reason. They will not perform any better unless you are tweaking.


Thought I would see if I could put a guide together. Let me have it. I will change to make better if anyone gives me input. After writing I think the name might be confusing. I could of explained things like; 5300/5400, 6400 but people ask which brand is better so often. Like what is better Kingston or Crucial. I do not think it matters especially between those two or any for that matter.

Tuesday, January 20, 2009

limiting magnitude estimate

http://brucegary.net/deep_zoom/x.htm

Astronomy Encyclopedia

http://astronomy.swin.edu.au/cms/astro/cosmos/P/Proper+motion

Friday, January 16, 2009

write/read mac-formatted drive in windows

用macdrive, 可以从好多地方下载,须要6.06版本以上。

中医讲座。

http://ngotcm.com/forum/viewthread.php?tid=88813

【山野版】民间中医讲坛:原始中医 简单易学


                                                                                               心物一元

    山野版有别于山寨版,这里可都是原创内容,是在学校不能看到、听到的内容,这里力图从另类角度来让大家快速理解、掌握中医的精髓,把有此心的读者打造成一流的实用中医。

    山寨版的便宜,这山野版的如何?只要你用心去寻找,都是天然野生的好药材。

    有别于学院派的管道中医分析角度,这里类似无管道的经络思维角度,似有似无,经络看不到,但却可以应用,文化了就是看不到文字了。

   中医本来很简单,简单到甚至不用认识字,就能成为一名实用中医大师,因为只有把传统文字、知识溶化到自己心里,最后看不到字,变成言行,才是一个真正有中国文化的人,也就是毛主席倡导的:从实践中来到实践中去,不是现在的教育体制培养有学历有知识而不联系实际最后变成一个没文化的人。当然这样说类似吹牛,主要是为了不让大家对高深莫测的中医产生一望就退缩的情绪,还是有必要吹一吹中医的简单。

    用文字来表达一件事,角度不同,理解就各异。希望各位有心人,能多提意见,哪里没讲清楚,哪里错误,哪里不适合等,有问题提出才说明你在想,也欢迎提出尖锐批判,让我们共同提高自己的中医水平。当然最好要批得有水平,不要乱骂街、乱嫉妒,贪嗔痴不好,最好不要断章取义地批判,也不要先把我的某些说法给“绝对化”,然后再批判,这样搅浑水没有意义,浪费资源浪费别人的时间,什么东西只要一绝对化就难成立。科学定律、定理本身都是有条件的。

    学中医、用中医不要偏离根本,不要以为熟读了中医经典、背了药方就算是起步了,这中医理论虽然有用,但却不是中医的精髓,这样学一辈子顶多是一个中药技师。

    因为出于权威化、学术化、理论化等多种需要,中医被复杂化了,复杂到要读多年的书还是学不会中医。以现代这样多的知识,应该是能快速掌握中医的时代!可因为方向错了,导致越卖力气学,越离正道远。

    中医的精髓、中医之本之源:
    阴阳五行、亲身体验、天人合一、取向比类、因果轮回。

   若无名师指导自学中医的话,开始最好不研究中医经典及药方,先要把中医外围的知识学习好。
   中医外围参考书的选取方向:
                  讲传统文化的、现代前沿物理学的、高分子结构化学的。
                                          大方向看:《毛泽东选集》、《毛主席语录》
                                         东西方文化的贯通看:南怀瑾先生的系列著作。
                  用药看《西游记》,《封神榜》、《孙子兵法》
                               西医基础知识

亲身体验方面:习练传统武术
                             用药要自己采挖、炮制、品尝。
                             针灸要自身验证
   
      上面的知识都有了学习与体验,再看中医书,就容易多了,虽然不能一望便知,至少不会不清楚书里面到底是在讲什么了。

   这是学中医不可偏离的大方向,中医的思维方式,也是我们中国人的思维方式,只要我们的文字文化不灭,中医就不会灭亡,请大家不要杞人忧天。中医理论本身不只是给人看病治病用的,它是适合于所有学科,是有普遍指导意义的。

   好了,理论多不喜欢听,先讲五行知识在日常生活、军事国防、现代科技中的应用。

                                        一、阴阳、五行篇
1.00 五行是什么?

    五行是阴阳转化的过度态、也是枢、五行是气、液、固三相,光、热能量转换、跃迁的多重复杂展现。

1.01怎样防、治咳嗽?金是什么?

   咳嗽是金的声音,我们先引发一个健康成年人的咳嗽,如喝水时走了神,气管进了一点水,立即剧烈咳嗽、本能低头弯腰。(呼吸了刺激行气体如抽烟、辣椒油也会咳嗽,有多种方法与原因引发咳嗽)

    为什么气管进了水要咳嗽?这是人体的本能,是肺的本能。

   取向比类:先宏观,我国的西北地区五行属金,为乾、兑位,西北地表多为沙石,沙石之间优异空隙,这空隙如同是人体肺的一个呼吸通道,气管进水,如同往沙漠里灌水西北地区把某些沙漠地带用大量江河的源泉水改成了江南水田,“引以为豪”。肺不能进水,有一点水就要剧烈地咳嗽,要把水给排出。所以中国的南涝北旱与西北的水稻田有点关系,地气的通道进水,必然引发天气的咳嗽,把本来给北方的云吹到了太平洋,或者南下了。长期咳嗽进水,会导致肺积水,发高低烧,雨水的分布就不均。

    金旺不去生水,就可能会去克木,金旺过后变弱又会被木火反克。金旺引发土力被消耗------

    金,是将气收敛,地球外面是大气层,保护地球。地球大气分成几个层,人体的外面也有层气或者叫人体辉光,硬气功金钟罩就是练这金刚护体功夫。

    金生水,快速把气体的热量移走,让气体变成液体,这种性能叫金(不仅仅是这一种解释)。外大气层也是金,它把上升的暖湿气流冷却成雨雪降落。人体的金把三焦蒸上的气给冷却,肺给回流一部分到肾,皮肤收敛一部分防止虚汗出。

   “上善若水”,不是脑子进水,是最容易转变成能量的气,清气上升,其气至清至善。

    纳米尺寸的金属,其物理性能也如液体一样。

    喉管内有向上煽动的毛刷状组织,它能固定水汽进入肺,也包括排出吸入浑浊空气中微小颗粒。西北对应产甘草,甘草有解毒作用,中医多用于治疗咽喉炎、气管炎、支气管炎、哮喘、咳嗽、咯血等疾病。西北地区的中药甘草就如这毛刷。

    甘草(也包括其它植物)被大面积挖出,影响了西北地区固水固沙固土能力。咳嗽的人越多,用的甘草也越多,挖的也越狠,恶性循环了。

    婴幼儿多不会吐痰,多是咽了下去,也是因为这毛刷还幼小,痰推不上来,似有痰状态的咳嗽。

    清气上升,脚底有涌泉,广东是脚底,改革开放跑到最前面,病也最多。若鞋内臭气多散不出,也会压进膀胱经入内脏、入头脑,故瘟病多从南方开始发作。

    金被高能量激发会发光,健康人的人体辉光就强烈,经络上的穴位光也强,激光就是电子能量的激发再经过震荡输出。判断咳嗽的阴阳属性就看光,咳嗽是脾土生金,肺金又被激发激发,引发脸通红,若是经常咳嗽,而脸不红,这就不好治。

Tuesday, January 13, 2009

some finding while reading the description of RT telescope.

RT:Ryle Telescope


The Ryle Telescope (RT) is an 8-element interferometer operating at 15 GHz (2cm wavelength). The elements are equatorially mounted 13 m Cassegrain antennas

About who is Cassegrain, here it is:

http://www.nationmaster.com/encyclopedia/Guillaume-Cassegrain

Monday, January 12, 2009

http://www.agri-history.net/scholars/yxl/latin.htm


拉 丁 文 和 文 言 文

游修龄

人民网驻英国的记者最近(2002,7,23)应一位即将在英国牛津大学毕业的中国学子的邀请,以这位学子亲友的身份,参加了牛津大学扬名海内外的毕业典礼。看了记者描述隆重、热烈又壮严的典礼过程以后,其中有一点特别引起我的注意,就是牛津大学校长在主持授予毕业生学位时,先是用用英語致词,随后到授予学位时,仪式全部用拉丁语进行,保持古老的传统,虽然在场的人不一定都懂拉丁语,但是典礼过程显得庄严隆重,让人感受到对人才、知识和历史传统的尊重。
拉丁语在公元5--15世纪间,曽是欧洲教会的官方语言。文艺复兴以后,欧洲各民族的语言兴起,取代了拉丁语,但都用拉丁字母作自己民族语言的拼音文母。至今在学术领域如医药、动植物、化学、天文等的新术语,仍旧采用拉丁语,或拉化的希腊词根,作为构词的基础。这是因为中世纪以来,欧洲的寺院学校和世俗学校都有以拉丁语为主修课的传统。牛津是从12世纪的一个修道院演变而来,所以保留使用拉语于毕业仪式的传统,反映了对传统的尊重,不任意割断。
这使我想起,我们中国的文言文,颇有点象拉丁文的味道。从先秦到淸末,两千余年下来,中国的教育从儿童起,即接受文言的《论语》、《孟子》、《大学》、《中庸》等的读书识字教育,这中间同时也是接受做人处世的道德规范薰陶。只因清朝的腐败,经不起洋人炮舰的轰击,还受近邻日本明治维新后的欺凌,种种丧权辱国的恥辱 ,罄竹难书。“五四”运动为了救亡,来了个180度翻身,打倒孔家店,废除文言文,推行白话文。我的儿童小学时代正好赶上白话文运动,小学一年级的教科书,第一课的课文是:“开学了,开学了,哥哥弟弟姐妹们,大家去上学!”等。我大哥受的还是私塾教育,背四书五经,轮到我却忽然变成“大狗叫,小猫跳。”父亲识字不多,却总觉得这新式小学不象话,于是叫大哥抽时间给我补课,“子曰:学而时习之,不亦说(悦)乎!有朋自远方来,不亦乐乎!”等,但大哥也接受了五四新思潮,只教了一点点,便借故停教了。
改革开放以来,我们的大学教育,进步很快,现在与过去比较,不缺钱,不缺图书、实验和设备,师资也增长很快。唯一的不足是由于强调科技,忽视人文,青年人与韩国、日本的青年人比较,明显表现出缺乏民族自豪感,缺乏民族自尊心和自信心,公共道德下滑,一泻千里。这当然不能怪青年人,因为首先是父母教师也没有起表率作用,也不能怪父母教师,最终要到我们长时期以来的教育制度和思想上找原因。譬如我们的大学毕业典礼为什么从来不邀请学生家长或亲友参加?不如牛津等大学那样庄重?这不是小事,而是一种对教育认识的差距。
由于牛津大学毕业仪式的启发,我想我们的大学今后在毕业典礼上也应该像牛津大学那样,在校长授予学位时,加入我们的传统教育警句于致词之中,如:
“博学之,审问之,慎思之,明辩之,笃行之。”
“大学之道,在明明德,在亲民,在止于至善。”
“苟日新,日日新,又日新。” ”学而不思则罔,思而不学则殆。”
“知之为知之,不知为不知,是知也。”这些对于毕业生来说,都是值得终身遵守的做人治学的遵则。
当然这里只是举例而言,各校可以选择认为合适的警言。我们的确非常需要恢复优良的传统思想,世世代代,继承下去。近百年來学习西方上忽左忽右的折腾,不能再继续了。

Thursday, January 08, 2009

how to generate hyperlink citation in pdf file.

First, put the package "hyperref" at the end of the all the other packages, i.e., use the command below,

\includepackage{hyperref}

Next, there are two ways to generate the hyperlink,

(1) use the standard latex to compile the file, but the next step will be sort of different when using the command dvips, and the command below should be used:  

dvips -Ppdf file.dvi

Afterwards, one uses the command "ps2pdf file.ps" to produce the pdf file.

This command will produce the pdf file right away from the dvi without generating the postscript file. 

(2) use the pdflatex to compile the tex file, please note that the eps has to be converted into pdf format, and also change the corresponding text in the source file. Then compile the source file at least twice.

Below are some useful commands:
http://www.mpch-mainz.mpg.de/~joeckel/pdflatex/

For use with LaTeX->dvips->ps2pdf you can process it with the sequence:
# ----------------------------------
latex example.tex
bibtex example
latex example.tex
latex example.tex
latex example.tex
dvips -Ppdf example.dvi
pdftime example.ps
ps2pdf example.ps
# ----------------------------------
thumbpdf --modes=dvips example.pdf
latex example.tex
dvips -Ppdf example.dvi
pdftime example.ps
ps2pdf example.ps
# ----------------------------------
With pdfLaTex, do# ----------------------------------
pdflatex example.tex
bibtex example
pdflatex example.tex
pdflatex example.tex
pdflatex example.tex
thumbpdf example.pdf
pdflatex example.tex
# ----------------------------------

Tuesday, January 06, 2009

parallel desktops和mac之间拷贝中文的显示问题。

如果从parallel desktops的windows拷贝中文到mac的文档中,比如word,会发现一些很奇怪的字符,空格也会被显示出来,这是因为mac中没有使用正确的字体。在mac的word中,应该使用GB2312编码的字体,比如kaiti-GB2312或者FangSong-GB2312。