存储管理 局部性原理和抖动问题 局部性原理 时间局部性(temporal locality) 时间局部性指的是:被引用过一次的存储器位置在未来会被多次引用(通常在循环中)。 空间局部性(spatial locality) 如果一个存储器的位置被引用,那么将来他附近的位置也会被引用。 抖动 进程执行过 ...
分类:
其他好文 时间:
2019-11-24 13:46:28
阅读次数:
109
原题链接在这里:https://leetcode.com/problems/missing-element-in-sorted-array/ 题目: Given a sorted array A of unique numbers, find the K-th missing number star ...
分类:
其他好文 时间:
2019-11-21 09:55:39
阅读次数:
96
想用到微信公众平台的图片识别系统,结果报错{"errcode":41005,"errmsg":"media data missing hint: [xScHza03164711]"}" 代码如下: <?php class getImgSecCheck{function get_data(){ $ur ...
分类:
微信 时间:
2019-11-19 15:34:18
阅读次数:
189
1.下载dashboard: [root@master kubernetes]# wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta5/aio/deploy/recommended.yaml 2.修改配置文件 ...
分类:
Web程序 时间:
2019-11-19 01:17:14
阅读次数:
93
微软名字起的也很直白,直接叫missing_index,就是sqlserver 经过分析认为这些字段处理和查询是最耗时的,最好在 EqualityUsage上包含的字段上加个非聚集索引.前几个用时是后几名的好几个数量级.加了索引立马飞起. 转自[https://www.cnblogs.com/qia ...
分类:
数据库 时间:
2019-11-18 09:42:13
阅读次数:
101
41. First Missing Positive 思路是把1放在数组第一个位置 nums[0],2放在第二个位置 nums[1],即需要把 nums[i] 放在 nums[nums[i] - 1]上,遍历整个数组,如果 nums[i] != i + 1, 而 nums[i] 为整数且不大于n,另 ...
分类:
其他好文 时间:
2019-11-16 17:34:13
阅读次数:
67
Actuator 简介 Actuator 是 Spring Boot 提供的对应用系统的自省和监控功能。通过 Actuator,可以使用数据化的指标去度量应用的运行情况,比如查看服务器的磁盘、内存、CPU等信息,系统的线程、gc、运行状态等等。 Actuator 通常通过使用 HTTP 和 JMX ...
分类:
编程语言 时间:
2019-11-13 17:55:22
阅读次数:
84
''' 函数:对代码块和功能的封装和定义。 def 函数名(): 函数体 ''' def func(): print("hello world") func() ''' 函数的返回值: 1、遇到return,函数结束,函数后面的代码将不会再执行。 2、return 返回值 1).如果不写return ...
分类:
编程语言 时间:
2019-11-13 11:27:45
阅读次数:
79
It is recommended to use 'slice' over 'Array'. An array variable denotes the entire array; it is not a pointer to the first array element (as would be ...
分类:
其他好文 时间:
2019-11-12 16:11:35
阅读次数:
85
在日常的处理数据的时候,会遇到数据中某些地方没有值,也就是缺失了。 对于这种情况,一半有两种情况:删除和插补。 一般步建议删除。 API:sklearn.preprocessing.Imputer 参数介绍:missing_value 表示缺失值是什么;strategy 表示填补的策略,是用均值还是 ...
分类:
其他好文 时间:
2019-11-12 12:50:49
阅读次数:
109