//判断a是否小于b private static boolean less(Comparable v, Comparable w) { return v.compareTo(w) < 0; } //两个交换 private static void swap(Comparable arr[], in ...
分类:
编程语言 时间:
2020-05-13 23:40:22
阅读次数:
106
一、idea检查警告 Can be replaced with 'peek' less... (Ctrl+F1) Inspection info: This inspection reports stream API call chains which can be simplified. It a ...
分类:
其他好文 时间:
2020-05-13 19:59:17
阅读次数:
79
转自:http://www.chanpin100.com/article/106149 本文为大家总结了产品设计中常用的4点原则,希望对大家有所帮助。 每位产品经理或多或少都听说过一些产品原则,今天先一起探讨应该遵循哪些宏观的产品原则。 1.少即是多 “Less is more.”(少即是多)其实最 ...
分类:
其他好文 时间:
2020-05-13 16:50:42
阅读次数:
74
参考https://blog.csdn.net/aaronjny/article/details/103658254 我是按照上面这个做的,不过在使用的时候有报错。 报错:cannot allocate memory in static TLS block。 解决:把import cv2放在impo ...
分类:
其他好文 时间:
2020-05-13 16:38:58
阅读次数:
286
经过调查是Linux系统磁盘满了,需要清理磁盘。 查看当前磁盘使用情况:df -h 可以看到上面/dev/vda1 de Use%=100%,然后看一下vda1是什么? 所以问题找到了,就是系统磁盘满了,满了,就清理掉无用数据,到根目录下使用命令du -sh * 查看各目录占用空间大小(du -ah ...
分类:
系统相关 时间:
2020-05-13 11:58:34
阅读次数:
296
DRY原则:(don’t repeat yourself): writing code more than once is not a good fit for a lazy developer ;) It also makes your software more difficult to mai ...
分类:
其他好文 时间:
2020-05-13 11:53:27
阅读次数:
56
问题 [root@oracle11g rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm Preparing... ################################# [100%] ls: cannot access /usr/sbin/smartctl: No ...
分类:
其他好文 时间:
2020-05-13 10:24:34
阅读次数:
129
Glances监控工具是功能强大简单易用的在线监控工具。Glances支持gpm图形模式和Glances文本模式,几乎可以在任何终端和工作站上使用,占用资源很少。Glances具有展示监控的高级特性,运行方式支持独立模式,C/S模式,WEB服务模式。
分类:
其他好文 时间:
2020-05-13 10:16:10
阅读次数:
127
Abstract: What do you think about the question? Does the 64 bits always do better? The answer is NO. When we talk about 64 bit vs. 32 bit we mean two ...
分类:
其他好文 时间:
2020-05-12 20:12:53
阅读次数:
84
一开始想根据Button的Tag属性判断一些操作,于是写了 if (btn1.Tag.ToString().StartsWith("Menu") || btn2.Tag.ToString().StartsWith("Submenu")) return; 但是Tag属性可能为空,于是给Tag加上判空处 ...
分类:
移动开发 时间:
2020-05-12 11:26:21
阅读次数:
78