Thursday, April 23, 2015

intellij idea tips

If you are getting transformation from eclipse to idea user.
You may encounter this difficulties to find some of the project settings.

I will list out them here,

Enable project auto-import of sbt project

   File --> settings --> (search for) SBT --> Enable auto import
[On the rigth side main pannel check the auto import]

Some nice tips to talk with google

He understand keywords, But I some point they evolved with some more good features.
Let try this link,
http://www.google.com/insidesearch/tipstricks/all.html
[If is it not working working don't blame me]

Some of the finest ways that I would like are follows,

Search with in the site
       ticket site:redbus.com

Search by filetype
          filetype:ppt

Find from phrase
        "Use quote to search"

To avoid some word in search Use - sign
         salsa recipe -tomatoes 

Find related page or url
        related: www.webupd8.com

Get definition
      definition : computer
    
Note : Google ignore punctuation, Don't waste your time there

there are more please find your self


Wednesday, April 22, 2015

MongoDB NoSql

Key points to know about MongoDB
  • It's a NoSQL database - In another way it is no RDBMS
  • MongoDB does not use SQL as a query language , It uses java script syntactical way to query the db.It is not fully ACID-compliant
  • Data stores as documents, into buckets
  • Collection is the term to identify the buckets
  • A document is a set of data , That Stored as BSON format (Binary JSON) 
  • Client feed the JSON input and db engine translate them as BSON.
  • The process of data retrieval will transform the BSON to JSON. 
  • The manipulation of a document can be very easy. 
  • Fetched documents are ready to use on the web layer. 
  • Queries are in JSON style.
  • Forming query is like taking with your friend with java notation. 
  •     db.tablea.find()  /* How easy know */ 
  • [Note: Don't care about complex query now. Just park the thought and continue reading. Because we have option]


  • You have media files to store , go and get GridFS. 
  • The actual strength is , highly scalable, massive performance, No need to maintain document structure (I love it).

Merging two sorted arrays - Big O (n+m) time complexity

 Problem :  Merge the two sorted arrays. Edge case :  Array can empty Arrays can be in different size let getMaxLength = ( input1 , input...