-
Sublime Text Python Anaconda自动提示
Preferences》Package Control Install Package Anaconda 点击第一个,安装 稍等几秒钟,取决于网络,安装完成之后,会出来这个, 后续配置,这边,我没有配置,不影响使用 如果需要配置一些特别功能,可以参考下面链接 参考: https://blog.51cto.com/u_15116285/5964479 https://blog.51cto.com/u…
学习 2023-01-26 12
-
ffmpeg ts(批量)转为mp4
注意 有一点要注意,ffmpeg使用时候文件名称不能包含空格,否则会跳过,如果有空格需要加上引号 例如"v i d eo.ts" ffmpeg -i "vid eo.ts" -c copy "v ideo.mp4" ts转mp4 copy为原视频格式 ffmpeg -i video.ts -c copy video.mp4 还有这个,我对比了之后,没发现有什么区别 ffmpeg -i video.…
学习 2023-01-15 66
-
PHP 8 Warning : undefined array key 0
举例 $arr=[1]; print_r($arr[2]);//Warning:Undefined array key 2 解决: error_reporting(0); print_r($arr[2]); //或者 print_r(@$arr[2]); //或者 print_r($arr[2]??null); //或者 if(isset($arr[2])){ print_r($arr[2]); …
学习 2023-01-10 89
-
nginx php上传文件超时
1. 修改nginx的配置文件 client_max_body_size 500M; client_header_timeout 3600s; client_body_timeout 3600s; fastcgi_connect_timeout 3600s; fastcgi_send_timeout 3600s; fastcgi_read_timeout 3600s; # 其他webserver相…
学习 2023-01-09 78
-
wordpress 升级提示另一更新正在进行
在functions.php文件中添加 ,然后刷新一下页面,在然后注释掉, /*清楚数据库更新记录*/ global $wpdb; $wpdb->query("DELETE FROM wp_options WHERE option_name = 'core_updater.lock'"); 或者 直接在数据库操作也可以,找到wp_options这个表,然后在找到这个删除core_updater.l…
WordPress 2023-01-09 82
-
wordpress 升级提示ftp
在wp-config.php 添加 define("FS_METHOD", "direct"); define("FS_CHMOD_DIR", 0777); define("FS_CHMOD_FILE", 0777);
WordPress 2023-01-09 74
-
LNMP删除.user.ini
删除.user.ini 先执行下面命令,然后在删除 chattr -i /网站目录/.user.ini 统一删了.user.ini 如果网站都在目录的 /home/wwwroot/域名的目录下的话 chattr -i /home/wwwroot/*/.user.ini rm -f /home/wwwroot/*/.user.ini 参考: https://lnmp.org/faq/lnmp-vho…
学习 2023-01-08 83
-
Array and string offset access syntax with curly braces is deprecated
把{}改成[] $seq = (ord($value[0]) % $rule['num']) + 1;
学习 2022-11-24 156
-
WordPress 取当前在后台页面位置
WordPress 全局变量:$pagenow 判断后台页面位置 global $pagenow; print_r($pagenow); 网上看到这个,我试了一下没什么卵用, function get_current_post_type() { global $post, $typenow, $current_screen; //we have a post so we can just get …
WordPress 2022-09-21 285
-
正则中英文标点符号
汉字(Unicode码) \u4e00-\u9fa5 数字、空格、英文字母大小写 \d \s a-zA-Z 中文标点符号及常用字符 \·\~ \!\@\#\¥\%\……\&\*\(\) \——\-\+\= \【\】\{\}\、\| \;\‘\’\:\“\” \《\》\?\,\。\、 英文标点符号及常用字符 \`\~ \!\@\#\$\%\^\&\*\(\) \_\+\-\= \[\]\{\}\\\…
学习 2022-09-17 285
-
wordpress 文章发布或修改时自动从内容截取设置文章标题
我的需求是,发布文章时,如果标题没有设置,则从内容里截取 一开始,网上找到一个插件,于是我把核心复制了出来,自定义修改了一下,但是在wordpress app上发布文章没有效果, https://cn.wordpress.org/plugins/autotitle-for-wordpress/ /** * 自动标题 * @return void */ function auto_title() {…
WordPress 2022-09-17 324
-
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 346
-
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 915
-
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 810
-
PHPStudy Apache 上传文件40秒左右超时问题
上传文件超时,报500错误, php和apache配置,超时均设置的挺高了,但是还是超时,就奇怪了,开始纠结是不是程序有问题, 在我坚持不懈的努力下,网上仔细查了一番, 在httpd.conf文件里添加一些配置 如下代码 FcgidProcessLifeTime 8200 FcgidIOTimeout 8200 FcgidConnectTimeout 4000 保存之后,重启Apache服务器 2…
学习 2022-03-01 907