查找资料的时候发现不错的文章,自己翻译之后分享给大家!一个基本的该类型字符串例子:@"This
is a constant character string object";在后台显示它:NSLog (@"%@", @"This is a constant
character string obje...
分类:
其他好文 时间:
2014-05-26 20:34:38
阅读次数:
278
Problem B Back to High School Physics Input:
standard input Output: standard output A particle has initial velocity and
constant acceleration. If its ...
分类:
其他好文 时间:
2014-05-26 15:14:39
阅读次数:
221
在struts2中需要做国际化的有:
jsp页面的国际化,action错误信息的国际化,转换错误信息的国际化,校验错误信息的国际化
在之前的例子中已经做过和国际化相关的例子了,在struts.xml中配置过
view
plaincopy
to clipboardprint?
constant name="struts.custom....
分类:
其他好文 时间:
2014-05-24 19:14:09
阅读次数:
339
1. Shared
pool是SGA设置中最复杂也是最重要的一部分内容,Oracle通过Shared pool来实现sql共享,减少代码硬分析等,从而提高数据库的性能。Shared
pool的大小可以通过初始化参数shared_pool_size设置。2. 把Shared pool的内存结构在lev...
分类:
其他好文 时间:
2014-05-24 05:28:50
阅读次数:
197
在服务器级别只提供了query
cache,而在存储引擎级别,MyISAM和InnoDB分别引入了key cache和buffer pool什么是query
cacheMysql没有shared_pool缓存执行计划,但是提供了query cache缓存sql执行结果和文本,如果在生命周期内完全相同...
分类:
数据库 时间:
2014-05-23 11:31:15
阅读次数:
344
一次过,空间复杂度为O(m+n), 下一次做的时候寻找constant space
solution。用boolean array也可以,用bit vector可能会更节省 1 import java.util.*; 2 3 public
class Solution { 4 public...
分类:
其他好文 时间:
2014-05-23 08:30:28
阅读次数:
278
解决办法如下:1. 修改项目的.net framework 为3.52. Application
Pool 选用 Sharepoint App pool3. 修改 web.config如下: ...
分类:
移动开发 时间:
2014-05-21 21:57:44
阅读次数:
377
【题目】
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant space.
【题意】
给定一个数组,找出第一个缺失的正数。时间复杂度O(n)
...
分类:
其他好文 时间:
2014-05-21 17:13:07
阅读次数:
219
1. 给用户添加任务的接口是 schedule(arg), arg应该如何设置a) 创建 Work
class, 将arg设置为 Work*,
Work由用户创建,用户删除,线程池内仅保留对Work对象的引用问题:我写完thread_pool后才发现,用户不再知道如何去删除他创建的
Work了,因为...
分类:
编程语言 时间:
2014-05-20 12:15:23
阅读次数:
337
for i in [n+1 N] M=rand(1,i) if(M<=n) swap the
ith and Mth
data证明方法:1.初始情况,当尚未选择时,出现在pool中的n个元素的概率相同都是1,证明当第n+1葛元素以n/(n+1)的概率被选中时,前n个元素在pool中的概率为...
分类:
其他好文 时间:
2014-05-20 09:43:42
阅读次数:
294