疑问:
在linux中,使用top命令,发现某java进程占用CPU较高,如何定位到是那个线程,执行哪些代码导致的呢?...
分类:
其他好文 时间:
2014-06-05 11:58:50
阅读次数:
197
上下垂直居中 在线演示 DIVCSS5
#main {
position: absolute;
width:400px;
height:200px;
left:50%;
top:50%;
margin-left:-200px;
margin-top:-100px;
border:1px solid #00F
}
/*css注释:为了方便截图,对CSS代码进行换行*/
DI...
分类:
Web程序 时间:
2014-06-05 11:36:39
阅读次数:
253
我们已经完成了lwIP的系统移植,那么我们就需要进行ethernet的移植工作。
ethernet的移植工作,主要是“填空“ethernetif.c的过程!(PS. 再一次感谢Adam Dunkels大侠的无私工作!以及对他的敬意!)
ethernetif.c位置(../src/netif)
一、移植硬件
1....
分类:
Web程序 时间:
2014-06-05 09:16:05
阅读次数:
680
一切见注释。
#include
#include
#include
#include
using namespace std;
bool vis[22];
int n;
int ans[22];
int top;
bool isprime(int x)//判断素数
{
for(int i=2;i<x;i++)
if(x%i==0)return false;
...
分类:
其他好文 时间:
2014-06-05 08:26:47
阅读次数:
201
一、基本语法:window.open(pageURL,name,parameters)其中:pageURL 为子窗口路径name 为子窗口名字parameters 为窗口参数(各参数用逗号分隔)二、示例
window.open('page.html','newwindow','height=500,width=800,top=0,left=0,
toolbar=no,menuba...
【题目】
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
【题意】
有个梯子有n阶,每次只能爬1阶或者2阶,为爬到梯子顶共有多少种爬法
【思路】
依次确定跳到每一阶上的爬法数目
这其实是一...
分类:
其他好文 时间:
2014-06-05 07:16:08
阅读次数:
203
最近使用NDK进行项目开发过程中,debug模式下logcat输出以下错误(PS:正常run没有任何错误,JNI方法执行没有问题):
05-28 13:48:10.422: W/dalvikvm(15024): JNI WARNING: input is not valid Modified UTF-8: illegal start byte 0xa5
05-28 1...
分类:
其他好文 时间:
2014-06-05 06:58:36
阅读次数:
1128
Ladda 应用提交表单的时候显示loading加载中 包括不同位置,不同效果 不同大小,位置,效果,进度条等演示 XML/HTML Codearticle class="examples" style="margin-top:0px;"> section class="button-demo"> h3>expand-lefth3> button class="ladda-button" d...
分类:
其他好文 时间:
2014-06-05 06:46:10
阅读次数:
367
继续刚刚的讲,完成开发环境的搭配之后,我们就可以开始自己开发自己的应用程序了。
1、先熟悉一下整个开发环境的目录结构。PS:至于eclipse的使用在这里就不多说了,如果不会的,请自己去百度找相关的知识。
先新建一个项目:
然后:
就那个Required SDK一般选2.2之外,其他的所有都可以默认。
然后就可以看到目录结构了。
具体的我就不废话了,因为...
分类:
移动开发 时间:
2014-06-05 06:12:06
阅读次数:
271
Legend, 翻译过来的意思是图例。
在Extjs 的Chart 中, 到底右边红色框起来的部分就是Legend 了。
在 Extjs Chart 的定义中, 可以通过配置 legend 的配置值(configs)来设置Legend 显示的位置和样式:
position 配置显示的位置:可以设置的值有 "top","bottom", "left", "right", or "float"。
其他还可以设置图例显示的文字、图的样式等等, 详细可以参见 Ext.chart.Legend 的参考文档。代...
分类:
Web程序 时间:
2014-06-04 22:49:05
阅读次数:
526