Getting started with data visualization in Angular

Image for post
Image for post
Photo by Adeolu Eletu on Unsplash

Data is the gold of the 21st century, but for data to be meaningful, it has to be well presented for the user to make sense of it. Graphs and charts are one the best ways of making data presentable.

In this guide, we will take a look at how to present your data to users using a pie chart in Angular. We will do so, with the help of the ng2charts library.

The ng2charts library is based on the famous visualization library: chart.js. However, unlike chart.js …


The most important commands for managing Linux processes

Image for post
Image for post
Photo by Surface on Unsplash

In Linux, an instance of a running program is referred to as a process. Each process on a Linux system is uniquely identified by a process ID (PID).

Linux provides us with several command-line tools for easily managing processes. This article covers tools such as top, ps, and kill.

Knowing how to manage processes is a critical part of system administration and or keeping your system in good shape.

Listing processes with ps

Apart from the process ID, each process also has other properties such as CPU utilization, memory usage, and time spent in the CPU, etc.

One of the ways you can display…


The 1 single command for changing user passwords in Linux

Image for post
Image for post
Photo by ThisIsEngineering from Pexels

The importance of passwords and the role it plays in our digital life cannot be emphasized enough. Passwords are probably our first line of defense when it comes to securing digital content.

Linux is by nature a multi-user operating system, meaning that you can share a Linux machine with other users. This is especially true for shared servers in the cloud. Without a solid password, unauthorized users may easily gain access to your content.

Fortunately, Linux is a robust and secure platform. And it offers a simple and intuitive way of managing user passwords from the command terminal.

A regular…


Choosing a Linux distro to use

Image for post
Image for post
Image by OpenClipart-Vectors from Pixabay

There are hundreds of Linux distros to choose from, so it is not strange that you may struggle to find the ideal flavor for your needs.

When it comes to choosing a Linux distro, we often start with the wrong question: What is the best Linux distro? Rather, we ought to ask: What is the best Linux distro for my needs or my project?

In this guide, I talk about some of the popular Linux distros that I have experimented with. …


Switch between several versions of Node.js on Linux

Coding desk setup
Coding desk setup
Photo by Caspar Camille Rubin on Unsplash.

If you’ve ever had trouble running a project because you do not have a compatible version of Node.js installed, then you are not alone. Luckily, there is an easy fix for this.

With Node Version Manager (NVM), you can install several versions of Node.js on your machine and choose which version to use depending on the project you want to run.

NVM is an open source project that aims to ease the management and installation of Node.js.

Installing NVM

Installing NVM in Linux is pretty straightforward. Open your command terminal and then run the following command:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

The…


The Single Responsibility Principle (SRP) with an example in Angular

Image for post
Image for post
Photo by Thomas Park on Unsplash

Have you ever come across a class or method with so much going on that your head starts to spin?

The Single Responsibility Principle (SRP) is a best practice methodology that states that a function, method, or class should have one main specific purpose.

Having classes or functions which have a lot of purposes makes your code hard to read, understand, difficult to trace bugs, and hard to maintain in the long run.

Creating smaller classes, functions, or modules that are geared for some specific purpose will lead to more robust, and maintainable code. …


and other Debian based Linux distros

Image for post
Image for post
Photo by Fotis Fotopoulos on Unsplash

The software you have on your PC tells a lot about what you work with or what you love to do. We use software for a wide range of purposes e.g., for education, productivity, or just mere entertainment.

Because software is so central to what we do, software management is one of the most common tasks you will do on your Linux machine or as a Linux admin.

In this guide, we will take a look at managing software packages from the command line using the Advanced Package Tool (APT) on Debian based Linux distros such as Ubuntu, Mint, and…


Linux user admin commands

Home office setup
Home office setup
Photo by Josh Sorenson from Pexels.

From the very beginning, the Linux operating system was designed to be a multi-user OS. As such, one of the most common administrative tasks performed on a Linux machine is managing user accounts. It’s a critical part of keeping a healthy and secure Linux machine.

You might think that it is overwhelming to manage users from the command line. On the contrary, it is not at all. There are only a few basic commands that you need to know, and I will cover them in this article.

Background

A user account in Linux is the primary way of gaining access to…


A software engineer’s reading list

Arm holding up books
Arm holding up books
Photo by Thought Catalog on Unsplash.

As 2020 draws to a close, I am thrilled to share with you a selection of the best software engineering books that I have read during the past 12 months.

If you are a software engineer, data scientist, or one of those people who work in the tech or software industry, you will agree with me that you have to constantly keep learning if you are to remain relevant in the game.

When you decide to become a software engineer, you essentially sign up for a journey of lifelong learning.

There are many ways of learning or acquiring knowledge, but…


Creating a simple custom pipe in Angular

Image for post
Image for post
Photo by Markus Spiske on Unsplash

In Angular, pipes are used to transform or format data in a template without writing any boilerplate code in the component. Pipes are extremely handy because you only declare a pipe once and can use it throughout the entire applications’ templates.

In this guide, I will show you the power of Angular pipes by implementing a simple custom unit conversion pipe. Here are some of the advantages of pipes in Angular.

  • the user gets instant feedback as values are formatted or transformed as you type or in reaction to other changes.
  • pipes are very lightweight
  • simple syntax, to call a…

Mwiza Kumwenda

I develop software by profession. My interests include: history, economics, politics & enterprise-architecture. I am a child of God.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store