1、如何将自动缩进的字符从默认的八个改为四个:settabstop=42、复制/etc/grub2.cfg配置文件至/tmp目录,用查找替换命令删除文件中的行首空白字符centos6则复制/etc/grub.conf:%s@^[[:space:]]@@g3、复制/etc/rc.d/init.d/functions文件至/tmp目录,用查找替换命令为文件中以空..
分类:
系统相关 时间:
2015-09-03 14:07:44
阅读次数:
168
alt+home:定位文件ctrl+alt+space:代码自动提示alt+enter:自动导包ctrl+x:删除ctrl+-:类搜索ctrl+=:弹出当前打开列表ctrl+shift+back:最后一次修改alt+up:上一个函数ctrl+shift+s:类结构ctrl+alt+R:批量重命名ct...
分类:
其他好文 时间:
2015-09-03 14:02:11
阅读次数:
139
DescriptionThe cows are going to space! They plan to achieve orbit by building a sort of space elevator: a giant tower of blocks. They have K (1 =0表示取...
分类:
编程语言 时间:
2015-09-02 21:54:00
阅读次数:
320
layout_margindefines the amount of space around the outside of a viewpadding defines the amount of space around the contents or children of a view. .....
分类:
其他好文 时间:
2015-09-02 18:46:24
阅读次数:
151
Given an integer array of size n, find all elements that appear more than
? n/3 ? times. The algorithm should run in linear time and in O(1) space.
Solution:
At most has two elements in the r...
分类:
其他好文 时间:
2015-09-02 08:15:45
阅读次数:
140
Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?Analyse: Obtain the elements first, ...
分类:
其他好文 时间:
2015-09-02 07:05:08
阅读次数:
162
大家应该都知道用text-overflow:ellipsis属性来实现单行文本的溢出显示省略号(…)。当然部分浏览器还需要加宽度width属性。overflow: hidden;text-overflow: ellipsis;white-space: nowrap;但是这个属性并不支持多行文本溢出显...
分类:
其他好文 时间:
2015-08-31 19:04:29
阅读次数:
187
客户的数据库是Oracle Database 11.2.0.3.0 for AIX 6.1 64bit的单机数据库。客户查询DBA_FREE_SPACE发现UNDO表空间的使用率高达98%以上。客户的UNDO表空间已经手动扩展到了25GB,且一直在增加,为了UNDO表空间能及时的被释放,UNDO表空...
分类:
数据库 时间:
2015-08-31 18:52:37
阅读次数:
499
题目:Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is gr...
分类:
其他好文 时间:
2015-08-31 16:55:11
阅读次数:
136
现象:[FreeBSD]服务器里无法与外网通讯问题,提示"ping:sendto:Nobufferspaceavailable"服务器无法连接.刚开始以为资源不足1,重启,问题依旧.启动一小会儿,ping任何地址就又开始报错2,重装,问题依旧.3,网卡换个插口,问题解决.虽然不成章,但还是绕路了,因为看到网上没人写,希望..
分类:
其他好文 时间:
2015-08-31 15:29:13
阅读次数:
124