How to learn Git in 15 minutes? List of most basic git commands

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. Every dev has a working copy of the code and full change history on their local machine Here are some most important and useful GIT commands that will surely help you. ...

January 2, 2019 · 3 min · Harshvardhan Malpani

How to edit default python version for a linux user?

On older Linux servers such as CentOS 7, typing python still starts Python 2, even after you’ve installed a newer Python 3 yourself. If you want python to start your new version for your own user only, an alias in .bashrc is the simplest way. It doesn’t touch the system’s Python, which matters on CentOS 7 because yum depends on Python 2. Edit the bash profile and add an alias using the following code: ...

December 31, 2018 · 2 min · Harshvardhan Malpani

NodeJS: JavaScript powering the backend.

Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. NodeJS is a JavaScript engine that you can install in your own system. Also, NodeJs makes it possible to use JavaScript in backend development as a backend programming language. (Cool! isn’t it.) You need to know this. Node isn’t a program that you simply launch like Word or Photoshop: you won’t find it pinned to the taskbar or in your list of Apps. To use Node you must type command-line instructions, so you need to be comfortable with (or at least know how to start) a command-line tool like the Windows Command Prompt, PowerShell, or the Git shell. ...

December 30, 2018 · 2 min · Harshvardhan Malpani

Your PHP installation appears to be missing the MySQL extension, required by WordPress

The error message “Your PHP installation appears to be missing the MySQL extension which is required by WordPress” can appear when you are using a PHP version which is incompatible with your scripts version. Meaning your WordPress installation is most likely outdated. Since the ‘MySQL’ extension is no longer supported from PHP 7.0 and beyond, changing your PHP version to 5.6 or lower will fix the issue. This can be done via your website’s control panel’s PHP Configuration section. ...

December 28, 2018 · 3 min · Harshvardhan Malpani

Fix Error Too Many Redirects on WordPress Admin page or Blog

“Too many redirects” (ERR_TOO_MANY_REDIRECTS in Chrome) means the browser is stuck in a redirect loop: page A redirects to B, B redirects back to A, and the browser gives up. On WordPress it usually shows up right after switching a site to HTTPS, moving it to a new domain or server, or putting it behind a load balancer or a CDN such as Cloudflare. Sometimes only /wp-admin is affected, sometimes the whole blog. ...

December 27, 2018 · 4 min · Harshvardhan Malpani

Programming Paradigm.

Hi Everyone! Today we are going to talk about programming paradigm. And in pronounces, the ‘g‘ is silent in ‘paradigm’. So, in layman’s language programming paradigm is just the style of programming. Their are various styles of programming. Every developer is different, hence is the style. Here we are about to talk about the most commonly used styles or pattern of programming. Different Paradigms: 1. Imperative/procedural programming. Imperative programming consists of sequence of statements and values are stored in memory after the implementation of statements. ...

December 25, 2018 · 2 min · Harshvardhan Malpani

What is MVC in programming.

Hi Everyone! This concept is a bit difficult to understand, but that does not stop me from writing about it. I will try to be as clear and simple as I can. We have a lot to cover, So let’s just dive into it. I have also included diagrams and example code of MVC below. MVC: MVC stands for “Modal View Controller” and it is a “Software architectural design pattern“, Which in turn is one of the most frequently used patterns. ...

December 20, 2018 · 2 min · Harshvardhan Malpani

How to increase EBS storage block size on a running spot instance in AWS?

So, you created a aws group with a small ebs storage size and now that the site is in production, storage disk is full and it was mounted as root storage, now you are asking “MY AWS INSTANCE STORAGE IS FULL, WHAT TO DO?” or “How do I increase the EBS volume size of a running instance?” So, here is the simple solution: There are two commands which will help you ...

December 18, 2018 · 2 min · Harshvardhan Malpani

Understanding “this” keyword in JavaScript.

‘Hi Everyone! In this article, we are about to discuss **‘this’**keyword in JavaScript. It is a very important part of object-oriented JS programming. Hence it becomes crucial for serious developers to understand **‘this’**keyword. It is also one of the most confused concepts of JavaScript. What is ‘this’? Understanding 'this': To be able to understand what I am about to talk, you should be familiar with the basics of JavaScript. e.x – Variables, Objects, Functions, etc… ...

December 15, 2018 · 3 min · Harshvardhan Malpani

Everything is a ToDo list.

Hi Everyone! Today’s topic might not be clear from the heading, so let me make it clear over here. This post is a bit different so brace your self to think a bit. In the field of programming, it is very important to understand the fundamentals and core concepts of programming. This field requires you to think differently. Most people find coding quite tough and the reason being the way they think about web-applications. Anyone can learn the syntax of a computer language, and print ‘Hello World’. ...

December 12, 2018 · 2 min · Harshvardhan Malpani