星期二, 十二月 20, 2005

维基百科创始人Jimmy Wales遇刺身亡

SmartMobs援引Register的报道说,维基百科创始人Jimmy Wales遇刺身亡。

Jimmy Wales 

凶手据说是John Seigenthaler的朋友。而John Seigenthaler,这个前美国总统肯尼迪的助手,曾被维基百科错误地描绘成刺杀肯尼迪兄弟的嫌犯达数月之久。

值得玩味的是,Register说它的消息源自维基百科。

尽管质疑不断,但近来维基百科声誉日隆:ZDNet认为维基的准确性堪与大英百科全书媲美;而它的访问量已经超过包括Dictionary.com和纽约时报在内的所有资讯网站。

在此背景下,这则消息的确是既令人震惊也令人深思………

星期六, 十二月 17, 2005

开发工具大战 Java进退维谷

Sun公司近来的新闻主要围绕免费软件和新的服务器芯片,其颇具革命意义的软件开发语言Java的今日现状已淡出媒体的视野。12月13日,美国《商业周刊》将视角瞄准了软件开发工具市场的一场"三国演义",其主角是Sun的Java、 开源的LAMP系列以及微软的.NET。作者认为,Java在LAMP和.NET的紧逼下正面临一场生死考验:

对于小软件公司ActiveGrid的首席执行官亚雷德(Peter Yared)来说,Sun的Java语言是一个"欲理还乱"的东西。1990年代,亚雷德担任NetDynamics软件公司的首席技术官,该公司的主打产品是提高WEB站点性能的应用服务器,采用当时流行一时的Java开发。后来,亚雷德在Sun公司干了五年。今天,当亚雷德口中吐出一句"Java已经是恐龙"时,此言的确令人震惊。

当然,亚雷德此言有充足的根据。他开业的新公司现在销售用于开发网站或企业应用的"下一代"应用服务器,但已经抛弃了Java。他们使用了一个开源软件包,其中包括Linux操作系统、Apache网站服务器、MySQL数据库,以及一系列以P打头的脚本语言――Perl、Python和PHP。这个开源套件绰号"LAMP"。

亚雷德说,如今越来越多的开发人员正在用LAMP和其他"非Java"技术开发新一代的互联网应用。难道是昔日"酷毙了"的Java已经成为过时技术了吗? 就好像是IBM公司的大型机和SAP公司的企业应用? 对于这个疑问,越来越多的证据给出了"是"的答案。

开发工具市场调研公司Evans的调查结果发现,在LAMP和微软的.NET赢得更多用户的同时,Java的市场影响力正在下降。今年三季度在北美地区,用Java作为主要编程语言之一的开发人员比例为47.9%,而去年同期这一数字是51.4%。同一个调查还发现,Java在亚洲地区的使用正在增长,而在欧洲地区呈下降态势。

与此同时,北美使用微软.NET的比例却从去年的40.3%提高到了今年的54.1%,在欧洲和亚洲.NET也超过了Java。在另外的调查中,北美地区PHP的使用比例从去年秋天的26%增长到了今年的36.1%,在欧洲和亚洲发展同样很快。Evans总裁约翰・安德鲁斯表示:"开发工具市场的竞争日趋激烈,其他工具正在蚕食Java的市场份额。"

Java步入颓势的另外一个信号出现在出版业。在开发人员购买的参考书中,有关Java的数量正在下降。根据领先的程序员参考书出版商O'Reilly公司统计,今年Java题材书籍的销售下降了4%,与此同时有关开源开发工具包AJAX的书籍却增长了68%。不过从总体上来说,Java书籍的销售规模还是比较大。

Sun公司极力否认Java正在失去发展动力。该公司负责软件业务的执行副总裁John Loiacono说:"我绝对不能同意(Java正在走下坡路),Java到生命尽头了吗?不!我们认为Java的火爆才刚刚开始。" 他指出,在大型、复杂的企业级应用领域,Java仍是主流的开发工具,此外,Java在手机平台上越来越受到欢迎。据悉,目前全球有600多款手机运行Java虚拟机,全球10大手机游戏中有7款是采用Java开发。

不过,即使Java在一些关键领域当仁不让,和十几位技术界人士和分析家的访谈表明开发工具市场正在向不利于Java的方向转移。这种趋势对于Sun公司以及IBM、BEA和jBoss这些Java开发商可谓意义深远。如果Java的光环褪去,基于Java开发的产品同样面临噩运。而这将为微软和开源等非Java对手腾出空间。

我们可以看一下这场正在发生的"地震"。首先,很多自行开发软件的大型IT巨头并未采用Java,其中包括Google和雅虎。新一代的"轻量级"开发工具(包括AJAX和PHP)正在赢得Web 2.0公司的追捧,比如Friendster、Flickr和Facebook。这些工具无需进行耗时的培训即可进行快速开发。

网络浏览器的"鼻祖"马克・安德森(网景之父)现任PHP技术公司Zend的董事长,他指出目前的变化如同Java在1990年代取代C语言和C++一样,"随着WEB开发群体从Java转向PHP,我们又看到了这种变化。" 数字证明安德森并非戏言,根据分析公司Netcraft的调查,使用PHP的网站已经从2000年的"零"增长到今天的2300万。

1990年代中期,Java逐渐名声鹊起。它被视为微软霸主的有力挑战者。软件开发人员采用Java可以实现"一次开发,跨平台运行"。虽然在微软垄断的PC桌面难有作为,但Java成长为服务器应用开发领域的重要力量。软件公司纷纷使用Java开发大型企业应用软件和网站。

到目前为止,Java在商用市场(包括开源软件用户)仍占据主导地位。红帽公司最近为Linux和相关软件推出了3项技术支持服务。其中一项服务针对Web应用开发,但没有包括Java。另外两项服务涉及更复杂的网站和企业级应用,包括Java。红帽公司负责市场的高级副总裁Tim Yeaton表示:"如果你想做更复杂的事情,你需要用到Java。"

不过,即使在企业市场,Java也不敢坐吃山空。O'Reilly出版公司的创始人及首席执行官Tim O'Reilly说:"你可以看到,新技术往往从黑客手中流向创新用户,最后蜕变为主流技术。" 投资银行美林公司的案例也非常有说服力,该公司目前采用Linux和Apache平台运行其"数学密集型"的应用,比如期权、期货和金融衍生工具。

美林公司首席技术官安迪・布朗认为,这些技术在计算型应用上要优于Java,相应的开发也不需要太多的分层。他还说,在一些有关股票交易和柜台桌面软件上,美林使用了微软公司的Visual Studio.NET开发环境,它具有快速开发能力。

微软公司上月推出了.NET开发工具的2005版本,该公司称正在广阔的开发市场占据有利位置,其中包括大小不等的企业用户,从复杂系统到简单的程序开发。市场调研结果也证明了这个说法。IDC公司10月份进行的一项调查发现,35.7%的大公司采用.NET来开发最重要的业务软件,而使用Java的比例只有25.3%。

此前,Jupitor公司发布的一个报告显示,62%的中小企业已经采用了.NET,而36%的企业则采用基于Java的IBM WebSphere平台。微软公司估计Java对于企业的重要性将越来越小,该公司开发业务的负责人约翰・蒙哥马利表示:"Java未来将会变成底层的编程框架,没有人可以通过它赚钱。它将会变成一个普通商品。"

不过,蒙哥马利承认微软在满足Web2.0企业方面做得还不够完美。目前,微软已推出一个服务器软件的测试版,可以让Web开发人员在Windows下使用AJAX。

Sun公司也承认.NET正在企业市场攻城掠地。Sun公司的Loiacono表示:"企业可以容纳超过一个的开发语言,Java之外还有微软,他们也是一个对手。" 他认为Java和.NET是一对死对头,但否认.NET已经在竞争中领先。

目前,Sun、IBM和其他Java阵营成员仍在给软件"添砖加瓦",不过其步伐已经比巅峰时期放慢。与此同时,Sun开始提供其Solaris操作系统和开发工具包的开源版本,以应对LAMP的竞争。

IBM仍然是Java的忠实盟友。其价值数十亿美元的WebSphere中间件上个季度增长了14%。"大蓝"坚信Java仍是面向商业用户的重要技术之一。不过,在网络开发领域,IBM举棋不定。今年年初,IBM表示将支持WEB开发语言PHP。

IBM公司负责新兴软件技术的副总裁洛德・史密斯表示:"IBM的文化是从不只醉心于一项技术。人们需要不同的产品,我们说,IBM都可以做出来。"

星期五, 十二月 16, 2005

房间及个人名字密码安全设置及保密方法

为了对付聊天室日益严重的密码盗取情况,特意举行一个讲座,向大家传授这方面的知识。 以下教程以名字密码为例,同样适用于房间的密码设置。

1.密码盗取办法 1)密码盗取的方法一是使用专用的程序进行穷算。 2)根据用户的一些个人资料例如生日或者名字进行猜测或者推断。 3)利用特别的条件,例如在网吧利用聊天软件的缓冲进行盗取。 4)利用服务器漏洞盗取。 5)利用用户心理骗取。 6)通过记录盗取。

2.密码的设置办法 1)最常用的办法就是采用混成法拼写密码。 例如: GOODboy[6667] 这个范例包括了4个大写字母,3个小写字母,2个符号,4个数字。 总有13个位。一般来说,如果用普通pc来穷数的法,那可能要算了几年的时间。 当然,上面的组合,你可以一些部分多点,一部分少点。也可以打乱来排列。

2)中文密码混成法。 在irc,最可怕的密码是使用中文。例如:我赢了2000年奥运 这种密码设置方法最有利的在于,目前国外的破解程序都不支持中文双字节的。 你可以把中文混进上面的混成法里面。例如:GOODboy哈佬[6667]

3)使用特殊键。 这也是一种利用irc的特点的密码设置办法。例如使用ctrl+k来在密码前面加一个控制定义符。这种方法是很复杂的,一般极难破解。

4)使用复合键 什么是复合键,其实就是我们常用的三个键,例如shift、ctrl和alt。你可以在设置密码时,当输入到一定位数时,用手指无意地按着一个键例如shift。然后输入一个密码后,再放开。这种办法有一个好处,就是即使你的朋友在你的身边 ,他们也发现不了你偷偷地按下的复合键。你可以利用尾指来按,当我们两手放在键盘上时,这种小动作是非常难发现的。但可惜的是,这种方法并不是时时奏效的。

3.密码保密方法 为了对付上面的各种密码盗取方法,技巧如下: 1)对付使用程序破解的唯一办法就是使用复杂的密码组成,例如上面说的几种,都很有效地对付。 2)对付生日等用户特征的密码猜测,最有效的办法就是密码的内容不应与自己的名字,生日城市等有关。最好是没有任何意义的。例如 SaRG#fRe%SS,你可能会说这样的密码很难记。这里介绍一种办法,那就是间隔法。 例如:!Q1E9T9U9O,特别是键盘上的间隔的几个字母QETUO再加上一个序的数字1999。然后再在前面或者任何一个地方再加一个符号。 3)如果在网吧上网,你可能会在一些窗口输入密码,而这些窗口不一定你是经常用的。那么在你去上网的过程中的走开时间,例如去厕所什么的,都会给人家机会用上下键复查出来。这里介绍一样安全的方法,就是自己给自己开小窗,例如: /q 自己的名字 ,然后在里面输入密码,验证后,把这个窗口关闭。这样缓冲马上会给软件清净。另一个办法就是使用菜单输入密码,这个是没有缓冲的,你如果用firebot,可以利用status窗口菜单,在保密输入密码的条项中输入密码。不过这种对话框的办法也是有漏洞的,一些人会利用一些特殊的程序记录这些输入。所以,我推荐的是前面的方法,就是开自己的小窗,然后输入密码。这种方法目前没有发现有漏洞。 4)这是一种最难对付的方法,如果用户不好好设置一下,极容易给人家侦破。 一般来说,这种情况发生在网吧中具多,当然,如果遇到一些网络高手,通过一些手法也是很容易办到的。 这个漏洞是通过利用服务器的漏洞进行的,这种漏洞在多数的dal和cr服务器软件中都存在。当然,有一些服务器是做了防范,不一定能利用这个漏洞。由于这个办法非常危险,这里我不能向大家透露使用方法,我们只能期望服务器网管来解决这些问题。

