Reactor模式和NIO
本文可看成是对Doug Lea Scalable IO in Java一文的翻译。
当前分布式计算 Web Services盛行天下,这些网络服务的底层都离不开对socket的操作。他们都有一个共同的结构:
1. Read request
2. Decode request
3. Process service
4. Encode reply
5. S...
分类:
其他好文 时间:
2014-06-02 23:14:47
阅读次数:
356
Intent intent = new Intent();
intent.setClass(School.this, Setting.class);
startActivity(intent);在纠结这个问题的时候也在考虑是不是 .setClass ...
分类:
其他好文 时间:
2014-06-02 17:34:52
阅读次数:
163
第一种:#!/bin/bash service vsftpd start &>
/dev/null if[ $? -eq 0 ]thenecho "ftp is start"elseservice vsftpd
startfi第二种:#!/bin/bash read -p "input your f...
分类:
其他好文 时间:
2014-06-02 00:41:38
阅读次数:
332
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www...
分类:
编程语言 时间:
2014-06-01 14:14:30
阅读次数:
320
MainActivity如下:
package come.on;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.V...
分类:
移动开发 时间:
2014-06-01 10:36:36
阅读次数:
345
【题目】
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0.
...
分类:
其他好文 时间:
2014-06-01 09:16:29
阅读次数:
242
【题目】
Given a collection of integers that might contain duplicates, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.
The solution set must not contain duplicate subsets.
For example,
If S = [1,2,2], a solution ...
分类:
其他好文 时间:
2014-06-01 08:51:06
阅读次数:
292
1.
格式:
父标签:
描述:
一个必须包含一或一个以上的.如果不包含则不会有Intent被拦截。
参数:
android:name
表示的是action的名称,一些标准的action已经在Intent类中定义了,可以查询Intent的api查看。可以通过 "android.intent.action.*"来进行赋值。比如对于 ACTION_M...
分类:
移动开发 时间:
2014-06-01 06:00:50
阅读次数:
339
OO(ObjectOriented,面向对象),用一张图表示OO进行系统开发的特性:
SO(Service-Oriented,面向服务),用一张图表示SO系统开发与运行的特性:
通过这两图的对比,如果抽象一点来说的话,这两张图其实都是...
分类:
其他好文 时间:
2014-05-31 22:37:18
阅读次数:
567
登录RMAN 报ORA-12162:TNS:net service name is incorrectly specified错误
[oracle@localhost admin]$ date
Tue Apr 22 18:06:16 CST 2014
[oracle@localhost admin]$ rman target /
//出现诡异的ora-12162错误,第一反应是TN...
分类:
Web程序 时间:
2014-05-31 22:31:38
阅读次数:
518