2014-07-12 14:21:40
如何防劫持,防DNS劫持,防域名劫持
[ 2017-04-25 15:34:55 | Author: zhenhua ]
1.首先需要购买SSL证书,可以到这里购买 https://chinaspace.taobao.com/
2.安装SSL后启用HSTS (如需协助可以加腾讯q:8766167)
1).Apache 下启用HSTS,配置参考:
配置文件里打开这行虚拟主机443配置里增加一行:------------------------------
2).Nginx 下启用HSTS,配置参考:
server配置里增加这行:
...
Read More...
2.安装SSL后启用HSTS (如需协助可以加腾讯q:8766167)
1).Apache 下启用HSTS,配置参考:
配置文件里打开这行
Quote
LoadModule headers_module modules/mod_headers.so
Quote
<VirtualHost www.test.com:443>
//下面增加这行:
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"
</VirtualHost>
//下面增加这行:
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"
</VirtualHost>
2).Nginx 下启用HSTS,配置参考:
server配置里增加这行:
...
Read More...
You don't have the permission to view this Article.
Tesseract-OCR 安装
[ 2015-10-30 09:54:45 | Author: zhenhua ]
编译环境: gcc gcc-c++ make(这个环境一般机器都具备,可以忽略) 依赖的包: autoconf automake libtool libjpeg-devel libpng-devel libtiff-devel zlib-devel leptonica(1.67以上)
1. autoconf automake libtool libjpeg-devel libpng-devel libtiff-devel zlib-devel 可以通过yum安装:2. leptonica 需要源码编译安装
参考资料:
http://paramountideas.com/tesseract-ocr-30-and-leptonica-instal...
Read More...
Quote
yum install gcc gcc-c++ make
1. autoconf automake libtool libjpeg-devel libpng-devel libtiff-devel zlib-devel 可以通过yum安装:
Quote
yum install autoconf automake libtool
yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel
yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel
参考资料:
http://paramountideas.com/tesseract-ocr-30-and-leptonica-instal...
Read More...
You don't have the permission to view this Article.
JSP 空间 虚拟主机 JAVA 空间 虚拟主机 Tomcat 虚拟主机 最低年付150元
[ 2014-07-27 17:15:41 | Author: zhenhua ]
JSP 空间 虚拟主机 JAVA 空间 虚拟主机 Tomcat 虚拟主机 最低年付150元
链接在这里:http://chinaspace.taobao.com/category-853080947.htm?spm=a1z10.1.w4010-932903928.14.MSIN57&search=y&parentCatId=830389399&parentCatName=%D0%E9%C4%E2%D6%F7%BB%FA&catName=JAVA%D6%F7%BB%FA#bd
链接在这里:http://chinaspace.taobao.com/category-853080947.htm?spm=a1z10.1.w4010-932903928.14.MSIN57&search=y&parentCatId=830389399&parentCatName=%D0%E9%C4%E2%D6%F7%BB%FA&catName=JAVA%D6%F7%BB%FA#bd
https证书 SSL证书购买推荐,可开发票 Verisign/GeoTrust/Comodo
[ 2014-07-27 09:27:47 | Author: zhenhua ]
https证书 SSL证书 域名证书 购买推荐
可购买以下品牌,Verisign/Symantec/GeoTrust/Comodo
地址:http://chinaspace.taobao.com/category-905637696.htm?spm=a1z10.1.w5002-932903917.4.9jxc04&search=y&catName=SSL%D6%A4%CA%E9
可购买以下品牌,Verisign/Symantec/GeoTrust/Comodo
地址:http://chinaspace.taobao.com/category-905637696.htm?spm=a1z10.1.w5002-932903917.4.9jxc04&search=y&catName=SSL%D6%A4%CA%E9
Chrome DevTools Using the Console
[ 2013-06-17 21:10:29 | Author: zhenhua ]
Intellij IDEA Replacing Text with Regex 正则表达式替换字符
[ 2013-05-29 11:06:14 | Author: zhenhua ]
JetBrains Intellij IDEA
Replacing Text with Regex
使用正则表达式替换字符串
\stitle="(.*)?"\s*(/>*)
替换为 2$<title>1$</title>
start typing regular expression that describes all title attributes. Note that though the regular expression \stitle=".*?"\s*[/>]* matches contents of the title attribute, it is recommended to capture the groups for referencing them in the Replace field: \stitle="(.*)?"\s*(/>*)
Replacing Text with Regex
使用正则表达式替换字符串
\stitle="(.*)?"\s*(/>*)
替换为 2$<title>1$</title>
start typing regular expression that describes all title attributes. Note that though the regular expression \stitle=".*?"\s*[/>]* matches contents of the title attribute, it is recommended to capture the groups for referencing them in the Replace field: \stitle="(.*)?"\s*(/>*)