1.对字符串进行hash大家可以看一下, SHA1 HashesGo by Example写道:The pattern for generating a hash is sha1.New(), sha1.Write(bytes), then sha1.Sum([]byte{}). 附上golang代...
分类:
其他好文 时间:
2014-06-18 16:07:48
阅读次数:
294
有重复数据主要有一下几种情况:1.存在两条完全相同的纪录 这是最简单的一种情况,用关键字distinct就可以去掉 example: select distinct * from table(表名) where (条件)2.存在部分字段相同的纪录(有主键id即唯一键) 如果是这种...
分类:
其他好文 时间:
2014-06-18 15:08:18
阅读次数:
173
1、reportlab:由很多部分组成且允许用户使用多种方法创建输出,地址:下载ReportLabhttps://pypi.python.org/simple/reportlab/http://www.reportlab.com/software/opensource/rl-toolkit/down...
分类:
编程语言 时间:
2014-06-18 14:22:27
阅读次数:
313
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-06-18 13:29:31
阅读次数:
214
1.使用pull解析 1 package com.example.myxml; 2 3 import java.io.InputStream; 4 import java.util.ArrayList; 5 import java.util.List; 6 7 import org.xmlpul.....
分类:
移动开发 时间:
2014-06-18 13:28:17
阅读次数:
228
参考了这个里面的代码http://bbs.csdn.net/topics/380084274一直报错06-16 23:58:50.698 26148-26161/com.example.myapplication.app W/ContentResolver﹕ Failed to get type f...
分类:
移动开发 时间:
2014-06-18 12:52:30
阅读次数:
267
首先到sharesdk开放píng台下载demo ,以下要用到的文件来自于 simple里面第一步:导入官方的jar包 第二步:添加ShareSDK.xml文件并修改相关píng台key第三步:AndroidManifest.xml文件中添加 ...
分类:
其他好文 时间:
2014-06-17 20:18:34
阅读次数:
198
1.写一个类继承TextView[java]view plaincopypackagecom.example.tt;importandroid.content.Context;importandroid.graphics.Rect;importandroid.util.AttributeSet;im...
分类:
其他好文 时间:
2014-06-17 15:43:33
阅读次数:
264
一、Git的特性Speed 速度(git是用c语言写的。一般都是提交到本地)Simple designStrong support for non-linear development (thousands of parallel branches)(强有力的支持非线性开发)Fully distri...
分类:
其他好文 时间:
2014-06-17 14:03:06
阅读次数:
303
/* * This is an example build file that demonstrates how to use the build system for * require.js. * * THIS BUILD FILE WILL NOT WORK. It is referencin...
分类:
Web程序 时间:
2014-06-17 13:06:47
阅读次数:
369