垂直居中: 先height再ling-height,都设成一样高设置外边距:
margin-top,margin-left,margin-right,margin-bottomdiv背景单张铺满设置: width: 30px;
height: 30px; line-height: 30px;...
分类:
Web程序 时间:
2014-05-08 14:38:55
阅读次数:
474
Found the solution myself in the end. The problem
was not with theLinearLayout,but with theScrollView(seems weird, considering the
fact that theScroll...
分类:
移动开发 时间:
2014-05-08 13:42:02
阅读次数:
321
IntroductionThis article is part of the ongoing
series I’ve been writing recently, but can be read as a standalone article. I’m
going to do a better j...
分类:
其他好文 时间:
2014-05-08 13:01:13
阅读次数:
599
由于python具有无限精度的int类型,所以用python实现大整数乘法是没意义的,但是思想是一样的。利用的规律是:第一个数的第i位和第二个数大第j位相乘,一定累加到结果的第i+j位上,这里是从0位置开始算的。代码如下:
import sys
def list2str(li):
while li[0]==0:
del li[0]
res=''
for i in li:
res+...
分类:
编程语言 时间:
2014-05-07 23:13:21
阅读次数:
453
最近,在看一个本书《如何阅读一本书》
文中谈到Skim-read,粗读。
审视我一直以来的阅读习惯,觉得基本是反面教材:
顺序阅读,力求每一句都理解,以看完一本书为目标。
略读:
1、书名,是否包含你想了解的方面
2、序言、出版者的话等,看下这本书的目的
3、目录,对此书的基本架构做概括性的理解;
. 旅行之前,地图还是很有必要去看的。
4、索引(一般的英文书都有...
分类:
其他好文 时间:
2014-05-07 21:45:43
阅读次数:
290
Network Working Group S. BradnerRequest for
Comments: 2119 Harvard UniversityBCP: 1...
分类:
其他好文 时间:
2014-05-07 21:26:24
阅读次数:
379
Given n points on a 2D plane, find the maximum
number of points that lie on the same straight line. 解题想法:
其实判断一个直线上最好的方法是判断斜率。如果在同一直线上,那么直线上一点与其他点的斜率相...
分类:
其他好文 时间:
2014-05-07 21:13:02
阅读次数:
323
if(navigator.userAgent.indexOf("MSIE")>0){return"MSIE";}if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){return"Firefox";}if(isSafari=navigator....
分类:
Web程序 时间:
2014-05-07 17:03:46
阅读次数:
288
最近有一些客户有这样一个需求,一个ASM磁盘组中分别挂载不同性能的存储或磁盘。希望ASM在读取的时候,优先读取性能好的磁盘,性能差的磁盘更多的是扮演‘standby‘的角色。oracle提供一个参数ASM_PREFERRED_READ_FAILURE_GROUPS,来实现ASM优先读取的功能,但是以FAILURE_GROUP..
分类:
其他好文 时间:
2014-05-07 15:28:30
阅读次数:
330