niyue

Archive for 2004年12月|Monthly archive page

Google又有new idea了–Google Suggest

In other on 12月 13, 2004 at 3:57 下午

在Google实验室的网页上面看到,Google又有了新的产品退出–Google Suggest。就和金山词霸的单词提示还有Microsoft Encarta里面的Completion差不多,想法应该不算很新,不过Web界面能做成这样确实很强,不知道用了什么新技术。试用了一下,感觉不错,不过似乎还有点问题,第一次试的时候提示出现后退格和删除键都不起作用了,只能一起删掉,后来又没问题了,不知道为什么。而且发现只有英文搜索内容的建议,如果中文的话就没有了,看来还有待日后完善。

New! Google Suggest
As you type your search, Google offers keyword suggestions in real time
12/9/04 – Give us feedbackDiscuss with others

XSL Processors

In programming on 12月 5, 2004 at 4:05 上午

DocBook XSL:The Complete Guide

Chapter 2. XSL processors

An XSL processor is the software that converts an XML file into formatted output. There is a growing list of XSL processors to choose from. Each tool implements parts or all of the XSL standard, which actually has several components:

The XSL Standards

Extensible Stylesheet Language (XSL)
A language for expressing stylesheets written in XML. It includes the XSL formatting objects (XSL-FO) language, but refers to separate documents for the transformation language and the path language.

XSL Transformation (XSLT)
The part of XSL for transforming XML documents into other XML documents, HTML, or text. It can be used to rearrange the content and generate new content.

XML Path Language (XPath)
A language for addressing parts of an XML document. It is used to find the parts of your document to apply different styles to. All XSL processors use this component.

To publish HTML from your XML documents, you just need an XSLT processor. It will include the XPath language since that is used extensively in XSLT. To get to print, you need an XSLT processor to produce an intermediate formatting objects (FO) file, and then you need an XSL-FO processor to produce PostScript or PDF output from the FO file. A diagram of the DocBook Publishing Model is available if you want to see how all the components flow together.

XSLT processors

Currently there are three processors that are widely used for XSLT processing because they most closely conform to the XSLT specification:

Saxon
Saxon was written by Michael Kay, the author of XSLT Reference, one of the best books on XSLT. Saxon is a free processor written in Java, so it can be run on any operating system with a modern Java interpreter. It uses the Aelfred XML parser internally, which has some bugs, so many people substitute the Xerces parser.

Xalan
Xalan is part of the Apache XML Project. It has versions written in both Java and C++, both of them free. The Java version is described in this book because it is highly portable and more fully developed. Generally Xalan is used with the Xerces XML parser (Java or C++), also available from the Apache XML Project.

xsltproc
The xsltproc processor is written in C by Daniel Veillard. It is free, as part of the open source libxml2 library from the Gnome development project. It is considered the fastest of the processors, and is highly conformant to the specification. It is much faster than either of the Java processors. It also processes basic XIncludes.

There are a few other XSLT processors that should also be mentioned:

XT
James Clark’s XT was the first useful XSLT engine, and it is still in wide use. It is written in Java, so it runs on many platforms, and it is free. XT comes with James Clark’s nonvalidating parser XP, but you can substitute a different Java parser.

MSXML
Microsoft’s MSXML engine includes an XSLT processor. It is reported to be fast, but only runs on Windows.

Sablotron
Sablotron, written in C++, from Ginger Alliance.

4XSLT
4XSLT, written in Python, from FourThought LLC.

文档文档

In javalearning on 12月 3, 2004 at 6:55 上午

今天看Pluto看了半天,一边对着Apache,一边对着developerWorks把两边找到的Pluto的资料加在一起看,还是没看懂怎么在Pluto上面部署portlet,相关的文档太少了,而且还不是最新的,看了两个多小时,连一个HelloWorld的portlet都没搞定,sigh,文档到用时放恨少~

申请开通了Google的AdSense

In other on 12月 2, 2004 at 4:13 上午

