Wednesday, 27 December 2017

Angular 2 Scroll to top on Route Change

Many of us encounter with a problem of side scroll bar is not being on the top on routing or while navigating to other page.

This problem is solved just by using

         window.scrollTo(0,0);

In your main.ts file(means your global typescript file), within ngOnInIt() function at the top.



import { Component, OnInit } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';

@Component({
    selector: 'my-app',
    template: '<ng-content></ng-content>',
})
export class MyAppComponent implements OnInit {
    constructor(private router: Router) { }

    ngOnInit() {
        
       window.scrollTo(0, 0);<!--this should be the first line of this function -->
    }
}

Tuesday, 25 July 2017

Types of island and How they form ?






Formation of an ISLAND : 


As volcanoes erupt, they build up layers of lava that may eventually break the water's surface. When the tops of the volcanoes appear above the water, an island is formed. While the volcano is still beneath the ocean surface, it is called a seamount. Oceanic islands can form from different types of volcanoes

There are six major kinds of islands :
 1. continental
 2. tidal 
 3. barrier 
 4. oceanic
 5. coral 
 6. artificial

1.Continental island
were once connected to a continent. They still sit on the continental shelf. Some formed as Earth’s shifting continents broke apart.

Scientists say that millions of years ago, there was only one large continent. This supercontinent was called Pangaea. Eventually, slow movements of the Earth’s crust broke apart Pangaea into several pieces that began to drift apart. When the breakup occurred, some large chunks of land split. These fragments of land became islands. Greenland and Madagascar are these type of continental islands.

Other continental islands formed because of changes in sea level. At the peak of the most recent glacial period, about 18,000 years ago, ice covered large parts of the Earth. Water was locked in glaciers, and the sea level was much lower than it is today. As glaciers began to melt, the sea level rose. The ocean flooded many low-lying areas, creating islands such as the British Isles, which were once part of mainland Europe.

Some large continental islands are broken off the main continental shelf, but still associated with the continent. These are called microcontinents or continental crustal fragments. Zealandia is a microcontinent off Australia that is almost completely underwater—except for the island nation of New Zealand.

Continental islands may form through the weathering and erosion of a link of land that once connected an island to the mainland.
2. Tidal Island : 
 Tidal islands are a type of continental island where land connecting the island to the mainland has not completely eroded, but is underwater at high tide. The famous island of Mont Saint-Michel, France is an example of a tidal island.

3. Barrier Islands

Barrier islands are narrow and lie parallel to coastlines. Some are a part of the continental shelf (continental islands) and made of sediment—sand, silt, and gravel. Barrier islands can also be coral islands, made from billions of tiny coral exoskeletons. Barrier islands are separated from shore by a lagoonor a sound. They are called barrier islands because they act as barriers between the ocean and the mainland. They protect the coast from being directly battered by storm waves and winds.

Some barrier islands form when ocean currents pile up sand on sandbars parallel to coastlines. Eventually the sandbars rise above the water as islands. Aits, or islands in rivers, form in this way. The same currents that formed these barrier islands can also destroy or erode them.

Other barrier islands formed during the most recent ice age. As glaciers melted, the sea level rose around coastal sand dunes, creating low-lying, sandy islands. The Outer Banks, along the southeastern coast of the United States, are this type of barrier island.

Still other barrier islands were formed of materials deposited by Ice Age glaciers. When glaciers melted, they left piles of the rock, soil, and gravel they had carved out of the landscape. These piles of debris are called moraines. As flooding occurred along coasts after the glaciers melted, these moraines were surrounded by water. Long Island, New York, and Nantucket, Massachusetts, are both barrier islands formed by glacial moraines.

4. Oceanic Island :

Oceanic islands also known as volcanic islands, are formed by eruptions of volcanoes on the ocean floor. No matter what their height, oceanic islands are also known as “high islands.” Continental and coral islands, which may be hundreds of meters taller than high islands, are called “low islands.”

