Blog Posts
- Home /
- Blog Posts
How to Count Vowels in C++
May 25, 2022
The challenge Return the number (count) of vowels in the given string.
Read More
How to Calculate the Sum of the Numbers in the Nth row of a Triangle in Golang
May 24, 2022
The challenge Given the triangle of consecutive odd numbers: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 .
Read More
[Solved] Terraform Error accessing remote module registry in PowerShell
May 23, 2022
If you are using PowerShell and trying to run a terraform init, you may get an error as follows:
Read More
How to Recursively Delete a Directory in PowerShell
May 22, 2022
If you want to recursively delete a directory/folder using PowerShell, then you have 2 options.
Read More
[Solved] npm ERR! could not determine executable to run
May 21, 2022
If you get the following message, then there’s a very easy fix:
Read More
[Solved] npm ERR! path node_modules/node-sass
May 20, 2022
If you get the following error and need a solution, then look no further!
Read More
How to Install Lodash through Yarn for React
May 19, 2022
You can install lodash through yarn as follows: Step 1 – Install Lodash to get the Library yarn add lodash Step 2 – Get the Typescript info yarn add --dev @types/lodash
Read More
How to SHA256 a String in Golang
May 18, 2022
If you need to SHA256 a String in Go, then you can use the crypto/sha256 package.
Read More
How to Base64 Encode/Decode in Golang
May 17, 2022
Go ships with an encoding/base64 package that allows for encode and decoding of Base64 strings.
Read More
How to Base64 Encode a String in Java
May 16, 2022
Quick solution In short, you can just do this: new String(Base64.
Read More
How to add a Lambda Environment Variable in Terraform
May 15, 2022
If you have an aws_lambda_function block that needs to make use of environment variables, then you can simply do the following:
Read More
How to perform Array Element Parity in Golang
May 14, 2022
The challenge You will be given an array of integers whose elements have both a negative and a positive value, except for one integer that is either only negative or only positive.
Read More
How to Reverse Letters in Kotlin
May 13, 2022
The challenge Given a string str, reverse it omitting all non-alphabetic characters.
Read More
How to Get the ASCII Value of Character in Kotlin
May 12, 2022
The challenge Get the ASCII value of a character. The solution in Kotlin Option 1:
Read More
How to update each dependency in package.json to the latest version
May 11, 2022
You have 2 options: Option 1 – Recommended (Using npx) npx npm-check-updates -u npm install Option 2 – Older way (Using npm globally) npm i -g npm-check-updates ncu -u npm install
Read More
How to Convert IPv4 to int32 in Javascript
May 10, 2022
The challenge Take the following IPv4 address: 128.32.10.1 This address has 4 octets where each octet is a single byte (or 8 bits).
Read More
How to Solve the Grouped by Commas Challenge in Javascript
May 9, 2022
The challenge Finish the solution so that it takes an input n (integer) and returns a string that is the decimal representation of the number grouped by commas after every 3 digits.
Read More
How to Save sed Output Directly to a File
May 8, 2022
You have 3 options here: Option 1: use tee with sed sed 's/Hello/Hi/g' file-name | tee file Option 2: use > with sed sed 's/Hello/Hi/g' file-name > file Option 3: use sed with -i option sed -i 's/Hello/Hi/g' file-name
Read More
How to Convert BigNumber to Int/Number in Ethers/Web3
May 7, 2022
If you have a BigNumber when using web3, then you can convert this to a regular Javascript Number using the ethers library as follows:
Read More
How to Create a Pyramid Array in Javascript
May 6, 2022
The challenge Write a function that when given a number >= 0, returns an Array of ascending length subarrays.
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