已经忘记最一开始看到GoogleAdSense是在什么时候什么地方了,有印象的是在中国XML论坛sourceforge 面看到过,印象尤其深刻的是sourceforge上面,我在下载一个CMS方面的软件,Google的AdSense就出来了几个CMS有关的Ad,真是令我很震惊,从那以后,似乎不管上什么网站都会看到”Ads by Gooooogle“.后来就想到自己也去申请一下AdSense,虽然肯定没有什么钱赚,但是本身这个过程还是很有意思的,今天Google回了我的mail,告诉我申请通过了^_^放在这个blog上就准备(请见blog右下角).

非常感谢您提交自己的纳税信息。

Google 现在将启动对您的付款过程。根据 Google AdSense 在线计划协议,您可以预期在收入超过 100 美元的第一个月后的付款周期中得到付款。

如果您在 W-9 上选中了 “subject to backup withholding” 框,或在 W-8 BEN 指定了一个非零预扣税率,则对于依照 Google AdSense Online 计划协议支付给您的款项,Google 需要预扣最多 30% 以缴纳美国所得税。而对于这些付款,您可能还需要支付其他税费。

否则,Google 对于依照 Google AdSense Online 计划协议支付给您的款项不需要预扣美国所得税。不过,对于这些付款您仍可能需要纳税。

请注意,Google 所提供的纳税信息收集界面以及任何与纳税相关的信息不应作为也不应被解释为法律、税务或投资方面的建议。有关对您和/或您的企业如何应用税法的具体问题,您应该咨询自己的税务顾问。我们所提供的纳税摘要信息肯定是不完整的,而且税法和规章制度也会发生变动。因此,对于所提供的任何纳税信息,Google 都不能保证其准确性或完整性;对此,以及对于使用此信息所产生的任何后果,Google 不承担责任。有关美国税务方面的要求的具体信息,请访问美国国税局的网站,网址是 http://www.irs.gov

Google 采用业界标准的 SSL(安全套接字层)技术保护此信息以及您提供给我们的其他个人信息。另外,Google 采用加密格式存储纳税人的 ID 号码,以提高安全性。有关我们为保护您的隐私所采取措施的详细信息,请阅读 Google 隐私政策

What’s a methodology?

In learning on 12月 1, 2004 at 8:43 上午

看论文或者书籍的时候经常看到methodology这个词,只知道翻译成方法论,到底什么算是一种方法论确一直没有搞清楚,前段时间看paper的时候看到了Arnon Sturm的一篇文章Evaluation of Agent-Oriented Methodology,里面给出了我想要的答案:一种方法论包括了以下一系列的指导原则和活动:

we refer to a methodology as the entire set of guidelines and activities:

  • a full lifecycle process;
  • a comprehensive set of concepts and models;
  • a full set of techniques (rules,guidelines, heuristics);
  • a fully delineated set of deliverables;
  • a modeling language; a set of metrics;
  • quality assurance;
  • coding (and other) standards;
  • reuse advice;
  • guidelines for project management.

These are each associated with one of four major divisions: concepts and properties, notations and modeling techniques, process, and pragmatics.

一种方法论覆盖了开发生命周期中多个阶段:

Each methodology may have elements that are useful to several stages of the development life cycle. In this paper, the lifecycle stages are defined as follows:

• Requirements’ gathering is the stage of the lifecycle in which the specification(usually in free text) of the necessities from the system, is done.

• Analysis is the stage of the lifecycle that describes the outwardly observable characteristics of the system, e.g., functionality, performance, and capacity.

• Design is the stage of the lifecycle that defines the way in which the system will accomplish its requirements. The models defined in the analysis stage are either refined, or transformed, into design models that depict the logical and the physical nature of the software product.

• Implementation is the stage of the lifecycle that converts the developed design models into software executable within the system environment. This either involves the hand coding of program units, the automated generation of such code, or the assembly of already built and tested reusable code components from an in-house reusability library.

• Testing focuses on ensuring that each deliverable from each stage conforms to, and addresses, the stated user requirements.