# Math - Single Digit Sum

## An easy technique to reduce any number to a single digit sum

Any number (say 3456) to be equated to a single digit sum, we just add all the digits together (3+4+5+6 = 18) until they become a single digit (1+8=9). i.e. less than 10

This article explains a shortcut method to find the single sum for any number through a simple mind math.

# The magic number 9

The shortcut method is that you can skip all the 9’s from the digits, also by excluding all the numbers that adds up to 9.

For example: 12789, Single Sum = (Skipping the digit 9) 1+2+7+8 => (because 1+8 is 9, skipping the digits 1 & 8) 2+7…

# Why over-thinking is not recommended

## An article about my observation on unnecessary mindfulness

Firstly we have to accept the fact that we are capable of thinking only about those that we already know (which resides in our memory).

Our memory is a limited resource.

The worst part about our mind is that it doesn’t fetch all the records that exists in our memory at once. It picks random blocks and makes us to come to a conclusion based on those limited memory blocks. That’s the reason why we tend to make different decisions at different times for the same matter.

# A day is just a day

Sun rays fall on this portion of the planet Earth — we call it a day.

For a corporate worker, its a second day of the week.

For a saloonist, its a holiday.

For the pupils, its 8 days to start schooling again.

For the unemployed, its just another day of hope.

For the depressed, its one more day to worry.

For all other creations, its just a day; just following the rule to grow, age, transform, pass on, decompose and grow back again.

# Mobile phone numbers are a bomb

## This article explains how the modern day applications that uses a mobile phone number for registration, will eventually turn into a privacy concern later on.

Nowadays most applications, be it a website or mobile based, uses phone numbers as their only means to register a user into their system. By doing so, the process of registration becomes much easier and even the authenticity of the user is taken care of, because any fraudulent user will use multiple e-mail addresses to cheat the system whereas they cannot own multiple mobile phones, as it costs money to own a phone number.

Everything seems to have been taken care of until the user decides to discontinue the application and/or the phone number.

When discontinuing the application if the…

6 x 7 = 42

7 x 8 = 56

8 x 9 = 72

4 x 4 = 16

5 x 5 = 25

6 x 6 = 36

7 x 7 = 49

8 x 8 = 64

9 x 9 = 81

3 x 7 =21

9 x 3 = 27

4 x 7 = 28

8 x 4 = 32

4 x 9 = 36

8 x 6 = 48

6 x 9 = 54

9 x 7 = 63

# 4-digit combinations of ‘n’ numbers — using JavaScript

## Simplified in a common man’s language with little Math

For numbers 0 to 9 (where n=10), the possibilities of making 4-digit combinations are 10 * 10 * 10 * 10 = 10,000.

Likewise (when n=5) any non-repeating 5 numbers totals to 5 * 5 * 5 * 5= 625 possibilities to form 4-digit combinations.

We will consider ’n’ to be ‘5’ throughout this article for convenience.

The 1st digit can be chosen from (3,2,1,9,8) = 5 options

The 2nd digit can be chosen from (3,2,1,9,8) = 5 options

The 3rd digit can be chosen from (3,2,1,9,8) = 5 options

The 4th digit can be chosen from (3,2,1,9,8) = 5…

# How many colors exist in the world?

## Possible number of colors in web technology

We are talking only about the colors that can be represented in web technology. To find this out we must have an understanding of some basics about computer machines such as memory, color model and number systems.

# Fix — Disallowed MIME type error — Angular GitHub pages

This post is valid as of March 2020

# Solution

When using GitHub Pages from a different repository (than the parent github.io repository), then by changing the `base href` to the current directory solves the issue.

`<base href="./">`

Earlier my code used to be `<base href="/">`

Do let me know if my article needs correction / improvement. TIA.

# Guide — GitHub Pages — Beginner

Valid: This post is valid as of March 2020.

Scope: This article only covers the GitHub pages created through github.io repository. This article doesn’t contain instructions for Custom Domain GitHub Pages or GitHub Pages with Jekyll.

GitHub pages works straight away when you place a valid “index.html” file in a repository which is named as that of the username along with “github.io” suffix. i.e. <username>.github.io

GitHub has also allowed other repositories belonging to that User (username) to be part of the main GitHub page (through sub-routes) i.e. <username>.github.io/<other-repositories>

This option can be found under the “Settings > GitHub Pages” of…

# Feasibility study — Stripe subscription with checkout

Let us try to achieve a specific billing module using the below documentation as reference:

https://stripe.com/docs/payments/checkout/subscriptions/starting

Stripe has two modes — Test Data and Live Data. This post will contain instructions for both modes in general, unless specified exclusively.

Payment processing, reporting usage and invoice notification are possible only through Live Data mode.

Prerequisite:

1. Create a Stripe account — https://dashboard.stripe.com/register and complete the e-mail ID verification.

2. Create a Product with required values — https://dashboard.stripe.com/test/subscriptions/products and then a Pricing Plan on it’s consecutive page with Recurring quantity, desired Price per unit value and other default values.

## Prakash M.

learner. seeker.

Get the Medium app