- 在使用hibernate的时候,因为错误的cascade和inverse的配置,对save,update,delete coding产生了一些不必要的异常,浪费时间去debug,打包测试发版等
 - 做了一些基本测试,总结如下
- cascade的原理,使用,以及可能的坑
 - inverse使用,以及如何配合cascade
 
 - github上有个hibernate.demo project可做测试原码参考,参见其中com.pazu.hibernate.demo.CascadeTest.java中的测试用例和注释
 
maven surefire-plugin介绍
          
            
              
                
              
              
                发表于
              
              
            
            
            
          
          
            
            
              |
            
              
                
              
              
                分类于
              
              
                
                  
                    pm
                  
                
                
                
              
            
          
          
            
          
          
          
          
          
          
        
      - 查询surefire-plugins的资料的时候不好找,故整理
 - 方便查询+review其使用方法
 
Gerrit Usage Summary
          
            
              
                
              
              
                发表于
              
              
            
            
            
          
          
            
            
              |
            
              
                
              
              
                分类于
              
              
                
                  
                    test
                  
                
                
                
              
            
          
          
            
          
          
          
          
          
          
        
      - record summary during using gerrit
 - record documents relative
 - a good code review tool by openstack
 
yum 源配置相关记录
          
            
              
                
              
              
                发表于
              
              
            
            
            
          
          
            
            
              |
            
              
                
              
              
                分类于
              
              
                
                  
                    linux
                  
                
                
                
              
            
          
          
            
          
          
          
          
          
          
        
      Preface
- 如何配置yum源
 - 如何用yum查找一个rpm
 - 如何选择并安装上面的查询结果
 
yum是什么
- short for 
yellow dog updater,modified
 - 应用于suse,fedora,redhat,centos
 - 解决了rpm包依赖很复杂,安装很费劲的问题
 
如何配置yum源
- 有时候受限于速度等原因,默认yum源并不好用
 - 需要自己配置yum源,主要参考yum源的配置与使用
 - 更新完yum源,记得makecache
 
如何用yum找rpm
- yum search xxx
- xxx是你知道的rpm名称,可以是一部分
 
 yum info abc
yum install xxx
- xxx是完整的rpm名称
 
参考资料
URL
rpm常见命名规范
- fcxx,elxx
- fc18一般表示fedora18
 - el6一般表示centos6或者redhat6
 
 - devel
- 开发包
 
 - i386,i686,x86_64,noarch
- 硬件平台,noarch一般是没要求
 
 
hexo self-defined new blog path
          
            
              
                
              
              
                发表于
              
              
            
            
            
          
          
            
            
              |
            
              
                
              
              
                分类于
              
              
                
                  
                    hexo
                  
                
                
                
              
            
          
          
            
          
          
          
          
          
          
        
      Preface
- 之前使用hexo new时,生成的是按照年/月/title.md的方式,查看起来比较费劲
 - 解决自己想按照categories来生成新文章path的方法,这样查看之前写过的文章的时候会比较方便
 - 一个categories下面文章过多之后,在考虑后续的处理方法。目前暂时能想到的是按年将之前的文章分类,这个工作量不会大,故目前的categories path的方式可行。
 
如何做
修改_config.yml中的配置
#Writing
new_post_name: :categories/:title.md # File name of new postshexo new “title.md” –categories, 即可。然后categories就会写入blog,并且生成路径会按照categories来。
- 配置default_category: uncategorized,可使用默认值
 - 可以使用的变量可以参考:hexo变量
 - 可以使用–variableName variableValue的方式来向hexo中赋值变量,用于new blog path,挺好玩的。
- 不知道能否覆盖default variable,如时间?
 
 
待完善的地方
- categories是支持多个的,如果multi value会怎么样?
 
Markdown 相关记录
          
            
              
                
              
              
                发表于
              
              
            
            
            
          
          
            
            
              |
            
              
                
              
              
                分类于
              
              
                
                  
                    markdown
                  
                
                
                
              
            
          
          
            
          
          
          
          
          
          
        
      markdown的资料汇总,包括文档&URL
git常见问题记录
          
            
              
                
              
              
                发表于
              
              
            
            
            
          
          
            
            
              |
            
              
                
              
              
                分类于
              
              
                
                  
                    tools
                  
                
                
                
              
            
          
          
            
          
          
          
          
          
          
        
      这里记录了git使用过程中碰到的问题.
同时也记录了一些小tips
hexo markdown issue tracking
          
            
              
                
              
              
                发表于
              
              
            
            
            
          
          
            
            
              |
            
              
                
              
              
                分类于
              
              
                
                  
                    hexo
                  
                
                
                
              
            
          
          
            
          
          
          
          
          
          
        
      介绍了 markdown 在学习中发现的相关问题。
Java Remote Debug
          
            
              
                
              
              
                发表于
              
              
            
            
            
          
          
            
            
              |
            
              
                
              
              
                分类于
              
              
                
                  
                    java
                  
                
                
                
              
            
          
          
            
          
          
          
          
          
          
        
      References
- oracle java jdb manual
- show how jdb tools used in debug
 - support local & remote debug
 - url
 
 - jdb simple use
- show the simple example of jdb, by IBM
 - url
 
 
Debug Cases
Local Debug
Basic debug of a simple class file
run java class like
  | 
  | 
Then set breakpoint and do debug like Remote debug steps below.
U can try it with the doc jdb simple use in reference.
Remote debug
add the params below as java run params, such as
  | 
  | 
run jdb with
  | 
  | 
then the jdb should set the breakpoint with command stop
  | 
  | 
input stop command to setup breakpoint
  | 
  | 
it will show
  | 
  | 
then input cont/step/next/step up or some other debug command to debug the code.
The jdb manual quick search
  | 
  |