MongoDB | Getting Started

All commands mentioned need to be run on mongo shell 1) To see list of database show dbs It will show list of Databases along with the size. If a databse is empty, it won’t be shown by the command. 2) To use a database use databaseName It will switch to the databaseName databse (If database won’t exists, it will create one) 3) To see which database is in use db...

September 18, 2021 · Kunal Gautam

LoRa communication with Satellite on a Budget

Radio and Wireless communication has always amazed me since I was a kid. We can not imagine our life without relying on wireless communication in current date. Be it WiFi or Cellular connectivity, almost everything rely a lot on Wireless Communication. The Wireless Technology has developed a lot since its inception. One of the interesting technology is LoRa, which stands for Long Range. Although communication with satellite is nothing new. My friend Martin from U....

May 7, 2021 · Kunal Gautam

Disable WordPress Formatted Entities

Recently while I was working on my Linux blog, I noticed that WordPress started formatting “–” as “—”, which was quite frustrating as commands become useless without proper attributes/switches. The following is the table with list of text which Replaces common plain text characters with formatted entities. Information taken from wptexturize() source text transformed text symbol name “—” “—” em-dash " – " “—” em-dash “–” “–” en-dash " - " “–” en-dash “…” “…” ellipsis `` “ opening quote “hello “hello opening quote ‘hello ‘hello opening quote '’ ” closing quote world....

February 9, 2021 · Kunal Gautam

My life in Year 2020

The year 2020 might be a lot for many people. Here is my summary for the Year 2020. Nothing significant happened in the month of Jan and Feb. In March 2020, just two days before lock-down was imposed in Maharashtra, India, my main working machine, MacBook Air decided not to power itself on. It was very distressing situation for me, as at the time that was the only machine which I use exclusively for work related activity, be it development or resolving day to day client queries....

January 23, 2021 · Kunal Gautam

How to Get M5Stack Battery Status with UIFlow 1.3.2 MicroPython

Recently I’ve got my hands on the M5Stack Core device. This device, not only brought possibilities of awesome ideas, but also bring me close to the world of MicroPython. For those who are unaware, MicroPython is software implementation of Programming language largely compatible with Python 3. In short, MicroPython is Python Compiler which can run on Microcontroller. In this post, we will use MicroPython’s “machine” library for accessing i2c bus of the M5Stack Core....

September 19, 2019 · Kunal Gautam

Create a Database Connected WebApp (Part I)

In this post we will install MySQL connector for Python for getting started with Database connected Application on Django. On MAC OS X, following additional steps need to be done for installing the Database connector, others can skip directly to Installing MySQL connector for Python. First we need to install mysql-client on the system, so that the MySQL driver can be installed properly using pip. To do so, install homebrew if not installed....

July 15, 2019 · Kunal Gautam

Turn your First Project to Hello World!

As we seen in last post, the application shows default Django page and not the “Hello World!” string. Isn’t it sad? In this post we will see how to create a “Hello World!” page inside Django application. Step1: Create View Create a new file named views.py inside HelloWorld directory and use this code : Step2: Set the URL Pattern Open the urls.py file and use this code : Final Step: Run the server...

July 15, 2019 · Kunal Gautam

Understanding Directory Structure

HelloWorld/ This is our Django main project directory. It is just a container for our project hence we can rename this directory to anything. HelloWorld/manage.py manage.py is command line utility for interacting with your project. HelloWorld/HelloWorld/ This is our project directory. It is the actual Python package for your project. HelloWorld/HelloWorld/__init__.py An empty file, which guides Python to treat the directory as a Python module HelloWorld/HelloWorld/settings.py As the name suggests, this file contains configuration for the project....

July 15, 2019 · Kunal Gautam

Creating and Run your First Project

Create Hello World Project django-admin startproject HelloWorld Run Default Django Framework Page python manage.py runserver Ignore warning about unapplied migration(s). To terminate/stop the server, press CTRL+c key

July 15, 2019 · Kunal Gautam

Installing Django Framework

Make sure you have pip installed. Refer pip installation at https://pip.pypa.io/en/stable/installing/ Install django by passing following command pip install django

July 15, 2019 · Kunal Gautam