Debugging SSL on Linux To help anyone looking at the SSL code, here are a few tips I've found handy. Contents Logging Network Traces Logging There are ...
分类:
系统相关 时间:
2020-04-02 19:44:51
阅读次数:
84
mac python3.7消费kafka数据时报错如下: kafka.errors.UnsupportedCodecError: UnsupportedCodecError: Libraries for snappy compression codec not found 解决方案: 1. brew ...
分类:
移动开发 时间:
2020-04-02 14:25:37
阅读次数:
246
这行报错predict = model(Variable(x_train)) RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.FloatTensor for argument #4 ' ...
分类:
其他好文 时间:
2020-04-02 01:07:38
阅读次数:
188
1、查看系统中的别名 alias 2、临时更改别名 alias rm='command not found.' 3.永久更改别名 vim /etc/profile > 最后一行添加 alias rm='command not found.' 》 保存退出后,source /etc/profile 激 ...
分类:
系统相关 时间:
2020-04-02 01:04:23
阅读次数:
99
这里使用springMVC自带的CORS解决跨域问题 什么是跨域问题 1.请求地址与当前地址不相同 2.端口号不相同 技术有限端口号不同还未发现 3.二级域名不相同 出现这种问题如何解决有很多种方法,此处使用CORS解决: CORS是一个W3C标准,全称是"跨域资源共享"(Cross-origin ...
分类:
其他好文 时间:
2020-04-01 19:20:47
阅读次数:
75
5.跨域问题 跨域:浏览器对于javascript的同源策略的限制 。 以下情况都属于跨域: | 跨域原因说明 | 示例 | | | | | 域名不同 | 与 | | 域名相同,端口不同 | 与 | | 二级域名不同 | 与 | 如果 域名和端口都相同,但是请求路径不同 ,不属于跨域,如: http ...
分类:
其他好文 时间:
2020-04-01 19:16:47
阅读次数:
233
django如何在 search_fields和list_filter 中包含外键字段 我们知道在 admin.py 中定义 search_fields 可以控制在后台管理界面中能够搜索的字段。 但是,当 search_fields 包含外键字段时,此时进行搜索会报错: TypeError at / ...
分类:
其他好文 时间:
2020-04-01 14:30:08
阅读次数:
103
1. 下载安装包 https://redis.io/download 当前最新版本为5.0.5 2. 解压安装 $tar xzf redis-5.0.5.tar.gz$cd redis-5.0.5$make 在安装时候如果提示 `invalid active developer path (/Lib ...
分类:
系统相关 时间:
2020-04-01 14:29:31
阅读次数:
85
使用命令提示: 原因:python版本问题,dstat只支持python2 解决:修改python版本 ...
分类:
其他好文 时间:
2020-04-01 12:38:47
阅读次数:
160
一、环境: CentOS 7.7.1908 PHP 7.4.2 Oniguruma 6.9.4二、问题: 安装PHP 7.4.x过程中出现如下错误信息: …………………… checking whether to enable multibyte string support... yes check ...
分类:
Web程序 时间:
2020-04-01 12:36:11
阅读次数:
857