码迷,mamicode.com
首页 >  
搜索关键字:python long string    ( 244880个结果)
Lucene中string docvalues使用utf-16的优化
原来的string docvalues使用utf-8编码,加载时转码花费大量时间,我们把转码实现从new String(bytes, "UTF-8")改用lucene的bytesRef.utf8ToString,减少了大约十秒的时间。 想进一步优化,我们使用UTF-16LE编码,解码非常简单甚至只需拷贝,如果用简单的byte[]到char[]转换,可以在节省7秒时间,而如果用unsafe可以节省...
分类:其他好文   时间:2014-05-25 01:46:44    阅读次数:246
各种String类型的时间转long型,long转String
唉! 有用的拿去吧。 直接可以用。 1 package com.tai.use; 2 3 import java.text.SimpleDateFormat; 4 5 public class DataUtil 6 { 7 /** 8 * 时间格式转换,将字...
分类:其他好文   时间:2014-05-24 12:47:52    阅读次数:439
long类型的时间转为n秒前n分钟前n小时前或者日期
1 package com.tai.use; 2 3 import java.text.DateFormat; 4 import java.text.SimpleDateFormat; 5 import java.util.Calendar; 6 import java.util.Date; 7.....
分类:其他好文   时间:2014-05-24 11:51:15    阅读次数:302
Yum常用命令详解
yum是一个用于管理rpm包的后台程序,用python写成,可以非常方便的解决rpm的依赖关系。在建立好yum服务器后,yum客户端可以通过 http、ftp方式获得软件包,并使用方便的命令直接管理、更新所有的rpm包,甚至包括kernel的更新。它也可以理解为红旗环境下的apt管理工具。一、列举包...
分类:其他好文   时间:2014-05-24 11:36:57    阅读次数:232
LeetCode: Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example, S = "ADOBECOD...
分类:Windows程序   时间:2014-05-24 11:19:26    阅读次数:399
C#删除图片问题
public Image GetImage(string path) { FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read); Image ...
分类:其他好文   时间:2014-05-24 09:48:26    阅读次数:233
arrayList使用 与 foreach 使用
private void button1_Click(object sender, EventArgs e) { IList arrayAnimal = new ArrayList(); arrayAnimal.Add("12"); arrayAnimal.Add("df"); arrayA...
分类:其他好文   时间:2014-05-24 09:37:46    阅读次数:211
python实现人人网留言获取与一键删除
最近有点着迷Python,学习基本语法之后,首先从爬虫开始,看了《使用python登录人人网并发表状态》一文后,很感兴趣,然后又曾经苦于人人网聊天记录删除的繁琐,于是决定写一个聊天记录一键删除的小脚本,好啦,废话不多说:#encoding:utf-8import urllib2, urllib, c...
分类:编程语言   时间:2014-05-24 09:35:03    阅读次数:390
java构造方法的不同
分为有参数和无参数,还有THIS的使用方法,可用于传递给类,也可用于调用其它构造方法。public class Book { private String name; public Book(){ this("this调用有参数的构造方法"); System....
分类:编程语言   时间:2014-05-24 09:33:45    阅读次数:330
android在sqlite数据库的SQLiteOpenHelper中的onUpgrade里判断表是否存在
private boolean tabbleIsExist(String tableName, SQLiteDatabase db) { LogUtils.d("DatabaseHelper", "checking tabbleIsExist " + tableName); ...
分类:移动开发   时间:2014-05-24 09:32:40    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!