In Rust, there are two excellent crates that can convert struct instances to and from JSON. These are perfect for creating RESTful APIs that consume and produce JSON content. These are serde and serde_json crates. Use Rust Crates In Cargo.toml If
Rust – Thread Synchronization using Barrier
This post is about Rust thread synchronization with Barrier using std::sync::Barrier which is part of Rust’s standard library. Therefore, we do not need external dependencies to make things work. Basic Idea of Barrier The basic idea of using barriers is
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.
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 to an XML file and validate it against XSDs. However,
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.
Convert MySQL INSERT IGNORE to PostgreSQL
This post shows an example of the MySQL INSERT IGNORE statement in the PostgreSQL version. There are good reasons why you should use PostgreSQL at the onset or migrate to it as soon as possible. One reason is you cannot
Spring MVC – How To Test For View Name
This post briefly demonstrates how to test for a view name in Spring MVC.
Python 3 Print Exception Message With Examples
This post shows how to display the message and details on an Exception in Python 3.