在足球比赛里,一个球员在一场比赛中进三个球,称之为帽子戏法(Hat-trick)。在分布式数据系统中,也有一个帽子原理(CAP Theorem),不过此帽子非彼帽子。CAP原理中,有三个要素: 一致性(Consistency) 可用性(Avai...
分类:
其他好文 时间:
2014-07-30 15:06:44
阅读次数:
224
一、颜色名 大多数的浏览器都支持颜色名集合。 仅仅有 16 种颜色名被 W3C 的 HTML4.0 标准所支持。它们是:aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, ....
分类:
Web程序 时间:
2014-07-30 00:54:22
阅读次数:
394
.class1{ color:Red}
.class2{ font-size:100px}
$(function () {
$("#btn1").click(function () { //当点击#btn1的时候给#div1添加一个class2的样式
$("#div1").addClas...
分类:
其他好文 时间:
2014-07-29 22:08:22
阅读次数:
247
Logging.c:/* Copyright (c) 2008-2012 Red Hat, Inc. This file is part of GlusterFS. This file is licensed to you under your choice of the GNU Lesse...
分类:
其他好文 时间:
2014-07-29 21:13:02
阅读次数:
382
Hat's Fibonacci
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7338 Accepted Submission(s): 2395
Problem Description
A Fibonacci se...
分类:
其他好文 时间:
2014-07-29 15:09:48
阅读次数:
216
一、Linux系统安装配置
1.安装系统时选Desktop
2.设置eth0网卡为静态IP,添加子网掩码,网关,DNS,并配置自动启动
3.修改/etc/hosts,添加主机名和对应IP
4.禁用firewall和selinux
chkconfig iptables off
vi /etc/selinux/config
SELINUX=disabled...
分类:
数据库 时间:
2014-07-29 14:18:48
阅读次数:
412
openNebula is the open-source industry standard for data center virtualization,offering a simple but feature-rich and flexible solution to build and m...
分类:
其他好文 时间:
2014-07-29 10:30:56
阅读次数:
286
/**
* 功能:文本查询程序
* 时间:2014年7月23日10:26:09
* 作者:cutter_point
*/
#include
#include
#include
#include
#include
#include
#include
using namespace std;
/*
Alice Emma has long flowing red hair.
Her Daddy s...
分类:
编程语言 时间:
2014-07-28 16:15:33
阅读次数:
387
我们已经讲过如何筛选出连个数组中不共有的元素,今天就来看看php如何筛选出两个数组中共有的元素,例如筛选$array1和$array2共有的元素。函数名:array_intersect();调用方式:array_intersect($array1,$array2);实例: "green", "red...
分类:
Web程序 时间:
2014-07-28 15:03:13
阅读次数:
265
题目:Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order r....
分类:
编程语言 时间:
2014-07-28 11:34:20
阅读次数:
297