转帖:http://www.developersky.net/thread-63-1-1.html一直以来,HTTP协议都是严格遵循Request-Response模型的。客户端发送一个Request到服务器,服务器对Request作出响应并将Response发送回客户端。也就是说,所有的互动都是由...
分类:
Web程序 时间:
2014-08-15 14:27:38
阅读次数:
243
如果出现exc_bad_access错误,基本上是由于内存泄漏,错误释放,对一个已经释放的对象进行release操作。但是xcode有时候不会告诉你错误在什么地方(Visual Studio这点做得很好)。不过我们可以通过设置xcode环境变量环境变量NSZombieEnabled,Mallo...
分类:
数据库 时间:
2014-08-14 15:50:19
阅读次数:
221
1、在.proto文件中定义消息格式2、使用protobuf编译器3、使用c++ api来读写消息0、为何使用protobuf?1、原始内存数据结构,可以以二进制方式sent/saved.这种方式需要相同的内存布局和字节序。2、以ad-hoc方式将数据项编码成一个简单字符串----比如,将4个int...
分类:
编程语言 时间:
2014-08-14 01:15:47
阅读次数:
438
Putty使用公钥认证时,按照常规方法设置,一直报错:Disconnected: No supported authentication methods available (server sent:public key)。如截图:找了半天没找到问题出在哪里,sshd的设置一切正常。这个做过多次居然...
分类:
其他好文 时间:
2014-08-13 14:52:36
阅读次数:
933
2014-08-05 22:18:46.455 SwiftUI[1329:40871] -[_TtC7SwiftUI14MViewControler clickMe]: unrecognized selector sent to instance 0x10ea15dc02014-08-05 22:1...
分类:
移动开发 时间:
2014-08-06 01:26:00
阅读次数:
1261
8月5日,第一个项目即将完成,测试时,发现登录功能会出现小问题:记住密码的时候会报错Warning: Cannot modify header information - headers already sent by (output started at经过再三在百度上查询,终于查到错误的关键原因...
分类:
其他好文 时间:
2014-08-05 22:15:40
阅读次数:
195
Redirect "all" output to a single file: Run: test.bat?>?test.txt?2>&1 and you‘ll get this text on screen (we‘ll never get rid of this line on screen, as it is sent to the Console and cannot be r...
1.简介
在小米等一些机型,无法接收系统发出的短信广播。只能通过观察者ContentObserver,去监听短信数据的变化
2.SMS数据介绍
content://sms/inbox 收件箱
content://sms/sent 已发送
content://sms/draft 草稿
content://sms/outbox...
分类:
移动开发 时间:
2014-08-05 09:38:09
阅读次数:
364
At this point, we’ve sent draw calls down from our app all the way through various driver layers and the command processor; now,finallywe’re actual...
分类:
其他好文 时间:
2014-08-05 00:37:18
阅读次数:
343
最近的工作需要将工程打包成静态库文件,然后提供给别人使用。在工程中有引用MBProgressHUD,在打包出静态库文件后,写了个Demo,引用了其中的一段代码来显示MBProgressHUD,在iOS 6的设备上跑时却崩溃了,错误提示为:“-[__NSCFString sizeWithAttributes:]: unrecognized selector sent to XXXXXX”...
分类:
其他好文 时间:
2014-07-30 23:56:25
阅读次数:
276