...
16 Aug 2020

SEO vs Content: What really drives traffic to your blog?

The Content vs. SEO Debate In the content publishing world, there has been a constant battle between the “Content is King” camp and the “SEO” camp! The first camp insists that it’s good content that essentially drives traffic to your blog or website. The second camp insists that it’s good...

Read more →
...
06 Aug 2020

How to use window.hashchange event to implement routing in vanilla javascript

The popular wisdom when it comes to implement routing in your client side apps or single page apps (SPA) as they are called these days, is to just grab an “off-the-shelf” framework like angular or vue and start using it. Well, that’s the easy way out but you will never...

Read more →
...
28 Jul 2020

Two years later, the reasons for Microsoft's Github acquisition still remain a mystery

More than two years have passed since I shared my perspective on Microsoft’s Github acquisition in this blog post earlier, and the point still stands today. Why did Microsoft decide to acquire a startup company much smaller in size which had no viable and long term revenue/profit generation model? If...

Read more →
...
08 Jul 2020

Intro to message flashing: A handy way to send messages across page requests in Flask

Message flashing is a very handy technique you must be aware of if you are a Flask developer. A common recurring pattern in web development is to send messages across web requests, especially in case of redirects when the route or controller that redirected wants to display some basic text...

Read more →
...
08 Jul 2020

How to use robocopy for taking regular backups on windows

Having switched from linux to windows recently, I was looking for an rsync alternative. rsync is a popular tool in the linux world used for taking routine backups and also general file transfer. But since I use it mostly for backups and I’m mostly a command line dude, I was...

Read more →
...
02 Jul 2020

A crash course in python packaging

This guide isn’t for the newbie who is just learning python programming (they are better off doing a “proper” reading of the official docs instead). This is for the seasoned coder who dabbles in multiple technologies and needs a quick refresher on how to go about building a neat zip...

Read more →
...
11 Mar 2020

Seamlessly migrate disqus comments to WordPress: a step-by-step guide

If you’re switching from a platform using Disqus to WordPress, migrating your comments can seem daunting. Disqus was once a popular choice for blog comments, but with WordPress’s built-in commenting system and more robust plugins, many are making the switch. In this guide, I’ll walk you through how to easily...

Read more →
...
28 Nov 2019

Why you should never use the dict.get() method in python

There is an increasing trend towards using the dict.get() method in Python, it’s very widely used in many tutorials and examples too. Consider the below example for instance: >>> dd = {'a': 1} >>> dd.get('a') 1 This simple dictionary dd has only one key (‘a’) and its corresponding value is...

Read more →
...
27 Oct 2019

A complete guide to identifying your MTP device on Linux using bash

In the good old days, USB file-transfer between your laptop and smart-phone used to happen through the much easier “mass storage” mode which works just as if you had inserted an external pen-drive. But these days, most smart-phones and tablets have shifted to the MTP (Media Transfer Protocol). Unlike a...

Read more →
...
24 Oct 2019

Python recipe: Combine multiple images into one PDF

Many a times, you come across the need to combine multiple image files (.jpg, .png, etc.) into one single portable document format (.pdf). Maybe, you have a bunch of handwritten notes which you want to organize into one file. Doing that is very trivial if you know python. To being...

Read more →