In this problem, a tree is an undirected graph that is connected and has no cycles. The given input is a graph that started as a tree with N nodes (wi ...
分类:
其他好文 时间:
2020-06-27 09:35:14
阅读次数:
75
#user nobody;#开启进程数 <=cpu数worker_processes 1; #错误日志存放位置#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info; #进程号 ...
分类:
其他好文 时间:
2020-06-27 09:24:13
阅读次数:
50
1、避免深分页操作 es是一个搜索引擎,所以如果用这个搜索引擎对大量的数据进行搜索,并且返回搜索结果中排在最前面的少数结果,是非常合适的。 类似于后台下载功能,如果要做成类似数据库的东西,每次都进行大批量的查询,是很不合适的。如果真的要做大批量结果的查询,记得考虑用scroll api。 2、避免业 ...
分类:
其他好文 时间:
2020-06-26 20:34:36
阅读次数:
64
安装 npm install better-scroll --save 调用: //重要是这两个标红的class类名 <div class="wrapper recommend" ref="wrapper"> <div class="content recommendHeight"> <h2 cla ...
分类:
其他好文 时间:
2020-06-26 20:15:37
阅读次数:
64
package jkcs; import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium.remote.Desi ...
分类:
移动开发 时间:
2020-06-26 19:54:25
阅读次数:
76
Linux安装Redis 6.0.5 ./install_server.sh报错 linux 安装Redis6.0.5时 进行到./install_server.sh时报错, This systems seems to use systemd. Please take a look at the p ...
分类:
系统相关 时间:
2020-06-26 12:35:09
阅读次数:
904
1、SEE:https://elasticsearch.cn/article/32 2、倒排词典的索引需要常驻内存,无法 GC,需要监控 data node 上 segment memory 增长趋势。 3、各类缓存,field cache, filter cache, indexing cache ...
分类:
其他好文 时间:
2020-06-26 10:56:28
阅读次数:
70
文本超出隐藏显示省略号 1、单行文本的溢出显示省略号 overflow: hidden; text-overflow:ellipsis; white-space: nowrap; // overflow 属性规定当内容溢出元素框时发生的事情,可能值为visible(默认)、hidden、scroll ...
分类:
Web程序 时间:
2020-06-26 01:25:18
阅读次数:
107
技术概述 虚拟列表(VirtualList)是一种在展示大量数据(长列表)时使用的插件,通过只显示必要的DOM和无限滚动,提升页面的性能。在web环境中,我们可以使用vue-virtual-scroll-list之类的npm包。最近热门的小程序框架Taro3也提供了这个能力。从文档说明上看,其功能算 ...
分类:
其他好文 时间:
2020-06-25 23:12:02
阅读次数:
378
参考链接:https://blog.csdn.net/m15511023218/article/details/87920263 参考的主要代码: auto eth0iface eth0 inet staticaddress 192.168.3.90gateway 192.168.3.1netmas ...
分类:
其他好文 时间:
2020-06-25 23:04:52
阅读次数:
52