HighAvailabilityToolkit 1.0
高可用技术HA 工具包由若干种业界主流的高可用方案构成。目的是为实现high availability 架构提供简洁易用的方案。目前1.0提供了 zookeeper高可用性HA的技术实现。...
分类:
其他好文 时间:
2014-10-13 02:38:28
阅读次数:
176
1. 例子引入:如上篇的play or not 例子。未知分类的样本:D:, 是 or 否?我们要判断该样本的分类,即比较该样本属于是的概率大还是否的概率大 P(是/否|A=sunny, B=cool, C=high ,D=strong)P(是|A=sunny, B=cool, C=high ,D=...
分类:
编程语言 时间:
2014-10-12 22:01:08
阅读次数:
488
如果一个系统包含高精度性能计数器(HRPC,high-resolution performance counter)则此系统提供高精度定时器。你可以使用API函数QueryPerformanceFrequency来获得HRPC的频率HRPCF,返回值为cps(counts per second)。这...
分类:
其他好文 时间:
2014-10-12 20:57:08
阅读次数:
236
2014-10-04 BaoXinjian一、摘要高水位线好比水库中储水的水位线,用于描述数据库中段的扩展方式。高水位线对全表扫描方式有着至关重要的影响。当使用delete 操作表记录时,高水位线并不会下降,随之导致的是全表扫描的实际开销并没有任何减少。本文给出高水位线的描述,如何降低高水位线,以及...
分类:
数据库 时间:
2014-10-11 21:46:17
阅读次数:
252
/*
?*????The?DEVICE?structure.
?*????Actually,?this?whole?structure?is?a?big?mistake.??It?mixes?I/O
?*????data?with?strictly?"high-level"?data,?and?it?has?to?k...
分类:
Web程序 时间:
2014-10-10 21:23:35
阅读次数:
317
xfsprogs 高性能的文件系统;swift-init all restart
分类:
其他好文 时间:
2014-10-10 19:36:14
阅读次数:
158
归并排序是基于分治思想的排序,一递增排序为例:
首先将数组平分为两份,将左侧递增排序,右侧递增排序,
然后将两侧归并起来,使整体递增有序。
示例代码如下:
#include
#include
#define Elemtype int
Elemtype *B;
void merge(Elemtype A[],int low,int mid,int high)
{
for(int i=l...
分类:
其他好文 时间:
2014-10-10 13:33:47
阅读次数:
173
Problem DescriptionCorrupt governors always find ways to get dirty money. Paint something, then sell the worthless painting at a high price to someon....
分类:
其他好文 时间:
2014-10-09 22:48:08
阅读次数:
269
归并排序 与插入排序不同的是二个有序数组彼此的插入,而插入排序是一个数向有序里插入。
思想是吧一个数组分成若干个最小的有序数组,然后把这些小的有序数组,进行合并。
下面是代码:
public class MergeSort {
public int[] sort(int[] nums, int low, int high){
int mid = (low + high) /...
分类:
其他好文 时间:
2014-10-08 10:47:25
阅读次数:
199
Functional JavaScript
目录
1
Get Started with FP2
First-class Functions and Applicative Programming3
Variable Scope and Closures4
High-order Functions5
Function-Building Functions6
...
分类:
编程语言 时间:
2014-10-08 10:13:35
阅读次数:
266