提取了一些在开发过程中可能会用到的日期相关的函数作为工具类,供大家参考:
/**
* 日期操作工具类.
*
* @author shimiso
*/
public class DateUtil {
private static final String FORMAT = "yyyy-MM-dd HH:mm:ss";
public static Date str2Dat...
分类:
移动开发 时间:
2014-06-07 01:15:57
阅读次数:
289
ld: library not found for -lxxxxxxxx
clang: error: linker command failed with exit code 1 (use -v to see invocation)...
分类:
其他好文 时间:
2014-06-05 12:42:28
阅读次数:
386
1.failed to lock XXXXX.spl文件
这是你建索引的时候会出现的问题,是你没有把打开的的searchd服务给关闭,因为你打开searchd服务时,他会建立一个叫xxx.spl的临时文件,建索引的时候就会出现冲突
2.FATAL: Tokenizer initialization failure.
词典路径不对,修改实际安装字典路径,默认使用相对路径,建议使用绝对路径。
...
分类:
其他好文 时间:
2014-06-05 04:32:19
阅读次数:
324
题目如下;
Quadtrees
A quadtree is a representation format used to encode images. The fundamental ideabehind the quadtree is that any image can be split into four quadrants. Each...
分类:
其他好文 时间:
2014-06-05 04:20:06
阅读次数:
226
【题目】
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad ...
分类:
其他好文 时间:
2014-06-04 22:37:46
阅读次数:
389
Sprintf函数声明:int sprintf(char *buffer, const char
*format [, argument1, argument2, …])用途:将一段数据写入以地址buffer开始的字符串缓冲区所属库文件:
参数:(1)buffer,将要写入数据的起始地址;(2)fo...
分类:
编程语言 时间:
2014-05-31 18:30:24
阅读次数:
255
有时候我们在APK安装时由于工程制定了UID,换过签名后可能出现类似
INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 或 INSTALL_FAILED_UPDATE_INCOMPATIBLE
的错误,对于后者我们可以通过Logcat看到具体的比如说 has no si...
分类:
其他好文 时间:
2014-05-31 15:33:30
阅读次数:
245
DateTime dt = DateTime.Now;//2010年10月4日 17点05分
string str = ""; //str = string.Format("{0:y yy yyy yyyy}", dt); //10 10 2010
2010 //str = String.Form....
分类:
其他好文 时间:
2014-05-31 14:36:51
阅读次数:
208
今天的工作中,需要远程访问服务器上的数据库。但是,连接错误,Error code is
1326.说句实话,关于SqlServer
不能远程访问这个问题,我遇到过N次。可是每次都不认真去研究到底是什么原因造成的?直到今天,我解决这个遇到过N多次的问题时,还是相当棘手。在今天解决这个问题过程中,我深深...
分类:
数据库 时间:
2014-05-31 12:59:56
阅读次数:
303
在用mdk通过stlink烧写官方例程到stm32f429I
discovery时,烧写了十来个程序都没问题,突然在烧写一个程序时,弹出了“flash download failed - Target dll has
been cancelled”,然后后续的烧写都失败了。原因可能是其中一个程序将s...
分类:
其他好文 时间:
2014-05-31 06:58:56
阅读次数:
2006