String[] wds = new String[] {"1280","1920","3840","666"}; String[] hgs = {"720","1080","2160","444"}; int index=(int)(Math.random()*wds.length); Strin Read More
posted @ 2020-04-22 10:18 Mosicol Views(1780) Comments(0) Diggs(0) Edit
目录 1. 规范背景与目的 2. 设计规范2.1 数据库设计 2.1.1 库名 2.1.2 表结构 2.1.3 列数据类型优化 2.1.4 索引设计 2.1.5 分库分表、分区表 2.1.6 字符集 2.1.7 程序DAO层设计建议 2.1.8 一个规范的建表语句示例 2.2 SQL编写 2.2.1 Read More
posted @ 2020-04-20 14:26 Mosicol Views(99) Comments(0) Diggs(0) Edit
from PIL import Image from wordcloud import WordCloud, ImageColorGenerator import matplotlib.pyplot as plt import numpy as np import jieba def GetWord Read More
posted @ 2020-04-03 17:40 Mosicol Views(171) Comments(0) Diggs(0) Edit
1.远程连接 ·先决条件:保证电脑和移动设备处于同一局域网 adb connect ip 2.远程传输文件 ·pull文件(adb pull 源文件 目标文件路径) 1 adb pull /data/local/haha3.pcap C:/document ·push文件(adb push 源文件 Read More
posted @ 2020-03-20 17:24 Mosicol Views(134) Comments(0) Diggs(0) Edit
先看整个jmeter脚本的目录 场景:request-2发起请求的参数来自request-1的返回值,需要拿到request-1的返回值拼装到request-2的请求域中 常用可以使用jmeter的正则获取,本人认为那种方式不直观也不好弄,最好是用编程解释json的方式 1.下载json的包,放入/ Read More
posted @ 2020-03-20 11:53 Mosicol Views(1301) Comments(0) Diggs(0) Edit
1.JVM构成 先看两张图,第一张是1.8版本之前的JVM,第二张图是JVM1.8版本 图一 图二 对比两张图可以发现:JDK1.8之后移除了堆内存中的永久代(Permanent),改为了存储在本地内存的元空间(MetaSpace) 为何要移除永久代 永久代启动时大小是固定的,不方便对其进行调优,增 Read More
posted @ 2020-03-18 10:08 Mosicol Views(479) Comments(0) Diggs(0) Edit
tuning-primer.sh是一个脚本,全英文解释,高亮提示风险 1.下载 wget https://launchpad.net/mysql-tuning-primer/trunk/1.6-r1/+download/tuning-primer.sh 2.运行 sh tuning-primer.s Read More
posted @ 2020-03-17 16:54 Mosicol Views(535) Comments(0) Diggs(0) Edit
1.使用top工具查看占用CPU资源最多的[进程],输入命令“top”,然后敲键盘“P”(大写) 2.拿到使用CUP最高的[进程ID] 11974,找出该[进程ID]下使用CPU最高的[线程ID],输入命令 top -Hp [进程ID] 3.将第二步得到的[线程ID]代入到命令中 printf "% Read More
posted @ 2020-03-16 16:14 Mosicol Views(144) Comments(0) Diggs(0) Edit
缓存穿透:查询数据库中根本不存在的数据 缓存击穿:数据库存在该数据,查询时Redis刚好过期,透过了缓存直接查询数据库 缓存雪崩:缓存在某一段时间集中过期失效 Read More
posted @ 2019-12-16 16:24 Mosicol Views(191) Comments(0) Diggs(0) Edit
人月神话-人月 Read More
posted @ 2019-12-09 23:58 Mosicol Views(218) Comments(0) Diggs(0) Edit