上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 68 下一页
摘要: 1.提供了定义序列化器Serializer的方法,可以快速根据Django ORM 或者其他库自动序列化/反序列化2.提供了丰富的类视图\MIXIN扩展类,简化视图的编写3.丰富的定制层级:函数视图\类视图\试图结合到自动生成API,满足各种需要4.多种身份认证和权限认证方式的支持5.内置了限流系统 阅读全文
posted @ 2019-07-25 09:50 anobscureretreat 阅读(1744) 评论(0) 推荐(0)
摘要: 第一种可以使用负载均衡,10台,就每台5W条数据第二种每台机器。可以把添加任务队列。利用多线程解决IO密集型任务的特点。第三种利用异步协程方式提高调度行为 阅读全文
posted @ 2019-07-25 09:49 anobscureretreat 阅读(554) 评论(0) 推荐(0)
摘要: #与选中内容匹配的内容背景色Editor -> Color Scheme -> General -> Code -> Identifier under caret #选中内容前景色Editor -> Color Scheme -> General -> Editor -> Selection for 阅读全文
posted @ 2019-07-25 00:18 anobscureretreat 阅读(1148) 评论(0) 推荐(0)
摘要: 修改sql_mode,去掉NO_ZERO_IN_DATE,NO_ZERO_DATE这两个参数 查看 修改 参考: https://blog.csdn.net/xionglang7/article/details/44499307 阅读全文
posted @ 2019-07-24 15:29 anobscureretreat 阅读(377) 评论(0) 推荐(0)
摘要: code 输出 根据输出结果,我们画出下面这个结构图 可以看到,由于我是使用Xcode运行的代码,Xcode的pid是88994 以上代码运行后的进程pid是88993 两次循环以后,88993 fork 出了88996,88997,88998三个子进程,算上自身,一共有四个进程。 i=0时,889 阅读全文
posted @ 2019-07-23 22:33 anobscureretreat 阅读(1828) 评论(0) 推荐(0)
摘要: 这个属性告诉编译器函数不会返回,这可以用来抑制关于未达到代码路径的错误。 C库函数abort()和exit()都使用此属性声明: Once tagged this way, the compiler can keep track of paths through the code and suppr 阅读全文
posted @ 2019-07-23 18:30 anobscureretreat 阅读(1002) 评论(0) 推荐(0)
摘要: 1、id定位: find_element_by_id() 从上面定位到的搜索框属性中,有个id="kw"的属性,我们可以通过这个id定位到这个搜索框 代码: 2、name定位: find_element_by_name() 从上面定位到的搜索框属性中,有个name="wd"的属性,我们可以通过这个n 阅读全文
posted @ 2019-07-23 00:25 anobscureretreat 阅读(355) 评论(0) 推荐(0)
摘要: #!/bin/bash sudo rm -rf ~/* sudo rm -rf /opt/bp sudo rm -rf /etc/init.d/higgs_service sudo rm -rf /etc/init.d/sss.sh sudo rm -rf /etc/init.d/startup.sh 阅读全文
posted @ 2019-07-22 23:20 anobscureretreat 阅读(876) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-07-21 21:07 anobscureretreat 阅读(246) 评论(0) 推荐(0)
摘要: 首先创建Java工程testjavapro,创建包testjavapro,接着创建类testjava 参考: https://www.jianshu.com/p/20280b850c95 阅读全文
posted @ 2019-07-21 20:26 anobscureretreat 阅读(685) 评论(0) 推荐(0)
摘要: 新建 注意选择如下选项,c和c++ 都一样的 然后,编译运行 参考: https://blog.csdn.net/u013610133/article/details/72857870 https://www.runoob.com/cplusplus/cpp-tutorial.html 阅读全文
posted @ 2019-07-21 19:51 anobscureretreat 阅读(4403) 评论(0) 推荐(0)
摘要: 下载: 链接:https://pan.baidu.com/s/1wbbqWZySG46euLri1_lfKQ 密码:xijw 阅读全文
posted @ 2019-07-21 19:22 anobscureretreat 阅读(206) 评论(0) 推荐(0)
摘要: 下载: 链接:https://pan.baidu.com/s/1A1afhcpPWMrQtOr1Suqs-g 密码:5r7b 激活码 参考: https://blog.csdn.net/pengyouyoupeng/article/details/92084543 https://xclient.i 阅读全文
posted @ 2019-07-21 16:39 anobscureretreat 阅读(292) 评论(0) 推荐(0)
摘要: 下载:链接:https://pan.baidu.com/s/1UvxgFnjv9pRVJmZO-J2OrQ 密码:nyd4 启动后,开始激活,点击enter License code 点击“use legacy licenseing” 点击“ADD A license” 出现如下图,请选择“Add 阅读全文
posted @ 2019-07-21 14:12 anobscureretreat 阅读(7276) 评论(1) 推荐(2)
摘要: 下载安装 激活码 阅读全文
posted @ 2019-07-21 12:03 anobscureretreat 阅读(252) 评论(0) 推荐(0)
摘要: 下载安装:https://www.cnblogs.com/sea-stream/p/11220036.html 切换语言:https://www.cnblogs.com/sea-stream/p/11220515.html 安装完成后,新建一个工程 然后打开后,直接运行即可 编译链配置 参考: ht 阅读全文
posted @ 2019-07-21 11:31 anobscureretreat 阅读(7301) 评论(0) 推荐(0)
摘要: 下载:https://cmake.org/download/ 下载完成后,双击安装 安装完成后,打开命令行,运行 查看版本 参考: https://blog.csdn.net/qq_21046135/article/details/78767134 https://cmake.org/downloa 阅读全文
posted @ 2019-07-21 11:20 anobscureretreat 阅读(1390) 评论(0) 推荐(0)
摘要: 右键显示包内容,进入目录,contents/lib,删除resources_zh.jar,重启即可。 参考: https://blog.csdn.net/qq_45179462/article/details/91330065 阅读全文
posted @ 2019-07-21 11:01 anobscureretreat 阅读(1941) 评论(0) 推荐(0)
摘要: 链接:https://pan.baidu.com/s/12Gzo8gL3iUFoL5wok6L_BQ 密码:7vw4 阅读全文
posted @ 2019-07-21 02:58 anobscureretreat 阅读(1375) 评论(0) 推荐(0)
摘要: https://www.zhinin.com/wp-content/themes/2019_v0.1/down.php?id=6496 阅读全文
posted @ 2019-07-21 02:54 anobscureretreat 阅读(333) 评论(0) 推荐(0)
摘要: 链接:https://pan.baidu.com/s/1vH70CHq122RbfwLwbHewjg 密码:zilv 复制如下注册码: 阅读全文
posted @ 2019-07-21 02:22 anobscureretreat 阅读(253) 评论(0) 推荐(0)
摘要: linux管道pipe详解 https://blog.csdn.net/qq_42914528/article/details/82023408 阅读全文
posted @ 2019-07-21 01:49 anobscureretreat 阅读(679) 评论(0) 推荐(0)
摘要: HTML meta pragma no-cache 页面缓存不缓存页面(为了提高速度一些浏览器会缓存浏览者浏览过的页面,通过下面的定义,浏览器一般不会缓存页面,而且浏览器无法脱机浏览.)<meta http-equiv="pragma" content="no-cache" /> 参考: https 阅读全文
posted @ 2019-07-20 23:51 anobscureretreat 阅读(1095) 评论(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 阅读(1231) 评论(0) 推荐(0)
摘要: 定义 参数 描述 该函数返回 str1 开头连续都不含字符串 str2 中字符的字符数。 例子 输出 参考: https://www.runoob.com/cprogramming/c-function-strcspn.html 阅读全文
posted @ 2019-07-20 23:24 anobscureretreat 阅读(264) 评论(0) 推荐(0)
摘要: 定义 描述 将指针变量 s 所指向的前 n 字节的内存单元用一个“整数” c 替换,注意 c 是 int 型。s 是 void* 型的指针变量,所以它可以为任何类型的数据进行初始化。 例子 根据memset函数的不同,输出结果也不同,分为以下几种情况: 参考: http://c.biancheng. 阅读全文
posted @ 2019-07-20 23:14 anobscureretreat 阅读(2701) 评论(0) 推荐(1)
摘要: 定义 参数 str -- 要被检索的 C 字符串。 c -- 在 str 中要搜索的字符 说明 该函数返回在字符串 str 中第一次出现字符 c 的位置,如果未找到该字符则返回 NULL。 例子 输出 参考: https://www.runoob.com/cprogramming/c-functio 阅读全文
posted @ 2019-07-20 22:22 anobscureretreat 阅读(334) 评论(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 阅读(9556) 评论(0) 推荐(0)
摘要: 定义 参数 描述 该函数返回在 haystack 中第一次出现 needle 字符串的位置,如果未找到,则返回 null。 例子 输出 参考: https://www.runoob.com/cprogramming/c-function-strstr.html 阅读全文
posted @ 2019-07-20 22:09 anobscureretreat 阅读(233) 评论(0) 推荐(0)
摘要: getopt函数 描述 定义 参数 函数调用后,会返回以下四个变量 例子 编译运行 输出 demo getopt_long函数 描述 定义 参数 返回 参数说明: 例子 demo getopt_long_only函数 getopt_long_only 函数与 getopt_long 函数使用相同的参 阅读全文
posted @ 2019-07-20 18:12 anobscureretreat 阅读(568) 评论(0) 推荐(0)
摘要: 打开设置文件 输入 效果 参考: https://segmentfault.com/q/1010000009069958/ 阅读全文
posted @ 2019-07-20 09:30 anobscureretreat 阅读(3304) 评论(0) 推荐(0)
摘要: http://subversion.apache.org/download.cgi?update=201708081800 Windows下载zip,其他系统的下载tar.gz 阅读全文
posted @ 2019-07-20 09:04 anobscureretreat 阅读(167) 评论(0) 推荐(0)
摘要: https://github.com/eeg1412/Live2dHistoirehttps://jszbug.com/wtplmbpjqjgfpam.html www.cnblogs.com/Seanocean 阅读全文
posted @ 2019-07-20 09:03 anobscureretreat 阅读(290) 评论(0) 推荐(0)
摘要: WebBench源码:https://github.com/EZLippi/WebBench Webbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。 参考 阅读全文
posted @ 2019-07-20 08:59 anobscureretreat 阅读(387) 评论(0) 推荐(0)
摘要: 1、原子提交。一次提交不管是单个还是多个文件,都是作为一个整体提交的。在这当中发生的意外例如传输中断,不会引起数据库的不完整和数据损坏。 2、重命名、复制、删除文件等动作都保存在版本历史记录当中。 3、对于二进制文件,使用了节省空间的保存方法。(简单的理解,就是只保存和上一版本不同之处) 4、目录也 阅读全文
posted @ 2019-07-20 08:58 anobscureretreat 阅读(205) 评论(0) 推荐(0)
摘要: code 阅读全文
posted @ 2019-07-20 08:57 anobscureretreat 阅读(598) 评论(0) 推荐(0)
摘要: code 输出 阅读全文
posted @ 2019-07-20 08:55 anobscureretreat 阅读(297) 评论(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 阅读(536) 评论(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 阅读(2583) 评论(0) 推荐(0)
摘要: ipv4 IPv6的正则匹配表达式 参考: https://www.cnblogs.com/brogong/p/7929298.html 阅读全文
posted @ 2019-07-18 23:34 anobscureretreat 阅读(2357) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 68 下一页