Prahlad Yeri

Freelance Programmer and Writer



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

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

Migrating Disqus comments into Wordpress

Further to my earlier blog post about How to Import Disqus comments into Wordpress, I've found that script solution to be a bit trickier for first time users who want to migrate disqus comments from their earlier blog to the new wordpress blog. The disqus_parse.php is exactly the same … Read More

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

There is an increasing trend towards using the dict.get() method in Python, its very widely used in many tutorials and examples too. Condsider 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


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

How to implement URL Routing in Vanilla JavaScript

In this post, I'll show you how to implement dynamic URL routing in vanilla JavaScript without using any heavy frameworks like angular, vue, react, ember, etc. in less than 30 lines of code! The important attributes you need to know are window.location and more specifically to our purpose, window … Read More

« Page 2 / 11 »