log4j配置文件不生效,log4j:WARN No appenders could be 
found for logger
                            
                            
                                分类:
移动开发   时间:
2014-06-12 16:37:34   
                                阅读次数:
211
                             
                         
                    
                        
                            
                            
                                3.1Describe how you could use a single array to 
implement three stacks.Flexible 
Divisions的方案,当某个栈满了之后,需要把相邻的栈调整好,这是一个递归的过程。每个stack有一些属性,所以不妨将每个stack封闭...
                            
                            
                                分类:
其他好文   时间:
2014-06-10 16:27:38   
                                阅读次数:
234
                             
                         
                    
                        
                            
                            
                                只需要冲定义该对象的
to_yaml_properties 方法, 只返回要序列化的字段就可以了
class A
	attr_reader :a
	attr_reader :b
	def initialize(x,y)
		@a = x
		@b = y
	end  
end
a = A.new(1,3)
p a.to_yaml	# => "--- !ruby/object:A...
                            
                            
                                分类:
其他好文   时间:
2014-06-10 15:54:19   
                                阅读次数:
172
                             
                         
                    
                        
                            
                            
                                在安装VMware并启动新建的虚拟系统时,会出现错误could not open /dev/vmmon。
一般情况下,这是由于ubuntu系统gcc版本的问题。我机器上是gcc-4.5,于是我将其修改为gcc-4.6,方法如下...
                            
                            
                                分类:
其他好文   时间:
2014-06-10 14:45:41   
                                阅读次数:
238
                             
                         
                    
                        
                            
                            
                                本文出自:http://blog.csdn.net/svitter
引文出自:http://hi.baidu.com/owbtkcjhtmaeuyr/item/175d53ff2ad985b231c1991e
解决apache启动错误"httpd:Could not reliably determine..."
    locate httpd.conf
    vim httpd...
                            
                            
                                分类:
Web程序   时间:
2014-06-10 13:53:44   
                                阅读次数:
323
                             
                         
                    
                        
                            
                            
                                1.问题描述Oracle服务器断电重启以后无法数据库无法正常连接,使用sqlplus 
envision/envision连接报错。常见的错误有以下这些:ORA-12518: TNS:listener could not hand off 
client connectionORA-12560: TNS...
                            
                            
                                分类:
数据库   时间:
2014-06-10 09:56:23   
                                阅读次数:
429
                             
                         
                    
                        
                            
                            
                                Could not write metadata for '/test'.
这是由于删除一个项目时,没有同时在硬盘上删除该项目,而后又到硬盘文件系统中删除了该项目,才出现这问题的。
到eclipse工作空间workspace中找到\.metadata\.plugins\org.eclipse.core.resources\.projects
在其下面新建一个test再打开eclipse,在项...
                            
                            
                                分类:
系统相关   时间:
2014-06-10 07:47:39   
                                阅读次数:
329
                             
                         
                    
                        
                            
                            
                                javax.servlet.ServletException: 
org.springframework.transaction.CannotCreateTransactionException: Could not open 
Hibernate Session for transaction; n....
                            
                            
                                分类:
系统相关   时间:
2014-06-09 15:53:41   
                                阅读次数:
432
                             
                         
                    
                        
                            
                            
                                1、函数、变量出现“could not be resolved ”问题
出现此问题一般是没有找到cocos2d-x声明的头文件,在eclipse将cocos2d的头文件目录引入,包括工程目录、platform/android
在hellocpp/main.cpp函数加入头文件
#include "AppDelegate.h"
#include "cocos2d.h"
#include "...
                            
                            
                                分类:
移动开发   时间:
2014-06-08 15:06:08   
                                阅读次数:
425