https://leetcode.com/problems/divide-two-integers/Divide two integers without using multiplication, division and mod operator.If it is overflow, retur...
分类:
其他好文 时间:
2015-03-14 15:13:58
阅读次数:
117
display:none |inline| block | list-item | inline-block | table | inline-table | table-caption | table-cell | table-row | table-row-group | table-colum...
分类:
Web程序 时间:
2015-03-13 12:11:09
阅读次数:
120
/var/log/messages 中出现大量的TCP: time wait bucket table overflow引起该现象的原因是服务器tcp的连接数太多,超出了内和定义的最大数临时改变使用# echo 20000 > /proc/sys/net/ipv4/tcp_max_tw_bucket...
分类:
其他好文 时间:
2015-03-13 12:08:23
阅读次数:
135
题目: Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 题意: 不用乘号、除号、取模运算来模拟除法。 分析: 一开始每回减去...
分类:
其他好文 时间:
2015-03-13 08:10:38
阅读次数:
127
由于手机硬件情况的不同,在没有物理Menu键的手机上,ActionBar的overflow按钮会有显示不出来的情况,可以通过反射的方式修改ViewConfiguration类中的sHasPermanentMenuKey静态变量的值永远为false,系统就是根据这个变量值来判断手机有没有物理Menu键,代码如下:
@Override
protected void onCreate(Bundl...
分类:
移动开发 时间:
2015-03-12 15:12:56
阅读次数:
1042
1 针对Android4.0以上,清单文件中application的theme设置需要正确,否则会在Activity中getActionBar()获取不到ActionBar的对象,所以在接下来的针对actionbar的操作报NullPointerException 2 设置overflow一直显...
分类:
其他好文 时间:
2015-03-12 13:25:53
阅读次数:
110
今天做了个样例:div 的滚动栏问题:两种方法:一、记住宽和高一定要设置噢,否则不成的只是在不超出时,会有以下的滚动栏,所以不是最好的选择二、记住宽和高一定要设置噢,否则不成的这样比較好的是,在宽和高不超出时,仅仅是一条线三、说明直接为div指定overflow属性为auto就可以,可是必须指定di...
分类:
其他好文 时间:
2015-03-12 13:13:26
阅读次数:
96
#include #include #define OVERFLOW -2#define OK 1#define ERROR 0typedef int ElemType;//单向链表结构体typedef struct LNode { ElemType data; struct LNode *next...
分类:
编程语言 时间:
2015-03-11 21:35:27
阅读次数:
242
#include #include #define LIST_INIT_SIZE 100#define LISTINCREMENT 10#define OVERFLOW -2#define OK 1#define ERROR 0typedef int ElemType;//顺序表结构typedef ...
分类:
编程语言 时间:
2015-03-11 19:14:39
阅读次数:
197
textArea的高度自适应本来应该很简单的,只需要用js监听它的输入然后修改其高度即可,甚至对于ie只要用css(overflow:visible;)控制就可以了。但是同样会有兼容性问题,用一个jQuery插件来实现。代码如下: $.fn.extend({ textareaAutoHeight: ...
分类:
Web程序 时间:
2015-03-11 17:02:09
阅读次数:
156