pt

hue 4.4 webUI设置中文界面

不羁的心 提交于 2019-12-06 03:20:48
修改LANGUAGE_CODE /home/hue/hue-release-4.4.0/desktop/core/src/desktop/settings.py LANGUAGE_CODE = 'zh_CN' LANGUAGES = [ ('de', ('German')), ('en-us', ('English')), ('es', ('Spanish')), ('fr', ('French')), ('ja', ('Japanese')), ('ko', ('Korean')), ('pt', ('Portuguese')), ('pt_BR', ('Brazilian Portuguese')), ('zh_CN', ('Simplified Chinese')), ]    zh_CN 一定要下划线 然后重新 make apps 来源: https://www.cnblogs.com/zuferj115/p/11960092.html

percona-toolkit之pt-index-usage和pt-duplicate-key-checker详解

情到浓时终转凉″ 提交于 2019-12-05 13:54:54
1> pt-index-usage:从慢查询日志中读取查询并分析它们如何使用索引。 (用来查找不常使用索引) ./pt-index-usage --help 打印报告 ./pt-index-usage /mysqldata/mysqlslowlog/slowquery.log -h192.168.226.131 -uroot -p6yhn^YHN -decology [mysql@mysql bin]$ ./pt-index-usage /mysqldata/mysqlslowlog/slowquery.log -h192.168.226.131 -uroot -p6yhn^YHN DBD::mysql::db selectall_arrayref failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/' at line 1 [for Statement "EXPLAIN SELECT IFNULL(SUM(INDEX_LENGTH),0) from information_schema.TABLES where ENGINE='InnoDB' */"

percona-toolkit之pt-query-digest详解

房东的猫 提交于 2019-12-05 03:49:19
一、简介 pt-query-digest是用于分析mysql慢查询的一个工具,它可以分析binlog、General log、slowlog,也可以通过SHOWPROCESSLIST或者通过tcpdump抓取的MySQL协议数据来进行分析。可以把分析结果输出到文件中,分析过程是先对查询语句的条件进行参数化,然后对参数化以后的查询进行分组统计,统计出各查询的执行时间、次数、占比等,可以借助分析结果找出问题进行优化。 二、安装pt-query-digest 1.下载页面:https://www.percona.com/doc/percona-toolkit/2.2/installation.html 2.perl的模块 源码安装 cd /mysql wget percona.com/get/percona-toolkit.tar.gz tar zxf percona-toolkit.tar.gz cd percona-toolkit-3.1.0 make && make install 工具安装目录在:/mysql/percona-toolkit/bin 4.各工具用法简介(详细内容:https://www.percona.com/doc/percona-toolkit/2.2/index.html) (1)慢查询日志分析统计 cd /mysql/percona-toolkit/bin

Linux环境pt-query-digest安装

微笑、不失礼 提交于 2019-12-03 20:52:15
1.下载安装工具 wget percona.com/get/pt-query-digest 2.授予用户执行权限 chmod u+x pt-query-digest 3.移动位置,注意pt-query-digest安装位置不一定在/目录下,也可能在/root/目录下,根据实际情况调整 mv /pt-query-digest /usr/bin/ 或 mv /root/pt-query-digest /usr/bin/ 4.安装与Perl相关的模块 yum install perl-DBI yum install perl-Digest-MD5 来源: https://www.cnblogs.com/1394htw/p/11808516.html

opencv利用svm训练

情到浓时终转凉″ 提交于 2019-12-03 17:07:15
#根据身高体重训练 预测男生还是女生#1数据制作rand1 = np.array([[155,48],[159,50],[164,53],[168,56],[172,60]])rand2 = np.array([[152,53],[156,55],[160,56],[172,64],[176,65]])label = np.array([[0],[0],[0],[0],[0],[1],[1],[1],[1],[1]])data = np.vstack((rand1,rand2))data = np.array(data,dtype = 'float32')print(data)#2训练svm = cv2.ml.SVM_create()#ml 机器学习模块#属性设置svm.setType(cv2.ml.SVM_C_SVC)svm.setKernel(cv2.ml.SVM_LINEAR)svm.setC(0.01)#训练result = svm.train(data,cv2.ml.ROW_SAMPLE,label)#预测pt_data = np.vstack([[167,55],[162,57]])pt_data = np.array(pt_data,dtype = 'float32')print(pt_data)(par1,par2) = svm.predict(pt_data

