django rest framework 多对多序列化,折腾了好久,也没找到默认是怎么使用,只能自己重构了。 1 model class Roles(models.Model): """ 角色信息 """ title = models.CharField(max_length=32,unique= ...
分类:
其他好文 时间:
2020-07-15 22:59:44
阅读次数:
118
Goreplay 介绍 GoReplay是一个开源的网络监控工具,它可以记录你的实时流量,并用于跟踪、负载测试、监控和详细分析。 GoReplay提供了一种unique approach for shadowing方式:GoReplay不是以代理形式,而是监听网络接口上的流量,不需要对生产基础设施进 ...
分类:
系统相关 时间:
2020-07-15 15:27:15
阅读次数:
116
react异常警告:Each child in a list should have a unique “key” prop 原因:Dom在渲染数组时,需要一个key,不然嵌套数组时会引起歧义 解决: 1 <div className="classlist-contaier"> 2 {this.st ...
分类:
其他好文 时间:
2020-07-15 12:46:45
阅读次数:
435
hadoop Shuffle Error: Exceeded MAX_FAILED_UNIQUE_FETCHES; bailing-out 程序里面打开文件数达到上限,系统一般默认数量是1024,(用ulimit -a可以看到)vi /etc/security/limits.conf 添加 :sof ...
分类:
其他好文 时间:
2020-07-15 12:46:25
阅读次数:
86
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte ...
分类:
其他好文 时间:
2020-07-15 01:00:03
阅读次数:
73
商业智能的应用在国外已广为普及,并且开始不断应用大数据和云技术。而国内,商业智能BI工具在这几年才开始慢慢被接受,企业开始有意识地建立一体化数据分析平台,为经营决策提供分析。近几年,商业智能的几大趋势:对于大数据更好的支持,对海量数据块的快速响应,各大商业智能软件基本都支持了hadoop作为数据库;可视化分析的重要性,也日益明显,比如国内的亿信华辰跟国外的Tableau,QLK,PowerBI都有
分类:
其他好文 时间:
2020-07-14 20:00:26
阅读次数:
165
1.在表格中混用float与double会出现数值不准确的情况 保持一种类型,比如double,jdk8以后有lambda 可以统计返回结果是double的 2.在表格中插入公式 SXSSFCell cellttsum = tailrow.createCell(y); String colStrin ...
分类:
其他好文 时间:
2020-07-14 13:38:58
阅读次数:
66
Unique Paths II (M) 题目 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either ...
分类:
其他好文 时间:
2020-07-14 09:17:23
阅读次数:
72
这道题考察的是unique函数。用一个数组a来存下这10个数,并在读入时进行%42的运算,然后在进行sort排序后用去重函数unique求出其中不重复的元素个数即可。 代码: 1 #include<iostream> 2 #include<algorithm> 3 using namespace s ...
分类:
其他好文 时间:
2020-07-12 16:52:02
阅读次数:
57
#定义一个子函数,格式是: #def 函数名(参数1,参数2,'''): 这里有一个冒号不要忘记 #接下来定义一个没有参数的子函数printHello def printHello() : print("Hello world") #直接调用函数 printHello() #定义一个有参数的函数 d ...
分类:
其他好文 时间:
2020-07-12 00:51:08
阅读次数:
130