As volcanoes erupt, they build up layers of lava that may eventually break the water’s surface. When the tops of the volcanoes appear above the water, an island is formed. While the volcano is still beneath the ocean surface, it is called a seamount.

Oceanic islands can form from different types of volcanoes. One type forms in subduction zones, where one tectonic plate is shifting under another. The island nation of Japan sits at the site of four tectonic plates. Two of these plates, the Eurasian plate to the west and the North American plate to the north, are associated with continental shelves. The other two, the Philippine plate and the Pacific plate, are oceanic. The heavy oceanic plates (the Pacific and the Philippine) are subducting beneath the lighter Eurasian and North American plates. Japan’s islands are some of the most actively volcanic in the world.

Another type of volcano that can create an oceanic island forms when tectonic plates rift, or split apart from one another. In 1963, the island of Surtsey was born when a volcanic eruption spewed hot lava in the Atlantic Ocean near Iceland. The volcano was the result of the Eurasian tectonic plate splitting away from the North American plate. This tiny island is one of the world’s newest natural islands.

Another type of oceanic island forms as a continent shifts over a “hot spot.” A hot spot is a break in the Earth’s crust where material from the mantlebubbles or rushes up. The crust shifts, but the hot spot beneath stays relatively stable. Over millions of years, a single hot spot formed the islands of the U.S. state of Hawaii. Hawaii’s “Big Island” is still being formed by Mauna Loa and Kilauea, two volcanoes currently sitting over the hot spot. The newest Hawaiian island, Loihi, also sits over the hot spot, but is still a seamount about 914 meters (3,000 feet) beneath the Pacific.

5. Coral Island :

Coral islands are low islands formed in warm waters by tiny sea animals called corals. Corals build up hard external skeletons of calcium carbonate. This material, also known as limestone, is similar to the shells of sea creatures like clams and mussels.

Colonies of corals may form huge reefs. Some coral reefs may grow up in thick layers from the seafloor, until they break the water’s surface, creating coral islands. Other organic and inorganic material, like rock and sand, helps create coral islands. The islands of the Bahamas, in the Atlantic Ocean and Caribbean Sea, are coral islands.

Another kind of coral island is the atoll. An atoll is a coral reef that begins by growing in a ring around the sides of an oceanic island. As the volcano slowly sinks into the sea, the reef continues to grow. Atolls are found chiefly in the Pacific and Indian Oceans.

6. Artificial Island :

Artificial islands  are made by people. Artificial islands are created in different ways for different purposes.
Artificial islands can expand part of an already-existing island by draining the water around it. This creates more arable land for development or agriculture. The Nahua people of 14th-century Mexico created their capital, Tenochtitlan, from an artificial island in Lake Texcoco. They expanded an island in the swampy lake and connected it to the mainland through roads. Aqueducts supplied the city’s 200,000 residents with freshwater. Mexico City sits on the remains of Tenochtitlan.

Artificial islands can also be created from material brought in from elsewhere. In Dubai, companies dig (dredge) sand from the Persian Gulf and spray it near shore. Dubai’s huge artificial islands are shaped like palm trees and a map of the world. A new island complex, the Dubai Waterfront, will be the largest man-made development in the world.

Many island chains are combinations of different kinds of islands. The island nation of Seychelles is made of both continental granite islands and coral islands.

What is an island ?






An Island is an area of land that is completely surrounded by water. islands come in all shapes and form. They can vary in size from a single rock to a huge land of mass.
                           Islands can be found in the middle of the ocean or just of the coast. they can also be found in river,deltas and lakes.

Largest Island : Green land is known as the world largest Island. Australia is also surrounded by water,but it is considered as continent rather than an Island.

Monday, 24 July 2017

The Top Mailing Services And There Amazing Features Of 2017