5)如何对付利用用户心理骗取密码呢? 曾经有一个叫网友,就利用away信息假一个网管的信息,然后去找一些管理员,说什么要升级了,让他们告诉他名字密码以利于设置权限。一般来说,网管的标识都是不含有away或者离开字样的。用户一定要注意。 chinafire is a Server Administrator (Services Administrator) chinafire is away: is a Server Administrator (Services Administrator) 上面两条中,第一条是真的,而第二条是假的网管标识。 而且,我们向大家表明的是,网管设置任何权限,都是不需要向用户索取密码的。

6)如何对付通过记录来骗取呢? 这些方法包括了: 1)不要把密码记录在别人看得到的地方,犹其是不要记录在公共电脑上,例如网吧的电脑上。 2)不要把随使接受别人的文件,网络中经常有人用照片为名传送一些黑客程序例如木马给人家。木马程序是一种修改用户电脑共享设置的程序。如果你执行一个文件后,没有任何结果,而这个文件又变成了0字节,那么可以99%地肯定,你中了木马。如果你发现这种情况,请马上按下面的步骤办事: a.掉开网络。 b.如果你的电脑上没有清除的程序,你可以再拨号一次(最好是使用另一个拨号帐号),马上去下载一个清除的程序。 地址是:http://firebot.myetang.com/satan/cleaner3.exe 或者: http://irc.163.net/satan/cleaner3.exe 下载完毕后,一定要及时断开拨号。其实,这种程序应是你的电脑常备的,以防不测。 c.执行这个程序并清除木马。 3).上完聊天室,一定要记得及时把程序关闭。 4).记得一点,你聊天完毕后,一定要确保聊天程序的logs目录中是空白的,如果发现有任何的记录文件,及时删除。为什么这样说呢,因为这些记录文件除了会记录你的聊天内容外,还会记录服务器发给你的一些通知,例如名字注册成功的通知,里面就会包含了你的密码。 5)我们建议你在聊天前,在每一个窗口聊天前都输入一个命令:/log off (这个命令是mirc的命令,适用于所有的mirc bot),如何你是使用chatkey,可以输入: /SetLogOff 来关闭记录功能。这种动作虽然很麻烦,但是非常有效地保护你的个人私隐。

上面的方法能有效地对付一些低等级的恶作剧者。当然,如果攻击者通过攻击服务器的方法盗取密码的,那就不是用户所能防范的了。不过,绝大多数有这种高级攻击能力的人,都不会去做这种勾当,他们宁可选择去攻击一些国外有名的网站来炫耀自己的实力。

另外有一些要提醒用户的是,注册密码的命令是;/nickserv register 密码 电子信箱。 如果你不输入正确的信箱地址,当你忘了密码时,网管发送的密码就无法让你正确收到了。

以上关于密码的设置,同样适用于房间的密码设置。

