2005-10-29

Tomcat, JSP, Bean



今天一个朋友问我,JSP到底怎么用这个“Bean”?
其实很简单......
index.jsp代码:


DateFormatBean.java代码:


目录结构:

2005-10-26

OSCache

Homepage

OSCache is a caching solution that includes a JSP tag library and set of classes to perform fine grained dynamic caching of JSP content, servlet responses or arbitrary objects. It provides both in memory and persistent on disk caches, and can allow your site to have graceful error tolerance (eg if an error occurs like your db goes down, you can serve the cached content so people can still surf the site almost without knowing). Take a look at the great features of OSCache.

Here you will find documentation and download information for the latest version of OSCache.

Reports:

Documentation for the currently developing release can always be found on the OSCache Wiki. If you have edits or corrections to make to the documentation here, you may edit them directly on the wiki as well.

Tomcat 5.x 中的CNN和Yahoo



Do you find this String in Tomcat 5.5.12' LOG ?

2005-10-26 20:52:37 org.apache.catalina.core.ApplicationContext log
信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]

It's Finny?

OWASP

http://www.owasp.org/index.jsp

The Open Web Application Security Project (OWASP) is dedicated to finding and fighting the causes of insecure software. Our open source projects and local chapters produce free, unbiased, open-source documentation, tools, and standards. The OWASP community also facilitates conferences, local chapters, articles, papers, and message forums. The OWASP Foundation, a not-for-profit charitable organization, ensures the ongoing availability and support for our work. Participation in OWASP is free and open to all, as are all the materials here.

Visit the OWASP download page for all of our materials.

More about this, Comeing soon......

2005-10-22

Urchin Software Corporation




http://www.urchin.com/lang/zh-CN/index.html


Urchin 成立于 1995 年,是一个 Web 分析和市场营销智能化解决方案的提供商,得到了《财富》500 强中超过 20%% 企业的信任,并被全球一百多万个网站所采用。 Urchin 以大众可接受的价格提供企业级的功能。

从 2005 年 5 月 3 日起,Urchin 已成为 Google 的一部分。

Look this picture (Advert the RED LINE):
呵呵,也许是一个小笔误......(注意红线部分)

FreeBSD 5.4-RELEASE Announcement

Date: Mon, 9 May 2005 17:01:58 -0400
From: Ken Smith
To: freebsd-announce@FreeBSD.org
Subject: [FreeBSD-Announce] FreeBSD 5.4-RELEASE Announcement

The Release Engineering Team is happy to announce the availability of FreeBSD 5.4-RELEASE, the latest release of the FreeBSD Stable development branch. Since FreeBSD 5.3-RELEASE in November 2004 we have made many improvements in functionality, stability, performance, and device driver support for some hardware, as well as dealt with known security issues and made many bugfixes.

For a complete list of new features, known problems, and late-breaking news, please see the release notes and errata list, available here:

http://www.FreeBSD.org/releases/5.4R/relnotes.html

http://www.FreeBSD.org/releases/5.4R/errata.html

FreeBSD 5.4 will become an "Errata Branch". In addition to Security fixes other well-tested fixes to basic functionality will be committed to the RELENG_5_4 branch after the release. Both Security Advisories and Errata Notices are announced on the freebsd-announce@freebsd.org mailing list.

It is expected there will be at least one more release from the RELENG_5 branch, most likely two. The current plans are for the RELENG_6 branch to be created within the next few months, and an initial 6.0-RELEASE will be made a few months afterwards. There will be a 5.5-RELEASE following a few months after the 6.0-RELEASE.

For more information about FreeBSD release engineering activities, please see:

http://www.FreeBSD.org/releng/

2005-10-21

Stealth



中文译名《绝密飞行》


很不错的一部电影!

以下资料来自IMDB

Genre: Action / Adventure / Sci-Fi / Thriller
Tagline: Fear The Sky

Plot Outline: Deeply ensconced in a top-secret military program, three pilots struggle to bring an artificial intelligence program under control ... before it initiates the next world war. (more) (view trailer)

User Rating: 4.5/10 (3,657 votes)

