DG有下面三种模式– Maximum protection– Maximum
availability– Maximum performance 在Maximum protection下, 可以保证从库和主库数据完全一样,做到zero
data loss.事务同时在主从两边提交完成,才算事务完成。如...
分类:
数据库 时间:
2014-05-09 23:19:59
阅读次数:
554
1、数据挖掘解决的典型商业问题
需要强调的是,数据挖掘技术从一开始就是面向应用的。目前,在很多领域,数据挖掘(data mining)都是一个很时髦的词,尤其是在如银行、电信、保险、交通、零售(如超级市场)等商业领域。数据挖掘所能解决的典型商业问题包括:数据库营销(Database Marketing)、客户群体划分(Customer Segmentation & Classificatio...
分类:
其他好文 时间:
2014-05-09 22:46:23
阅读次数:
410
链接:http://soj.me/show_problem.php?pid=1735&cid=
Description
Let me introduce an easy method of encryption to you.
Suppose there’re N bytes (1 byte = 8 bits) data that are to be encrypted and ...
分类:
其他好文 时间:
2014-05-09 22:46:01
阅读次数:
498
DispatcherServlet作用
DispatcherServlet是前端控制器设计模式的实现,提供Spring Web MVC的集中访问点,而且负责职责的分派,而且与Spring IoC容器无缝集成,从而可以获得Spring的所好处。 具体请参考第二章的图2-1。
DispatcherServlet主要用作职责调度工作,本身主要用于控制流程,主要职责如下:
1、文件上传解析,如果请求...
分类:
其他好文 时间:
2014-05-09 22:03:12
阅读次数:
255
全排列可以用深搜的方式求解。解答树如下:
可以运行的代码:
import java.util.ArrayList;
import java.util.List;
public class Perm {
public static Integer[] data = {19, 37, 61, 79, 89};
public static int depth;
public...
分类:
其他好文 时间:
2014-05-09 21:09:51
阅读次数:
293
tableView 实现的方法 无分组的cell
#pragma mark - Table view data source
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return self.contacts.count;
}
- (UITable...
分类:
移动开发 时间:
2014-05-09 21:03:32
阅读次数:
424
题目如下:
Parentheses Balance
You are given a string consisting of parentheses () and []. A string of this type is said to be correct:
(a)
if it is the empty string
(b)
if A and B are ...
分类:
其他好文 时间:
2014-05-09 20:57:46
阅读次数:
316
1、通过一个Data.java实例类,可以实现全局数据保存,这里就不多说了,学Java的都知道。
2、Android特有的Application,是应用的入口,运行贯穿整个app运行过程,可以在这个类中定义全局变量
public class baseApplication extends Application {
private float screenWidth;
pri...
分类:
移动开发 时间:
2014-05-09 20:50:24
阅读次数:
406
在程序中封装了一个List集合对象,然后需要把该集合中的实体插入到数据库中,由于项目使用了Spring+MyBatis的配置,所以打算使用MyBatis批量插入,由于之前没用过批量插入,在网上找了一些资料后最终实现了,把详细过程贴出来。实体类TrainRecord结构如下:public
class ...
分类:
其他好文 时间:
2014-05-09 20:40:42
阅读次数:
335
在接入第三方渠道SDK的时候,经常会看到其配置文件AndroidManifest.xml有类似如下的定义:[html]view
plaincopy笔者这里在Application级别和Activity级别都定义了一个meta-data,我们如何来取得这两个组件的值呢?如下:[java]view
pl...
分类:
移动开发 时间:
2014-05-09 20:07:37
阅读次数:
449