Google推出Homepage API 加强首页个性化特色


 

  美东时间12月14日消息,本周三Google推出主页个性化工具,开发者可借此创建加入Google首页的小型应用程序模块。

  在Google Homepage API(应用程序接口)页面(http://www.Google.com/apis/homepage/ ),Google提供了大量供开发者使用并创建模块或"插件"的信息和软件,这些模块可以让人们的Google首页变得更加丰富多彩。

  目前,人们已经可以向Google首页添加的内容包括新闻、RSS聚合、食谱、股票报价、当日电影上映时间和价格。此外,Google Homepage

Content Directory首页内容目录(http://www.Google.com/ig/directory )展示了大量由Google及第三方开发者创建的模块, 如天气预报地图、日期和时间、定制的Google Logo等。用户只要点击Add按钮,就能把这些模块直接加入自己的Google个性化首页。

  Google在其官方博客上表示,"利用Google Homepage API,开发者能创建更多个性化首页的模块。该服务具有极好的灵活性和易用性,开发者无须下载任何东西就能制作模块。"

  专门关注Google的博客作家Philipp Lenssen在自己的博客上写道,"插件基于XML文件格式,其他额外的JavaScript和HTML代码可以存放在自己的服务器上,如果你没有服务器,也可以存放在任何公共地方,包括Google Base。"

  然而 搜索引擎观察网站编辑Gary Price则认为,这项服务似乎与Google一贯坚持的标志简单、界面整洁的原则相悖。"对于很多用户来说(那些把Google作为搜索代名词的人们),保持原始简单的界面是一种让Google成为搜索,赢得更多人气(而是市场份额)的事情之一,也是对对手的一种挑战,"他认为。

  本周初,雅虎将其具有对抗性的Konfabulator服务重新命名为 Yahoo Widget Engine 3.0。

java学习从入门到精通

学习是很枯燥的事情。。。。。
Java Learning Path (一)、工具篇

一、 JDK (Java Development Kit)

JDK是整个Java的核心,包括了Java运行环境(Java Runtime Envirnment),一堆Java工具和Java基础的类库(rt.jar)。不论什么Java应用服务器实质都是内置了某个版本的JDK。因此掌握JDK是学好Java的第一步。最主流的JDK是Sun公司发布的JDK,除了Sun之外,还有很多公司和组织都开发了自己的JDK,例如IBM公司开发的JDK,BEA公司的Jrocket,还有GNU组织开发的JDK等等。其中IBM的JDK包含的JVM(Java Virtual Machine)运行效率要比Sun JDK包含的JVM高出许多。而专门运行在x86平台的Jrocket在服务端运行效率也要比Sun JDK好很多。但不管怎么说,我们还是需要先把Sun JDK掌握好。

1、 JDK的下载和安装

JDK又叫做J2SE(Java2 SDK Standard Edition),可以从Sun的Java网站上下载到,http://java.sun.com/j2se/downloads.html ,JDK当前最新的版本是J2SDK1.4.2,建议下载该版本的JDK,下载页面在这里:http://java.sun.com/j2se/1.4.2/download.html

下载好的JDK是一个可执行安装程序,默认安装完毕后会在C:\Program Files\Java\目录下安装一套JRE(供浏览器来使用),在C:\j2sdk1.4.2下安装一套JDK(也包括一套JRE)。然后我们需要在环境变量PATH的最前面增加java的路径C:\j2sdk1.4.2\bin。这样JDK就安装好了。

2、 JDK的命令工具

JDK的最重要命令行工具:

java: 启动JVM执行class

javac: Java编译器

jar: Java打包工具

javadoc: Java文档生成器

这些命令行必须要非常非常熟悉,对于每个参数都要很精通才行。对于这些命令的学习,JDK Documentation上有详细的文档。

二、 JDK Documentation

Documentation在JDK的下载页面也有下载连接,建议同时下载Documentation。Documentation是最最重要的编程手册,涵盖了整个Java所有方面的内容的描述。可以这样说,学习Java编程,大部分时间都是花在看这个Documentation上面的。我是随身携带的,写Java代码的时候,随时查看,须臾不离手。

三、 应用服务器(App Server)

App Server是运行Java企业组件的平台,构成了应用软件的主要运行环境。当前主流的App Server是BEA公司的Weblogic Server和IBM公司的Websphere以及免费的Jboss,选择其中一个进行学习就可以了,个人推荐Weblogic,因为它的体系结构更加干净,开发和部署更加方便,是Java企业软件开发人员首选的开发平台。下面简要介绍几种常用的App Server:

1、 Tomcat

Tomcat严格意义上并不是一个真正的App Server,它只是一个可以支持运行Serlvet/JSP的Web容器,不过Tomcat也扩展了一些App Server的功能,如JNDI,数据库连接池,用户事务处理等等。Tomcat被非常广泛的应用在中小规模的Java Web应用中,因此本文做一点下载、安装和配置Tomcat的介绍:

Tomcat是Apache组织下Jakarta项目下的一个子项目,它的主网站是: http://jakarta.apache.org/tomcat/ ,Tomcat最新版本是Tomcat4.1.27,软件下载的连接是: http://www.apache.org/dist/jakarta/tomcat-4/binaries/

下载Tomcat既可以直接下载zip包,也可以下载exe安装包(个人建议zip更干净些),不管哪种情况,下载完毕安装好以后(zip直接解压缩就可以了)。需要设置两个环境变量:

JAVA_HOME=C:\j2sdk1.4.2

CATALINA_HOME=D:\tomcat4 (你的Tomcat安装目录)

这样就安装好了,启动Tomcat运行CATALINA_HOME\bin\startup.bat,关闭Tomcat运行shutdown.bat脚本。Tomcat启动以后,默认使用8080端口,因此可以用浏览器访问 http://localhost:8080来测试Tomcat是否正常启动。

Tomcat提供了两个Web界面的管理工具,URL分别是:

http://localhost:8080/admin/index.jsp

http://localhost:8080/manager/html

在启用这两个管理工具之前,先需要手工配置一下管理员用户和口令。用一个文本工具打开CATALINA_HOME\conf\tomcat-users.xml这个文件, 加入如下几行:

  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="robbin" password="12345678" roles="admin,manager,tomcat"/>

这样用户"robbin"就具备了超级管理员权限。重新启动Tomcat以后,你就可以使用该用户来登陆如上的两个管理工具,通过Web方式进行Tomcat的配置和管理了。

2、 BEA Weblogic

Weblogic可以到BEA的网站上免费注册之后下载到最新的Weblogic8.1企业版,License可以免费使用1年时间,其实这已经完全足够了。Weblogic的下载连接: http://commerce.bea.com/index.jsp,Weblogic的在线文档:http://edocs.bea.com/

3、 IBM Webshpere

Websphere同样可以下载到免费的试用版本,到IBM的developerWorks网站可以看到Websphere试用产品的下载和相关的Websphere的资料,developerWorks中文网站的连接是: http://www-900.ibm.com/developerWorks/cn/wsdd/ ,Websphere的下载连接: http://www7b.software.ibm.com/wsdd/downloads/WASsupport.html

4、 Jboss

Jboss是免费开源的App Server,可以免费的从Jboss网站下载: http://www.jboss.org/index.html,然而Jboss的文档是不免费,需要花钱购买,所以为我们学习Jboss设置了一定的障碍。在Jdon上有几篇不错的Jboss配置文档,可以用来参考:http://www.jdon.com/idea.html

四、 Java应用的运行环境

Java的应用可以简单分为以下几个方面:

1、 Java的桌面应用

桌面应用一般仅仅需要JRE的支持就足够了。

2、 Java Web应用

Java的Web应用至少需要安装JDK和一个web容器(例如Tomcat),以及一个多用户数据库,Web应用至少分为三层:

Browser层:浏览器显示用户页面

Web层:运行Servlet/JSP

DB层:后端数据库,向Java程序提供数据访问服务

3、 Java企业级应用

企业级应用比较复杂,可以扩展到n层,最简单情况会分为4层:

Browser层:浏览器显示用户页面

Client层:Java客户端图形程序(或者嵌入式设备的程序)直接和Web层或者EJB层交互

Web层:运行Servlet/JSP

EJB层:运行EJB,完成业务逻辑运算

DB层:后端数据库,向Java程序提供数据访问服务

4、 Java嵌入式应用

Java嵌入式应用是一个方兴未艾的领域,从事嵌入式开发,需要从Sun下载J2ME开发包,J2ME包含了嵌入式设备专用虚拟机KVM,和普通的JDK中包含的JVM有所不同。另外还需要到特定的嵌入式厂商那里下载模拟器。


--------------------------------------------------------------------------------

Java Learning Path(二)、书籍篇

学习一门新的知识,不可能指望只看一本,或者两本书就能够完全掌握。需要有一个循序渐进的阅读过程。我推荐Oreilly出版的Java系列书籍。

在这里我只想补充一点看法,很多人学习Java是从《Thinking in Java》这本书入手的,但是我认为这本书是不适合初学者的。我认为正确的使用这本书的方法应该是作为辅助的读物。《Thinking in Java》并不是在完整的介绍Java的整个体系,而是一种跳跃式的写作方法,是一种类似tips的方法来对Java很多知识点进行了深入的分析和解释。

对于初学者来说,最好是找一本Java入门的书籍,但是比较完整的循序的介绍Java的语法,面向对象的特性,核心类库等等,在看这本书的同时,可以同步来看《Thinking in Java》,来加深对Java的理解和原理的运用,同时又可以完整的了解Java的整个体系。

对于Java的入门书籍,蔡学镛推荐的是Oreilly的《Exploring Java, 2nd Edition》 或者《Java in a Nutshell,2nd Edition(针对C++背景)》,我并没有看过这两本书。其实我觉得电子工业出版社的《Java 2编程详解》或者《Java 2从入门到精通》就很不错。

在所有的Java书籍当中,其实最最有用的,并不是O'reilly的 Java Serials,真正最最有用处是JDK的Documentation!几乎你想获得的所有的知识在Documentation里面全部都有,其中最主要的部分当然是Java基础类库的API文档,是按照package来组织的,对于每一个class都有详细的解释,它的继承关系,是否实现了某个接口,通常用在哪些场合,还可以查到它所有的public的属性和方法,每个属性的解释,意义,每个方法的用途,调用的参数,参数的意义,返回值的类型,以及方法可能抛出的异常等等。可以这样来说,所有关于Java编程方面的书籍其实都不过是在用比较通俗易懂的语言,和良好的组织方式来介绍Documentation里面的某个package里面包含的一些类的用法而已。所以万变不离其宗,如果你有足够的能力来直接通过Documentation来学习Java的类库,那么基本上就不需要看其他的书籍了。除此之外,Documentation也是编程必备的手册,我的桌面上有三个Documentation的快捷方式,分别是J2SDK1.4.1的Documentation,Servlet2.3的Documentation和J2SDKEE1.3.1的Documentation。有了这个三个Documentation,什么其他的书籍都不需要了。

对于Java Web 编程来说,最核心的是要熟悉和掌握HTTP协议,这个就和Java无关了,在熟悉HTTP协议之后,就需要熟悉Java的实现HTTP协议的类库,也就是Servlet API,所以最重要的东西就是Servlet API。当然对于初学者而言,直接通过Servlet API来学习Web编程有很大的难度,我推荐O'reilly的《Java Server Pages 》这本书来学习Web 编程。

EJB的书籍当中,《Enterprise Java Beans?, 2nd Edition》是一本很不错的书, EJB的学习门槛是比较高,入门很难,但是这本书完全降低了学习的难度,特别重要的一点是,EJB的学习需要结合一种App Server的具体实现,所以在学习EJB的同时,必须同步的学习某种App Server,而这本书相关的出了三本书,分别是Weblogic6.1,Websphere4.0和JBoss3.0上面部署书中例子的实做。真是既有理论,又有实践。在学习EJB的同时,可以边看边做,EJB的学习会变得很轻松。

但是这本书也有一个问题,就是版本比较旧,主要讲EJB1.1规范和部分EJB2.0的规范。而Ed Roman写的《Mastering EJB 2.0》这本书完全是根据EJB2.0规范写的,深入浅出,覆盖了EJB编程的各个方面,并且还有很多编程经验tips,也是学习EJB非常推荐的书籍之一。

如果是结合Weblogic来学习J2EE的话,《J2EE应用与BEA Weblogic Server》绝对是首选读物,虽然是讲述的Weblogic6.0,仍然值得购买,这本书是BEA官方推荐的教材,作者也是BEA公司的工程师。现在中文版已经随处可见了。这本书结合Weblogic介绍了J2EE各个方面的技术在Weblogic平台上的开发和部署,实践指导意义非常强。

在掌握了Java平台基础知识和J2EE方面的知识以后,更进一步的是学习如何运用OO的方法进行软件的设计,那么就一定要学习"设计模式"。Sun公司出版了一本《J2EE核心模式》,是每个开发Java企业平台软件的架构师必备的书籍。这本书全面的介绍了J2EE体系架构的各种设计模式,是设计师的必读书籍。


--------------------------------------------------------------------------------

Java Learning Path(三)过程篇

每个人的学习方法是不同的,一个人的方法不见得适合另一个人,我只能是谈自己的学习方法。因为我学习Java是完全自学的,从来没有问过别人,所以学习的过程基本上完全是自己摸索出来的。我也不知道这种方法是否是比较好的方法,只能给大家提供一点参考了。

学习Java的第一步是安装好JDK,写一个Hello World,? 其实JDK的学习没有那么简单,关于JDK有两个问题是很容易一直困扰Java程序员的地方:一个是CLASSPATH的问题,其实从原理上来说,是要搞清楚JRE的ClassLoader是如何加载Class的;另一个问题是package和import问题,如何来寻找类的路径问题。把这两个问题摸索清楚了,就扫除了学习Java和使用JDK的最大障碍。推荐看一下王森的《Java深度历险》,对这两个问题进行了深入的探讨。

第二步是学习Java的语法。Java的语法是类C++的,基本上主流的编程语言不是类C,就是类C++的,没有什么新东西,所以语法的学习,大概就是半天的时间足够了。唯一需要注意的是有几个不容易搞清楚的关键字的用法,public,protected,private,static,什么时候用,为什么要用,怎么用,这可能需要有人来指点一下,我当初是完全自己琢磨出来的,花了很久的时间。不过后来我看到《Thinking in Java》这本书上面是讲了这些概念的。

第三步是学习Java的面向对象的编程语言的特性的地方。比如继承,构造器,抽象类,接口,方法的多态,重载,覆盖,Java的异常处理机制。对于一个没有面向对象语言背景的人来说,我觉得这个过程需要花很长很长时间,因为学习Java之前没有C++的经验,只有C的经验,我是大概花了一个月左右吧,才彻底把这些概念都搞清楚,把书上面的例子反复的揣摩,修改,尝试,把那几章内容反复的看过来,看过去,看了不下5遍,才彻底领悟了。不过我想如果有C++经验的话,应该一两天时间足够了。那么在这个过程中,可以多看看《Thinking in Java》这本书,对面向对象的讲解非常透彻。可惜的是我学习的时候,并没有看到这本书,所以自己花了大量的时间,通过自己的尝试和揣摩来学会的。

第四步就是开始熟悉Java的类库。Java的基础类库其实就是JDK安装目录下面jre\lib\rt.jar这个包。学习基础类库就是学习rt.jar。基础类库里面的类非常非常多。据说有3000多个,我没有统计过。但是真正对于我们来说最核心的只有4个,分别是

java.lang.*;

java.io.*;

java.util.*;

java.sql.*;

这四个包的学习,每个包的学习都可以写成一本厚厚的教材,而O'reilly也确实是这样做的。我觉得如果时间比较紧,是不可能通过读四本书来学习。我觉得比较好的学习方法是这样的:

首先要通读整个package的框架,了解整个package的class,interface,exception的构成,最好是能够找到介绍整个包框架的文章。这些专门介绍包的书籍的前几章应该就是这些总体的框架内容介绍。

对包整体框架的把握并不是要熟悉每个类的用法,记住它有哪些属性,方法。想记也记不住的。而是要知道包有哪些方面的类构成的,这些类的用途是什么,最核心的几个类分别是完成什么功能的。我在给人培训的时候一般是一次课讲一个包,所以不可能详细的介绍每个类的用法,但是我反复强调,我给你们讲这些包的不是要告诉你们类的方法是怎么调用的,也不要求你们记住类的方法调用,而是要你们了解,Java给我们提供了哪些类,每个类是用在什么场合,当我遇到问题的时候,我知道哪个类,或者哪几个类的组合可以解决我的问题,That'all!,当我们具体写程序的时候,只要你知道该用哪个类来完成你的工作就足够了。编码的时候,具体的方法调用,是边写代码,边查Documentation,所有的东西都在Documentation里面,不要求你一定记住,实际你也记不住3000多个类的总共将近10万个方法调用。所以对每个包的总体框架的把握就变得极为重要。

第五步,通过上面的学习,如果学的比较扎实的话,就打好了Java的基础了,剩下要做的工作是扫清Documentation里面除了上面4个包之外的其他一些比较有用处的类。相信进展到这一步,Java的自学能力已经被培养出来了,可以到了直接学习Documentation的水平了。除了要做GUI编程之外,JDK里面其他会有用处的包是这些:

java.text.*;

java.net.*;

javax.naming.* ;

这些包里面真正用的比较多的类其实很少,只有几个,所以不需要花很多时间。

第六步,Java Web 编程

Web编程的核心是HTTP协议,HTTP协议和Java无关,如果不熟悉HTTP协议的话,虽然也可以学好Servlet/JSP编程,但是达不到举一反三,一通百通的境界。所以HTTP协议的学习是必备的。如果熟悉了HTTP协议的话,又有了Java编程的良好的基础,学习Servlet/JSP简直易如反掌,我学习Servlet/JSP就用了不到一周的时间,然后就开始用JSP来做项目了。

在Servlet/JSP的学习中,重头仍然是Servlet Documentation。Servlet API最常用的类很少,花比较少的时间就可以掌握了。把这些类都看一遍,多写几个例子试试。Servlet/JSP编程本质就是在反复调用这些类来通过HTTP协议在Web Server和Brower之间交谈。另外对JSP,还需要熟悉几个常用JSP的标记,具体的写法记不住的话,临时查就是了。

此外Java Web编程学习的重点要放在Web Application的设计模式上,如何进行业务逻辑的分析,并且进行合理的设计,按照MVC设计模式的要求,运用Servlet和JSP分别完成不同的逻辑层,掌握如何在Servlet和JSP之间进行流程的控制和数据的共享,以及Web Application应该如何配置和部署。

第七步,J2EE编程

以上的学习过程如果是比较顺利的话,进行到这一步,难度又陡然提高。因为上面的知识内容都是只涉及一个方面,而像EJB,JMS,JTA等核心的J2EE规范往往是几种Java技术的综合运用的结晶,所以掌握起来难度比较大。

首先一定要学习好JNDI,JNDI是App Server定位服务器资源(EJB组件,Datasouce,JMS)查找方法,如果对JNDI不熟悉的话,EJB,JMS这些东西几乎学不下去。 JNDI其实就是javax.naming.*这个包,运用起来很简单。难点在于服务器资源文件的配置。对于服务器资源文件的配置,就需要看看专门的文档规范了,比如web.xml的写法,ejb-jar.xml的写法等等。针对每种不同的App Server,还有自己的服务资源配置文件,也是需要熟悉的。

然后可以学习JTA,主要是要理解JTA对于事务的控制的方法,以及该在什么场合使用JTA。这里可以简单的举个例子,我们知道一般情况可以对于一个数据库连接进行事务控制( conn.setAutoCommit(false),....,conn.commit()),做为一个原子操作,但是假设我的业务需求是要把对两个不同数据库的操作做为一个原子操作,你能做的到吗?这时候只能用JTA了。假设操作过程是先往A数据库插一条记录,然后删除B数据库另一个记录,我们自己写代码是控制不了把整个操作做为一个原子操作的。用JTA的话,由App Server来完成控制。

在学习EJB之前要学习对象序列化和RMI,RMI是EJB的基础。接着学习JMS和EJB,对于EJB来说,最关键是要理解EJB是如何通过RMI来实现对远端对象的调用的,以及在什么情况下要用到EJB。

在学习完EJB,JMS这些东西之后,你可能会意识到要急不可待学习两个领域的知识,一个是UML,另一个是Design Pattern。Java企业软件的设计非常重视框架(Framework)的设计,一个好的软件框架是软件开发成功的必要条件。在这个时候,应该开始把学习的重点放在设计模式和框架的学习上,通过学习和实际的编程经验来掌握EJB的设计模式和J2EE的核心模式。

J2EE规范里面,除了EJB,JMS,JTA,Servlet/JSP,JDBC之外还有很多很多的企业技术,这里不一一进行介绍了。

另外还有一个最新领域Web Services。Web Services也完全没有任何新东西,它像是一种黏合剂,可以把不同的服务统一起来提供一个统一的调用接口,作为使用者来说,我只要获得服务提供者给我的WSDL(对服务的描述),就够了,我完全不知道服务器提供者提供的服务究竟是EJB组件,还是.Net组件,还是什么CORBA组件,还是其他的什么实现,我也不需要知道。Web Services最伟大的地方就在于通过统一的服务提供方式和调用方式,实现了整个Internet服务的共享,是一个非常令人激动的技术领域。Web Services好像目前还没有什么很好的书籍,但是可以通过在网络上面查资料的方式来学习。


--------------------------------------------------------------------------------

Java Learning Path(四) 方法篇

Java作为一门编程语言,最好的学习方法就是写代码。当你学习一个类以后,你就可以自己写个简单的例子程序来运行一下,看看有什么结果,然后再多调用几个类的方法,看看运行结果,这样非常直观的把类给学会了,而且记忆非常深刻。然后不应该满足把代码调通,你应该想想看如果我不这样写,换个方式,再试试行不行。记得哪个高人说过学习编程就是个破坏的过程,把书上的例子,自己学习Documentation编写的例子在运行通过以后,不断的尝试着用不同的方法实现,不断的尝试破坏代码的结构,看看它会有什么结果。通过这样的方式,你会很彻底的很精通的掌握Java。

举个例子,我们都编过Hello World

public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello World");
  }
}

