Saturday, 25 June 2016

Introduction of AngularJS

AngularJS is a very powerful JavaScript Framework. It is used in Single Page Application (SPA) projects. It extends HTML DOM with additional attributes and makes it more responsive to user actions. AngularJS is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache license version 2.0.

AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag:
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>


Core Features

Following are most important core features of AngularJS −

  • Data-binding − It is the automatic synchronization of data between model and view components.
  • Scope − These are objects that refer to the model. They act as a glue between controller and view.
  • Controller − These are JavaScript functions that are bound to a particular scope.
  • Services − AngularJS come with several built-in services for example $http to make a XMLHttpRequests. These are singleton objects which are instantiated only once in app.
  • Filters − These select a subset of items from an array and returns a new array.
  • Directives − Directives are markers on DOM elements (such as elements, attributes, css, and more). These can be used to create custom HTML tags that serve as new, custom widgets. AngularJS has built-in directives (ngBind, ngModel...)
  • Templates − These are the rendered view with information from the controller and model. These can be a single file (like index.html) or multiple views in one page using "partials".
  • Routing − It is concept of switching views.
  • Model View Whatever − MVC is a design pattern for dividing an application into different parts (called Model, View and Controller), each with distinct responsibilities. AngularJS does not implement MVC in the traditional sense, but rather something closer to MVVM (Model-View-ViewModel). The Angular JS team refers it humorously as Model View Whatever.
  • Deep Linking − Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state.
  • Dependency Injection − AngularJS has a built-in dependency injection subsystem that helps the developer by making the application easier to develop, understand, and test.

Monday, 24 March 2014

What is Search Engine and Its Working

A software program or script available through the Internet that searches documents and files for keywords and returns the results of any files containing those keywords.search engine is really a general class of programs, however, the term is often used to specifically describe systems like Google, Bing and Yahoo! Search that enable users to search for documents on the World Wide Web.

 Today, there are thousands of different search engines available on the Internet, each with their own abilities and features. Today, the most popular and well known search engine is Google.

Web search engines work by sending out a spider to fetch as many documents as possible. Another program, called an indexer, then reads these documents and creates an index based on the words contained in each document. Each search engine uses a proprietary algorithm to create its indices such that, ideally, only meaningful results are returned for each query.



·         spider (also called a "crawler" or a "bot") that goes to every page or representative pages on every Web site that wants to be searchable and reads it, using hypertext links on each page to discover and read a site's other pages
·   A program that creates a huge indexer (sometimes called a indexer or "catalog") from the pages that have been read.

·   A program that receives your search request, compares it to the entries in the index, and returns results to you.

·   Major search engines such as Google, Yahoo (which uses Google), AltaVista, and Lycos index the content of a large portion of the Web and provide results that can run for pages - and consequently overwhelm the user.

 Working :-


In the picture to the right, is an example of how a search engine works. As can be seen in the image, the starting point of all search engines is a spider or crawler, which visits the pages that will be included in the search and grabs the contents of each of those pages.
Once a page has been crawled the data contained within the page is processed, often this involves stripping out stop words, grabbing the location of each of the words in the page, the frequency they occur, links to other pages, images, etc. This data is used to rank the page and is the primary method a search engine uses to determine if a page should be shown and in what order.
Finally, once the data has been processed it is often broken up into one or more files, moved to different computers or servers, or loaded into memory where it can be accessed when users perform a search.

Different types of the major search engines:-
Search EnginesTypes
GoogleCrawler-based search engine
AllTheWebCrawler-based search engine
TeomaCrawler-based search engine
InktomiCrawler-based search engine
AltaVistaCrawler-based search engine
LookSmartHuman-Powered Directory
Open DirectoryHuman-Powered Directory
YahooHuman-Powered Directory, also provide crawler-based search results powered byGoogle
MSN SearchHuman-Powered Directory powered byLookSmart, also provide crawler-based search results powered by Inktomi
AOL SearchProvide crawler-based search results powered by Google
AskJeevesProvide crawler-based search results powered by Teoma
HotBotProvide crawler-based search results powered by AllTheWebGoogleInktomiand Teoma, “4-in-1” search engine
LycosProvide crawler-based search results powered by AllTheWeb
Netscape SearchProvide crawler-based search results powered by Google


