Hacks by Ruddra

Manjaro Tips and Tricks

Recently I tried out Manjaro operating system, and did some experiment with XFCE and KDE desktop environments. Here I am going to share some tips and tricks to setup Manjaro in you machine. This article is part of a series based on Manjaro. Tips shared here are applicable for all Manjaro desktop distributions.

Django Access URL Arguments Through Middleware

Lets say you have an API which is being used by many stores. Now for a specific store ABC, they want to have a different response format. So how would you make this implementation generic without making different views for store ABC? Simple, use middleware. How It Works First update the url like this:

Build and Configure Plugins Inside Solr Using Docker

Adding a plugin to Solr is relatively simple process. In this article, we are going to see how to add a plugin by creating a jar file using a docker container, then add that to a Solr which also runs inside docker container. Building the Plugin Workflow For Building the Plugin Steps for building a Solr plugin inside Solr docker file are like this:

Use VS Code Inside Docker Container for Development

VS Code is the popular IDE at the moment. You can use it for developing applications in almost any programming language. In addition to that, you can do remote development in Docker,VM etc. In this post, we are going to discuss about how to use Docker Environment in VS Code.

Django Serialize ForeignKeyField, ManyToManyField, Instance and Property Method

Django’s serialization framework provides a mechanism for “translating” Django models into other formats. Usually they are in json, yaml, XML, GeoJSON etc text based formats. Here, we are going to supercharge these serializers to do more things, even try to render properties and instance methods. This article will be useful to you if you are: