David Mbochi
About David Mbochi Njonge
David is a back end developer with a major in computer science. He loves to solve problems using technology, learning new things, and making new friends. David is currently a technical writer who enjoys making hard concepts easier for other developers to understand and his work has been published on multiple sites.
howto · 2025-03-14
How to Import CSV File Data Into a Table in PostgreSQL
This tutorial shows how to import data from a CSV file into a PostgreSQL database table. Learn efficient methods like the COPY command, \COPY command, and pgAdmin interface to streamline your data import process. Master these techniques to enhance your database management skills and ensure accurate data population.
howto · 2025-03-13
The Difference Between Docker Container and Docker Image
This article explains in detail the difference between a Docker container and a Docker image. Discover how these two core components of containerization work together, their unique characteristics, and how to manage them effectively. Whether you're a beginner or an experienced developer, this comprehensive guide will enhance your understanding of Docker and its applications.
howto · 2024-02-16
PostgreSQL Is Not a NoSQL Database
This article will teach the reader the different types of databases such as NoSQL and which type of database PostgreSQL belongs to.
howto · 2024-02-15
Difference Between CoroutineScope and coroutineScope in Kotlin
This tutorial teaches the reader how CoroutineScope and coroutineScope work in Kotlin and what differentiates the two coroutine creators.
howto · 2024-02-02
How to Format Java Message
This tutorial covers the different ways we can format a message with the focus being on messages that have special characters such a single quote.
howto · 2024-02-02
How to List Tables in PostgreSQL
This article shows the altenative ways or commands that can be used to return a collection of tables in a database using PostgreSQL.
howto · 2024-02-02
How to Insert Into Select in PostgreSQL
This article covers how we can insert data from an entity in a remote database to an entity in a local database using an SQL select statement in PostgreSQL.
howto · 2024-02-02
How to Drop All Tables in PostgreSQL
This article shows how multiple tables in a database can be deleted without removing the database conatining the tables in PostgreSQL.
howto · 2024-02-02
How to Use Multiple WITH Statements in One PostgreSQL Query
In this tutorial, we will learn how to use multiple WITH statements to execute a query using two temporary tables in PostgreSQL.
howto · 2024-02-02
How to Use pg_dump to Create a Backup File of the Database in PostgreSQL
This article shows how to backup a PostgreSQL database and provide the different ways we can retrieve the file containing the backup.
howto · 2024-02-02
How to Locate Configuration Files in PostgreSQL on Ubuntu
This article shows how to locate the configuration files for PostgreSQL database on Ubuntu.
howto · 2024-02-02
How to Declare a Variable in a PostgreSQL Query
This article teaches the reader how to create variables in PostgreSQL and use them to query the database.
howto · 2024-02-02
How to Cast String to Date DD/MM/YYYY in PostgreSQL
This article shows how we can retrieve dates using a desired format in PostgreSQL.
howto · 2024-02-02
How to Login and Authenticate to PostgreSQL
This article will teach the reader how to login and be authenticated to access a particular PostgreSQL database.
howto · 2024-02-02
How to Install the Client Tools for PostgreSQL on Windows
This article will teach the reader how to install the client tools for PostgreSQL database to access any remote database.
howto · 2024-02-02
How to Extend an Interface With Nested Properties in TypeScript
This tutorial will teach you the different methods you can leverage to add properties to your base structure without modifying it.
howto · 2024-02-02
How to Initialize a Map Containing Arrays in TypeScript
This tutorial shows how to create a Map that contains arrays in TypeScript.
howto · 2024-02-02
How to Create Custom Valueof Similar to Keyof to Return Union of Property Value Types in TypeScript
This tutorial will show the reader how to create a custom valueof that returns the union of all possible value types and how to restrict key-values using generics and indexed access types.
howto · 2024-02-02
How to Import Type Feature of TypeScript
This tutorial teach the reader when to use the import type and the import feature of TypeScript.
howto · 2024-02-02
How to Use setOnClickListener in Kotlin
This tutorial shows the reader how to use the setOnClickListener method to invoke an event in a Kotlin application.
howto · 2024-02-02
How to Differentiate the Extension Functions in Kotlin
This tutorial explains the extension functions in Kotlin in detail, gives an example for each function, and explains how they vary.
howto · 2024-02-02
How to Create an Empty Mutable List in Kotlin
This tutorial teaches the reader the different ways that they can use to create an empty mutable list in Kotlin.
howto · 2024-02-02
How to Create and Execute Coroutines in Kotlin
This tutorial introduces the reader to coroutines and shows how they can be executed sequentially or concurrently using async- await() in Kotlin.
howto · 2024-02-02
How to Parse JSON String to Object in Kotlin
This tutorial teaches the reader the different ways they can use to parse a JSON object to an object in Kotlin.
howto · 2024-02-02
How to Get the Instance of an Object in Kotlin
This tutorial teaches the reader how to get the instance of an object at runtime using Kotlin.
howto · 2024-02-02
How to Create Constants in Kotlin
This tutorial teaches the reader how to create constants, the naming convention used in constants, and how to include them in the application.
howto · 2024-02-02
How to Use the reified Keyword in Kotlin
This tutorial teaches the reader how to use the reified keyword in Kotlin to access type information.
howto · 2024-02-02
How to Get a Random Number in Kotlin
This tutorial teaches the reader the different ways they can use to generate a random number in Kotlin.
howto · 2024-02-02
How to Convert List to Map in Kotlin
This tutorial teaches the reader the different ways that they can use to convert a List to a Map data structure in Kotlin.
howto · 2024-02-02
How to Implicitly Infer the Type of Fail Method in JUnit 5
This tutorial teaches the reader how they can implicitly infer the type of the fail method in JUnit 5.
howto · 2024-02-02
How to Create an HTTP Request in Kotlin
This tutorial teaches the reader the different ways they can use to create an HTTP request in Kotlin.
howto · 2024-02-02
How to Create a Singleton in Kotlin
This tutorial teaches the reader the different ways they can use to create a singleton in Kotlin.
howto · 2024-02-02
How to Use the with Keyword in Kotlin
This tutorial teaches the reader how to use the with keyword in Kotlin.
howto · 2024-02-02
How to Sort a Collection Using Multiple Fields in Kotlin
This tutorial teaches the reader the different approaches they can use to sort a collection using multiple fields in Kotlin.
howto · 2024-02-02
How to Clone Object in Kotlin
This tutorial teaches the reader the different ways they can use to clone an object in Kotlin.
howto · 2024-02-02
How to Use synchronized() and withLock() to Lock Shared Resources in Kotlin
This tutorial teaches the reader how to control access to shared resources by using the synchronized() and withLock() functions.
howto · 2024-02-02
How to Split a String Into an Array in Kotlin
This tutorial teaches the reader the different ways that they can use to split a string into an array in Kotlin.
howto · 2024-02-02
How to Implement the Floor Modulo Function in Kotlin
This tutorial teaches the reader how to implement the floor modulo function for all numeric types in Kotlin.
howto · 2024-02-02
How to Import Modules in TypeScript
This tutorial teaches the reader the different ways they can leverage to import modules into their applications.
howto · 2024-02-02
How to Convert String to Boolean in TypeScript
This tutorial teaches the reader the different ways they can leverage to convert a string data type to a Boolean data type.
howto · 2024-02-02
How to Define an Array in TypeScript Interface
This tutorial teaches the reader how to define an array in a TypeScript interface and add elements to the array from a JSON source.
howto · 2024-02-02
How to Create an Empty Array in TypeScript
This tutorial teaches the reader the different ways they can leverage to create an empty array in TypeScript.
howto · 2024-02-02
How to Use Useref to Call Child Component From Parent Component in React With TypeScript
This tutorial teaches the reader how to call a child component from a parent component in a React application with TypeScript.
howto · 2024-02-02
How to Differentiate Between Numeric and Decimal Data Types in PostgreSQL
This tutorial guides the reader on the difference between numeric and decimal data types in the PostgreSQL database.
howto · 2024-02-02
How to Search Data Saved in Uppercase in PostgreSQL
This tutorial demonstrates how to use a keyword written in lowercase to search for data saved in an uppercase form in PostgreSQL.
howto · 2024-02-02
How to Copy a Directory From the Host to a Docker Image
This article teaches the reader how to copy a directory from the host machine to a docker image.
howto · 2024-02-02
How to Expose Multiple Ports in a Docker Container
This article teaches the reader how to expose multiple ports in a Docker container.
howto · 2024-02-02
How to Add Users to a Docker Container
This article teaches the reader how to add users to a Docker container by leveraging a node image.
howto · 2024-02-02
How to Set Environment Variables in Docker
This article teaches the reader how to set environment variables and how to access the variables from a running container where necessary.
howto · 2024-02-02
How to Rebuild a Container in a Docker-Compose File
This article teaches the reader how to rebuild a single docker container from multiple containers defined in a docker-compose file.
howto · 2024-02-02
How to Get IP Address of Docker Host From Inside a Docker Container
This article teaches the reader how to get the IP address of the Docker host from inside a Docker container.
howto · 2024-02-02
How to Use the Docker Network Host Command
This article teaches the reader how to use the docker network host command.
howto · 2024-02-02
How to Enter a Running Docker Container With a New Pseudo TTY
This article teaches the different approaches we can leverage to enter a running docker container with a new pseudo TTY.
howto · 2024-02-02
How to Clear Docker Container Logs
This article teaches the different approaches we can use to clear logs in a docker container.
howto · 2024-02-02
How to Recreate Containers From New Images Using Docker-Compose
This article teaches the reader how to recreate containers from new images using docker-compose.
howto · 2024-02-02
How to List Only the Stopped Containers in Docker
This article teaches the reader how to list only the stopped containers in Docker.
howto · 2024-02-02
How to Restart a Docker Container
This article teaches the reader how to restart a running or stopped container in docker.
howto · 2024-02-02
How to Create an Environment Variable File in Docker
This article teaches the reader the different ways that they can use to create an environment variable file in Docker.
howto · 2024-02-02
How to Create a Database User Using Docker Postgres
This article illustrates the different approaches that can be used to create a database user with Docker Postgres.
howto · 2022-11-21
The --rm Flag in Docker
This article shows how to use the --rm command in docker. In addition, it provides the advantages of using the command.
howto · 2022-09-11
Global Variable in TypeScript
This tutorial teaches the reader how to create global variables in TypeScript.
howto · 2022-08-19
Kotlin Spread Operator
This tutorial teaches the reader how the spread operator works and where it is used in Kotlin.
howto · 2022-07-27
Object vs Class in Kotlin
This tutorial teaches the reader the concepts behind classes and objects and how to use them in our applications.
howto · 2022-07-27
Kotlin flatMap() Function
This tutorial teaches the reader how the flatMap function works, the difference between flatMap and Map functions in Kotlin.
howto · 2022-06-30
Difference Between fold() and reduce() in Kotlin
This tutorial teaches the reader how to differentiate between the fold() and reduce() methods in Kotlin.
howto · 2022-05-21
PostgreSQL Naming Conventions
This article teaches the reader how to name different components in a database such as the tables, sequences, primary keys, constraints, and indexes.
howto · 2022-03-20
The if Statement in PostgreSQL
This tutorial shows the reader how to write queries that contain if statements to execute different operations.