静态创建二叉树及其遍历

对着背影说爱祢 提交于 2019-12-03 10:07:52
我们以这个二叉树为例 1.构造二叉树的链式存储结构 1 struct BTNode{ 2 char data; //结点数据域 3 struct BTNode * pLchild; //左孩子指针-->指向左孩子 4 struct BTNode * pRchild; //右孩子指针-->指向右孩子 5 }; View Code 2.静态的创建二叉树 struct BTNode * createBTree() { struct BTNode* pa = (struct BTNode*)malloc(sizeof(struct BTNode)); struct BTNode* pb = (struct BTNode*)malloc(sizeof(struct BTNode)); struct BTNode* pc = (struct BTNode*)malloc(sizeof(struct BTNode)); struct BTNode* pd = (struct BTNode*)malloc(sizeof(struct BTNode)); struct BTNode* pe = (struct BTNode*)malloc(sizeof(struct BTNode)); pa->data = 'A'; pb->data = 'B'; pc->data = 'C'; pd->data

Pointtype command for gnuplot

会有一股神秘感。 提交于 2019-12-03 04:51:56
I'm having trouble using the pointtype command on gnuplot. I've tried several ways such as: set pt 5 set pointtype 5 plot " " w pt 5 plot " " w pointtype 5 And for some reason nothing seems to work. I tried using the "help" feature, and apparently my version of gnuplot doesn't have "pt" or "pointtype" as an option. Is this perhaps listed as some other feature. I know the points are there, when I plot multiple sets of data, the point type automatically changes, but I have no personal control over choosing the point type. Any help would be greatly appreciated. You first have to tell Gnuplot to

Delaunay triangulation opencv c++

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I made a delaunay triangulation with openCv thanks to this code : example code (in partiluclar draw_subdiv). However, when I want to display the triangulation, I get the mesh and lines who don't belong to triangulation.This lines are due to the fact that the triangulation algorithm starts its job considering triangles posted at "infinity". Can you explain me how to draw only the mesh into the convex hull please (without this lines) ? display function : void draw_subdiv(Mat &img, Subdiv2D& subdiv, Scalar delaunay_color) { vector<Vec6f>

overleaf 编译中遇到的错误及解决方法

匿名 (未验证) 提交于 2019-12-03 00:34:01
错误1:错误代号如下: ! Illegal unit of measure (pt inserted). <to be read again> \kern l.94 \end{document} ? 解决方法:找到.sty文件,从中找到: \put(\LenToUnit{\textwidth\kern3pt} 将其改为: \put(\LenToUnit{\textwidth},\LenToUnit{-\bmv@ruleroffset}){%right ruler 也就是说,将原来\kern有关的pt都删除掉。 原因未知,亲测可用。 文章来源: overleaf 编译中遇到的错误及解决方法

ubuntu18.04下安装PacketTracer7

匿名 (未验证) 提交于 2019-12-03 00:22:01
前段时间换了ubuntu单系统,网络工程实验课需要CPT模拟器。- -现在某度上的解决方案比较老陈旧。至少我没法用,依赖已经过期。科技上网我总结了自己的解决方案。 首先下载packetTracer,可以从cisco官网上找,需要注册一下cisco academy,然后才能下载模拟器。 下载好了之后,新建一个文件夹,解压。在解压得到的文件夹中运行install ./install 一路Y下去,安装完成。使用 /opt/pt/bin/./PacketTracer7 打开,发现提示你有个依赖没装 /opt/pt/bin/./PacketTracer7: error while loading shared libraries: libQt5Script.so.5: cannot open shared object file: No such file or directory 不过libqt5script.so.5这个依赖提示实际上是一个mislead。不信的话你可以sudo apt install libqt5scripttools5(这是网上一个同学的解决方法)发现安装好了这个之后还是会报同样的错误。 解决方法是: LD_LIBRARY_PATH=/opt/pt/lib /opt/pt/bin/./PacketTracer7 steven@steven-Lenovo-Y50-70: