1234567对于Arrayif (array && array.count)
{}对于字符串Stringif (string && string.length && [string
isEqualToString:@""])
分类:
其他好文 时间:
2014-05-16 04:22:18
阅读次数:
249
在工作时,有一套框架,并不是很适合做后台,为此我在这个框架加了简单的mvc映射首先为方便可以随时new自己想要的类,注册自己的__autoload方法,这里封装成一个类,当然类里面要封装好查找路径,注册的时候就是调用内部的loader成员方法:spl_autoload_register(array(...
分类:
Web程序 时间:
2014-05-15 21:02:09
阅读次数:
429
Python在科学计算领域,有两个重要的扩展模块:Numpy和Scipy。其中Numpy是一个用python实现的科学计算包。包括:一个强大的N维数组对象Array;比较成熟的(广播)函数库;用于整合C/C++和Fortran代码的工具包;实用的线性代数、傅里叶变换和随机数生成函数。
SciPy是....
分类:
编程语言 时间:
2014-05-15 14:06:15
阅读次数:
505
RAID技术分为几种不同的等级,分别可以提供不同的速度,安全性和性价比。根据实际情况选择适当的RAID级别可以满足用户对存储系统可用性、性能和容量的要求。RAID等级常用的RAID级别有以下几种:NRAID,JBOD,RAID0,RAID1,RAID0+1,RAID3,RAID5等。目前经常使用的是...
分类:
其他好文 时间:
2014-05-15 14:04:25
阅读次数:
268
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings....
分类:
其他好文 时间:
2014-05-15 13:27:07
阅读次数:
233
一。Raid0创建#mdadm-C/dev/md0-n2-ayes-l0-x/dev/sdb1/dev/sdb2/dev/sdb3[创建Raid0,其中-C创建,-n指定磁盘块数,-aYouhaven‘tgivenenoughdevices(realormissing)tocreatethisarray,-x指定空闲盘个数]2.查看#mdadm-D/dev/md0#cat/proc/mdstat3.模拟磁盘故障#mdadm/dev/md0-f..
分类:
系统相关 时间:
2014-05-15 12:46:38
阅读次数:
512
Two SumGiven an array of integers, find two
numbers such that they add up to a specific target number.The function twoSum
should return indices of the...
分类:
其他好文 时间:
2014-05-15 10:48:59
阅读次数:
322
NSArray、NSSet、NSDictionary 集合类
可以用来装东西OC数组只能存放OC对象、不能存放非OC对象类型,如int、struct\enu等OC数组不能存放nil值1.NSArray 不可变数组1》.
NSArray *array1 = [NSArray array]; // 由....
分类:
其他好文 时间:
2014-05-15 10:23:07
阅读次数:
253
class Solution {public: bool search(int A[],
int n, int target) { if (n A[mid]) { right = mid; sep = A[mid]; ...
分类:
其他好文 时间:
2014-05-15 09:29:52
阅读次数:
177
object ScalaDemo1 {
def main(args: Array[String]) {
println("Hello,world!");
}
}...
分类:
其他好文 时间:
2014-05-15 08:09:30
阅读次数:
227