SQL及索引优化如何发现有问题的SQL?使用MySQL慢查日志对有效率问题的SQL进行监控show variables like 'slow_query_log'set global slow_query_log_file=‘/home/mysql/sql_log/mysql-slow.log'se ...
分类:
数据库 时间:
2019-06-27 23:07:23
阅读次数:
242
Sort a linked list in *O*(*n* log *n*) time using constant space complexity. ...
分类:
编程语言 时间:
2019-06-25 00:28:46
阅读次数:
96
key point: 字符串都是不可改变的 打印: >>> values('world', 'hot')>>> format'hello, %s. %s enough for ya'>>> print(format % values)hello, world. hot enough for ya > ...
分类:
编程语言 时间:
2019-06-24 17:06:05
阅读次数:
125
Linux-lsof 1. lsof简介2. 输出列2.1 FD 文件描述符2.2 Type 文件类型3. 常用选项4. 示例4.1 manpage-Examples5. 特别用法5.1 恢复删除的文件5.2 杀死某个特定用户的所有活动5.3 找回被删除文件占用的空间 1. lsof简介 lsof( ...
分类:
系统相关 时间:
2019-06-22 21:20:43
阅读次数:
177
慢查询开启状态 show VARIABLES LIKE 'slow_query_log%'; 设置开启慢查询 SET GLOBAL slow_query_log = 'ON'; 查看慢查询的文件路径 SHOW VARIABLES like 'slow_query_log_file'; 设置慢查询时长 ...
分类:
其他好文 时间:
2019-06-22 11:03:57
阅读次数:
85
https://github.com/keras-team/keras/issues/2603 出现的原因是一开始berbose=1(默认),在一个epoch中训练一个batch就会打印进度条和结果,但是打印到控制台所需时间比训练模型时间更长,所以有了警告。 将verbose=0,使得一点训练过程信 ...
分类:
其他好文 时间:
2019-06-21 12:29:45
阅读次数:
247
How to read a paper efficiently Structure of a Journal a Journal Article 1. Title 2. Keywords 3. Abstract 4. Introduction 5. Experimental 6. Results a ...
分类:
其他好文 时间:
2019-06-18 10:30:51
阅读次数:
117
When you are using a car, you will inevitably use a car air pump to pump the tires or check the tire pressure and other key issues. So what should you ...
分类:
其他好文 时间:
2019-06-17 14:09:03
阅读次数:
127
zabbix官方文档:https://www.zabbix.com/documentation/4.0/zh/manual zabbix-server端的配置文件在/etc/zabbix/zabbix_server.conf # ListenPort=10051 #< 默认侦听的端口及端口取值范围, ...
分类:
其他好文 时间:
2019-06-12 19:41:27
阅读次数:
161
难度: 中等 leetcode地址: https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ 分析: 1. 这题解题思路也不难,两个指针fast, slow,fast先走n步,然后两个一起走,fast走到 ...
分类:
其他好文 时间:
2019-05-26 17:43:10
阅读次数:
89