Categories
- Android (5)
- Cloud Computing (10)
- Development (14)
- Linux (35)
- Uncategorized (36)
- WordPress (5)
Tags
Archives
-
Random Posts
Delicious Bookmarks
- Labor Efficiency: The Next Great Internet Disruption 24 hours ago
- Apache HBase 0.92.0 has been released 2012/02/04
- Ceph 2012/02/04
- Maximize virtio-net performance with vhost-net 2012/02/03
- Android-x86 - Porting Android to x86 2012/02/01
- 中国电信将成立云计算公司 践行“天翼云计算”战略 2012/02/01
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
Category Archives: Development
Getting Started with GitHub
Git 实在太强大了,GitHub 实在太有用了!下面记录的是如何在 Fedora 15 上设置使用 GitHub 服务。 1. 设置 SSH keys GitHub 使用 SSH keys 来确保你的计算机与 GitHub 服务器之间的连接安全,所以我们需要生成 SSH keypair: $ ssh-keygen -t rsa -C “your_email@foobar.com” 这会在 ~/.ssh 目录下生成两个文件 id_rsa 和 id_rsa.pub,前者是你的私钥,后者是对应的公钥。 登陆 github.com 后,进入 Account Settings -> SSH … 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
Extract Text from BBCode String
正如其名字所暗示的,BBCode 广泛用在论坛程序开发中,比如 phpbb、vbb 等。存储在数据库中的字符串往往是混杂 BBCode 的,如何从这些字符串中剔除 BBCode,以提取纯文本信息?如果使用 PHP 语言,有很多现成可用的 PHP BBCode parser。但如果使用 Java 呢?似乎很难找到现成的 Java BBCode parser。当然,可以使用正则表达式来做匹配分析,不过失之繁琐。无意中,在 JBoss Portal v2.6.7 中发现了一个组件可以分析 BBCode,位于 org.jboss.portal.format.* 包中,其 jar 文件是 portal-format-lib.jar 使用方法: ToTextRenderer render = new ToTextRenderer(); StringWriter writer = new StringWriter(); render.setWriter(writer); render.render(bbString.toCharArray(), … Continue reading
Choice
Eclipse 3.4.x sucks! And, the latest Spring IDE and the new arrived SpringSource dm Server Tool work better on Eclipse 3.3.x. So the following should be the most suitable environment for Spring development currently: Eclipse SDK 3.3.2 EMF-XSD-SDO 2.3.2 GEF … Continue reading
SpringSource dm Server 1.0.0 GA
9月30日,当中国人民正沉浸在欢乐祥和的节日气氛中的时候, SpringSource 发布了它的应用服务器的第一个正式版本。xxx纷纷表示影响不大… 噢,离题了… 原先在 beta 期间使用的名字是 SpringSource Application Platform,现在正式发布时换成了 SpringSource dm Server。不知道为什么换了名字,貌似是因为 SpringSource Application Platform 这个名字另有用途,又或者仅仅是觉得 application platform 这两个字太拽了? 使用方法并无变化,依然是非常简单的解包、启动、停止。具体操作参见上次为 beta 写的攻略,唯一不同的是环境变量由以前的 PLATFORM_HOME 改为了 SERVER_HOME,估计就是为了与产品改名保持一致。 $ export SERVER_HOME=/opt/springsource-dm-server-1.0.0.RELEASE 值得提到的是,这次还同时发布了基于 Eclipse 的开发工具,另外 dm Server 的源码基于 GPL v3 发布。在 Spring 网站上有更多社区资源。
Stefan Ruppert: Introduction into ARM
在 MyARM 的网站上发现了一篇很不错的 ARM Introduction,原文是 pdf 格式的。作者 Stefan Ruppert 是 ARM 4.0 标准的主要构架师之一。下面是正文。 Abstract Introduction into the ARM (Application Response Measurement) Standard defined by The Open Group. First a brief overview of the history of ARM is presented followed by … Continue reading
The Open Group ARM 4.0 SDK – Compiling on Windows
半年前开了个头,今天才写第二篇。这篇文章将介绍 The Open Group ARM 4.0 SDK,以及如何编译该 SDK。本文使用的是 Windows 平台,当然,该 SDK 也可以很好地在 UNIX/Linux 平台下使用,有空时我会写一篇针对 Ubuntu 的攻略。 ARM 4.0 SDK 包含了 C 和 Java 的实现,分别对应于 ARM 4.0 的 C 和 Java 规范。 1. 环境 需要 JDK 1.3.1 或以上,以及 Microsoft Visual C++ … Continue reading
Getting Started with S2AP in 1 Minute
我承认,这篇 post 有标题党嫌疑… -_- 不过如果你觉得 SpringSource 官方用户指南有点儿长、没时间但又想快速玩玩 S2AP,俺这篇“一分钟快速起步指南”就有点儿用了。 安装 解开下载的 S2AP 1.0.0 beta 包即可。 $ unzip springsource-ap-1.0.0.beta.zip 设定环境变量 $ export PLATFORM_HOME=/opt/springsource-ap-1.0.0.beta 个人觉得这个变量名不好,太 general 了,最好能改为类似 $S2AP_PLATFORM_HOME 或者 $SPRING_PLATFORM_HOME 这样的名字。 启动 常规启动: $ bin/startup.sh 调试模式启动: $ bin/startup.sh -debug 将会运行一个 debug agent,默认监听 8000 … Continue reading
Spring + OSGi + Container = ?
今年年初,SpringSource 收购了 Covalent,然后 Rod Johnson 又公开说 (from Javalobby) we’re basically seeing the decline of the traditional Java EE server. 而技术社区近来总有关于 OSGi 和 container 等方面的话题,加以关联,貌似 SpringSource 想借 Spring Framework 成功之东风进入 container 领域、而且打算利用 OSGi 来构建。 于是,在四月结束的时候,标题等式中的问号有了答案:SpringSource Application Platform,可以简写为 S2AP。从名字上看,很容易联想到 Eclipse RCP,不同的是,RCP 专注 … Continue reading
ARM Introduction
我打算写一个系列来介绍 ARM,包括概念、实现、开发、以及与现存的管理软件产品的协作使用,预计包括四到五篇文章。不知何时能写完,不管了,今天先开个头,简单绍介绍介先 开始之前要说明的是,本文所介绍的 ARM 并非那个著名的、做 RISC microprocessors 的 ARM 公司,而是由 The Open Group 制定并维护的、用于监控和衡量软件性能的一套开发标准。以下是引自 ARM 官方网站上的定义: The Application Response Measurement (ARM) standard describes a common method for integrating enterprise applications as manageable entities. The ARM standard allows users to extend … Continue reading