很多初学者不是很理解为什么main方法一定要这样来定义public static void main(String[] args),能不能不这样写?包括我刚学习Java的时候也有这样的疑问。想知道答案吗?很简单,你把main改个名字运行一下,看看报什么错误,然后根据出错信息进行分析;把main的public取掉,在试试看,报什么错误;static去掉还能不能运行;不知道main方法是否一定要传一个String[]数组的,把String[]改掉,改成int[],或者String试试看;不知道是否必须写args参数名称的,也可以把args改成别的名字,看看运行结果如何。

我当初学习Java的时候就是这样做的,把Hello World程序反复改了七八次,不断运行,分析运行结果,最后就彻底明白为什么了main方法是这样定义的了。

此外,我对于staic,public,private,Exception,try{ }catch {}finally{}等等等等一开始都不是很懂,都是把参考书上面的例子运行成功,然后就开始破坏它,不断的根据自己心里面的疑问来重新改写程序,看看能不能运行,运行出来是个什么样子,是否可以得到预期的结果。这样虽然比较费时间,不过一个例子程序这样反复破坏几次之后。我就对这个相关的知识彻底学通了。有时候甚至故意写一些错误的代码来运行,看看能否得到预期的运行错误。这样对于编程的掌握是及其深刻的。

其中特别值得一提的是JDK有一个非常棒的调试功能,-verbose

java -verbose

javac -verbose 以及其它很多JDK工具都有这个选项

-verbose 可以显示在命令执行的过程中,JVM都依次加载哪里Class,通过这些宝贵的调试信息,可以帮助我们分析出JVM在执行的过程中都干了些什么。

另外,自己在学习过程中,写的很多的这种破坏例程,应该有意识的分门别类的保存下来,在工作中积累的典型例程也应该定期整理,日积月累,自己就有了一个代码库了。遇到类似的问题,到代码库里面 Copy & Paste ,Search & Replace,就好了,极大提高了开发速度。最理想的情况是把一些通用的例程自己再抽象一层,形成一个通用的类库,封装好。那么可复用性就更强了。

所以我觉得其实不是特别需要例程的,自己写的破坏例程就是最好的例子,如果你实在对自己写的代码不放心的话,我强烈推荐你看看JDK基础类库的Java源代码。在JDK安装目录下面会有一个src.zip,解开来就可以完整的看到整个JDK基础类库,也就是rt.jar的Java源代码,你可以参考一下Sun是怎么写Java程序的,规范是什么样子的。我自己在学习Java的类库的时候,当有些地方理解的不是很清楚的时候,或者想更加清晰的理解运作的细节的时候,往往会打开相应的类的源代码,通过看源代码,所有的问题都会一扫而空。

星期四, 十二月 15, 2005

为什么开源没有前途!

开源是没有前途的! ×开源是没有钱途的。开源的东西就好像救济穷人的食物,如果你的老板或客户考救济品混日子,那么你的薪水也不会高的。 ×开源没有潜力。君不见好多开源的项目,开始轰轰烈烈,最后都石沉大海。 ×开源是软件乌托邦。没有什么比做东西百送,然后指望别人来修东西的时候赚钱更蠢的了。 ×开源的支持者很大一部分只是想从中捞点好处罢了。中国的很多公司直接抄袭开源项目,还欺世盗名的声称是自主知识产权。 ×开源是软件业的幽灵和毒瘤。实际降低了软件业平均薪金水平。 可以预见,当美国的傻瓜们全面认识到自己的无私奉献被中国同行拿来买钱后,开源的崩溃也就不远了。

星期二, 十二月 13, 2005

TOEFL 8905 C