Table 1: Different types of the major search engines

Web Servers - Features and Advantages


Web Servers - Features 

There's a common set of features that you'll find on most web servers. Because web servers are built specifically to host websites, their features are typically focussed around setting up and maintaining a website's hosting environment.
Most web servers have features that allow you to do the following:
  • Create one or more websites. (No I don't mean build a set of web pages. What I mean is, set up the website in the web server, so that the website can be viewed via HTTP)
  • Configure log file settings, including where the log files are saved, what data to include on the log files etc. (Log files can be used to analyse traffic etc)
  • Configure website/directory security. For example, which user accounts are/aren't allowed to view the website, which IP addresses are/aren't allowed to view the website etc.
  • Create an FTP site. An FTP site allows users to transfer files to and from the site.
  • Create virtual directories, and map them to physical directories
  • Configure/nominate custom error pages. This allows you to build and display user friendly error messages on your website. For example, you can specify which page is displayed when a user tries to access a page that doesn't exist (i.e. a "404 error").
  • Specify default documents. Default documents are those that are displayed when no file name is specified. For example, if you open "http://localhost", which file should be displayed? This is typically "index.html" or similar but it doesn't need to be. You could nominate "index.cfm" if your website is using ColdFusion. You could also nominate a 2nd choice (in case there is no index.cfm file), and a 3rd choice, and so on.

Web Servers - Advantages

There are many advantages to using a web server within your development environment. Of course, in a production hosting environment, a web server is essential. And, depending on your website, a web server could indeed be essential in your development environment.
When I say "development environment", I'm referring to a copy of your website, usually on your local machine, that you use to perform updates before you commit them to the live (production) environment.
In practice, you could have many copies of your website for different purposes (such as testing, training, protypes etc), but let's just call it "development environment" for now.
Here are some advantages of using a web server within your development environment:
  • Your local website behaves more like the live one. For example, you can configure directory security, test your custom error pages etc before commiting them to the production environment.
  • You can use server-side scripting languages such as PHP and ColdFusion.
  • Allows you to standardize your coding. For example, you can use root-relative paths for your image references and hyper links (i.e. "/directory/image.gif"). In other words, your paths can represent the website structure, rather than the directory structure of your computer.
  • Knowledge. The knowledge you gain from using your own web server will help you understand how it works in the live environment. This will most certainly help you when you need to communicate with your hosting provider - you'll be able to use terminology that makes it easier for them to understand your request/issue.


    Like and Share if you find it useful.

    More links :-


    how to install iis on windows7

Web - Server Types


Every Web site sits on a computer known as a Web server. This server is always connected to the internet. Every Web server that is connected to the Internet is given a unique address made up of a series of four numbers between 0 and 255 separated by periods.for example, 68.178.157.132 or 68.122.35.127.
When you register a Web address, also known as a domain name, such as tutorialspoint.com you have to specify the IP address of the Web server that will host the site. You can load up with Dedicated Servers that can support your web-based operations.
There are four leading web servers: Apache, IIS, lighttpd and Jagsaw. Now we will see these servers in bit more detail.
Apart from these Web Servers, there are other Web Servers also available in the market but they are very expansive. Major ones are Netscape's iPlanet, Bea's Web Logic and IBM's Websphere.

1Apache HTTP Server
This is the most popular web server in the world developed by the Apache Software Foundation. Apache web server is an open source software and can be installed on almost all operating systems including Linux, Unix, Windows, FreeBSD, Mac OS X and more. About 60% of the web server machines run the Apache Web Server.You can have Apache with tomcat module to have JSP and J2EE related support.
You can have detailed information about this server at Apache HTTP Server

2Internet Information Services
The Internet Information Server (IIS) is a high performance Web Server from Microsoft. This web server runs on Windows NT/2000 and 2003 platforms ( and may be on upcoming new Windows version also). IIS comes bundled with Windows NT/2000 and 2003; Because IIS is tightly integrated with the operating system so it is relatively easy to administer it.
You can have detailed information about this server at Miscrosoft IIS

3lighttpd
The lighttpd, pronounced lighty is also a free web server that is distributed with the FreeBSD operating system. This open source web server is fast, secure and consumes much less CPU power. Lighttpd can also run on Windows, Mac OS X, Linux and Solaris operating systems.
You can have detailed information about this server at lighttpd

4. Sun Java System Web Server
This web server from Sun Microsystems is suited for medium and large web sites. Though the server is free it is not open source. It however, runs on Windows, Linux and Unix platforms. The Sun Java System web server supports various languages, scripts and technologies required for Web 2.0 such as JSP, Java Servlets, PHP, Perl, Python, Ruby on Rails, ASP and Coldfusion etc.
You can have detailed information about this server at Sun Java System Web Server

5Jigsaw Server
Jigsaw (W3C's Server) comes from the World Wide Web Consortium. It is open source and free and can run on various platforms like Linux, Unix, Windows, Mac OS X Free BSD etc. Jigsaw has been written in Java and can run CGI scripts and PHP programs.
You can have detailed information about this server at Jigsaw Server

Like and Share if you find it useful.

More links :-


how to install iis on windows7

What is Web Server and its working


The term web server can refer to either the hardware (the computer) or the software (the computer application) that helps to deliver web content that can be accessed through the Internet.

A Web server is a program that, using the client/server model and the World Wide Web's Hypertext Transfer Protocol ( HTTP ), serves the files that form Web pages to Web users (whose computers contain HTTP clients that forward their requests). Every computer on the Internet that contains a Web site must have a Web server program. Two leading Web servers are Apache , the most widely-installed Web server, and Microsoft's Internet Information Server ( IIS ). Other Web servers include Novell's Web Server for users of itsNetWare operating system and IBM's family of Lotus Domino servers, primarily for IBM'sOS/390 and AS/400 customers.
Web servers often come as part of a larger package of Internet- and intranet-related programs for serving e-mail, downloading requests for File Transfer Protocol ( FTP ) files, and building and publishing Web pages. Considerations in choosing a Web server include how well it works with the operating system and other servers, its ability to handle server-side programming, security characteristics, and publishing, search engine, and site building tools that may come with it.
A Web server is a computer system that hosts websites. It runs Web server software, such as Apache or Microsoft IIS, which provides access to hostedwebpages over the Internet. Most Web servers are connected to the Internet via a high-speed connection, offering OC-3 or faster data transmission rates. A fast Internet connection allows Web servers to support multiple connections at one time without slowing down.

How Web Servers Work



Whenever you view a web page on the internet, you are requesting that page from a web server. When you type a URL into your browser (for example, "http://w3cscircle.blogspot.in/"), your browser requests the page from the web server and the web server sends the page back:



The above diagram is a simplistic version of what occurs. Here's a more detailed version:
  1. Your web browser first needs to know which IP address the website "www.w3cscircle.blogspot.in" resolves to. If it doesn't already have this information stored in it's cache, it requests the information from one or more DNS servers (via the internet). The DNS server tells the browser which IP address the website is located at. Note that the IP address was assigned when the website was first created on the web server.
  2. Now that the web browser knows which IP address the website is located at, it can request the full URL from the web server.
  3. The web server responds by sending back the requested page. If the page doesn't exist (or another error occurs), it will send back the appropriate error message.
  4. Your web browser receives the page and renders it as required.

    Like and Share if you find it useful.

    More links :-

    how to install iis on windows7