Skip to main content

Posts

Linux Check Disk Space Command To View System Disk Usage

Linux command to check disk space using: df command  – Shows the amount of disk space used and available on Linux file systems. du command  – Display the amount of disk space used by the specified files and for each subdirectory. btrfs fi df /device/  – Show disk space usage information for a btrfs based mount point/file system. Linux check disk space with df command Open the terminal and type the following command to check disk space. The basic syntax for df is: df [options] [devices] Type: df df -H Sample outputs: Fig.01: df command in action The items in square brackets are optional. You can simply type the df command (i.e. no arguments), to see a table that lists for each device name on the system. See information about specific filesystem You can give a device or mount point as an argument, and df report data only for the filesystem physically residing on that device. For example, the following command provides information only for the partition /dev/sda: $

How to generate class diagrams pictures in a Django/Open-edX project from console

A class diagram in the Unified Modeling Language ( UML ) is a type of static structure diagram that describes the structure of a system by showing the system’s classes, their attributes, operations (or methods), and the relationships among objects. https://github.com/django-extensions/django-extensions Step 1:   Install django extensions Command:  pip install django-extensions Step 2:  Add to installed apps INSTALLED_APPS = ( ... 'django_extensions' , ... ) Step 3:  Install diagrams generators You have to choose between two diagram generators: Graphviz or Dotplus before using the command or you will get: python manage.py graph_models -a -o myapp_models.png Note:  I prefer to use   pydotplus   as it easier to install than Graphviz and its dependencies so we use   pip install pydotplus . Command:  pip install pydotplus Step 4:  Generate diagrams Now we have everything installed and ready to generate diagrams using the comm

Cheat Sheet To Start Coding In Blockchain: Rule it with Python

In this blog, we will look at the python resources to start coding in blockchain. Why Python for Blockchain? Sometimes regarded as a host language due to its nature of work. The full-fledged language is robust enough to meet all the requirements of a Blockchain application. The programming language is also well known for its shorthand notations, simplified structuring, and one of the easiest programming languages one can learn. Hence this might prove to be a boon for the newcomers in the blockchain industry. Languages like  C++  can’t provide an effective interface and would require  JavaScript  along with it, but with Python, everything can be done using one programming language itself. How to Start Coding in Blockchain? There are several resources you can refer to for learning python. I personally started with some books like “learn Python the hard way”. There are many online resources that can be referred to learn Python. Quite a famous video and tops the google se

Object Detection with 10 lines of code in Python

Object Detection with 10 lines of code One of the important fields of Artificial Intelligence   is Computer Vision. Computer Vision is the science of computers and software systems that can recognize and understand images and scenes. Computer Vision is also composed of various aspects such as image recognition, object detection, image generation, image super-resolution and more. Object detection is probably the most profound aspect of computer vision due the number practical use cases. In this tutorial, I will briefly introduce the concept of modern object detection, challenges faced by software developers, the solution my team has provided as well as code tutorials to perform high performance object detection. Object detection refers to the capability of computer and software systems to locate objects in an image/scene and identify each object. Object detection has been widely used for face detection, vehicle detection, pedestrian counting, web images, security systems and