In this post, I will tell you about Python and basicly Numpy. Python is a programming language. It’s popular in nowadays, because simple and useful.

Numpy is a Python library. It’s have functions about math operations and vectors. Useful because speedy about math operations. Let’s look in Numpy functions a little more.

For using Numpy, we have to import it. Importing is simple, just write import numpy as np. np section is optional. Generally, it’s functions about arrays, vectors. So we will create an array and start.

Creating arrays are simple like always. We just define a variable and use…


Merhaba arkadaşlar, bu yazımda Asp.Net Core ve MVC pattern ile bir projenin nasıl yazıldığını anlatmaya başlayacağım.

Asp.Net Core

MVC (Model View Controller) bir web programlama mimarisidir. Temel mantık, uygulamayı ayrı katmanlara ayırıp her katmanın kendine özgü görevlerini yerine getirmesidir. Böylece uygulama büyüdüğünde karmaşa olmuyor.

Uygulamanın en önemli görevini Controller katmanı yapmaktadır. Gelen istekleri karşılar ve ilgili yerlere yönlendirir. Veri tabanı ile doğrudan ilişkilidir. Veri tabanındaki bilgilerin paketlendiği kısım Model katmanıdır. Uygulama içinde veri taşır. View katmanı ise içi doldurulan modeli html bilgisine dönüştürür.

Bu projede derleyici olarak Visual Studio Code kullanacağım. dotnet’i bilgisayara indirip kurduktan sonra cmd ekranından versiyonun kontrol ediyorum. …


In this article, I will write about how to activate an account with NodeJs. It’s connected with my previous article, so if you read it, you can easily understand this project. The link is here:

Let’s start!

First of all, we have an email and a randomCode in request.

const { email, randomCodeReq, } = req.body;

Random code is given us with Sign Up function. In this function, we send an email to user. In email, we have a 6 digits number, like this:


I wrote about this function and others, but while I writing the project wasn’t finished. So, I finish project and want to explain how to do it. Let’s start!

Firstly, we need to create a database in MongoDB. For this, we’ll use Schema. In this project, I have three databases. We’ll begin with User Schema.

To creating a schema, we’ll require mongoose. Then we’ll write this code line.

const UserSchema = new mongoose.Schema({})

In database, we have name, email, password, point, randomCode, login, forgotCode, id, imageUrl and refreshToken. Random code is for activating account, forgotCode is for reset password and…


In this article, I will explain how to sort records (users) in MongoDB. There is a function in MongoDB, named $sort but in my university, we don’t use this function. So I have to find a method for this. Let’s start!

First of all, we need to know our records’ count. In MongoDB, we have find() and count functions. Using these two, we can basically find count like this:

const count = await User.find().count();

User is the database’s name. Then we’ll create an array for users with let. Let means, we can change it anytime. We’ll put users in the…


In this article, I will explain how to code forgot/reset the password, how to send an email, and how to combine these files with the front-end. If you haven't seen my previous articles, you can go to my profile. Let’s start with forgot password.

First of all, we need mailgun. We go to mailgun website and add an account. It’s free for signup application so you can it for free. After that, we’ll write npm install mailgun-js in the terminal and install the package. We’ll go to controllers/auth.js …


In this article, I will explain how to combine NodeJs and ReacJs in a Logout page. This will be 7. article about back-end, if you wan to read previous articles are here:

If you read all of them, let’s start!

I don’t code front-end part, so I just give you a simple code and you can coding it if you want to. But firstly, we’ll start with back-end part. Actually in my other articles, I gave you a Logout code, but when I start combine back-end and front-end, I realize I need a one Boolean variable(login) for understanding login and…


In this article, I will continue with the Login part. For previous articles, you can go to profile. Let’s start.

Like previous articles, I will give you a login form. I don’t write its code, CSS does not exist on this page. Function’s return part is like this:

<div className="wrapper1">
<div className="form-wrapper">
<h1>{t('Sign.signin')}</h1>
<form ><div className="email"><label htmlFor="email"></label><inputtype="text"className=""placeholder="E-mail"type="email"name="email"/></div><div className="password"><label htmlFor="password"></label><inputtype="text"className=""placeholder="Password"type="password"name="password"
/>
</div>
<button className="buttonsign" value = "Submit">
Login
<h5>{t('Sign.signin')}</h5>
</button>
<Link className="linksignin" to="/signup" >{t('Sign.accountUp')}</Link></form></div></div>

For function, we’ll…


When I start backend coding, my main problem is combining backend and frontend. In this article, I will write about this problem. For this, I will use my previous codes with small changes in signup code. You can read my previous articles in that links:

SignUp/Login Application(Part1): https://medium.com/nerd-for-tech/signup-login-application-with-nodejs-express-and-mongodb-658498e580cf

Logout(Part2): https://medium.com/nerd-for-tech/logout-with-nodejs-express-and-mongodb-9b73e8b01137

Email Verification(Part 3): https://medium.com/nerd-for-tech/email-verification-with-nodejs-part-3-e004787391e3

Forgot Password(Part 4): https://medium.com/nerd-for-tech/forgot-password-in-signup-application-with-nodejs-and-mongodb-part-4-51378dddd716

For this article, we need website’s front-end codes. I didn’t write this codes, so I will share just SignUp and Login pages, use them and show you results. Let’s start!

First of all, we need a function named SignUp, in return part…


In this article, we’ll begin visualization with Python. I’m still learning, continue a course, so this material is about course. Let’s start!

I will use Kaggle and a dataset in Kaggle. You can go to my Kaggle profile and examine my notebooks:

https://www.kaggle.com/serapbaysal61

Of course you don’t have to use Kaggle, you can install dataset and use it on your pc. The dataset’s link is here too:

https://www.kaggle.com/kwullum/fatal-police-shootings-in-the-us

Firstly, we’ll import libraries that we’ll use:

import numpy as np 
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from collections import Counter

In this dataset, we have…

Serap Baysal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store