It depends on how you use it

Image for post
Image for post

Distraction is always considered as a problem. When you’re in a college, chatting with your crush distracts you from studying hard. And definitely, that semester may end with the big noise in your family. And the worst thing is when you want to be distracted from something like your pain or suffering, it’s difficult but when you want to focus, distraction is sitting next to you like your girlfriend.

When my 6 years old daughter slipped down on the floor while learning the skating at home and start crying, it is easy to distract her by talking about how her pet dog (a soft toy) sneakingly went into her toys room and playing alone in the night. Or waking her up every morning around 8 am asking about her dream while she is in sleep. No doubt it disturbs her but then shifting this talk to something interesting, “I seen a planet in the sky early morning today. It was looking like a sparkling star. Bingo! (in changed voice) do you know how to write sparkle in Kanji?”. …

Easy and short

You must be aware that Letsencrypt provides the free SSL/TLS certificate which is the huge benifit for small organizations. Instead of going to discuss its positive and negative aspects, let’s dscuss how to set it up for you backend application/website.

I tried with certbot previously by following the instructions on their official site, AWS documentation, and other articles but everything failed on AWS due to its dependencies. So this time I tried with which hides all the complexities and makes the process very easy. So let’s start;

Login to your ec2 instance from the terminal and follow these steps. …

You already have.

Does your framework support custom external routers? If no, don’t read further.

express.js, restana and many other frameworks allow you to use custom routers. Eg

const anumargak = require('anumargak')
const service = require('restana')({
routerFactory: (options) => {
return anumargak(options)

service.get("/this/is/static", function(req, res){

service.get("/this/is/:dynamic", function(req, res){

service.start(3001).then((server) => {
console.log("server has been started on port 3001")

Router benchmark suggests that find-my-way is the fastest router. But there are some PRs which are not merged yet. …

We all understand the importance of mocking real services. Without moking, a service can give unexpected result after a few update and delete operations. With mocking, the result of GET will never change, no matter how many times you UPDATE.

Image for post
Image for post

The purpose of this article is to explain how to create mocked DynamoDb web services. Though some of the scenarios are not valid for functional tests they are explained for learning purpose only.


We’re using stubmatic npm package to create mock service. But, you may choose any method of your choice.

Stubmatic is designed specially for testing. It gives many advance features to mock web services. In stubmatic, we create a request-response mapping file which is easy enough to understand. …

To represent the biggest number in the universe without precision loss

Image for post
Image for post
Created By Amit Gupta

Let me ask you

What data type will you choose to assign and process 100,000 digits of pi?

Ummm… float, decimal,… BigNumber … not sure!!

What output do you expect when you subtract 0.1 from 0.3?

0.2 but I’m not sure why it is 0.19999999999999998.

> var x = 0.3 - 0.1
> x

😀 😁 😂 🤣 😃 😄 😅 😆 😉 😊 😋 😎 😍 😘 😗 😙 😚 ☺️ 🙂 🤗 🤩 🤔 🤨 😐 😑 😶 🙄 😏 😣 😥 😮 🤐 😯 😪 😫 😴 😌 😛 😜 😝 🤤 😒 😓 😔 😕 🙃 🤑 😲 ☹️ 🙁 😖 😞 😟 😤 😢 😭 😦 😧 😨 😩 🤯 😬 😰…

An attempt to save your effort and time.

Image for post
Image for post
Auto suggestion and use of hot keys

ImgLab is a platform independent image annotation application which runs directly from browser, and no prerequisite is needed. It requires very less CPU and memory. It is Opensource and free forever.

I initially used dlib inbuilt imglab tool to annotate images. But installing dlib is multi step process due to it’s dependency on other OS libraries. I realized that this complexity should be avoided for the people who only want to annotate the images. Hence I created it’s web version.

Now access it from anywhere anytime and start working. Your data will be auto-saved to the browser cache. And you can also export that in multiple formats. …

Image for post
Image for post
Photo by rawpixel on Unsplash

In the attempt of motivating people for #opensource development, I’ve received response from approx 18 contributors in 4 weeks. With this experience I would like to share a #guideline with all the fresh #contributors and the authors who welcome fresh contributors.


Accepting contribution from #first_timers is not just about taking support for your project but also to provide support in return. People, contributing first time, are generally afraid to commit mistakes. Hence they hesitate.

If you really want to motivate first timers, you should take extra care while creating an issue.

  • Easy: It should not take much effort and time to complete an issue. …

Fast router for NodeJs web frameworks with great possibilities

Image for post
Image for post

I have recently started working on a web framework मुनीम (muneem) which can be used to write fast web services. As I’m focusing on fast services, I tried and compare many routers, unique Id generators, loggers etc.

In case of routing, I found that most of the routers use the same approach for static and dynamic URLs. Hence I decided to write अनुमार्गक (anumargak). Here is the benchmark report against one of the fast routers already available.

Image for post
Image for post


It’s quite easy to use. …

Parse \ Validate XML into JS \ JSON rapidly.

Image for post
Image for post

Fast XML Parser (FXP)is the JS library which validate and parse a XML syntactically without applying the rules of XSD. It has completed it’s one year with 85k Downloads and 175+ github stars. There are 200+ known projects and 2000+ unknown projects (based on the dependency & download pattern) which are using this library.

Image for post
Image for post

Update on 20 Oct 2019

Fast XML Parser is being used by many big organizations and projects like. It has more than 500 stars on Github and more than 60k weekly downloads.

Image for post
Image for post

Main Features

  • Validate XML data syntactically
  • Transform XML to JSON or…

You’ll have to return the pen.

Image for post
Image for post

This post is written to explain exception handling concept to beginners with some good examples.

//Borrow the pen
//Use the pen
}catch(StolenPen how){
//Buy new pen
//Return new pen

Exception is some undesired event which interrupt our usual way of working.

When we feel that such undesired events may happen, we write them in try block. Catch is the block where you take an action against these undesired events. You knew that someone could steal the pen hence you have already thought to buy a new pen in such situation. finally is a block where you do the action which can be avoided. As if you have borrowed the pen, you’ll definitely return it to your friend otherwise he’ll not like it. …

Amit Gupta

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store