support UTF-8 URIEncoding with Tomcat: <Connector port="8080" protocol="HTTP/1.1" ? ? ? ? ? ? ? ?connectionTimeout="20000" ? ? ? ? ? ? ? ?redirectPort="8443" URIEncoding="UTF-8"/> ?...
分类:
其他好文 时间:
2015-07-22 16:44:02
阅读次数:
115
在securecrt远程工具中,使用roto登陆的时候,出现了Theserverhasdisconnectedwithan
error.Servermessagereads:Aprotocolerroroccurred.Changeof
usernameorservicenotallowed:(shang1,ssh-connection)->
(shang,ssh-connection)这是因为sshd中禁用了root账户远程登录。修..
分类:
其他好文 时间:
2015-07-22 16:33:03
阅读次数:
239
出现错误:Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.解决:因为我是以文件的...
分类:
Web程序 时间:
2015-07-22 12:38:19
阅读次数:
154
使用session方法###
importwinrm
s=winrm.Session(‘http://10.10.60.14:5985/wsman‘,auth=(‘administrator‘,‘password‘))
r=s.run_ps(‘dir‘)
r=s.run_cmd(‘cd/dd:&test.bat‘)
printr.std_out
printr.std_err使用Protocol方法###
importwinrm
conn=winrm.Protocol(endpoint=..
分类:
编程语言 时间:
2015-07-21 18:59:37
阅读次数:
419
Objective-c中提供了可以让我们扩展类定义的手段:类目,延展和协议。类目:为已知的类增加新的方法;延展:通知在本类的定义里使用类目来声明私有方法;协议:协议声明了可以被任何类实现的方法。注意:这些手段只能增加类的方法,并不能用于增加实例变量,要增加类的实例变量,只能通过定义子类来间接实现。1...
分类:
其他好文 时间:
2015-07-21 12:27:00
阅读次数:
130
开题篇最近公司在使用Protocol Buffer替代原先的json作为移动端的数据交互格式,尽管服务端和CTO把这项新技术吹的天花乱坠,说什么体积小,不易被破解乱七八糟的,但是作为Android端人员,我只关心数据如何解析的问题。折腾了两天,最终解析成功,我来分享下我的过程,有什么更好的建议大家都提提。 生成Java实体类篇网上找了一大堆的攻略,都是讲protocol的下载与编译,给的链接大部分...
分类:
移动开发 时间:
2015-07-21 10:50:15
阅读次数:
433
Point to Point Connection PPP is a protocol that is able to handle authentication, compression, error detection, monitor link quality, and logically b...
分类:
其他好文 时间:
2015-07-20 23:05:53
阅读次数:
267
这篇文章主要介绍了网络协议概述:物理层、连接层、网络层、传输层、应用层详解,本文用生活中的邮差与邮局来帮助理解复杂的网络协议,通俗易懂,文风幽默,是少见的好文章,需要的朋友可以参考下信号的传输总要符合一定的协议(protocol)。比如说长城上放狼烟,是因为人们已经预先设定好狼烟这个物理信号代表了“...
分类:
其他好文 时间:
2015-07-20 21:28:37
阅读次数:
110
TCP(Transmission Control Protocol) 传输控制协议TCP是主机对主机层的传输控制协议,提供可靠的连接服务,采用三次握手确认建立一个连接:位码即tcp标志位,有6种标示:SYN(synchronous建立联机) ACK(acknowledgement 确认) PSH(p...
分类:
其他好文 时间:
2015-07-20 18:47:36
阅读次数:
240
1、.h文件中声明代理 @protocol ExchangePointArrayDelegate
-(void)exchangePointsIn:(NSArray *)pointarray; //用来传递exchangePoints这个数组的代理方法
@end
@property (weak , nonatomic) id delegate; 声明这个delegate必须使用weak...
分类:
移动开发 时间:
2015-07-20 16:35:00
阅读次数:
127