My blog - Code Disciples

Code Disciples is a blog for all things code. The internet is vast and is full of great content and mostly awesome folks who are always willing to help. However, sometimes, we run into a real head-scratcher that requires rummaging through heaps of documentation or tutorials and abusing Q&A sites until we hit that "eureka!" moment. Most blogs on Code Disciples stem from such painful moments of frustration. The site provides a means for me to document topics or scenarios that I struggled with when I first encountered them or subjects that I simply felt would be fun to blog about. I hope you find at least some of them to be useful.

The site is developed with Pelican and deployed using Netlify.

  • Running PostgreSQL in a Docker Container

    Containers have revolutionized the way we code, build and ship software. They also provide a means wherein we no longer need to mandatorily install software but run the software in a container instead. In this post, we will run PostgreSQL (postgres) and pgAdmin 4 in seprate Docker Containers on a Windows machine using Docker Toolbox. We will then connect to the postgres database from pgAdmin.

    Full article.

  • Bind Mounting with Docker Toolbox on Windows

    If you have racked your brains trying to get Docker bind mounting to work on Windows, you certainly are not alone. Documentation for Docker on Windows is not exactly verbose, especially if you are using the Docker Toolbox. In this post, we will look at binding a local Windows folder to a directory in a Docker Container using Docker Toolbox.

    Full article.

  • Namedtuples

    In this post, we will take a look at the namedtuple container type in Python. Firstly, namedtuples are immutable containers just like regular tuples. However, unlike regular tuples, which can be accessed only through indices, namedtuples can be accessed via identifiers or keys as well as index values.

    Full article.

  • Advanced Git Commands

    In this post, we will take a look at some useful advanced git commands. These commands essentially supplement the usual git workflow and help in fixing mistakes or undoing changes.

    Full article.