AWS DLM LifeCycle Policy for Creating Snapshots for EBS Volumes on an EC2 Instance

It seems AWS CloudFormation does not readily support creating EBS Volume Snapshots via BlockDeviceMappings‘s EBS property. Luckily there is an alternative approach that allows you to setup a DLM LifeCycle Policy which scans for EC2 Instance Tags (apparently there is also no support to really tag the Volumes directly via CloudFormation that…

Continue reading

JUnit Hamcrest: Matching a Group of Map Properties from Any Map within a List

Let’s say that you have an ArrayList of LinkedHashMaps. Let’s further say that you would like to find any Map within that List, which contains a set of Properties. Here is how you can write a Unit Test with Hamcrest Matchers to do this: Here we can see that we…

Continue reading

Handling Multiple Date Formats with One Method via Joda Time

Handling Multiple Date Formats with One Method via Joda Time

Nearly any project that amounts to anything must handle the processing of Dates, Times, and Timestamps. When it comes to Java projects, I see time and time again that developers just insert date formatters anywhere and everywhere. This violates the concept of modularity and making a segment of code do…

Continue reading

Using Bootstrap’s Navigation Bar

Phone collapsed Bootstrap navigation bar

Using Bootstrap’s Navigation Bar (or navigation header) allows you to provide a responsive way to navigate your web application with relative ease. It will automatically collapse depending on the size of the screen and number of items in navigation bar. here is an example below using AngularJS: [code language=”javascript”] <nav…

Continue reading

Sending Email via Gmail with 2-Step Authentication from AngularJS Frontend to Spring Boot Backend

Sending Email via Gmail with 2-Step Authentication from AngularJS Frontend to Spring Boot Backend

In this tutorial, I’ll show you how to configure Spring Boot to set up a REST Controller to send emails via Gmail. Plus, if you have 2-Step Authentication set up, which you should if you don’t, then I’ll take you through a couple extra steps. Then, I’ll show you how…

Continue reading

Indexing of Sitemap for AngularJS Site Increasing

Googlebot able to successfully index hash bang URLs from sitemap.xml for AngularJS with HTML5mode turned on.

Previously, I posted 2018 Search Engine Optimization with AngularJS 1.x Single Page Application. In that post, I highlighted how to use HTML5 Mode in an AngularJS app to get the hash bang URLs to redirect to URLs that are more friendly for web crawlers like Googlebot. Prior to this change, I…

Continue reading