Uncategorized

How to begin using Spring in Java Web Programming?

What is Maven and why it is used? Maven is a powerful project management tool that is based on POM (project object model). It is used for projects build, dependency and documentation. How it works? Maven is a popular open source build tool for enterprise Java projects, designed to take much…

Introducing Lines of Regression

In this post we shall learn how to create Lines of Regression in Python using numpy and sklearn. We shall also draw plots for the same. To start with we shall import the following. import numpy as np from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt   end

Read a file

In this example we will see how to Open/Create a file in PHP and read it . To open/create a file in PHP fopen() is use . Syntax: fopen(filename,mode); This function takes 2 parameter to open/create a file  . If file exist then it will simply open it if not then…

Keith Numbers in Java

What is a Keith Number? “A Keith number is an -digit integer  such that if a Fibonacci-like sequence (in which each term in the sequence is the sum of the  previous terms) is formed with the first  terms taken as the decimal digits of the number , then  itself occurs as a term in the sequence. For…

Happy Numbers in Java

Developed a program for finding out Happy Numbers from a given range of numbers. What is a Happy Number? To find a Happy Number we take every digit of a number, square them and add them up. If the sum equals 1 it is a Happy Number. If not we…