Author: Syed Wahaj

Convert Between Int and Char in Kotlin

In Kotlin, you can convert between Int and Char types using type casting or utility functions provided by the Kotlin standard library. Let’s explore two common approaches for converting between Int and Char: 1. Type Casting You can use type casting to convert an Int to a Char by directly

Read More »

IO and Default Dispatchers in Kotlin Coroutines

In Kotlin Coroutines, the concepts of IO and Default dispatchers are used to manage the execution of coroutines on different threads. Let’s explore these dispatchers in detail: IO Dispatcher The IO dispatcher is specifically designed for executing IO-bound tasks such as reading from or writing to files, making network requests,

Read More »

Difference Between runCatching and try / finally in Kotlin

In Kotlin, runCatching and try/finally are two different constructs used for exception handling. They serve distinct purposes and have different behaviors. Let’s explore the difference between them: runCatching The runCatching function in Kotlin is part of the Kotlin standard library and allows you to safely execute a block of code

Read More »

Tracking Down Where Disk Space Has Gone on Linux

If you’re running low on disk space on a Linux system and need to track down where the space has gone, there are several commands and techniques you can use. In this article, we’ll explore some useful methods to help you identify which files and directories are consuming the most

Read More »

Difference Between .bashrc, .bash-profile, and .profile

Introduction When working with the Bash shell in Unix-like systems, you might come across three important configuration files: .bashrc, .bash_profile, and .profile. These files play a crucial role in customizing your shell environment and executing commands at different stages of the shell session. In this article, we’ll explore the differences

Read More »

Intro to Bash Regular Expressions

Regular expressions (regex) are powerful tools used in various programming languages and tools for pattern matching and manipulation of strings. In Bash, regular expressions can be utilized for tasks such as text searching, string manipulation, and pattern matching. This article provides an introduction to Bash regular expressions, explaining their syntax,

Read More »

Terraform – Complex Variable Types:

Terraform is an infrastructure as code (IaC) tool that allows you to define and manage your infrastructure using declarative configuration files. In addition to basic variable types like strings and numbers, Terraform also supports complex variable types that enable you to define more structured and sophisticated data. In this article,

Read More »