We can now install Rust on Windows a lot easier on Windows 11 (and probably in Windows 10 too) than before with the new Rust installer. Previously, we would go through a number steps to install Rust on Windows. The
Actix-Web Basic And Bearer Authentication Examples
This post has code examples for Actix-Web Basic and Bearer authentications in Rust. In a Basic authentication scheme, a client transmits credentials as user Id and password pairs in base64 format. Meanwhile, a client sends a string token in a
WordPress on Ubuntu with Docker: Local Directory Mapping
I was working on an existing WordPress theme that I have been using on this site. The plan was to start a Docker container for WordPress with a local directory for a WordPress theme project mapped to /var/www/html/wp-content/themes/my-theme within the
Micronaut Client-Side Load Balancing Example in Java
This post shows how to use client-side load balancing in Micronaut with Netflix Ribbon. There’ll be a client application accessing the same URI from multiple instances of another Micronaut application. Create Multiple Instances of a Micronaut Service Application To create
Java – 5 things You Cannot do with Generic Types – Limitations
Generics is one of the best things that happened to Java. Anyone who has worked with Java during its pre-JDK5 era can attest to that. For new developments, it has drastically reduced the amount of written codes and provided compile-time type checking using Generic Types. However, there are some things you cannot do with Generics Types.
Import Maven Remote Archetype Catalogs in IntelliJ IDEA
This post demonstrates how to import Maven Remote Archetype Catalogs in IntelliJ IDEA to use archetypes that are not readily available out-of-the-box.
Java 8 – Reuse Predicates by combining Lambdas
This post demonstrates how to reuse Predicate @FunctionalInterface implementations to reduce duplicate codes in your applications.
How to fix “Warning: Invalid argument supplied for foreach()” in PHP
When we are working with loops, we sometimes need to check first if the variables are iterable. Otherwise, we get the warning message “Warning: Invalid argument supplier for foreach()” in PHP. We get this warning when we use variables are
How to Install Rust on Windows 11
We can now install Rust on Windows a lot easier on Windows 11 (and probably in Windows 10 too) than before with the new Rust installer. Previously, we would go through a number steps to install Rust on Windows. The
Spring Boot – Using annotations with Apache Camel
This post shows how to use Spring Boot and dependency injection with Apache Camel and have Spring add routes and start and stop CamelContext automatically. The Spring way for Apache Camel In the previous post, Spring Boot – Copy File
Create a Spring Boot Application using IntelliJ
Using Spring Boot is the fastest way to get up to speed in developing modern applications. But how do we create the initial codebase that works out of the box? There are three ways – by hand, the Spring Initialzr,