Popular Angular JS Terms

Below are few popular terms used in Angular JS.

1. We call what AngularJS is MV*

Literally, model view whatever. AngularJS has a thing that lets you bind your model, the data, the JavaScript, objects, and variables to the view. The HTML, or in reality, the DOM, the document object model, the representation of the HTML in the browser’s memory. So, the objects and the data are connected to the thing that lets the browser pane per render onto the screen the web page.

2. ng-

When you see ng- in the HTML, that’s really a custom attribute and angularJS is using the fact that the browser DOM the memory has that available to then make decisions based on what it sees in those attributes, the value of those attributes.

3. Encapsulation

Encapsulation is making sure that we’re not polluting the global namespace, is a very important aspect of building extensible, reusable and complex software. So AngularJS makes this a fundamental part of its structure. When you build an AngularJS app, you’re going to see that there are certain elements and structural concepts that have the goal of not polluting the global namespace. Making sure that variables and functions that are defined don’t collide and contradict variables and functions defined elsewhere.

4. Dependency Injection

Dependency injection is giving a function an object. Rather than creating an object inside a function, you pass it to the function.

5. Scope

Scope is a big part of the things that binds the model to the view. It’s called Scope, and it’s an object from something called the Scope service, and it involves dependency injection. You can add Variables and Functions to the scope. Now the scope then becomes that middle piece, that piece between the view and the Controller.

6. Services

Angular services are singleton objects that get instantiated only once during the lifetime of an application. The main objective of a service is to organize and share business logic, models, or data and functions with different components of an Angular application.

Quick Note: You can take a function in JavaScript, and convert it to a String using toString() method.

7. Dependencies

Dependencies is a list of modules that myApp uses, or is dependent on. So if I want to use this ngMessages module, I have to include it in this list. And if there are others, I would just keep adding them in strings.

var myApp = angular.module("myApp", ['ngMessages', 'someOtherModule']);

How to fix 503 service unavailable error in WordPress

Are you facing 503 service unavailable error in your WordPress website? The problem with the 503 error is that, you can not get any sort of idea, why you are getting this error. I will show you how to fix the 503 service unavailable error in WordPress.

What is the reason behind 503 Service Unavailable Error in WordPress?

There maybe many reasons behind 503 Error. WordPress hosting companies offer fixed amount of resources for each hosting account. Shared hosting can not handle heavy traffic on website and heavy usage of server resources.

The 503 service unavailable error occurs when web server is unable to get a proper response from a PHP script. PHP script could be a complex WordPress plugin, a poor written theme, or a custom code. If this error is caused by heavy usage of server resources, or a DDoS attack then it could automatically disappear in a few minutes.

If it is caused by bad Plugin or poor Theme, then it will keep occurring unless you remove the code that’s causing it.

Let’s take a look at how to fix 503 service unavailable error in WordPress.

Real Solution : Fixing 503 Service Unavailable Error in WordPress

As shown in below steps, we will disable all unnecessary PHP scripts one by one until the error is resolved.

Deactivate All WordPress Plugins

As you cannot login to WordPress dashboard due to the 503 error, you will need to connect to FTP client or File Manager in cPanel. Once connected, go to /wp-content/ folder and rename the plugins folder to something plugins-backup.

Now, you need to create a new folder named plugins.

Now check if this trick resolved the error.

If it did, then some installed plugin was causing the error. Now you need to figure out which plugin was causing the issue. For that you need to go to /wp-content/ folder and delete the empty plugins folder.

After that you need to rename the plugins-backup folder to plugins. This will make all your previously installed plugins available deactivated state.

You need to visit the WordPress admin area and then go to the plugins page. You can activate your plugins one by one and check which plugin is causing the issue. You need to repeat above step until you find the plugin causing the 503 error.

If above trick did not solve your issue, you can move on to the next step.

Switch to a Default WordPress Theme

The next step will be to switch to a default WordPress theme. This will deactivate your current WordPress theme.

As you did for plugins, connect to FTP and go to /wp-content/themes/ folder.

Download your current WordPress theme as backup. Now, you can delete active theme from server and make Twenty Seventeen or Twenty Sixteen default theme. Now check if it solve 503 error.


If above both methods fail to resolve your error, then you have to follow following steps:

  • Please contact your WordPress hosting company because they may help you to find exact issue.
  • As a last option, you can reinstall WordPress with a fresh copy (Personally i do not recommend this).

I hope above article helped you to solve 503 Service Unable issue. Kindly leave your comments below.

JavaScript `this` keyword

Each time the function is called, this refers to the HTML element that is currently handling the event.

