在Firefox Monitor中可以提供订阅邮件的信息泄露事件的提醒,添加电子邮件地址后,在发生密码外泄事件后,会发送泄露提醒。
可以在外泄事件中,查看最近的信息泄露事件
springboot thymeleaf不渲染页面返回字符串
错误信息:
1 | This application has no explicit mapping for /error, so you are seeing this as a fallback. |
@RestController 与 @Controller
bing2 网站页面加载优化
网站:http://bing.tzz6.xyz
编写的最初版本的页面加载速度过慢,而且要等待主页所有图片都加载完成才能进入网站主页,所以后续版本对页面的加载速度进行了优化。由于主页是使用瀑布流方式进行展示的,所以最先加入了懒加载的显示方式来保证缩短进入主页的加载时间。加入图片懒加载后,主页中放置的原图同样需要很长的请求下载时间,所以后来修改为了生成缩略图进行展示,然后主页启用腾讯CDN加速,加快图片加载速度。
数据库 内连接 左外连接 右外连接 全外连接
内连接
内连接中,只有满足连接条件的元组才能作为结果输出,即当任一个表中为null则不会输出。
SQL 语句:1
2
3SELECT FIRST.Cno,SECOND.Cpno
FROM Course FIRST,Course SECOND
WHERE FIRST.Cpno=SECOND.Cno;
左外连接
如果在查询时需要保留一个表中全部的元组,就需要使用外连接。
SQL1
2SELECT Student.Sno,Sname,Ssex,Sage,Sdept,Cno,Grade
FROM Student LEFT JOIN SC ON (Student.Sno=SC.Sno)
LEFT JOIN
与 LEFT OUTER JOIN
相同
使用左外连接会保存左边关系(表Student)中所有的元组以及右边关系(表SC)符合条件的元组。
在Docker Alpine中安装uwsgi
uWSGI是一个由unbit提供的Web应用服务器,实现了WSGI规范。
在Docker中下载了一个 python:3.6-alpine
的镜像,相比其它版本,更加精简。但同时也缺少了很多必要的包,在镜像中直接安装uwsgi
时会发生错误。
pip install uwsgi
可能会产生无法编译或找不到python包的头文件错误。
解决办法
1 | apk add --no-cache gcc make libc-dev linux-headers pcre-dev |
Dockerfile
1 | FROM python:3.6-alpine |
CDN HTTPS 配置
CentOS7 PHP5.6 upgrade to PHP7.2
服务器信息
CentOS 7.5
Apache 2.4
PHP 5.6
查找已安装的 PHP Package
使用yum list installed | grep "php"
查找已安装的php package,存档1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20[[email protected] ~]# yum list installed | grep "php"
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
php56w.x86_64 5.6.39-1.w7 @webtatic
php56w-cli.x86_64 5.6.39-1.w7 @webtatic
php56w-common.x86_64 5.6.39-1.w7 @webtatic
php56w-fpm.x86_64 5.6.39-1.w7 @webtatic
php56w-gd.x86_64 5.6.39-1.w7 @webtatic
php56w-ldap.x86_64 5.6.39-1.w7 @webtatic
php56w-mbstring.x86_64 5.6.39-1.w7 @webtatic
php56w-mcrypt.x86_64 5.6.39-1.w7 @webtatic
php56w-mysqlnd.x86_64 5.6.39-1.w7 @webtatic
php56w-pdo.x86_64 5.6.39-1.w7 @webtatic
php56w-xml.x86_64 5.6.39-1.w7 @webtatic