结构体NSRange:用来表示范围创建NSRange r1 = {2, 4}NSRange r2 = {.location = 2, .length = 4}NSRange r3 = NSMakeRange(2, 4)查找某个字符串在str中的范围NSString *str = @"i love o...
分类:
其他好文 时间:
2014-10-18 22:19:24
阅读次数:
219
NSString *str1 = @"can you \n speak English"; NSString *str = @"\n"; //在str1这个字符串中搜索\n,推断有没有 if ([str1 rangeOfString:str].location != NSNotFo...
分类:
移动开发 时间:
2014-10-18 22:17:38
阅读次数:
235
相关配置NginxUpstream长连接由upstream模式下的keepalive指令控制,并指定可用于长连接的连接数,配置样例如下:upstreamhttp_backend{server127.0.0.1:8080;keepalive16;}server{...location/http/{proxy_passhttp://http_backend;proxy_http_version1.1;proxy_set_headerCon..
分类:
其他好文 时间:
2014-10-17 19:05:05
阅读次数:
219
--移除回车符
update master_location
SET street_number = REPLACE(street_number, CHAR(13), '')
--移除换行符
update master_location
SET street_number = REPLACE(street_number, CHAR(10), '')...
分类:
数据库 时间:
2014-10-17 15:36:28
阅读次数:
165
原文转自:http://zonble.net/archives/2010_09/1385.php在写 JavaScript 的时候,可以使用一个叫做 window 的对象,像是我们想要从现在的网页跳到另外一个网页的时候,就会去修改 window.location.href 的位置;在我们的 Obje...
分类:
移动开发 时间:
2014-10-17 13:23:54
阅读次数:
248
function setHomepage(){ var url = window.location.href; if (document.all) { document.body.style.behavior='url(#default#homepage)'; document....
分类:
其他好文 时间:
2014-10-17 11:49:18
阅读次数:
192
http://hljqfl.blog.163.com/blog/static/40931580201122210573364/在写ASP.Net程序的时候,我们常常遇到跳转页面的问题,我们常常使用Response.Redirect 做ASP.NET框架页跳转,假设客户要在跳转的时候使用提示,这个就不...
例程:#include void up_and_down(int);int main(void){ up_and_down(1); return 0;}void up_and_down(int n){ printf("level %d: n location %p\n", n, &...
分类:
其他好文 时间:
2014-10-17 11:00:04
阅读次数:
119
nginx的虚拟主机虚拟主机分三种:基于域名/IP/端口的虚拟主机vivirtual.confvinginx.confincludevirtual.conf;(注意末尾的分号)一个server就是一个webserver_name域名可以有多个,用空格隔开location定义的是URL,即域名root就是安装nginx的根目录
分类:
其他好文 时间:
2014-10-17 06:29:04
阅读次数:
160
If the current directory of the application. If e.g. you create a File by usingnew FileOutputStream("myfile")then it is created in the "current" direc...
分类:
编程语言 时间:
2014-10-17 02:45:43
阅读次数:
157