usage: pm [list|path|install|uninstall] pm list packages [-f] pm list permission-groups pm list permissions [-g] [-f] [-d] [-u] [...
分类:
移动开发 时间:
2014-06-25 19:03:24
阅读次数:
244
project(my)cmake_minimum_required(VERSION 2.8.9)set (CMAKE_PREFIX_PATH "C:\\Qt\\Qt5.3.0\\5.3\\msvc2010_opengl")set(CMAKE_INCLUDE_CURRENT_DIR ON)find_p...
分类:
其他好文 时间:
2014-06-25 16:59:54
阅读次数:
221
//载入核心文件include "./libs/Smarty.class.php";$smarty = new Smarty();//模版目录$smarty->template_dir = "template";//模版目录$smarty->compile_dir = "temp/compile";...
分类:
其他好文 时间:
2014-06-25 16:45:02
阅读次数:
184
循环包括1 .while(){ ++;}while循环,需要先进行判断,才能执行。(注:添加++,结束循环)例:输100次int i = 0;while(ia[j+1]){temp = a[j];//存第一个元素a[j] = a[j+1];//把第二个元素赋给第一个a[j+1] = temp;//....
分类:
其他好文 时间:
2014-06-25 16:44:25
阅读次数:
143
配合lvs的ha模式,lvs的ha模式可以参考这里ssdb主机:192.168.1.104192.168.1.108修改ssdb.conf104主机# ssdb-server config# MUST indent by TAB!# relative to path of this file, di...
分类:
数据库 时间:
2014-06-25 16:21:01
阅读次数:
449
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change执行 sudo xcode-select -swi...
分类:
其他好文 时间:
2014-06-25 16:13:31
阅读次数:
190
用了while, do...while, for in, for in ...var i = 0var temp = 0while i < 1000 { temp += i i++}println(temp)var j = 0var temp2 = 0do { te...
分类:
其他好文 时间:
2014-06-25 15:56:28
阅读次数:
165
如果开启FastCGI模式,.htaccess无法生效,一直提示no input file specified。
因为在Fastcgi模式下,php不支持rewrite的目标网址的PATH_INFO的解析
ThinkPHP运行在URL_MODEL=2时,会出现 No input file specified.的情况,
这时可以修改网站目录的.htaccess文件:(by default7...
分类:
其他好文 时间:
2014-06-25 00:23:53
阅读次数:
209
【题目】
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,
1
/ 2 3
Return 6.
【题意】
给定一棵二叉树,找出其中路径和最大的路径,然会返回最大路径和。
本题中的路径不是从根节点到叶子节点这样的传统的路...
分类:
其他好文 时间:
2014-06-24 20:42:59
阅读次数:
268
我们在升级4.4的过程中,发现了部分第三方应用不能使用。查看发现以下几点要求:
1》 API 19以上现在强制要求android.permission.READ_EXTERNAL_STORAGE 和android.permission.WRITE_EXTERNAL_STORAGE 权限了。
2》如果发现仍然可以在真机上面没有加权限也可以读到sdcard的内容。请查看手机是否是r...
分类:
移动开发 时间:
2014-06-24 15:50:28
阅读次数:
273