获取随机字符串或数字 随机获取8位字符串 # 方法一 echo $RANDOM |md5sum |cut -c 1-8 d2614e90 # 方法二 openssl rand -base64 4 6kLKvQ== # 方法3 cat /proc/sys/kernel/random/uuid |cut ...
分类:
系统相关 时间:
2020-06-30 22:26:01
阅读次数:
99
1. 创建服务配置文件 [root@localhost ~]# cat /etc/systemd/system/test.service [Unit] Description=test Service After=syslog.target [Service] User=root ExecStart ...
分类:
其他好文 时间:
2020-06-30 22:12:40
阅读次数:
56
可以在web.config配置文件修改 具体做法: 在web.config中进行如下配置 <system.web> <sessionState mode="InProc" timeout="30"/> </system.web> InProc模式 优点:获取session状态的速度快,session ...
文章链接:https://blog.csdn.net/amrenyu/article/details/80745674 勾选 1,点击上访的Tools-->Options 2,分别按照下面两张图设置 HTTPS、connections两个页面。 3,点击“OK”以后Fiddler会弹出一个对话框问你 ...
分类:
Web程序 时间:
2020-06-30 17:38:29
阅读次数:
87
procedure SendMouseWheel(destHandle: THandle; goUp: Boolean); var message: TWMMouseWheel; delta: SmallInt; begin if goUp then delta := WHEEL_DELTA els ...
分类:
其他好文 时间:
2020-06-30 14:50:46
阅读次数:
122
Linux下获取CPU内存信息的命令 1. 获取CPU型号信息 cat /proc/cpuinfo | grep name | cut -f2 -d: |uniq -c 2.获取CPU的个数(几核CPU) grep 'physical id' /proc/cpuinfo | sort | uniq ...
分类:
系统相关 时间:
2020-06-30 12:36:40
阅读次数:
112
###1. overcommit_memory是什么? overcommit_memory是一个内核对内存分配的一种策略。 具体可见/proc/sys/vm/overcommit_memory下的值 ###2. overcommit_memory有什么作用? overcommit_memory取值又 ...
分类:
系统相关 时间:
2020-06-29 15:03:16
阅读次数:
89
当终止服务器运行后,再次进行调试时,出现bind error: Address Already in use 在bind函数调用前添加,即可免去Linux下的TIME_WAIT的将近两分钟的等待时间 int on=1; setsockopt(sockfd,SOL_SOCKET,SO_REUSEADD ...
分类:
Web程序 时间:
2020-06-29 13:13:21
阅读次数:
108
多进程和多线程; 多进程:电脑有几核cpu、就只能同时运行几个进程、多个进程可以通过上下文切换进行调度。 python里的多线程同时也只有一个线程在运行、利用不了多核cpu--全局解释器锁GLI。 1、CPU密集型任务,用多进程 ->消耗CPU比较多2、IO密集型任务,用多线程 ->消耗io比较多 ...
分类:
编程语言 时间:
2020-06-29 09:52:20
阅读次数:
51
在管线的om阶段有这样一个操作 dither 抖动 它的存在是为了解决 高精度数据写入低精度rt时的band artifacts https://en.wikipedia.org/wiki/Dither 感觉这是一种常用的提升精度的方法,和仿色也类似,在hdr那边也见过这种使用 https://ww ...
分类:
其他好文 时间:
2020-06-28 19:02:44
阅读次数:
44