Blog Posts
- Home /
- Blog Posts
How to get the Length of an Array in C
June 14, 2022
There isn’t really a standard way to get the length of array in C.
Read More
How to write If/Else Statements in Terraform
June 13, 2022
If/Else statements are conditional statements that perform decisions based on some known state, or variable.
Read More
How to Reset Udemy Progress
June 12, 2022
If you need to redo a Udemy course and you would like to reset the course’s progress, then you can use the following Javascript snippet below.
Read More
How to Get Last Digit of a Large Number in C
June 11, 2022
The challenge Define a function that takes in two non-negative integers aa_a_ and bb_b_ and returns the last decimal digit of aba^b_a__b_.
Read More
[Solved] Network interface is in use by another service in AWS
June 10, 2022
If you have tried to delete a Security Group, or VPC, or various other resources and you get the dreaded Network interface is in use by another service error, then you can resolve this by deleting the resource through the API.
Read More
How to Uninstall npm packages
June 9, 2022
We typically install an npm package as follows: npm install <package_name> But how do we uninstall an npm package?
Read More
RBG Color Codes
June 8, 2022
Often you need to reference an HTML/CSS Color Code in RGB or Hex.
Read More
How to Sum the Two Lowest Positive Integers in C++
June 7, 2022
The challenge Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers.
Read More
How to Sort an Array of Objects by Property in Javascript
June 6, 2022
If you need to sort an array of objects by their property values using Javascript, then you don’t need to look further than the built-in sort functionality.
Read More
How to create a Countdown Timer in Python
June 5, 2022
If you need to count down a specific amount of time, say for example, when a token is set to expire, then a countdown timer will be useful.
Read More
How to Remove a Resource from Terraform State
June 4, 2022
Terraform state reflects the most up to date reference of the infrastructure.
Read More
How to Delete a Specific Resource in Terraform
June 3, 2022
Running terraform destroy will tear down the whole stack associated to some terraform code.
Read More
How to Create a DynamoDB Lock Table for Terraform
June 2, 2022
Provision the DynamoDB Table resource "aws_dynamodb_table" "dynamodb-terraform-state-lock" { name = "terraform-state-lock-dynamo" hash_key = "LockID" read_capacity = 20 write_capacity = 20 attribute { name = "LockID" type = "S" } } Configure the DynamoDB table in Terraform Backend terraform { backend "s3" { encrypt = true bucket = "your-unique-bucket-name" dynamodb_table = "terraform-state-lock-dynamo" key = "terraform.
Read More
How to add Comments in Terraform
June 1, 2022
Terraform , a powerful Infrastructure as Code (IaC) tool, allows you to define and provision infrastructure resources.
Read More
How to log/debug in Terraform
May 31, 2022
If you have Terraform reporting an error but want more information, then you can configure debug logging.
Read More
How to find the number of trailing zeros of N in Rust
May 30, 2022
The challenge Write a program that will calculate the number of trailing zeros in a factorial of a given number.
Read More
How to do RGB To Hex Conversion in Rust
May 29, 2022
The challenge The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being returned.
Read More
How to Rename a Git Branch
May 28, 2022
If you want to rename a git branch, then you have a few options, dependent on the use-case.
Read More
How to Find the Shortest Word in C++
May 27, 2022
The challenge Simple, given a string of words, return the length of the shortest word(s).
Read More
How to Square Every Digit in C++
May 26, 2022
The challenge You are asked to square every digit of a number and concatenate them.
Read More
Tags
- Actionscript
- Advertising
- Agile
- AI
- Android
- Angular
- Ansible
- API
- Automation
- AWS
- Bash
- Big Data
- Biometrics
- C
- C++
- CDK
- Chef
- CICD
- CLI
- Cloud
- CloudFormation
- Containers
- CSS
- Data Structures
- Databases
- DevOps
- Distributed
- Docker
- Domains
- EKS
- Envoy
- Excel
- Firebase
- Forensics
- General
- Git
- Go
- Graal
- Hosting
- HTML
- IaC
- IDE
- Interview
- Istio
- Java
- Javascript
- Jenkins
- Kotlin
- Kubernetes
- Linux
- Mac
- MariaDB
- Maths
- Maven
- Microservices
- Misc
- ML
- MySQL
- Networking
- Nexus
- Node
- NPM
- Pandas
- PHP
- PIP
- Platform
- PowerShell
- Puppet
- Python
- React
- Ruby
- Rust
- S3
- Security
- SEO
- Software
- Spring
- SQL
- SRE
- SSH
- SSL
- Startup
- Terraform
- Typescript
- Ubuntu
- Web3
- Windows
- WSL