Cast overview, first billed only:
Josh Lucas .... Lt. Ben Gannon
Jessica Biel .... Lt. Kara Wade
Jamie Foxx .... Lt. Henry Purcell
Sam Shepard .... Capt. George Cummings
Richard Roxburgh .... Dr. Keith Orbit
Joe Morton .... Capt. Dick Marshfield
Ian Bliss .... Lt. Aaron Shaftsbury
Ebon Moss-Bachrach .... Josh Hudson
Michael Denkha .... Naval Controller
Rocky Helton .... Master at Arms
Clayton Adams .... USS Abraham Lincoln Sailor
Maurice Morgan .... USS Abraham Lincoln Sailor
Christopher Naismith .... USS Abraham Lincoln Sailor
Charles Ndibe .... USS Abraham Lincoln Sailor
Nicholas Hammond .... Executive Officer
......

MPAA: Rated PG-13 for intense action, some violence, brief strong language and innuendo.
Runtime: 121 min
Country: USA
Language: English / Korean / Russian / Spanish
Color: Color
Sound Mix: DTS / Dolby Digital / SDDS
Certification: Argentina:13 / Brazil:14 / Sweden:11 / Taiwan:PG-12 / Australia:M / USA:PG-13 / Singapore:PG / Ireland:12A / UK:12A / Hong Kong:IIA / Finland:K-15 / Canada:PG (Ontario) / Canada:PG (British Columbia) / Canada:G (Quebec) / Philippines:PG-13 / Mexico:B / Switzerland:12 (canton of Vaud) / Switzerland:12 (canton of Geneva) / Germany:12


机器,到底会不会有感情?
《铁巨人》、《i, Robot》到这部《Steaith》,似乎一直在寻找答案......

我下载的是DVDRip.XviD的版本,3个avi和3个srt,6个文件总共有2.5G
你可以在这里找到下载地址。
清晰度不错,因为系统没有AC3音频解码器,费了一份周折......
你可以在这里下载到AC3音频解码器。

推荐一个不错的播放器,sourceforge.net的开放源代码项目:Media Player Classic

顺便说一下,sina上面的简介就不要看了,全是胡说八道......
E文好的话,直接去imdb或者sony pictures.

更多图片请看这里More pictures

2005-10-19

Hacks

http://hacks.oreilly.com/

n., A clever solution to an interedting problem.

O'Reilly's Hacks Series reclaims the term "hacking" for the good guys--innovators who explore and experiment, unearth shortcuts, create useful tools, and come up with fun things to try on their own.

This site's goal is to help you connect to Hacks authors, discuss the various hacks, and even let you show off your own hackery by contributing techniques of your own. Join us in exploring the possibilities of creative hacking.

TrackBack



http://zh.wikipedia.org/wiki/Trackback

TrackBack是一种网络日志应用工具,它可以让网志作者知道有那些人看到自己的文章后撰写了与之有关的短文。在Movable Type和WordPress软件中,包含有该功能。这种功能通过在网志之间互相“ping”的机制,实现了网站之间的互相通告;因此,它也可以提供提醒功能。

TrackBack功能一般出现在一个网志文章的下方,同时会显示对方网志的摘要信息、URL和网志标题。

TrackBack规范由Six Apart在2000年制订,并在Movable Type 2.2中予以实现。

Blogger 目前还不支持 Trackback。如果您对此功能感兴趣,您可以尝试使用 Haloscan 的免费服务。

2005-10-18

Google VPN



惊讶,新奇......

安装了Google Secure Access之后,居然发现了一个VPN连接!

vpn.google.com

真是有趣!

ipconfig 看到如下信息:
PPP adapter vpn.google.com:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.211.60
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 192.168.211.60
DNS Servers . . . . . . . . . . . : 66.51.205.100
66.51.206.100
NetBIOS over Tcpip. . . . . . . . : Disabled

真是有意思......

网上看到有人找不到VPN连接的用户名和密码,其实在这里

2005-10-17

Google PageRank



PageRank(又称网页级别,网页排名,Google左侧排名)是一种由搜索引擎根据网页之间相互的超链接计算的网页排名。它经常和搜索引擎优化有关。 PageRank系统被Google用来体现网页的相关性和重要性。Google的创始人Larry Page和Sergey Brin1998年在斯坦福大学发明了这项技术。

