1 char * strcat(char * dest, const char * src)
{ 2 assert(dest != NULL && src != NULL); 3 char * p = dest; 4 while (*p)
5 p++; 6 ...
分类:
其他好文 时间:
2014-05-13 20:30:10
阅读次数:
272
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
Undefined symbol assert_failed (referred from
dma.o).链接过程中出现assert_param函数未定义的错误解决方法: 在Options->C/C++->preprocessor
Symboles有Define:项中输入USE_STDPER...
分类:
其他好文 时间:
2014-05-10 20:41:56
阅读次数:
465
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