## 2013-03-01

Anyway，吐槽无力但是很舒服，也分享一下自己的感受跟所有的认识我的不认识我的朋友们，一起共勉吧，前面无论是什么，都得努力勇敢地走下去。

## 2012-12-5

I am a naughty piggy living in the zoo, I love nature, love friends, love all happy & nice things.

## 2010-6-15 引

“大多数人很少能够独立地思考：在大部分问题上，他们所接受的意见都是现成的意见；他们无论是生来具有还是受人哄骗而接受这套或那套信仰，都同样感到满意，这些都可能是真实的。在任何社会里，思想的自由可能只对很少的人才有直接的意义。但这并不是说，某些人有资格或者有权力选择一批专门享有这种思想的人，它决不证明，某些人有要求决定人民必须想什么或信仰什么的权利的这个假定是正当的。

—- 哈耶克

## 2010-05-30 无题

“你想这些、知道这些有什么用？！我有房有车有女人过得很好。我操，你有病吧，我去玩我的iphone，我的尼康了。我每年分红10几万，我过得好就行，管不了别人。你改变的了什么么，牛逼你先混上经理。”是的，我们很小，很无助。我们在他们制定好的规则里等待施舍，任何的改变和尝试，让我们充满了各种风险，我们的勇气已经缴械，我们无法挣脱他们编织的网，但是我们至少要会获取那两样东西。真实和独立思考。如果丧失了，我们很变得很可怜。如同狗一样，被主人豢养着，摇着尾巴去迎合这一切，被管制着，满足着。主人可以给你，也可以瞬间夺取你的一切。现在的拥有，也许只是暂时，也许是建立在其他的人的贫苦之上，即使你有拥有，也要有份感激，珍惜，甚至愧疚。各种物欲带来的只是快感，表面的刺激。骄横和自我，只会让我们失去善。无法得到内心的强大和安宁。

## 2010-03-04 关于房价

120平米，在朝阳公园附近的一般的商品房，目前单价在22000/平米左右。假设你手头有可以首付的100万。

20年内，由于买房付出的9854（见下面计算）的支出，可以是租的话，可以获得9854-5000=4854的机会成本获得，这个机会成本按照3.6%的投资回报率计算20年所得：FV==-FV(3.6%/12,20*12,4854,0,0) 是170万.

## 2009-12-31 拜拜了您的，2009

“我自己有梦想的日子都已经过去了，是因为我的梦想都已经变成了真实的生活，都已经得到了实现。所以现在，我就不必再追求自己的梦想，而可以去管所谓的现实问题，就是自己养活自己。 ”

## 2009-08-18 谁也别怪，就怪自己

2009.8.11号，那天，是多好的离场机会啊，没有走，怪不得别人，只怪自己的犹豫和侥幸心理。

MACD继续恶化，KDJ继续恶化，RSI继续恶化，30日支撑已经就在脚下，前期上升通道的支撑位也就要破了，而各种死叉都早在几天前就出现了，而均线死亡交叉也已经形成，还不跑，为何呢？人啊。总是充满不切实际的幻想。

## 2009-08-08 [转]饭否语录！

1.我这人从不记仇，一般有仇当场我就报了。

2.别在我的坟前哭，脏了我轮回的路。

3.已经将整个青春都用来检讨青春，还要把整个生命都用来怀疑生命。

4.是这样的张总，妳在家里的电脑上按了CTRL+C，然后在公司的电脑上再按CTRL+V是肯定不行的。即使同一篇文章也不行。不不，多贵的电脑都不行。

5.你要是鲜花，以后牛都不敢拉粪了！

6.我以为你只是1和3中间的数，没想到你还是1和3俩数的组合。

7.在网易看到一条评论：我指着一盆花，淡淡地说：草。我指着天空，淡淡地说：日。

8.先是《中国不高兴》，然后是《中国为什么不高兴》，接下来是《中国凭什么不高兴》、《中国怎么那么不高兴》、《你说中国怎么那么不高兴》、《凭什么让我说中国怎么那么不高兴》、《凭什么不能让你说中国怎么那么不高兴》、《我他妈哪知道中国怎么那么不高兴》……

10.自己选择45°仰视别人，就休怪他人135°俯视着看你。

11.Ralph W. Sockman说：当我们是少数时，可以测试自己的勇气；当我们是多数时，可以测试自己的宽容。

12.牧羊，一辈子都在急；金牛，一辈子都在守；双子，一辈子都在徘徊；巨蟹，一辈子都在等；狮子，一辈子都在控制；处女，一辈子都在准备；天秤，一辈子都在权衡；天蝎，一辈子都在猜疑；射手，一辈子都在玩儿；摩羯，一辈子都在奋斗；水瓶，一辈子都在做梦；双鱼一 辈子都不知道自己在做什么。

13.在职场中就应该像柯南那样，有一种我走到哪就让别人死到哪的霸气。

14.一食人族上班，经理再三交代不能吃同事，答应。过几天忍不住，偷吃一个清洁工人，当即被发现。其感悟是：千万别吃真正做事的人。

15.李碧华说过： 什么叫多余？夏天的棉袄，冬天的蒲扇，还有等我已经心冷后你的殷勤。

16.永远年轻，永远装嫩，永远不知好歹，永远热泪盈眶。

17.很多时候你只是某个人的练爱对象而非恋爱对象。

18.钱钟书先生对杨绛女士有这样一段评价，后来被社会学家视为理想婚姻的典范： 1、在遇到她以前，我从未想过结婚的事。 2、和她在一起这么多年，从未后悔过娶她做妻子。 3、也从未想过娶别的女人。

