Saturday, March 26

The only things we need to learn:

rtfm

and

google

Sunday, March 20

Category: 我要把我的blog分分类

现在想到分成:
[Music.听]
[Network.玩]
[Life.生活]
[Thoughts.想]
[Nothing.空]


这几部分。过两天看看还有没有更多的类。

Labels:

No problem.
But why did you reply in this message? thinking...
 

Firefox 的 BT 搜索

上次作了mp3.baidu.com的搜索插件,这次这个是btchina的,请访问 http://fadshop.net/ben/ff_bdmp3.htm 点击安装。


(真的能霸占Oui-Blog 聯播的位置么?试试看)

Labels:

Saturday, March 19

记录:您正在搜索的网页可能还未备案!

今天(北京时间3月20日5:30AM)google:“您正在搜索的网页可能还未备案!”,只有1个网页,"信息产业部网站"有869个网页,“我要备案”有63个网页。

过两天看看参加这个示威活动的有多少。

Wednesday, March 16

.cn域名与33号令

.cn域名与33号令:
"王朔十几年前就颇有感慨地说:你想呵,二亿多文盲,五千多万残疾人,四千多万党员……容易么?"

为了方便国家主管部门对你实施有效的管理,你应该注册.cn域名。一旦你注册的是.com域名,你就out of control了,你这么大个人,没人管着了,还有比这更危险的吗?
--keso

Tuesday, March 15

Numerical Integration

Numerical integration is the approximate computation of an integral using numerical techniques.

/**# Script Name: test.java
# Script Version:
# Date: 2005-3-15
# Author: Ben@fadshop.net
# Description: Calculate Numerical Integration of a function.
# @author ben
*/

/**
* @author ben
*/

public class test {

public static double func(double x) {
return Math.exp(x*x); //e^(x^2)
}

public static void main(String[] args) {

double start, end;
double x, y, total;
double step;
double temp;

start = 0; end = 3;

total = 0;
if (start > end) { // make sure start 〈= end
temp = start;
start = end;
end = temp;
}

step = (end-start)/100.0; // if step == 0 then infinite loop.

for(x = start+step/2; x 〈 end; x+=step){
y = func(x);
total += Math.abs(y)*step;
}

System.out.println("Total=" + total);
}
}


上面是用来计算定积分的函数。例子中的ex2是不能算出积分的,所以只能用这种方法蛮解. 用来计算0-3的定积分,误差小于1%(跟MATLAB比较)

this is too slow.
 
Are you bored because xys.org is down? :)

It's not slow. Actually you can adjust the "step" to make sure you get satisfied result as you want. Yes, it's a compromise.
 

Tuesday, March 8

AD Block