参见以下网址:

http://zh.wikipedia.org/wiki/PageRank

http://linux.dalouis.com/pagerank_cn.htm

你了解口红(唇膏)吗 ?



口红的历史

考古学家发现,世界上的第一支口红在苏美人的城市乌尔(Ur)被发现,约五千年前。古埃及人会使用黑色、橘色、紫红色的唇膏,男性也会使用;古罗马时代一种名为Fucus的口红是以紫红色含水银的植物染液和红酒沉淀物所制成。男人也会涂口红。在维多利亚女王时期,口红被视为是妓女的用品,使用口红是一种禁忌。根据文献记载,伊丽莎白一世以口红抹粉来对抗死亡。中国古代妇女会将色素涂于纸的两面,用嘴唇抿住后,颜色自然会附于唇上。

大约在1660-1789年,欧洲的法国和英国男士间流行涂口红。

十八世纪美国的清教徒移民并不流行涂口红,爱美的女人会趁人不注意时以丝带摩擦嘴唇,以增加红润,这样的情形直到十九世纪,十九世纪流行苍白,口红和化妆品被视为禁忌,而转为以药品型式贩售。

法国娇兰(Guerlain)将管状口红引进美国,贩售对象主要为少数贵族,第一支金属管口红是由美国康乃狄克州华特贝里(Waterbury)的毛里斯李维和史柯维尔制造公司(Maurice Levy and the Scovil Manufacturing Company)于1915年制造,属于大众化产品。

1912年纽约市妇女参政权论者的示威活动中,著名的女性主义者都抹上口红,把口红示为妇女解放的象征。1920年代的美国,由于电影的流行,也带动了口红的流行,其后各类口红颜色的流行都会受到影视明星的影响,而带动风潮。但当时的口红是以肥皂为基底,使用起来并不让人感到舒适。

1940年代的美国女性受到战争的影响,会以化妆来保持好脸色,当时最大的口红厂商之一Tangee,曾推出一个名为“战争、女人和口红”的广告。

1950年战争结束,女星们带动将唇形显得饱满、魅惑的流行。1960年代,由于流行白色与银色等浅色的口红妆,鱼鳞被用来制造出闪动的效果。1970年迪斯可(Disco)流行时,紫色是一种流行的口红颜色,而庞克族喜爱的口红颜色为黑色。一些新世纪奉行者(New Ager)开始将自然植物的成份带入口红之中。接著摇滚乐手的装扮带动了男人使用口红的风潮。特别是1980年代的乔治男孩乐团。1990年代的口红开始出现咖啡色的口红,在某些摇滚乐团中也出现了使用黑、蓝色的唇色。1990年代末期,维他命、药草、香料等材料被大量添加于口红之中。

口红与社会学

某些社会学家认为,身体的装饰始于性器官,而嘴唇令人联想到阴唇,唇部的彩妆暗示性行为。

口红的成份

* 基底:油、蜡、软化剂,使口红能够凝固、持久
o 蜡:棕榈蜡、蜜蜡最常被使用的,棕榈蜡较不易熔化
o 油:矿油、葱麻油、羊毛脂,石蜡油(凡士林)
o 软化剂可增加颜色附著到唇上的能力,也可滋润

唇蜜含有较多的油,较少的蜡。

* 著色剂:含有颜料或染料,口红使用的颜料须为较细的颗粒,才能均匀附著于唇上。
* 香料和调味,可掩去上述成份的味道。

化学家认为口红的六种基本成分为蜜蜡、棕榈蜡、堪带蜡(candelilla wax,一种植物蜡)、葱麻油、羊毛脂、地石蜡。

成分比为:葱麻油65%,蜜蜡15%,棕榈蜡8-10%,羊毛脂5%,些许著色剂和香味。

一些具闪烁效果的口红也包含了云母、氧化铁、二氧化钛等成份。某些较鲜红或暗红效果的口红,成份中可能含有寄生在仙人掌上干胭脂虫(cochineal),也包含了一些防腐的成份。

