在UI设计时,经常会需要 设计 弹出对话框,以下是个样式设计:说明Title space : 标题区contents space : 内容区function space: 功能区在功能区的 user decision making 箭头表示:“用户决策方向”,有两个方向 ”正向“或者”负向“ 或者说...
分类:
其他好文 时间:
2014-07-25 14:21:11
阅读次数:
360
keywords:grub1,grub2,gnome,kde,question describe:install centos7 by U disk,出现问题,解决办法:install centos7test this media &install centos7troubles shooting当...
分类:
系统相关 时间:
2014-07-25 13:55:01
阅读次数:
337
在使用novaresize去修改虚拟机的配置的时候,实际调用的是migrate的代码。在默认情况下,执行resize的时候,首先会进行磁盘disk镜像和后端镜像进行一个合并成raw,然后转换成qcow2的过程。而且会进行迁移的动作。整个过程会相当的消耗时间,而且我们一般只需要修改cpu和mem的大..
分类:
其他好文 时间:
2014-07-25 11:37:52
阅读次数:
255
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:笨办法是每个节点再开辟一个属性存放是否访问过,这样遍历一遍即可知道是否有环。但为了不增加额外的空间,可以设置两个指针,一个一次走一步,另一个一次走两步...
分类:
编程语言 时间:
2014-07-25 11:09:21
阅读次数:
206
一篇关于技术的文档,分享给大家。在MyEclipse中启动程序运行,报错java.lang.OutOfMemoryError: PermGen space应该怎么办?这是eclipse 内存不够的原因。 PermGen space的全称是Permanent Generation space,是指内....
分类:
系统相关 时间:
2014-07-25 10:52:31
阅读次数:
296
Comparison-based sorting takes O(nlgn), so hashset is a good idea. After keeping records of all numbers in the hashset, you start checking each number...
分类:
其他好文 时间:
2014-07-25 03:40:54
阅读次数:
305
Merge Sorted ArrayGiven two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that i...
分类:
其他好文 时间:
2014-07-25 02:34:44
阅读次数:
162
Length of Last WordGiven a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.I...
分类:
其他好文 时间:
2014-07-25 02:26:04
阅读次数:
322
JavaScript 检查 email 地址的正则表达式?1.代码(1)Checking an email address - Version 01This page allows you to enter and checkan email address such as asdf@java2s....
分类:
编程语言 时间:
2014-07-24 21:22:46
阅读次数:
347
Java堆用于存储对象实例,我们只要不断地创建对象,并且保证GCRoots到对象之间有可达路径来避免垃圾回收机制清楚这些对象,就会在对象数量到达最大堆的容量限制后产生内存溢出异常。代码清单中限制Java堆的大小为20MB,不可扩展(将堆的最小值-Xms参数与最大值-Xmx参数设置为一..
分类:
编程语言 时间:
2014-07-24 17:56:32
阅读次数:
264