查询死锁SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableNameFROM sys.dm_tran_locksWHERE resource_type='OBJECT' and OBJECT_NA...
                            
                            
                                分类:
数据库   时间:
2014-07-16 21:38:05   
                                阅读次数:
204
                             
                    
                        
                            
                            
                                // custom selector `:findday` used to match on specified day in ms. // // The selector is passed a date in ms and elements are added to...
                            
                            
                                分类:
编程语言   时间:
2014-07-16 21:26:27   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                Implement a MyQueue class which implements a queue using two stacks./*Use two stacks, when enqueue, first pop all the elements in stack2 on stack1, th...
                            
                            
                                分类:
其他好文   时间:
2014-07-16 20:39:50   
                                阅读次数:
234
                             
                    
                        
                            
                            
                                Javascript的IE和Firefox(火狐)兼容性-转 em 问题(1)现有问题:现有代码中存在许多 documenem("itemName") 这样的语句,不能在Firefox(火狐)下运行(2)解决方法:改用 document.formName.elements["elementName....
                            
                            
                                分类:
编程语言   时间:
2014-07-14 09:56:19   
                                阅读次数:
293
                             
                    
                        
                            
                            
                                Given 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 is greater or equal to m + n) to hold additional elements from ...
                            
                            
                                分类:
其他好文   时间:
2014-07-13 17:21:40   
                                阅读次数:
208
                             
                    
                        
                            
                            
                                原因1:给定目录下jvm.dll不存在。对策:(1)重新安装jre或者jdk并配置好环境变量。(2)copy一个jvm.dll放在该目录下。原因2:eclipse的版本与jre或者jdk版本不一致对策:要么两者都安装64位的,要么都安装32位的,不能一个是32位一个是64位。原因2的概率更大一些,原...
                            
                            
                                分类:
系统相关   时间:
2014-07-13 09:24:50   
                                阅读次数:
372
                             
                    
                        
                            
                            
                                插件在Xcode中的路径:Macintosh HD > 用户 > xxx > 资源库 > Application Support > Developer > Shared > Xcode > Plug-ins1.BBUDebuggerTuckAway编辑代码时退出控制台2.KSImageNamed使...
                            
                            
                                分类:
其他好文   时间:
2014-07-13 00:34:44   
                                阅读次数:
182
                             
                    
                        
                            
                            
                                ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
进程 ID: 0
会话 ID: 0 序列号: 0...
                            
                            
                                分类:
数据库   时间:
2014-07-10 21:02:42   
                                阅读次数:
274
                             
                    
                        
                            
                            
                                linux生成动态库时遇到了relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC错误。
由于我的系统是AMD64位的,所以需要在编译的时候添加 -fPIC选项
解决方法:
例如:
g++ -c -fPIC head.cpp ...
                            
                            
                                分类:
系统相关   时间:
2014-07-10 21:02:04   
                                阅读次数:
16872
                             
                    
                        
                            
                            
                                LINUX环境下多线程编程肯定会遇到需要条件变量的情况,此时必然要使用pthread_cond_wait()函数。但这个函数的执行过程比较难于理解。
    pthread_cond_wait()的工作流程如下(以MAN中的EXAMPLE为例):
       Consider two shared variables x and y, protected by the mutex mut,...
                            
                            
                                分类:
其他好文   时间:
2014-07-10 19:50:36   
                                阅读次数:
347