1.代码:/**** Secure Hash Algorithm (SHA1)* http://www.webtoolkit.info/***/function SHA1 (msg) { function rotate_left(n,s) { var t4 = ( n>>(32-s)); ...
分类:
编程语言 时间:
2014-07-27 09:38:22
阅读次数:
340
// 在thin pool中创建一个新thin device
// 调用路径:driver.Create()
1.1 func (devices *DeviceSet) AddDevice(hash, baseHash string) error {
//查找父device
baseInfo, err := devices.lookupDevice(baseHash)
if err != n...
分类:
移动开发 时间:
2014-07-26 02:53:26
阅读次数:
347
HashMap 和 HashSet 是 Java Collection Framework 的两个重要成员,其中 HashMap 是 Map 接口的常用实现类,HashSet 是 Set 接口的常用实现类。虽然 HashMap 和 HashSet 实现的接口规范不同,但它们底层的 Hash 存储机制...
分类:
编程语言 时间:
2014-07-26 01:19:36
阅读次数:
265
// thin device数据结构
type DevInfo struct {
Hash string `json:"-"`
DeviceId int `json:"device_id"`
Size uint64 `json:"size"`
TransactionId uint64 `json:"tran...
分类:
移动开发 时间:
2014-07-25 11:02:35
阅读次数:
549
1.接口表数据检查无误
2.同样数据界面能正常完成
界面做trace
SQL ID: b2mw8gjyv7guh Plan Hash: 2015965341
DELETE FROM MTL_SERIAL_NUMBERS_TEMP
WHERE
TRANSACTION_TEMP_ID = :b1
call count cpu el...
分类:
其他好文 时间:
2014-07-24 23:05:04
阅读次数:
601
Google Custom Search Engines use a timer to check the hash against a previous value, whilst the child iframe on a seperate domain updates the parent‘s location hash to contain the size of the ifram...
分类:
Web程序 时间:
2014-07-24 12:31:35
阅读次数:
289
public class ThreadLocal { /** * ThreadLocals rely on per-thread hash maps attached to each thread * (Thread.threadLocals and inheritab...
分类:
其他好文 时间:
2014-07-24 12:08:45
阅读次数:
247
链接:http://acm.hdu.edu.cn/showproblem.php?pid=4821
题意:给一个字符串,选m个长度为l的子串组成新的串,要求这m个子串互不相同,问有多少种组合。
字符串hash题目,以前没做过,做这道之前还用bkdrhash做了两道简单的题目,POJ1200和HDU1800。
用base数组记录乘了几个seed,base[i]表示seed^i,这个数组...
分类:
其他好文 时间:
2014-07-24 10:36:14
阅读次数:
244
这是一个很有用的HASH 的函数,对长短字符串都很有用。 代码: 1 // ELF Hash Function 2 unsigned int ELFHash(char *str) 3 { 4 unsigned int hash = 0; 5 unsigned int x =...
分类:
其他好文 时间:
2014-07-24 10:06:03
阅读次数:
207
1.hashMap方法O(n)空间换时间public class Solution { public int[] twoSum(int[] numbers, int target) { HashMap hash=new HashMap(); int ans[]=ne...
分类:
其他好文 时间:
2014-07-23 22:20:57
阅读次数:
262