Skip to content

Perpetual Enigma

Notes from the Frontiers of Mathematics

  • Home
  • Archives
  • About

Category: Web

How To Create A Web Server In Python Using Flask

March 8, 2016April 7, 2016 ~ Prateek Joshi ~ 10 Comments

Let's say you've built an interesting Python application that runs locally on your machine. Great! Now how can you make that application usable as a service or an API? A lot of times, people build many services that need to play well together to build a final application. An obvious solution to this is to … Continue reading How To Create A Web Server In Python Using Flask

Launching A Spark Standalone Cluster

December 1, 2015November 10, 2015 ~ Prateek Joshi ~ Leave a comment

In the previous blog post, we saw how to start a Spark cluster on EC2 using the inbuilt launch scripts. This is good if you want get something up and running quickly, but it won't allow fine-grained control over our cluster. A lot of times, we would want to customize the machines that we spin up. Let's say … Continue reading Launching A Spark Standalone Cluster

How To Launch A Spark Cluster On Amazon EC2

November 24, 2015November 10, 2015 ~ Prateek Joshi ~ 1 Comment

Apache Spark is marketed as "lightning fast cluster computing" and it stands true to its word! It can do amazing things really quickly using a cluster of machines. So how do we assemble that cluster? Let's say you are using a cloud service provider like Amazon Web Services. Do we need to spin up a … Continue reading How To Launch A Spark Cluster On Amazon EC2

How To Add Swap Space On Ubuntu

March 21, 2015 ~ Prateek Joshi ~ Leave a comment

Whenever you are building an application that's memory intensive, you are bound to run into memory issues. Those out of memory errors are painful to deal with, especially when they happen during production. Before putting your code on your server, you need to make sure that it can handle the application's memory requirements. But even … Continue reading How To Add Swap Space On Ubuntu

How To Setup Nginx For Load Balancing?

December 20, 2014 ~ Prateek Joshi ~ Leave a comment

Let's say that you have a nice idea for a website and you want to host it somewhere to make it available to the users. To do this, you put your website on a server somewhere on the cloud. Then, you purchase a domain name and you redirect all the requests to this server. But … Continue reading How To Setup Nginx For Load Balancing?

HTTP vs HTTPS: Latency Comparison

November 30, 2014February 2, 2015 ~ Prateek Joshi ~ 1 Comment

I recently came across the issue of latency differences between HTTP and HTTPS. It got me curious and I started looking into it. To give a quick introduction to those who are new to this, HTTP stands for Hypertext Transfer Protocol and it's a protocol for communication over the internet. Whenever somebody types something into … Continue reading HTTP vs HTTPS: Latency Comparison

Why Do We Need Two-Factor Authentication?

October 12, 2014 ~ Prateek Joshi ~ Leave a comment

In the last couple of years, we have encountered quite a few security breaches. A lot of internet companies are being targeted with these kinds of attacks. One of the most common forms of online transactions is that you have an account that’s protected with a password. So whenever you want to access your account, … Continue reading Why Do We Need Two-Factor Authentication?

Forward Proxy vs Reverse Proxy

March 29, 2014 ~ Prateek Joshi ~ 2 Comments

In the previous two blog posts, we discussed about forward and reverse proxies. In this post, we will look at a real example and see how we differentiate between the two. The word proxy describes someone acting on behalf of anyone else. In the world of computers, we are talking about one machine acting on … Continue reading Forward Proxy vs Reverse Proxy

What Is A Reverse Proxy?

March 21, 2014 ~ Prateek Joshi ~ 2 Comments

In the previous blog post, we discussed about proxy servers. Proxy servers basically act like buffers that monitor everything that comes into the user's machine. We talked about why we need them and how they are used in real life scenarios. We used the analogy of what a person aims to achieve when he proxies … Continue reading What Is A Reverse Proxy?

What Is A Proxy Server?

March 14, 2014March 19, 2014 ~ Prateek Joshi ~ 7 Comments

If you are a techie, regardless of the field you are in, you must have heard the term "proxy server". If you are a web developer, you would hear that term a lot! Off the top of your head, what do you think a proxy server is? It's basically very similar to what a person … Continue reading What Is A Proxy Server?

Posts navigation

Older posts

Number of views

  • 2,720,259 views

Number of countries

210 countries

Enter your email address to follow this blog and receive notifications of new posts by email.

Blog at WordPress.com.
Perpetual Enigma
Blog at WordPress.com.
  • Subscribe Subscribed
    • Perpetual Enigma
    • Join 601 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Perpetual Enigma
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Loading Comments...