上一页 1 2 3 4 5 6 7 8 ··· 70 下一页
摘要: 1. 准备慢日志的csv文件 import pandas as pd import matplotlib.pyplot as plt # 选取耗时大于7000的日志 # awk -F '耗时:' '{if (int(substr($2,0,length($2)-2)) >7000) print $0 阅读全文
posted @ 2022-11-10 00:14 littlevigra 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 当一个数据库表过于庞大,LIMIT offset, length中的offset值过大,则SQL查询语句会非常缓慢,你需增加order by,并且order by字段需要建立索引。 16、使用limit offset 分页时,为什么越往后翻越慢?如何解决? - 追风的小蚂蚁 - 博客园 (cnblo 阅读全文
posted @ 2022-10-26 18:41 littlevigra 阅读(48) 评论(0) 推荐(0) 编辑
摘要: violates the following Content Security Policy directive: "default-src 'self'". Nginx 解决内容安全策略CSP(Content-Security-Policy)配置方式(漏洞修复) - 龙凌云端 - 博客园 (cnb 阅读全文
posted @ 2022-10-19 22:42 littlevigra 阅读(378) 评论(0) 推荐(1) 编辑
摘要: [root@iZwz9ayhnug196k9jk1iukZ yunwei]# cat /etc/pam.d/system-auth #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next t 阅读全文
posted @ 2022-10-09 17:09 littlevigra 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 2.1 在绘图代码中设置全局字体 from pylab import mpl # 设置显示中文字体 mpl.rcParams["font.sans-serif"] = ["SimHei"] 使用matplotlib绘图中文字符显示问题:UserWarning: missing from curren 阅读全文
posted @ 2022-09-25 23:33 littlevigra 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 1. jar包解包和封包 jar -xf dynamic-bizengine-service-1.0.0.jar rm -rf BOOT-INF/lib/fastjson-1.2.47.jar cp fastjson-1.2.83.jar BOOT-INF/lib/ jar -cf0M dynami 阅读全文
posted @ 2022-09-24 18:43 littlevigra 阅读(255) 评论(0) 推荐(0) 编辑
摘要: proxy_http_version 1.1; proxy_set_header Connection ""; Allows proxying requests with NTLM Authentication. The upstream connection is bound to the cli 阅读全文
posted @ 2022-09-21 22:51 littlevigra 阅读(603) 评论(4) 推荐(0) 编辑
摘要: 1.报表模板 #cat xunjian_table.html [root@yinliao-yanshi report_jinja2]# cat xunjian_table.html <html> <head> <meta http-equiv="Content-Type" content="text 阅读全文
posted @ 2022-09-18 00:46 littlevigra 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1. 读取excel文件。由列变成行。每个item是一个字典 import pandas as pd from jinja2 import Environment, FileSystemLoader df = pd.read_excel('回测指标汇总.xlsx') df['消耗本金'] = df[ 阅读全文
posted @ 2022-09-17 19:11 littlevigra 阅读(477) 评论(1) 推荐(0) 编辑
摘要: /sbin/sysctl -w vm.dirty_ratio=10 /sbin/sysctl -w vm.dirty_background_ratio=5 sysctl -p (16条消息) linux 出错 “INFO: task xxxxxx: 634 blocked for more than 阅读全文
posted @ 2022-09-13 10:59 littlevigra 阅读(431) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 70 下一页