整个Android系统的启动分为Linux kernel的启动和Android系统的启动。Linux kernel启动起来后,然后就运行第一个用户程序,在Android中,就是init程序,上一博文已经介绍。
Init进程始终是第一个进程。Init进程的对应的代码的main函数在目录system/core/init/init.c,先来总体看一下这个main函数。
int main(int...
分类:
移动开发 时间:
2014-05-09 22:24:03
阅读次数:
536
互联网,即因特网,Internet。互联网是一个世界范围的计算机网络。连接了世界上无数的计算设备,这些计算设备为PC,基于Linux的工作站,服务器servers等等。这些设备根据其作用不同可以被称为主机host或者端系统end system。
端系统通过通信链路communication link和分组交换机packet switch连接到一起。发送数据时,发送端系统将数据分段,并为每段加上首...
分类:
Web程序 时间:
2014-05-09 21:54:28
阅读次数:
401
在ASP.NET使用javascript的一点小技巧
我们在进行ASP.NET开发时,经常会用到一些javascript脚本,比如:
private void Button1_Click(object sender, System.EventArgs e)
{
Response.Write( "alert('OK');") ;
}
经常是重复的书写这些脚本,如果我们能做成一个相...
分类:
编程语言 时间:
2014-05-09 21:12:11
阅读次数:
268
组合框使用方法,按照下面图片上提示,设计一个windows应用程序,实现不同运算。
界面设计:
代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;...
当hive在执行大数据量的统计查询语句时,经常会出现下面OOM错误,具体错误提示如下:
Possible error: Out of memory due to hash maps used in map-side aggregation.
Solution: Currently hive.map.aggr.hash.percentmemory is set to 0.5. Try set...
分类:
其他好文 时间:
2014-05-09 21:08:27
阅读次数:
366
ADO.NET 扩展
ADO.NET 成功地提供了一组基类和接口,为通过其他类和接口访问关系型数据库提供了一种选择,因此,从 F# 中访问大多数关系型数据库不用太多的努力。我们已经讨论了大部分这样的类,或者至少这些类实现了它们打算提供的功能。表 9-2 汇总了其中的关键类。
表 9-2 ADO.NET 中的关键类
类
描述
System...
分类:
Web程序 时间:
2014-05-09 20:59:13
阅读次数:
445
题目如下:
Parentheses Balance
You are given a string consisting of parentheses () and []. A string of this type is said to be correct:
(a)
if it is the empty string
(b)
if A and B are ...
分类:
其他好文 时间:
2014-05-09 20:57:46
阅读次数:
316
在 mkfs.ext4 /dev/sda2 格式化硬盘空间时,可能出现这样的错误。
had this situation at office where I was told to re-partition an already existing partition. The situation was to get the below schema
/dev/sdb1 1 3040 24...
分类:
其他好文 时间:
2014-05-09 20:49:25
阅读次数:
343
在上一个例子中,元素的类名使用拼接的方法,这样,类名中就不得不带有true或false,并且不易维护,所以,angular使用ng-class属性来控制元素的类名:我们来看一个小例子,点击error按钮,顶部提示错误框,点击warning按钮,顶部提示警告框.错误框的类名是.err,警告框的类名是....
分类:
Web程序 时间:
2014-05-09 19:30:28
阅读次数:
523
最近项目上的一个上传文件功能,贴出来大家一起分享下,项目是MVC+EF+LigerUI
来做的页面需要引用这个JS 跟 CSS首先在页面添加Upload.ashx然后代码如下:using System;using
System.Collections.Generic;using System.Lin...
分类:
其他好文 时间:
2014-05-09 19:29:00
阅读次数:
453