上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

2014年2月28日

Android NDK

摘要: 很久之前做过android+jni+ndk的开发,但是现在都基本忘完了。所以稍微记录一下。1. Eclipse中创建Android工程,及相应的代码啥的2. 设置工程为支持Native code左栏右击工程名,然后选择“Android Tools”-->"Native Support"3. 在需要加... 阅读全文

posted @ 2014-02-28 17:30 rainduck 阅读(1300) 评论(0) 推荐(0) 编辑

2014年2月26日

Troubles in Building Android Source Code

摘要: Some Troubles or problems you may encounter while you setup the Android source code build environment on Ubutun 12.4.41. Install Sun-jdk1.6prompt:$ sudo apt-get install sun-java6-jdkReading package lists... DoneBuilding dependency tree Reading state information... DonePackage sun-java6-jdk is ... 阅读全文

posted @ 2014-02-26 15:14 rainduck 阅读(271) 评论(0) 推荐(0) 编辑

2014年1月17日

使用uncompyle2直接反编译python字节码文件pyo/pyc

摘要: update:在Mac OS X版的September 10, 2014版(5.0.9-1)中发现安装目录中的src.zip已更换位置至WingIDE.app/Contents/Resources/bin/2.7目录下,其它的Crack操作仍然不变。实际上只需要把之前的abstract.pyo拿出来... 阅读全文

posted @ 2014-01-17 20:49 rainduck 阅读(30651) 评论(3) 推荐(2) 编辑

2013年5月15日

mysql中数据去重和优化

摘要: 更改表user_info的主键uid为自增的id后,忘了设置原来主键uid属性为unique,结果导致产生uid重复的记录。为此需要清理后来插入的重复记录。基本方法可以参考后面的附上的资料,但是由于mysql不支持同时对一个表进行操作,即子查询和要进行的操作不能是同一个表,因此需要通过零时表中转一下。写在前面:数据量大时,一定要多涉及的关键字段创建索引!!!否则很慢很慢很慢,慢到想死的心都有了1 单字段重复生成零时表,其中uid是需要去重的字段create table tmp_uid as (select uid from user_info group by uid having count 阅读全文

posted @ 2013-05-15 15:00 rainduck 阅读(17719) 评论(0) 推荐(2) 编辑

2013年5月14日

gephi内存错误

摘要: 今天发现i5+8G内存的笔记本完全不够用啊,也就才不到100w条边,59w节点...然后提示。。内存出错于是修改安装目录下的etc下的配置文件gephi.conf,调节内存 阅读全文

posted @ 2013-05-14 03:56 rainduck 阅读(859) 评论(0) 推荐(0) 编辑

2013年4月26日

nokia n900配置mail exchange

摘要: 遇到错误 error communicate host原因——需要更新libcurl3http://talk.maemo.org/showpost.php?p=1219479&postcount=1558Just to confirm the Libcurl3 update works on MforE to m.google.com after backing out the dnsmasq.conf work-around. (reboot N900 after each step).For people not clear of the process:Libcurl3 is f 阅读全文

posted @ 2013-04-26 03:16 rainduck 阅读(261) 评论(0) 推荐(0) 编辑

2013年4月24日

系统开机时间、关机时间的获取

摘要: 1.方法开机时间:1)利用timeGetTime获取开机后到当前的毫秒数,然后转换为秒数(舍去毫秒);2)再和当前时间做差,得到Unix格式的格林威治时间。上次关机时间:保存在注册表local machine下的SYSTEM\\CurrentControlSet\\Control\\Windows中的ShutdownTime中,其值为8字节的FILETIME。2. 参考代码其中注释掉的部分主要为中间输出,需要的额话可以还原。其中包含两个额外函数:time_t和FILETIME的相互转化//参考自http://msdn.microsoft.com/en-us/library/windows/de 阅读全文

posted @ 2013-04-24 17:03 rainduck 阅读(6518) 评论(0) 推荐(0) 编辑

2013年4月20日

提升sqlite效率的方法

摘要: 1. 提升方法提高查询效率提高查询速率通常通过创建索引实现提高插入效率批量插入时,使用事务可以提高几千倍(单次插入,使用事务反而降低性能)sqlite3_exec(db, "begin transaction",0,0,0); ...sqlite3_exec(db,"commit transaction",0,0,0); SQLite的数据库本质上来讲就是一个磁盘上的文件,所以一切的数据库操作其实都会转化为对文件的操作,而频繁的文件操作将会是一个很好时的过程,会极大地影响数据库存取的速度。2. 概念事务事务:事务是指作为单个逻辑工作单元执行的一系列操作。 阅读全文

posted @ 2013-04-20 01:16 rainduck 阅读(5325) 评论(0) 推荐(0) 编辑

2013年3月30日

stop words

摘要: 转自:http://searchsoa.techtarget.com/definition/stop-wordIn computersearch engines, a stop word is a commonly used word (such as "the") that a search engine has been programmed to ignore, both when indexing entries for searching and when retrieving them as the result of a search query. When 阅读全文

posted @ 2013-03-30 15:34 rainduck 阅读(308) 评论(0) 推荐(0) 编辑

2013年3月29日

python中threading方式创建的线程的终止

摘要: 对于采用threading方式创建的线程,没有提供推出的方法,只能是等线程函数结束。但是有些情况需要强制结束,这就比较麻烦了。有如下实现方式:import threadingimport inspectimport ctypes def _async_raise(tid, exctype): """raises the exception, performs cleanup if needed""" if not inspect.isclass(exctype): exctype = type(exctype) res = ctype 阅读全文

posted @ 2013-03-29 23:03 rainduck 阅读(21705) 评论(1) 推荐(1) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

导航