Recent Posts

Retrying in Python

less than 1 minute read

Recently, I was writing some Python code to send emails and the connection to the SMTP server was randomly failing. Luckily I found tenacity and I fixed this...

Setting up Python on Windows 7

less than 1 minute read

Install Git Bash Install Anaconda - Python3 should be picked unless there’s a good reason to pick Python2. I have tried installing Python for Windows be...

Enabling CORS in ASP.NET Web API

less than 1 minute read

The simplest way I’ve solved this is by adding below headers to all responses by adding them to Web.Config.

Adding headers to http requests in Angular2

1 minute read

One of the common scenarios where the ability to add headers to angular http requests comes in handy is authentication API calls using tokens. It is very eas...

Different config files in C# project

less than 1 minute read

It is almost certain that you would need different configuration for different environments. Here’s one way to maintain separate config files.

FTP using list of commands in a text file

less than 1 minute read

Typing out ftp commands each time is error prone and no fun. Here’s an easy way to list all the commands in a text file and supply them sequentially to the f...

Web Scraping using Python

1 minute read

Venturing into Machine Learning, I quickly realized the need for good datasets. Web Scraping can come in very handy when datasets aren’t easily available.