19.你攒够四块五，我也攒够四块五，我们就可以去民政局结婚了。

20.个人感觉，在网络上要转向“慢”了，资讯越快，越是要等几天让事实浮现，第一时间人肉，第一时间谴责，第一时间落泪，都无太多必要。

21.我爸面对我发胖一事发表了看法：没有韩红的命，还得了韩红的病。

22.你来我信你不会走，你走我当你没来过。——我们该这样对待缘分与爱。

23.你觉得别人牛B，他不一定觉得你牛B，但你要觉得别人傻B，在他眼里你也是一傻B,所以我认为牛B像单恋，傻B则是两情相悦。

24.“上了年纪最大的好处就是：年轻时得不到的东西，现在你不想要了。”

25.世界上所有男人都是骗子。不管是漂亮还是不漂亮的女人都会被骗。有所不同的是，幸运的女人找到了一个大骗子，骗了她一辈子。 不幸的女人找到了一个小骗子，骗了她一阵子。

26.人最软弱的地方，是舍不得。舍不得一段不再精采的感情，舍不得一份虚荣，舍不得掌声。我们永远以为最好的日子是会很长很长的，不必那麽快离开。就在我们心软和缺乏勇气的时候，最好的日子毫不留情地逝去了。

27.曾以为我是那崖畔的一枝花，后来才知道，不过是人海一粒渣。

28.现在你骂我，是因为你还不了解我，等你以后了解了我，你一定会动手打我的。

29.一日不读书，无人看得出；一周不读书，开始会爆粗；一月不读书，智商输给猪。

30.当前我国女性成功大概有如下四种途径：第一，学好英语，嫁老外。第二，学好英语，出国读书，嫁老外。第三，学好英语，出国读书，学成归国，嫁老外。第四，学好英语，出国读书，学成归国，努力打拼，嫁老外。

31.有的人聪明得像天气，多变；有的人傻得像天气预报，变天它都看不出来。

32.马不停蹄的错过，轻而易举的辜负，不知不觉的陌路。

33.石头记告诉我们：凡是真心爱的最后都散了，凡是混搭的最后都团圆了。

34.如果你不是经常遇到挫折，这表明你做的事情没有很大的创新性-伍迪.艾伦

35.爱情生活里，比找不到安全感更可怕的是什么？是找不到安全套。 36.两个人在一起，更多的不是改变了对方，而是接受了，所以说包容呢，如果光想着改变，那不是生活，那是战争。

37.一切问题最终都是时间问题，一切烦恼其实都是自寻烦恼。

38.人永远不知道谁哪次不经意的跟你说了再见之后就真的再也不见了。

39.很多事都介于“不说憋屈“和“说了矫情“之间。

40.通往成功的路，总是在施工中。

41.【你喜欢我天使的脸孔，还是魔鬼的身材？】【我就喜欢你这种幽默感。】

42.下车时导游小姐说：“请带好您的贵重物品。”他拉着我的手说：“快走，贵重物品”。

43.我不下地狱，谁爱下谁下。

44.猜一句英文：「ABABBBAAAAAABBBABAAAABBBBAABBBAAAAA」？〈答案：Long time no C〉

45.自己选择的路，跪着也要走完

46.我也不是非你不可。你也不是非我不可。真是一场误会。

47.想你的眉目，想到模糊。——突然觉得，思念大都如此，越来越淡

48.广播体操现在开始：╔囧╗╔囧╝╚囧╝╚囧╗╔囧╗╔囧╝╚囧╝╚囧╗╔囧╗╔囧╝╚囧╝╚囧╗╔囧╗╔囧╝╚囧╝╚囧╗╔囧╗╔囧╝╚囧╝╚囧╗╔囧╗╔囧╝╚囧╝╚囧╗╔囧╗╔囧╝╚囧╝╚囧╗

49.在经年后，感叹，那两个少年：一个惊艳了时光，一个温柔了岁月。

50.你永远也无法理解，为了让自己对生活发生兴趣，我们付出了多大的努力。

51.孔子曰，中午不睡，下午崩溃；孟子曰，孔子说的对。

52.9个橙子分给13个小朋友，怎么分才公平？-杀死4个小朋友。

53.如果她（他）对你说：“忘了我吧。”你告诉对方：“我一直没记住。”

54.20岁看体力；30岁看学历；40岁看经历；50岁看智力；60岁看病历；70岁看日历；80岁看黄历；90岁看舍利。

55.史上最神秘的部门：有关部门；史上最神秘的人：知情人士；史上最权威的人：砖家叫兽。

56.“恋”是个很强悍的字。它的上半部取自“变态”的“变”，下半部取自“变态”的“态”。

57.就算是一坨屎，也有遇见屎壳郎的那天。

## 2009-05-31 有意思的人和事儿

GWF是什么？GFW是Great Fire Wall的缩写，是金盾工程。这个工程由若干个部分组成，实现不同功能。防火长城主要指中国政府监控和过滤互联网内容的软硬件系统，由服务器和路由器等设备，加上相关的应用程序所构成。http://joyloft.net/?p=174

## 2009-05-27 一次奇妙的GC之旅

