Categories
- Android (5)
- Cloud Computing (10)
- Development (14)
- Linux (36)
- Uncategorized (38)
- WordPress (5)
Tags
Archives
-
Random Posts
Delicious Bookmarks
- Build a Killer Customized Arch Linux Installation (and Learn All About Linux in the Process) 2012/04/25
- openflow 2012/04/12
- sheepdog(牧羊犬):一种EBS的开源实现 2012/04/05
- HBase vs Cassandra: why we moved 2012/04/04
- High Availability for HDFS 2012/03/16
- Hypertable vs HBase II 2012/02/09
Google Reader Shares
- Hudson vs. Jenkins: Is it too soon to declare a winner?
- Galaxy Nexus 的 Super AMOLED 屏幕多了 HD,但少了 Plus
- Faenza Icon theme for Gnome 3.2 makes Ubuntu a little more eye candy
- Google 在台湾、香港及新加坡兴建自己的数据中心,一到两年后启用
- 既定的秩序是教育的结果
- Amazon S3 - 566 Billion Objects, 370,000 Requests/Second, and Hiring!
Links
Meta
Monthly Archives: March 2010
Subversion
1. 安装 从 tarball 安装: $ tar jxvf subversion-1.5.7.tar.bz2 $ cd subversion-1.5.7 $ ./configure –prefix=/opt/subversion –with-apxs=/opt/apache/bin/apxs –with-apr=/opt/apache/bin/apr-1-config –with-apr-util=/opt/apache/bin/apu-1-config $ make clean $ make $ sudo make install 如果在 Debian/Ubuntu 系: $ sudo apt-get install subversion libapache2-svn 2. 版本库 Subversion 支持单版本库,也支持多版本库。采用单一版本库管理所有项目,或者为每个项目建立一个独立的版本库,都是允许的,不过这两者的做法都有些极端。推荐的做法是,将关联度高的项目放在同一个版本库中管理。 … Continue reading
Use KefirBB to Extract Text from BBCode String
之前写了一篇帖子介绍如何从字符串中去除 BBCode 标签、提取纯文本信息,使用的是 JBoss Portal format 包,虽然可以解决问题,但非常不完美,比如,无法支持大写标签、无法识别自定义标签等。春节前发现了一个专门用于处理 BBCode 的 Java 库 KefirBB,当时的版本是 0.5,只支持 Java 6,我修改了些源码以支持 Java 5,并发了 patch 给其作者 Kefir。很快 Kefir 发布了新版本 0.6,同时支持 Java 5 & 6. 使用 KefirBB 提取纯文本信息非常简单。首先新建配置文件 kefirbb.xml 并放置到 CLASSPATH 中,其内容如下: <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" … Continue reading