Posts

Showing posts from June 21, 2017

API

Image
In computer programming  an application programming interface ( API ) is a set of subroutine definitions, protocols, and tools for building application software In general terms, it is a set of clearly defined methods of communication between various software components. A good API makes it easier to develop a ccomputer program by providing all the building blocks, which are then put together by the programmer An API may be for a web-based system, operating system,database system, computer hardware systewm or software library  An API specification can take many forms, but often includes specifications for routines, data structures, object classes variables or remote calls. POSIX, Microsoft windows API  the C++,Standard Template Library,and java APS are examples of different forms of APIs. Documentation for the API is usually provided to facilitate usage.            Popular API Examples ProgrammableWeb , a site that tracks more than 15,500 APIs, lists

SASS

Image
SASS 1.What is SASS? * SASS (Syntactically Awesome Stylesheet) is a CSS pre-processor, which helps to reduce repetition with CSS and saves time. It is more stable and powerful CSS extension language that describes the style of a document cleanly and structurally. 2.Why to Use SASS? It is a pre-processing language which provides indented syntax (its own syntax) for CSS. It provides some features, which are used for creating stylesheets that allows writing code more efficiently and is easy to maintain. It is a super set of CSS, which means it contains all the features of CSS and is an open source pre-processor, coded in Ruby. It provides the document style in a good, structured format than flat CSS. It uses re-usable methods, logic statements and some of the built-in functions such as color manipulation, mathematics and parameter lists.         3. What are the Features of SASS.? It is more stable, powerful, and compatible with versions of CSS. It is a

JSON

Image
JSON   * Javascript object notation. * JSON is a syntax for storing and exchanging data. * JSON is text,written with javascript object notation    1.what is JSON? Json  stands for javascript object notation. JSON is a lightweight data-interchange format. JSON is ¨self-describing¨ and easy to understad. JSON is language independent.   1.Why use  JSON? since the jSON format is text only.it use easily be sent to and form a server.and used as a data format  by any programming language. Javascript has a built in function to convert a string. written in JSON format. into native javascript.        JSON.parse() So if you receive data from a server in JSON format. you can use it like any other  javascript  object. Exchanging Data when exchanging data between a browser and a server,the data can only be text.  JSON is text,andwe can convert any javascript object into JSON, and  send JSON to the server . we can also convert any JSON received  fro

Node.js MongoDB

Image
                      Node.js MongoDB    Hi guys.. you will try it !........ - -Today we learn how to connecting  nodejs_mongodb--   1.create a Database *  To create a database in MongoDB, start by creating a MongoClient object, then specify a connection URL with the correct ip address and the name of the database you want to create. * MongoDB will create the database if it does not exist, and make a connection to it. Create a Database called ​Uki_student var MongoClient = require('mongodb').MongoClient; var url = "mongodb://localhost:27017/Uki_student"; MongoClient.connect(url, function(err, db) {   if (err) throw err;   console.log("Database created!");   db.close(); }); 2.Creating a Table * To create a table in MongoDB, use the createCollection() method: Create a collection called ​ studentmarks var MongoClient = require('mongodb').MongoClient; var url = "mongodb://localhost:27017/Uki_stude