In The Modern World the web plays a crucial role in every aspect of our day to day life,nothing is remained untouched by the internet ,as the internet and its technology are evolving at such a fast rate. And the primary reason it is evolving at such a fast pace is the way it let the people to communicate with each other.
                        The main reason today for the existance of the internet is the mailing services. The story starts in way back in early 1960's ,When there were fights and wars going on at that time and communication was a big issue so at that time US started a way to communicate as the communication was a big problem for the US-ARMY ,thats why after some time the best engineers works on this and finally got a way to send the message between geographical region and that is the place from where the email services evolves.
                        Today we have a no. of email services out there and every services comes with there different features those features includes Storage Capacity,Speed Rate,Security,Userfriendlyness and many more. In those  which are good for us ,our organisation and what are the top features we needed we are going to discuss about that.
                         Normally we use the Top three services ie. Gmail,Hotmail,Yahoo! as our mailing services but there are many other free email services in the market carrying its own values and features.

   The top Email services are...

1. GMAIL : The Best and most used Free Email service.





Launched : April 1 2004.

Founder : Paul Buchheit.

Active Users : Over 1 Billion !.

Company : Google.


Currently the gmail is the best and most used free email service around the world and the gmail is a service or product of the great giant GOOGLE Company. Gmail the considered as the best service provided by the google. the main things about google that attract the people around the globe besides its popularity is its user interface as it is very simple to use. and there are alots of other features of gmail i.e.


  • STORAGE CAPACITY : Gmail provides the 15 GB of  storage capacity to its users and we are free to use this space for any application that supports it and there are some application of google also the make use of this space i.e. Google drive,Google plus Photos etc.

  • SECURITY : As it is google a top company with great minds from around the world are working with it security is not a issue to be concern about. gmail have best security features as HTTPS , best anti-spam filter and malware and phishing protection.

  • USER FRIENDLY INTERFACE : The user interface of the gmail is very good as it is very simple to use and can be used by anyone with no prior knowledge. The mails are arranged in four Tabs primary,social,promotion and updates by default. and support search bar and also we can send email attachment upto 10GB from google drive

  • GMAIL APP : The gmail app is available for every smart phone out there i.e. for android ,windows or ios with makes it more user friendly and by this we can get regular updates by notifications.

  • SEND MONEY : Its is also a great feature which makes the thing more easy we can send recieve or pay in clicks ....this feature is now available in few Countries.


2.  Outlook.com ( was known is HOTMAIL)



Founded : 4 July 1996 (Initially as hotmail).

Founder : Sabeer Bhatia(INDIAN) and Jack Smith.

Active Users : 400 Million.

Company : Microsoft.




The outlook is a service a from another giant MICROSOFT .  Mainly used as a mail service but also provides Calender, Task manager, Contact Manager,Note taking ,Journal, Web browsing.
it can be used as standalone application or can be integrated with Microsoft Exchange server and Microsoft SharePoint Server for multiple user in an Organization.


  • STORAGE CAPACITY : The storage capacity is not a issue in this as it provides unlimted storage capacity.

  • SECURITY : It provides even better security then the Gmail service and provides virus scanning, best spam filter,DMARD security and support IMAP ,POP3 and EAS.

  • USER FRIENDLY INTERFACE : The interface offered by outlook is very easy and userfriendly. as it can be used as standalone application or can be integrated with Microsoft  and Exchange server and Microsoft SharePoint Server for multiple user in an Organization. And also provides Calender, Task manager, Contact Manager,Note taking ,Journal, Web browsing.

  • OUTLOOK APP : The application is available for all the smartphones i.e. IOS and Android. And for windows it provides special features as the windows phones comes with outlook intergartion and provide the easy data synking feature. 


3. YAHOO!





Launched : 8 oct 1997.

Founder :  Jerry Yang.

Active Users : 225 Million Monthly users.

Company :  Yahoo!

Yahoo! is another best mailing service available today and is also one of the oldest web-based mailing services active even after 20 years . Yahoo mail service is a service from another well-known Company Yahoo!. yahoo deal with other famous services ie. yahoo search engine . And yahoo messanger is integrated with Yahoo mail.

