Sort Words by Position Index in Java
The challenge
Your task is to sort a given string. Each word in the string will contain a single number. This number is the position the word should …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Your task is to sort a given string. Each word in the string will contain a single number. This number is the position the word should …
Read Article →It’s very easy to get the current machine name and logged in user using Java.
String username = …
Read Article →
You may have installed ZSH and every-time you open your terminal, it opens BASH by default.
How do you set your default shell to open as ZSH? …
Read Article →If you need to either Encode or Decode a Base64 value, there are many ways to achieve this, one of them is directly from your commandline itself!
There are a few different ways to enable Syntax Highlighting in Vim.
Add syntax on to your local ~/.vimrc
echo "syntax …
Read Article →
Security groups are a critical component for securing resources in AWS. This guide will show you how to create and manage security groups in AWS using …
Read Article →Below is a simple CloudFormation script block to create a Security Group in AWS.
Resources:
SampleAppAppstreamSG:
Type: AWS::EC2::SecurityGroup …
Read Article →
AWS CloudFormation is very useful for creating template-able infrastructure definitions.
One of the sections of a template, is the Input Parameters, …
The AWS CLI comes with a useful subcommand to validate a CloudFormation template.
Simply run the following to validate a CloudFormation template file: …
Read Article →The two oldest ages function/method needs to be completed. It should take an array of numbers as its argument and return the two highest …
Read Article →You may come across a message that reads similar to the following:
<meta charset="utf-8">Encoded authorization failure message
A full …
Read Article →If you need to run a local application from your Terraform scripts, you can call out to the provisioner local-exec and issue the command syntax: …