DG有下面三种模式– Maximum protection– Maximum
availability– Maximum performance 在Maximum protection下, 可以保证从库和主库数据完全一样,做到zero
data loss.事务同时在主从两边提交完成,才算事务完成。如...
分类:
数据库 时间:
2014-05-09 23:19:59
阅读次数:
554
设计器:代码:在Form_Load事件中添加
:statusStripMain.LayoutStyle=
ToolStripLayoutStyle.HorizontalStackWithOverflow;lbl单位.Alignment =
ToolStripItemAlignment.Right;l...
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
在Form域中Post大于100K的数据
当表单发送的数据量很大时,就会报错。查阅MSDN了解到,原因是微软对用Request.Form()可接收的最大数据有限制,IIS4中为80K字节,IIS5中为100K字节。
下面是微软提供的几个解决方法:
1、用Request.BinaryRead 代替 Request.Form方法 来解析表单数据;
2、使用文件上传方案,比如:Microso...
分类:
其他好文 时间:
2014-05-09 22:13:58
阅读次数:
348
全排列可以用深搜的方式求解。解答树如下:
可以运行的代码:
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
在接入第三方渠道SDK的时候,经常会看到其配置文件AndroidManifest.xml有类似如下的定义:[html]view
plaincopy笔者这里在Application级别和Activity级别都定义了一个meta-data,我们如何来取得这两个组件的值呢?如下:[java]view
pl...
分类:
移动开发 时间:
2014-05-09 20:07:37
阅读次数:
449