[Full GC [Tenured: 187813K->188443K(967936K), 5.6577547 secs]
210095K->188443K(1040512K), [Perm : 11666K->11666K(11776K)], 5.6614647 secs]
[Full GC [Tenured: 188443K->188462K(967936K), 5.3311002 secs]
199316K->188462K(1040512K), [Perm : 11667K->11667K(11776K)], 5.3331488 secs]
[Full GC [Tenured: 188462K->188475K(967936K), 5.3410243 secs]
199651K->188475K(1040512K), [Perm : 11667K->11667K(11776K)], 5.3451174 secs]
[Full GC [Tenured: 188475K->182292K(967936K), 9.1802339 secs]
199252K->182292K(1040512K), [Perm : 11667K->11657K(11776K)], 9.1835024 secs]
[Full GC [Tenured: 182292K->182309K(967936K), 5.6274710 secs]
193066K->182309K(1040512K), [Perm : 11657K->11657K(11776K)], 5.6320208 secs]


• Survivor Space总是0，从来都是0
• Eden Space不到50%就Full GC了
• 代码里面没有System.gc调用
• Full GC周期大概在1分钟左右

1. Scavenge GC 一般情况下，当新对象生成，并且在Eden申请空间失败时，就好触发Scavenge GC，堆Eden区域进行GC，清除非存活对象，并且把尚且存活的对象移动到Survivor区。然后整理Survivor的两个区。

2. Full GC 对整个堆进行整理，包括Young、Tenured和Perm。Full GC比Scavenge GC要慢，因此应该尽可能减少Full GC。有如下原因可能导致Full GC：

· Tenured被写满

· Perm域被写满

· System.gc()被显示调用

· 上一次GC之后Heap的各域分配策略动态变化

• 标记清除(mark-sweep)：收集器先从根开始访问所有活跃对象，标记为活跃对象。然后再遍历一次整个内存区域，把所有没有标记活跃的对象进行回收处理。该算法遍历整个空间的成本较大暂停时间随空间大小线性增大，而且整理后堆里的碎片很多。
• 标记整理(mark-sweep-compact)：综合了上述两者的做法和优点，先标记活跃对象，然后将其合并成较大的内存块。 对于服务器应用，我们使用Concurrent Low Pause Collector，对年轻代，暂停时多线程并行复制收集；对年老代，收集器与应用程序并行标记–整理收集，以达到尽量短的垃圾收集时间。

• Tuning Garbage Collection with the 5.0 Java Virtual Machine官方指南。
• Hotspot memory management whitepaper官方白皮书。
• Java Tuning White Paper官方文档。
• FAQ about Garbage Collection in the Hotspot 官方FAQ，JVM1.4.2。
• Java HotSpot 虚拟机中的垃圾收集 JavaOne2004上的中文ppt
• A Collection of JVM Options JVM选项的超完整收集。
• http://www.slideshare.net/gengmao/inside-the-jvm-memory-management-and-troubleshooting

Eden默认2M，Survivor默认64K。

## 2009-05-25 OMS

播思通讯的全称为播思通讯技术(北京)有限公司，注册资金为600万美元，其全资股东为播思微系统香港有限公司(下称播思微系统)。播思通讯的注册时间为2007年9月，而播思微系统的注册时间只不过比这早了不到两个月。



## 2009-05-18 房价、CPI和收入

2000年 0.4 %
2001年 0.7 %
2002年 -0.8 %
2003年 1.2 %
2004年 3.9 %
2005年 1.8 %
2006年 1.5 %
2007年 4.8%


年度 CPI    收入增加  房屋价格指数
2000   3.5   8.9   -0.5
2001   3.1   8.5    1.3
2002  -1.8   15.6   0.3
2003   0.2   11.2   0.3
2004   1.0   11.5   3.7
2005   1.5   11.2   6.9
2006   0.9   12.2   8.8
2007   2.4   11.2   11.4
2008   5.1   13.5   10（没有数据，推测）


2003年至今，CPI上涨11.1%，房屋上涨了41%

　　年份      价格        涨幅     收入        涨幅

2004年 4747元                  15638元

2005年 6721元    41.6％ 17653元 12.9％

2006年 8050元   19.8％   19978元 13.1％

2007年 11454元 42.3％   21989元 11.0％

2008年 13000元 13.5％   26901元 12.4％


2004年至今，收入累计上涨72%，而房价累计上涨173%！

• 数据大部分来自于国家统计局和北京市统计局。

http://www.yihaolou.com/2009/04/11/2440

M1货币投放量

## 2009-03-25 买房值还是租房值？

120平米，在朝阳公园附近的一般的商品房，目前单价在14000/平米左右。假设你手头有60万。

20年内，由于买房付出的7110（见下面计算）的支出，可以是租户获得7110-3500=3610的机会成本获得，这个机会成本按照3%的投资回报率计算20年所得：FV=FV(3%/12,240,3610,0,0) 是118万。 30年中的后10年，这笔钱继续按照3%的年利往后滚，变成了FV=FV(3%,10,0,1180000,0)，变成158万。

20年后，房款还清，共付170万。除去110万本金，额外付给银行60万的利息。

## 2009-03-18 TCP和IP

TCP的发送顺序控制，主要是靠Seq No，客户和服务两端都有自己的Seq No，在连接时候初始化好。客户端和服务器发送的每一个包，都要告诉对端Ack的Seq和发送的Seq。啥意思呢？这个Seq就表示，我这次发送的起始偏移是多少，你上次发过来后，你的偏移是多少了，彼此做个对照。有点乱，找本书看看就明白了，不难。

PUSH标记是发送端告诉接受端，你接收到此包后，请理解向你的上层应用层提交数据。别再攒着了。但是现在这个标记一般都由TCP实现者自行决定啥时候设置。我看了Java API，就不提供设置接口。

