提取了一些在开发过程中可能会用到的日期相关的函数作为工具类,供大家参考:
/**
* 日期操作工具类.
*
* @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
eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found in configuration
如图:
这是因为 在用gui创建分支的时候 config文件没有创建branch
在config文件加上
[branch "xxx"]
...
分类:
系统相关 时间:
2014-06-05 05:15:19
阅读次数:
326
题目如下;
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
1、错误描述
Exception in thread "main" java.lang.IllegalArgumentException: Cannot format given Object as a Date
at java.text.DateFormat.format(Unknown Source)
at java.text.Format.format(Unknown Source)...
分类:
编程语言 时间:
2014-06-03 03:26:58
阅读次数:
309
Sprintf函数声明:int sprintf(char *buffer, const char
*format [, argument1, argument2, …])用途:将一段数据写入以地址buffer开始的字符串缓冲区所属库文件:
参数:(1)buffer,将要写入数据的起始地址;(2)fo...
分类:
编程语言 时间:
2014-05-31 18:30:24
阅读次数:
255
作为当下最流行的版本控制系统,Git是一个分布式版本控制系统,跟SVN等集中式版本控制有很多使用上的不同。万事开头难,想要最快学会使用Git,最简单的就是下了客户端就直接去用,一边用一边学。本文手把手教你从对Git一无所知,到简单使用。
转载请注明出处http://www.cnblogs.co...
分类:
其他好文 时间:
2014-05-31 18:19:25
阅读次数:
251
项目使用HTML5开发HybridApp, 代码管理使用git,如何针对HybridApp的跨平台的特点进行版本管理呢,web部分ios和Android基本相同,但各自有些特别的修改适配,使用2个git目录管理代码显然是愚蠢的,会增加很多不必要的代码合并工作,我们可以利用git的分支方便的管理代码。
我们的实践是master分支管理ios代码,因为先开发的ios版本,后面使用新的android分支管理Android的代码,platform/android 和platform/ios由各自的分支管理...
分类:
移动开发 时间:
2014-05-31 17:36:03
阅读次数:
290
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
这里仅记录了下自己在初次使用git来管理项目的时候遇到的一些注意事项,记录下来备忘以下,以免下次又在这里花太多时间.1. centos下面已经支持yum
install git.来安装。2. 安装完后,找个地方git clone代码下来(本人代码在github上面,其他方式不做多说)3. 采用htt...
分类:
其他好文 时间:
2014-05-30 23:36:48
阅读次数:
296