Thursday, November 28, 2013

HBase Query Results to File

1. Create a file hbase_query with all your HBase Queries
2. Run the following command
cat hbase_query | hbase shell > hbase_output

Sunday, November 24, 2013

How to type control characters into a file using Vi

Its simple.. For example if you need to write ^@ in a file in unix
1. Open the file in insert mode using vi
2. Use the keys in the order they have been listed
(ctrl+v) + (ctrl+@)
All it means is keep the ctrl key pressed and use v & @ in close succession

Thursday, November 21, 2013

Most frequently used Maven Plugins

maven-assembly-plugin
A plugin to package a runnable jar with all its dependencies.
'SkipAssembly' property when set to false packages the dependencies inside the jar!
false
'manifest' tag can be used to set the jar manifest entries
 
         com.bytemeagain.json.JsonPrettyPrinter
         com.bytemeagain.json

  
    maven-assembly-plugin
    
     
      jar-with-dependencies
      package
      
       single
      
      
       
        jar-with-dependencies
       
       false
       
        
         com.bytemeagain.json.JsonPrettyPrinter
         com.bytemeagain.json
        
        
         development
         https://github.com/homebrewcode/java
        
       
      
     
    
  


maven-javadoc-plugin
A plugin to create java-docs using the java-doc comments in your codebase
   
    org.apache.maven.plugins
    maven-javadoc-plugin
    
     
      attach-javadocs
      
       jar
      
     
    
   

Tuesday, November 19, 2013

Sunday, November 17, 2013

CSS 2.0

I thought CSS was simple, I underestimated the power of CSS
Only when I started evangelizing did I know how cool CSS is
Here are the slides to the CSS tutorial I came up in the process :)
http://www.slideshare.net/hbshashidhar/css-20