Java中的setNoDelay就是来disable Nagel算法的，set为true时候，就disable了，false时候，enable算法了。默认应该是enable的，我猜。

Java默认值

Linger        : –1
send buffer  : 8192
recv buffer  : 8192
TCP No Delay : false
Keep Alive       : false
OOBInline       : false


## 2009-03-11 人间的四月天

我说你是人间的四月天，



2008.7.20，周日

12点左右午餐。

5路：在果子市下车

635路：在德内甘水桥下车

2007年注定是更加忙碌的一年。

## 2006-11-25 DIV

2000px的地方据说会有一次重要的病毒，居然全世界都避免了。其实不然，中国中了。中国开始了千年的巨变。开始划分各个纬度，唯独变化的速度很快，成平面和立体，多方位多层次的扩张。迅速的变化，迅速的变化，DIV下，我们也被迅速的规划，分割。

## 2006-08-06 继续写博

OSGi是个好东西，过去是玩J2EE，后来Rob造了Spring，都是别人写的框架。自己写呢？那得从头开始，自己要管理组件，管理这，管理那。唉，没那份精力，更准确的说，是没那份胆量和能力。其实，大可不必的苦恼。已经有了很多组件管理的基础设施，基于他们写，你也可以过把架构的瘾。JMX，OSGi，都是优秀的组件管理规范。前者有JBoss的成功典范，后者又Eclipse的惊世骇俗。

OSGi给我们提供了很多很多，关于组件的管理，比如如何安装，如果公开组件的服务，如何PlugIn的方式安装和卸载组件，如何进行权限管理，如何进行命名查找，如何进行序列化。。。。。等等。有了这些基础设施，高手们，玩玩架构把，别玩虚的了，是高手就跳出来，组个你们的架构出来吧。

## 2006-06-25 NIO的开发模式

• select线程应该足够少，这样才真正可以发挥复用的威力。
• 真正的读和写都在select这个线程中做，因为是非阻塞的，应该是一瞬间完成，可以忽略时延，并且，可以避免setInterest和select()的同步问题
• 一个Worker线程不应专门为一个session服务而导致他大部分时间都idle
• Worker线程应该是平时都在池中，在某个session有读后，和写前，猛然复活，然后处理读后和写前的数据预处理，然后悄然回池，他不应该负责读和写，这个应该由select的线程干
• session的概念很好，必须要有
• session上应该有个in queue和out queue
• 消息来了，即读出的时候有两种处理，两种方式其实大同小异：
• 生成一个事件，事件中包含数据，还有哪个session（MINA就是这样），然后交给Worder线程们处理
• 要写消息，同接消息，也有两种方式
• 生成一个写事件，写事件中带着sesion，然后select线程在select之前/之后，写光session中的inqueue，session中有channel（可以看出session写和selector没关系
• 上面的内容可以看出，读的接受者是Worker线程，写的发起者是Worker线程
• 使用监听者模式设计一个SessionListener是一个隔离socket读写和后端处理业务的好方法
• 后端处理业务的工作交给了Worker线程做，select线程专心读写

## 2006-06-01 MINA的几点疑问

• 对ProtocolFilter还不是很清楚
• 对VM的实现还不是很清楚

• 对Cindy的研究，最好捎上Netty2
• 对JDK1.5的线程包需要深入一下
• 构建一个自己的验证Prototype for better understanding of NIO framework
• 考虑OMSE如何参考这些framework进行改进

## 2006-04-11 My fixing bug story

I got the task, and I began to see the code immediately,but,unfortunately,I cannot understand the code design.

I had to ask for XuXin, with his patient explaination, I learned what IHTH is. I also understood the bug reason, and found the bug is very small,very simple, The left is to fix it.

But,I found fixing bug is very difficult,why? You maybe said, “you said bug is very samll & simple ,why you say fixing it is very difficult?! it’s contradiction!!!”

Mabye you are right, but it is for the guy who knows code very well, like XuXin,GuoChengJun or WangNan, but for me,I only have a poor code understanding before fixing it. The first thing,I should understand the code.

Understanding code means,I had to know lots of things, including: the requirement, the code context, the author’s design purpose. So, you can see, although a simple bug, I had to know lots of other thing first.

I discussed with XuXin, and decided to inherit a class from , implment all abstract method, and copy code from ,so I began to code.

I read & learn & understand the code, dare not to omit any details,but,"detail is important while is boring", When I thought I understood most, I began to code my class .

I copied & pasted code into ,then,I finished the code,I felt a little exiting.

My custom after coding a class is to test it, I write a TestCase class for it,but, then, I found I cannot test it,the class is so difficult to test, my God! I hate a class which cannot be test.

In that,I cannot test it, I think I should refactor the code. “Copy & Paste is source of the evil - «Refator»”. But I am little confident to my code. Without test case, refactoring a class is very danger,yes,I know the point,but for a professional programmer,I can not bear bad code!!!

So,I began my danger refactor journey.

My fixing bug storyI read the and its all children, read all abstract method it defined. then, I began to eliminate duplicated code: I move markAscusClosed() to ,and delete all definition in subclass openHostSessions() is same done I create a parent to Pres1024C & Pres1024B , named Pres1024, to extract the duplicated code I create a parent class to PresIHTH & my PresSHTH, named PresHTH,to extact duplicated code after refactoring,the code became more clear, and my PresSHTH implemeation code is very simple & easy.:)

OK,up to now,let summary this job:

