摘要:
HTML meta pragma no-cache 页面缓存不缓存页面(为了提高速度一些浏览器会缓存浏览者浏览过的页面,通过下面的定义,浏览器一般不会缓存页面,而且浏览器无法脱机浏览.)<meta http-equiv="pragma" content="no-cache" /> 参考: https 阅读全文
posted @ 2019-07-20 23:51
anobscureretreat
阅读(1086)
评论(0)
推荐(0)
摘要:
在http1.1中request和reponse header中都有可能出现一个connection头字段,此header的含义是当client和server通信时对于长链接如何进行处理。 在http1.1中,client和server都是默认对方支持长链接的, 如果client使用http1.1协 阅读全文
posted @ 2019-07-20 23:41
anobscureretreat
阅读(1225)
评论(0)
推荐(0)
摘要:
定义 参数 描述 该函数返回 str1 开头连续都不含字符串 str2 中字符的字符数。 例子 输出 参考: https://www.runoob.com/cprogramming/c-function-strcspn.html 阅读全文
posted @ 2019-07-20 23:24
anobscureretreat
阅读(254)
评论(0)
推荐(0)
摘要:
定义 描述 将指针变量 s 所指向的前 n 字节的内存单元用一个“整数” c 替换,注意 c 是 int 型。s 是 void* 型的指针变量,所以它可以为任何类型的数据进行初始化。 例子 根据memset函数的不同,输出结果也不同,分为以下几种情况: 参考: http://c.biancheng. 阅读全文
posted @ 2019-07-20 23:14
anobscureretreat
阅读(2693)
评论(0)
推荐(1)
摘要:
定义 参数 str -- 要被检索的 C 字符串。 c -- 在 str 中要搜索的字符 说明 该函数返回在字符串 str 中第一次出现字符 c 的位置,如果未找到该字符则返回 NULL。 例子 输出 参考: https://www.runoob.com/cprogramming/c-functio 阅读全文
posted @ 2019-07-20 22:22
anobscureretreat
阅读(327)
评论(0)
推荐(0)
摘要:
定义 描述 strncasecmp()用来比较参数s1 和s2 字符串前n个字符,比较时会自动忽略大小写的差异。 若参数s1 和s2 字符串相同则返回0。s1 若大于s2 则返回大于0 的值,s1 若小于s2 则返回小于0 的值。 例子 输出 参考: http://c.biancheng.net/c 阅读全文
posted @ 2019-07-20 22:16
anobscureretreat
阅读(9535)
评论(0)
推荐(0)
摘要:
定义 参数 描述 该函数返回在 haystack 中第一次出现 needle 字符串的位置,如果未找到,则返回 null。 例子 输出 参考: https://www.runoob.com/cprogramming/c-function-strstr.html 阅读全文
posted @ 2019-07-20 22:09
anobscureretreat
阅读(227)
评论(0)
推荐(0)
摘要:
getopt函数 描述 定义 参数 函数调用后,会返回以下四个变量 例子 编译运行 输出 demo getopt_long函数 描述 定义 参数 返回 参数说明: 例子 demo getopt_long_only函数 getopt_long_only 函数与 getopt_long 函数使用相同的参 阅读全文
posted @ 2019-07-20 18:12
anobscureretreat
阅读(554)
评论(0)
推荐(0)
摘要:
打开设置文件 输入 效果 参考: https://segmentfault.com/q/1010000009069958/ 阅读全文
posted @ 2019-07-20 09:30
anobscureretreat
阅读(3278)
评论(0)
推荐(0)
摘要:
http://subversion.apache.org/download.cgi?update=201708081800 Windows下载zip,其他系统的下载tar.gz 阅读全文
posted @ 2019-07-20 09:04
anobscureretreat
阅读(162)
评论(0)
推荐(0)
摘要:
https://github.com/eeg1412/Live2dHistoirehttps://jszbug.com/wtplmbpjqjgfpam.html www.cnblogs.com/Seanocean 阅读全文
posted @ 2019-07-20 09:03
anobscureretreat
阅读(285)
评论(0)
推荐(0)
摘要:
WebBench源码:https://github.com/EZLippi/WebBench Webbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。 参考 阅读全文
posted @ 2019-07-20 08:59
anobscureretreat
阅读(376)
评论(0)
推荐(0)
摘要:
1、原子提交。一次提交不管是单个还是多个文件,都是作为一个整体提交的。在这当中发生的意外例如传输中断,不会引起数据库的不完整和数据损坏。 2、重命名、复制、删除文件等动作都保存在版本历史记录当中。 3、对于二进制文件,使用了节省空间的保存方法。(简单的理解,就是只保存和上一版本不同之处) 4、目录也 阅读全文
posted @ 2019-07-20 08:58
anobscureretreat
阅读(201)
评论(0)
推荐(0)
摘要:
code 阅读全文
posted @ 2019-07-20 08:57
anobscureretreat
阅读(595)
评论(0)
推荐(0)
摘要:
code 输出 阅读全文
posted @ 2019-07-20 08:55
anobscureretreat
阅读(290)
评论(0)
推荐(0)
摘要:
>>> str="hello world">>> x=bytearray(str)>>> xbytearray(b'hello world')>>> x.decode()u'hello world' >>>bytearray()bytearray(b'')>>> bytearray([1,2,3]) 阅读全文
posted @ 2019-07-20 08:54
anobscureretreat
阅读(531)
评论(0)
推荐(0)
摘要:
Linux查看物理CPU个数、核数、逻辑CPU个数# 总核数 = 物理CPU个数 X 每颗物理CPU的核数 # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数 查看分区磁盘的速度命令$ hdparm -Tt /dev/sda1/dev/sda1:Timing cached 阅读全文
posted @ 2019-07-20 08:53
anobscureretreat
阅读(2575)
评论(0)
推荐(0)