没有音乐一样跳舞

Will you give me another tale?

定时重启MongoDB服务

一天下来,Windows 服务器会变得越来越慢,发现是MongoDB服务会渐渐吃掉大量内存,数小时内就增长到1G以上,由于手工重启比较麻烦,于是有了定时自动重启该服务的想法。

1. 将如下两行文本存成批处理文件:ResetMgSvr.cmd(或bat),放到webvmap文件夹内
net stop MongoDB
net start MongoDB

2.开始菜单->控制面板->任务计划->添加任务计划
选择该bat文件,输入任务名称“重启MongoDB服务”;
执行此任务,下一步。设置每天固定时间夜里01:00执行,使用administrator帐号并输入密码。
注意:如果以后修改了administrator密码,则需要重新设置该任务,更新密码。

3.为了保险,将上述每次操作echo至日志RstMgSrv.log,存放在同一文件夹内供查阅。
SET d=%date:~0,10%
SET t=%time:~0,8%
ECHO MongoDB restarted at %d% %t% >> RstMgSrv.log

如下是截图:

天快亮了,睡会儿。

整理:Useful expressions in writing

1. 综合他人研究成果

Although knowledge of … has accumulated rapidly during the past two decades, basic questions about … remains largely unanswered.

Extensive research has been carried out worldwide on…

Knowledge of how … is rapidly accumulating.

The research has been concerned with various ecological aspects.

There is some evidence to show that…

There is evidence in the literature that …

The characteristics of … are well documented, and the literature on this subject is still increasing.

It is agreed that …

It is found that …

It is well established that…

It is recognized that…

It is generally believed that …

There are some published reports showing that …

There is little information available on …

2. 直接引用他人研究成果

Clay (1988) pointed out that …

Haigou (2006) described an experiment in which …

While studying … Speddling et al. (1972) noted that …

In a field experiment with three Artemisia species, Haigou (2007) found that…

In a field experiment described by Haigou (2007), it was found that …

Stebbins (1956) stated that …

According to Davies (2000), …

…(Faeth et al., 2004).

3. 引出本文研究

There is uncertainty as to whether A is associated with B.

Much less attention has been paid to …, and only limited published data has available in …

It is still uncertain as to whether…

There has been made to …

A detailed comparative study of … appears to be long overdue, and knowledge of how … may be of particular significance.

To make better use of …, an evaluation of … has been made experimentally under field conditions.

An opportunity has been taken in the present study to…

4. 连接上下文

As noted above, …

As has been noted before, …

On the whole, …

In general, …

Nevertheless, …

…; on the contrary, …

By contrast, …

That is to say, …

In a word, …

In other words, …

Meanwhile, …

5. 描述材料和方法

A randomized block design was used with four blocks (replicates) and six plots (treatments) per block.

Italian ryegrass grows in central Europe. It has been introduced to most temperate countries. It is widely cultivated in the UK, and is frequently naturalized on roadsides, field margins and waste land.

6. 分析本文结果

There seemed to be a seasonal trend in …

It seems to be general that …

This applied generally in the present experiment, but an exception can still be found: …

The fact that … may be linked with …

It is noteworthy that …

It appears that …

It is worth paying attention to the effect of …

One may argue that …; it seems more likely, however, that …

That … is of great interest.

The four grass species may be listed in a descending (ascending) order as A>B>C>D (A<B<C<D)

There appeared to be a trend that …

It seems true that …

The fact that … may imply that…

It is of interest to note that…

That … was confirmed by the results of the present experiment.

The grasses differed in …

It is therefore reasonable to believe that …

An important point which arises from the above results is that …

Bearing in mind that …, it seems reasonable to believe that …

Taking into consideration that …

Further work is required if …

The records of … may help to explain this phenomenon.

Due to the limitations of sampling technique, in the present experiment, the author was not able to find any significant differences between the grasses.

This was mainly due to the fact that …

7. 将本文结果和他人结果做比较

This is in agreement with the generalization of Spedding (1972) that …

This is broadly supported by the observation of the present experiment.

That …, reported by Tilman (1999), was in accord with the results of the present experiment.

That …, reported by Tilman (1999), was in consistency with the results of the present experiment.

These findings are supported by the results of the present experiment as noted above.

The results appear to confirm the conclusions from earlier studies in the UK (Norris, 1982; Thomas, 1983)

That … could be partly accounted for by …

 

又是一年母亲节:这就是妈妈

我爱我的妈妈,她告诉我了什么是爱,什么是专注,什么是坚持,什么是不离不弃,什么是在逆境中坚持着梦想,不放弃希望。

在我读书的时候,她不离不弃地照顾瘫痪5年的爸爸,维系着一个完整的家,让我得以安心学习;

在我没有钱的时候,妈妈跟着我受尽艰难,用微薄的退休金来补贴我的学习和生活;

即便在她被绝症折磨的不成人形,虚弱到难以用言语表达的时候,她还为自己得病而耽误我的工作而内疚!!

我将终生感恩我的妈妈。

这个世界上只有妈妈懂我,理解我,不论她的儿子做什么选择,她都可以理解宽容,并成为最真诚的倾听者;

她相信我,相信我已经可以独立而理智地思考;她尊重我的决定,所做的更多的是默默无私的支持,让我独立判断、直面困难,而不是庇护;

妈妈纵然不会用睿智给我提供巧思妙想的主意,纵然没有伟大的哲理和英明论断,但她却可以以朴实无华的言语,让我在做好自己的路上,更加坚定果断,自信乐观,从而继续微笑着、勇敢地走下去。

这就是我的妈妈。

As what I wrote in a diary, I had a great Mom.

Mom took care of Dad who paralyzed and lied in bed at home to sustain a complete family for five years, thereby ensuring my concentration on my college study. She believed that Dad would recover as long as she strived to attend him with great patient, even though it would be a lifelong arduous work.

Mom always told me: “Have it your own way, you can make it! Mom believes you.” When I was a boy, she seldom made decisions for me, but encouraged me to decide by myself. She was not a great thinker, neither was she a wise woman, but she was able to teach me how to think positively and rationally. She trusted me all the time and always listened to my opinion, because she thought I had been a sensible grown-up, ever since I was 17 years old.

Thanks Mom, I had realized what the responsibility, independence, optimism, and commitment mean from her. While I had learnt that life is a gift and privilege that should be valued, and we should never give up our hope, dream and love to it.

I will always proud that I had a great Mom.