Servlet 3.0 新特性
Servlet 3.0 规范的 JSR 315 已经进入到了 proposed final draft 阶段,想必很快就会在 Java EE 6 中释出。 新版本的 Servlet 规范变动比较大,不单单只是 API 的变动,而是引入了很多新特性。
那么都有哪些新特性呢:
- 支持注释
- 可插拔、易扩展
- 支持请求的异步处理
- 安全性得到增强
- 其他杂项变化
Categorized in: Java · Tagged with: Java, Servlet
Ubuntu 下 NetBeans 编辑器的字体锯齿问题
Append this -J-Dawt.useSystemAAFontSettings=on to netbeans_default_options in etc/netbeans.conf, then restart netbeans
Categorized in: Java · Tagged with: NetBeans, Ubuntu
SVN 1.6 on ubuntu
For Karmic:
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu karmic main deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu karmic main
For Jaunty:
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu jaunty main deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu jaunty main
For Intrepid:
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu intrepid main deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu intrepid main
For Hardy:
deb http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu hardy main deb-src http://ppa.launchpad.net/anders-kaseorg/subversion-1.6/ubuntu hardy main
Categorized in: Operation Systems · Tagged with: Linux, SVN, Ubuntu
How to reset your Linux root password (reship)
原文: http://www.ibm.com/developerworks/cn/linux/l-10sysadtips/
如果忘记根密码,就必须重新安装整台机器。更惨的是,许多人都会这样做。但是启动机器并更改密码却十分简单。这并非在所有情况下都适用(比如设置了一个 GRUB 密码,但也忘记了),但这里介绍一个 Cent OS Linux 示例,说明一般情况下的操作。
首先重启系统。重启时会跳出如图 1 所示的 GRUB 屏幕。移动箭头键,这样可以保留在此屏幕上,而不是进入正常启动。
图 1. 重启后的 GRUB 屏幕

然后,使用箭头键选择要启动的内核,并输入 E 编辑内核行。然后便可看到如图 2 所示的屏幕:
图 2:准备编辑内核行

再次使用箭头键突出显示以 kernel 开始的行,按 E 编辑内核参数。到达如图 3 所示的屏幕时,在图 3 中所示的参数后追加数字 1 即可:
图 3. 在参数后追加数字 1

然后按 Enter 和 B,内核会启动到单用户模式。然后运行 passwd 命令,更改用户根密码:
sh-3.00# passwd
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully
现在可以重启了,机器将使用新密码启动。
Categorized in: Operation Systems · Tagged with: Linux, Ubuntu
eBay Marketplace Architecture (reship)
Architectural Forces: What do we think about?
• Scalability
– Resource usage should increase linearly with load
– Design for 10x growth in data, traffic, users, etc.
• Availability
– Resilience to failure
– Graceful degradation
– Recoverability from failure
• Latency
– User experience latency
– Data latency
• Manageability
– Simplicity
– Maintainability
– Diagnostics
• Cost
– Development effort and complexity
– Operational cost (TCO)
Architectural Strategies: How do we do it?
• Strategy 1: Partition Everything
– “How do you eat an elephant? … One bite at a time”
• Strategy 2: Async Everywhere
– “Good things come to those who wait”
• Strategy 3: Automate Everything
– “Give a man a fish and he eats for a day … Teach a man to fish and he eats for a lifetime”
• Strategy 4: Remember Everything Fails
– “Be Prepared”
…
Categorized in: Architecture · Tagged with: Architecture
弃用 Yahoo! stat.
雅虎统计改为量子恒道统计,遂决意放弃,改用 google analytics。
Categorized in: My Life · Tagged with: MyLife
Linux 平台上的图形化 SVN 客户端
You may already know some SVN clients on Linux, like rapidSVN, eSVN, etc. But I don’t think they are as good enough as TortoiseSVN that is only for Windows platform.
Today I found an SVN client named SmartSVN, developed by Java. It’s very very powerful, support many operations just like what TortoiseSVN does on Windows.
It’s a pity that it’s not open source software but for commercial.
Update: There is another SVN client that you can choose – svn-workbench
Categorized in: Java · Tagged with: Java, SVN
Make LI not indent
Sample code is listed below:
ul {
list-style:none;
margin:0px;
padding:0px;
}
list-style attribute makes li without bullet.
The code is tested on Firefox, Opera, IE.
Categorized in: Uncategorized · Tagged with: CSS, HTML

(
(4.00 out of 5)