使用方法

* 直接涂于唇上
* 在唇的中间点上几点颜色,用手指向两侧推向嘴角。
* 先上粉底,以唇线笔勾出轮廓,涂上口红,以面纸抿去多余的颜色,在唇上抹粉、再涂一层口红,以面纸抿一下,再用唇线修整、上唇胶。
* 使用唇刷沾口红颜色,擦于唇上,在唇刷保养得当的情形下,这是一种比较卫生的做法。

口红的保存

口红可保存于常温之下,存放地点应避免高温。当口红破裂时,可以用打火机将断裂的两截修复,然后冰于冰箱中,直到变硬。为了保持口红的卫生,可以用少量的酒精清洗口红。口红的保存期限约一至两年,当口红的颜色改变或发出异味时,应停止使用。

*^__^*

Gaim 1.5.0

Tasmanian devils have 300 pounds per square inch of bite
October 12th, 2005 - 3:31PM PDT

The page has been quiet for a while, 'eh. I guess we have some catching up to do:

Gaim development

A lot of you have noticed that while we typically release every three weeks, we haven't had a release in a while. We've shifted all our efforts to finishing Gaim 2.0.0. Gaim 2.0.0 has a ton of great features, fixes every problem you've ever had with Gaim, makes drastic changes to huge parts of Gaim---especially status, includes three new protocols, and does a bunch of other amazing stuff. We're looking to feature freeze at the end of this month and release a month or so later, so be sure to get on our cases and make sure we get it finished. Also, if you choose to give it a sneak peek in CVS, we ask that you please don't contact us about it. We already know a ton of things that are broken and incomplete that we'll get fixed before release. After our freeze, we'll make some pre-release builds for everyone to offer helpful feedback and bug reports on a product a bit closer to being finished than now. Unless you're interested in helping out with development, you should probably wait until then, as CVS can often break things badly for you.

Summer of Code

Meanwhile, Google's Summer of Code has drawn to a conclusion and we are very happy with what our students accomplished. Support for Apple's Bonjour protocol, UPnP NAT traversal, AIM and ICQ file transfer proxying, and support for the SIP/SIMPLE protocol are a few of the additions. See the news post at the top of our Summer of Code page for a detailed list.

Working at Google

I (Sean) have been hired by Google, moved to Seattle, and have been working on the Google Talk team for about a month and a half. The goal of Google Talk is to make real-time communication as open as possible, and in that regard, I've been working to offer all of Google Talk's features into other clients. Currently, I'm working on making it as easy as possible for other clients to use Google Talk's voice features. You can expect Gaim and other clients to be interoperable with Google Talk's voice features in the near future.

Gaim-vv

On a related note, the gaim-vv project?which aimed to offer a framework for voice and video support in Gaim?is being merged back into Gaim proper for hopeful incorporation into Gaim 2.0.0. This will be used to support Google Talk's voice as well as MSN and Yahoo! webcams.

Book

As I'll soon be getting my first royalty check, I'd like to sincerely thank everyone who bought my book and those who wrote me with such great compliments. Everyone seems to really enjoy the book, so be sure to pick up a copy if you haven't already.

Mark Doliner contributed to this report.

Gaim 1.5.0 - who needs micro versions?
August 11th, 2005 - 11:54PM EDT

Good morning class. Today I'd like all of you to download our newest release of Gaim. It features some major security fixes and some minor bug fixes and feature whatchamadingers. So download, install, attempt to climb a 5.12c, and have a marvelous day!

2005-10-16

我拯救了CPU风扇



I save the CPU FAN......

用了5年的CPU风扇,噪音大得像拖拉机一样......
我知道,是轴承缺少润滑所致,今天终于决定改变这种情况!

首先找来黄油,不推荐液体机油,他会把机箱弄得很脏。

It's like BB ?
下面是主角,Duron700的原厂风扇
默默地在机箱里转了5年的风扇......
就在拆卸风扇,加注润滑黄油的时候,悲剧发生了

一个扇叶轻轻一碰就掉了下来,他早已断裂......
整个叶轮也从支架上掉了下来 !
这也许就是噪音过大的原因......

