• 等级
  • 956503 访问
  • 399 原创
  • 4 转发
  • 1886 排名
  • 262 评论
  • 223 获赞

bootstrap-table 父子表 联动表 完整例子

前台页面<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Title</title><!--引入bootstrap样式--><linkhref="/db/table/boots...

2019-05-10 09:56:39

AccessDeniedException: /opt/elasticsearch-7.0.0/config/elasticsearch.keystore

[elastic@node2elasticsearch-7.0.0]$bin/elasticsearchOpenJDK64-BitServerVMwarning:OptionUseConcMarkSweepGCwasdeprecatedinversion9.0andwilllikelyberemovedinafuturerelease.Excepti...

2019-05-05 14:42:27

Elasticsearch 7.x生产配置

虽然Elasticsearch需要很少的配置,但是有一些设置需要手动配置,并且必须在进入生产之前进行配置。1、官方文档这些重要配置说明,请参考官方文档:https://www.elastic.co/guide/en/elasticsearch/reference/7.x/important-settings.html2、参数说明2.1path.data和path.logsIfyo...

2019-05-05 11:12:59

com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1146177 > 1048576).

2019-04-0617:06:25.628WARN1564---[nio-8080-exec-1]o.a.pdfbox.pdmodel.font.PDSimpleFont:NoUnicodemappingfornull(0)infontTitilliumMaps29L-400wtorg.springframework.dao.TransientData...

2019-04-06 22:24:17

.MysqlDataTruncation: Data truncation: Data too long for column 'content' at row 1

org.springframework.dao.DataIntegrityViolationException:###Errorupdatingdatabase.Cause:com.mysql.jdbc.MysqlDataTruncation:Datatruncation:Datatoolongforcolumn'content'atrow1###The...

2019-04-04 23:53:28

MysqlDataTruncation: Data truncation: Incorrect string value: '\xF0\x9D\x90\xB6"#...' for column

插入数据,部分成功,部分失败###Errorupdatingdatabase.Cause:java.sql.SQLException:Incorrectstringvalue:'\xF0\x9D\x90\xB6"#...'forcolumn'content'atrow1###Theerrormayexistincn/hadron/doc/dao/Fi...

2019-04-04 23:47:29

CDH和HDP下载地址

CDH最新版https://archive.cloudera.com/cdh6/https://archive.cloudera.com/cdh6/6.2.0/redhat7/yum/RPMS/noarch/HDP最新版https://zh.hortonworks.com/products/data-platforms/hdp/https://docs.hortonworks.co...

2019-04-02 11:27:13

浏览器以只读方式打开PDF

1、pdf.js禁掉下载和打印的功能<buttonid="print"style="display:none;"class="toolbarButtonprinthiddenMediumView"title="Print"tabindex="33"data-l10n-id="print"><spandata-l10n-i...

2019-03-26 19:52:04

线性回归

1、生成数据#!/usr/bin/envpython3#-*-coding:utf-8-*-importnumpyasnpimportmatplotlib.pyplotasplt#使用matplotlib可视化数据x_train=np.linspace(-1,1,101)#输入值为-1到1之间的101个均匀间隔的数字y_...

2019-03-26 17:01:17

信用卡反欺诈

脱敏后的数据文件#!/usr/bin/envpython3#-*-coding:utf-8-*-importpandasaspdimportnumpyasnpimportmatplotlib.pyplotaspltfromsklearn.utilsimportshuffleimportseabornassnsimportmatplot...

2019-03-26 15:49:21

K-Means算法实例

#!/usr/bin/envpython3#-*-coding:utf-8-*-importmatplotlib.pyplotaspltimportsklearn.datasetsasdsimportmatplotlib.colors#造数据N=800centers=4#生成2000个(默认)2维样本点集合,中心点5个data,y=ds.make_bl...

2019-03-26 14:28:54

kmeans算法初步

#-*-coding:utf-8-*-"""CreatedonTueMar2609:11:212019@author:hadron"""fromsklearn.datasetsimportmake_blobsimportmatplotlib.pyplotaspltif__name__=='__main__':N=400...

2019-03-26 09:40:37

读取Excel数据进行决策树算法分析

#!/usr/bin/envpython3#-*-coding:utf-8-*-importreimportunicodedataimportcopyfromxlrdimportopen_workbookfromxlrdimportXL_CELL_TEXT,XL_CELL_NUMBER,XL_CELL_DATE,XL_CELL_BOOLEANimp...

2019-03-25 16:39:49

决策树算法简单应用

#-*-coding:utf-8-*-fromsklearnimporttree#visualizecodefromsklearn.externals.siximportStringIOimportpydotplus#决策树算法#初步的两个特性的判断,[重量,表皮光滑度](对于水果,可以是:1=光滑,0=粗糙)#结论标签,1=苹果,0=橘子fe...

2019-03-25 16:10:09

TensorFlow学习笔记:6、用Tensorflow计算a=(b+c)∗(c+2)

Tensorflow是基于graph的并行计算模型举个例子,用Tensorflow计算a=(b+c)∗(c+2)可以将算式拆分成一下:d=b+ce=c+2a=d*e编程如下#-*-coding:utf-8-*-"""CreatedonWedMar2016:39:492019@author:hadron"""#https:/...

2019-03-25 15:52:59

TensorFlow学习笔记:5、矩阵的简单运算

#-*-coding:utf-8-*-"""CreatedonMonMar2515:22:502019@author:hadron"""importtensorflowastf#例1:计算两个矩阵的和#定义了两个常量op,m1和m2,均为1*2的矩阵、m1=tf.constant([3,5])m2=tf.constant([2,4])...

2019-03-25 15:33:40

TensorFlow学习笔记:4、TensorFlow简单运算

文件add.py#!/usr/bin/envpython3#-*-coding:utf-8-*-importtensorflowastf#基本常量操作#构造函数返回的值就是常量节点(Constantop)的输出.a=tf.constant(2)b=tf.constant(3)#启动TensorFlow会话ss=tf.Session()#...

2019-03-20 17:42:31

Java读取Oracle的CLOB字段转换为String数据

1、方法1流处理if(type.equalsIgnoreCase("CLOB")){Clobclob=resultSet.getClob(columnIndex);Stringresult=clob2String(clob);System.out.println("流处理读取CLOB:\n"+...

2019-03-15 10:23:51

spring-boot-starter-data-elasticsearch整合elasticsearch 6.x实现高亮highlighter解决办法

spring-boot-starter-data-elasticsearch整合elasticsearch6.x实现高亮highlighter解决办法注意:此文是解决springboot2.x通过spring-boot-starter-data-elasticsearch整合elasticsearch6.x实现高亮highlighter解决办法。参考官方文档:https://docs....

2019-03-14 17:44:30

SpringBoot 2.x 统一异常处理

1、统一异常处理类packagecn.hadron.controller;importorg.springframework.web.bind.annotation.ControllerAdvice;importorg.springframework.web.bind.annotation.ExceptionHandler;importorg.springframework.web...

2019-03-05 14:13:34

程裕强

开源是人类最大的公益事业!--程裕强
关注
  • 计算机软件/大数据
  • 中国 上海 长宁区
奖章
  • 专栏达人
  • 勤写标兵Lv1