software directory: The default directory of
software installed on ubuntu is /usr, so just allocate more space for this
partition when installing oper...
分类:
其他好文 时间:
2014-05-06 00:02:59
阅读次数:
281
# Definition for a binary tree node# class
TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right
...
分类:
其他好文 时间:
2014-05-05 22:56:23
阅读次数:
419
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他好文 时间:
2014-05-05 22:44:13
阅读次数:
328
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他好文 时间:
2014-05-05 22:43:14
阅读次数:
313
The Bandulu Space Agency (BSA) has plans for
the following three space missions:Mission A: Landing on Ganymede, the largest
moon of Jupiter.Mission B:...
分类:
其他好文 时间:
2014-05-05 22:28:06
阅读次数:
565
// BTree.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include"stdlib.h"
#include"malloc.h"
#define BT BTreeNode
#define MS 10
typedef struct BT{
char data;
struct BT *left;
struct BT *right;
}BT;
...
分类:
其他好文 时间:
2014-05-04 12:45:34
阅读次数:
365
题目地址:http://acm.fzu.edu.cn/problem.php?pid=1920题目大意是给定一个n*n的图,模拟扫雷游戏,0代表没有雷区,1代表附近九宫格内只有一个雷……如果不懂的话去玩下扫雷,挺好玩的,99个雷的玩了好几百盘才赢了一次。。。。。。。。。。。。此题假设神操作,点不到雷...
分类:
其他好文 时间:
2014-05-03 23:15:02
阅读次数:
470
解决方案 在catalina.bat 里的 蓝色代码前加入: 红色代码rem -----
Execute The Requested Command --------------------------------------- set
JAVA_OPTS=%JAVA_OPTS%-server -X...
分类:
编程语言 时间:
2014-05-03 22:52:29
阅读次数:
460
今天倒持了 几个小时!
愣是 没有明白 ,为什么我的JSP的第一行没有代码? 还是报错!
错误是:
Description
Resource Path
Location Type
Syntax error, insert ")" to complete Expression
left.jsp /qyrs/WebRoot/admin/iframe
line 1 Clie...
分类:
其他好文 时间:
2014-05-03 21:48:53
阅读次数:
572
缘起
线上有Tomcat升级到7.0.52版,然后有应用的JVM FullGC变频繁,在高峰期socket连接数,Cpu使用率都暴增。
思路
思路是Tomcat本身的代码应该是没有问题的,有问题的可能是应用代码升级,或者环境改变了,总之Tomcat的优先级排在最后。
先把应用的heap dump下来分析下:
jmap -dump:format=b,file=path pid
用IB...
分类:
其他好文 时间:
2014-05-03 21:42:36
阅读次数:
382