Rust – How to Return JSON Responses from Actix-web

Are you planning to develop an API-only backend using Rust and Actix-web? If so, you need to know how to return JSON responses from Actix-web. This post briefly shows how

Rust – Generate EPCIS 1.2 XML With Sample Codes

Processing a considerable number of large XML files may require a lot of memory and processing power. With Rust, we can create applications that process huge XML files with a

Rust Display Struct Content Using Directive Or Traits

In Rust, we can display the contents of a struct type without explicitly printing out all the fields it has.

Rust Environment Variables – Set, Update, List And Delete

In Rust, we could get, list, or update environment variables using functions provided in the std::env module.

Laravel 8 PHP Configuration For Local Development Environment

Yesterday, I wrote about how to enable PostgreSQL drive in PHP 7.4. Today, I noticed Laravel 8 is already available. So, I have decided to migrate to Laravel 8 from

Spring Boot Asynchronous Controller Without External Queues

This post shows how to create an asynchronous web controller or endpoint in Spring Boot (or Spring in general). The codes won’t use external queues of any kind. However, they’ll

How To Validate XML String against XSD Without Writing To A File

This post shows how to validate XML string data against XSD files in Java. Most of the time, we work directly with XML files instead of string format. We point

Java 8 Convert Stream Values to Map Entries Examples

This post demonstrates how to convert a stream of objects to a Map object using Collectors.toMap(…) methods.

Java Lambda Expression Parameter and Return Types

This post demonstrates the type of arguments we can pass to and return from a Lambda expression based on the functional interface abstract method definition.

List Settings In postgresql.conf and postgresql.auto.conf

SQL statements to list settings defined in postgresql.conf and overriden by postgresql.auto.conf.