Posts

Mongodb

Image
Basic commands on mongo shell  Show all available databases:  show dbs;  Select a particular database to access, e.g. mydb. This will create mydb if it does not already exist:   use mydb;  Show all collections in the database (be sure to select one first, see above):  show collections;  Show all functions that can be used with the database:  db.my db.help();  To check your currently selected database,use the command db  > db  mydb db.dropDatabase() command is us ed to drop a existing database.  db.dropDatabase() insert collection  We add tworecords to our collection test as: >db.test.insert({"key":"value1","key2":"Val2","key3":"val3"})  WriteResult({ "nInserted" : 1 }) > db.test.insert({"key":"value2","key2":"Val21","key3":"val31"})  WriteResult({ "nInserted" : 1 })  If we see them via find, they will look very

Mongodb install & uninstall

Image
   MongoDB is an open-sourc e document database and leading NoSQL database. MongoDB is written in C++. This tutorial will give you great understanding on MongoDB concepts needed to create and deploy a highly scalable and performance-oriented database. Explanation:  This operation executes the index.js script in a mongo shell that connects to the mydb database on the mongod instance accessible via the localhost interface on port 27017. localhost:27017 is not mandatory as this is the default port mongodb uses. Also, you can run a .js file from within mongo console.  >load("index.js") install the mongo db in Terminal(ubundu 16.04) Step 1: Import the public key used by the package management system.  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 Step 2: Create a list file for MongoDB. echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse

jQuery

Image
What is  ? jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript. Including jQuery Below are some of the most common ways to include jQuery. Browser Script tag < script   src = " https://code.jquery.com/jquery-3.4.1.min.js " > < / script > ref in -npm Using jQuery      At its core, jQuery is used to connect with HTML elements in the browser via the DOM. The DOM is the method by which JavaScript (and jQuery) interact with the HTML in a browser. To view exactly what the DOM is, in your web browser, right click on the current web page select Inspect. This will open up Developer Tools. The HTML code you see here is t

GIT & GIT HUB

Image
             Git is a    free & open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.              Git is easy to learn  and has a tiny footprint with lightning fast performing  It outclasses SCM tools like Subversion, CVS, Perforce, and Clear Case with features like cheap local branding, convenient  staging areas ,   and multiple workflows .              What is Git? Git is an open-source distributed version control system. It is designed to handle minor to major projects with high speed and efficiency.  It is developed to co-ordinate the work among the developers. The version control allows us to track and work together with our team members at the same workspace. Git is foundation of many services like GitHub and GitLab, but we can use Git without using any other Git services. Git can be used privately and publicly. Git was created by Linus Torvalds in 2005 to develop Li

Bootstrap

Image
BOOTSTRAP   Bootsrap is framework of css.there are many frame to css.UIkit, Semantic UI, Bulma ,Tailwind etc. It is very easy to use.   If you’re not familiar with how a framework like Bootstrap works, a few code examples will help, so you can see how easy it is to build maintainable interfaces by editing nothing but HTML.   Bootstrap includes HTML and CSS based design templates for typography, forms, buttons, tables, navigation, modals, image carousels and many other, as well as optional JavaScript plugins   Bootstrap also gives you the ability to easily create responsive designs same bootstrap class are    forms :-.text-muted, .text-primary, .text-success, .text-info, .text-warning, .text-danger, .text-secondary, .text-white, .text-dark, .text-body (default body color/often black) and .text-light   buttons :-.btn   tables :-table   navigation:-nav   image:-.img-thumbnail,.rounded-circle

CSS

Image
IT is a language that describes the style of an HTML document and describes how HTML elements should be displayed. When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a nightmare for web developers. Development of large websites, where fonts and color information were added to every single page, became a long and expensive process. To solve this problem, the World Wide Web Consortium (W3C) created CSS.CSS removed the style formatting from the HTML page! power of css                               A CSS rule-set consists of a selector and a declaration block                                                                     -ref in w3 school- There are the following three types of CSS: Inline CSS.(using in html elements) Internal CSS.(using in html head part) External CSS.(using in addisanal sheet)

Html vs Html 5

Image
Now that we know what is HTML and what is HTML5, we can look at how the most recent version evolved from its predecessor. The first rudimentary version of HTML was “created” in 1993, with HTML 2.0 coming in 1995. Try to remember the first website you’ve ever seen. Do you see how advanced the new websites are compared to the ancient ones? It’s staggering. Creating something modern using the rudimentary versions of HTML would be extremely hard, if not impossible. The technology to do it simply wasn’t there in the old days, so support for it was similarly lagging. As the capabilities of computers and the Internet grew, developers all over the world continuously reworked HTML with a single goal. To make sure that they can improve website capabilities. After HTML 2.0 came HTML 3.0 in January 1997, but it stayed only a short while (around 11 months), HTML4 came to life. HTML4 was created in 1997 by W3C (World Wide Web Consortium) recommendation and stayed as the foundation of the In