April 9th, 2009 |
Published in
Web

Every year, CNet goes to the people and asks what the best Web 2.0 applications and services are. The people have spoken, and Drupal has been nominated, along with 299 others. To put Drupal into the coveted top 100, we need you to vote. Voting continues until April 30, so don’t wait, vote now.
Drupal won in 2007, and again in 2008. Can Drupal win in 2009? We sure hope so, but it will take your help. Please take a few seconds of your time to vote and help make Drupal a Webware 100 winner in 2009. Drupal is in the Social Networking & Publishing category.
In addition to voting you can put this fine graphic in your own blog posts encouraging others to vote for Drupal as well. Please link to either of the following:
Thank you!
April 7th, 2009 |
Published in
J2EE
现在最新的发行版是:GFv2.1

March 30th, 2009 |
Published in
J2SE, Web
记得进入Sun的面试的时候Leon就问了我Java如何实现多态。当时的答案是通过重载和继承,后者也就是动态绑定。今天看到PHP与MySQL5程序设计里面的关于PHP不支持方法重载的时候,再次引起我对“多态”这个概念的探究。首先,多态是面向对象方面的一个重要特性,它本不应该依赖于特定的编程语言。WIKI 中对Polymorphism的定义如下:
In simple terms, polymorphism is the ability of one type, A, to appear as and be used like another type, B. In strongly typed languages, this usually means that type A somehow derives from type B, or type A implements an interface that represents type B.
Operator Overloading the numerical operators +, -, /, * allow polymorphic treatment of the various numerical types integer, unsigned integer, float, decimal, etc; each of which have different ranges, bit patterns, and representations. Another common example is the use of the “+” operator which allows similar or polymorphic treatment of numbers (addition), strings (concatenation), and lists (attachment). This is a lesser used feature of polymorphism.
The primary usage of polymorphism in industry (object-oriented programming theory) is the ability of objects belonging to different types to respond to method, field, or property calls of the same name, each one according to an appropriate type-specific behavior. The programmer (and the program) does not have to know the exact type of the object in advance, and so the exact behavior is determined at run time (this is called late binding or dynamic binding).
从中我们可以看到,其实重载(override)并不是polymorphism,只是利于国人理解的一种解释。网上好多类似的讨论,一时也把我搞糊涂了,我特意去查了一下Thinking in Java,证实了以上的说法。总结一下就是继承是多态的基础,多态使得不同对象对同一条指令做出各自不同的响应。所以我当初的答案是不准确的,但是动态多态和静态多态的概念在C++教学中普遍使用,使得在在中文中多态又多了一层含义。
而PHP不支持方法重载的很大原因也在于PHP是弱类型语言,类型本身就可以自动变更,方法重载也就省了。
March 23rd, 2009 |
Published in
Web
如下:
#container
Page container (usually a <div>)
- #branding
- Used for a header or banner to brand the site.
-
- #branding-logo
- Used for a site logo
-
- #branding-tagline
- Used for a strapline or tagline to define the site’s purpose
- #nav or #navigation
- Used to contain a navigation device
-
- #nav-main
- Main or primary navigation
-
- #nav-section
- Navigation to pages within the current site section
-
- #nav-external
- Navigation to pages outside the site
-
- #nav-supplementary or #nav-supp
- A supplementary list of links, perhaps in a footer. This can replace the common, but presentational #footer
-
- #nav-(whatever)
- A list of links named at a designer’s descretion
- #search
- Related to search interface and search results
-
- #search-input
- A search form
-
- #search-output
- Search results which could include a <div> or other markup including definition lists
- #content
- Used for content rather than for another purpose such as navigation
-
- #content-main
- The main content area
-
- #content-news
- News related content
-
- #content-(whatever)
- Could include any form of content, including #content-related, #content-quote etc.
- #siteinfo
- Used for various site related information
-
- #siteinfo-legal
- Copyright information etc.
-
- #siteinfo-credits
- Designer or other credits
E-commerce related
- #content-products
- An overall area containing products
-
- .products
- Referring to individual products
-
- .products-prices
- Prices, discounts, special offers etc.
-
- .products-description
- A summary or longer description of a product
-
- .products-review
- A customer review
-
- .products-(whatever)
- Could include any form of product related content
- 原文连接:
http://www.stuffandnonsense.co.uk/archives/whats_in_a_name_pt2.html
March 23rd, 2009 |
Published in
Web | 1 Comment
访问http://browsershots.org/ ,输入你要看的网站的网址,一段时间时候以后就会将您提供的网站的在特定操作系统和浏览器下的截图显示出来:
但是要注意的一点是该网站每天提供的服务数是有限的,同时需要一些时间的等待。