In JavaScript this always refers to the “owner” of the function we are executing, or rather, to the object that a function is a method of. When we define our  function doSomething() in a page, its owner is the page, or rather, the window object (or global object) of JavaScript. An onclick property, though, is owned by the HTML element it belongs to.

Famous Websites Developed in PHP

When someone asks me, Is PHP so famous ? Is it secure ? Do people use PHP to develop their websites ?

Yes. They do.

Here I am going to list out some of the famous websites, which is developed in PHP.

Yes, Facebook, a giant spider in web is developed using PHP. Although they have developed their own framework, but in heart, its PHP.

How can you forget WordPress when it comes to blogging ? WordPress covers 26% of the Web. Really ? Yes. WordPress is on to of the blogging platforms.

For more details : WordPress Usage Statistics

Before Google, Yahoo was dominating Search Engine Market. Yahoo was globally known for its Web portal, search engine Yahoo! Search, and related services, including Yahoo! Directory, Yahoo! Mail, Yahoo! News, Yahoo! Finance, Yahoo! Groups, Yahoo! Answers, advertising, online mapping, video sharing, fantasy sports, and its social media website. Yahoo! was the highest-read news and media website, with over 7 billion views per month, being the sixth most visited website globally in 2016.

You may not believe, Yahoo is written in PHP. Isn’t it great ?

Who doesn’t know Tennis legend Roger Federer ? Yes his personal website is developed in Joomla. Joomla is popular CMS in PHP.


More links are coming soon. 🙂

What should one not do in life ?

I really loved below points, you will never be sad if you apply these in your life, believe me.


  • Do Not Discuss People. Discuss ideas instead.
  • Do Not Be Jealous. Firstly, it is extremely meanly. Secondly, it makes you look miserable. Thirdly, this feeling has never made anybody happier, luckier or more successful.
  • Do Not Compare Yourself With Others. Live your own life and make sure it goes smoothly in the right direction.
  • Do Not Overwork. Hard work has nothing to do with productivity. Work smarter instead of working harder.
  • Do Not Be rude. Rudeness never shows your power but rather makes you look ridiculous and silly. Impress people with your politeness and let them respect you for that.
  • Do Not Be Impulsive. Every time you disagree with something do not make hasty conclusions or decisions. Give it a chance and let it settle down in your mind for a while. Soon you can notice how your opinion regarding that issue has changed.
  • Do Not Doubt Yourself Too Much. Embrace the truth. You are braver than you believe, smarter than you think and stronger than you seem. Go and get it!
  • Do Not Be Afraid To Act. Fear is a reason that paralyzes people and stops them from taking action. Overcome your fears and start acting confidently.
  • Do Not Spend Hours Surfing On Social Networks. Social networks are a great source of communication, interesting stories and funny pictures. But make sure you are not killing time from dawn till dusk there.
  • Do Not Lose Details. While being focused on big picture, do not forget about tiny details. They do really matter.
  • Do Not Lose Eye Contact. Develop a habit to look another person in his eyes while having a dialogue. It will let your partner be sure that you are listening carefully and you are totally involved.
  • Do Not Sacrifice Your Sleep. Go to bed on time and have a good night`s rest. Good sleep is crucial for your creativity and long-term productivity.
  • Do Not Lose Ideas. Always have a notepad with you. Every time you have an idea that pops up in your mind, take a minute to write it down or sketch it. Do not suppose that you will recall it later. They usually vanish.
  • Do Not Hang Out With Pessimistic People. There are already a lot of bad and ugly things in this beautiful world that every once in a while make you upset.
  • Do Not Lose Time Purposelessly. Spend every free minute you have with benefit. Read a book. Listen to podcast. Think. Dream. Act.
  • Do Not Forget To Exercise Regularly. Good, exhausting, intense workouts. This is what lets you stay in a good shape, abstract from the daily routine and devote time to yourself.
  • Do Not Postpone Anything. Especially the things that matter. The sooner you start moving toward your dreams the sooner you will enjoy the results of this journey.
  • Do Not Stop Studying. Knowledge is crucial. If you do not want to be left behind, you need to constantly improve your knowledge and acquire new skills.
  • Do Not Stop Smiling. Do it sincerely. Let your smile change the world.
  • Do Not Be Too Realistic. Leave some place for miracles. Believe in impossible and give weird ideas a chance.
  • Do Not Take People For Granted. Every single person in your life is worth appreciating.
  • Do Not Leave Any Reasons For Regret. Take action now in order not to regret about missed opportunities in the future.
  • Do Not Avoid Changes. Changes usually involve new opportunities, growth and development. Welcome them and let changes make your life more interesting and diverse.
  • Do Not Give Up Chasing Your Dreams. Commit to your dreams and make them come true.

Source : https://www.quora.com/What-should-one-not-do-in-life