转载地址:http://www.douban.com/note/208397087/具体方法: 1. 手机获取root权限; 2. 手机下载安卓终端应用(例如:Better Terminal) 3. 手机端打开终端应用输入: su setprop service.adb.tcp.p...
分类:
移动开发 时间:
2014-07-22 22:53:33
阅读次数:
224
以前做项目的时候就依葫芦画瓢的设置 { font-family:arial,”microsoft yahei”,simsun,sans-self; } 等类似的字体,然而当更多的设备和系统出现后,以前这样的设置已不能满足网页在各设备上的显示需求。就拿最简单的宋体(simsun)来说吧,在Window...
分类:
Web程序 时间:
2014-07-22 22:52:33
阅读次数:
349
在/usr/shared/dstat目录下dstat_mysql5_conn.py中的部分源代码c = self.db.cursor()c.execute("""show global variables like 'max_connections';""")max = c.fetchone()c....
分类:
数据库 时间:
2014-07-22 22:51:36
阅读次数:
252
What if the given tree could be any binary tree? Would your previous solution still work?Note:You may only use constant extra space.For example,Given ...
分类:
其他好文 时间:
2014-07-22 08:37:34
阅读次数:
289
给定一棵二叉树, 如何确定这棵二叉树的高度(即树的最大的深度), 是一个很常见的问题。
给下图回顾一下:
关于高度和深度的概念, 参见上图。
NOTE: 高度: 参考节点是距离节点最远的叶子
深度: 参考节点是根节点
寻找二叉树的高度也可以通过一个递归函数(a recursive function)实现, 这依然源于树是一个递归的数据结构。
例如, 对于下图, 我们可以求出根...
分类:
编程语言 时间:
2014-07-21 09:18:35
阅读次数:
344
接着上一篇:《ASP.NET SignalR系列》第三课 SignalR的支持平台一、概述 SignalR常常依托于ASP.NET应用程序运行于IIS中,但它还可以自我托管(比如作为consolewinform、Windows service).只要我们使用self-host库就可以了.该库向所有....
分类:
Web程序 时间:
2014-07-20 21:33:59
阅读次数:
531
Target-Action传值
实质就是:A页面要给B页面传值,A就提供接口出去,抓A到B内部来,A间接调用自己内部方法(相当于,A把自己内部需 要操作的方法,传到B内来,到B内部进行赋值,这样就不存在访问不到各自的局部实例变量)
@property (nonatomic,assign)id traget; @property (nonatomic,assign)SEL action;
[self.traget performSelecto...
分类:
其他好文 时间:
2014-07-19 23:28:19
阅读次数:
281
override func viewDidLoad() { super.viewDidLoad() var swipeRight = UISwipeGestureRecognizer(target: self, action: "respondToSwipeGesture:") s...
分类:
其他好文 时间:
2014-07-19 22:37:06
阅读次数:
239
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:如下图所示的一棵树: ...
分类:
其他好文 时间:
2014-07-19 19:00:44
阅读次数:
262
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.类似http://www.cn...
分类:
其他好文 时间:
2014-07-19 18:19:06
阅读次数:
243