Web development made easy

Simple Linear Regression from scratch in Rust

As one of the oldest and easiest Machine Learning algorithms, implementing Simple Linear Regression can be an eye-opening and rewarding experience for anyone new to Machine Learning, Deep Learning and AI. In this tutorial, we are going to implement Simple Linear Regression in Rust. To really internalize the algorithm, we won’t use any existing math Read more about Simple Linear Regression from scratch in Rust[…]

[Guest post] – Build a Text Classification Program: An NLP Tutorial

This is a guest post by Shanglun Wang, it was posted originally on https://www.toptal.com/machine-learning/nlp-tutorial-text-classification Deep learning is a technology that has become an essential part of machine learning workflows. Capitalizing on improvements of parallel computing power and supporting tools, complex and deep neural networks that were once impractical are now becoming viable. The emergence of Read more about [Guest post] – Build a Text Classification Program: An NLP Tutorial[…]

Creating a Turing Machine in Rust

In this series, I am going to rewrite the Turing machine I wrote in Creating a Turing machine in Python. I am re-writing this to become more familiar with the Rust programming language and to improve my proficiency with it. You can find the entire project on https://github.com/phillikus/rust_tm. Let’s first revisit the fundamental theory behind Read more about Creating a Turing Machine in Rust[…]

Downloading podcasts from Changelog

Due to the busy lives, we live in the 21st century, finding time to learn about new topics and keeping up to date with technological trends becomes more and more difficult. One great way to keep learning and improving without sacrificing time from other activities is to listen to some of the great podcasts out Read more about Downloading podcasts from Changelog[…]

Deep Learning – Training an AI to play Doom

With recent scientific advancements in Deep Learning, Artificial Intelligence and Neural Networks, as well as steadily evolving tools such as Tensorflow, Pytorch, and Keras, writing, testing and optimizing your own Neural Networks is now easier than ever before. Amazed by the results of the Vizdoom competition, I decided to implement my own simple Doom AI Read more about Deep Learning – Training an AI to play Doom[…]

Docker Compose: Redis, Flask and ReactJS – Part 2

In the last part, we set up a simple todo-API using Flask and Redis. We managed to dockerize both Redis and Flask, so starting the backend of our application is as easy as running docker-compose up. Now, it’s time to implement a simple web client for this application. For that, I’m going to use ReactJS Read more about Docker Compose: Redis, Flask and ReactJS – Part 2[…]

Docker Compose: Redis, Flask and ReactJS – Part 1

In this series, I want to show you how to set up and deploy web applications using Flask and Redis on the Backend, and ReactJS on the Frontend. Using Docker Compose, it will be very easy to start, debug and deploy this application. My goal here is not to create a very sophisticated application, but Read more about Docker Compose: Redis, Flask and ReactJS – Part 1[…]

Setting up a Redis test environment using Docker Compose

In this short tutorial, I want to show you how to set up a simple Redis instance using Docker Compose. We will connect to it and test it using Python and the redis package. Software Since we will use Docker Compose to create the Redis instance, you must first install docker. Check out https://docs.docker.com/engine/installation for Read more about Setting up a Redis test environment using Docker Compose[…]

Book Review – Grokking Algorithms: An Illustrated Guide for Programmers and Other Curious People

While programming languages are becoming more and more powerful and abstract, knowing about the underlying algorithms and data structures and when and how to use them is still key to writing efficient and elegant programs. Overview In his book, Grokking Algorithms: An Illustrated Guide for Programmers and Other Curious People, Aditya Bhargava tries to explain Read more about Book Review – Grokking Algorithms: An Illustrated Guide for Programmers and Other Curious People[…]

Creating a Turing Machine in Python – Part 3

Now that our Turing machine is up and running, it’s time to add some more interesting machines. We will stick with unary Turing machines and implement one for Decrement, Addition and Subtraction each. Before we do so, however, let’s add some logging to visualize how the Turing machine is working and help us debug it. Read more about Creating a Turing Machine in Python – Part 3[…]

Creating a Turing Machine in Python – Part 2

In the last part, we covered the theory of Turing machines and created the basic project structure and classes. Now we are going to implement those classes one by one: direction.py This class contains only an enum that will be used to move the head of the tape. Therefore, it’s implementation is very straightforward: We Read more about Creating a Turing Machine in Python – Part 2[…]

Creating a Turing Machine in Python – Part 1

In this series, I want to show you how to create a simple console-based Turing machine in Python. You can check out the full source code on https://github.com/philipp007/turing_machine. In this part, I will explain the fundamental theory behind Turing machines and set up the project based on that. Requirements basic knowledge of Python fundamentals of theoretical Read more about Creating a Turing Machine in Python – Part 1[…]

Game programming using Javascript, React, Canvas2D and CSS – Part 3 (Final part)

In Part 2 I showed you how to add game objects and draw them to the canvas, how to handle game-state and how to move the player around. In this final part, we will allow the player and invaders to shoot each other, add a simple high-score and a GameOver-screen. Adding bullets To get started, Read more about Game programming using Javascript, React, Canvas2D and CSS – Part 3 (Final part)[…]

Game programming using Javascript, React, Canvas2D and CSS – Part 2

In the last post we set up our react-app, added an InputManager class to handle user input and added a first component to render a title-screen. In this part, we will implement state management to switch from the title screen to the playing-screen, add a player-controlled ship-class and finally some invaders for the player to Read more about Game programming using Javascript, React, Canvas2D and CSS – Part 2[…]

Game programming using Javascript, React, Canvas2D and CSS – Part 1

In this series I want to show you how to create simple 2D games using Javascript, React, Canvas and CSS. We will make a simple Space Invaders clone, you can check out the end result on https://phillikus.github.io/react_invaders/. To checkout the full code, go to https://github.com/phillikus/react_invaders. In this part we will setup the project, add a TitleScreen component Read more about Game programming using Javascript, React, Canvas2D and CSS – Part 1[…]