This post demonstrates how to use a Namecheap domain in AWS and point it to an EC2 instance via Route53. We will verify the setup by accessing an Apache Webserver in the EC2 instance via www.origdoc.com. Basic Requirements Before anything,
How To Declare And Use Variables In Rust
Variables in Rust are similar to variables in other high-level programming languages, and how we declare and use them is pretty straightforward. There are several types of variables, and their declaration may differ from each other. Types Of Variables In
Things You Need To Know About Strings When Learning Rust
99% of the time, we deal with strings, which are a sequence of characters, and here are the things you need to know about them when learning Rust. 1. There Are 2 Types of String in Rust: String and str
Can we use a Layered Architecture Pattern in Rust?
Can we use a layered architecture pattern in a Rust codebase? Like using controller, service, and persistent layers? Yes, we can, but we may need to implement it slightly differently than in most programming languages like Java, C#, etc. How
Validate XML against an XSD that imports other XSDs
This post demonstrates how to validate XML against XSD that imports other XSDs. This is different from validating against multiple independent XSDs.
Panic and Result – Handle Errors in Rust
Errors are a part of Software, and Rust has features to terminate an application using the panic macro and handle failures gracefully with the Result enum. These Rust’s features are similar to the concept of exception handling in other programming
EJB3.x with JBoss AS 7: Session Beans and the Remote Clients
EJB3.x with JBoss AS 7: Session Beans and the Remote Clients
Using #[non_exhaustive] for Non-exhaustive Rust Structs
Non-exhaustive structs will future-proof our codes. We use Struct expressions to instantiate structs and they’re JSON-like expression in appearance with all fields present. When we update a struct with a new field, all expressions must be updated to include that field.
Getting Familiar With Java TreeSet With Examples
The Java TreeSet is a good choice when our codes, for example, do a lot of frequent read-and-write operations. It is a derivation of a Set, which means it still deals with unique items. Also, it has additional features like
Spring MVC PathVariable Annotation
Sometimes we want to send values to our web application as the path of the URL (or URI) path. For example, /tenants/123 where value 123 represents a tenant Id. To independently access the value in Spring MVC, we use the