2009年4月24日星期五

生命是值得珍惜的

在这不况的时代,在任何时代,保全生命都是重要的。
看新闻有些人真是死的很离奇,比如 澳大利亚一名华裔男子遭人以钉枪向头颅发射34枚钉子杀害研究生做引体向上拉倒球门被砸身亡
看看云,看看海,看看天空,活着每天应该心存感激。

2009年4月23日星期四

good practice for extend a open source item

In wikipedia, there is a language named "Simple English". Also, a productive program should be written in simple ways.
i want to dump database tables into csv files. i found scriptella etl. you should told it table names and column names in each tables, and it will do the left things for you.
but my csv files should seperated by comma, and no quots. csv with quot will make size *1.3, which is not good. if a comma appears in the content, the format will be broken. so i'd like to replace comma with `. it cannot meet my needs in obviuse ways. so i find it opensource, i should customize it.
csv output is about a "driver" named "csv". since the driver is found in the way of "String fullName = "scriptella.driver."+driverName+".Driver";" there is no config file needed. this is simple and smart. the foolish way is a config file and more foolish ones writes it in xml like what spring guys will do. so i forked a package using csv and make the changes.
And null items shows up as $column_name defaultly, i also forked a PropertiesSubstitutor.java to make it output a empty string. what i found is easy to do than dealing with other open source projects. and the reason should be,
*always public and donnt seal package. if you want be in simple smart way, forget the least permission priciple which fools invented.
* less interface or such things. maybe someone think himself consider problem in high abstraction. but in fact it will always be less abstracted in time of extension work.
* less dependency. it means less forking copy work.
after that, i export the new package into a jar file. and just copy it into lib dir. it works. because the bat file use:"for %%i in (*.jar) do set _SCRIPTELLA_CP=!_SCRIPTELLA_CP!;%%~fi" to include all jar insight.
i donnt know if it is a good way to solve the dump task. but the hack expierence is smooth because of its simply tone of programming.

2009年4月17日星期五

史上最失败的十款操作系统

史上最失败的十款操作系统 (英文版)

看了不禁笑了,雄心勃勃做个操作系统的事情并不总是从容的收场的,可能是个惨败。但是毕竟很多都是很久以前的故事了。

2009年4月16日星期四

oop in ansi c

i searched net for the topic, and have a thought.
because c's function is static, when compiled, suppose, we have 2 object x and y.
when we call x.a() and y.a(), because a() is a static function, if infomation about x and y is not sent to the function, it will not know. think again..., no, it cannot. so "oop in c" is done on the base of a(self,args,...), such way.
the ooc.pdf is also in the base.
that hurts. say x.a(arg1).b(arg2).c(arg3) can never written in its way, instead, should be c(b(a(x, arg1),arg2),arg3) . think if you should write 1+2*3-4 in way of "- + 1 * 2 3 4 ", the same meaning.
that is language, a language can do anything in theory, but the way means.

2009年4月15日星期三

与文化无关的气质

就像我观察到狗和猫都有与生俱来的气质,比如导盲犬和牧羊犬的气质都和基因有关。
那么人也是,存在一些种类的气质是跨种族,跨文化的。当然也有一些是与种族和文化有关的。
问题是哪些是跨种族,跨文化的?

2009年4月9日星期四

樱花满开

下班回家天还没暗,在楼下的公园拍的。

更多(相册)。。。

2009年4月8日星期三

网摘

新闻不好看,网友的评论更好看

比如
---
常識の定義は人それぞれ、これ常識

---
【報告】
する→いちいちするな!
しない→何でしないんだ!

【連絡】
する→わかってるわ!
しない→連絡ぐらいしろ!

【相談】
する→自分で考えろ!
しない→何で相談しないんだ!

---
コミュニケーション力
- 微妙
团队精神
- 按领导的意志办事的精神

2009年4月7日星期二

樱花

今天是日本学校入学式的日子,天气很好,东京的樱花满开了,风吹着,花瓣就像下雨一样。

2009年4月3日星期五

github bug?

新使用了github, git第一次用,我怀疑git没用对,但是其实像是github的bug,新的branch显示不出来。 git 比svn好的地方就是commit不用每次传到remote,可以在需要的时候做, 提高的传输的速度。

2009年4月2日星期四

not read news near April Fool

meaningless.

博客归档

neoedmund's shared items

我的简介

ZIP Code File