Skip to content

Software Engineering Authority

Master of Software (MS)
  • Home
  • Software
    • Serengeti – The Autonomous Distributed Database
    • Run JS – Chrome Extension
    • Realtime Customer Analytics
    • MakePip – Python Packager
    • Keep that mouse moving!
  • Github

Software Engineering Authority

Master of Software (MS)
  • Home
  • Software
    • Serengeti – The Autonomous Distributed Database
    • Run JS – Chrome Extension
    • Realtime Customer Analytics
    • MakePip – Python Packager
    • Keep that mouse moving!
  • Github

How to Square Every Digit in C++

  • May 26, 2022May 23, 2022

The challenge You are asked to square every digit of a number and concatenate them. For example, if we run 9119 through the function, 811181… Read More »How to Square Every Digit in C++

How to Count Vowels in C++

  • May 25, 2022May 23, 2022

The challenge Return the number (count) of vowels in the given string. We will consider a, e, i, o, u as vowels for this challenge (but not y). The input string will… Read More »How to Count Vowels in C++

How to Calculate the Sum of the Numbers in the Nth row of a Triangle in Golang

  • May 24, 2022May 21, 2022

The challenge Given the triangle of consecutive odd numbers: Calculate the sum of the numbers in the nth row of this triangle (starting at index 1)… Read More »How to Calculate the Sum of the Numbers in the Nth row of a Triangle in Golang

[Solved] Terraform Error accessing remote module registry in PowerShell

  • May 23, 2022May 19, 2022

If you are using PowerShell and trying to run a terraform init, you may get an error as follows: Error: error accessing remote module registry… Read More »[Solved] Terraform Error accessing remote module registry in PowerShell

How to Recursively Delete a Directory in PowerShell

  • May 22, 2022May 19, 2022

If you want to recursively delete a directory/folder using PowerShell, then you have 2 options. Option 1 – With LiteralPath and Force Option 2 –… Read More »How to Recursively Delete a Directory in PowerShell

[Solved] npm ERR! could not determine executable to run

  • May 21, 2022May 18, 2022

If you get the following message, then there’s a very easy fix:npm ERR! could not determine executable to run The solution – using npm The… Read More »[Solved] npm ERR! could not determine executable to run

[Solved] npm ERR! path node_modules/node-sass

  • May 20, 2022May 15, 2022

If you get the following error and need a solution, then look no further! Option 1 – With npm First, remove the node-sass dependency from… Read More »[Solved] npm ERR! path node_modules/node-sass

How to Install Lodash through Yarn for React

  • May 19, 2022May 15, 2022

You can install lodash through yarn as follows: Step 1 – Install Lodash to get the Library Step 2 – Get the Typescript info

How to SHA256 a String in Golang

  • May 18, 2022May 12, 2022

If you need to SHA256 a String in Go, then you can use the crypto/sha256 package. SHA256 a String in Go The output will look… Read More »How to SHA256 a String in Golang

How to Base64 Encode/Decode in Golang

  • May 17, 2022May 12, 2022

Go ships with an encoding/base64 package that allows for encode and decoding of Base64 strings. Import the base64 package and then start using it! Base64… Read More »How to Base64 Encode/Decode in Golang

How to Base64 Encode a String in Java

  • May 16, 2022May 12, 2022

Quick solution In short, you can just do this: Examples and an explanation In Java 8 and above, you just need to import the Base64… Read More »How to Base64 Encode a String in Java

How to add a Lambda Environment Variable in Terraform

  • May 15, 2022May 12, 2022

If you have an aws_lambda_function block that needs to make use of environment variables, then you can simply do the following: The above example creates… Read More »How to add a Lambda Environment Variable in Terraform

How to perform Array Element Parity in Golang

  • May 14, 2022May 11, 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… Read More »How to perform Array Element Parity in Golang

How to Reverse Letters in Kotlin

  • May 13, 2022May 10, 2022

The challenge Given a string str, reverse it omitting all non-alphabetic characters. Examples: For str = “krishan”, the output should be “nahsirk”. For str = “ultr53o?n”, the output should… Read More »How to Reverse Letters in Kotlin

How to Get the ASCII Value of Character in Kotlin

  • May 12, 2022May 10, 2022

The challenge Get the ASCII value of a character. The solution in Kotlin Option 1: Option 2: Option 3: Test cases to validate our solution

