How do I insert a space to a NSString.I need to add a space at index 5 into:NString * dir = @"abcdefghijklmno";To get this result:abcde fghijklmnowith...
分类:
其他好文 时间:
2014-07-14 21:12:21
阅读次数:
175
How to check if NSString begins with a certain characterHow do you check if an NSString begins with a certain character (the character *).The * is an ...
分类:
其他好文 时间:
2014-07-14 20:51:24
阅读次数:
177
HttpWebResponse类的作用用于在客户端获取返回的响应的信息,还记得HttpResponse类吗?你是否在写B/S程序的时候,经常用到Response.Write()呢? HttpResponse用于在服务器端设置服务端的响应信息,而HttpWebResponse类用于客户端获取服务器端....
分类:
Web程序 时间:
2014-07-14 20:14:34
阅读次数:
253
jQuery是一个兼容多浏览器的javascript框架,核心理念是write less,do more(写得更少,做得更多)。1:jQuery使用 src中的路径可以是自己下载的,也可以用Google或者ie的CDN分发的版本使用谷歌或微软的 jQuery,有一个很大的优势:许多用户...
分类:
Web程序 时间:
2014-07-14 20:04:08
阅读次数:
335
1) http://ruby-hacking-guide.github.io/intro.htmlIt has one part to discuss “Technique to read source code”. BTW, you could download kindle file from....
分类:
其他好文 时间:
2014-07-14 19:44:11
阅读次数:
271
Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For ...
分类:
其他好文 时间:
2014-07-14 19:33:04
阅读次数:
215
/*
M - 广搜 加强
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu
Submit
Status
Practice
ZOJ 2412
Description
Benny has a spacious farm land to irrigate. The farm land is a...
分类:
其他好文 时间:
2014-07-14 17:21:18
阅读次数:
297
接到现场实施的反馈:现在有一系统慢,整个系统卡住了。诊断过程:
1. 检查应用日志,即weblogic日志,发现有堵塞的线程,查到代码是调用的接口
<ExecuteThread: '7' for queue: 'default' has been busy for "994" seconds working on the request "Http Request: /we...
分类:
其他好文 时间:
2014-07-14 17:05:52
阅读次数:
241
#!/usr/bin/pythonimportredefbuffer_line():buf=open("/etc/sae/buffer_1").read()ifnotbuf:return0else:returnint(re.findall("^\d*",buf)[0])defset_last_pos(pos):open("/etc/sae/buffer_1","w").write(str(pos))if__name__==‘__main__‘:appname={}fh=open("/data0/l7.acce..
分类:
编程语言 时间:
2014-07-14 16:41:57
阅读次数:
319
[root@Server3Learn]#catuseradd-final.sh
#!/bin/bash
#
DEBUG=0
ADD=0
DEL=0
help(){
echo"Usage:$(basename$0)-v|--verbose|--adduser1,user2,...|--deluser1,user2,...|-h|--help"
}
while[$#-ne0]
do
case$1in
-h|--help)
help
exit0
;;
-v|--verbose)
DEBUG=1
shi..
分类:
其他好文 时间:
2014-07-14 16:25:52
阅读次数:
230