Tuesday, June 23, 2009

plan 6.23

Today:
1. Write the related work for LSH.
2. Read the paper and revise it.

Monday, June 22, 2009

The tasks to be done in today and tomorrow

1. Draw the map, and try to explain the result.

2. Write something about the ranking algorithms. both in related works and the introduction

3. Extend the abstract.

Saturday, June 20, 2009

Change of style and plan for 6.20

How to write solid code from some web materials:

Write less code.


KISS and DRY. “Keep It Simple Stupid”: do what is required and no more. Focus on a clean and simple implementation. “Don’t Repeat Yourself”: avoid duplicating code. Refactor mercilessly. This will decrease the size of your code-base, which is a Good-Thing™ because the less code you write, the less bugs you write.

Use code analysis tools


In gcc or g++, using -Wall to eject warnings and errors.
open the preferences in Eclipse and activate most warnings for the Java compiler (be pragmatic). Use any lint-clone you can put your hands on for your language. Here are the tools I recommend for Java: JDepend to measure the quality of my abstractions and to avoid cyclical dependencies, PMD to identify potential bugs and potential optimizations, FindBugs to (coincidentally) find bugs.I should mention Checkstyle again since it can also detect bug patterns. The situation is simple: the more code analysis tools you run on your code the more you will be able to fix problems before they bite you.

Write unit-tests

I could almost have numbered it 1bis. Unit tests show and validate how the code is supposed to be used. Write the tests first if possible — unless you can get your hands on a time-machine, this is not an option when doing some maintenance. The quality of your interfaces will improve dramatically because you will design them from their user’s point of view.

Some personal feelings about the tests. Put a separate directory about the test files and illustrate what the result should be. When changing the code, do a regression test.

Read books about writing codes


Record the good practices and build the reusable libraries
The good practices usually are from the internet, and you may forget this after you use it! Record them in the reusable libraries would save you time and improve the quality of your code.

Friday, June 19, 2009

Fighting for the paper!

I will cancel the activities in the following days if possible and focus on the papers!

Tonight: Modify the code and make it more beautiful and easy to understand.

Calm down and figure out what to do next

I want to have the paper published!

Here is what we need to do:
1. Write the outline for the paper.
Finish it today!

2. Optimize the code, see if the result has really improved a lot.

3. Read some papers about the ranking algorithms~ This is an interesting work and I will enjoy it.

Monday, June 15, 2009

plan 6.15

I suddenly do not know how to proceed.

What can I add to my project? It seems so difficult to me.

Go on! Which direction? ... So confused...

How can I improve the current work? How about the LSH?

The good habits

1、守时 买个闹钟,以便按时叫醒你。贪睡和不守时,都将成为你工作和事业上的绊脚石,任何时候都一样。不仅要学会准时,更要学会提前。就如你坐车去某地,沿途的风景很美,你忍不住下车看一看,后来虽然你还是赶到了某地,却不是准时到达。"闹钟"只是一种简单的标志和提示,真正灵活、实用的时间,掌握在每个人的心中。

2、不要扭扭捏捏 如果你不喜欢现在的工作,要么辞职不干,要么就闭嘴不言。初出茅庐,往往眼高手低,心高气傲,大事做不了,小事不愿做。不要养成挑三拣四的习惯。不要雨天烦打伞,不带伞又怕淋雨,处处表现出不满的情绪。记住,不做则已,要做就要做好。

3、忍受孤独 每个人都有孤独的时候。要学会忍受孤独,这样才会成熟起来。年轻人嘻嘻哈哈、打打闹闹惯了,到了一个陌生的环境,面对形形色色的人和事,一下子不知所措起来,有时连一个可以倾心说话的地方也没有。这时,千万别浮躁,学会静心,学会忍受孤独。在孤独中思考,在思考中成熟,在成熟中升华。不要因为寂寞而乱了方寸,而去做无聊无益的事情,白白浪费了宝贵的时间。

4、要着眼未来 走运时要做好倒霉的准备。有一天,一只狐狸走到一个葡萄园外,看见里面水灵灵的葡萄垂涎欲滴。可是外面有栅栏挡着,无法进去。于是它一狠心绝食三日,减肥之后,终于钻进葡萄园内饱餐一顿。当它心满意足地想离开葡萄园时,发觉自己吃得太饱,怎么也钻不出栅栏了。相信任何人都不愿做这样的狐狸。退路同样重要。饱带干粮,晴带雨伞,点滴积累,水到渠成。有的东西今天似乎一文不值,但有朝一日也许就会身价百倍。

5、学会坚强 不要像玻璃那样脆弱。有的人眼睛总盯着自己,所以长不高看不远;总是喜欢怨天尤人,也使别人无比厌烦。没有苦中苦,哪来甜中甜?不要像玻璃那样脆弱,而应像水晶一样透明,太阳一样辉煌,腊梅一样坚强。既然睁开眼睛享受风的清凉,就不要埋怨风中细小的沙粒。

6、管住自己的嘴巴 管住自己的嘴巴。不要谈论自己,更不要议论别人。谈论自己往往会自大虚伪,在名不副实中失去自己。议论别人往往陷入鸡毛蒜皮的是非口舌中纠缠不清。每天下班后和你的那些同事朋友喝酒聊天可不是件好事,因为,这中间往往会把议论同事、朋友当做话题。背后议论人总是不好的,尤其是议论别人的短处,这些会降低你的人格。

7、把握机遇 机会从不会"失掉",你失掉了,自有别人会得到。不要凡事在天,守株待兔,更不要寄希望于"机会"。机会只不过是相对于充分准备而又善于创造机会的人而言的。也许,你正为失去一个机会而懊悔、埋怨的时候,机会正被你对面那个同样的"倒霉鬼"给抓住了。没有机会,就要创造机会,有了机会,就要巧妙地抓住。

8、学会与人沟通 若电话老是不响,你该打出去。很多时候,电话会给你带来意想不到的收获,它不是花瓶,仅仅成为一种摆设。交了新朋友,别忘了老朋友,朋友多了路好走。交际的一大诀窍就是主动。好的人缘好的口碑,往往助你的事业更上一个台阶。

9、重视爱情 千万不要因为自己已经到了结婚年龄而草率结婚。想结婚,就要找一个能和你心心相印相辅相携的伴侣。不要因为放纵和游戏而恋爱,不要因为恋爱而影响工作和事业,更不要因一桩草率而失败的婚姻而使人生受阻。感情用事往往会因小失大。

10、写备忘录 写出你一生要做的事情,把单子放在皮夹里,经常拿出来看。人生要有目标,要有计划,要有提醒,要有紧迫感。一个又一个小目标串起来,就成了你一生的大目标。生活富足了,环境改善了,不要忘了皮夹里那张看似薄薄的单子。