Organising tasks in roles using Ansible

NOTE: The ansible playbook written here can be found at tasdikrahman/ansible-playbook Roles are nothing but a further abstraction of making your playbook more modular. If you have played around with the ansible-playbook command. You might have noticed the common pattern of repeating tasks which you did some or the other time back. Ansible roles provide you a way to reuse tasks(or roles for that matter). Imagine this to be a very similar concept writing Object oriented code. ...

March 19, 2017 · 4 min · Tasdik Rahman

Introduction to Configuration Management using Ansible

Need for Configuration management There are many devs/sysadmins out there who manage their servers by logging in through ssh. Making the changes and then logging out again. Sounds like you? Well hey, you are not alone! But do you feel that this can create snowflake servers? Servers which are impossible to recreate because we missed out on some minute detail which the other dev had known. But Tasdik. This wouldn’t happen if we have a very good documentation process giving a step by step guide on how to do so! ...

February 28, 2017 · 4 min · Tasdik Rahman

Demystifying how imports work in python, ChennaiPy

22nd October, 2016 Clock goes overboard and tries waking me up. Which it has been unsuccessfully trying to do for the last two months. Thanks ma, for the lovely gift. But I woke up to the sweet melody of my roomate’s snoring. Anyway, I was still intoxicated by last nights coffee. Remembered I still had to finish the slides of the talk that I had to give over @ ChennaiPy, October Meetup'16. ...

October 24, 2016 · 2 min · Tasdik Rahman

Pycon India 2016, New Delhi

This year being no different, I attended PyCon India (yet again, this being my 3rd one). The only difference being that this time it was being held at New Delhi instead of Bangalore. Met many of my old friends, made some new ones, interacted with some really interesting people and should I say met some legendary guys/gals too. All in all it was just like the previous year. Felt just like home! ...

October 19, 2016 · 2 min · Tasdik Rahman

Decorators 101 - A gentle introduction

Decorators you say If you are familiar with python, chances are that you might have already seen the decorator syntax. It comes off as a simle concept when being used, but when you try to get your head around the underlying details, you find yourself in a hot fix. And are probably asking yourself How the heck does it work? Python does a very good job in abstracting about the intricacies, so much so that we take it almost for granted. Remember the routes in flask? ...

July 21, 2016 · 5 min · Tasdik Rahman

Margo: An opiniated Slack Bot for SRMSE's Slack channel

Bots: Before and Now When was the last time you were having a conversation with a computer before? Most of us will come into the category where we haven’t done so or maybe you did but you didn’t like the experience! The days aren’t far when customer support will be provided by dedicated bots built using cutting edge ML techniques and backed by state of the art NLP research. If you have been following the latest trends in software industry. Bots and VR are the thing as echoed by a lot of big shot companies and tech evangelists. I mean just look at these crazy articles on techcrunch. Bots have been the talk of the town since some time now and developers are taking a fair advantage of this rise in attention for promoting their own bots in the market. ...

June 25, 2016 · 4 min · Tasdik Rahman

Making of space Shooter using pygame

I procrastinated enough in writing this post so here it goes. Pygame treated me good. So good that I was able to create a decent enough 2-D game in a day! So here is my breakdown of it. Creating the basic rectangles I used the pygame-boilerplate which I made in the process of making this game. It’s nothing groundbreaking. Provides just a basic starting ground for you to base your pygame projects. Saves you some gruntwork. ...

February 2, 2016 · 2 min · Tasdik Rahman

Say Hi to peewee

Once upon a time, when we had to interact with the databases. We had to write bare bones SQL(seequel if you may) or Structured Query language. A language which many common databases like SQLite MySQL MariaDB to name a few. SQL is amazing but for day to day tasks it is pretty daunting and could be one of the ways in which you can shoot yourself squarely in the foot. ...

January 29, 2016 · 4 min · Tasdik Rahman

Getting started with Pygame

Pygame intro As with every other kid out there, I spent long hours sitting in front of the computer playing Games like Super Mario, Dangerous Dave and the likes. So when I got to know about Pygame. I was really getting the itch on creating something in the lines of these games. Of cource, we have better game engines written in other languages like C++, but since I liked python. So I mean what the heck right? ...

January 17, 2016 · 2 min · Tasdik Rahman

Unicode strings in python, a gentle intro

Summary In this post I will try to explain how to handle them in python 2 and 3. I had long undermined the way I handled strings in my projects, but I could feel the gravity of handling strings properly when I was working on vocabulary, a side project of mine. There was this one feature in it where the module had to return the pronunciation for a given word. Well I wrote the logic to parse the content and all the stuff. I had it all figured out, but then I was facing this issue. ...

December 8, 2015 · 7 min · Tasdik Rahman