I cannot write test code,from this view,my code is very bad. I am not confident to my code,I need XuXin help me to review & DuYu help me to test I just eliminate duplicated code,not improve the design at last, I hate to understand other guy’s code & fixing bugs:( It’s my feeling of fixing bugs,I share my experience with you.Hope to conmmunicate with you,any idea,discuss with me:)

## 2006-03-23 How do I program?

Since my first hello world,there had been almost 10 years.Though such a long time,I still dont think i am be a good programmer.Atfer 2003, i read «refactor». Until then, I found I just find how to program exactly.

In initial years after my graduation, I use VC++,VB and pb.I am apt to writing program with long comments.That time, I think good program just make other can understood more clear,that’s right in that situation. So, a large number of comments can make program more clear, aslo, I name my function and variable very long also for better understanding.

Before,2003,I have no idea for easy testing, better flexibility, and no concept for architecture. that time, I had almost expericenced 5 years after my graduation.What I knew is just those variable technology. HTML,Javascript,Java,C++,ASP,EJB,VB,PB…,even COBOL. I was lost in the language details.

2003,I read some books.Refactor,Agile software developement,TDD,POEA,…. They changed me,frankly, they brought me new view to look on program & programming.I began to study OO principle from very beginning.Also,I began to notice how OO give program so much magic.Now, I even dont like to chase new buzz words and new framework, but focus very detail program. I like to code line by line, enjoy how to inject my spirit into every line of the code.I entirely enjoy the whole process.

Now,I like to use a sandbox to write my code.That means,I first decompose the requirement into a list, sometimes i will write down it, sometime,i just keep it in my mind. Then,I will have a short thinking about how to realize it and how to integrate every parts.Then,I take myself into favorite phase: coding. I have a sandbox project in my eclipse,I will write each part in my sandbox project. Testify my idea,testify the new technology I want to use, and TDD them. When I draft all,I will integrate them.Sometimes in the sandbox project,sometimes I will migrate the draft into the real project and integrate them.At last,I will integrate it with the whole project,of course,all depends on TDD. Then,I will cherish my code and review it frequently, and refactor it. Keeping the process until the project over or I forgot the code.

Enjoy code, not to be chased by the new technology.That’s my current status.

## 2006-03-15 JMX的一些大白话

JMX是个规范，目前是1.2，据说sun有个参考实现，不过，目前能拿到的是jdmk5.1，已经堕落成商业软件了。开元里面最好的是mx4j，tomcat里面就用的这个。

jdk1.5里面也实现了一个，这样，你就可以通过jmx偷窥jvm内部了。

mbean其实很简单，主要的对设备的操作都封装在mbean中了。你调不到mbean，只能通过相应的agent提供的接口。

mbean就是个代理，如果mbeanserver是个容器的话，那也只能叫做代理的容器。

I am so disappointed with NetAnt , so few functions but so many bugs. I always found it cannot remmember which topics i had read.It even lost entire channel messages, you have to update again to query these messages.

I went to its website, and left the words “too much bugs, quickly fix pls,otherwise,you will lose lots users”.

Then,I began to try another domestic RSS reader sofeware “看天下-kantianxia”, my God, it even cannot import the opml file,without hesitating, i delete it.

I search google again, i cannot find better reader, i was so disappointed.

The best I think is RSSBandit, its a sourceforge OS project, you know, as a programmer, i naturely like the software located in sourceforge, indeed, the RSSBandit did not make me disappointed. A little regret, it did not have Chinese version, but it supports Chinese very well.

## 2006-03-09 第一个手机程

My wife bought the Nokia 7610, which is a popular type in Nokia series. And it support the j2me. So,now i have a chance to finish my wish that create my first mobile application.

Just do it.

Since Tuesday,I begin to setup the developement environment,i found a useful article by google: http://asmiling.blogdriver.com/asmiling/1108717.html

then, following the instruction, I downloaded eclipseme 1.2.7,and jwtk2.2,soon,the development environment was setuped. before I began my first program, I browse the overall concept & architecture of j2me, http://www.yesky.com/SoftChannel/72342371878043648/20011004/199797.shtml

I learned lots of basic & useful concept, and more clear with the mobile j2me application, so,i began my first j2me helloworld.quickly, the programe ran ok,i saw the greeting words in my simulator. the left problem is that i need to deploy the program in my wife’s Nokia 7610. I consult from “pig” , who is a expert in j2me,he told me,i need download Nokia prototype toolkit.

So,I visited Nokia’s website,and fount the prototype toolkit, its version is 4.0. Downloading it and installing it. Afte that,I read its User Guide, I found it provide a eclipse plugin. So, I install it into eclipse’s plugin.

I came back to eclipse, and found the wizzard appeared “Nokia j2me plugin”.By it, i create a new j2me project, and I read the Nokia 7610 handbook,found it belongs to S60,and CDLC1.0.I choose the correct type and run the program. The Nokia S60 series simulator run ok. Then I saw my first helloworld program, everyting is ok.

So,The last step left: I need to deploy the program into Nokia 7610.

I run the 7610 provided “Application Installer”,but, the mobile prompt me,that the jar file i packed is invalid. I have no idea, I only search help from google, fortunately, i found this artichl: http://www.yesky.com/SoftChannel/72342371878043648/20011009/200123_3.shtml it told me: “ 这些属性并不是全部都需要，可是，没有下面列出的这六个，应用程序管理器就会拒绝加载这个 JAR。

MIDlet-Name

MIDlet-Version

MIDlet-Vendor

MIDlet-

MicroEdition-Profile