C Passage 1 As with most aspects of Plains Indian culture, music was closely bound up with religious beliefs. Instruments were played individually and during public dances, and there was music for almost every occasion. In public ceremonies singing was combined with dancing and with music from a variety of instruments. The dancers shook rattles or pounded hand - held drums to underscore their foot-beats. Rattles were made of gourds or of turtle shells filled with pebbles or seeds. Drums generally were made by soaking a strip of wood in hot water and bending it into a circle; then the drum skin was tightly strapped over the circle with rawhide laces. While some Plains Indian drums had a single drum skin, as a tambourine has, there were others, such as the drums of the Ute that had skins lashed onto both sides. The whistle and flute were the only Plains Indian wind instruments. Whistles were made from the wing bone of an eagle. the bird that symbolized courage. The recorder-like flutes, with finger holes along the top, were carved from a length of soft, straight - grained wood, like willow or box elder. that was split in half and hollowed out; the halves were rejoined with glue made from boiled hide scrapings and bound together with rawhide lace to make them airt4ght. 1. What is the main topic of the passage? (A) American flutes and drums (B) Plains Indian muisical instruments (C) The Utes and their music (D) Ceremonies on the western plains 2. The passage mentions that dancers did all of the following EXCEPT (A) play the tambourine (B) pound their feet (C) shake rattles (D) beat on drums 3 In Line 7, to what does the word "it" refer? (A) Hot water (B) A circle (C) A strip of wood (D) A drum skin 4. According to the passage, how did the drums of the Ute differ from many other drums? (A) They were two-sided. (B) They were filled with stones or seeds. (C) They were hand- held. (D) They were wind instruments. 5. According to the passage, whistles were made from (A) gourds (B) turtle shells (C) feathers (D) eagle bones 6. According to the passage, boiled hide scrapings were used to make (A) finger holes (B) boxes (C) rawhide lace (D) glue Passage 2 The American Revolution was not a revolution in the sense of a radical or total change. It was not a sudden and violent overturning of the political and social framework, such as later occurred in France and Russia, when both were already independent nations. Significant changes were ushered in, but they were not breathtaking. What happened was accelerated evolution rather than outright revolution. During the conflict itself people went on working and praying, marrying arid playing. Most of them were not seriously disturbed by the actual fighting, and many of the more isolated communities scarcely knew that a war was on. America' s War of Independence heralded the birth of three modern nations. One was Canada. which received its first large influx of English - speaking population from the thousands of loyalists who fled there from the United States. Another was Australia. which became a penal colony now that America was no longer available for prisoners and debtors. The third newcomer-the United States-based itself squarely on republican principles. Yet even he political overturn was not so revolutionary as one might suppose. In some states. notably Connecticut and Rhode island. the war largely ratified a colonial self - rule already existing. British officials, everywhere ousted, were replaced by a home- grown governing class which promptly sought a local substitute for king and Parliament. 1. Which of the following would be the best title for the passage? (A) the United States: An Isolated Community (B) Breathtaking Events During the American Revolution (C) Canada and the American War of independence (D) The American Revolution: Evolution Not Revolution 2. In the first paragraph. what does the author suggest about the French and Russian revolutions? (A) they were explosive and abrupt. (B) they were ineffective (C) They involved only those people living in urban areas. (D)They led to release of all political prisoners. 3. In lines 5-6, what does the author mean by people went on working and praying, marrying and playing (A)More people got married than divorced. (B) The war created new jobs. (C) Life went on as usual. (D) People had more than enough leisure time. 4.In the second paragraph, the author states that the colonies' struggle for self-government preoeded the creation of all of the to)lowing countries EXCEPT (A) Canada (B) The United States (C) Australia (D) The United Kingdom 5. It can be inferred from the passage that the loyalists who escaped to Canada were (A) Russian (B) French (C) British (D)Australian 6. What will the paragraph following the passage most probably discuss. (A)The transport of prisoners to Australia (B) The creation of new state governments (C) Events leading up to the American Revolution (E) How Canada and the United States became friends Passage 3 A summary of the physical and chemical nature of life must begin. not on the Earth. but in the Sun. in fact. at the Sun's very center. It is here that is to be found the source of the energy that the Sun constantly pours out into space as light and heat. This energy is liberated at the center of the Sun as billions upon billions of nuclei of hydrogen atoms collide with each other and fuse together to form nuclei of helium. and, in doing so. release some of the energy that is stored in the nuclei of atoms. The output of light and heat of the Sun requires that some 600 million tons of hydrogen be converted into helium in the Sun every second. This the Sun has been doing for several thousands of millions of years. The nuclear energy is released at the Sun's center as high-energy gamma radiation, a form of electromagnetic radiation like light and radio waves, only of very much shorter wavelength. This gamma radiation is absorbed by atoms inside the Sun, to be re-emitted at slightly longer wavelengths. This radiation, in its turn, is absorbed and re-emitted. As the energy filters through the layers of the solar interior, it passes through the x-ray part of the spectrum, eventually becoming light. At this sage, it has reached what we cal: the solar surface, and can escape into space. without being absorbed further by solar atoms. A very small fraction of the Sun' s light and heat is emitted in such directions that, after passing unhindered through inter-planetarv, space, It hits the Earth. 1. What does the passage mainly discuss? (A) the production of solar light and heat (B) the physical and chemical nature of life (C) The conversion of hydrogen to helium (D)Radiation in the x-ray part of the spectrum 2. According to the passage, energy is released in the Sun when (A) helium atoms bind with each other (B) gamma radiation escapes from the spectrum (C) radiation is absorbed by helium (D) nuclei of hydrogen atoms collide 3. The passage indicates that, in comparison to radio waves, gamma waves (A) produce louder sound (B) are less magnetic (C) do not form in the Sun's center (D) are not as long 4 According to the passage, through which of the following does the energy released in the Sun pass before it becomes light? (A) The x-ray part of the spectrum (B) Electromagnetic space (C) The solar surface (D) interplanetary space 5. It can be inferred from the passage that the Sun's light travels (A) through solid objects in space (B) in many different directions (C) more slowly than scientists previously believed (D) further in summer than in winter Passage 4 Here in the United States, before agricultural activities destroyed the natural balance, there were great migrations of Rocky Mountain locusts (Melanoplus spretus). Great migrating hordes of these insects once darkened the skies on the plains east of the Rockies where crops were often destroyed; the worst years were those from 1874 to 1877. One of these migrating swarms was estimated to contain 124 billion locusts. During another migration in Nebraska it was estimated that the swarm of locusts averaged half a mile high and was 100 miles wide and 300 miles long. Usually, these swarms take oft from the ground against the wind, but, once airborne, they turn and fly with it. warm convection currents help to lift them, often to great heights. During the great locust plagues the situation in Nebraska became so serious that the original state constitution had to be rewritten to take care of the economic problems. The new document was known as "The Grasshopper Constitution." It is now believed that these locusts were a migratory form or phase of the lesser migratory locust, which is still common there. In this respect, the North American migratory locusts resemble their African relatives. In both regions the migratory forms arise as a result of crowding and climatic factors. Migratory forms are apparently natural adaptations which bring about dispersal when locust populations become too crowded. Fortunately for our farmers the migratory form - - the so-called spretus species - - no longer seems to occur regularly, although there was a serious outbreak as late as 1938 in mid-western United States and Canada. Actually, there is no reason why the destructive migratory form might not again appear if circumstances should become favorable. 1. Which of the following is the best title for the passage? (A) The Life Cycle of Locusts (B) Migratory Locusts in the United States (C) Locust Plagues in Nebraska (D The Reproductive Capability of the Locust 2. According to the passage the worst destruction by locusts in the plains area east of the Rockies occurred during the (A) eighteenth century (B) early nineteenth century (C) late nineteenth century (D) twentieth century 3. One of the migrating swarms mentioned in the passage averaged how many miles in length (A) 100 (B) 124 (C) 187 (D) 300 4. It can be inferred from the passage that the state constitution of Nebraska was rewritten in order to (A) make the constitution more understandable to the public (B) encourage farmers to leave the state (C) solve difficulties that resulted from loss of crops (D) provide for a regular census of the locust population 5. According the passage, North American and African migratory locusts are similar in that (A) they always travel toward mountainous regions (B) their destructive activities occur only in plains areas (C) climates affect their development (D) they are both mentioned in state constitutions 6. Which of the following is NOT mentioned in the passage as influencing the migration of locusts? A) Darkness (B) Agricultural activities (C) Warm air currents (D) Overcrowding 7. The passage supports which of the following conclusions? (A) the outbreak of locusts in 1938 was more serious than any other in history. (B) Nebraska farmers had no locust problems in the years 1874 - 1877. (C) There is a possibility that crops in the United States might be destroyed by locusts in the future. (D)There is a chance that African migratory locusts may make their way to the United States. Passage 5 Artificial flowers are used for scientific as well as for decorative purposes. They are made from a variety of materials, such as wax and glass, so skillfully that they can scarcely be distinguished from natural flowers. In making such models, painstaking skill and artistry are called for, as well as thorough knowledge of plant structure. The collection of glass flowers in the Botanical Museum of Harvard University is the most famous in North America and is widely known throughout the scientific world. In all, there are several thousand models in colored glass, the work of two artist - naturalists, Leopold Blaschka and his son Rudolph. The intention was to have the collection represent at least one member of each flower family native to the United States. Although it was never completed, it contains more than seven hundred species representing 164 families of flowering plants, a group of fruits showing the effect of fungus diseases, and thousands of flower parts and magnified details. Every detail of these is accurately reproduced in color and structure. The models are kept in locked cases as they are too valuable and fragile for classroom use. 1. Which of the following is the best title for the passage. (A)An Extensive Collection of Glass Flowers (B ) The Lives of Leopold and Rudolph Blaschka (C) Flowers Native to the United States. (D) Materials Used For Artificial Flowers 2. Which of the following statements about Leopold and Rudolph Blaschka is true? (A) They were brothers. (B) They were artists. (C) They were florists. (D) They were farmers. 3.It can be inferred from the passage that the goal of Leopold and Rudolph Blaschka was to (A) create a botanical garden where only exotic flowers grew (B) do a thorough study of plant structure (C) make a copy of one member of each United States flower family (D) show that glass flowers are more realistic than wax flowers 4. In line 9, the word "it" refers to which of the following phrases? (A) "The intention" (line 8) (B) "the collection" (line 8) (C) "one member"(line 8) (D) "each flower family"(lines S~9) 5. Which of the following is NOT included in the display at the Botanical Museum of Harvard University? (A) Models of 164 families of flowering plants (B) Magnified details of flower parts (C) Several species of natives birds (D) A group of diseased fruits 6. Which of the following statements is true of the flowers at Harvard University? (A) They form a completed collection. (B) They have a marvelous, fragrance (C) They are loaned to schools for classroom use. (D)They are authentic representations.

TOEFL 8901 C

