Browse By

All posts by admin

Linear Regression Fit

Implementing Linear Regression from Scratch in Python

This tutorial walks through implementing linear regression from scratch in Python, without using machine learning libraries like scikit-learn. We’ll cover the math behind linear regression, implement core functionality, and demonstrate usage with real data. Overview Our implementation will include: Implementation Let’s start by implementing the

Polynomials

Understanding Polynomial Calculus with Python: A Practical Guide

In this post, we’ll explore how to implement basic calculus operations on polynomials using Python. We’ll cover derivatives, polynomial evaluation, and numerical integration, with clear examples and explanations along the way. Representing Polynomials in Python We’ll represent polynomials as lists of coefficients, where the index

Add an ST7735 TFT display to an ESP32

Add an ST7735 TFT display to an ESP32

Hello, I wanted to try these ST7735 inexpensive displays that can be found all over the internet, so I ordered a couple for a few euros each. My quick research showed that a number of libraries support them and it turns out that you can

arduino 2x16 lcd ds3231 dht11 spl freetronics

Arduino Info display

Hi all, I know I haven’t updated my blog for a long time. Apologies. This is is because of spending time with my family and work. I’ll try to post small guides from time to time. This Christmas I wanted to play a little bit

git_logo

How to delete a Git branch both locally and remotely

If you are not using a gui for github like Sourcetree or Github desktop but you prefer using git from console then you might might wondering how you can delete a branch both from server/remote and from local. The commands you can use are the

How to find and kill a process on port 8080 on Mac

Sometimes you may get an error message “ECONNREFUSED 127.0.0.1:8080” especially if you are having many bash terminals open and you spin multiple webservers. So if you just want to find and kill the process on the x port that is causing the trouble, in this

free online courses

Hundreds of free online courses about programming

A few years ago there were very little resources to those who wanted to start a career in development. You either had to graduate from a university or reading books. Today there are many free online courses available to anyone. The quality is really high due

mongo-db-logo

How to drop all MongoDB databases

The title of the article is pretty much self-explanatory. So the easiest way I found to drop all your MongoDB databases from mongo CLI is to run this simple command which actually what it does is it goes through the result of getDBNames function and

Mongodb

MongoDB – Address already in use for socket: 0.0.0.0:27017

If you are like me who today tried to start mongod and got the error below [initandlisten] ERROR: listen(): bind() failed errno:48 Address already in use for socket: 0.0.0.0:27017 [initandlisten] ERROR: addr already in use [initandlisten] now exiting Then what have to do instead of restarting