接手一个新的Web项目,编译运行(Tomcat版本为7),运行的时候报出了java.lang.OutOfMemoryError: PermGen
space的异常,搜了一下这样解释: PermGen space的全称是Permanent Generation space,是指内存的永久保存区域。 为...
分类:
编程语言 时间:
2014-05-09 15:24:42
阅读次数:
374
Given a linked list, return the node where the
cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it
without using extra space?首先不...
分类:
其他好文 时间:
2014-05-09 10:42:09
阅读次数:
329
《编程之道》出自美国一位资深的程序设计师 Geoffrey James
之手。相传作者早起打太极拳的时候,突然开悟,悟到了编程之道。本文章我自己整理的番外篇,哈哈哈,有点儿无节操。1.1程序员见禅师:我学了 hello world
和水仙花数,想自己开发个操作系统,希望大师指点。禅师笑而不语,抓来一...
分类:
其他好文 时间:
2014-05-09 10:13:22
阅读次数:
244
Map map = new
TreeMap();//TreeMap本身具有排序功能(默认按键升序排序)map.put(12, "hello");map.put(7,
"bravestarr");map.put(20, "world");System.out.println(map.toString(...
分类:
其他好文 时间:
2014-05-09 09:28:49
阅读次数:
282
单词不换行
word-break:"break-all"text-overflow:ellipsis;
超出部分用...代替overflow:hidden;超出不分隐藏字体显示在一行 white-space:"nowrap"想要字体换行显示
max-height:""; 原价...
分类:
其他好文 时间:
2014-05-09 07:45:10
阅读次数:
238
刚在stackoverflow看到一道很不错的问题,遂拿来分享之。
题目要求:我有一个很长的字符串:
String s1="This is my world. This has to be broken."
我要把上面的字符串打乱以固定的长度(例如10)使得输出为:
This is my
world. Thi
s has to b
e broken.
但是...
分类:
其他好文 时间:
2014-05-09 02:41:46
阅读次数:
266
/*
* uva575
* Date:2014/5/7
* State: AC
*/
#include
#include
#include
#include
#include
using namespace std;
const int MAXN=34;
char Arr[MAXN];
int main()
{
//cout << "Hello world!" << end...
分类:
其他好文 时间:
2014-05-09 02:25:56
阅读次数:
269
1, Nginx 安装,http://nginx.org/en/download.html.下载解压,configure,make ,make install.安装过程中确实包,需要先下载安装依赖包2,安装lighttpd的spawn-fastcgi 下载http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz ./configuremake...
分类:
其他好文 时间:
2014-05-09 01:46:02
阅读次数:
358
/*
* uva10879
* Date:2014/5/7
* State:AC
*/
#include
#include
using namespace std;
int main()
{
//cout << "Hello world!" <>N;
...
分类:
其他好文 时间:
2014-05-09 00:30:58
阅读次数:
287
IDisplayTransformationDeviceFrameVisible extent
in device coordinates.FittedBoundsDevice frame in world
coordinates.ResolutionResolution of the device...
分类:
其他好文 时间:
2014-05-08 09:27:11
阅读次数:
695