一、bit_xor 1、头文件 #include <functional> 2、模板 template <class T> struct bit_xor; template <class T = void> struct bit_xor; 3、返回两个参数按位XOR的结果(公共成员函数) 4、使用 ...
分类:
其他好文 时间:
2021-04-20 15:10:43
阅读次数:
0
一.Ubuntu环境搭建 1. 安装.NET SDK or .NET Runtime 先为Ubuntu安装运行时,一般情况下安装运行时即可 .NET版本Snap包 5.0 dotnet-runtime-50 3.1(LTS) dotnet-runtime-31 3.0 dotnet-runtime- ...
分类:
Web程序 时间:
2021-04-20 15:09:49
阅读次数:
0
通过nginx -t获得 nginx=`nginx -t 2>&1 | grep configuration` if [ ! -z "$nginx" ];then nginxtmp="${nginx#*file}" nginxf="${nginxtmp%test*}" echo $nginxf fi ...
分类:
系统相关 时间:
2021-04-19 15:38:16
阅读次数:
0
在使用ie浏览器调用get请求时,如果请求方法一样,会默认先缓存,后面每次都先从缓存取,这个问题可能引发奇怪鉴权问题 普遍解决:get请求后加随机数,需要改代码 如果用的nginx做前端服务器,可以在server中增加配置项: add_header Cache-Control "no-cache, ...
分类:
其他好文 时间:
2021-04-19 15:16:50
阅读次数:
0
##题意 求最长上升子序列长度 ##思路 本题直接用dp写,会超时,需要优化 优化办法:二分+dp ##AC代码 //4test n //6 p //4 2 6 3 1 5 ->3 //10 //2 3 4 5 6 7 8 9 10 1 ->9 //8 //8 7 6 5 4 3 2 1 ->1 / ...
分类:
其他好文 时间:
2021-04-19 14:47:09
阅读次数:
0
opt_map函数中对于指定了select program的分析 从过滤器中进行map static int open_output_file(OptionsContext *o, const char *filename) open_output_file函数中根据stream_map进行创建输出 ...
分类:
其他好文 时间:
2021-04-19 14:39:12
阅读次数:
0
前提条件: 已安装centos、docker nginx搭建方式: 1.首先进入centos系统,打开命令行 docker pull nginx:1.17.9 --安装指定版本nginx,这里选择1.17.9据说比较稳定 2.启动nginx docker run -p 80:80 nginx:1.1 ...
分类:
Web程序 时间:
2021-04-19 14:38:17
阅读次数:
0
1.Ingress测试示例 1.定义一个deployment [root@k8s-master01 service-ingress]# cat nginx-test.yaml apiVersion: v1 kind: Service metadata: name: ingress-test labe ...
分类:
其他好文 时间:
2021-04-16 12:25:19
阅读次数:
0
import org.junit.Test; public class TestMethods { @Test public void test() { System.out.println("hello world"); } } 1:首先需要导入import org.junit.test这个jar ...
分类:
编程语言 时间:
2021-04-16 12:01:06
阅读次数:
0
原URL:http://www.yiitest.com/index.php?r=api/index/index 美化成现url: http://www.yiitest.com/api/index/index 由于我下载的是基础版本yii2,所以修改方法如下 这时候依然无法使用美化后的路由去访问,但是 ...
分类:
其他好文 时间:
2021-04-16 11:53:46
阅读次数:
0