David Mbochi Njonge avatar David Mbochi Njonge avatar

About David Mbochi Njonge

LinkedIn GitHub

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.

Articles by David Mbochi

Docker Howto's

  1. How to Create a Database User Using Docker Postgres
  2. How to Create an Environment Variable File in Docker
  3. How to Restart a Docker Container
  4. The --rm Flag in Docker
  5. The Difference Between Docker Container and Docker Image
  6. How to List Only the Stopped Containers in Docker
  7. How to Recreate Containers From New Images Using Docker-Compose
  8. How to Clear Docker Container Logs
  9. How to Enter a Running Docker Container With a New Pseudo TTY
  10. How to Use the Docker Network Host Command
  11. How to Get IP Address of Docker Host From Inside a Docker Container
  12. How to Rebuild a Container in a Docker-Compose File
  13. How to Set Environment Variables in Docker
  14. How to Add Users to a Docker Container
  15. How to Expose Multiple Ports in a Docker Container
  16. How to Copy a Directory From the Host to a Docker Image

PostgreSQL Howtos

  1. How to Search Data Saved in Uppercase in PostgreSQL
  2. How to Differentiate Between Numeric and Decimal Data Types in PostgreSQL
  3. How to Install the Client Tools for PostgreSQL on Windows
  4. PostgreSQL Is Not a NoSQL Database
  5. How to Login and Authenticate to PostgreSQL
  6. PostgreSQL Naming Conventions
  7. How to Cast String to Date DD/MM/YYYY in PostgreSQL
  8. How to Declare a Variable in a PostgreSQL Query
  9. How to Locate Configuration Files in PostgreSQL on Ubuntu
  10. How to Use pg_dump to Create a Backup File of the Database in PostgreSQL
  11. How to Import CSV File Data Into a Table in PostgreSQL
  12. How to Use Multiple WITH Statements in One PostgreSQL Query
  13. The if Statement in PostgreSQL
  14. How to Drop All Tables in PostgreSQL
  15. How to Insert Into Select in PostgreSQL
  16. How to List Tables in PostgreSQL

TypeScript Howtos

  1. How to Use Useref to Call Child Component From Parent Component in React With TypeScript
  2. How to Create an Empty Array in TypeScript
  3. Global Variable in TypeScript
  4. How to Define an Array in TypeScript Interface
  5. How to Convert String to Boolean in TypeScript
  6. How to Import Modules in TypeScript
  7. How to Import Type Feature of TypeScript
  8. How to Create Custom Valueof Similar to Keyof to Return Union of Property Value Types in TypeScript
  9. How to Initialize a Map Containing Arrays in TypeScript
  10. How to Extend an Interface With Nested Properties in TypeScript

Kotlin Howtos

  1. How to Implement the Floor Modulo Function in Kotlin
  2. Difference Between CoroutineScope and coroutineScope in Kotlin
  3. How to Split a String Into an Array in Kotlin
  4. How to Use synchronized() and withLock() to Lock Shared Resources in Kotlin
  5. Kotlin Spread Operator
  6. How to Clone Object in Kotlin
  7. How to Sort a Collection Using Multiple Fields in Kotlin
  8. How to Use the with Keyword in Kotlin
  9. How to Create a Singleton in Kotlin
  10. How to Create an HTTP Request in Kotlin
  11. How to Implicitly Infer the Type of Fail Method in JUnit 5
  12. How to Convert List to Map in Kotlin
  13. Kotlin flatMap() Function
  14. Object vs Class in Kotlin
  15. How to Get a Random Number in Kotlin
  16. How to Use the reified Keyword in Kotlin
  17. Difference Between fold() and reduce() in Kotlin
  18. How to Create Constants in Kotlin
  19. How to Get the Instance of an Object in Kotlin
  20. How to Parse JSON String to Object in Kotlin
  21. How to Create and Execute Coroutines in Kotlin
  22. How to Create an Empty Mutable List in Kotlin
  23. How to Differentiate the Extension Functions in Kotlin
  24. How to Use setOnClickListener in Kotlin

Java Howtos

  1. How to Format Java Message