Caching large objects, duplicate objects, caching collections, live objects, thread unsafe caching and other common mistakes break your app instead of...
分类:
移动开发 时间:
2014-10-31 10:04:22
阅读次数:
263
1、查看本机关于IPTABLES的设置情况[root@tp ~]# iptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationChain FORWARD (policy ACCEPT)target prot ...
分类:
其他好文 时间:
2014-10-30 16:45:50
阅读次数:
157
#?iptables?-S
-P?INPUT?DROP
-P?FORWARD?DROP
-P?OUTPUT?ACCEPT
-A?INPUT?-i?lo?-j?ACCEPT?
-A?INPUT?-p?icmp?-j?ACCEPT?
-A?INPUT?-p?tcp?-m?tcp?--dport?20?-j?ACCEPT?
-A?INP...
分类:
其他好文 时间:
2014-10-30 11:58:57
阅读次数:
144
request对象实现请求转发,请求转发指一个web资源收到客户端请求后,通知服务器去调用另外一个web资源进行处理。request对象提供了一个getRequestDispatcher方法,该方法返回一个RequestDispatcher对象,调用这个对象的forward方法可以实现请求转发请求....
分类:
其他好文 时间:
2014-10-30 09:29:55
阅读次数:
205
Problem ThreepalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCB...
分类:
其他好文 时间:
2014-10-30 07:09:03
阅读次数:
271
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
click to show follow up.
Follow up:
Did you use extra space?
A straight forward solution using O(m...
分类:
其他好文 时间:
2014-10-29 17:02:17
阅读次数:
206
I have a UIView and I'm trying to set its layer properties.self.colorSwatch = [[UIView alloc] initWithFrame:CGRectMake(400, 150, 100, 100)];self.color...
分类:
其他好文 时间:
2014-10-29 12:39:13
阅读次数:
143
FORWARD好了,我们接着往下走,这个包已经过了两个PREROUTING链了,这个时候,出现了一个分支转折的地方,也就是图中下方的那个菱形(FORWARD),转发!这里有一个对目的地址的判断(这里同样说明了PREROUTING一定要在最先,不仅要在route box之前,甚至是这个对目的地址的判断...
分类:
其他好文 时间:
2014-10-28 15:06:14
阅读次数:
114
RequestDispatcher是一个Web资源的包装器,可以用来把当前request传递到该资源,或者把新的资源包括到当前响应中。RequestDispatcher接口中定义了两个方法:include/forward由于只能指定固定的jsp文件名,不能动态指定jsp文件名。我们需要把翻译为Jav...
分类:
Web程序 时间:
2014-10-27 19:10:50
阅读次数:
219
1.RequestDispatcher.forward() 是在服务器端起作用,当使用forward()时,Servlet engine传递HTTP请求从当前的Servlet or JSP到另外一个Servlet,JSP 或普通HTML文件,也即你的form提交至a.jsp,在a.jsp用到了f.....
分类:
Web程序 时间:
2014-10-26 14:17:04
阅读次数:
162