5 things you might be doing wrong in Javascript

1. Do not use console.log for debugging This is the most common way of debugging and it’s effective but only for 1 page scripts. If you wish to create full fledged application console.log can rapidly become a headache to manage while debugging. You need an efficient way of debugging. You need a minimal framework to …

5 things you might be doing wrong in Javascript Read More »

Fix “RECOVERING” State Error in MongoDB Secondary Replica

MongoDB intrinsically support replication within the community edition itself. If you have worked with the MongoDB replicas before, you might have stumbled upon the error in secondary replicas. In MongoDB, secondary replicas are the replicas which are only used for replication and no there transactional query can be performed on them. Sometimes, due to various …

Fix “RECOVERING” State Error in MongoDB Secondary Replica Read More »

Allocate swap memory to Ec2 linux instance or any other linux machine

Hi, Today we are going to learn how to allocate swap memory to any linux instance. This particularly comes handy for Amazon Linux Ec2 instances as at the time of launch, Ec2 instances do not have swap memory attached to them and we need to attach it manually. But first, we need to know some …

Allocate swap memory to Ec2 linux instance or any other linux machine Read More »

Set windows as default boot in grub bootloader

This tutorial shows you how to easily change grub boot order to make Windows as default OS in Windows-Linux dual boot with the help of Grub Customizer. Many people prefer to install Linux in dual boot mode with Windows. Some of them use Linux as their primary OS while some prefer Windows as their primary OS. When you …

Set windows as default boot in grub bootloader Read More »

How to solve JavaScript heap out of memory in ionic build –prod

Lately, I was facing JavaScript heap out of memory issue whenever I tried to make Ionic 3 production build. After some googling, I found out that I am not the only one facing this issue. See this thread. Cause of JavaScript heap out of memory error Ionic 3 is based on angular, and it uses …

How to solve JavaScript heap out of memory in ionic build –prod Read More »