双向链表:如图1-3 所示,会把当前header拆分开,重新插入一个Entry。LinkedList源码 0.首先这个类中的两个变量private transient Entry header = new Entry(null, null, null);private transient int s...
分类:
其他好文 时间:
2014-12-02 15:09:11
阅读次数:
290
本篇博文主要是对MediaScanner中endFile方法的处理流程上的重构,以实现需求中的资源区域化定制。处理思路为在插入定制分区中的资源时,与数据库中默认资源数据进行比较,如果系统默认资源与定制资源重复,则删除系统默认资源数据,插入定制资源数据。
private Uri endFile(FileEntry entry, boolean ringtones, boolean notifica...
分类:
移动开发 时间:
2014-12-02 11:56:01
阅读次数:
456
// 111.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
using namespace std;
/*
编译器内存字节对齐的原则
1. 数据类型的自身对齐值
数据类型的自身对齐值:其在内存中所占的字节数,如在3...
分类:
其他好文 时间:
2014-12-02 10:40:57
阅读次数:
124
1、$sudo apt-get install ibus-googlepinyin //ibus 融合了许多种输入法,google便是一种,此步就是下载安装ibus-google拼音输入法。2、在系统设置中找到 Text Entry ,然后添加刚才安装的ibus-google,要是安装没有错误却找不...
分类:
系统相关 时间:
2014-12-01 23:44:01
阅读次数:
245
原文地址: https://blogs.oracle.com/ronen/entry/diving_into_openstack_network_architecture2前文中,我们学习了openstack网络使用的几个基本网络组件,并通过一些简单的use case解释网络如何连通的。本文中,我们会通过一个稍微复杂(其实仍然相当基本)的use case(两个网络间路由)探索网络的设置。 路由使...
分类:
其他好文 时间:
2014-11-30 23:27:27
阅读次数:
372
一切从一段代码说起。。。下面一段代码是最近我在对一EF项目进行重构时发现的。protected override void DoRemove(T entity){ this.dbContext.Entry(entity).State = EntityState.Deleted; Comm...
分类:
其他好文 时间:
2014-11-30 18:38:27
阅读次数:
304
iOS 出现错误:Failed to instantiate the default view controller for UIMainStoryboardFile 'MainStoryboard' - perhaps the designated entry
point is not set?
这个问题的原因应该是在你的StoryBoard中没有一个view
controller设置...
分类:
其他好文 时间:
2014-11-30 16:57:10
阅读次数:
159
处理过程参考了:https://blogs.oracle.com/Database4CN/entry/%E5%A6%82%E4%BD%95%E9%87%8D%E5%BB%BArac%E7%9A%84%E6%8E%A7%E5%88%B6%E6%96%87%E4%BB%B6问题现象:现场有学校提报登录P...
分类:
其他好文 时间:
2014-11-29 21:29:26
阅读次数:
289
[Desktop Entry]Version=buzhidaoEncoding=UTF-8Name=eclipseComment=eclipse-for-phpExec=/opt/eclipse/eclipseIcon=/opt/eclipse/icon.xpmTerminal=falseType=...
分类:
系统相关 时间:
2014-11-29 13:14:06
阅读次数:
181
package com.jumei.robot.mapreduce.tfidf;import java.io.IOException;import java.util.Collection;import java.util.Comparator;import java.util.Map.Entry;...
分类:
其他好文 时间:
2014-11-28 21:15:21
阅读次数:
475