Emacs Configuration

Introduction This is my personal emacs configuration tree, continually used and tweaked since the last 365 days, and it may be a good starting point for other new emacs users. Configuration init.el (require 'package) ;; Define package repositories (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/")) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) ;; Load and activate emacs packages. Do this first so that the ;; packages are loaded before you start trying to modify them....

June 12, 2020 · 5 min · Sourav Badami

The requested address is not valid in its context

Introduction Facing this issue with Python2.7 and Ftplib ? I won’t waste your time talking shit! Let’s fix it. Create a new class inheriting Ftplib’s FTP_TLS class. import ftplib class FTP_TLS_UNROUTABLE_HOST(ftplib.FTP_TLS, object): def makepasv(self): _, port = super(FTP_TLS_UNROUTABLE_HOST, self).makepasv() return self.host, port Now, use this new class to create a new session. session = FTP_TLS_UNROUTABLE_HOST('host','username','password') Now ? Do whatever you want with your session :) It won’t cry for The requested address is not valid in its context....

November 15, 2017 · 1 min · Sourav Badami

Logstash -> Azure Event Hub | Log & Event Management Utility | NodeJS

Logstash is an open source data collection engine with real-time pipelining capabilities. Logstash can dynamically unify data from disparate sources and normalize the data into destinations of your choice. Cleanse and democratize all your data for diverse advanced downstream analytics and visualization use cases. (Source) Event Hubs is a highly scalable data streaming platform capable of ingesting millions of events per second. Data sent to an Event Hub can be transformed and stored using any real-time analytics provider or batching/storage adapters....

March 17, 2017 · 2 min · Sourav Badami

Passport Status Change Notifier

A simple script which notifies you whenever the current status of your Indian passport application changes. It keeps checking for the status change automatically every hour and if the change occurs, the user receives a desktop notification. Here’s the code.

October 16, 2016 · 1 min · Sourav Badami

Birthday Wishing Bot

A simple bot written using graph API which parses a list of birthdays and adds a birthday wish post on a facebook page. Find the code here.

August 23, 2016 · 1 min · Sourav Badami

Auto Hibernate

A python script which automatically detects when there’s no one nearby and sends the system to hibernation mode. It uses OpenCV API to detect motion using a camera and triggers a corresponding query to switch the system to hibernation mode. Get the code on GitHub.

August 14, 2016 · 1 min · Sourav Badami

Oppia Interactive Tutor

Oppia is an online learning tool that enables anyone to easily create and share interactive activities (called ‘explorations’). These activities simulate a one-on-one conversation with a tutor, making it possible for students to learn by doing and get feedback. Our mission is to bring engaging and educational lessons to the community as a means of an extra resource through lessons made by people just like you.

July 23, 2016 · 1 min · Sourav Badami