Archives

Algorithm to determine if a sudoku puzzle is valid

Below long but self explanatory algorithm in javascript !!   A sudoku is said to be valid if If all boxes (3×3 grids) contain no duplicates and thus unique numbers between 1-9 All rows contain no duplicates and thus unique numbers between 1-9 All columns contain no duplicates and thus unique numbers between 1-9 Checking […]

git: authentication failed for on windows

Here is how to fix it on windows:- Go to Control panel and search for Credentials Manager and click on it. It will have 2 tabs web credentials and windows credentials, select windows credentials. See screenshot below Once selected, select Add a generic credential and it will ask for below 3 fields Remote host/URL username password […]

What triggered the big bang ?

We will first have a look at the evidence of the big bang and why it’s been widely accepted so far About the big bang The Big Bang is an idea about the history of the Universe, the origin of the universe, the history of space and time and matter (“stuff”) and energy. The Universe […]

What are the key differences between GoLang and Elixir ?

GoLang is developed by Google and inherits most of the properties of C and Python. It’s designed to write code executable on the server. Elixir is a ruby like functional programming language.  GoLang has an exceptional concurrency layer for designed to leverage multi-core CPUs and high performance computing applications. Elixir, first released in 2012, is […]

how to generate java classes using swagger and yaml ?

Swagger.yaml file can not generate code on it’s own. You can use  belowmaven plugin if you are using maven . And you have to run .  If you are using some other build tool, you have to look for alternative plugins swagger-codegen-maven-plugin Your pom.xml would look something like this <plugin> <groupId>io.swagger</groupId> <artifactId>swagger-codegen-maven-plugin</artifactId> <version>2.3.1</version> <executions> <execution> […]