Android系统是一款基于Linux的移动操作系统,那么Android是如何启动起来的呢?本文就详细阐述Android系统的启动过程。 从内核之上,我们首先应该从文件系统的init开始,因为 init 是内核进入文件系统后第一个运行的程序,通常我们可以在linux的命令行中指定内核第一个调用谁.....
分类:
移动开发 时间:
2014-07-02 23:14:43
阅读次数:
541
具体细节可参考:http://www.cnblogs.com/Anker/p/3271773.html本文只是用最小的语言总结:两者对比:(爹是父进程,孩子是子进程)爹没了,孩子还在,孩子就是孤儿进程,孤儿被(init)收养。爹在,孩子在,但是爹不管孩子了,因为有爹又不能收养,此时的孩子就是僵尸进程...
分类:
编程语言 时间:
2014-07-02 23:07:13
阅读次数:
235
为了初始化结构体和类等类型的实例属性。默认构造器[html]view plaincopystructFahrenheit{vartemperature:Doubleinit(){temperature=32.0}}var f = Fahrenheit() //调用默认构造器 init() ,没有参数...
分类:
其他好文 时间:
2014-07-02 22:42:28
阅读次数:
238
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the in...
分类:
其他好文 时间:
2014-07-01 17:00:40
阅读次数:
321
前两天写RTC中断 使用串口输出
发现程序会出现while(!(rUTRSTAT0 & 0x2));出不来的情况,但是中断是正常运作的
解决方法:
main函数增加:
U32 mpll_val = 0,consoleNum;
Port_Init(); //定义在2440lib.c...
分类:
其他好文 时间:
2014-07-01 14:36:56
阅读次数:
459
MFMailComposeViewController *mailC=[[MFMailComposeViewControlleralloc] init]; if ([MFMailComposeViewControllercanSendMail]) { mailC.mailCo...
分类:
其他好文 时间:
2014-07-01 11:39:20
阅读次数:
134
可以检查参数,一直没注意这个语言特性,忽略了很多细节,感谢 vitrox
class Person( object ):
def __init__( self, name ):
if not isinstance( name, str ):
raise TypeError( '...' )
else:...
分类:
编程语言 时间:
2014-07-01 10:00:34
阅读次数:
181
android property,相信各位android平台的开发人员用到的不会少,但是property的具体机制大家可能知道的不多,这里利用空闲时间大致了解了一些,特此分享跟大家,如有谬误,欢迎指正
android 1号进程进程init进程在开机的时候就会调用property_init函数,至于init是怎么起来的,这里不是重点,所以暂时先不介绍,property_init的具体flo...
分类:
移动开发 时间:
2014-07-01 08:25:58
阅读次数:
484
经常在做webqq机器人,但是最头痛的问题就是腾讯经常加一些验证串来防止robot,现在共享出最新的腾讯密码加密算法和hash
算法
hash算法
def webqq_hash(i, a):
if isinstance(i, (str, unicode)):
i = int(i)
class b:
def __init__(self, _b,...
分类:
Web程序 时间:
2014-07-01 07:54:48
阅读次数:
272
Stage II过程分析
在Stage II中使用到了一些比较重要的数据结构,这里先对这些数据结构来进行下分析:
typedef struct global_data {
bd_t *bd;
unsigned long flags;
unsigned long baudrate;
unsigned long have_console; /* serial_init() was cal...
分类:
其他好文 时间:
2014-07-01 06:16:16
阅读次数:
371