ServletContext:可以把ServletContext理解为一个共用空间,可以被所有客户访问。如何使用ServletContext:1、 得到ServletContext实例this.getServletContext();2、 可以把ServletContext想象为一张表,这个和ses...
分类:
其他好文 时间:
2015-01-05 08:16:08
阅读次数:
180
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.C...
分类:
其他好文 时间:
2015-01-05 08:15:08
阅读次数:
124
解题思路:将给出的点都合并之后,判断是否同时满足两个条件1 只构成一棵树2 这棵树上没有环需要注意的是 输入 0 0的时候输出"Yes",即空树也是树 对于只含有一个节点的树,也是一棵树例如输入 2 2 0 0,0 0为输入的终止,2 2构成一棵只含节点2的树小希的迷宫Time Limit: 200...
分类:
其他好文 时间:
2015-01-05 08:17:26
阅读次数:
171
一、cobbler安装准备1.关闭iptables与selinux1#chkconfigiptablesoff2#vi/etc/selinux/configSELINUX=disabled2.安装源准备并安装cobbler软件说明:基础源与epel源。rpm–ivhhttp://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm(要装32位机器可?.
分类:
其他好文 时间:
2015-01-05 07:14:32
阅读次数:
262
https://oj.leetcode.com/problems/largest-rectangle-in-histogram/http://blog.csdn.net/linhuanmars/article/details/20524507publicclassSolution{
publicintlargestRectangleArea(int[]height)
{
//SolutionA
//returnlargestRectangleArea_Expand(height);
//SolutionB
..
分类:
其他好文 时间:
2015-01-05 07:13:52
阅读次数:
132
https://oj.leetcode.com/problems/gray-code/publicclassSolution{
publicList<Integer>grayCode(intn)
{
//规律:
//n=0:
//0
//
//n=1:
//0
//1
//
//n=2:
//00
//01
//11
//10
//
//n=3
//000
//001
//011
//010
//110
//111
//101
//100
//
//设n-1结果集为s
//正序..
分类:
其他好文 时间:
2015-01-05 07:12:52
阅读次数:
150
TKPROF可以把Trace源文件转换为更易读的形式。Usage:tkproftracefileoutputfile[explain=][table=][print=][insert=][sys=][sort=]
分类:
其他好文 时间:
2015-01-05 07:12:46
阅读次数:
170
https://oj.leetcode.com/problems/merge-sorted-array/http://blog.csdn.net/linhuanmars/article/details/19712333publicclassSolution{
publicvoidmerge(intA[],intm,intB[],intn){
//SolutionA:
//merge_NoExtraSpace(A,m,B,n);
//SolutionB:
merge_ExtraSpace(A,m,B,n);..
分类:
其他好文 时间:
2015-01-05 07:14:31
阅读次数:
141
https://oj.leetcode.com/problems/subsets-ii/http://blog.csdn.net/linhuanmars/article/details/24613193publicclassSolution{
publicList<List<Integer>>subsetsWithDup(int[]num){
Arrays.sort(num);
Set<List<Integer>>results=newHashSet<..
分类:
其他好文 时间:
2015-01-05 07:13:53
阅读次数:
190
这一节和老师学习了软件包的使用首先看看如何rpm的使用,这个命令可以用来查询,安装,卸载,更新软件包简单的说,后面跟q是查询,i是安装,u是更新,e是卸载,V是验证,我们挨个来看看首先是查询,-qa表示查询所有已经安装的包,如下所示值得一提的是RPM本质是一个别人预先编..
分类:
其他好文 时间:
2015-01-05 07:10:42
阅读次数:
285
org.hibernate.HibernateException:NoHibernateSessionboundtothread,andconfigurationdoesnotallowcreationofnon-transactionalonehere
org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63)1.如果想让spring帮你管理事务..
分类:
其他好文 时间:
2015-01-05 07:12:56
阅读次数:
158
ipc$所使用的端口1SMB:(ServerMessageBlock)Windows协议族,用于文件打印共享的服务;2NBT:(NETBiosOverTCP/IP)使用137(UDP)138(UDP)139(TCP)端口实现基于TCP/IP协议的NETBIOS网络互联。3在WindowsNT中SMB基于NBT实现,即使用139(TCP)端口;而在Windows2000中,SMB除了..
分类:
其他好文 时间:
2015-01-05 07:12:03
阅读次数:
200
SparkVSMapReduce时间节约66%,计算节约40%http://mp.weixin.qq.com/s?__biz=MzA3MjY1MTQwNQ==&mid=200820787&idx=1&sn=638a4b16445a5ee7a184b7a9becf4d5d&scene=2&from=timeline&isappinstalled=0#rd数据挖掘十大算法总结--核心思想,算法优缺点,应..
分类:
其他好文 时间:
2015-01-05 07:09:45
阅读次数:
375
网络规划:两台LVSserver:(两台LVS也可以为用户提供错误页面)node1:172.16.31.10node2:172.16.31.11VIP:172.16.31.180ipvs规则内包含2台RealServer:(后面的RS指的就是后端的web服务器)rs1:172.16.31.13rs2:172.16.31.14我们还需要错误页面提供者:我们选择LVS作为sor..
分类:
其他好文 时间:
2015-01-05 07:09:16
阅读次数:
442
还记的之前老猫关于通过Powershell远程管理Azure中虚拟机的博文的脚本中,每个虚拟机访问都需要通过get-credential交互方式取得用于访问的用户凭据,但是这这种方式每次都要进行用户交互,如果反复运行的脚本显然不是个好方式,如何加密保留用户的凭据以便反复使用就是个最佳实..
分类:
其他好文 时间:
2015-01-05 07:09:30
阅读次数:
167
在VC下界面的美化比较麻烦,但方法也很多,由于投入时间不能太多,所以只能找些简单的美化方法,下面记录下自己美化程序时用到的一些方法,由于程序比较简单,高手可以略过.首先,我用的是MFC对话框程序,按钮肯定是美化的,网上比较出名的有CButtonST,功能比较强大,但具体的..
分类:
其他好文 时间:
2015-01-05 07:08:20
阅读次数:
158
线上使用cdh4.6.0和hive0.13.1,在hive0.11之后开始支持orcfile,hive0.13.1使用的是pb2.5.0,cdh4.6.0是用的2.4.0a,线上测试orcfile,建表正常,但是插入数据时报错报错:java.lang.VerifyError:classorg.apache.hadoop.hive.ql.io.orc.OrcProto$RowIndexoverridesfinalmethodge..
分类:
其他好文 时间:
2015-01-05 07:07:48
阅读次数:
244