自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小一的专栏

坚持、努力、谦逊

  • 博客(15)
  • 资源 (8)
  • 收藏
  • 关注

原创 Android Zygote源码分析

目录目录概述zygote分析AppRuntime分析创建虚拟机startVm注册JNI函数startReg进入JAVA世界建立IPC通信服务端registerZygoteSocket预加载类和资源preload启动system_server有求必应之等待请求runSelectLoop概述在Android系统中,所有的应用程序进程,以及用来运行系统关键服务的System进程都是由

2015-04-29 20:33:32 4916

原创 Java反射获取Android系统属性值

目录目录反射定义为何需要反射反射方法MethodgetDeclaredMethod方法getMethod方法参数解释invoke方法Android 反射应用反射定义“反射”(Reflection)能够让运行于JVM中的程序检测和修改运行时的行为。为何需要反射反射带来的好处包括:在运行时检测对象的类型。动态构造某个类的对象。检测类的属性和方法。任意调用对象的方法。修改构造函

2015-04-29 16:20:59 6743

原创 [LeetCode]Nth Highest Salary,解题报告

题目Write a SQL query to get the nth highest salary from the Employee table. Id Salary 1 100 2 200 3 300For example, given the above Employee table, the nth highest salary where n = 2 is

2015-04-28 11:40:12 6326

原创 [LeetCode]Department Highest Salary,解题报告

题目The Employee table holds all employees. Every employee has an Id, a salary, and there is also a column for the department Id. Id Name Salary DepartmentId 1 Joe 70000 1 2 Henry 80

2015-04-25 11:22:32 4685

原创 [LeetCode]Largest Rectangle in Histgram,解题报告

目录目录题目思路一思路二题目Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where

2015-04-23 11:01:43 3882

原创 [LeetCode]Rank Scores,解题报告

题目Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next consecutive integer value.

2015-04-21 17:19:35 5473

原创 Android init进程——解析配置文件

目录目录init解析配置文件关键字定义kw_is解析K_importK_oncommand执行K_serviceserviceservice结构体parse_serviceparse_line_serviceinit控制serviceinit解析配置文件在解析service服务是如何启动之前,让我们先来学习一下init进程是如何解析init.rc等配置文件的。init进程

2015-04-21 14:30:09 4633

原创 [LeetCode]DeleteDuplicateEmails,解题报告

题目SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. Id Email 1 [email protected] 2 [email protected] 3 john@examp

2015-04-17 10:29:51 3903

原创 [LeetCode]Number of Islands,解题报告

目录目录前言题目思路AC代码我的疑问前言利用晚上11点之后的时间刷刷LeetCode也是我的一种休闲方式。不过水这篇博客是因为这道简单的BFS题目我竟然用了13次才AC,最后AC还是因为我参考了别人的答案,稍后我会说一下我对这道题的疑惑。先贴出这道题目我艰难的AC过程: 中间那次313ms的ac答案是我直接把别人的AC代码贴上,因为当时我怀疑这道题目答案是否出了问题。题目Given a

2015-04-15 23:43:15 7298 1

原创 [LeetCode]Duplicate Emails,解题报告

目录目录题目解题思路AC SQL题目Write a SQL query to find all duplicate emails in a table named Person. Id Email 1 [email protected] 2 [email protected] 3 [email protected] example, your query should return the following fo

2015-04-14 14:14:13 4619

原创 [LeetCode]Employees Earning More Than Their Managers,解题报告

目录目录题目思路AC SQL题目The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id. Id Name Salary ManagerId 1 Joe

2015-04-13 19:42:03 4817

原创 [LeetCode]Rising Temperature,解题报告

目录目录题目思路AC SQL题目Given a Weather table, write a SQL query to find all dates’ Ids with higher temperature compared to its previous (yesterday’s) dates. Id(INT) Date(DATE) Temperature(INT) 1 2

2015-04-13 18:14:47 8292

原创 Java final关键字

final含义final是Java中的一个保留关键字,可以声明成员变量、方法和类。一旦你将引用声明为final类型,你将不能再改变这个引用了。编译器会检查代码,如果你试图将变量再次初始化的话,编译器会报编译错误。final变量凡是对成员变量或者本地变量(在方法中的或者代码块中的变量称为本地变量)声明为final的都叫做final变量。下面是final修饰变量的例子:final int constVa

2015-04-09 19:13:18 3913

原创 UNIX Domain Socket IPC

目录目录概述socket函数使用struct sockaddr_unsocketbindlistenacceptconnectSocket IPC 实例serverclient运行结果概述socket API原本是为网络通讯设计的,但是后来在socket的框架上发展出一种IPC机制,就是UNIX Domain Socket。虽然网络socket也可用于同一台主机的进程间通讯(

2015-04-08 01:17:31 6803

原创 [LeetCode]Largest Number, 解题报告

目录目录题目思路AC代码题目 Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Not

2015-04-05 12:30:39 4519

ActiveAndroid-3.0-JAR包

ActiveAndroid 3.0版本的jar包.

2016-12-02

Android打包boot.img工具mkbootfs

用于Android打包boot.img文件,主要是针对ramdisk

2014-07-08

ExpandableListView小项目展示

博客里讲解了自己利用ExpandableListView实现的一个Demo,大家可以下载参考。

2014-06-21

windows scoket编程

windows socket编程,两个程序,一个客户端,一个服务器端,实现了服务器端监听客户端的请求,客户端发送数据包,服务器段接收并返回。说白了,就是中国传媒大学研究生计算机网络的第7次实验

2011-11-28

LAMP基础学习

这是我四个月来总结的lamp的经验,非常适合初学者阅读,请大家尽情下载,支持开源

2011-10-10

apt-mirror搭建ubuntu本地仓库源

我自己总结的如何搭建ubuntu本地仓库源,非常具有参考价值,和大家共享一下

2011-08-22

关于ntp服务器搭建

我自己总结的如何搭建ntp服务器,希望大家也能从中学到知识.

2011-08-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除