- 浏览: 213042 次
- 性别:
- 来自: 遵义
-
最新评论
-
jquery_gz123:
你好,不好意思,好久没上论坛了。
一般有这样的情况,用户自定义 ...
对jquery验证框架form validation的改进 -
suxing:
jquery_gz123 写道传入方法校验,以及页面元素有上下 ...
对jquery验证框架form validation的改进 -
matychen:
有空试一试
对jquery验证框架form validation的改进 -
jquery_gz123:
传入方法校验,以及页面元素有上下文关系的校验貌似不行。
对jquery验证框架form validation的改进 -
tingbo717:
问问新疆同胞,断网是什么感觉。之前都不知道,我说怎么新疆消停了 ...
我们没有互联网
文章列表
用python来收取163邮件时,返回FETCH Fetch volume limit exceed的错误,
按 http://blog.sina.com.cn/s/blog_5ad2ece40100zl76.html 的说法,如果使用第三方程序,每天有一定的流量限制。
解决方法:联系在线客服,将流量清零,立即可用。
另外问了客服,VIP邮箱也有这个限制。
filezilla server开启被动模式,指定端口4800,
在centos6.9中使用ftp -p 或pftp以被动方式来连接。
按理说应该没问题,ls命令将开启数据传输通道:
ftp> ls500 [GAP] not permission ftp CMD PASVPassive mode refused.
被动模式被拒绝,这个跟filezilla server没关系,在ubuntu下是正常的。
查看filezilla server的日志发现,客户端LIST指令没有发送,也没有发送PASV指令,而是直接报错。
换到主动模式,(因为防火墙的关系,主动模式肯定是不行 ...
from PIL import Image
from io import BytesIO
import urllib.request
def getimg(url)
data = urllib.request.urlopen(url).read()
im = Image.open(BytesIO(data))
#...
img_file = BytesIO()
im.save(img_file, 'JPEG')
return img_file.getvalue()
在处理图片时,这个方式可以不使用临时文 ...
pyftpdlib内部使用utf8,而windows使用gbk,可以将pyftpdlib进行修改:
1、filesystems.py
AbstractedFS.format_list与AbstractedFS.format_list最后一行
yield line.encode('utf8', self.cmd_channel.unicode_errors)
utf8改为gbk
2、handlers.py
FTPHandler.decode
return bytes.decode('utf8', self.unicode_errors)
utf8改为gbk
htt ...
winxp默认会使用ipsec来加密l2tp,可以通过修改注册表来取消。win7好像没这个问题。
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Rasman\Parameters
Add the following registry value to this key:Value Name: ProhibitIpSecData Type: REG_DWORDValue: 1
https://support.microsoft.com/en-us/help/258261/disabling-ipsec-policy-u ...
线程同步机制: Locks, RLocks, Semaphores, Conditions, Events和Queues
http://yoyzhou.github.io/blog/2013/02/28/python-threads-synchronization-locks/
http://xiaorui.cc/2015/07/10/%E6%89%AF%E6%89%AFpython%E7%9A%84%E5%A4%9A%E7%BA%BF%E7%A8%8B%E7%9A%84%E5%90%8C%E6%AD%A5%E9%94%81-lock-rlock-semaphore-event-condi ...
开始报的这个:
command SEARCH illegal in state AUTH, only allowed in states SELECTED
死活找不到原因,Traceback里提示:
File "/usr/lib/python3.5/imaplib.py", line 863, in uid
', '.join(Commands[command])))
于是打开imaplib.py找SELECTED,在731行找到:
self.state = 'AUTH' # Might have been 'SELECTE ...
sms
https://globfone.com/send-text/
phone
https://www.sendatext.co/
环境变量的问题,归根是字符编码的问题。各种弯路。
办法如下:
crontab -e
#开头加入
LC_CTYPE="zh_CN.utf-8"
https://indovirtue.com/ 对大陆速度好
https://www.gigsgigscloud.com/hongkong-openvz/
http://www.germanvps.com/ger-linux-vps-ovz.php
https://sentris.net/
https://iniz.com/singapore-vps
https://xvmlabs.com/
https://www.vpscheap.net/pricing.aspx
https://virmach.com/
https://w ...
突发奇想,在演示app时需将手机屏幕直播,
通过livescreen可以实现,浏览器访问手机即可,
源文件中有如下内容:<img id="screen" src="screen.mjpeg" alt="Loading..." />
通过:
ffmpeg -i http://192.168.173.108:8080/screen.mjpeg -an out.mp4
可以将直播流录下来。
关于mjpeg:
MJPEG 的格式是以JPEG 格式存贮的图片序列,里面没有视频的时间信息,也就没有帧速率的 ...
ffmpeg -f gdigrab -i desktop -r 10 out.webm
ffmpeg -r 5 -f vfwcap -i 0 -s 176x144 -f rawvideo -pix_fmt yuv420p ss.yuv
.webm: html5 video type
-r: frame rate
-an: disable audio
http://blog.sina.com.cn/s/blog_53b3dc830100mrd0.html
About Privoxy:
https://www.privoxy.org/
Config file on mac:
/usr/local/etc/privoxy/config
listen-address 127.0.0.1:8118forward-socks5t / 127.0.0.1:1080 .
Starting and stopping:
cd /Applications/Privoxy sudo ./startPrivoxy.sh or sudo ./stopPrivoxy.sh
workflow:
browser -> http/ht ...
将本地端的id_rsa.pub添加到服务端的authorized_keys的两种方式:
1、直接操作文件
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
2、通过命令
ssh-copy-id -i id_rsa.pub user@hostname
ssh-copy-id会检测id_rsa私钥文件是否存在,可以touch id_rsa即可。
http://www.jianshu.com/p/848e982df6be
ping.pe
通过位于世界各地的32台服务器,其中有数个是国内的服务器,来ping某个ip。至于作用,你懂的。
17ce.com
除了ping还可get,服务器遍布各省,也有境外,最赞的是将速率以不同颜色展示在地图上。
ipinfo.io
获取某ip的相关信息,提供多种API调用方式。
https://httpbin.org/ip
返回ip,json格式,如有2个ip,第一个为本机的源ip,第二个为代理服务器ip