?,看来没办法在继续工作了......
眼前浮现了挤公车去电脑城,付钱给JS的情景......
不,NO !
我要拯救它 !

先把它拆开,以便给轴承润滑。
然后就要粘合叶片和叶轮以及支架,叶片的粘合质量影响到叶轮运转时的平衡......

粘合完成之后的风扇
再来一张,踌躇一下......
嗯,伟大的D.I.Y。

2005-10-15

谁发明了面条 ?



面条是世界的一种大众食品,到底是哪一种文化发明了这种食品,已经争论了好几十年,法新社12日从巴黎发出的报道说,这一争论现在有了结果:发明权属于中国。

意大利人和阿拉伯人也想要获得这种食品的发明权。他们说,他们食用面条已有2000多年历史了。

但是一个考古学家小组将于13日在英国《自然》杂志发表的一份报告说,有无可辨驳的证据表明,中国无可争议地早于其他国家发明了这种面食。

这个考古小组表示,他们在中国西北黄土高原的拉加(音)地区发掘出了4000年前的面条,这些煮过的面条放在一只倒扣着的碗里。

报告说,发掘地点是在黄土高原洪泛区,沉积层有3米厚。自1999年以来,考古学家一直在这个地区进行挖掘。这些早先的面条不是硬麦或者是大麦制作的,而是用小米制成的。小米是在中国西北最早种植的作物之一。

报告说,这些面条很细,直径大约0.3厘米,长50厘米,颜色发黄,同现今的拉面相似。

昨天辞职了,庆祝一下!



I am FREE !

重获自由 !

2005-10-08

可能改变商业的7种技术



SEVEN TECHNOLOGIES THAT CHANGE EVERYTHING

1. Ajax
Ajax 是Asynchronous JavaScript and XML的缩写,是指一种创建交互式网页应用的网页开发技术,相对于以前的web应用来说通过此种技术服务器和浏览器之间交换的数据大量减少,结果我们就能看到响应更快的应用。同时很多的处理工作可以在发出请求的客户端机器上完成,所以Web服务器的处理时间也减少了。Amazon的A9.com搜索, Google的Gmail.com,Yahoo的Flickr相册都是此种技术的典范之作.而一家名为Tibco的公司也正在致力于商业化,微软也在进行相应的Ajax 开发工具的开发.
厂商:Amazon, Google, Microsoft, 37signals,Tibco Software, and Yahoo.

2.BIOGENERICS
生物仿制药,药品不太懂不乱翻译了.
厂商:BioPartners, Cangene, GeneMedix,LG Chemicals, Momenta Pharma, Rhein Biotech,and Wockhardt.

3.DEEP WEB SEARCH
深层网络搜索.不管任何一家搜索引擎号称索引的网页数目有多大,这些资料都是互联网资源冰山的一角而已.哪些搜索爬虫所进不去的领域正是深层网络搜索所关注的.随着桌面搜索,P2P,数字图书馆等新技术的介入,深层网络搜索将距离我们更近
厂商:Endeca, Glenbrook Networks,Google, IBM, Kozoru, and Yahoo.

4.HIGH-DEFINITION RADIO
更多频道,CD音质,更多更新的高品质广播
厂商:Clear Channel Communications,Disney, Ford Motor, iBiquity Digital, Radiosophy,Texas Instruments, and Visteon.

5.HYBRID CELL PHONES
集成了WiFi无线功能的复合型新手机
厂商:Bridgeport, British Telecom, Broadcom,Ericsson, Kineto Wireless, Lucent, Motorola,Nokia, Nortel, Samsung, and Texas Instruments.

6.MICRO FUEL CELLS
微型燃料电池.使用甲醇和氧气的DMFC技术制造更耐久的电池
厂商:Altair Nanomaterials, Ballard PowerSystems, Dow Chemical, DTI Energy, Hitachi,Motorola, MTI Micro Fuel Cells, NEC, Samsung,Solvay, and Toshiba.

7.WI-MAX
802.16.理论上覆盖30里的无线技术
厂商:Alvarion, ClearWire, Intel, Motorola,and Samsung.