How to run multiple Web-Applications simultaneously?

The short answer is to use a different port number. For Instance in Angular, the default port number for an application is 4200. If you want to run another application at the same time, you would have to use a different port number. Which brings us to a question-

How to change the port number for an application?

Different frameworks have their own ways to change port numbers. In Angular, one would have to type this command in the terminal in order to change the port number-

ng serve –port port_number

where port_number is the number that you Intend the application to use.

Notice that there are two “dashes” before port

For Example-

If you want the application to use port number 4401, then you would do this-

ng serve –port 4401





What is a Component in Angular?

A Component is a programmable container that holds application and presentation logic. Any element on a web page can be regarded as a component. For Instance a button could be considered as a component.

In Angular, the Entry Level Component is called App Component. A Component normally contains 4 files





Screen Shot 2018-03-08 at 4.55.45 PM.png

The Presentation Logic is written in app.component.html, The Application Logic is written in app.component.ts. Code for styling is present in the app.component.css file and the code for testing resides in the app.component.spec.ts file.

I would be discussing this in further detail in my upcoming blogs.


How to edit the Name Servers of your Domain Registration Service to point to the Hosting Service?

So you are planning to build a website and buy your domain name from a domain registration service like GoDaddy or NameCheap but your website hosting provider is different. How can you link your Domain Name to your Hosting provider?

In cases where your Domain Name and the hosting provider is from the same service, you wouldn’t have to worry about linking your Domain Name with the Hosting Service since they are from the same service provider, everything is taken care of.

In situations where the place you buy your domain name and the hosting service is different, you would have to somehow let the Hosting Provider know the domain name that you registered for. This can be done by editing the name servers of the Domain Registration Service and then point them to the name services of your Hosting Provider. The Steps below are used for linking Network Solutions (Domain Registration )to Site5 (Hosting Service) but the same steps could be followed for any two providers.

The Steps

  1. Go to the list of Domain Names that you have in the Domain Registration Service and Edit the DNS of the one where you need to change the name servers.
  2.  Then you would come to a page where you can specify two name servers. At this time look for the name servers of your Hosting Provider and make a note of it. Most of the time you can find out by Googling “Name Server for  GoDaddy” (as an example)Screenshot (94)
  3. Once you get the Name Servers of your hosting provider, enter those name servers in that page and click on Move DNS. In this case, I was planning to move the DNS to Site 5 and their name servers were and dns2.site5.comScreenshot (95)
  4.  Once done, you would get a message saying that it might take 24-36 hours for the changes to take place.Screenshot (96)

After this you would have to create appropriate records in your Hosting Service in order to configure your website which I would be explaining in my upcoming blog.


Azure’s Computer Vision API-Analyze an Image

The computer vision api allows you to upload an Image and it would in turn give you a description of the Image. For Example, if you upload an Image of you at the beach, it would probably say- Sea, Blue, Sand, Outdoors etc.

It can describe things and the surroundings. You could also play around with the existing Images that they have at their website and see what output you get.

Screen Shot 2018-03-03 at 10.24.07 PM.png

Please note that this is only one of the features of a whole myriad of features that the Computer Vision API has. I would be discussing the rest in my upcoming blogs, so STAY TUNED!!

Please visit this website and check this feature out!


What is Nodemon?

In order to run Node.js applications one would have to type node along with the filename.

node filename.js

This process has to be repeated every time you want to run code. But let’s say you have a program that automatically runs your code whenever you make updates to the application? Wouldn’t that be great? It would save you time from the repetitive process of executing a command.

Fortunately such a program exists and it is called “Nodemon”. Nodemon monitors changes in your code and then automatically restarts your server whenever there is a change.

How to Install Nodemon?

Just Enter this command on the terminal

npm install -g nodemon




How to show tables in MYSQL?

MYSQL is one of the popular Relational Database Management Systems out there. One of the basic commands that you start out with is to see the list of tables in a database. The command for achieving this is

show tables;

Sometimes when you enter that command in the MYSQL console, you might see a message that looks something like this

Screenshot (81)

The Error message states that no database is selected. The command would only work if we first select the database that we want to work on.

The command for selecting a database is-

use database_name;

where database_name is the Name of the Database.

Once you select the database, then the next step would be to execute the show tables command which would then show you the list of tables that exist within the database.


Screenshot (82)

As you can see the command now ran successfully. And it shows that I have two tables in the database-Harvest_Users and Table2.


JavaScript what is the difference between “==” and “===” ?

You may have come across the equality checks many number of times but might have wondered what the difference is?

The double equals “==” checks whether two variables are equal whereas the triple equals “===” not only checks whether the two variables are equal, but also checks whether the two variables are of the same type.

For Example

var variable1=25;

var variable2=25;


console.log(“The two values are equal”);



console.log(“The two values are not equal”);


In this case after the execution of the script, it would print that the two values are equal.

Now take this example,

var variable1=70;

var variable2=”70″


console.log(“The two values are equal”);



console.log(“The two values are not equal”);


In this case, it would still print that the two variables are equal since the two values are equal.

And now let’s take the final example.

var variable1=70;

var variable2=”70″


console.log(“The two values are equal”);



console.log(“The two values are not equal”);


Here we have used the triple equals sign, so do you think the result would be different?

Think about it….


It would tell you that the two variables are not equal in spite of having the same value. This is because in addition to checking whether the values are equal, it also checks for the type of the variable. In this case, variable1 is of type Integer whereas variable2 is of type string and hence they are different.