string $sel[]=`ls -sl`;float $T[]=`xform -q -ws -t
$sel[0]`;float $R[]=`xform -q -ws -ro $sel[0]`;if (`exists ($sel[0]+"_Con")`==0)
{delete ($sel[0]+"...
分类:
其他好文 时间:
2014-05-23 23:23:38
阅读次数:
318
1、初始化
+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)yesOrNo;
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTim...
分类:
移动开发 时间:
2014-05-18 08:52:17
阅读次数:
327
刚自学完oracle的基础,所以就想找一些SQL问题来练练手,所以就选择了这个50sql语句,因为找到的版本不是oracle的,所以尝试着用oracle来实现.这篇博文主要是想记录在做这50道题的时候的理解,答案跟网上的差不多.现在就把这二天刚做的发上来.4个表的数据student表SQL>
sel...
分类:
数据库 时间:
2014-05-17 14:51:39
阅读次数:
496
libevent源码深度剖析九——集成定时器事件张亮
现在再来详细分析libevent中I/O事件和Timer事件的集成,与Signal相比,Timer事件的集成会直观和简单很多。Libevent对堆的调整操作做了一些优化,本节还会描述这些优化方法。1
集成到事件主循环 因为系统的I/O机制像sel...
分类:
其他好文 时间:
2014-05-16 08:50:36
阅读次数:
329
1、Replicator执行代码详细分析
上篇问中介绍了启动Replicator的具体过程,下面具体讲解Replicator的执行代码的具体实现:
def replicate(self, override_devices=None, override_partitions=None):
"""Run a replication pass"""
sel...
分类:
其他好文 时间:
2014-05-15 00:15:16
阅读次数:
458
1、定义C函数:
void dynamicMethodIMP(id
self, SEL _cmd)
{
NSLog(@"蜗牛也疯狂");
}
2、重写函数+(BOOL)resolveInstanceMethod:(SEL)sel
+(BOOL)resolveInstanceMethod:(SEL)sel
{
class_addMethod([self
...
分类:
移动开发 时间:
2014-05-13 08:09:05
阅读次数:
412
OC语言description方法和sel一、description方法Description方法包括类方法和对象方法。(NSObject类所包含)(一)基本知识-description(对象方法)使用NSLog和@%输出某个对象时,会调用对象的description方法,并拿到返回值进行输出。+d...
分类:
编程语言 时间:
2014-05-08 20:25:06
阅读次数:
364
序言如果我们在 Objective C
中向一个对象发送它无法处理的消息,会出现什么情况呢?根据前文《深入浅出Cocoa之消息》的介绍,我们知道发送消息是通过 objc_send(id, SEL,
...) 来实现的,它会首先在对象的类对象的 cache,method list 以及父类对象的 ca...
分类:
其他好文 时间:
2014-05-07 14:53:24
阅读次数:
562
9.2 构造方法
python 中也属于自己的构造函数和析构函数,
class fibs:
def __init__(self):
self.a = 0
self.b = 1
def next(self):
self.a,self.b = self.b,self.a+self.b
return self.a
def __iter__(self):
return sel...
分类:
编程语言 时间:
2014-05-07 05:51:56
阅读次数:
500
如果我们在 Objective C 中向一个对象发送它无法处理的消息,会出现什么情况呢?我们知道发送消息是通过
objc_send(id, SEL, ...) 来实现的,它会首先在对象的类对象的 cache,method list 以及父类对象的 cache, method list 中依次查找 SEL 对应的 IMP;这个是需要对类对象的结构熟悉,不清楚的可以参考我的下一篇文章《object...
分类:
其他好文 时间:
2014-05-06 21:24:33
阅读次数:
450