7.5 Given two squares on a two-dimensional plane, find a line that would cut these two squares in half. Assume that the top and the bottom sides of th...
分类:
其他好文 时间:
2015-09-01 08:03:06
阅读次数:
191
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:
其他好文 时间:
2015-09-01 08:01:08
阅读次数:
175
Activity的两种启动模式:FLAG_ACTIVITY_CLEAR_TOP和FLAG_ACTIVITY_REORDER_TO_FRONT1. 如果已经启动了四个Activity:A,B,C和D。在D Activity里,我们要跳到B Activity,同时希望C,D finish掉,可以在sta...
分类:
其他好文 时间:
2015-08-31 19:06:18
阅读次数:
188
前提:1) 有个一个现成的web服务器,我用是nodejs。2) 有个能在用你手机安装的ipa3) 有个github账号开搞:1、用http://plist.iosdev.top/plisthelper.php/Index/makePlist生成一个plist文件,请确保里面的内容的正确性,用你的w...
分类:
移动开发 时间:
2015-08-31 17:06:32
阅读次数:
1232
一.倒影:-webkit-box-reflect:属性值1:位置 [above , below , left , right]属性值2:间距 像素值属性值3:渐变-webkit-box-reflect: -webkit-linear-gradient(top,rgba(0,0,0,0) 20%,rg...
分类:
Web程序 时间:
2015-08-31 13:08:42
阅读次数:
141
问题描述:在对notify执行性能测试时发现cpu负载突然飙高,cpu利用率高达95%。这时候就要排查是哪些线程消耗了cpu,并从代码层找到占用cpu的“罪魁祸首”。步骤:1.先用ps+grep找到被测试的进程pid。比如:ps–ef|grep notify,得到pid为29128。2.执行top ...
分类:
系统相关 时间:
2015-08-31 00:45:11
阅读次数:
261
堆和栈 在计算机领域,堆栈是一个不容忽视的概念,堆栈是两种数据结构。堆栈都是一种数据项按序排列的数据结构,只能在一端(称为栈顶(top))对数据项进行插入和删除。在单片机应用中,堆栈是个特殊的存储区,主要功能是暂时存放数据和地址,通常用来保护断点和现场。要点:堆,队列优先,先进先出[1]。栈,先进....
分类:
其他好文 时间:
2015-08-30 22:49:35
阅读次数:
190
第一、PERCENT w3cschool中不断的更新着新的知识点。有些感觉都没有这个概念,应该是几乎没有用在工作上的缘故吧如查询数据前面的一半: SELECT TOP 50 PERCENT * FROM Table_Name;//占比例(较少用)SELECT TOP 50 * FROM Tabl.....
分类:
数据库 时间:
2015-08-30 22:47:26
阅读次数:
304
1.负margin法:这是比较常用的方法,在知道元素的宽高的前提下才能使用 1 2 3 #a{ 4 height:300px; 5 width:300px; 6 position:absolute; 7 top:50%; 8 left:50%; 9 margin-lef...
分类:
其他好文 时间:
2015-08-30 22:38:33
阅读次数:
190
We have a graph with size = N like that in Figure 1. Then we are going to find a downward path from the top node to one bottom node.
First, we select the top node as the beginning. Then at any no...
分类:
其他好文 时间:
2015-08-30 19:35:58
阅读次数:
185