1、初始数据@Test public void test01() { Session
session = null; try { session = HibernateUtil.getSessionFactory().openSession();
session.beginTransac...
分类:
系统相关 时间:
2014-05-12 19:16:27
阅读次数:
469
关于MemStore的补充
在通过HStore.add向store中添加一个kv时,首先把数据写入到memstore中。这一点没有什么说明;
publiclongadd(finalKeyValue
kv) {
lock.readLock().lock();
try{
returnthis.memstore.add(kv);
}finally{
lock.readLock().un...
分类:
其他好文 时间:
2014-05-12 14:14:38
阅读次数:
340
try { //取得图片大小 System.Drawing.Size size = new
System.Drawing.Size(Conve...
分类:
Web程序 时间:
2014-05-11 15:55:30
阅读次数:
422
This week I setup the Jenkins on my Mac and try
to build iOS applications. unfortunately I got the code signing issues, either I
use xcode plugin or x...
分类:
移动开发 时间:
2014-05-10 06:22:45
阅读次数:
347
原题地址:http://oj.leetcode.com/problems/single-number-ii/题意:Given
an array of integers, every element appearsthreetimes except for one. Find that
single ...
分类:
编程语言 时间:
2014-05-10 03:01:41
阅读次数:
413
当hive在执行大数据量的统计查询语句时,经常会出现下面OOM错误,具体错误提示如下:
Possible error: Out of memory due to hash maps used in map-side aggregation.
Solution: Currently hive.map.aggr.hash.percentmemory is set to 0.5. Try set...
分类:
其他好文 时间:
2014-05-09 21:08:27
阅读次数:
366
WebView长按复制 ~ 兼容所有安卓版本
mWebView.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
try {
// 震动100毫秒
Vibrator vib = (Vibrator) getSystemServi...
分类:
Web程序 时间:
2014-05-09 14:40:57
阅读次数:
378
问题如题,这个问题困扰了我好几天,今天终于解决了,感谢[1]。首先,我要做的是android手机和电脑进行蓝牙通信,android发一句话,电脑端程序至少就要做到接受到那句话。android端发送信息的代码如下:try
{ Log.i("Test", "begin saying hello wor....
分类:
其他好文 时间:
2014-05-09 08:12:56
阅读次数:
505
sys.c 代码分析
setregid
/*
* This is done BSD-style, with no consideration of the saved gid, except
* that if you set the effective gid, it sets the saved gid too. This
* makes it possib...
分类:
系统相关 时间:
2014-05-09 02:13:12
阅读次数:
621
# -*- coding: utf-8 -*-
try:
import httplib2
except ImportError:
print('错误:')
print(' httplib2这个XML解析库没有找到,程序无法继续执行!')
exit(255)
def network_get_proc(self, use_cache = True):
'''POST动作'...
分类:
编程语言 时间:
2014-05-09 01:39:09
阅读次数:
337