Red Cluster! 摘自:http://blog.kiyanpro.com/2016/03/06/elasticsearch/reroute-unassigned-shards/ There are 3 cluster states: When cluster health is red, i ...
分类:
其他好文 时间:
2017-08-31 18:04:43
阅读次数:
605
During the Warring States Period of ancient China(476 BC to 221 BC), there were seven kingdoms in China they were Qi, Chu, Yan, Han, Zhao, Wei and Qin ...
分类:
其他好文 时间:
2017-08-25 21:39:05
阅读次数:
236
/** * A thread state. A thread can be in one of the following states: * * {@link #NEW} * A thread that has not yet started is in this state. * * {@lin... ...
分类:
编程语言 时间:
2017-08-22 19:09:05
阅读次数:
193
题目链接:http://www.spoj.com/problems/DCEPC11B/ 题目大意:求N!对P取余的结果。P是素数,并且abs(N-P)<=1000。 解题思路:wiki-费马小定理: Fermat's little theorem states that if p is a prim ...
分类:
其他好文 时间:
2017-08-20 14:56:22
阅读次数:
249
cat/etc/salt/master
file_roots:
base:
-/srv/salt/base
prod:
-/srv/salt/prod
interface:192.168.1.100
reactor:
-‘salt/auth‘:
-/srv/reactor/Minion.sls
-‘salt/minion/Minion/start‘:
-/srv/reactor/auto.slsauto.sls
run_state:
local.state.sls:
-tgt:{{data[‘id‘]}}
-..
分类:
其他好文 时间:
2017-08-18 09:41:57
阅读次数:
176
上篇文章,我提到了,Google APIs暴露了86种不同种类和版本号的API。我们能够通过在浏览器里面输入https://www.googleapis.com/discovery/v1/apis这个URL地址。其将会把所有Google API支持的不同种类和版本号的API所有列出来。其详细信息例如 ...
1.当一个对象内部的状态发生改变的时候会导致其行为发生改变 ...
分类:
编程语言 时间:
2017-08-16 09:58:17
阅读次数:
137
1、序列化是干什么的? 简单说就是为了保存在内存中的各种对象的状态(也就是实例变量,不是方法),并且可以把保存的对象状态再读出来。虽然你可以用你自己的各种各样的方法来保存object states,但是Java给你提供一种应该比你自己好的保存对象状态的机制,那就是序列化。2、什么情况下需要序列化 a ...
分类:
编程语言 时间:
2017-08-13 01:10:10
阅读次数:
142
http://blog.jrwang.me/2016/java-thread-states/ 发表于 2016-07-23 在 Java 多线程编程中,sleep(), interrupt(), wait(), notify() 等方法是非常基本也很常用的方法。这些方法会改变运行中的 Java 线程 ...
分类:
编程语言 时间:
2017-08-11 13:36:36
阅读次数:
223
控制人物动画播放 这里我重新弄了一个简单的场景和新的Animator Controller来作为示例。 下面先看看Animator Controller的配置: 人物在站立状态只能进入走路,走路只能进入奔跑或返回站立,奔跑只能进入跳跃或返回走路,跳跃则只能返回奔跑。 参数方面为两个参数: Float ...
分类:
编程语言 时间:
2017-08-11 12:13:02
阅读次数:
256