Posts

MongoDB using Java

This tutorial is the quick introduction of MongoDB with java:- What is MongoDB? MongoDB is a very popular NoSql open source database. It works on collection rather than table and document rather than row and column. It facilitates high performance, high availability, and easy scalability. MongoDB stores data in flexible, JSON-like documents, whese fields can vary from document to document and data structures can be changed over time. The document model maps to the objects in your application code, making data easy to work with. Sample Example: { "rollNumber" : 1 , "firstName" : "Prakash" , "lastName" : "Pandey" } Prerequisites:- Download and Install MongoDB Community Server Download and Install MongoDB Compass Download Java-Driver-Server Mongo-java-driver-3.12.3.jar and copy to C://MongoDB folder Download latest version of JDK How to run MongoDB Server:- Create a folder C:\data\db Move to C:\Program F...

Designing the Buyer Centric Funnel

Image
Designing a customer-centric funnel will always be one of the most important steps in the development of the product.  Everyone in the industry knows how we should treat customers well As Laura Ashley said:  " We don't want to push our ideas on to customers, we simply want to make what they want ". Recognizing  the customer need is crucial while developing a successful funnel as many people Start various Start-up every single day but there are few which become successful for example “Patanjali Ayurved” but the question arises here is “WHAT IS FUNNEL?” “A funnel in simple words is the path walked by the customer from being a normal visitor for just exploring the product to becoming a loyal customer of the product forever.” We classified the marketing funnel will have the following stages. Awareness : In the First stage, we will be aware of the product which solves the customer basic problem by means Social media post, blog posts, podcasts, YouTube videos and infographic...

Lambda Expression in Java

Lambda Expression:- Don't worry about the name. It's the same old Java programming with a bit of a different flavor. So, A lambda expression is a concise way to express a method of a class in an expression.  It just reduces the words required to write a function or call a function or write an anonymous class.  Lambda expressions in Java are instances of Functional Interface What is Functional Interface A functional interface is an interface that contains exactly one abstract method.  For Example:-  public interface FunctionalInterface { public void onlyMethod (); } java.lang.Runnable Is the most frequently used Functional Interface  Why we use Lambda? Enables functional programming and leads to Readable and precise code Lambda Expression can do all this for us Can be returned from functions Can be passed to functions Can be assigned to a variable Can define anonymous functions Sample lambda expression :- () -> Syste...

MongoDB using C

This document is an introduction to the usage of the MongoDB database from a C program. First, install MongoDB – see this  blog for how to install and here we will work on MSYS software. What is MSYS software? MSYS is a collection of GNU utilities such as bash, make, gawk and grep to allow the building of applications and programs which depend on traditionally UNIX tools to be present. A common misunderstanding is MSYS is "UNIX on Windows", MSYS by itself does not contain a compiler or a C library, therefore does not give the ability to magically port UNIX programs over to Windows nor does it provide any UNIX specific functionality like case-sensitive filenames. Why are We using this? An example would be building a library that uses the build system. Users will typically run "./configure" then "make" to build it. The configure shell script requires a shell script interpreter which is not present on Windows systems, but provided by MSYS. To establish a conn...