## How to Update Kubectl Config from AWS EKS

Ever searched for kubectl update config from aws eks and needed a quick result? Step 1 – Validate AWS CLI Make sure that you have… Read More »How to Update Kubectl Config from AWS EKS

Ever searched for kubectl update config from aws eks and needed a quick result? Step 1 – Validate AWS CLI Make sure that you have… Read More »How to Update Kubectl Config from AWS EKS

Java provides many ways to generate random strings. 1. Using Apache Commons 2. Using Java 8 3. Using Plain Java

Python gives the ability to generate random strings out of the box, by using a combination of the string and random modules.

If you need to generate a random number or string in Terraform, then you can use the following: Then refer to it as:

If you have received the following error while trying to issue commands to kubectl: Unable to connect to the server: dial tcp: lookup Then it… Read More »[Solved] Unable to connect to the server: dial tcp: lookup with AWS EKS

Storing Terraform states files locally is not recommended. Instead you should use a backend such as as S3 from AWS. To do this, you just… Read More »How to Store Terraform State in AWS S3

If you have come across the following error: ZipArchive extension: disabled/not installed This just means that you are missing the php-zip module. How to fix the… Read More »[Solved] ZipArchive extension: disabled/not installed on Ubuntu

The challenge We have been searching for all the neighboring points in a Cartesian coordinate system. As we know each point in a coordinate system… Read More »Calculating Cartesian Neighbors Distance in Golang

The challenge The prime number sequence starts with: 2,3,5,7,11,13,17,19…. Notice that 2 is in position one. 3 occupies position two, which is a prime-numbered position. Similarly, 5, 11 and 17 also occupy prime-numbered positions. We shall… Read More »How to Calculate Dominant Primes in Golang

When you first try and push to a git repository, you may get the following error message: This is because you have not committed your… Read More »[Solved] error: src refspec main does not match

The challenge In this challenge, you will be given a number n (n > 0) and your task will be to return the smallest square number N (N >… Read More »How to Solve Simple Square Numbers in Golang

The challenge The purpose of this challenge is to write a higher-order function returning a new function that iterates on a specified function a given… Read More »How to perform Function Iteration in Golang

The challenge The depth of an integer n is defined to be how many multiples of n it is necessary to compute before all 10 digits have appeared at least once in some… Read More »Determining Integer Depth in Python

The challenge Implement a function reverse_list that takes a singly-linked list of nodes and returns a matching list in the reverse order. Assume the presence of a… Read More »How to Reverse a singly-linked list in Python

The challenge In this challenge, you will be given a series of times at which an alarm goes off. Your task will be to determine… Read More »Calculating Simple Time Difference in Python

The challenge Given an integer n return “odd” if the number of its divisors is odd. Otherwise, return “even”. Note: big inputs will be tested. Examples: All prime numbers have… Read More »Calculating Odd/Even number of divisors in Python

The challenge In this challenge, you will be given an integer n, which is the number of times that is thrown a coin. You will have… Read More »Calculate possibilities of throwing a coin N times in Python

The challenge Hereinafter, [space] refers to ” “, [tab] refers to “\t”, and [LF] refers to “\n” for illustrative purposes. This does not mean that you can use these placeholders in your solution. In esoteric… Read More »How to Convert Integer to Whitespace format in Python

The challenge You have an array of integers and have a frog at the first position [Frog, int, int, int, …, int] The integer itself… Read More »How to Perform Frog Jumping in Python

The challenge Write the following function: It should calculate the area of a regular polygon of numberOfSides, number-of-sides, or number_of_sides sides inside a circle of radius circleRadius, circle-radius, or circle_radius which passes through… Read More »How to Calculate the area of a regular N sides polygon inside a circle of radius R in Python

The challenge You are developing an image hosting website. You have to create a function for generating random and unique image filenames. Create a function… Read More »How to create an Image Host Filename Generator in Python

The challenge Task Given string s, which contains only letters from a to z in lowercase. A set of the alphabet is given by abcdefghijklmnopqrstuvwxyz. 2 sets of alphabets… Read More »How to Find the Missing Alphabets in Python

Step 1: Login to your MySQL server, enter your password when prompted: Find out where the data directory is located: Step 2: Now you can… Read More »How to move MySQL database to another drive

The challenge You will be given an integer array and your task is to return the sum of elements occupying prime-numbered indices. The first element… Read More »How to Find the Sum of Prime-Indexed Elements in Go

The challenge Find the longest substring in alphabetical order. Example: the longest alphabetical substring in “asdfaaaabbbbcttavvfffffdf” is “aaaabbbbctt”. Overview: There are tests with strings up to 10 000 characters long… Read More »How to Find the Longest Substring in Alphabetical Order in Python