STORAGE CAPACITY : When you are with google u dont have to worry about storage capacity as when you signup with Yahoo You will get 1 TB  ( 1000 GB ) of  Free Storage Capacity.

SECURITY :  Provides good security features ie. best anti-spam features. 2-step verification facility and https features.

USER FRIENDLY INTERFACE : Yahoo! mail provides the basic and simple interface that anyone can get familiar with ease and also provides fast and secure browsing from any browser available. And to make things more easy it provide Yahoo! application facilities which make easy notification alert.

YAHOO! APP :  The Yahoo! mail service provides simple and easy to use application which is fast and secure with best user interface.


4. AOL MAIL ( American Online )







Launched : 21 march 1993.

Founder :  ‎Marc Seriff‎, ‎Steve Case‎, ‎Jim Kimsey

Company :  AOL (soon going to merge with Yahoo! and might named as OATH!)

AOL Mail has Millions of user on it. However,the  no. of active users is quite less.Majority of the active users are Verizon customer that use internet services.

STORAGE CAPACITY : The best feature of this service is it provides Unlimted storage capacity for free.

SECURITY : It provide good security features with recent updates of  performance boost and password manager added.

USER FRIENDLY INTERFACE : After the recent updates the interface becomes much more better and become much more user friendly and simple to use.

Comparison Between Top 4 Mailing Services



Mainly the comparison is seen between these top four web-based mailing services but there are many other mailing services which provides decent functionality...


5. ZOHO MAIL



Founder : Sridhar Vembu and Tony Thomas


Zoho Mail is one of the best web-based service in terms of clear and simple interface . It provides a minimalist interface integrated with calandar , contacts ,notes manager and many more.
                             zoho mail service provides the business account and personal account also and is free of advertisement means there will we no ad's displayed which makes it more simple.

STORAGE CAPACITY : It provides 5 GB storage capacity as default when you signup but if u want to Expand then you need to pay.

SECURITY : Zoho products are protected with multiple layers of secure infrastructure,and have a 99.9 percent uptime Guarantee. As it is free of ad's there will me no key scan in your mail which makes it more safe ,secure and provides high privacy.
 : 
USER FRIENDLY INTERFACE :  Provides Quick setup email with step by step setup wizards. Easily manage email policies ,groups ,mailbox quotas and more using an extensive control panel.

Saturday, 8 July 2017

MacBook Pro (15-inch, 2016) - Technical Specifications

Click here to buy- http://amzn.to/2uVqgj0

Touch Bar

  • Touch Bar with integrated Touch ID sensor

Finish

  • Silver
  • Space Gray

Display

  • Retina display
  • 15.4-inch (diagonal) LED-backlit display with IPS technology; 2880-by-1800 native resolution at 220 pixels per inch with support for millions of colors
  • Supported scaled resolutions: 
    • 1920 by 1200
    • 1680 by 1050
    • 1280 by 800
    • 1024 by 640
  • 500 nits brightness
  • Wide color gamut (P3)

Processor

  • 2.6GHz
    2.6GHz quad-core Intel Core i7, Turbo Boost up to 3.5GHz, with 6MB shared L3 cache
    Configurable to 2.9GHz quad-core Intel Core i7, Turbo Boost up to 3.8GHz, with 8MB shared L3 cache
  • 2.7GHz
    2.7GHz quad-core Intel Core i7, Turbo Boost up to 3.6GHz, with 8MB shared L3 cache
    Configurable to 2.9GHz quad-core Intel Core i7, Turbo Boost up to 3.8GHz, with 8MB shared L3 cache

Storage1

  • 256GB
    256GB PCIe-based onboard SSD
    Configurable to 512GB, 1TB, or 2TB SSD
  • 512GB
    512GB PCIe-based onboard SSD
    Configurable to 1TB or 2TB SSD

Memory

  • 16GB of 2133MHz LPDDR3 onboard memory

