习惯了直接在xml里设置margin(距离上下左右都是10dip),如:只是有些情况下,需要在java代码里来写。API中,android.view.ViewGroup.MarginLayoutParams有个方法setMargins(left,
top, right, bottom)。可是View...
分类:
移动开发 时间:
2014-05-26 23:51:05
阅读次数:
543
[题目]设$p>1,f\in
C(0,+\infty)$,且$\int_0^\infty|f(t)|^pdt$收敛,证明:$$\left\{\int_0^\infty\left[\frac{1}{x}\int_0^x|f(t)|dt\right]^pdx\right\}^{\frac{1}{p}}\...
分类:
其他好文 时间:
2014-05-23 06:18:24
阅读次数:
408
上篇实例为图片浏览器是从小说阅读器直接将图片分页替换文本分页,还是双页显示。页面小阅读比较吃力,本篇拟改动几行代码,用全屏显示,看看效果如何。
#pgnumber{position:fixed;font-size:12px;left:200px;height:25px;top:10px;width:200px;z-index:1;} 原top改成10px,也就是从页脚改到页眉,可以动...
分类:
移动开发 时间:
2014-05-23 02:28:51
阅读次数:
397
先看效果图: 游戏结束图: javascript实现源码:
俄罗斯方块
© 2009 - 2014 All Rights by ithomer.net
var domain="www.zuidaima.com";
var author="zuidaima";
var map=eval("["+Array(23).join("0x801,")+"0xfff]");
var tatris=[...
分类:
编程语言 时间:
2014-05-23 02:19:04
阅读次数:
253
有一道这样的面试题:开启一个子线程和主线程同时运行,子线程输出10次后接着主线程输出100次,如此反复50次。先看下面代码:package com.maso.test;
/**
*
* @author Administrator
* 两个线程,其中是一个主线程,第一个线程先运行输出10次,主线程接着运行输出100次,如此反复50次
*/
public class ThreadTest3...
分类:
移动开发 时间:
2014-05-23 00:57:26
阅读次数:
368
LEFT JOIN 操作符
LEFT JOIN 关键字从左表(table1)返回所有的行,即使右表(table2)中没有匹配。如果右表中没有匹配,则结果为 NULL。
SQL LEFT JOIN 语法
SELECT column_name(s)
FROM table1
LEFT JOIN table2
ON table1.column_name=table2.column_name;...
分类:
数据库 时间:
2014-05-23 00:10:46
阅读次数:
497
1 #include 2 3 4 using namespace std; 5 6 void
Repeat(int* a,int Left,int Right); 7 int QuickSort(int* a,int Left,int Right); 8
9 10 void main()1...
分类:
其他好文 时间:
2014-05-22 14:53:10
阅读次数:
224
今天在腾讯云的服务器被攻击后,apache启动报错,查找原因发现是磁盘空间不够no space left on device,
诡异的是df命令磁盘占用仅55%
继续查找原因,发现是iNode已满,即没有索引空间
这就好办了,首先定位哪个目录占用iNode最多,命令如下:
find */ ! -type l | cut -...
分类:
系统相关 时间:
2014-05-21 14:46:09
阅读次数:
363
Description
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there exists a ...
分类:
其他好文 时间:
2014-05-21 10:58:39
阅读次数:
237
从多任务OS开始,线程主要用来表示IO异步;而今随着4G和多核等的到来,计算密集型又热门起来了。
硬件价格和性能从低到高:
PC/Laptop multi core, memory shared
PC clusters
SuperComputers
假设一个理想并行计算机:每个处理器计算能力相同,忽略调度,
static thread 是对一个虚拟处理器的软件层面的抽象;
s...
分类:
其他好文 时间:
2014-05-21 08:17:39
阅读次数:
326