- JAVA 程序王 发表时间:2021-03-14 17:01:00
vue 3 的watchEffect 使用方法
vue 3composition api 的 watcheffect 方法,初始化就会执行一次 , 它会 自动检测方法内部使用的代码是否有变化 ,而且 不需要传递你要侦听的内容,它会自动感知内容变化,缺点:无法获取之前或当前的数据 <!doctype html> <html lang="en"> <head> &..
374
0
- JAVA 程序王 发表时间:2020-08-23 22:51:09 最新回复:2021-01-15 16:39:03
Nginx image_filter动态缩略图
url 样式:http://域名/tu-${mod}300x300.jpg ps:${mod}表示缩略图裁剪模式,即 resize 或 crop。 在站点的 server 模块中新增如下 location 规则: #resize裁剪模式配置 location ~* /(.+)-resize(d+)x(d+).(jpg|gif|png)$ { set $..
444
1
- JAVA 程序王 发表时间:2020-08-06 16:25:47
AWS S3 SDK 2.0删除文件夹
import java.util.arraylist; import java.util.iterator; import software.amazon.awssdk.services.s3.s3client; import software.amazon.awssdk.services.s3.model.*; //... listobjectsreque..
619
0
- JAVA 程序王 发表时间:2020-08-06 03:18:39
S3存储桶策略示例
存储桶策略指定了该策略所附加到的存储桶的访问权限。 使用s3 putbucketpolicy api配置存储桶策略。 可以根据以下命令使用aws cli配置存储桶策略: > aws s3api put-bucket-policy --bucket examplebucket --policy file://policy.json ..
405
0
- JAVA 程序王 发表时间:2020-06-18 12:11:01
<p>标签和<pre>标签不能互相嵌套
<p>标签内不能嵌套<pre>标签,<pre>标签内也不能嵌套<p>标签。 p标签内不能包含块级元素 如果将像下面这样嵌套 <p>1111<pre>2222</pre>3333</p> 执行后会显示为 1111 2222 3333..
708
0
- JAVA 程序王 发表时间:2020-05-17 23:55:09
使用 Jsoup 对 html 进行过滤
import java.util.list; import org.jsoup.jsoup; import org.jsoup.nodes.document; import org.jsoup.nodes.element; import org.jsoup.safety.whitelist; /** * 使用 jsoup 对 html 进行过滤 */ pub..
1290
0
- JAVA 程序王 发表时间:2020-05-17 22:49:51
使用jsoup将html转换为纯文本时保留换行符
使用如下代码将文本转换时 public class newclass { public string notags(string str){ return jsoup.parse(str).text(); } public static void main(string args[]) { string strings="<!doctype html..
1778
0
- JAVA 程序王 发表时间:2020-04-28 21:07:38
img标签的水平居中、靠左、靠右
//水平靠左 .alignleft { display: inline; float: left; } <img src="" class="alingleft"> //水平靠右 .alignright { display: inline; float: right; } <img src="" class="alignright">..
446
0
- JAVA 程序王 发表时间:2020-04-26 18:26:55
Centos8下mysql 8.0忘记密码后重置密码
1:免密码登陆 找到mysql配置文件:my.cnf, 输入命令: vim /etc/my.cnf 在【mysqld】模块添加:skip-grant-tables 保存退出; 2:使配置文件生效 重启mysql服务: service mysqld restart; 3:将旧密码置空 mysql -u root -p #提示输入密码时直接..
1135
0
- JAVA 程序王 发表时间:2020-04-16 16:13:19
Centos8卸载MySQL5.7
1. 卸载mysql 卸载centos8上的mysql的全部 资源,(此方法同样适用于想卸载mysql的) 1.1 yum方式查询是否安装了mysql yum list installed mysql* 如果出现: dependencies resolved. =======================================..
1464
0
- JAVA 程序王 发表时间:2020-04-16 16:07:55
Centos8安装MySQL5.7
在centos8上用原来centos7上安装mysql5.7的方法会安装失败,显示mysql-community-server安装错误。我们用新的方法在centos8上安装mysql5.7 安装mysql 1. 添加mysql存储库 禁用mysql默认的appstream存储库: sudo dnf remove @mysql sudo dn..
1796
0
- JAVA 程序王 发表时间:2020-04-10 19:54:37
ffmpeg 降低视频分辨率并保证画质
建议用 -crf x, x 的范围是[0, 51], 越小表示清晰度越高。之前用 -crf 24 文件体积大概减小了 77%,清晰度没有明显变化。 ffmpeg -i 1.mp4 -s 1920x1080 -vcodec libx265 -crf 22 -acodec copy 2.mp4 #编码为 h.265 1080p 音频直接复制 f..
1134
0
- JAVA 程序王 发表时间:2020-04-08 18:20:25
ffmpeg语法
ffmpeg的一般语法是 ffmpeg -i 输入文件 各种参数 输出文件 常用的参数有 -i 文件(指定输入文件,可以是音频、视频、字幕、图片等资源,可以多次调用) -acodec 编码器(指定音频编码器,简写为”-c:a”,常用的有copy|opus|aac|libvorbis|mp3) -vcodec 编码器(指定视频编码器,简写为”-c..
557
0