一.简述 通过TICK(Telegraf+Influxdb+Chronograf+Kapacitor)进行主机性能监控告警,职责描述如下: Telegraf的职能是数据采集,用于主机性能数据,包括主机CPU、内存、IO、进程状态、服务状态等 Influxdb的职能是时序数据库,用于存储Telegra ...
分类:
数据库 时间:
2020-07-13 15:22:57
阅读次数:
138
1、说一下vue中所有带$的方法 <div id="example"> <p ref="myp">{{msg}}</p> <div ref="warp"> <div v-for="a in arr" ref="mydiv">a</div> </div> </div> let vm = new Vue ...
分类:
其他好文 时间:
2020-07-13 13:19:31
阅读次数:
65
再写一个关于线程安全的,很多人都喜欢讨论多线程怎么使用,什么AQS、CAS、对象监视。但是如果线程安全的基本定义没有完全搞清楚的话,多线程用起来还是有点儿可怕的。 什么是线程安全 官方一点儿的说法,多个线程要同时修改一个变量时,要保证一个变量的原子性、可见性、有序性。其实说白了就是,多个线程修改,你 ...
分类:
编程语言 时间:
2020-07-12 20:50:57
阅读次数:
62
本节目录 常用函数一:词频统计 常用函数二:word2vec 常用函数三:doc2vec 常用函数四:LDA主题分析 常用函数一:词频统计 # -*- coding: utf-8 -*- """ Datetime: 2020/06/25 Author: Zhang Yafei Description ...
分类:
编程语言 时间:
2020-07-05 22:59:55
阅读次数:
75
在蓝图中有一个区分服务器和客户端的宏:SwitchHasAuthority 宏里判断了Server和Client FORCEINLINE_DEBUGGABLE bool AActor::HasAuthority()const { return (Role == ROLE_Authority); // ...
分类:
其他好文 时间:
2020-07-03 19:07:40
阅读次数:
57
echarts里有个属性是axisLabel,当其为1时会隔行显示,设为0时会强制显示所有.示例: xAxis: { data: [1,2], axisLine: { lineStyle: { color: '#8E8E93' } }, axisLabel: { color: '#000000', ...
分类:
其他好文 时间:
2020-07-02 18:27:25
阅读次数:
184
We can do anything we want to do if we stick to it long enough.只要锲而不舍,我们便能做自己想做的任何事情。 大学物理 —— 磁场中的磁介质 花了几天搞了些事情,祝我一切顺利。 目录 1. 磁介质对磁场的影响2. 原子的磁矩3. 磁介质的 ...
分类:
其他好文 时间:
2020-06-30 22:45:44
阅读次数:
90
Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tick ...
分类:
其他好文 时间:
2020-06-30 09:15:20
阅读次数:
87
在图像深度学习任务中,对于小数据集,可以通过Image Data Augmentation图像增强技术来扩充数据。比如Keras的ImageDataGenerator。 ImageDataGenerator的使用: tf.keras.preprocessing.image.ImageDataGene ...
分类:
其他好文 时间:
2020-06-27 20:19:25
阅读次数:
63
1. Run a few randomly-generated problemswith just two jobs and two queues; compute the MLFQ execution trace for each. Make your life easier by limitin ...
分类:
其他好文 时间:
2020-06-26 16:17:45
阅读次数:
78