Flask is a framework which many people learn as their first web framework as it is simple, lightweight and easy to learn.
AWS is one of the most popular cloud services available today, providing amazing solutions for many different problems which businesses face.
In this tutorial, I will give a visual guide on how you can deploy your first Flask application on to AWS. Lets geddittt!!
I was always interested in Artificial Intelligence learning how to play games. From Alpha-Go to simple retro games such as Snake, it was always amusing to see how the AI learns to beat the game. Just having ended my university lift, I decided to start a project to learn how to create my own AI to beat a popular game, Flappy Bird (well, at least popular back in 2013). Of course, Flappy *Bird* is a bit of a cliche, so I added my girlfriend’s cat, Louie, instead.
In case some of you never heard of Flappy Bird (which I sort…
I am back with another algorithm which sort of blew my mind. Its solves a problem which is seen many times and has a lot of different solutions to it. Boyer-Moore’s Majority Vote algorithm is really something. Lets dive into the problem statement of what this algorithms solves!
Problem: Given an array of n numbers, find the Majority Element. (Majority element is basically a number which appears more than n/2 times). Basically we just need to find the element which appears in more than half of the positions of the array. Here are some sample input/outputs.
Input 1: [1,3,4,3,3,3,3]
Today, I will be going through a Programming Question and the different ways to solve the question using the Kadane’s Algorithm!
The Maximal Continuous Sub-Array is a question which comes up in many Technical interviews and also on many programming challenges websites such as Hackerrank and LeetCode. The problem definition goes like this:
Question: Given an array of negative and positive integers, find the sum of a contiguous sub-array of numbers which has the largest sum.
Understanding the problem itself is not too hard. We just need a part of the input array who’s sum is maximal. …
Welcome to the last part of Introduction to Concurrency Programming in Java! In this last section we will quickly go through what Race Condition is how to resolve them! If you missed the last two articles:
The key concepts we will go through will be:
Until now, if you never searched about Multithreading, you wouldnt have heard of Race Conditions before.
Race condition is a situation where 2 Threads try to manipulate a shared resource at the same time, leading to unexpected results.
Lets break this statement down by taking…
Now that we’ve gone through the Introduction to Concurrency programming in Java, let’s take a deeper look into a important Thread function — “Join” which we can use! Also we will be taking a look at Java Thread State Diagram to understand how Java manages the different Threads.
So in this article, we will be going through:
If you missed out on Part -1 of the series, Click here to read it!
Java Thread API provides a lot of important and useful functions which developers and programmers can use to easily manipulate…
In this article, we will be taking a look at Concurrency Programming and Multi-threading, a critical programming concept for serious programmers who want to make their code faster. I tried to make this programming concept as easy as possible so hopefully beginners can understand! This article will assume basic knowledge of Java.
There are a few key concepts we will be going through in this article:
We’ve got lots to cover so lets get right into it!
Before we dive deep into this article, lets…
In this article, I would be doing my best to go through the Decorator pattern, what it is, how it is used and why it is good! Again, shout out to one of the best books I’ve read — Head First Design Patterns — for easy explanation of the topics.
Lets look at the definition of Decorator Pattern is:
Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to extending functionality.
Just like we did for the Strategy pattern, lets try and understand what the Decorator Pattern is using an example.
Lets take a look at a…
My Portfolio: Click Here.
Source Code for Portfolio: Click Here
This article is not really technical, there isnt much code involved.
There were a few reasons why I wanted to change and redesign my personal portfolio website:
Software Developer | Incoming Analyst at Goldman Sachs | Writer