How to update each dependency in package.json to the latest version

  • May 11, 2022May 6, 2022

You have 2 options: Option 1 – Recommended (Using npx) Option 2 – Older way (Using npm globally)

How to Convert IPv4 to int32 in Javascript

  • May 10, 2022May 6, 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). 1st octet… Read More »How to Convert IPv4 to int32 in Javascript

How to Solve the Grouped by Commas Challenge in Javascript

  • May 9, 2022May 6, 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… Read More »How to Solve the Grouped by Commas Challenge in Javascript

How to Save sed Output Directly to a File

  • May 8, 2022May 5, 2022

You have 3 options here: Option 1: use tee with sed Option 2: use > with sed Option 3: use sed with -i option

How to Convert BigNumber to Int/Number in Ethers/Web3

  • May 7, 2022May 4, 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: Ethers… Read More »How to Convert BigNumber to Int/Number in Ethers/Web3

How to Create a Pyramid Array in Javascript

  • May 6, 2022May 3, 2022

The challenge Write a function that when given a number >= 0, returns an Array of ascending length subarrays. Note: the subarrays should be filled with 1s… Read More »How to Create a Pyramid Array in Javascript

How to Create a Reverse Polish Notation Calculator in Javascript

  • May 5, 2022May 3, 2022

The challenge Your job is to create a calculator which evaluates expressions in Reverse Polish notation. For example expression 5 1 2 + 4 * + 3… Read More »How to Create a Reverse Polish Notation Calculator in Javascript

How to declare a global variable in React?

  • May 4, 2022April 29, 2022

If you need to declare a global variable in React, then you can do the following: Create a file called config.js Then import the config… Read More »How to declare a global variable in React?

How to Find the Missing Term in an Arithmetic Progression in Javascript

  • May 3, 2022April 28, 2022

The challenge An Arithmetic Progression is defined as one in which there is a constant difference between the consecutive terms of a given series of… Read More »How to Find the Missing Term in an Arithmetic Progression in Javascript

How to Count Characters in a Javascript String

  • May 2, 2022April 28, 2022

The challenge The main idea is to count all the occurring characters in a string. If you have a string like aba, then the result should… Read More »How to Count Characters in a Javascript String

  • 1
  • 2
  • 3
  • …
  • 46
  • Next »
en English
ar العربيةzh-CN 简体中文nl Nederlandsen Englishfr Françaisde Deutschit Italianopt Portuguêsru Русскийes Español

FREE Weekly Digest

Subscribe to receive an email every week for FREE

Name

Email


  • Actionscript
  • Advertising
  • Agile
  • AI
  • Android
  • Angular
  • AWS
  • Big Data
  • Biometrics
  • C++
  • CLI
  • Cloud
  • CSS
  • Databases
  • Distributed
  • Docker
  • Domains
  • Excel
  • Firebase
  • Forensics
  • Git
  • Go
  • Graal
  • Hosting
  • IDE
  • Interview
  • Java
  • Javascript
  • Kotlin
  • Kubernetes
  • Linux
  • Mac
  • Maven
  • Misc
  • MySQL
  • Networking
  • Node
  • NPM
  • Pandas
  • PHP
  • PIP
  • Platform
  • PowerShell
  • Python
  • React
  • Ruby
  • S3
  • Security
  • SEO
  • Software
  • Spring
  • SQL
  • SSH
  • SSL
  • Startup
  • Terraform
  • Typescript
  • Ubuntu
  • Web3
  • Windows
  • WSL

Be Social!

  • Facebook
  • Twitter
  • GitHub

Join over 12,000 other subscribers!

Subscribe to receive an email every week for FREE and boost your Software Engineering mindset

Name

Email


Recent Posts

  • How to Square Every Digit in C++
  • How to Count Vowels in C++
  • How to Calculate the Sum of the Numbers in the Nth row of a Triangle in Golang
  • [Solved] Terraform Error accessing remote module registry in PowerShell
  • How to Recursively Delete a Directory in PowerShell
  • [Solved] npm ERR! could not determine executable to run
  • [Solved] npm ERR! path node_modules/node-sass
  • How to Install Lodash through Yarn for React
  • How to SHA256 a String in Golang

All content copyright to Andrew O - © 2022

Follow on Facebook