首页
关于
友链
便签
统计
Search
1
QQ闪照如何查看 2022.7.29
398 阅读
2
Cloudreve挂载本机存储目录
343 阅读
3
Debian10 升级内核5.10
323 阅读
4
docker映射端口部署wikihost Looking-glass Server (ALS)
225 阅读
5
使用Docker部署HTML5 - Speedtest
163 阅读
默认分类
服务器
生活有感
哲思
诗词
AI
Linux
MySQL
Photoshop
Web建站
Cloudreve
Typecho
编程
Java
登录
Search
标签搜索
Linux
windows
web建站
win10
nginx
五哲
debian
docker
vps
CF
iptables
端口
apt
yum
java
自动更新
jia
HTML
内核
CF Workers
史沛思
累计撰写
66
篇文章
累计收到
54
条评论
首页
栏目
默认分类
服务器
生活有感
哲思
诗词
AI
Linux
MySQL
Photoshop
Web建站
Cloudreve
Typecho
编程
Java
页面
关于
友链
便签
统计
搜索到
62
篇与
的结果
2022-11-11
Windows 操作
添加环境变量setx /m PATH "C:\ffmpeg\bin;%PATH%" 重启桌面taskkill /f /im explorer.exe start explorer.exe文件管理器卡死关闭这个功能,或者重启explore.exe 右键菜单变宽可能是PyCharm或者AMD Software名称过长导致的,进入注册表删除或者使用火绒工具箱禁用就好了HKEY_CLASSES_ROOT\Directory\Background\shell\PyCharm
2022年11月11日
56 阅读
0 评论
0 点赞
2022-11-11
Windows10 ltsc 2019 关闭自动更新
打开计算机管理→服务和应用程序→服务找到“Windows Update”双击打开属性,默认的是更新方式是手动或自动,我们要禁止更新就需要将启动类型更改为“禁用”后点击应用确定,这样就关闭了自动更新。::(捂嘴笑)
2022年11月11日
33 阅读
2 评论
0 点赞
2022-11-09
HTML爱心代码
<!doctype html> <html> <head> <meta charset="utf-8"> <title>canvas爱心</title> <style> html, body { height: 100%; padding: 0; margin: 0; background: #000; } canvas { position: absolute; width: 100%; height: 100%; }</style> </head> <body> <canvas id="pinkboard"></canvas> <script> /* * Settings */ var settings = { particles: { length: 500, // maximum amount of particles duration: 2, // particle duration in sec velocity: 100, // particle velocity in pixels/sec effect: -0.75, // play with this for a nice effect size: 30, // particle size in pixels }, }; /* * RequestAnimationFrame polyfill by Erik M?ller */ (function(){var b=0;var c=["ms","moz","webkit","o"];for(var a=0;a<c.length&&!window.requestAnimationFrame;++a){window.requestAnimationFrame=window[c[a]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[c[a]+"CancelAnimationFrame"]||window[c[a]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame){window.requestAnimationFrame=function(h,e){var d=new Date().getTime();var f=Math.max(0,16-(d-b));var g=window.setTimeout(function(){h(d+f)},f);b=d+f;return g}}if(!window.cancelAnimationFrame){window.cancelAnimationFrame=function(d){clearTimeout(d)}}}()); /* * Point class */ var Point = (function() { function Point(x, y) { this.x = (typeof x !== 'undefined') ? x : 0; this.y = (typeof y !== 'undefined') ? y : 0; } Point.prototype.clone = function() { return new Point(this.x, this.y); }; Point.prototype.length = function(length) { if (typeof length == 'undefined') return Math.sqrt(this.x * this.x + this.y * this.y); this.normalize(); this.x *= length; this.y *= length; return this; }; Point.prototype.normalize = function() { var length = this.length(); this.x /= length; this.y /= length; return this; }; return Point; })(); /* * Particle class */ var Particle = (function() { function Particle() { this.position = new Point(); this.velocity = new Point(); this.acceleration = new Point(); this.age = 0; } Particle.prototype.initialize = function(x, y, dx, dy) { this.position.x = x; this.position.y = y; this.velocity.x = dx; this.velocity.y = dy; this.acceleration.x = dx * settings.particles.effect; this.acceleration.y = dy * settings.particles.effect; this.age = 0; }; Particle.prototype.update = function(deltaTime) { this.position.x += this.velocity.x * deltaTime; this.position.y += this.velocity.y * deltaTime; this.velocity.x += this.acceleration.x * deltaTime; this.velocity.y += this.acceleration.y * deltaTime; this.age += deltaTime; }; Particle.prototype.draw = function(context, image) { function ease(t) { return (--t) * t * t + 1; } var size = image.width * ease(this.age / settings.particles.duration); context.globalAlpha = 1 - this.age / settings.particles.duration; context.drawImage(image, this.position.x - size / 2, this.position.y - size / 2, size, size); }; return Particle; })(); /* * ParticlePool class */ var ParticlePool = (function() { var particles, firstActive = 0, firstFree = 0, duration = settings.particles.duration; function ParticlePool(length) { // create and populate particle pool particles = new Array(length); for (var i = 0; i < particles.length; i++) particles[i] = new Particle(); } ParticlePool.prototype.add = function(x, y, dx, dy) { particles[firstFree].initialize(x, y, dx, dy); // handle circular queue firstFree++; if (firstFree == particles.length) firstFree = 0; if (firstActive == firstFree ) firstActive++; if (firstActive == particles.length) firstActive = 0; }; ParticlePool.prototype.update = function(deltaTime) { var i; // update active particles if (firstActive < firstFree) { for (i = firstActive; i < firstFree; i++) particles[i].update(deltaTime); } if (firstFree < firstActive) { for (i = firstActive; i < particles.length; i++) particles[i].update(deltaTime); for (i = 0; i < firstFree; i++) particles[i].update(deltaTime); } // remove inactive particles while (particles[firstActive].age >= duration && firstActive != firstFree) { firstActive++; if (firstActive == particles.length) firstActive = 0; } }; ParticlePool.prototype.draw = function(context, image) { // draw active particles if (firstActive < firstFree) { for (i = firstActive; i < firstFree; i++) particles[i].draw(context, image); } if (firstFree < firstActive) { for (i = firstActive; i < particles.length; i++) particles[i].draw(context, image); for (i = 0; i < firstFree; i++) particles[i].draw(context, image); } }; return ParticlePool; })(); /* * Putting it all together */ (function(canvas) { var context = canvas.getContext('2d'), particles = new ParticlePool(settings.particles.length), particleRate = settings.particles.length / settings.particles.duration, // particles/sec time; // get point on heart with -PI <= t <= PI function pointOnHeart(t) { return new Point( 160 * Math.pow(Math.sin(t), 3), 130 * Math.cos(t) - 50 * Math.cos(2 * t) - 20 * Math.cos(3 * t) - 10 * Math.cos(4 * t) + 25 ); } // creating the particle image using a dummy canvas var image = (function() { var canvas = document.createElement('canvas'), context = canvas.getContext('2d'); canvas.width = settings.particles.size; canvas.height = settings.particles.size; // helper function to create the path function to(t) { var point = pointOnHeart(t); point.x = settings.particles.size / 2 + point.x * settings.particles.size / 350; point.y = settings.particles.size / 2 - point.y * settings.particles.size / 350; return point; } // create the path context.beginPath(); var t = -Math.PI; var point = to(t); context.moveTo(point.x, point.y); while (t < Math.PI) { t += 0.01; // baby steps! point = to(t); context.lineTo(point.x, point.y); } context.closePath(); // create the fill context.fillStyle = '#ea80b0'; context.fill(); // create the image var image = new Image(); image.src = canvas.toDataURL(); return image; })(); // render that thing! function render() { // next animation frame requestAnimationFrame(render); // update time var newTime = new Date().getTime() / 1000, deltaTime = newTime - (time || newTime); time = newTime; // clear canvas context.clearRect(0, 0, canvas.width, canvas.height); // create new particles var amount = particleRate * deltaTime; for (var i = 0; i < amount; i++) { var pos = pointOnHeart(Math.PI - 2 * Math.PI * Math.random()); var dir = pos.clone().length(settings.particles.velocity); particles.add(canvas.width / 2 + pos.x, canvas.height / 2 - pos.y, dir.x, -dir.y); } // update and draw particles particles.update(deltaTime); particles.draw(context, image); } // handle (re-)sizing of the canvas function onResize() { canvas.width = canvas.clientWidth; canvas.height = canvas.clientHeight; } window.onresize = onResize; // delay rendering bootstrap setTimeout(function() { onResize(); render(); }, 10); })(document.getElementById('pinkboard'));</script> </body> </html>
2022年11月09日
27 阅读
0 评论
0 点赞
2022-11-09
Java运算
java支持的运算有算数运算比较运算逻辑运算赋值运算位运算自增自减运算条件运算符移位运算字符串连接运算符算数运算:+,-,*,/(除法),%(求余,取模)除法 i/j=商……余数 34/60的商是0 余数34求商:整数/整数=整数(商)求余数:整数%整数=整数(余数) 34%60=34判断一个数是否能被另一个数整除:看余数是否为0,若为零则表示能整除。例如:60%60=0 120%60=0 240%60=0比较运算:比较运算符有: java >,>=,<,<=,==(等于) ,!=(不等于)比较运算结果:是一个布尔类型(boolean)值,布尔类型值域为ture,false例如:i>j= i>=j= i<j= i<=j= i==j= i!=j=逻辑运算:逻辑运算符:&,&&,|,||,!,即逻辑与,逻辑或,逻辑非。逻辑运算符只能对boolean数据进行操作,返回值仍是boolean,即ture或false &,&&是逻辑与,运算规则是:只有两个操作数都为ture时,结果才返回ture例如 true&&true=true true&&false=false false&&false=false[0,100] x>=0 && x<=100 |,||是逻辑或,运算规则是:如果操作数是false,结果才为false true||true=false true||false=true false||true=true false||false=true !是逻辑非,运算规则是:如果操作数是false,结果就为true,如果操作数是true,结果就为false即取反的运算。 !false=true !true=false ^是逻辑异或,运算规则是:只有两个数不同,结果才为true。 &&短路与 ||短路或 ##### 自增自减运算: 自增运算符:++,功能是将自身增加1,例如:int k=0; k++;++k;k=2自减运算符:--,功能是将自身减少1,例如:int k=0; k--;--k;k=若为后缀运算,规则是:先计算(赋值),后自增(自减)若为前置运算,规则是:先自增(自减),后计算(赋值)运算的优先级:{},(),[]优先于!、++、--优先于*、/、%优先于>,>=,<=,==,!=
2022年11月09日
13 阅读
0 评论
0 点赞
2022-11-09
LINUX常用命令
LINUX基础sudo -i ##切换root apt update ##检查包更新 apt upgrade ##执行包更新 ss -tulpn | grep 53 ##查看端口占用 yum install wget ##yum安装wget apt-get install wget ##apt安装wget apt --fix-broken install apt-get install iperf3 ##apt安装iperf3 iperf3 -s ##开启服务端 iperf3 -c 22.33.44.55 ##客户端默认连接 iperf3 -s -p 114514 ##服务器指定端口114514 iperf3 -c 23.106.80.18 -p 35009 -t 50 ##客户端指定连接114514端口 50连接次? apt --fix-broken install apt-get install curl ##安装curl #### 测试端口连通性 curl ip:port wget ip:port telnet ip port ssh -v -p port username@ip ssh -v -p 22
[email protected]
-v 调试模式(会打印日志). -p 指定端口 username:远程主机的登录用户 ip:远程主机 ## 安装wget:yum -y install wget 换源: wget git.io/superupdate.sh 站长工具:http://ping.chinaz.com/ 编辑hosts:vi /etc/hosts apt-get install lsof ##安装lsof命令 lsof -i:443 ##利用lsof命令查看端口占用的进程号 kill -9 8888 ##此处的8888为进程PID号防火墙firewallfirewall-cmd --zone=public --add-port=114514/tcp --permanent ##开启114514端口 firewall-cmd --zone=public --permanent --add-service=http ##开启80端口 firewall-cmd --zone=public --permanent --add-service=https ##开启443端口 firewall-cmd --reload ##重载配置 systemctl stop firewalld.service ##停止firewalld服务stop/start/retart systemctl disable firewalld.service ##关闭firewalld服务disable/enableiptablesapt-get install iptables ##安装iptables iptables -I INPUT -p tcp --dport 114514 -j ACCEPT ##放行114514端口 iptables-save ##保存防火墙规则,重启失效 apt-get install iptables-persistent ##安装iptables-persistent netfilter-persistent save ##保存规则持续生效 netfilter-persistent reload ##重载配置 iptables -L ##查看防火墙规则Dockerdocker container ls ##查看所有正在运行的 docker docker logs -f dockername ##查看选定 docker 的 log docker rm -f dockername ##删除指定 docker docker system df ##查看容器使用的磁盘空间 docker system prune -a ##对 docker 进行全面垃圾回收 docker logs --tail=100 ss-rust ##docker查看100行日志 service docker restart ##重启docker服务
2022年11月09日
71 阅读
0 评论
0 点赞
2022-11-09
你们怎么办?只有天知道!
1975年,他已经垂垂老矣,做完白内障手术没多久,一只眼睛刚刚能看东西,他就去看书。有一天,眼科大夫陪他看书,却发现看着看着,他突然发出一阵呜咽声。大夫赶忙抬头,他不知为何,捧着古书哭了出来。大夫赶紧起身去劝:你不能哭,千万不能哭,眼睛要坏的!"但是他还是控制不住自己,抱着古书,一时间哭得老泪纵横,肝肠寸断。大夫靠近去看,他读的是南宋陈亮的词念奴娇《登多景楼》危楼还望,叹此意、今古几人曾会。鬼设神施,浑认作、天限南疆北界。一水横陈,连岗三面,做出争雄势。六朝何事,只成门户私计。六朝何事?只成门户私计。那一刻,岁月塌了下来,重重地压在了他的身上。他老了,他的时间不够了,他一个人的肩膀再也无法扛起这片天了。他努力过,战斗过,和数千年的兴亡铁律殊死搏斗过,他真的如同太阳一样,把自己的生命都燃烧殆尽,只想要为天下苍生驱逐黑暗,鞠躬尽瘁,死而后已!但是在残酷的现实面前,在顽固的人性面前,他一败涂地。 你们怎么办?只有天知道!
2022年11月09日
41 阅读
0 评论
0 点赞
2022-10-15
提高做事的专注力的六种方法
1. 1-3-5 待办清单法则给自己每天要做的事情设限,并排出优先顺序:每天安排1件重要任务,3件中等任务,5件小型琐事,避免瞎忙。2. 番茄工作法每工作25分钟,就休息5分钟,是一个番茄钟;然后,重复四个番茄钟后,就多休息一会儿,例如15分钟~30分钟。”3. 任务切换法消耗了时间和精力,却没什么产出;立即根据任务清单进行下一个任务。4. 延迟满足法在工作学习的过程中,尽量不要让自己开始这些事情,而是设定一个时间,延迟你想玩的冲动。5. 思绪落地法把脑海中冒出来的这个想法写下来,让它落地。准备一个笔记本,放在工作桌旁边,当你在工作、学习时,如果脑袋里蹦出了任何想法,就先把它写到笔记本上,让自己安心回到工作学习中,等任务结束后再去处理或探究。6. 减少干扰法主动的去调整或规避那些(可能)影响你的事物。带耳机,设置手机可用时间,删除色群与娱乐软件。
2022年10月15日
11 阅读
0 评论
0 点赞
2022-09-28
helloworld.java
public class helloworld { public static void main(String[] args) { System.out.println("helloworld"); } } //用java语言编写的源程序,叫做java源程序,扩展名是 .java //java是高级语言,不能直接被计算机执行,,需要编译后执行 //编译器由jdk提供,即javac命令编辑后保存为.java文件javac命令编译,生成字节码.class文件java命令运行字节码程序,省略后缀。class 是类的关键词 helloworld是类名main 是主方法 ()是方法标识String 是字符串类 []是数组标识args是字符串数组的名称public公有的,公共的static静态的void无返回类型print打印ln=line next 下一行println打印下一行
2022年09月28日
45 阅读
1 评论
1 点赞
1
...
5
6
7
8