Thursday, May 28, 2009

ICC工作机会?

ICC 工作机会? 一个$65000,一个$85000,可能是个trick?
看了网上的评价好像很差啊,还是避开为妙,继续奋斗.

Monday, May 18, 2009

c++ pointer and array

It took me a few days to fix the program to get the real time coordinates of a draganflyer from
Vicon 8i System.

My program is written in c++ with the application of Vicon Real Time SDK.

1, set up 6 vicon cameras and calibrated these cameras so that you can check the draganflyer with 5 markers on it in Vicon IQ, in IQ, create rigid body with 5 markers, the rigid body is named as draganflyer, the workstation IP address (192.168.1.230), the datastation IP address (192.168.1.117).

2, download Vicon Real Time SDK.

3, in Visual c++, create your own project, include VrtSDK10ex.h header files in your folder.
link with VrtSDK10ex.lib ( in Visual c++, Project--->Add Existing Item---> choose VrtSDK10ex.lib in your folder).

4, begin to write your own program,

char address1="192.168.1.230";
char *chIpAddress=address1;

int BodyCount=0; //zero based, the first body number is 0
int *p_BodyCount=&BodyCount; // for it has to have "&"

int my[3]={1,2,3};
int *ptr=my; //it means it get my[0];

char chBName[50]={};
char *p_chBName=chBName;

Pay attention to the difference of pointers usage in int, array. It took me a few days to figure it out. I am quite new to c++.

Tuesday, May 5, 2009

郑集教授养生学

郑集,1910年出生,中国营养学的奠基人,中国生物化学的开拓者之一。

(1)思想开朗,乐观积极,情绪稳定;
(2)生活有规律;
(3)坚持体力劳动和体育锻炼;
(4)注意休息和睡眠;
(5)注意饮食卫生,切忌暴饮暴食;
(6)严戒烟,少喝酒;
(7)节制性欲和不良嗜好;
(8)不忽视小病;
(9)注意环境卫生,多同阳光和新鲜空气接触;
(10)注意劳动保护,防止意外伤害。其中,乐观是十诀之首。

Monday, April 6, 2009

P0300代码与autozone

在高速路上,忽然引擎灯亮,于是中途在路边停下。给高手tt打电话,说不要紧,开到autozone check, 然后给他发代码。

在autozone, 代码是P0300,misfire detected,开了处方
1, Spark Plug
NGK-GP-PLATINUM 7098, Qty 6 $2.59*6
2,Wireset
DURALAST 9130 Qty 1 $62.99

自己回去打开前盖,发现coolant几乎没有了,于是加满,然后电池放一会(据说给engine check light reset).

然后给tt邮件,回复说
“只有这一个代码?既然现在不亮了,暂时不需要修什么。这个代码很笼统,只是说检测的不规律的熄火情况,不够明确。至于autozone的单子不用管它,99%和这2样没啥关系。继续观察,有问题直接email我。”

今日开车,无法发动,打开发现上次自己的电池接触没有整紧。然后开动,灯不亮了。看来autozone有时也乱开药方。

Sunday, March 1, 2009

An article from Economist about Business in China

http://www.economist.com/business/displaystory.cfm?story_id=13145129

Time to change act

This article is very well written, it reflects the true situation of China, It means that China is still a developing country.

"Much of the remarkable success of Chinese business has been based on low-margin, low-technology activities. Broadly speaking, China is a net exporter of goods with a low technology content and a net importer of more sophisticated wares."

"Granted, China has plenty of important companies which do not need to worry about their business disappearing to other emerging economies. Almost all of these are owned at least in part by the government and benefit from protective barriers in their home market."

"A more durable model for less privileged companies would involve more higher-margin activities, based on innovation and higher quality, with their home-grown brands to the fore. So far, however, Chinese companies have been plagued by an actual or perceived lack of quality. Only a few have built respected brands. "

"With rare exceptions, notably Lenovo, which purchased IBM’s laptop business, and Haier, the maker of cheap, small refrigerators that furnish the rooms of numberless students, Chinese names have failed to make much of a dent. Where they have thrived is either in cost-conscious emerging markets or in cost-sensitive areas of developed markets defined by clear specifications and minimal innovation. The greatest examples of this have been ZTE and Huawei, makers of telecoms equipment."

中国过去几十年的出口导向型经济,生产附加值低,质量不够好的产品维持了30年的成长。外资企业(包括台湾,香港资本)出口占据出口的至少60%以上。中国很大程度上是个加工厂,这样的结构就是环境恶化,人民生活有提高,但是依然不富裕。而且产业很有可能转移。

这样的情况下,唯一的亮点就是华为中兴,这个才是国家发展的希望所在。联想和海尔,前者要好一点。技术创新,提高产品质量才是发展的关键,其实人用不用心,生产的东西相差很大。管理这时候对控制产品质量非常重要,法律规则要坚决实行。

这篇文章基本上反映了中国目前发展中国家的整体形势,自然由于国家大,整体实力还是不错,也有非常大的发展潜力和空间。

Thursday, February 26, 2009

10 Lifestyle Tips for Cancer Prevention (zz)

http://www.webmd.com/cancer/news/20081028/10-lifestyle-tips-for-cancer-prevention
  • Be as lean as possible without becoming underweight.
  • Be physically active for at least 30 minutes every day.
  • Avoid sugary drinks, and limit consumption of high-calorie foods, especially those low in fiber and rich in fat or added sugar.
  • Eat more of a variety of vegetables, fruits, whole grains, and legumes (such as beans).
  • Limit consumption of red meats (including beef, pork, and lamb) and avoid processed meats.
  • If you drink alcohol, limit your daily intake to two drinks for men and one drink for women.
  • Limit consumption of salty foods and food processed with salt (sodium).
  • Don't use supplements to try to protect against cancer.
  • It's best for mothers to exclusively breastfeed their babies for up to six months and then add other liquids and foods.
  • After treatment, cancer survivors should follow the recommendations for cancer prevention.

Thursday, February 19, 2009

latex word counter

In order to count the words you write in your latex file, two steps are needed.

1, install detex by
sudo apt-get install texlive-extra-utils
2, in your latex file directory
detex yourtexfile.tex | wc -w

That is done.