C (35 minutes) Passage 1 The novelist Robert Herrick was born in Cambridge, Massachusetts, on April 26, 1868. His oldest American ancestor, a nephew of the author of Hesperides, had settled at Salem in 1638; he was related to the Hales, the Mannings, the Hawthornes, and the Peabodys; his immediate forebears were lawyers, teachers, and clergymen. At Harvard, he was a contemporary of Santayana. William Vaughn Moody, Norman Hpgood, and Robert Morss Lovett; he nearly wrecked the Harvard Monthly when he sullied its chaste pages with the first English translation of lbsen's ludy from the Sea. His teaching began at the Massachusetts Institute of Technology, but William Rainey Harper lured him to the new University of Chicago, where he remained officially for exactly a generation and where his students in advanced composition found him terrifyingly frigid in the classroom but sympathetic and understanding in their personal conferences. During his later years the spot of earth dearest to his heart was York Viliage, Maine, but after his retirement from teaching he brought his career to a rather amazing close as government secretary of the Virgin islands, He died at St. Thomas on December 23, 1938. 1. To which of the following families was Herrick related? (A) The Santayanas (B) The Hawthornes (C) The Moodys (D) The Hapgoods 2. In lines 3-4, the phrase "immediate forebears" could best be replaced by which of the following? (A) closest ancestors (B) wealthiest relatives (C) cleverest kinsmen (D) earliest forefathers 3. Which of the following is NOT mentioned as a profession of Herrick's relatives? (A) Farmer (B) Teacher (C) Clergyman (D) Lawyer 4. Herrick moved to the University of Chicago at the request of (A) the Hales (B) the Mannings (C) Robert Morss Lovett (D) William Rainey Harper 5. According to the passage, Herrick's students thought he was (A) gifted in English translation (B) unfair in his grading (C) easy to understand (D) kind during personal contact 6. In which of the following activities was Herick involved during the last years of his life? (A) University teaching (B) Government work (C) Translating (D) Lecturing Passage 2 There are two main kinds of sloth; the two-toed and the three-toed. Of these, the three-toed is considerably the more slothful. It hangs upside down from a branch suspended by hook-like claws at the ends of its long bony arms. It feeds on only one kind of leaf, Cecropia, which happily for the sloth grows in quantity and is easily found. No predators attack the sloth-few indeed can even reach it-and nothing competes with it for the Cecropia. Lulled by this security, it has sunk into an existence that is only just short of complete torpor. It spends eighteen out of twenty-four hours soundly asleep. It pays such little attention to its personal hygiene that green algae grow on its coarse hair and communities of a parasitic moth live in the depths of its coat producing caterpillars which graze on its mouldy hair. Its muscles are such that it is quite incapable of moving at a speed of over a kilometer an hour even over the shortest distances and the swiftest movement it can make is a sweep of its hooked arm. It is virtually dumb and its hearing is so poor that you can let off a gun within inches of it and its only response will be to turn slowly and blink. Even its sense of smell, though it is better than ours, is very much less acute than that of most mammals. And it sleeps and feeds entirely alone. 1. The purpose of the passage is to (A) compare the two-toed and the three-toed sloths (B) explain the parasitic relation of a type of moth to the sloth (C) describe the behavior of the three-toed sloth (D) condemn the way the sloth takes care of itself 2. It can be inferred from the passage that the sloth uses its hooked claws mainly to (A) hang on tree branches (B) clean its coat (C) catch prey (D) swing from one place to another 3. What does the sloth eat? (A) Caterpillars (B) Cecropia (C) Moths (D) Algae 4. How does the sloth spend most of its time? (A) Eating (B) Sleeping (C) Grooming itself (D) Finding food 5. It can be inferred from the passage that if a person makes a loud noise near a sloth, the sloth will (A) attack the person (B) run away as fast as it can (C) show little response (D) become deaf 6. The author's discussion of the sloth focuses primarily on the animal's (A) solitary nature (B) physical handicaps (C) diet (D) inactivity Passage 3 The Montessori method of educating children is guided by perhaps a half–dozen major principles of education. The first affirms the biological programming of child development, the child's capacity for self – realization, for "auto-education." The second calls for "scientific pedagogy." A science of childhood based on observation. The third demands a natural environment in which self-development can be expressed and observed. Montessori believed that the school could be made into such an environment, thus becoming a laboratory for scientific pedagogy. This environment should be determined scientifically. In order to expand, children, left at liberty to exercise their activities, ought to find in their surroundings something organized in direct relation to the children's internal organization. All of these principles imply the next, which Montessori calls the " biological concept of liberty in pedagogy": the child must be free to act spontaneously and to interact with the prepared environment. The entire program is concerned with the individual child; the spontaneity, the needs, the observation, the freedom are always those of the individual. Finally, the modus operandi of the method is sensory training. 1. Which of the following is the best title for the passage? (A) Principles of the Montessori Method (B) Modern Principles of Education (C) Results of the Montessori Method (D) Stages of Child Development 2. In line 6, the phrase "such an environment" refers to which of the following kinds of environment? (A) Biological, accompanied by specimens (B) Scientific, accompanied by experiments (C) Pedagogical, in which ideology prevails (D) Natural, in which self-expression prevails 3. According to the passage, the Montessori method focuses on (A) the individual child (B) pairs of children (C) small groups of children (D) large groups of children 4. It can be inferred from the passage that the Montessori method was named after a (A) school (B) town (C) person (D) book 5. Which of the following would NOT be advocated by the Montessori method? (A) Tightly controlling children's group activities (B) Carefully teaching children to listen and observe (B) Permitting children to work at their own pace (C) Allowing children to speak out at will during classes Passage 4 In an experiment designed to study the effect of majority opinion, even when it is contrary to fact, small groups of subjects observed a standard straight line, and then judged which of three other lines equaled it in length. One of the other lines was longer, one shorter, one equal to the standard; the differences were great enough that threshold judgments were not involved. All but one member of each group had been instructed to agree upon a wrong answer for a majority of the trials. The experimental subject was thus pitted against a majority, and the subject's problem was whether to disagree with the majority, or to doubt his or her own judgment and agree. Many subjects refused to change, and continued to hold to their independent appraisals. But a substantial number yielded under pressure from the others' apparent judgments. The amount of yielding depended upon the clarity of conditions (lack of clarity led to conformity to majority opinion), individual differences, and the size and unanimity of the opposition. With the opposition of only one other person there was very little yielding; with tow against one the amount of yielding became pronounced; and a majority of three was nearly as effective as larger majorities against the lone dissenter. 1. What does the passage mainly discuss? (A) The accuracy of threshold judgments. (B) The inability of groups to estimate correct line length. (C) The impact of majority opinion on the judgment of an individual. (D) The necessity of clear conditions in conducting successful experiments. 2. A total of how many lines were shown to each group of subjects? (A) Two (B) Three (C) Four (D) Five 3. Why did all but one of the members of each group choose the wrong line? (A) They could not accurately judge which lines were equal in length. (B) They were told to do so for the purposes of the study. (C) They wanted to humiliate the person who disagreed. (D) They did not understand the instructions. 4. It can be inferred from the passage that the main purpose of the experiment was to examine the tendency that many people have to (A) compete (B) conform (C) criticize (D) communicate 5. The experiment described in the passage was most likely carried out by (A) physicists (B) mathematicians (C) linguists (D) psychologists Passage 5 This vertical movement of the fieldstones is not simply an artifact of soil erosion, it is the result of frost heaving. In the fall the soil freezes first beneath stones, because stones are a better conductor of heat than soil. Or, put another way, soil is a better insulator than rock in a sea of insulation, stones are chilly islands. Because most glacial till has a fairly high water content, ice forms beneath fieldstones when they freeze, and the expansion of this ice forces them upward. Even when the ice thaws, the stones do not return to their original positions because during thawing particles of soil seep into the cavity beneath, partially preventing the stones from dropping. Like a ratchet on a car jack each freeze-thaw cycle gradually lifts the fieldstones toward the surface. Ina very cold winter there may actually be two thrusts per freeze. Ice expands when it initially forms, but as the temperature plummets, the ice contracts. In the reverse process, when this very cold ice finally melts, it must expand a second time, pushing the stone once more. In theory, the upward movement of fieldstones should result in pure soil, all the stones above the frost line having been pushed to the surface and carried away. What a vision! Acres of pure, deep soil and crowbars rusting away unused. Alas, the fastest stones move only an inch or so a year, and most are orders of magnitude slower. 1. What does the passage mainly discuss? (A) The effect of frost heaving on stones (B) The water content of various types of soil (C) Factors affecting the rate of ice expansion (D) Seasonal variations in ground temperature 2. What statement was most probably made in the paragraph preceding this pasage? (A) Pure soil is quickly eroded. (B) Fieldstones are lifted to the top of the soil. (C) It is not easy to move stones from fields. (D) Ancient cultural artifacts are buried deep in the soil. 3. Where does the soil freeze first in the fall? (A) On the tops of stones (B) In areas of pure, deep soil (C) Under rocks (D) On islands 4. In the first paragraph, the author gives an example of (A) glacier movement (B) soil erosion (C) climate change (D) heat conduction 5. According to the passage, why do fieldstones remain raised in the soil when the ice thaws? (A) Melting ice erodes the soil around them. (B) Soil fills in under them (C) They remain in a frozen layer of topsoil. (D) The frost line under which they are resting moves upward. 6. The author refers to a car jack in an analogy that illustrates how (A) stones are pushed upward (B) heavy rocks press down on deep levels of soil (C) a crowbar is used to remove stones from soil (D) automobile parts freeze in cold weather 7. Which of the following conclusions is supported by the third paragraph? (A) Stones above the frost line will quickly be pushed upward. (B) The number of stones surfacing each year is decreasing. (C) Acres of pure, deep soil regularly result from frost heaving. (D) New stones will continue indefinitely to surface at a slow rate. 8. In line14, the author exclaims "What a vision!" to express an attitude of (A) fear (B) disgust (C) enthusiasm (D) romance Passage 8 A summary of the physical and chemical nature of life must begin, not on the Earth, but in the Sun; in fact, at the Sun's very center. It is here that is to be found the source of the energy that the Sun constantly pours out into space as light and heat. This energy is liberated at the center of the Sun as billions upon billions of nuclei of hydrogen atoms collide with each other and fuse together to form nuclei of helium, and, in doing so, release some of the energy that is stored in the nuclei of atoms. The output of light and heat of the Sun requires that some 600 million tons of hydrogen be converted into helium in the Sun every second. This the Sun has been doing for several thousands of millions of years. The nuclear energy is released at the Sun's center as high-energy gamma radiation, a form of electromagnetic radiation like light and radio waves, only of very much shorter wavelength. This gamma radiation is absorbed by atoms inside the Sun, to be re-emitted at slightly longer wavelengths. This radiation, in its turn, is absorbed and re-emitted. As the energy filters through the layers of the solar interior, it passes through the x-ray part of the spectrum, eventually becoming light. At this stage, it has reached what we call the solar surface, and can escape into space, without being absorbed further by solar atoms. Avery small fraction of the Sun's light and heat is emitted in such directions that, after passing unhindered through interplanetary space, it hits the Earth. 1. What does the passage mainly discuss? (A) the production of solar light and heat (B) the physical and chemical nature of life (C) The conversion of hydrogen to helium (D) Radiation in the x-ray part of the spectrum 2. According to the passage, energy is released in the Sun when (A) helium atoms bind with each other (B) gamma radiation escapes from the spectrum (C) radiation is absorbed by helium (D) nuclei of hydrogen atoms collide 3. The passage indicates that, in comparison to radio waves, gamma waves (A) produce louder sound (B) are less magnetic (C) do not form in the Sun's center (D) are not as long 4. According to the passage, through which of the following does the energy released in the Sun pass before it becomes light? (A) The x-ray part of the spectrum (B) Electromagnetic space (C) The solar surface (D) Interplanetary space 5. It can be inferred from the passage that the Sun's light travels (A) through solid objects in space (B) in many different directions (C) more slowly than scientists previously believed (D) further in summer than in winter

星期一, 十二月 12, 2005

《Discuz!宣言》

一、 我们Discuz!所有成员,在成立四周年之际,于2005年12月12日在北京中关村,重申我们对于社区事业的信心,并拟定《Discuz!宣言》作为下一步服务社区事业的方向和依据! 二、 我们认识到,我们做的Discuz!不仅仅是一个软件,在承担服务软件用户的责任之外,我们还有一个更为重要的使命,那就是怎样与社区建设者一起,共同维护网民的表达权利、创建平等而公平的社区信用体系、增强不同社区网民之间有效而便捷的沟通。 三、 我们重申一直以来对Discuz!用户的各项宗旨和原则的承诺,它们已证实是永不过时的,是普遍适用的。事实上,随着Discuz!和用户之间的相互联系和相互依赖日益增加,它们的现实意义更加重要。 四、 我们决心在互联网上,进一步推动社区形态的整体价值提升,进一步降低社区创建者的进入门槛,进一步完善对各类社区的个性化服务。 五、 我们希望,社区建设者不为任何概念诱惑所动,在互联网大潮的各个阶段,都能服务好本社区网民,成为互联网造福人类的一股最积极向上的力量。因为尽管互联网给人们带来了巨大机遇,但它的部分应用也带来了负面效应。 六、 我们认为某些基本价值是Discuz!永远坚持的。这包括: ――自由。人们不分男女,有权在不违法、不影响他人的情况下选择自己的网上社区生活。社区建设者有权在最大化维护社区网民的利益下,以民为本的自由选择各类经营项目!包括对社区技术系统平台的自由替换和选择权利! ――平等。社区经营者不分信仰、国别、年龄、性别及背景,皆享有免费使用Discuz!产品的平等权利! ――安全。与网站或网页不同,社区内的每个文字和记录都是由网民亲自创造的,社区上承载的每个ID都有着丰富感情的现实个体。正因为如此,Discuz!将确保能永远提供网上最安全的社区技术平台和解决方案。 ――跨平台。无论社区经营者选择哪一种技术平台系统,Unix、Windows或Linux,皆有选择Discuz!的自由,犹如好客的主人,尊重五湖四海宾客的信仰一样,Discuz!过去、现在、直至将来,永远都不会放弃这种跨平台的选择自由! ――技术性能与效率。与所有的软件产品一样,追求产品本身的卓越质量都是无可厚非的。但是,作为一个社区软件系统,我们追求高性能高效率还有另外一层含义,那就是,尽量帮助我们的社区建设者最大化降低硬件成本、最大可能地减少带宽资源的投资! ――优质服务。Discuz!一直坚持给社区网民、社区建设者提供最优质的产品和服务为己任。我们深知,社区的服务需求万万千,Discuz!谦虚谨慎,不断开发各类个性化服务。 七、 为了把这些价值和原则变为行动,兹将我们特别重视的一些关键目标从2006年起,逐步展示于众。 八、 我们将竭尽全力,在保证我们能够生存并持续发展的前提下,对Discuz!社区软件产品实施免费。在目前数万免费用户的基础上,将此项福利惠及更多的社区建设者。 九、 因此,我们决心: --永远为免费版用户提供最全面的产品功能。 ――永远向免费版用户提供稳定、长期的可升级支持。 ――永远让免费版用户享受到基本的网上社区技术支持服务。 ――永远支持中小网站、个人网站,尤其鼓励基于草根的社区应用创新,我们将在免费产品中不断开发新功能,满足这些灵感的技术实现。 十、 我们希望Discuz!产品永远永远免费下去,如果非要在她前面加上一个期限,我们希望将是一万年。

星期四, 十二月 08, 2005

无线选购须知

   1997年6月,全球第一个无线局域网标准IEEE802.11制定出来,掀开了无线局域网发展的序幕,无线上网成为可能。其后相继推出了IEEE802.11b、IEEE802.11a、IEEE802.11g标准,无线产品进入飞速发展的阶段。但同时,因为无线产品仍处于高速发展阶段,遵循几种正式与非正式的无线协议的产品同时存在,市面上的无线产品,也因此而标准各异,品牌和功能就更加五花八门。面对如此种类繁多,用户如何选择?在此,我们向购买者提供几点建议,为消费者选购无线产品提供一些参考。