Graphics

  • 2.6GHz
    Radeon Pro 450 with 2GB of GDDR5 memory and automatic graphics switching
    Intel HD Graphics 530
    Configurable to Radeon Pro 460 with 4GB of GDDR5 memory and automatic graphics switching
  • 2.7GHz
    Radeon Pro 455 with 2GB of GDDR5 memory and automatic graphics switching
    Intel HD Graphics 530
    Configurable to Radeon Pro 460 with 4GB of GDDR5 memory and automatic graphics switching

Charging and Expansion

Four Thunderbolt 3 (USB-C) ports with support for:
  • Charging
  • DisplayPort
  • Thunderbolt (up to 40 Gbps)
  • USB 3.1 Gen 2 (up to 10 Gbps)

Keyboard and Trackpad

  • Full-size backlit keyboard with: 
    • 64 (U.S.) or 65 (ISO) keys including 4 arrow keys
    • Touch Bar with integrated Touch ID sensor
    • Ambient light sensor
    • Force Touch trackpad for precise cursor control and pressure-sensing capabilities; enables Force clicks, accelerators, pressure-sensitive drawing, and Multi-Touch gestures

Wireless

  • Wi-Fi
    802.11ac Wi-Fi wireless networking; IEEE 802.11a/b/g/n compatible
  • Bluetooth
    Bluetooth 4.2 wireless technology

Camera

  • 720p FaceTime HD camera

Video Support

Simultaneously supports full native resolution on the built-in display at millions of colors and:
  • Up to two displays with 5120-by-2880 resolution at 60Hz at over a billion colors
  • Up to four displays with 4096-by-2304 resolution at 60Hz at over a billion colors
Thunderbolt 3 digital video output
  • Native DisplayPort output over USB‑C
  • VGA, HDMI, and Thunderbolt 2 output supported using adapters (sold separately)

Audio

  • Stereo speakers with high dynamic range
  • Three microphones
  • 3.5 mm headphone jack

Battery and Power2

  • Up to 10 hours wireless web
  • Up to 10 hours iTunes movie playback
  • Up to 30 days standby time
  • Built-in 76.0-watt-hour lithium-polymer battery
  • 87W USB-C Power Adapter

Electrical and Operating Requirements

  • Line voltage: 100V to 240V AC
  • Frequency: 50Hz to 60Hz
  • Operating temperature: 50° to 95° F (10° to 35° C)
  • Storage temperature: –13° to 113° F (–24° to 45° C)
  • Relative humidity: 0% to 90% noncondensing
  • Operating altitude: tested up to 10,000 feet
  • Maximum storage altitude: 15,000 feet
  • Maximum shipping altitude: 35,000 feet

Size and Weight

  • Height: 0.61 inch (1.55 cm)
  • Width: 13.75 inches (34.93 cm)
  • Depth: 9.48 inches (24.07 cm)
  • Weight: 4.02 pounds (1.83 kg)3

Operating System

macOS Sierra
macOS is the operating system that powers everything you do on a Mac. macOS Sierra introduces Siri to Mac4 — along with new ways to enjoy your photos, shop more securely online, and work more seamlessly between devices.
Learn more

Accessibility

Accessibility features help people with disabilities get the most out of their new MacBook Pro. With built-in support for vision, hearing, physical and motor skills, and learning and literacy, you can create and do amazing things.
Learn more
Features include:
  • VoiceOver
  • Zoom
  • Increase Contrast
  • Reduce Motion
  • Siri and Dictation
  • Switch Control
  • Closed Captions
  • Text to Speech

Built-in Apps5

  • Photos
  • iMovie
  • GarageBand
  • Pages
  • Numbers
  • Keynote
  • Siri
  • Safari
  • Mail
  • FaceTime
  • Messages
  • Maps
  • Notes
  • Calendar
  • Contacts
  • Reminders
  • Photo Booth
  • Preview
  • iTunes
  • iBooks
  • App Store
  • Time Machine

Thursday, 29 June 2017

Advance C Problem For Hunting Top Jobs.

In this we are going to cover the top problems those could be asked in the top companies tests and interview. By solving these problems You are  going to stand out of the whole crowd.