码迷,mamicode.com
首页 >  
搜索关键字:locate find    ( 25171个结果
源码分析 RocketMQ DLedger(多副本) 之日志追加流程
上一篇我们详细分析了源码分析RocketMQ多副本之Leader选主,本文将详细分析日志复制的实现。有了前篇源码分析RocketMQDLedger多副本存储实现,本文将直接从Leader处理客户端请求入口开始,其入口为:DLedgerServer的handleAppend方法开始讲起。1、日志复制基本流程在正式分析RocketMQDLedger多副本复制之前,我们首先来了解客户端发送日志的请求协议
分类:其他好文   时间:2020-12-07 12:45:37    阅读次数:11
iscroll实现h5锁定列和头,并且无限上划分页
js代码 var win = $(window), scrollAreaEl = $('.t_r_content'), leftFreezeEl = $('.t_l_freeze'), leftTableEl = leftFreezeEl.find('table'), rightTableEl = ...
分类:其他好文   时间:2020-12-07 12:42:32    阅读次数:7
centos7下使用mysql安装包安装mysql5.7
1、检查系统是否安装过mysql //检查系统中有无安装过mysql rpm -qa|grep mysql //查询所有mysql 对应的文件夹 whereis mysql find / -name mysql 2、卸载CentOS7系统自带mariadb # 查看系统自带的Mariadb [roo ...
分类:数据库   时间:2020-12-07 12:25:31    阅读次数:9
g++: error trying to exec 'cc1plus': execvp: No such file or directory
g++ --version gcc --version 没有版本号的话下载 有的话 执行 sudo find / -name "cc1plus" export PATH="/usr/libexec/gcc/x86_64-redhat-linux/4.8.2:$PATH" 加到环境变量 ...
分类:其他好文   时间:2020-12-05 10:53:48    阅读次数:9
base64转换
import os, base64,reli=os.listdir(r'C:\Users\lenovo\Desktop\allsvg')os.chdir(r'C:\Users\lenovo\Desktop\allsvg')print(li)for i in li: with open(i,mode= ...
分类:其他好文   时间:2020-12-04 11:38:25    阅读次数:7
11. 盛最多水的容器 Container With Most Water
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endp ...
分类:其他好文   时间:2020-12-04 11:23:41    阅读次数:6
【40讲系列14】并查集
一、理论 并查集的定义: 并查集是一种树型的数据结构,用于处理一些不交集的合并和查询问题。一般用数组实现。 Find:确定元素属于哪一个子集,它可以被用来确定两个元素是否属于同一个子集。 Union:将两个子集合并成同一个集合。 并查集的优化: 优化1: 降低rank,提高查询效率。合并时要考虑ra ...
分类:其他好文   时间:2020-12-04 11:19:39    阅读次数:6
python3 进程线程协程 并发查找列表
code import multiprocessing from multiprocessing import Pool,Queue import time import threading import gevent from gevent import monkey monkey.patch_a ...
分类:编程语言   时间:2020-12-04 10:52:40    阅读次数:6
机器人空间包络边界
function [T]=bianjie(a,b) x=a'; y=b'; j=1; ind_maxx=find(x==max(x)); ind_minx=find(x==min(x)); for i=unique(x) %获得x的不同值 if i==min(x) y1=y(ind_minx); % ...
分类:其他好文   时间:2020-12-03 12:18:59    阅读次数:5
selenium总结
1.获取当前页面的url方法:current_url 实例:driver.current_url 2.获取元素坐标方法:location解释:首先查找到你要获取元素的,然后调用location方法实例:driver.find_element_by_xpath("xpath").location 3. ...
分类:其他好文   时间:2020-12-03 12:10:18    阅读次数:7
25171条   上一页 1 ... 24 25 26 27 28 ... 2518 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!