- 博客(411)
- 资源 (18)
- 收藏
- 关注

原创 Redis Cluster - 外网访问redis集群 - create-cluster脚本
Versionredis 6.0.6Shell scriptcd /redis-6.0.6/utils/create-clustervi create-cluster#!/bin/bash# SettingsBIN_PATH="../../src/"#CLUSTER_HOST=127.0.0.1CLUSTER_HOST=YOUR_REMOTE_IPPORT=30000TIMEOUT=2000NODES=6REPLICAS=1#PROTECTED_MODE=yesPROTE
2020-10-09 14:26:37
825
1

原创 Internal Sorting: Natural Two-way Merge Sort: Sorting by Merging
Algorithm NAlgorithm N (Natural two-way merge sort). Records R1,…,RN are sorted using two areas of memory, each of which is capable of holding N records. For convenience, we shall say that the reco
2015-05-31 14:50:13
1227

原创 Internal Sorting: Straight Two-way Merge Sort: Sorting by Merging
Algorithm SAlgorithm S (Straight two-way merge sort). Records R1,… ,RN are sorted using two memory areas as in Algorithm N. S1. [Initialize.] Set s <– 0, p <– 1. (For the significance of variables
2015-05-31 14:46:37
1163

原创 Searching: Shar's Method
Comparison treeJava programIn this program, R1,…,RN were simplified to K1,…,KN./** * Created with IntelliJ IDEA. * User: 1O1O * Date: 12/11/13 * Time: 6:52 PM * :)~ * Shar's Method:Searching */
2015-05-31 13:26:37
568

原创 Searching: Balanced Tree Search And Insertion
Algorithm AAlgorithm A (Balanced tree search and insertion). Given a table of records that form a balanced binary tree as described above, this algorithm searches for a given argument K. If K is no
2015-05-31 12:53:49
639
原创 Java: Set String List 互转
Java: Set String List 互转1.Codeimport java.util.*;public class Main { public static void main(String[] args) { //List 转成 Set System.out.println("-------List 转成 Set--------");...
2019-06-11 08:34:47
9305
原创 Java: 返回树形结构数据
Java - 返回树形结构数据1.TreeNodeDto@Datapublic class TreeNodeDto { private Long id; private Long organizationId; private Long parentOrgId; private Integer level; private Integer ...
2019-06-11 07:49:16
2071
1
转载 Spring: jdbcTemplate获取刚插入记录的主键id
Spring jdbcTemplate获取刚插入记录的主键id1. JdbcTemplateJdbcTemplate jdbcTemplate1 = new JdbcTemplate(dataSource); final String sql = " INSERT INTO FUND_AGGREGATION_TEMP ( " + " ID, ORDER_...
2019-06-10 08:35:13
1180
原创 Problem: SpaceVim: Mac: 解决乱码
SpaceVim 解决乱码(Mac)1. Install fonthttps://github.com/ryanoasis/nerd-fonts$ brew tap caskroom/fonts$ brew cask install font-hack-nerd-font2. Config font in iTermProfiles --> Text --> N...
2019-06-10 08:22:01
712
原创 Sublime: sublime text 3200 activate code
sublime text 3200 activate codeActivate codeZYNGA INC.50 User LicenseEA7E-811825927BA117 84C9300F 4A0CCBC4 34A56B44985E4562 59F2B63B CCCFF92F 0E646B830FD6487D 1507AE29 9CC4F9F5 0A6F32E30343D8...
2019-06-10 08:09:47
602
原创 Zookeeper: connect to server
Connect to the zookeeper server1.Start serverλ cd C:\zookeeper-3.4.14\binλ zkServer.cmd2.Client connect to the serverλ cd C:\zookeeper-3.4.14\binλ zkCli.cmd -server 127.0.0.1:2181orλ cd C:...
2019-06-10 07:54:43
407
原创 Redis: Mac: install and config
Redis install and config in Mac1. Downloadhttps://redis.io/download redis-5.0.4.tar.gz2. Make~ tar xzf redis-5.0.4.tar.gz~ sudo mv redis-5.0.4 /usr/local~ cd /usr/local/redis-5.0.4~ make...
2019-06-10 07:41:08
388
原创 Git: Problem: github提交后没有记录Contributions且提交者名字没有链接无法点击
Git: Problem: github提交后没有记录Contributions且提交者名字没有链接无法点击Problem使用github时,发现提交的记录并没有统计在GitHub首页的Contributions Graph里(贡献图上没有绿块),而且提交列表里的名字也不能点击,没有链接。Solutiongit提交时填写的邮箱与github账号里的邮箱不一致导致,github是以邮箱关...
2019-03-04 08:22:37
601
原创 Skill: Win10: gvim 卸载 SpaceVim
Skill: Win10: gvim 卸载 SpaceVimDescriptionWin10 上的gvim 使用 install.cmd 安装SpaceVim, 没有官方的卸载工具。即使卸载重装 gvim,打开也还是 SpaceVim 的样式。Solution删除 在C盘用户目录下的两个文件夹,.SpaceVim 和 .SpaceVim.dgvim随即恢复正常!https://bl...
2019-03-04 08:11:12
2103
原创 Command: Maven: 执行jar包中指定main方法
Command: Maven: 执行jar包中指定main方法pom.xml中指定main方法1. pom.xml配置<build> <finalName>first-server</finalName> <plugins> <plugin> ...
2019-03-04 07:59:07
949
原创 Netty: Socket: 代码执行顺序问题
Netty: Socket: 代码执行顺序问题ClientFirstClient.javapackage com.me.socket.client;import com.me.dto.TransportObject;import io.netty.bootstrap.Bootstrap;import io.netty.buffer.Unpooled;import io.netty....
2019-03-01 12:41:49
401
原创 Netty: Socket: a demo
Netty: Socket: a demoDTOTransportObject.javapackage com.me.dto;import java.io.Serializable;import java.util.ArrayList;import java.util.List;public class TransportObject implements Serializab...
2019-02-28 09:07:49
290
原创 Win10: Skill: 自带功能-系统恢复
Win10: 自带功能-系统恢复三种方法进入系统恢复程序1)、“开始” --> “设置” --> “更新和安全” --> “恢复” --> “高级启动” --> “立即重新启动”2)、“开始” --> “电源” --> “重启”+Shift3)、“开始”(右键) --> “运行” --> "shutdown -r -o"htt...
2019-02-20 09:43:36
314
原创 Win10: Skill: 自带功能-系统备份
Win10: 自带功能-系统备份进入系统备份功能界面--> “开始” --> “设置” --> “更新和安全” --> “备份” --> “正在查找较旧的备份” --> “转到"备份和还原(Windows7)” --> “创建系统映像”https://www.cnblogs.com/configure/p/7778644.html...
2019-02-20 09:38:53
280
原创 MySQL: Skill: Excel数据导入到MySQL表中
MySQL: Excel数据导入到MySQL表中使用Navicat for MySQL 或者 Navicat premium 121. 目标表2. 源数据3. 点击数据库Tables4. 选择数据源格式为Excel5. 选择Excel数据源所在Sheet6. 输入Excel中数据源字段名所在行数和需导入数据起始行数注意: Excel中字段名 应与 MySQL表中字段名 ...
2019-02-20 09:16:56
345
原创 Win7: Skill: 手动升级到Win10
Win7: 手动升级到Win101. 进入官方网址http://www.microsoft.com/zh-cn/software-download/windows10?OCID=WIP_r_Win10_Body_AddPC2. 点击 立即下载工具3. 下载完成后以管理员身份运行4. 选择 立即升级这台电脑https://jingyan.baidu.com/article/1e5468...
2019-02-20 08:22:40
365
原创 Win10: Skill: 远程连接 mstsc
Win10: 远程连接 mstsc-> 快捷键 win+r-> 输入 mstsc-> 确定-> 输入目标机器信息-> 连接注意:目标主机需要开启允许远程连接
2019-02-20 08:11:42
409
原创 WebLogic: Skill: install & start & login
WebLogic: install & start & login1. installjava -jar D:\ChromeDownload\fmw_12.2.1.3.0_wls_Disk1_1of1\fmw_12.2.1.3.0_wls.jar2. startC:\Oracle\Middleware\Oracle_Home\user_projects\domains\b...
2019-02-19 14:41:39
330
原创 MySQL: Skill: 查看root的权限
MySQL: 查看root的权限mysql> show grants for root;+-------------------------------------------+| Grants for root@% |+-------------------------------------------+| GRANT ALL P...
2019-02-19 14:33:19
473
原创 MySQL: Skill: Add all privileges for user abc on database basic_data
MySQL: Add all privileges for user abc on database basic_dataSHOW GRANTS FOR abc;//resultsGRANT USAGE ON *.* TO 'abc'@'%' IDENTIFIED BY PASSWORD '*38E573FEE0457F38F79B14E4E5381EAA895B5FC1'GRANT SE...
2019-02-19 14:29:04
243
原创 MySQL: Problem: 远程连接2003-can't connect to MYSQL server on ''(10060)
ProblemMySQL: 远程连接2003-can’t connect to MYSQL server on ‘’(10060)Solution1. 远程服务器上没有打开3306端口 #/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT #/etc/rc.d/init.d/iptables save # service ipt...
2019-02-19 12:46:30
620
原创 Ubuntu: Command: 设置root密码
Ubuntu设置root密码终端输入sudo passwd root,在[sudo] password for landry:后输入当前用户的密码当前用户密码验证通过后输入需要设置的root超级管理员账户密码Enter new UNIX password:验证输入的密码Retype new UNIX password:出现passwd: password updated succe...
2019-02-19 09:08:53
315
原创 Win10: Skill: 把D盘合并到C盘
Win10: 把D盘合并到C盘D盘:-> 格式化-> 删除卷-> 删除分区C盘:-> 扩展卷https://jingyan.baidu.com/article/3a2f7c2ed646ea26aed6116f.html
2019-02-19 09:01:57
4070
原创 Command: MINGW & Cygwin go to f disk
Command: MINGW & Cygwin go to f disk1. MINGW64: go to F disk// on d diskAdministrator@PC201809191156 MINGW64 /d$ cd f:// changed d disk to f diskAdministrator@PC201809191156 MINGW64 /f$...
2019-02-19 08:49:12
240
原创 MySQL: Problem: [Err] 1153 - Got a packet bigger than 'max_allowed_packet' bytes [Err] /*
ProblemMySQL: [Err] 1153 - Got a packet bigger than ‘max_allowed_packet’ bytes [Err] /*Solutionmysql> show VARIABLES like '%max_allowed_packet%';+--------------------------+------------+| Va...
2019-02-19 08:42:02
1018
原创 notepad++: Problem: 打开大文件后卡死 并且 关闭后重新打开也一直卡死
Problemnotepad++: 打开大文件后卡死 并且 关闭后重新打开也一直卡死Solution-> settings -> preferences-> backup-> backup path eg: C:\Users\Administrator\AppData\Roaming\Notepad++\backup\-> goto backup pa...
2019-02-19 08:13:53
7264
2
原创 Swagger: Swagger2 configurations in Spring Boot
Swagger2 configurations1. pom.xml&amp;lt;!--swagger-ui--&amp;gt;&amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;io.springfox&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&
2019-02-19 08:02:43
222
原创 gitignore: Problem: gitignore不起作用
Problemgitignore 不起作用Solutiongit rm -r --cached .git add .[seems command below can be omitted, just use above two commands]git commit -m 'update .gitignore'https://www.cnblogs.com/sloong/p/...
2019-02-18 13:38:19
227
原创 MyBatis: Generator configurations in Spring Boot
MyBatis generator configurations1. pom.xml&amp;lt;build&amp;gt; &amp;lt;finalName&amp;gt;abc&amp;lt;/finalName&amp;gt; &amp;lt;plugins&amp;gt; &amp;lt;plu
2019-02-18 13:19:35
210
原创 Git: Skill: 修改commit的注释
Git 修改commit的注释注释写错了,但是已经commit,此情况下修改注释# git commit --amend
2019-02-18 13:08:26
247
原创 MyBatis: Skill: 获取数据库自增id
MyBatis 获取数据库自增idWay 1insert标签中加上useGeneratedKeys=“true” keyProperty=“id”会将id组装到返回对象中而不是作为返回值<insert id="insertSelective" parameterType="com.lcworld.jiunixing.model.User" useGeneratedKeys="tr...
2019-02-18 12:56:25
340
原创 Java: Skill: List sort
Java List sortArrayArrays.sortListjava.util.Collections.sort(java.util.List)java.util.Collections.sort(java.util.List, java.util.Comparator)Examples for List sort1. Implements Comparable ...
2019-02-18 12:46:03
488
各种区块链白皮书合集(14种)
2018-08-01
get-pip.py
2015-05-13
算法导论中文版.pdf
2015-02-25
算法导论 英文版 第二版 pdf
2015-02-25
算法导论 第三版英文版 有索引.pdf
2015-02-25
Algorithms 4th Edition
2015-02-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人