getCacheDir()方法用于获取/data/data//cache目录getFilesDir()方法用于获取/data/data//files目录--------------------------------------------------------------------------...
分类:
系统相关 时间:
2015-03-11 12:38:20
阅读次数:
130
从大到小排序,小根堆。小根堆的筛选算法:void sift(int data[], int k, int m)
{
int i = k ,int j = 2 * k;
while (j <= m) {
if (j data[j + 1]) ++j;
if (data[i] < data[j]) break;...
分类:
编程语言 时间:
2015-03-08 17:18:12
阅读次数:
184
1.使用DIH上传结构化数据 许多搜索应用索引结构化数据,如关系型数据库.DIH提供了一个这样的存储并索引结构化数据的机制.除了关系型数据库,solr可以索引来自HTTP的内容,基于数据源如RSS和ATOM feeds,e-mail库和结构化XML(可以使用XPath来生成字段) 更多信息参考 .....
分类:
其他好文 时间:
2015-03-03 20:33:26
阅读次数:
173
1.用qplot(x,data=data,geom.=”bar”,weight=y)+scale_y_continuous("y")画出y关于x的条形。图中提示binwidth这里是指矩形的宽度,指定之后如下qplot(x,data=data,geom="bar",weight=y,binwidth...
分类:
编程语言 时间:
2015-03-02 16:47:38
阅读次数:
1895
导入的文件 chosen.css、chosen.jquery.min.js、jquery.jshtml:js代码:$("#form-field-select").html(data); //data为ajax返回的字符串() $("#form-field-select").tri...
分类:
Web程序 时间:
2015-02-26 18:27:39
阅读次数:
1225
root@dredd:/data/data/berserker.android.apps.sshdroid/home # netstat -lnpActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address F...
分类:
其他好文 时间:
2015-02-24 20:58:56
阅读次数:
349
Android源码编译好了之后,我们就可以运行它了。1、配置环境变量:/data/data/Android$ export PATH=$PATH:$(pwd)/out/host/linux-x86/bin/data/data/Android$ export ANDROID_PRODUCT_OUT=$...
分类:
移动开发 时间:
2015-02-07 18:45:44
阅读次数:
160
varstore=Ext.create(‘Ext.data.JsonStore‘,{fields:[‘name‘,‘data‘],data:[{‘name‘:‘metricone‘,‘data‘:10},{‘name‘:‘metrictwo‘,‘data‘:7},{‘name‘:‘metricthree‘,‘data‘:5},{‘name‘:‘metricfour‘,‘data‘:2},{‘name‘:‘metricfive‘,‘data‘:27}]});Ext.create(‘Ext.chart.Chart..
分类:
Web程序 时间:
2015-02-06 19:03:26
阅读次数:
173
网上关于使用python 的发送multipart/form-data的方法,多半是采用
ulrlib2 的模拟post方法,如下:
import urllib2
boundary='-------------------------7df3069603d6'
data=[]
data.append('--%s' % boundary)
data.append('Content-Dispos...
分类:
编程语言 时间:
2015-02-06 11:23:31
阅读次数:
177
UXYInjectioUXYInjectio can use Protocol to share data that data has been autosaved.How To Use
creat a Protocol (inherit UXYinjectioProtocol), define the property in that Protocol
let the class support...
分类:
其他好文 时间:
2015-02-05 20:33:28
阅读次数:
153