一、无线传输距离

     无线局域网产品传输距离是大家普遍关注的问题,目前市场上常见的产品如普通802.11b和11g产品的最大传输距离均为室内100米,室外300米。且这只是在一个非常理想状态下的理论值,实际使用中,传输距离受环境影响非常严重,实际传输距离往往与理论值存在差异。空气、墙壁、玻璃和隔板等障碍物会使无线信号在传输时很快衰减,遇到障碍时,接收信号会急剧下降。经过一道普通木板,接收信号将衰减4dB;经过一堵砖墙,接收信号将衰减8~15 dB;经过钢筋混凝土墙,则至少衰减15~30 dB。在家庭和办公环境中,普遍存在木板、墙壁等,受到这些障碍物的阻隔,接收信号强度或多或少会有衰减,因此无线产品的发射功率、接收灵敏度以及低速连接等级等诸多与无线传输能力有关且影响无线传输距离的因素就倍显重要。为了摆脱网线束缚而组建的无线网络却因为障碍物的隔离、所需覆盖的范围较大,而即使在一个家庭、一个公司内,也会到处都是信号盲区,岂不事与愿违!因此用户在选购无线产品时不是仅仅只要了解符合哪种协议、最大(理论)传输距离,更重要的是了解影响无线传输距离的发射功率、接收灵敏度以及低速连接等级等参数指标,全面考量其实际传输能力。

  • 发射功率
  •     由于无线电管理委员会有规定WLAN产品的发射功率不能高于100mW(对应dB数:10lg100=20dB),因此如果通过增加发射功率来提高穿透能力、扩大无线覆盖范围将是违规行为。一般WLAN产品都将发射功率设定在17dB,给生产预留+2dB误差,从而满足无线电管理委员会的规定。

  • 接收灵敏度
  •     要提高无线产品的传输距离,接收灵敏度是一个重要指标。无线传输的接收灵敏度类似于人们沟通交谈时的听力,提高信号的接收灵敏度可使无线产品具有更强地捕获弱信号的能力,这样,随着传输距离的增加,接收信号变弱,高灵敏度的无线产品仍可以接收数据,维持稳定连接,大幅提高传输距离。普通11g产品的接收灵敏度一般为-85dB,目前市面上的无线产品接收灵敏度最高可达-105dB,比普通产品提高了20dB。每增加3dB,接收灵敏度提高一倍。

  • 低速连接等级
  •     普通802.11g产品的最低连接等级仅为6M,这就表示当无线设备之间的传输速率低于6M时就已无法建立连接,这将大大降低传输距离,因为距离增加必然会是传输速率降低,在某特定环境下当距离远到一定程度时无线传输速率降为6M,那此时将距离再加远将无法建立稳定无线连接。相同的情况下,如果该产品有3M、2M或更低的连接等级,无线传输距离将自然要更远。因此更低的无线连接等级,更强的低速连接能力,是影响无线传输距离的另一重要因素。 现在已有部分基于802.11g的无线产品,增加了低速连接等级,目前最多增加五个低速连接等级:3M、2M、1M、0.5M、0.25M,具有速率自动调整功能,可以根据信号状况实时自动调整传输速率,低速传输速率等级的增加,保证了在信号很弱的情况下也能维持稳定连接,且能处于最优状态。

        高的发射功率、强的接收灵敏度以及多的低速率传输等级将增加无线传输距离,目前市面无线产品传输距离能达到室外最远超过800米。

    二、数据传输速率

        无线产品目前主要有802.11b、802.11g、802.11a三种标准,其中802.11b又有802.11b和802.11b+,802.11g又有802.11g和802.11g+之分。在中国大陆市场目前主要是802.11b和802.11g的产品,这其中又以802.11b为主流产品。在传输速率上,也有11M、22M、44M、54M、108M等速率之分(均为理论最大值)。仅从数值上来看,即使是速率最低的11M,也可以满足一般家庭和办公的需要,但这只是在一个非常理想状态下得出的理论值,实际有效传输速率与理论值相差甚远。 以普通802.11b产品为例,理论上最大传输速率为11M,但受环境及其他因素的影响,实际上有效传输速率仅为4M左右。而理论值最大传输速率为22M产品,其有效传输速率仅为8M左右,约是11M产品的一倍,因此也有"2X"的称法。市面上的"4X"、"8X"、"10X"、"15X"等说法大都是用有效传输速率与11M产品相比而来,基本上能体现无线产品的相对传输速率。然而同为108M产品,还有802.11g+和Super G等多种技术,有效传输速率也从"10X"至"15X"不等。因此除了要了解产品是11M、54M还是108M等,还得清楚产品有效传输速率到底有多快。目前传输速率最快的无线产品,其有效传输速率最高可达60M。

        随着网络服务的不断增加,大像素、高质量图片的实时传输,视频影视多用户同时点播,画面清晰、动画效果好的视频游戏在线品玩等等大数据流量场合,都要求更高的无线网络传输速率,有效传输速率较低的"2X"、"4X"等无线产品,已经不能满足这样的无线网络的网速要求,用户应该考虑选择有效传输速率更高的产品以保证网络数据传输的快速畅通。在选购无线产品的时候,要注意了解产品的有效传输速率。

    三、兼容性

        前面已经提到,目前无线产品主要符合802.11b、802.11g和802.11a三种标准,而11b和11g又还有些11b+、11g+以及Super G产品。11b/g与11a互不兼容,也就是说,符合11b或11g标准的产品,与符合11a标准的产品,是无法在同一网络中兼容使用的。11b和11g标准虽然可以兼容,但不同标准的产品在同一网络中使用只能以最低标准的性能来工作,比如同一网络中普通11g和普通11b的产品之间连接,只能以较低的普通11b的速率进行,Super G与普通11g产品之间连接也只能以普通11g产品的速率进行。

        因此,要最大限度地发挥无线产品的性能,最好能购买符合同一标准的无线产品来配套使用,这样不但可以避免兼容性问题,而且设备的性能会发挥得更为出色,安全的解决方案也会更加完美。

    四、保密性和安全性

        无线网络的数据完全是在空气中传输,只要处于该无线信号覆盖范围内,就很容易通过其他无线设备截取信息,因此,保密性和安全性对无线产品尤为重要。无线产品须提供SSID、IEEE802.1X、MAC地址绑定、WEP、WPA、TKIP、AES等多种数据加密与安全性认证机制,以保证无线网络的安全性与保密性。

        作为无线网络的核心设备—无线宽带路由器,则还需要要在无线安全的基础上,具备宽带路由器的防火墙、防止DoS攻击等功能,防止病毒攻击网络。

    五、选择知名品牌

        选择有自主研发和制造实力的知名名牌产品也非常重要。无线产品不同于网卡、交换机、集线器等纯硬件设备,其研发和生产测试技术难度高,设备投资大,竞争门槛大大高于传统的有线网络产品,尤其是无线网络核心设备—无线宽带路由器更是宽带路由器技术和无线技术的融合,要求有丰富的有线路由器与无线产品的设计生产经验,难度更大。没有相当实力与丰富经验的厂商很难进行自主研发与制造,基本上可以说,没有很好的有线路由器设计经验为基础,不可能产出很好的无线路由器产品。现在很多二、三流厂商为进入WLAN市场,选择从台湾一些小厂贴牌生产,在WLAN市场产品技术飞速发展、竞争越来越激烈的现状下,其产品的功能与品质都无法有最优最及时的反应。某些无名小厂为降低成本,甚至大量采用低档和残次无线芯片,其结果往往就是直接影响产品的质量,致使无线网络的信号覆盖范围和传输稳定性差,严重的甚至对人体产生不利的影响。而且,在产品出现故障时的售后服务也很难保障,往往周期很长,且最后经常不能得到很好的维修。贴牌产品还有一个致命的弱点,就是软件不是英文界面就是繁体界面,很多专用名词的说法都不同于我们的习惯,配置非常麻烦!

        相反,自主研发与制造的厂商,其产品完全由厂商自主研发和生产,在产品的研发上可以根据中国大陆的使用环境进行针对性设计,对产品在使用中出现的兼容性问题也能作出快速反应。同时,大规模生产的厂商,会采用名牌正品无线芯片和电子元件,质量可靠,性能稳定。还需强调的是,厂商或是渠道提供的良好售后服务也将是用户放心使用WLAN产品的一个保障。只有名牌产品才能保证良好的售后服务,才能使用户买的放心、用的舒心。

        另外,还要一提的是,购买时也要注意WLAN产品的易用性,现在很多知名品牌的无线产品都提供详细的中文安装手册和全中文安装软件,安装、设置步骤简单易用。相比那些英文或者繁体中文界面的安装软件,即使没有任何专业知识也可以轻松安装。

     

    108M无线宽带路由器 TL-WR642G


    108M无线宽带路由器 TL-WR642G

     产品概述:

    TL-WR642G108M无线宽带路由器集有线/无线网络连接于一体,并且天线可拆卸,专为满足小型企业、办公室和家庭办公室的上网需要而设计。符合IEEE 802.11g/b标准,采用TP-LINK 速展TM与域展TM无线传输技术,速率最高可达108M,用户有效数据传输速率是普通11g产品的3倍,是普通11b产品的15倍,;同时传输距离是普通11b、11g产品的2~3倍,传输范围扩展到4~9倍。

    TL-WR642G提供多重安全防护。支持64/128/152位WEP数据加密,同时支持WPA、IEEE 802.1X、TKIP、AES等加密与安全机制。支持SSID广播控制,支持基于MAC地址的访问控制,再配合强大的防火墙特性,可有效防止入侵,为无线通信提供更强的安全保护。

    TL-WR642G允许企业、办公室或家庭中多台电脑共享上网,内置的4个交换端口方便您在无线之外,用有线方式直接连接4台计算机。此产品性能优越、配置简单,除包含所有宽带路由器常见功能外,还支持定时、按需拨号、上网权限管理、病毒自动隔离、IEEE 802.1X、UPnP、DDNS、系统安全日志等高级功能,同时提供全中文配置界面,用户界面友好,配置简单易用,能让每个用户轻松的配置好路由器,与计算机建立快速可靠的连接,共享高速的Internet连接、共享文件和资源。

    主要特性:

    • 符合IEEE 802.11g、IEEE 802.11b、IEEE 802.3以及 IEEE 802.3u标准
    • 支持CSMA/CA、CSMA/CD、TCP/IP、PPPoE、DHCP、ICMP、NAT协议
    • 无线接入器、有线路由器合而为一,天线可拆卸
    • 采用TP-LINK 速展TM无线传输技术,速率最高可达108M,有效数据传输速率是普通11g产品的3倍,是普通11b产品的15倍
    • 采用TP-LINK 域展TM无线传输技术,传输距离是普通11b、11g产品的2~3倍,传输范围扩展到4~9倍
    • 提供1个10/100M自适应以太网(WAN)接口,可接ADSL或以太网交换机/路由器
    • 提供4个10/100M自适应以太网(LAN)接口,与内部局域网连接
    • 支持端口自动翻转(Auto MDI/MDIX)
    • 支持最高达108M的无线速率,支持54/48/36/24/18/12/9/6M或11/5.5/2/1M速率自适应
    • 支持64/128/152位WEP加密;支持WPA、IEEE 802.1X、TKIP、AES等加密与安全机制
    • 支持SSID广播控制和基于MAC地址的访问控制
    • 使用无线漫游(Roaming)技术,保证高效的无线连接
    • 内建DHCP服务器,同时可进行静态地址分配
    • 内建防火墙,支持IP过滤、域名过滤和MAC地址过滤
    • 支持静态路由
    • 支持IPSec和PPTP VPN Pass-through
    • 支持虚拟服务器、DMZ主机
    • 可防止DoS攻击,具有病毒自动隔离功能
    • 支持IEEE 802.1X认证,内置IEEE 802.1X客户端,完全满足特殊运营商认证计费要求
    • 支持通用即插即用(UPnP)、DDNS功能
    • 可以有针对地开放指定计算机的上网权限
    • 具有按需连接和定时开启/关闭上网功能功能
    • 支持MAC地址修改与克隆
    • 提供系统安全日志和流量统计功能
    • 支持远程和Web管理,全中文配置界面,配备简易安装向导(Wizard);支持TFTP在线软件升级
    • 提供手动复位按钮
    • 外置电源适配器,结构美观大方

    产品规格:

    支持的协议和标准

    IEEE 802.11g、IEEE 802.11b、IEEE 802.3、IEEE 802.3u、IEEE 802.3x、IEEE 802.1X、CSMA/CA、CSMA/CD、TCP/IP、DHCP、ICMP、NAT、PPPoE

    端口

    LAN口

    4个10/100M自适应RJ45端口(Auto MDI/MDIX)

    WAN口

    1个10/100M自适应RJ45端口(Auto MDI/MDIX)

    无线参数

    频率范围

    2.4~2.4835GHz

    传输速率

    速展TM (Super G):108M

    11g:54/48/36/24/18/12/9/6M(自适应)

    11b:11/5.5/2/1M(自适应)

    工作信道数

    13

    展频技术

    DSSS(直接序列展频)

    数据调制方式

    BPSK, QPSK, CCK and OFDM (BPSK/QPSK/16-QAM/ 64-QAM)

    灵敏度@PER(错包率)

    54M:-68dBm@10%PER;11M:-85dBm@8% PER;6M:-88dBm@10% PER;1M:-90dBm@8% PER;256K:-105dBm@8% PER(典型值)

    传输距离

    室内最远200米,室外最远830米(因环境而异)

    RF功率

    17dBm(典型值)

    天线增益

    3dBi

    天线类型

    双极子全向天线(可拆卸)

    网络介质

    10Base-T:3类或3类以上UTP

    100Base-TX:5类UTP

    LED指示

    每端口

    Link/Act(端口连接/工作)

    其它

    Power(电源),System(系统指示),WLAN(无线状态指示)

    外型尺寸

    (L x W x H)

    186mm x 146mm x 44mm

    使用环境

    工作温度:0ºC 到 40ºC;存储温度:-40ºC 到 70ºC

    工作湿度:10% 到 90% RH不凝结;存储湿度:5% 到 90% RH不凝结

    电源

    外置电源适配器输出:9V~50Hz 0.8A

    功耗:最大7W

    星期三, 十二月 07, 2005

    LEO太傻TOEFL语法高频详解

    太傻超级论坛 - TOEFL考试备考专版 - LEO太傻TOEFL语法高频详解(4楼开始逐渐增加内容)

    星期二, 十二月 06, 2005

    Z-Blog官方网站

    提供基于ASP平台的开放、高效、健壮、实用、美观、大方的Blog程序

    呆若木鸡..

    呆若木鸡..

    voidland

    一个基于asp的blog程序

    星期日, 十二月 04, 2005

    用Coral CDN畅游互联网

    由于网络结构、连接速度、防火墙等种种原因,我们经常会遇到打不开网页的情况。当遇到这样问题的时候,Coral CDN可以帮助我们访问大部分无法访问的网站。

    Coral CDN全称为The Coral Content Distribution Network,它利用位于世界各地的数百台服务器作为中介,保证使用者可以顺利的访问所有的网站。它的使用方法很简单,只要在需要访问的链接地址后添加".nyud.net:8090",就能用Coral CDN访问网站。比如:"http://cnn.com" => "http://cnn.com.nyud.net:8090"

    为了让使用者可以更方便的使用,Coral CDN还提供了一些小工具,包括两个浏览器插件以及一个Bookmarklet。 Coral extension是一个为Mozilla浏览器增加Coral CDN功能的插件,而Coral search plugin则提供了在浏览器搜索框中使用Coral CDN的功能。这两个插件都能支持Mozilla、Firefox以及Netscape浏览器。

    Coralize则是一个跨平台的Bookmarklet,可以使用在所有的浏览器中。只要将链接加入书签栏,就可以通过点击用Coral CDN来访问当前页面。

    这些工具对位于中国的Blogger会特别有用,至少访问BlogspotTypepad上的Blog要方便了许多。所以我把Coral CDN插件汉化了一下,方便习惯使用中文的朋友使用。
    Coral CDN插件中文版

    星期六, 十二月 03, 2005

    Hsing

    VOA Friends etc.

    星期五, 十二月 02, 2005

    Xbox 360抢鲜测评

    2005年假日中最有趣、最令人期待的电脑并非传统意义上的电脑,而且不是由电脑硬件厂商生产的。它就是由全球最大的软件商微软公司(Microsoft)推出的Xbox 360游戏机。

    Xbox 360是Xbox的第二代产品,于2005年11月22日上市销售,它比Xbox功能更强大,外观更时尚。事实上,Xbox 360可以说是游戏业界至今发售的最强大的主机。

    售价为400美元的Xbox 360 不仅如此,Xbox 360还是一个多媒体娱乐中心,和前一代游戏机一样,它也能播放CD和DVD,并让用户与全世界的玩家联网进行网上多人游戏。不过,它也有不少新功能,包括在自身或外接的硬盘上播放音乐、视频文件和浏览照片,或把苹果iPod插入它的一个接口,导入音乐文件等。

    我们在一位游戏老手的协助下测试了Xbox 360,结论是:Xbox 360如真实电影般的流畅画面让它成为游戏机中的翘楚,而且在多媒体娱乐中心方面也表现不俗。

    不过Xbox 360也有一些会让普通玩家在购买时犹豫不决的重大缺点,其中最突出的是高昂的价格和对第一代Xbox游戏糟糕的兼容性。

    Xbox 360共有两款:售价300美元的基本型和售价400美元的标准型。问题是基本型主机不能向下兼容Xbox游戏,只有标准型可以,因为后者配备了安装有特殊软件的硬盘,老游戏只有依靠这些软件才能在新机型上运行。

    因此,如果你不想让以前购买Xbox游戏的投资付诸东流,那只好花400大洋买Xbox 360标准型,这一价格是第一代Xbox或其竞争产品PlayStation 2的两倍多。当然,你多花的100美元也给你带来其他一些东西,除了20G的分离式硬盘外,还有一个无线手柄替代普通的有线手柄,一个耳麦,一个媒体播放遥控器,还有一些连接线。

    Xbox的一个游戏场景Xbox 360游戏的售价在50到60美元左右。

    我们对Xbox 360的游戏功能和多媒体功能都做了测试,由于我们两个都不太会玩游戏,所以请到一位乐意帮忙的游戏迷乔•卡登(Joe Carden),他今年32岁,为联邦政府提供公共关系咨询服务。乔对这款新主机爱不释手,在测试机上玩了一个小时后,他马上宣布自己要去买一台Xbox 360。

    Xbox 360的启动工作比较简单,把电源线、视频线和乙太网线插入机身后面的接口即可。不过你可能得另外准备一个插线板,因为Xbox 360的电源适配器是我们迄今为止见过的最大的一款。

    我们测试了Wi-Fi无线上网,正好用上微软公司提供的售价100美元的无线网路适配器。我们把小巧的适配器插入主机后部,不一会儿显示灯就变成绿色,表示主机已自动监测到无线网路,现在已经能上网了。

    Xbox 360能垂直放置,就像一个迷你电脑主机一样,同时也能水平放置。其前面板可以随意更换,让主机显得更有型 - 每个面板售价19美元。

    我们尝试了注册的几个步骤,包括给主机起个昵称,以及从以下四个选项中选择适合我们风格的游戏环境 - 老少皆宜、轻松娱乐、专业级别或是隐居高手。

    《世界街头赛车3》游戏场景想玩网路游戏的话,你需要有一个Xbox Live帐户,400美元的主机附赠一个所谓的"银级会员"帐户,但只能让用户在网上用声音进行交流,而不能和别人一起玩游戏。Xbox Live的"金级会员"帐户除了包括"银级"的各种功能,还能玩网络游戏,但年费高达50美元。

    乔首先测试了"使命召唤2"(Call of Duty 2),一款让人体验二战残酷的游戏,战场首先在莫斯科展开。乔操纵著无线手柄,和战友们在战区打得不亦乐乎:射击敌人,投掷烟雾弹,放置炸药退后,把敌人的建筑物炸上天,满眼都是火焰,砖瓦如雨点般飞落,扬起的尘土在崩塌的房子周围升起。

    乔说:"Xbox 360的游戏画面比Xbox和PS2好太多啦。"仿佛为了验证他的判断,一群坦克突然出现在战区,装甲车身上的斑驳清晰可见,向白雪覆盖的战壕冲了过来,乔和战友们纷纷闪避,雪花四溅的场景十分真实。

    乔觉得战争场景的画面更真实,敌人的智商更高。他在试玩Quake 4的时候也有同样的感受,那是一款孤胆英雄对抗外太空异形大军的游戏。

    《使命召唤2》游戏场景乔还测试了上网玩游戏,和微软公司一个网名叫"狗熊"的员工在"世界街头赛车3"(Project Gotham Racing 3)中一争高下。这款赛车游戏让玩家驾车在五个城市飞驰,其中包括伦敦、纽约和夜色中的拉斯维加斯,有些街道我们飞驰经过时马上就能认出来。在乔和"狗熊"比赛的同时,两人还通过耳麦互相开玩笑。

    后来,我们自己在办公室里也玩了"使命召唤2"和"世界街头赛车3",虽然我们的游戏水平不怎么样,但真实华丽的游戏画面把我们紧紧吸引住。我们故意把车子在伦敦白金汉宫附近的赛道护栏上乱撞,让围观的人在惊恐中四散而逃,我们乐此不疲。

    我们也测试了Xbox 360的多媒体功能。通过名为Media Center Extender的设备,我们能在Xbox 360上播放"媒体中心电脑"(Media Center PC)上储存的内容,即使那个电脑在另一个房间也没有问题。这种方式运行很舒畅,我们能播放一台戴尔电脑(Dell)上的音乐、视频并浏览照片;但如果你电脑上没有安装Windows Media Center,Media Center Extender设备就没有办法工作。

    我们还在Xbox 360内置的硬盘上播放了同类的多媒体文件,并利用主机上的三个USB接口,接入一个iPod和一个装满照片文件的移动硬盘。音乐在Xbox 360上播放顺畅,通过电视机喇叭发出声音,照片在电视上的显示速度也很快。iPod上的歌曲名称和播放列表显示在电视萤幕的功能表上,就跟储存在主机里一样。DVD播放功能也毫无问题,我们看了裘蒂•福斯特(Jodie Foster)主演的"颤栗空间"(Panic Room)中的几个片段。

    毋庸置疑,Xbox 360的游戏功能对大多数玩家将产生难以抵挡的魅力,但对那些偶尔玩游戏的人来说,现在就买Xbox 360可能是个错误。原因之一就是,更好的游戏可能还未出现,因为游戏开发商需要时间进一步熟悉Xbox 360的硬件机能。此外,微软的竞争对手索尼公司(Sony)和任天堂公司(Nintendo)都将在2006年推出新的游戏主机。有些人可能希望比较一下三种主机的优劣,然后再花数百美元把其中一种请回家。

    话说回来,如果游戏在你生活中占很重要的一部分,而且你能负担得起400美元,那Xbox 360不会让你失望。这是一款出色的游戏机,也是一颗冉冉升起的多媒体娱乐新星。