-
wordpress使用strtotime转为timestamp时间戳相差8小时
wordpress uses strtotime to convert timestamp to timestamp with a difference of 8 hours 假设原时间2022-09-16 15:19 使用strtotime转换后 strtotime('2022-09-16 15:19') 结果1663341544 在换成时间2022-09-16 23:19:04 时间相差8小时…
WordPress 2022-09-16 1111
-
Dropzone.js 上传进度
myDropzone.on("uploadprogress", function (file, progress, bytesSent) { console.log(file); console.log(progress);//上传进度 console.log(bytesSent);//上传字节 }); Dropzone.js基本使用:https://www.blyoo.com/4989.html
学习 2022-03-15 1536
-
PHP 网页关闭后台继续执行
set_time_limit(0); ignore_user_abort(true); 参考: https://bbs.csdn.net/topics/90501640 https://www.oschina.net/question/105076_56097
学习 2022-03-01 1374
-
PHPStudy Apache 上传文件40秒左右超时问题
上传文件超时,报500错误, php和apache配置,超时均设置的挺高了,但是还是超时,就奇怪了,开始纠结是不是程序有问题, 在我坚持不懈的努力下,网上仔细查了一番, 在httpd.conf文件里添加一些配置 如下代码 FcgidProcessLifeTime 8200 FcgidIOTimeout 8200 FcgidConnectTimeout 4000 保存之后,重启Apache服务器 2…
学习 2022-03-01 1651
-
Yarn 安装
npm install --global yarn 参考: https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable
学习 2022-01-15 2391
-
pip更新
python -m pip install --upgrade pip
学习 2022-01-14 1509
-
WordPress 关闭默认自带的搜索功能
在functions.php添加 function close_search_query( $query, $error = true ) { if ( is_search() && !is_admin() ) { $query->is_search = false; $query->query_vars[s] = false; $query->query[s] = false; if ( $er…
WordPress 2021-07-04 2180
-
python print打印输出中文显示乱码
在开头加上以下代码 网上很多说的这个,我这边使用都是没有效果的 # -*- coding: utf-8 -*- 或者 # encoding: utf-8 这个有效果 #设置 import io import sys sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8')
学习 2021-05-28 2165
-
linux debian查看crontab日志
debian的系统crontab日志需要手动开启, 找到目录 /etc/rsyslog.conf, 去掉关于cron那一行的注释,把#去掉, # cron.* /var/log/cron.log 重启debian系统的log服务, /etc/init.d/rsyslog restart 参考: https://yesnotes.wordpress.com/2013/05/11/debian-cro…
学习 2021-05-03 3581
-
Linux lnmp安装coscmd备份网站数据到cos
下载与安装coscmd 如果系统没有pip,pip安装参考:https://www.blyoo.com/5237.html 通过 pip 安装 执行pip命令进行安装: pip install coscmd 安装成功之后,用户可以通过-v或者--version命令查看当前的版本信息。 pip 更新 安装完成后,执行以下命令进行更新: pip install coscmd -U 配置 在电脑上创建一…
学习 2021-05-02 2597
-
Linux pip: command not found
一般linux上都自带python python查看版本 python -V 第一步 如果pip版本和python版本不符,会提示错误, python版本>=36 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python版本==27 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py…
学习 2021-05-01 2270
-
Windows cmd make build ‘make’不是内部或外部命令,也不是可运行的程序
Windows没有make,make命令是linux上的, Windows上,通过npm安装spm来运行, 安装spm npm install spm -g npm install spm-build -g 运行 spm build 参考: https://ask.csdn.net/questions/4940158
学习 2021-04-29 3261
-
Python excel xlwt Exception: Attempt to overwrite cell
添加cell_overwrite_ok=True 例如 worksheet = workbook.add_sheet("Sheet 1", cell_overwrite_ok=True) 参考: https://stackoverflow.com/questions/2679502/python-xlwt-attempt-to-overwrite-cell-workaround
学习 2021-04-28 3394
-
Python xlrd.biffh.XLRDError: Excel xlsx file; not supported
因为高版本xlrd只支持xls文件 卸载掉高版本的 安装低版本即可 pip uninstall xlrd pip install xlrd==1.2.0 参考: https://blog.csdn.net/weixin_44073728/article/details/111054157
学习 2021-04-28 2780
-
React Error: Objects are not valid as a React child (found: [object HTMLCanvasElement])
let canvas = document.createElement('canvas') 在react中要使用React.createElement() 参考: https://stackoverflow.com/questions/51767405/invariant-violation-objects-are-not-valid-as-a-react-child-found-object-h…
学习 2021-04-24 363