FFmpeg MP3 Encoding Guide
This page describes how to use the external libmp3lame encoding library within ffmpeg to c 阅读更多
Using python’s eval() vs. ast.literal_eval()?
I have a situation with some code where eval() came up as a possible solution. Now I have 阅读更多
python遇到‘\u’开头的unicode编码
web信息中常会遇到“\u4f60\u597d”类型的字符。首先’\u‘开头就基本表明是跟unicode编码相关的,“\u”后的16进制字符串是相应汉字的utf-16编码。python里decode( 阅读更多
Which elliptic curve should I use?
I am currently renewing an SSL certificate, and I was considering switching to elliptic curves. Per& 阅读更多
给你的站点添加 DNS CAA 保护
什么是 DNS CAA 譬如说,你的站点已经启用了 HSTS,甚至已经被固化到了浏览器内部。但是一个中间人仍然劫持了你的连接。你走了 HTTPS 协议?没问题,我也搞到了一个你所访问域名的 阅读更多
Adjusting child processes for PHP-FPM (Nginx)
Problem: The following warning message appears in the logs: It means that there are not enough PHP-F 阅读更多
Convert .flac to .mp3 with ffmpeg
-q:a 0 tells ffmpeg to use the highest quality VBR. However, ffmpeg was transcoding my album art fro 阅读更多
Python 函数内修改全局变量
1)加上global x,则函数内部引用的x就是全局x了 (2)否则的话,变量名在等号左边,且在变量域内首次出现, 就认为是在定义局部变量。 (3)函数中如果定义了同名变量,就会覆盖对全局变量的引用 阅读更多
