# Ninja Code Tutorials

## Collection by Ninja Code Tutorials

13
Pins
•
10
Followers

In this tutorial we will deal with connecting to a database with php. We will show how to connect to a mysql database which is one of the more common ones.

What is linear regression? Linear regression is a mathematical method of determining a gradient which fits points on a graph of plotted values. In essence linear regression can be used to do predictions on data models using a concept known as fitting. Which is then represented on a graph of plotted data points. In mathematical …

What is linear regression? Linear regression is a mathematical method of determining a gradient which fits points on a graph of plotted values. In essence linear regression can be used to do predictions on data models using a concept known as fitting. Which is then represented on a graph of plotted data points. In mathematical …

In this python classes tutorial we discover the class constructor,class init, class destructor, class attributes and show you how to import your class.

In php there are a few methods to add items to an array. The most efficient way being using php’s built in operators. For the c++ people who have implemented operator overloading before you will understand exactly what this is. Operators being +-.[] etc. which it assigned to a specific type of class, object or …

There are few options when it comes to doing some date handling in php. Some of the functions will be for example: strtotime date gettime and a bunch of others. In this tutorial we will mostly be focussing on strtotime and date. The code for current date \$current_date = date(“Y-m-d H:i:s”); First we need to …

If you have tried the conventional method of echoing out information with arrays you may have encountered the following output.Array. Yes simply just Array. Not very useful when you trying to figure out what is inside the array you have been building up.In order for php to echo an array you need to look at …

Build a website from scratch. This how to build a website tutorial series will show you how. Using html, css and javascript.

What is python pyramid? Pyramid is a micro framework which allows you to build simplistic one file web applications using the python programming language. In this tutorial we will cover installation and setup and some issues could potentially encounter setting up. Installation steps We need to first of all run Pyramid in a virtual environment. …

Python tuples, list and dictionaries what are they? Essentially each of these are python data structures. By default python does not ship with anything similar to the well known array in other languages. However uses different data structures to achieve similar goals. Some of these data structures have different properties where they may be immutable …

In this tutorial we will show how to create your very own self signed ssl certificate which you can install on your apache web server using Ubuntu Linux. The first step is to make sure you have openssl so that you can generate the certificate. We will be generating two files, one which is the …

If you are receiving the following error on your apache configuration you may have been trying to add ExpiresActive in your .htaccess file in order to turn on some form of cache control. Invalid command ‘ExpiresActive’, perhaps misspelled or defined by a module not included in the server configuration Which also produces a 500 server …

If you are receiving the following error on your apache configuration you may have been trying to add Header in your .htaccess file in order to turn on some form of cache control. Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration Which also produces a 500 server …