MicroEdition-Configuration “ I compared it with my manifest file, and found i lost “MIDlet-“ entry,so,I input the information of the midlet,and try again.

Wonderful! I saw the correct install prompt appeared in the screen of mobile, at last, I saw the program run ok in the machine,”hello world” appeared. Yeah!

## 2006-03-02 位卑不敢忘忧民

I read a blog(http://blog.sina.com.cn/m/liaozusheng) , the writer is a man who care for the problem of people’s livelihood.Those articles remind me not to forget what a real world i am living on.

I came from the country,I lived there for 8 years before I entered this Chinese central city.My relatives almost peasant.I know what life they are.

Everyday,I saw news, watch TV…,all media are showing us a vivid China.All peoples including me, are chasing much fortune.we talk about the house, talk about car, the gasline price, the stock trend…..That’s ok.But,we have to realize that the world is not a completed world,sometime is not a real world.Millions of people is working hard for theirl life, for their familiies,for the bread, for basic health assurance.

But, we cannot see that world. Though some media show us some vision of them, but very few, very surface. We cannot get the clear number,most of us had no concept of those poor man.

Fortunately, the government had reallize it.2006,one of the most important government taks is focus on “San Nong” —- agricultrue,peasent,country.I knew I can do nothing,but I can keep a mind on it, and remind me that the world is not like we see, dont look at the current life as certain.

## 2006-03-02 商品社会

This morning, I met my senior middle school classmate.He is on the way for applying commercial license. He had resigned and began his own business.

Yes,as you can see,the China had become a commercial society.Just like the song of ZhengZhiHua.”Commerciall society”. The most evaluable level is money. More money you earn, more successful you can prive yourself. Thougth you can disgust with money,but you cannot deny the use of it.At least, I must face on it serously.

Current China is becoming a super market, and is a new-developing market.That means, lots of chances exist.Just like one of friend said (http://blog.sina.com.cn/u/460f9891010001wt) “ we are within the period that China is experiencing great reform,it creates so many opportunities”. But not everyone can recongnise them.But at least, we should keep the acute scent of commerce.

So,Any good opportunity if you find, let me become one of your partners, and vice versa.

## 2006-02-20 享受技术的乐趣

Recently, I touched lots of interesting tech. The most influnced me is blog.

In the past, I was a slave of tech. I dont remmeber from when I lost my initial interesting to tech.

When I graduated from the college, I learned so much new tech, including email, internet, and C++, java… …, even to the end of 2002, I enjoyed those new tech.

But,when the I began to think about my real life, began work for the money, I found I lost the pure interesting on tech. What I learn is just for prompting my level for more salary.

But now, today, when I lose the strong interest in tech and move my focus on other domains, I found the tech-interest suddenly came back. I began to enjoy weblog, enjoy the advantage it brings me, not itself.

I hope I can get more funny from the tech more and more.

## 2006-02-20 头一篇email-blog

Today, I opened the setting of email publish in MSN Space.

This blog is published by my email, Just like a common email. I wrote it and sent it easily. Then, when I turn to MSN space, I saw it. And All format can be applied without losing. What’s more, by the help of Outlook, I can get more correct help to correct my spelling & grammar mistakes.

It was said, the email publish is basing on the MetaWeblogAPI , which is a open API basing on XML-RPC technology. It is an old tech, but it brings us new feeling.

Begin your email blog, why now?

## 2006-02-14 情人节的卖花女

I remembered that today is valentine’ day this morning. So, I thought there must be lots of flower sellers in the street. Unfortunately, I did not saw so much, very disappointed. Unitl I arrived in ChongWenMen, I saw a boy with a girl, and flower in her hand.

t’s sunny noon. After meal, I strolled in East Oriental Square. The flower girls is full of the square.Some took only several, while some took bundles, standing there with missish face. Some girls are initiative, they will walk up you and bargain ‘Sir, do you need any flowers’. But I more prefer those missish girls, who stand beside the street lamp as if it can support her to avoid her missish feeling. So lovely. I think most of them are students and earn some pocket money by such a holiday.

I came up a girl and ask “How much for one?” “five Yuan”. Yes, actually, not expensive. But one is 8 Yuan beside her. Oh, it seems grils did not come to terms for same price.

## 2006-02-09 看猪跑

http://www.networksorcery.com/enp/rfc/rfc2351.txt

The airline community has been using a worldwide data network for over 40 years……..
This is used typically for communication between an airline office or travel agency and a central computer system for seat reservations and ticket issuing. A dumb terminal or a PC accesses the central system (IBM or UNISYS) through a data network.

http://www.blogjava.net/calvin/archive/2005/12/17/24335.html

## 2006-02-09 果然是极端！

XP就是玩极端，看看Kent beck把开发如何极端化：

1．If code reviews are good， we’ll review code all the time(pair Programming) 2．If testing is good, every body will test all the time(unit testing),even the customer(functional testing) 3．If design is good, we’ll make it part of everybody’s daily business(refactoring) 4．If simplicity is good, we’ll always leave the system with the simplest design that supports its current functionality(the simplest thing that could possibly work) 5．If architecture is import , everybody will work defining and refining the architecture all the time(metaphor) 6．If integration testing is important , then we’ll integrate and test several day(continuous integration). 7．If short iterations are good, we’ll make the iterations really, really short-seconds munutes and hours, not weeks and months and years(the Planning Game)

Kent让应用开发领域重现了Hacker精神。

## 2006-02-04 恢复包月

I cannot bear it. I cannot bear see the connect time when suddenly I realize I am not monthly payment for the connection. I dont like to see the whole time when I disconnect the connection.I dont like to check my bill each month that if I exceed the fixed fee of it.

Now, I can take it easy for it.

Yesterday, I went to the CNN office to change my ADSL to monthly. And pay the whole year fee.I will become a 24 hours online piggy from March 1.

After long time choosing & filtering, My family confirm the baby name “刘浩越”. This is the idea of my father —- baby’s grandfather. We all agree with it: “皓月”当空, wish my baby like the bright moon,purificatory & bright, a clear mood. 浩，this word has a water in its left,my baby is short of water in his life basing on WuXingBaGua. And,the name is from his grandfather, as the tradition,the name should be from his grandfather The last one, We cannot make a satisfied name except my father ^_^ 无法忍受突然间想起来，连着网呢，然后歪过头去看看连接时间；讨厌每次断网的时候总是下意识地看看连接时间是多少；也不愿意每个月付帐的时候，留意一下是否这个月又多交了多少上网费。无法忍受了。

## 2006-01-31 扯

In life, we learn lots, and try lots.No one tells us how to do. Yes,this is the point.

I need learn, need pratise, need to make errors. My feeling is 2 point: learn more, and learn to forgive me. The rule told us, man cannot make fault,one man should think over everything. Yes, they are right, and my father always reminds me. But, dont make it an obstruct in your life. dont lose the encouring making errors.

Just make your decision,thinking is necessary. But when you make it, dont change easily.I saw the series “FanKong 24 hours” just now.This make me impressed. The president cannot have a clear mind, but from my view,more frigging,the danger thing he cannot make decision immediately.So,remind me & my friends, making your decision without any hesitation.

## 2006-01-29 真过瘾

There is a long time not to crazy, all city was crazy, so wonderful, I love it.

Those familiar noisy come back,which bring back the original atmosphere. It seems the authorities cannot omit the peoples’ willing. The boom from 2006,so hot,so loud, I love these noise.

My pity baby canot enjoy it, so, he had to block his ears tightly.

## 1月27日 鸡年最后博一把

Today is the last day before vocation. I wont online tomorrow,so,blog one today~

I saw the movie of “legendary XiaoQiang’s story” just now, so funny, it involved so many peoples & news of the past year. But it is a little distance with my imagination, without the impaction of that “Da Shi Ji” serveral years before.

I read some posts recently,including resuming firing firecracker; Spring festival evening;the fake of Han chip;the event of the weekly -«Freezing ponit» stopping publication;editor in chief was dismissed….ect. These make us known that so many problems exist in our society. Program “Talk” in News Channel of CCTV is a good program, in which you can learn all kinds of things in the China. Some of topics come from the report from internet. It seems that the internet is impacting us more & more, deeper & deeper. That’ all thanks for newsant,which help me aggregate blogs into a information portal and make getting news more easily.

Many things actually are ugly essentially, only for we have few ways to cognize the real world. Just like the words in “XiaoQiang’s story”: “Go home to see the CCTV XinWenLiangBo, in which you can see the prosperous world;and the flourishing world can only be seen in XinWenLianBo!”. Now all come all together, we are all shocked by it. But with time lapsing, we will be used to it when we saw more & heard more.

complaint is complaint, new year also brings us many things to expect: my baby will be stronger, 206 will be full of BeiJing’s street, housing market will collapse,the subway will open,more guys begin their blog life, and more,my sister will marry happily. Anyway, it is no doubt we will be happier in 2006.

## 2006-01-29 没有博克的人是可耻的

This is a open society, full of free in the air.Only lonely guy feels restrained.So,those no blog are vile.

“Information asymmetry”. peeking behind the screen is the latent lust in everyone’s body. Seeing their each actions, and chewing their variable spirit & mood, you must be hot. RSS aggreviation makes it to climax.

Thanks God,Thanks Blog, give us a chance. Others can read you.you are lonely, so, you need blog;you are passional,so,you need blog;you are free,you need blog,too. In the scene of debauchery, in the crowed,even in the boom of firecraker of new year,you cannot hide your loneliness.

Blog yourself, let your fire blame fiecely,let all peeker of all the world resonate with you.

## 2006-01-06 新闻蚂蚁

I used Feedemon in the past, but it’s not free,I have to search its crack key, Now there is our Chinese verion, and it’s shareware.

Ok,now you can read all blogs in one software,why not try it,so cool~

## 2005-12-23 Begin my wiki life

I ever saw a HTML page sent by “ColorWolf” , it is a snippet from his wiki - JSPWiki.

So,I begin to have a try.

I download it, and deploy it in my tomcat, from 2005/12/13, i began my wiki life.

I only looked it as my pesonal blog system & document achive.

JSPWiki is quite simple,but I think it is enough,some features are useful for me: I use it as blog system, although it has actually a blog plugin, but I didn’t use it,I just use the common way to create blog: just create a new document. I think ,styles are not important, but ,item is. JSPWiki supports image,link, and attachement, what’s more, it provides some text formatter,simple and easy use. It does not need database,just plain text,you even can modify the item by edit the text directly.Also, tomcat does not ocuppy so much resource of my PC, I obeserve only 30M memory is used.Quite limited comparing with 1G memory of my PC. Okay,now I had a private wiki system. Its functions is within the scope of my daily work & life, and mainly is work.And I know, item is more important than styles,so,hope you can find your document collection method fitting you best.

## Take care yourself2005-12-19 ,guy

An warm-hearted & professional developer left us,although I am not familiar with him, I also mourned deeply.

Yesterday, I chatted with my wife. She told me her classmates earn little money.Her classmates all are doctors.In general, their month salary only reaches 2-4K,but they all are working hard. They often work through whole night without rest, and suffer huge working stress. She thought it is too unfair.

Yes,I had to approve her,maybe we are lucky,as all of us know, IT is a high-paid industry,but the same time,we suffer the same stress,too.

Overtime,overtime,overtime!

You can see the situation in almost all companies in Chinese IT company.And you also have to study & work hard.So many smart&diligent guys crowd into it.You have to.

Actually, not IT,medical system in such case,all peoples in Chinese are experiencing in the same way. We are fortunate and same time unfortunate, we get more freedom and right,more oppertunity to choose,but , we also pay for these. That’s the fate of our generation.

## 2005-12-16 Discussion

Before going home, I talked with my colleagues about our system develpment & project.

We discussed lots, including: How difficult to code cocurrent network programming, how to deal with timeout and some protocol problem.I recommended UT and some agile methods. But they all said,it’s difficult to practise,lots of reasons make us hardly to change.He also told me, one application’s source had reached serveral M bytes, including java/javascript/storeprocedure…..Acutally, the project had been ongoing for server years, and the teams also had serverl years history.

I learned lots for my colleagues,but I also realized something: The team had formed some patterns,some are good, but some are not good,but,the teams seemed had no encouraging to change them, that’s the point.

I strongly want to help my team to improve & change bad situation, but , first of all,I knows,I should involve the team and study the rich experience accumulated by all colleaugues.I need more patient and passion to involve the team.

Whenever & However, I won’t forgot “Communiction,Encourge,Feedback,Simple”, and share the spirit to all members.

## 2005-12-14 XP practice

Since i did not code for almost one year, I feel a little inexperienced for XP, recently i am tring to practise it.

First, i try to write UT-unit test, i write about 20 test case. my experience is it is actually improving my desgin and the quality of code. when i send the code to FrankLi, he sneer me test cases are too few, he said one feature is corresponsing a UT, yes, he is right, but i am just a beginner of it, i will write more and more UT in the future.

Today,I paire with my colleague, he is a good young guy, having rich experience in network programming, with his help, i begin to intergrate my code into our whole project, but found lots of problem.

The mose difficult is when i merge my code into project, i found i had to write lots of adapter code, the other side of merge force me to accept lots of concept and class i actually do not need.

for example, i just need a byte[] , which is income message. but it send me a class named “Msg”, which is considerable complex.

another example is,the project provide a architecture for programmer,it provide serveral interface, i implement them,but when i write detail implementation code, i still write my code fowlling another implementation written by other colleague, just looked that implementation as a template,why? becuase, there are lots tricks in the implementing code, you have to involved into them, i call them TRAP. dear! my ideal implementing is i just focus interface, it is a contract, i dont care others how to implement, i just implement mine.

also, during lunch time, i always discuss some XP concept and practice with my colleagues, hope i can be a missionary of XP, but first of all, i first should become a XPer:D

## 2005-10-18 马拉松

02年的时候，跟猪一起跑过10公里，3年来一直没再跑过了，摸着满身的囊肉，腰老是隐隐作痛，自叹身体不如从前。家人反复叮咛，不要逞能，慢慢跑，谨记在心地出发了。早晨的前门，万头攒动，阳光照耀下，热情弥漫。开跑了，看到前面一位白发的老爷爷，手举牌子，曰“迎接2008奥运”。另外一位，脱掉全日空赞助的白T-shirt，换上自己的上衣，印有“钓鱼岛是中国的”。新京报一个方阵，穿著整齐，步伐一致，喊着“1，2，3，4”，就如同高中军训的样子。到了复兴门，5公里的终点后，全身大汉淋漓，好痛快，浑身软软的舒畅，好久没有过了。只是，周一早晨，全身酸痛，才让自己知道了长久不锻炼的后果。

## 2005-07-18 要出差了

csdn上java10年，想来自己认识Java也6年了，一路走来，感情深厚。

http://lumaqq.linuxsir.org/article/friend_list_implementation.html

http://blog.csdwiki.org/play_view_sort_opensource.html

## 2005-07-14 凶险的项目

team内讨论，大家的一致意见是早点去客户现场去开发，否则，%……—*（

## 2005-07-13 向赵博士致敬

http://www.oldlinux.org/cgi-bin/LB5000XP/topic.cgi?forum=1&topic=2&show=0

## 2005-06-21 燥热

TMD，又38度，赶上我提问了，热，热，热啊。

## 2005-06-01 支票

2年前的6/1，我还和老婆还有她的狐朋狗友们在朝阳公园happy，那是一个礼拜六，很热，那里面的朋友们几乎都成了我们的邻居了，除了小魏同志，呵呵。

## 2005-05-29 身在曹营心在汉

N年没有出差了，现在在江阴的一个镇子里－－－新桥，这里的企业做的很牛，感觉一个镇子就像一个城市一样，我所在的这个企业，建筑都是仿古罗马的建筑，华丽的大厦，恺撒的雕像，还有各种欧式建筑，另外，还有一座五星级的酒店。

2天来，整的一团麻，还没有一个整体的清晰思路出来，告诉自己不要陷入细节，但是往往不是自己控制的住。

## 2005-05-09 困

5/1歇爽了，吃饭，睡觉，看电视，还有学车是主题。

blog就是记流水账，让自己某年某月回头时，看得到生活的轨迹。

## 2005-04-24 礼拜天啊

http://www.wfjbs.com.cn/award/maodun_index.asp