如果方法是没有返回值的,需要强转一个返回类型为void的临时函数指针,void (*objc_msgSendTyped)(id self, SEL _cmd, id obj, id arg1) = (void *)objc_msgSend;objc_msgSendTyped(self, addedS...
分类:
移动开发 时间:
2014-12-25 16:13:09
阅读次数:
271
2014-12-23 18:31:23 org.apache.jk.common.MsgAjp processHeader严重: BAD packet signature 205592014-12-23 18:31:23 org.apache.jk.common.ChannelSocket proc...
分类:
其他好文 时间:
2014-12-23 19:25:20
阅读次数:
402
试用Nginx + PHP FastCGI 做WEB服务器,运行了几个月的时间,烦恼的是经常碰到Nginx 502 Bad Gateway 这个问题。参考了很多修改办法,这个502的问题一直存在,今天打算重装PHP FastCGI到PHP的安装目录里一看,发现PHP的日志文件已经有几十M的大小,打开...
分类:
其他好文 时间:
2014-12-20 15:30:38
阅读次数:
312
nginx502BadGateway错误问题收集(2010-11-18 13:51:37)转载▼标签:杂谈分类:工作nginx 502 Bad Gateway 错误问题收集因为,nginx和lighttpd的文档真的很少,更不用说中文文档了,所以收集一些和502有关的错误在这里,保留来源地址,建议看...
分类:
其他好文 时间:
2014-12-19 11:57:07
阅读次数:
206
上次做项目的时候,因为将delegate声明成assign类型,导致了程序EXC_BAD_ACCESS异常。结果发现是assign与weak的最大区别
它们都是弱引用声明类型,最大的区别在那呢?
如果用weak声明的变量在栈中就会自动清空
如果用assign声明的变量在栈中可能不会自动赋值为nil,就会造成野指针错误!...
分类:
移动开发 时间:
2014-12-19 00:40:15
阅读次数:
159
一个服务器程序,长时间运行报错了. ----------- terminate called after throwing an instance of 'std::bad_alloc' what(): St9bad_alloc ----------- 据查为内存不足所致 new 无法分配到相应内存...
分类:
其他好文 时间:
2014-12-17 09:40:45
阅读次数:
153
本文暂且叫这个名吧,因为不是很理解 Selinux ,也许你有更好的办法请告知我!
一、问题现象
Nginx 启动后本机可以正常访问,使用Curl 命令可以获取默认 index.html,其他界面均不可访问。远程访问服务器时提示 400 bad request 信息,检查Nginx用户权限和端口都正常,iptables 未启动。
# curl -I localhost
HTTP/1.1 20...
分类:
系统相关 时间:
2014-12-15 21:52:35
阅读次数:
268
1660: [Usaco2006 Nov]Bad Hair Day 乱发节Time Limit:2 SecMemory Limit:64 MBSubmit:665Solved:318[Submit][Status]DescriptionInput* Line 1: 牛的数量 N。* Lines 2....
分类:
其他好文 时间:
2014-12-14 21:10:16
阅读次数:
173
Directives have dependencies too, and you can use dependency injection to provide services for your directives to use.Bad: If you want to use in anot....
分类:
Web程序 时间:
2014-12-13 21:47:19
阅读次数:
297
First Bad Version http://lintcode.com/en/problem/first-bad-versionThe code base version is an integer and start from 1 to n. One day, someone commit.....
分类:
其他好文 时间:
2014-12-13 21:42:22
阅读次数:
398