刚開始接触android的时候,每次用数据库都会犹豫使用哪种方式,一种是getContentResolver().query(...),还有一种是managedQuery(...),后来习惯了使用前一种,后一种就被我遗忘了,可是在实际做项目时,有时数据库常常会报cursor not close的.....
分类:
其他好文 时间:
2015-01-11 17:24:06
阅读次数:
105
step1.安装unity-tweak-tool工具,ubuntu的主题管理工具
sudo apt-get install unity-tweak-tool
step2.添加ppa源,网上很多帖子介绍的源已经失效了
sudo add-apt-repository ppa:moka/stable
sudo apt-get update
sudo apt-get install mo...
分类:
系统相关 时间:
2015-01-11 14:54:50
阅读次数:
285
使用ap-hotspot来创建WIFI热点。终端里输入:$ sudo add-apt-repository ppa:nilarimogard/webupd8$ sudo apt-get update$ sudo apt-get install ap-hotspot$ sudo ap-hotspot ...
分类:
系统相关 时间:
2015-01-11 14:46:42
阅读次数:
372
cmd:reg query // 查看reg add // 存在时更新,不存在时添加.regWindows Registry Editor Version 5.00 // 区分大小写,不可省略;否则会提示:指定的文件不是注册脚本[HKEY_LOCAL_MACHINE\SYSTEM\CurrentCo...
分类:
其他好文 时间:
2015-01-11 12:18:59
阅读次数:
145
近期业务准备上线一个新功能,灌入数据之后突然发现主从同步停止,报错如下:Error 'Duplicate entry '66310984-2014-04-18 00:00:00--122815.sh' for key 'PRIMARY'' on query. Default database: 'b...
分类:
数据库 时间:
2015-01-11 12:09:36
阅读次数:
263
操作系统Ubuntu14.041.桥接方法参照上篇2.a.手机与电脑的连接sudo add-apt-repository ppa:nilarimogard/webupd8$ sudo apt-get update$ sudo apt-get install ap-hotspot$ sudo ap-h...
分类:
移动开发 时间:
2015-01-11 10:52:28
阅读次数:
198
一、前言
上一节我们讲完了攻击,其实也只是攻击者一方一厢情愿地播放自己的攻击动画罢了,被攻击的那一方根本不知道发生了什么,攻击者和被攻击者还没有联系起来。
所以,我们就引入了子弹这个东东。
二、正文
一开始我在开发的时候想到用物理引擎,后来想了想还是算了,一是难控制,二是可能会遇到一些问题(例如两个人之间可能会发生碰撞。。)
所以还是将错就错,直接用update函数解决问题吧。...
分类:
其他好文 时间:
2015-01-11 09:45:29
阅读次数:
215
1)终端中输入以下命令$ export LANG=en_US$ xdg-user-dirs-gtk-update在弹出的如下对话框中,选择 update names2)重启系统在弹出的如下窗口中选择“不要再次询问”并点“保留旧的名称”
分类:
系统相关 时间:
2015-01-11 08:30:10
阅读次数:
290
一道比较好的树分治的题目.大力推荐~Query on the subtreeTime Limit: 16000/8000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 479Accept...
分类:
其他好文 时间:
2015-01-10 20:58:44
阅读次数:
286
http://pan.baidu.com/s/1kTmmthHyum update 的时候需要libmpc.so.2, 于是下载了一个 rpm -ivh filename.rpm 安装上就好了
分类:
其他好文 时间:
2015-01-10 19:42:53
阅读次数:
1023