Own building Python API framework

Learning Objectives By the end of this tutorial, you will be able to: Develop a RESTful API Framework with Python Practice Test-Driven Development Test an Our new Python own framework app with pytest Containerize Python own framework and Postgres inside a Docker container Run unit and integration tests with code coverage inside a Docker container

Hello world run in Golang

Our first golang program will be “hello world”

To run the golang program save this code in hello-world.go file and in terminal follow the below code snippet

Now easily we learn how to run a golang code and execute Next Example :

Process kill (PID) on specific port

For an example if I need to kill the 8080 port I have to run this command

I Want to know specific port PID then run

If the PID is 529 and we want to kill this


Solve ‘bits/stdc++.h’ file not found in macOs

Some times we run the c++ code in vscode (visual studio code) in macOS or windos but show the message ‘bits/stdc++.h’ file not found error or fatal error: ‘bits/stdc++.h’ file not found or sometimes #include bits/stdc++.h error. if follow the steps correctly hope so ‘bits/stdc++.h’ file not found error solve.

How to deploy react app in lightsail (VPS) with nginx

Deploy our react app in a vps like digitalocean, aws lightsail or any other with nginx production. follow the steps to easily deploy react app with nginx

Golang interview questions – Part 1

Go is a statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. Go is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style concurrency. Wikipedia

How to install protobuf in mac

For the gRpc protobuf is a very good things

Docker cheat sheet – Remove Docker Images, Containers, Volumes and all

Docker makes it easy to wrap our application and services that we can run it anywhere to do some easy steps. When we work with docker we do some test work and sometimes create lots of images, containers, network and volumes that we not need. If we are not aware it will use our host machine resources like ram, processor, spaces.

Docker has a strong command-line tool to remove all unused thins very easily. This cheat sheet leads you to easily manage those things

Docker Install Ubuntu

Easily Install docker and docker-compose on an amazon-aws container. Ubuntu version is 18.4

How to install python3.7.2 in Ubuntu 18.4

We need a different version of python. If we need python3.7.2 in our Ubuntu machine we can follow the steps to successfully install python3.7.2 in our ubuntu 18.4

How to setup Django debug toolbar

Django Debug toolbar is very helpful for a developer. It helps to see the SQL query, query times and many more. at a glance easily can debug Django project. Steps of setup: Install debug python package Debug must be true Internal IP must be mentions Configure in settings.py file urls.py configure configure static file of debug

Facebook Data Deletion Request Callback with Django

Facebook provide a way to delete a user details from our apps and systems. Some time we use facebook login app for django authentication and its work perfect. But if the user want to delete his facebook book permission from his/her account we should provide a deletion request callback otherwise facebook may deactivate our facebook

Convert string to datetime and datetime humanize

From string to convert date time in python


Now if you want to represent your desire date like Sun May 20 10:10:55 2018

How to RabbitMQ install on Mac

If you need Asynchronous Messaging system in your project then RabbitMQ is a good solution for you. Sometimes we need to run on mac. Follow some steps to install RabbitMQ on mac:
Table of contents Overview | Dependencies | Install server | Update bash profile | Run server

Cheat Sheet

Some cheet codes that speed up out work and quick turn into production. Let us try this Specific python version install virtualenv -p python3 new_p3_env Install RabbitMQ brew install rabbitmq RabbitMQ start but not like as a service /usr/local/sbin/rabbitmq-server RabbitMQ start brew services start rabbitmq

How to install Pip on Ubuntu

Pip is a package management system. Through pip we can get python package from PyPI . There are some ways to install pip in Ubuntu. In below steps of pip install will be described. Overview | pip install | pip install with curl | Basic commands of pip | Search pip packages | install python packages with pip | uninstall python package with pip

How to install specific python version on virtualenv

Some times we need specific python version for specific project.There are some easy way to install specific python version through virtualenv. In below I try to give two example to install python2.7 and python3.5 Example one: If you are already install virtualenv then write the code for make a virtualenv that will have python version

How to remove Odoo from Ubuntu

Sometimes we need to remove all settings and files from our Linux system. There are some easy steps to do that and Odoo remove from ubuntu.Table of ContentOverview | Steps of work | Stop Odoo server | Delete User | Remove Database

How to Install virtualenv in ubuntu

Virtualenv is really a nice thing if you want to work with different python version.suppose you have a project that need python 2.7 and in the mean time you also want to work on another project that need python 3.5. What can you do then? What is the solution for you? Install virtualenv sudo pip

Install virtualenv and virtualenvwrapper on Ubuntu

Virtualenv store a private copy of python, PHP and packages of Python. There are some simple steps to install it on Ubuntu. Install pip: sudo apt-get install python-pip Install virtualenv sudo pip install virtualenv Now create a dir where all your virtualenvs file will be stores mkdir ~/.virtualenvs At this stage we can successfully use