*/ads/* */ad/* *.doubleclick.net/* http://ads.* http://ad.* http://adserver.wenxuecity.com/* http://www.dealsaving.com/* http://www.xinhuanet.com/classad/* http://ar.atwola.com/* http://ad4.sina.com.cn/* http://adimage.asia1.com.sg* http://partner.cpc.sohu.com/* http://adimage.asiaone.com.sg/* http://spe.atdmt.com/* http://adv.pconline.com.cn/* http://www.donews.com/sponsor/* http://pagead2.googlesyndication.com* http://scalink.sohu.com/* http://image.cn.tom.com/guanggao/* http://m1.nedstatbasic.net/* http://images.chinabyte.com/* *.allyes.* http://www.rolia.net/2005/image/ad_* http://space.fenteng.net/img/out/* http://us.a1.yimg.com/us.yimg.com/a/* http://adclient.163.com/* http://imagecache2.allposters.com/* http://cool.pcpop.com/* http://ad4.enet.com.cn/* http://union.narrowad.com/* http://view.atdmt.com/* http://adserver.* http://www.wenxuecity.com/adinfo/* http://images.allposters.com/* http://mitbbs.com/ad_pics/* http://*.narrowad.com/* http://etad2.yam.com/* http://adsence.sogou.com/*

-------------
Above is the adblock.patterns in my FireFox. Some of them is not even AD. For example, I blocked http://m1.nedstatbasic.net/* because I don't want to increase the counter when I visit my own website.

---------
Update: 9, Oct, 2005:

*/ads/* */ad/* *.doubleclick.net/* http://ads.* http://ad.* http://adserver.wenxuecity.com/* http://www.dealsaving.com/* http://www.xinhuanet.com/classad/* http://ar.atwola.com/* http://ad4.sina.com.cn/* http://adimage.asia1.com.sg* http://partner.cpc.sohu.com/* http://adimage.asiaone.com.sg/* http://spe.atdmt.com/* http://adv.pconline.com.cn/* http://www.donews.com/sponsor/* http://pagead2.googlesyndication.com* http://scalink.sohu.com/* http://image.cn.tom.com/guanggao/* http://ad.tom.com/* http://m1.nedstatbasic.net/* http://images.chinabyte.com/* *.allyes.* http://www.rolia.net/2005/image/ad_* http://space.fenteng.net/img/out/* http://us.a1.yimg.com/us.yimg.com/a/* http://adclient.163.com/* http://imagecache2.allposters.com/* http://cool.pcpop.com/* http://ad4.enet.com.cn/* http://union.narrowad.com/* http://view.atdmt.com/* http://adserver.* http://www.wenxuecity.com/adinfo/* http://images.allposters.com/* http://mitbbs.com/ad_pics/* http://*.narrowad.com/* http://etad2.yam.com/* http://adsence.sogou.com/* http://*.union.163.com/* http://news2.163.com/* http://image.cnxp.com/gg/i7766_ad.swf http://imguv.21cn.com/gn/* http://ucstat.baidu.com/* http://unstat.baidu.com/* http://search3.btchina.net/js/WaitAd.js *.linktech.cn */banner/* http://www.torcn.com/advertise/* */advertise/* http://images.blogads.com/* http://adv.sms.3721.com/* http://ulinkjs.tom.com/* http://pfp.sina.com.cn/* http://partner.p4p.tom.com/* http://imgusms.21cn.com/* http://book.goodqq.com/adjs/* http://image.51el.com:8080/gg/btchina_hp76060.swf http://image.51el.com:8080/gg/* http://images.sohu.com/* http://ad03.a8.com/* http://www.mypcera.com/* http://union.114.com.cn/* http://shop.enet.com.cn/eshop/zhuanti/guanggao/* http://home.donews.com/sponsor/adv_article_top.swf http://home.donews.com/js/adv_*.js http://v.rmvb8.com/* http://dist.belnk.com/4/placement/* http://www.adkey.cn/* http://online.265.com/img/* http://union.3721.com/* http://click.100tone.com/* http://www.100tone.com/* http://www.sinchew-i.com/advertisement/* http://www.vipcn.com/hezuo/* http://www.sooxue.com/public/js/Ad.js

Sunday, March 6

Principles of Effective Research

Research is, of course, only a part of life, and must be understood in relation to the rest of life. The foundation of effective research is a strong motivation or desire to do research.

Make sure you're fit. Look after your health. Spend high quality time with your family. Have fun.

I believe that the foundation of effective research is to internalize a strong vision of what you want to achieve, to work proactively towards that vision, taking personal responsibility for successes and failures. You need to develop disciplined work habits, and to achieve balance between self-development and the actual creative research process.

URL: Michael Nielsen: Principles of Effective Research

[via Yan Feng]

Why I don't use Skype

Many friends introduced Skype to me. Actually I may be the first one to use it between them :) I tried Skype 2 years ago. The audio conversation was very clear. The problem is: It took the position of NetMeeting.

After I installed Skype, I couldn't call Netmeeting from MSN Messenger anymore.

NetMeeting is the tool I use to talk to my parents every week. I can't live without it.

Some might say: You can install Skype in your parents' computer, then you can talk, make full use of SkyPe's clear audio conversation.

The first problem is: My parents don't know computer well, and I don't want to introduce new software remotely.
The second problem is: Sometimes I can use NetMeeting's "Remote Desktop Sharing" to control my parents' computer, fix some trival errors. I don't see that function in Skype.
The third problem is: If I install Skype in their computer, how can they talk to their brothers (my uncles) through Internet? Should they install Skype too? How about my uncles' friends?....

So, I uninstalled Skype soon 2 years ago. Last month David said now I could have Skype and NetMeeting at the same time, so I installed it again, but I don't see anything different thant 2 years ago. It took me 2 days to uninstall Skype and put the Netmeeting back.

Don't ask me about Skype anymore!

论《老、孔对答》

新闻早报读者来信:
  众所周知,老子与孔子生于同一个时代,只是岁数上有大小之分。
  孔子到周室问礼于老子,老子即席作了回答。
..........
  以上是在中华民族两个伟大圣人之间展开的一场问答及孔子心情的真实感受。


古 书上有不少老子、孔子的对话,大多源于《庄子》中,估计是庄周拿来调侃儒家的,对话毫无疑问都是孔子问道,然后学了许多道家知识。其实,历史上有没有“老 子(李聃)”这个人都是可以存疑,虽然庄子和其他道家(甚至儒家的著作)经常提到这个人,把他崇为前辈,但是《老子(道德经)》里的思想比庄周及同时代的 杨朱、慎到等道家长老的思想都先进、成熟,所以估计是庄、杨的后人托老子之名写的道家总结。

我倾向于认为老子是小李飞刀这样的人物。古龙把这个人物创造出来,别人再写一些阿飞的故事,周星驰(唐伯虎)说“排名第一的原来是小李他妈的飞刀”,等到地摊上出现“小李飞刀传”这样的垃圾小说的时候,这个人的存在就是棺材板上钉,无可置疑了。

Labels: , ,

Saturday, March 5

删除blog指南

按下Delete键,文章便如撕下的废纸,飘落风中,渐远,不见...
可是,故事在人群中传播,人们低声嗫嚅中,你感觉记忆永远不会消失...

我说的是RSS。你虽然删除了blog上的帖子,但是曾经发生的RSS被别人(Bloglines, FreeDemon)保存着,直到永远。

每个人都有很多理由要删除一个曾经贴出去的blog,但是在删除的时候不要忘记把文章对应的RSS也抹掉。问题是:RSS标准没有提供这个功能,应该怎么办?

RSS不能删除,但是可以修改。所以,你要做的第一步是把文章修改成空白,对应的RSS也就修改成空白;那些RSS软件例如Bloglines, FreeDemon自然会(在一定时间之后)修改自己的缓存,把你这个敏感的文章抹掉。这时候,你就可以安全地删除整个blog了。


(本来可以写得更有诗意的)

Wednesday, March 2

痛与冻


(http://www.pbase.com/peta_sh/image/40345308)
到底是“他们的痛及不上双肩的冻”还是“双肩的冻及不上他们的痛”?传统竖排的文字都是从右向左...