2006年10月31日星期二

2006/10/31

2006/10/31 火 晴
今天本月最后一天,提交了勤务表。谢谢余广生给我用电脑并教我怎么填。
我真是想不通,わざわざ把我拉到日本,让我坐在那里发呆。一天我都闷死了,
既不能上网,工作也不饱和。肚子倒是照常工作。饿死了。
回来路边警察老头突然说:ありがとうございます。足元ご注意ください。
本当に優しいね。
做电车以后做了快速线,到浦安换车,可是下车后觉得不是快速啊。傻了一次。
回来后买了便当,还挺便宜。一边看着电视樱桃小丸子一边吃。我真是来日本享清福的阿?
今天方さん说实在没什么工作安排饱满了,而且让我做的这个也委屈我了。再不让我做点有趣的事情
我快闷死了。原来工作也是一种需要吗?牛さん今天去中国出差了,下周回来。不知道
会不会说我工作的事。可他也没和我正是谈过是否有来日工作的希望啊。

-----

2006年10月29日星期日

周末

来日本干活一周,迎来了第一个双休日。
闷了一周以后周六早上作了个高科技的梦,在太湖边有一个属于我的高科技的别墅。
于是起来觉得去买台笔记本,正好宿舍里有宽带的。
背了书包去秋叶原,还不算路盲。走了电器街后5万块买了一台二手ThinkPad。
(回来查了一下,在中国买可能4万日元也能买到了。不过在日本这应该是比较便宜的了。
而且在我这个高手的配置下还用得不错,但是内存不太够,打开程序太多就会不停的喀喀喀
读硬盘。回国后加到512M,就能更流畅了。)这里什么人都有,中国人,欧美人,黑人,Cosplay的。
然后顺路去了上野恩赐公园。里面的猫又白又胖又可爱,还有很多欧美人和日本人在
露天表演各种节目。看得人都拍手啊,很兴趣盎然的样子,日本人挺有纪律性。
(不过因为没做调查,不忍池和动物园都没去)。转了一圈就回来了。
周日比较无聊,在家玩电脑,吃饭。买了刺身,就是生鱼片,第一次吃感觉应该生吃的,
不管3721就吃了,还挺鲜美的。芥末我可不敢吃,上次吃了一大口,差点没有呛晕了。
还有鸡肉稀饭(买的时候以后是排骨呢,因为太像排骨了),吃的时候放点酱油。不错。
下午累了睡了,在南京楼下老太婆叽叽喳喳个没完,在这里楼下小孩也叽叽喳喳。
「まもる、まもる」玩得很开心。我现在日语听了都听得懂就是不明白什么意思。
日本小孩子大都挺可爱的。还有人来帮忙清洁卫生,使公司请的,其实不需要,平时
注意一点就行了。这次不太脏,打扫后也不太干净。
太安静了,我觉得自己可以做很多事。在信息的海洋里遨游。
但是想起明天开始又要上班了,恍如隔世的感觉。
这次我是想总结中日差别的。大得我就不说了,中国需要提高的地方,
首先营业员,服务行业的又要热情体贴周到,谢谢光临,谢谢,要喊得比什么都勤,
态度要非常和蔼。
然后开车的要非常体贴行人,经过路口要减速,绝对不可以和行人抢。车辆之间也要互相礼让。
人和人之间也要互相礼让。
日本需要提高的地方,有的书和报纸还是按中国古代从上到下从右到左写。最好和中国统一。
汉字也用简体字。读音最好也和中国普通话相同。
-----

2006年10月16日星期一

Finding a perfect language (updating)

i born in 1980.
i learned basic in 1990, for basic for computer programming.
i learned pascal in 1992, for do some contest in algorithm.
i learned java in 1998, loved it and for fun and job after 2002.
i learned python in 2005, found it attractive. but it's library is not as goodas java yet, through it's OO and grammar looks better.
i found Io (iolanguage.com) today, and found it maybe better.



So what is a good language?
i think,
* dynamic, object with fields and methods
* grammar, write as quick as my mind, (for more respect to programmer: easyto implement a compiler and interpreter)
* functionality, usability, library, performance, portability, ...


updates:


Look, i'm on to make my own language, neoelang. it's base on java, compilable to java, run on jvm, can use rich java api, but
is no-type, more dynamic on field, method and extends. it should be more "reusable": write once, use anywhere in program!


updates:

After i consider on neoelang at a weekend, it is hard. Monday I found python can do what i expect neoelang should do in
google python group (http://groups.google.com/group/comp.lang.python/browse_thread/thread/6ad80f520eb58449?hl=en) , thanks they helped me worked out , result in such a program:


class C1(object):
def v(self, o):
return "expected "+o

class C2(object):
def m(self):
print self.v("aaa")

class C3(object):pass

from types import MethodType

def addMethod(obj, meth):
f = meth.im_func
setattr(obj, f.__name__, MethodType(f,obj))

def test1():
o = C3()
addMethod(o, C2.m)
addMethod(o, C1.v)
o.m()


test1()
print C1.v.im_func(None,"xxx")

-----

JamesNeo MailServer

J A M E S - N E O M a i l S e r v e r



James-neo mailserver is a OPEN SOURCE 100% pure Java server application
implements protocols SMTP, POP3. (with GPL,LGPL license)
its SMTP POP3 protocols is used source in "Apache James"
and use JavaMail API for out-going mail.


It is very easy for install and configuration:
1. download the zip file and extract it.(you proberly have done this when you reading this file)


2. edit conf/hosts
hosts lists the virture host name, each per line. for example: if the file look like this:
abc.com
mypc
then, mailto xxx@abc.com (mailto:xxx@abc.com) and xxx@mypc will be hosted in the server.


edit passwd in "conf/passwd", if file is not present, any password and any use is acceptable
usename1=password1
usename2=password2


3. run the server
unix:
java -cp james-neo.jar:javamail.jar:activation.jar:mail.jar neoe.james.MailServer 25 110 > log.txt 2>error.txt
windows:
java -cp james-neo.jar;javamail.jar;activation.jar;mail.jar neoe.james.MailServer 25 110 > log.txt 2>error.txt



Story:
I found "sendmail"'s configuration is too hard to master for me, so I found some java mail server.
i first found Apache James, it is good, but when running it, some problem come out(outgoing mail cannot sent without warnings)
and i don't know how to solve it.
so i was to make my own server.
I used the code of SMTP and POP3 from James and cut of the dependency of Apache Avalon and Apache Phoenix.
so the code is seem to simple and straight. in this way i can custom it easily, thanks for the opensource.


:)


neoe
2005/8/24



public-build:(2006/10/11)
* smtp: no auth, no relay, only accept domain in file "conf/hosts"
* pop3: passwd save in file "conf/passwd", if file is not present, any password and any use is acceptable
* server: must specify the port for smtp and pop3
* pop3 access log 1 hour 1 line


living demo: niuxd (AT) neoedmund.com
file download

-----

博客归档

neoedmund's shared items

我的简介

ZIP Code File