Posts

Image
Important New Features in java 8...... 1) forEach() method in Iterable interface Whenever we need to traverse through a Collection, we need to create an  Iterator  whose whole purpose is to iterate over and then we have business logic in a loop for each of the elements in the Collection. We might get  ConcurrentModificationException  if iterator is not used properly. Java 8 has introduced  forEach  method in  java.lang.Iterable  interface so that while writing code we focus on business logic only.  forEach  method takes  java.util.function.Consumer  object as argument, so it helps in having our business logic at a separate location that we can reuse. Let’s see forEach usage with simple example. 2) default and static methods in Interfaces If you read forEach method details carefully, you will notice that it’s defined in Iterable interface but we know that interfaces can’t have method body. Fro...
Image
JavaScript Promises.... A promise represents the eventual result of an asynchronous operation. It is a placeholder into which the successful result value or reason for failure will materialize. Promises provide a simpler alternative for executing, composing, and managing asynchronous operations when compared to traditional callback-based approaches. They also allow you to handle asynchronous errors using approaches that are similar to synchronous try/catch. Promise States Pending - the promise’s outcome hasn’t yet been determined, because the asynchronous operation that will produce its result hasn’t completed yet. Fulfilled - the asynchronous operation has completed, and the promise has a value. Rejected - the asynchronous operation failed, and the promise will never be fulfilled. In the rejected state, a promise has a reason that indicates why the operation failed. When a promise is pending, it can transition to the fulfilled or rejected state. Once a p...
Image
How to link WebStorm IDE with GitHub windows application The main advantage of link WebStrom with GitHub windows application is you can do the version controlling directly through the WebStorm IDE. When you are doing a project  using WebStorm IDE you can use git command which are use to version controlling in the IDE it self, if you have linked with GitHub windows application. Now will see how to link WebStorm IDE with GitHub windows application.. step 1) Install WebStorm IDE. step 2) install GitHub windows application and clone with the project which is  in the GitHub or GitLab repository. step 3) Open that project using WebStorm. IF you have done those three step already follow these steps to link WebStorm and GitHub windows application. step 4) Go to this file path and copy it.           C drive -> Users -> <your user file> -> Appdata -> Local ->        ...
Image
          What is mLab and How to use it.. What is mLab??                 mLab is a fully managed cloud database service featuring automated provisioning and scaling of MongoDB database . mLab has following features.  Backup and recovery 24/7 monitoring and alerting Web-base management tools Export Support Free up to 500mb usage                                         mLab's Database-as-a-Service platform powers hundreds of thousands of databases across AWS, Azure, and Google and allows developers to focus their attention on product development instead of operations. How to use mLab..! Step 1) Set up a mLab Account.              To get started with mLab u need to create a mLab account and login to that account. Then you can add as many database...
Image
         How to Setup MongoDB and Use It...!!   MongoDB is a free and open source, cross platform, document oriented database program. Classified as a NoSQL database program. MongoDB uses JSON-like document with schemas. MongoDB is developed by MongoDB Inc. MongoDB supports field, range queries and regular expression searches. Queries can return specific fields of document and also include user defined JavaScript functions. Queries can also be configured to returns a random sample of result of a given size. These are the Key Featrures of Mongodb General purpose database , almost as fast as the key:value NoSQL type. High availability . Scalability  (from a standalone server to distributed architectures of huge clusters). This allows us to shard our database transparently across all our shards. This increases the performance of our data processing. Aggregation : batch data processing and aggregate calculations using n...
Image
How To Use GitLab With Windows..! When you using GitHub you can only create Public repository for free. If you want to create private repository, you will have to pay monthly for the service.  But in GitLab, you can create unlimited private repository for free. Then you can build your project in private environment where no one can see your files or source codes. You can use GitLab in your windows PC by using GitHub windows client. In oder to do that you have to set up GitHub windows client to your windows PC. Please follow these steps to setup GitLab in your PC.    1) Create an account in GitLab.           Go the the GitLab website ( https://about.gitlab.com/ ) and create an account by clicking Sign In.  2) Create your First Repository          Then you have to create a repository. To do that sign in to your GitLab account and click New Project   No...
Image
      How To Setup your iPhone, iPad, and iPod touch When you power up your new iPhone, iPad or iPod in first time, you have to setup it first. As well as after you factory reset your apple device or after install a system update you have to do the same process. Now will see how to do it step by step. 1) Turn on your device             You'll see "Hello" in many languages. Press the Home button to unlock your device and begin set up. If you're blind or have low vision, you can  turn on VoiceOver or Zoom  from the Hello screen. 2) Select your language and country or region                  After press the home button you will be ask to choose your language. Then tap your country or region. This affects how information looks on your device, including date, time, contacts, and more. ...