E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Recipes
ZooKeeper分布式锁和ZooKeeper集群的搭建
pom.xml文件如下UTF-8junitjunit3.8.1testorg.apache.curatorcurator-framework4.0.0org.apache.curatorcurator-
recipes
4.0.0org.apache
JustDoDT
·
2018-08-06 22:05
Spring
Recipes
之如何动态调整日志的级别
前一篇博文也介绍了如何打印sql语句,这个打印sql语句的开关一般用日志级别的方式可以配置的,所以动态调整日志的级别就变得有意义了,不仅仅sql日志可以开启,我们可以对所有日志的级别更改,便于线上找出问题所在。本博文参考了springboot的做法https://docs.spring.io/spring-boot/docs/2.0.3.RELEASE/reference/htmlsingle/#
A_Beaver
·
2018-08-05 12:06
Spring
Spring
Boot
Spring
Boot
实战
pyhton 下 使用getch(), 输入字符无需回车
原代码来自https://code.activestate.com/
recipes
/134892-getch-like-unbuffered-character-reading-from-stdin/同时支持
小米的蝉
·
2018-07-23 13:36
我认为有趣的原创程序
curator-
recipes
(几种节点/目录监听方式笔记)
curator-
recipes
几种节点(目录)监听方式:1.client.getData().usingWatch(newWatcher(){...}).forPath(path);一次性监听,只触发一次
t0mCl0nes
·
2018-07-18 15:58
Java
Recipes
l 好吃又简单的菠萝古老肉
时常会想起以前学校的食堂,每次下课,在那条小道上特别期待待会会遇到那个慈爱的打菜叔叔,见到他会拿着盘子专门递给他,开心的说叔叔我要这个,叔叔我要那个,冲我笑笑,下一秒舀的量比其他人都多,多到溢出来(虽然可能就多两块肉),但是学生时代的幸福感特别容易,特别满足,开心,一整天都精神满满。图片发自App毕业6年了,很久很久没有吃食堂的大锅饭了,没有吃我最喜欢的咕老肉和糖醋鱼了,5,6食堂是否依然在?食堂
玟萱的杂货铺
·
2018-07-11 16:09
OkHttpClient的使用方法
参考资料https://github.com/square/okhttp/wikihttps://github.com/square/okhttp/wiki/
Recipes
使用方法get//获取OkHttpClientprivatefinalOkHttpClientclient
lamp113
·
2018-03-22 14:49
java
okhttp
【Python】用原生的urllib2+httplib请求Https
python2.7.5https.pyimporturllib2,httplib,ssl,socketDEFAULT_HTTP_TIMEOUT=10#seconds#http://code.activestate.com/
recipes
Immok
·
2018-03-12 16:12
Python
分布式锁-zookeeper-SharedReentrantReadWriteLock基于InterProcessReadWriteLock(四)分布式重入读写共享锁
InterProcessReadWriteLock共享重入读写锁zk分布式锁基础依赖packagecom.miku.common.util.lock.zookeeper;importorg.apache.curator.framework.
recipes
.locks.InterProcessMutex
最后的miku殿下
·
2018-02-02 11:06
curator
apache
分布式锁
Core Image框架详细解析(九) —— 子类化CIFilter:自定义效果的配方 Subclassing CIFilter:
Recipes
for Custom Effects(一)
版本记录版本号时间V1.02018.01.28前言CoreImage是IOS5中新加入的一个框架,里面提供了强大高效的图像处理功能,用来对基于像素的图像进行操作与分析。还提供了很多强大的滤镜,可以实现你想要的效果,下面我们就一起解析一下这个框架。感兴趣的可以参考上面几篇。1.CoreImage框架详细解析(一)——基本概览2.CoreImage框架详细解析(二)——CoreImage滤波器参考3.
刀客传奇
·
2018-01-28 15:13
zookeeper如何实现分布式锁解决羊群效应
具体的代码实现可以在这里看到:https://svn.apache.org/repos/asf/zookeeper/trunk/src/
recipes
/lock/在之前的《ZooKeepe数据模型》一文中提到过
NashCyk
·
2018-01-23 14:08
zookeeper
使用Curator操作ZooKeeper
org.apache.curatorcurator-
recipes
2.12.0基本用法,创建CuratorFramework。start方法会尝试连接zookeeper。
Andy__Han
·
2018-01-12 14:08
Curator zookeeper 分布式锁实现
curator版本:org.apache.curatorcurator-
recipes
2.5.0代码实现privatebooleaninternalLock(longtime,TimeUnitunit)
不泪之城
·
2017-12-18 14:23
curator
zookeeper
Curator zookeeper 分布式锁实现
阅读更多curator版本:org.apache.curatorcurator-
recipes
2.5.0代码实现privatebooleaninternalLock(longtime,TimeUnitunit
abc08010051
·
2017-12-18 14:00
curator
zookeeper
分布式锁
Curator zookeeper 分布式锁实现
阅读更多curator版本:org.apache.curatorcurator-
recipes
2.5.0代码实现privatebooleaninternalLock(longtime,TimeUnitunit
abc08010051
·
2017-12-18 14:00
curator
zookeeper
分布式锁
Curator常用API练习
org.apache.curatorcurator-
recipes
2.11.1节点创建和监听器API使用:publicclassZKTest{privatestaticfinalStringZK_ADDRESS
Todd0517
·
2017-12-07 15:58
zookeeper
Curator常用API练习
org.apache.curatorcurator-
recipes
2.11.1节点创建和监听器API使用:publicclassZKTest{privatestaticfinalStringZK_ADDRESS
Todd0517
·
2017-12-07 15:58
zookeeper
angular好用的插件集合
首先介绍两个学习Angular的学习资源AngularJS-Learning还有
recipes
-with-angular-js-examples。
IT帮主
·
2017-10-10 18:13
angular
插件
Zookeeper实例Curator API-PathChildrenCache
importorg.apache.curator.framework.CuratorFramework;importorg.apache.curator.framework.CuratorFrameworkFactory;importorg.apache.curator.framework.
recipes
.cache.PathChildrenCache
Andy2019
·
2017-06-18 09:29
Zookeeper
Zookeeper实例Curator API-NodeCache使用实例
importorg.apache.curator.framework.CuratorFramework;importorg.apache.curator.framework.CuratorFrameworkFactory;importorg.apache.curator.framework.
recipes
.cache.NodeCache
Andy2019
·
2017-06-18 09:41
Zookeeper
OkHttp的简单使用
官方英文网站https://github.com/square/okhttp/wiki/
Recipes
中文社区http://www.cnblogs.com/ct2011/p/3997368.htmlAndroid
maodi321216
·
2017-06-11 21:00
3.OKHTTP讲义
官方英文网站https://github.com/square/okhttp/wiki/
Recipes
中文社区http://www.cnblogs.com/ct2011/p/3997368.htmlAndroid
梦想_永不止步
·
2017-05-11 21:37
python中 switch 语句的实现
文章内容参考http://code.activestate.com/
recipes
/410692/#coding:utf-8classswitch(object):def__init__(self,value
祉趣
·
2017-03-19 23:11
Python
讲真|在吃这件事上,我们广东人可能还真没输过
━━━━很久没写过
recipes
了,又到了我白切来给大家卖手艺的时候。
争气鸡
·
2017-03-10 00:00
使用dancing links算法求解数独
grenet/p/3145800.html以及http://www.cnblogs.com/grenet/p/3163550.html算法的实现来自https://github.com/chenshuo/
recipes
Yihulee
·
2017-02-22 19:03
Merlin doc 0.0.1
Indicesandtables开始必要软件/工具数据准备(基于神经网络的语音合成系统)输入语言特征输出声学特征
Recipes
结构深度前馈神经网络混合密度神经网络(深度)基于长短时记忆(LSTM)的递归神经网络
lujian1989
·
2017-02-20 10:11
语音合成
[译]ZOOKEEPER
RECIPES
-Leader Election
选主使用ZooKeeper选主的一个简单方法是,在创建znode时使用Sequence和Ephemeral标志。主要思想是,使用一个znode,比如"/election",每个客户端创建一个子节点"/election/guid-n_",并同时使用Sequence和Ephemeral标志。使用sequence标志后ZooKeeper会自动递增序列号。拥有最小编号的节点就是主节点。这还不是全部,同时还
resentment
·
2017-01-07 10:00
5.2 代码回滚:Reset、Checkout、Revert的选择
转自:https://github.com/geeeeeeeeek/git-
recipes
/wiki/5.2-%E4%BB%A3%E7%A0%81%E5%9B%9E%E6%BB%9A%EF%BC%9AReset
IT老兵驿站
·
2016-12-29 14:10
Git
A Day
Recipes
: 一个人的小资早午餐,让周末变得更可爱
独自一人搬出来住,你有没有像当初答应家人的那样好好吃早餐呢?对比起自己在家做早餐,很多人更宁愿多睡一会然后出门随便买点什么来填肚子或者直接不吃。如果你正是其中一员,那么不妨趁週末来改变一下你的生活吧,睡饱起来边听歌边为自己做一份精緻的早午餐,即使是枯燥的生活也会变得可爱起来。今天将分享5天份的早午餐,以及可以做成热带果味健康汽水的热情果蜜做法,希望这些食物可以为你带来一整天的好心情。Day1炸鸡汉
格调
·
2016-12-29 00:00
ZooKeeper客户端Curator(监听篇)
maven依赖org.apache.curatorcurator-
recipes
2.8.0PathCachePathCache用来监控一个ZNode的子节点.当一个子节点增加,更新,删除时,PathCache
jiesa
·
2016-12-19 16:54
Zookeeper
java
Curator教程(一)快速入门
它包含以下几个组件:ComponentdescriptionRecipesImplementationsofsomeofthecommonZooKeeper“
recipes
”.Theimplementationsarebu
Ricky_Fung
·
2016-12-09 11:20
Zookeeper
Curator Zookeeper分布式锁
CuratorZookeeper分布式锁pom.xml中添加如下配置 org.apache.curator curator-
recipes
2.10.0 zookeeper配置下载zookeeper并解压至
秋楓
·
2016-11-29 08:00
代码回滚:Reset、Checkout、Revert的选择
https://github.com/geeeeeeeeek/git-
recipes
/wiki/5.2-%E4%BB%A3%E7%A0%81%E5%9B%9E%E6%BB%9A%EF%BC%9AReset
ACLewis
·
2016-11-16 17:23
Git
zookeeper curator获取唯一序列
importjava.util.concurrent.TimeUnit;importorg.apache.curator.framework.CuratorFramework;importorg.apache.curator.framework.
recipes
.locks.InterProcessMutex
流云风
·
2016-08-24 17:16
OkHttp 官方中文文档
OkHttpWikiOkHttp官方中文文档一Calls1请求2响应3重写请求4重写响应5后续请求6请求重试7呼叫8调度二Connections1URLsURLs摘要2Addresses3Routes4Connections三
Recipes
1
jackingzheng
·
2016-06-28 21:00
文档
维基
如何在Github上为开源贡献力量?
这里有各种技术集的项目,比如:
recipes
、HTML/CSS、Ruby、Astrophysics和其他许多项目。这份指南会涵盖在一个典型项目中的各个方面,同时指导如何参与贡献。
GISEarth
·
2016-06-28 14:40
github
如何在Github上为开源贡献力量?
这里有各种技术集的项目,比如:
recipes
、 HTML/CSS、Ruby、Astrophysics和其他许多项目。这份指南会涵盖在一个典型项目中的各个方面,同时指导如何参与贡献。
happyduoduo1
·
2016-06-28 14:00
github
开源
技术
开源项目
Apache Curator Lock 简单示例
版本依赖: org.apache.curator curator-
recipes
2.10.0 示例代码如下:packagecom.zk.lock; importjava.util.Random; importjava.util.concurrent.TimeUnit
mn960mn
·
2016-05-26 15:00
zookeeper
curator
Apache Curator Leader选举 简单示例
版本依赖: org.apache.curator curator-
recipes
2.10.0 示例一:packagecom.zk.leader; importjava.util.ArrayList;
mn960mn
·
2016-05-26 14:00
zookeeper
curator
KMP模式匹配算法程序(Python,C++,C)
Knuth-Morris-Prattstringmatching #DavidEppstein,UCIrvine,1Mar2002 #fromhttp://code.activestate.com/
recipes
tigerisland45
·
2016-05-18 09:00
C++
c
python
String
KMP
Google机器学习教程心得(二)决策树与可视化
VisualizingaDecisionTreeGoogleMachineLearningRecipes2官方中文博客http://chinagdg.org/2016/03/machine-learning-
recipes
-for-new-developers
u011453773
·
2016-05-14 16:00
机器学习
决策树
谷歌
可视化
Iris
Google机器学习教程心得(三) 好的feature
什么造就好的FeatureGoogleMachineLearningRecipes3官方中文博客http://chinagdg.org/2016/03/machine-learning-
recipes
-for-new-developers
u011453773
·
2016-05-03 20:00
python
机器学习
谷歌
柱状图
分类器
Google机器学习教程心得(一)
HelloworldGoogleMachineLearningRecipes1官方中文博客http://chinagdg.org/2016/03/machine-learning-
recipes
-for-new-developers
u011453773
·
2016-05-01 13:00
python
机器学习
谷歌
scikit
分类器
All firmware and drivers for HP ESX servers
http://vibsdepot.hpe.com/hpq/
recipes
/Jan2016VMwareRecipeSPP201510_19.4.pdf
520feng2007
·
2016-04-14 16:21
Drivers
firmware
基于Zookeeper的开源客户端Curator的事件监听实现
Curator中采用cache来封装了对事件的监听,在包org.apache.curator.framework.
recipes
.cache封装了3种类型的事件监听。
农村外出务工男JAVA
·
2016-04-03 08:00
zookeeper
事件监听
-
curator
python 实现线程池
http://www.the5fire.com/python-thread-pool.htmlhttp://code.activestate.com/
recipes
/577187-python-thread-pool
hotea
·
2016-03-29 18:00
《Clojure
Recipes
》书评与问答
AddisonWesley最近出版了一本由JulianGamble撰写的新书《ClojureRecipes》,本书旨在帮助开发者深入理解Clojure,在初步了解语言的特性及语法的基础上构建更复杂的项目,与外部库进行集成。因此,《ClojureRecipes》所面向的读者并非Clojure的初学者,它并没有提供对该语言本身的任何介绍。尽管如此,书中的代码都加入了详尽的注释,让缺乏经验的读者也能够顺
Sergio De Simone
·
2016-03-24 00:00
iOS开发的经典博客和文章汇总
官方文档苹果官方demo https://developer.apple.com/library/ios/
recipes
/xcode_help-IB_auto_layout/chapters/UnderstandingAutolayout.html
ANDY_GUO_wei
·
2016-03-21 17:00
Apache Curator快速入门
一:引入maven依赖 org.apache.curator curator-framework 2.9.1 org.apache.curator curator-
recipes
2.9.1 二:示例代码
mn960mn
·
2016-02-23 16:00
zookeeper
curator
Okhttp-wiki 之
Recipes
秘诀(食谱)
We'vewrittensomerecipesthatdemonstratehowtosolvecommonproblemswithOkHttp.Readthroughthemtolearnabouthoweverythingworkstogether.Cut-and-pastetheseexamplesfreely;that'swhatthey'refor.我们写了一些秘诀来演示OkHttp如何
汉之风云
·
2016-02-18 18:54
Curator框架
Curator简介Curator是一个博物馆或者其它集合的监管者或者管理者,Curator有以下几个组件组成:
Recipes
:实现了通用ZooKeeper的
recipes
,该组件是在Framework
John00000001
·
2016-02-12 23:48
Java
Core
Zookeeper
上一页
3
4
5
6
7
8
9
10
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他