2006年7月28日星期五

火了

最近好久没有去柔道,摧残并锻炼我体力和意志的运动.
所以心火上升.也有说法是太累导致易怒,但是我觉得不完全是这样.
昨晚我睡觉的时候发火,让我有点睡不着.
我再想的是一件小事.今天我去吃粥,问老板要点醋,老板竟然那么小气,问这问那,
很不情愿.我发誓再也不去吃了.饿死也不去.
以前就是一个买早饭的,路过只有这家,而且早上饿,麻团做的不错.
但是老板服务态度太差,而且把钱和吃的糅合在一起.我发誓饿死也不买了.
果然再没买过.
然后我就对那种态度的人(那种感觉,对人不认真,忽视别人,不顾别人感受,只顾自己感受)
的人有了一个总体的仇恨.
然后我开始恨google了.他让人依赖他,从而使人欠他的.没有google就不能正常工作.
无可替代.这是非常危险的,万一一天google对搜索收费了,gmail收费了.那么我
想戒掉他很难很痛苦.从这角度看,和毒品有什么区别?对了,google是免费的,
但是不是开源的,是不可复制的.为了独立生存,我必须要想个解脱google依赖的方法.
最后做了十个菜虫式仰卧起坐,渐渐睡着了.

附:
how to get rid of addiction to google?
1. search
自己做个搜索引擎,可能不如google好,但是可以用就好.
分词技术,开源搜索应该都可以起步的.
以后带宽变大了,就更有可能了.
2. gmail
mail服务器不是什么难的技术,硬盘空间也很便宜.只要有个internet服务器(这个还得租用一个).相信
可以拥有自己的无穷大G邮箱.


-----

2006年7月26日星期三

FAQ: how to google search after it is blocked?

1) what is a "temporary block"?
when you use google search in China, 2006. if some specified "ciritical words"
appears, the google.com is blocked for a while, say half a hour,or one hour.
after the "jale" time of your ip, you can visit google again.
when it blocks, the browser say fail to connect to server. the ip(s) of google
seem linkable. but url like *.google.com cannot be connected.
maybe the great firewall job.
like today, a political spam email come to my gmail, and it show up in the
personalize page of google including the gmail part, it make my ip blocked.
Oops.
2) how to do google search after it is temporary blocked?
i found some means:
1. wait until it unblocked, it is about half an hour.
2. use some site which use the result of google search.
eg. site like xisoso.com, dogpile.com, search.com, monstercrawler.com ...
3. use a DNS redirecter, as google.neoedmund.com(just redirect to google.com),
it will not be full function, but it can do search, at lease these days.
3) i wonder if i should write it. because if the "blocker" knows this, it may think out
a anti-method. but write out to share the knowledge is good.

-----

2006年7月24日星期一

gwt and zk and dojo

i have view the 2 ajax framework.
have to say, find some problem avoid me to use them freely.
gwt,
i use gwt with jsp. gwt can get value from hidden form element generated
by jsp. but i found the cross browser compacity is not as good as gmail(seem to be poor).
also the wigets is not as rich as ZK's. so i believe the gmail is not made by gwt
and gwt maybe is 10% functional of gmail's develop kit.
zk,
it use jsp tag and servlet filter to work with jsp. but the web.xml is for tomcat,
fail on resin. it's maybe a small problem. however, the page should be designed
not very similar with jsp, that is a discount for me.
after trying to use then for one day, failed, i found i'd better do ajax use my
own hand-craft kits.

PS. i found dojo, it is a clear kit just use javascript. it is usable.
有人问我编程是不是从网上下载工具,然后开发. 我说是的.
是的,OS不是我开发的,语言不是我开发的,IDE不是我开发的. 我只是2次开发.
虽然长期以来都有1次开发的感觉.
-----

2006年7月19日星期三

编写程序的几个境界

1. 为了满足自己的兴趣而编写.
最有动力,最有快感,最不容易疲劳.最自私.需求最低级.
2. 为了满足自己的需要而编写
有一些动力,容易疲劳.
3. 为了满足别人的兴趣和需要而编写
被雇佣,动力差,最容易疲劳.技能增强慢.
这是几种纯粹的分类,实际中一个任务可能会涵盖其中的几个.

-----

2006年7月18日星期二

rich web

近来web2.0等rich web越来越逼近我的眼球.,
还研究了一下gwt. 还看了web os.
我不知道怎么用html,css,js来做出应用程序的效果.
有几个问题, html对坐标式的对位不太好,
不同浏览器差别大.
看后觉得可以用java applet.
1. 人类是没有组织性纪律性的,看看几种浏览器各自不通.谁也不服谁,也不统一.
2. 人类不是从根本改变世界, 宁愿在千疮百孔的html上实现复杂的界面,
而不愿意,废弃浏览器,搞个浏览器2.0. 就说是安全问题, 你开发的
客户端别人不敢用. 我觉得这不是问题. 从混乱中建造次序. 把不可能
变成可能. 浪费了多少生产力. java applet尽然没有大大的流行起来.
-----

2006年7月13日星期四

neoe技术小报

1. resin下使用jdk5默认的xml dom parser.
resin使用了自己的xml parser, 和jdk5的不太兼容, 比如CDATA的处理上.
以下方法可以使用jdk5默认的xml dom parser. 其它sax,xslt也有相应的属性,google一下应该能找到
<web-app>
<!-- xml -->
<system-property javax.xml.parsers.DocumentBuilderFactory=
"com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"/>
</web-app>
2. neoe发明了ObjectDirectory(C)技术, 用于取代数据库.
原理是把pojo(也就是neoe-itable bean),一个Object一个文件(使用itable-xml功能),
一个class一个目录的存放.每人Object有唯一的xid来找回.
而对象的引用也使用xid. xid是一个BigDecimal
自动save deamon可以根据负载自动调节save的频度, 已达到高效读写.
最大的好处是不用设计数据库,只要用非常简单的方法把要持久化的数据纳入ObjectDirectory
即可. 目前还不支持lazy load.每次启动JVM,数据将会全部自动读入内容.对于小型应用,
是高效的做法.
ps.
neoe从拉了一天肚子以后恢复, 发现新的一天真好. 每天似乎都是上帝赋予的新的生命.

-----

2006年7月6日星期四

公交车上

我现在还惊魂未定.
今天在公交车上又发飙一次.
算起来已经是在南京的第三次公开发飙了.
1. 市民广场和市容之类的发生冲突
2. 大厦门口和集体闹事的发生冲突
3. 公交车强行下车
今天说来都怪那两个杀千刀的, 车上人很挤. 我要下车,可是他们不下,却老抢在我前面,
我以为他们要下. 但是那个大学生没样的站在门口堵住我也不让我下.
车门就关了,我喊了"司机,开门".喊了七八声竟然不理我.整车的人有的忽视,有的说,"算了,
肯定下不去了."
我一下子怒气上升,飞快的从人群中无阻力的窜到司机跟前,吼道,"司机,开门啊.喊了那么多声都不开."(把乘客当成什么了).
不是声嘶力竭,但也是暴跳如雷.
开车的是个女司机.她似乎吓了一跳.说,"开门开门,我也没听到啊."
于是我就从前门下了车.
-----

博客归档

neoedmund's shared items

我的简介

ZIP Code File