Lucene是一个高性能的java全文检索工具包,它使用的是倒排文件索引结构。该结构及相应的生成算法如下: 0)设有两篇文章1和2 文章1的内容为:Tom lives in Guangzhou,I live in Guangzhou too. 文章2的内容为:He once lived i...
分类:
Web程序 时间:
2014-11-11 20:28:44
阅读次数:
289
本文代码以MTK平台Android 4.4为分析对象,与Google原生AOSP有些许差异,请读者知悉。
本文主要介绍MTK Android开机时,SIM卡的Framework部分初始化过程。
先看一段注释:
/* Once created UiccController registers with RIL for "on" and "unsol_sim_status_change...
分类:
移动开发 时间:
2014-11-11 19:13:29
阅读次数:
336
#pragma once #include using namespace std;#define MAX_CHAR 26struct node { bool isWord; node* next[MAX_CHAR]; node() { isWord = false; for(int i = 0.....
分类:
其他好文 时间:
2014-11-11 16:19:55
阅读次数:
214
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
/**
* Definition for sin...
分类:
其他好文 时间:
2014-11-10 10:07:22
阅读次数:
156
1# 主要讲了四个外接文件的函数,分别是include,include_once,require,require_once。include and include_once :if there is something wrong,they will not throw an error, they...
分类:
数据库 时间:
2014-11-10 09:53:18
阅读次数:
152
via 脚本自动更新(2014-11-08 22:51:31) #自动登录 ```PHP define(‘ROOT_PATH‘,__DIR__); include_once(ROOT_PATH.‘/lib/Http.class.php‘); $config=array( ‘username‘=>‘*******‘, ‘password‘=>‘*******‘ ); $c...
分类:
其他好文 时间:
2014-11-08 23:45:03
阅读次数:
498
Boost log 简单使用
flyfish 2014-11-8
该示例是在VC2010 MFC Unicode环境下使用
内容包括
1 启动关闭日志
2 设置日志存储路径
3 设置输出日志等级
4 日志是否立即写入文件
5 设置单个文件的大小
6 设置磁盘最小可利用空间
Logger.h
#pragma once
#include
#incl...
分类:
其他好文 时间:
2014-11-08 16:44:14
阅读次数:
401
In graph theory, a Eulerian trail (or Eulerian path) is a trail in a graph which visits every edge exactly once. Similarly, an Eulerian circuit or Eul...
分类:
其他好文 时间:
2014-11-07 20:38:26
阅读次数:
232
yii-basic-app-2.0.0\basic
requirements.php 文件
程序必要条件检查脚本。
检查框架目录
如果不存在报错误信息
if (!is_dir($frameworkPath)) {
引入检查类
require_once($frameworkPath . '/requirements/YiiRequirementChecker.php');
...
分类:
Web程序 时间:
2014-11-07 17:08:34
阅读次数:
197
An easy problem
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 9194 Accepted Submission(s): 2491
Problem Description
We once di...
分类:
编程语言 时间:
2014-11-07 08:41:47
阅读次数:
225