This post is about how to define and use functions in Julia. A function is a block of codes that performs a specific operation. It may accept parameters which may influence its behavior. It may also return values to codes
WordPress Plugin And Composer
This post quickly shows the basic usage of WordPress Plugin and Composer. We are to use a PHP library within our own already existing WordPress Plugin. Composer We can use Composer with a WordPress plugin. The composer is a dependency
Lenovo T495 R12HT51W BIOS Update
Lenovo T495 R12HT51W BIOS update may cause Windows 10 to not load during system start-up. It may not be related to Windows updates KB4552931 and KB45565799 because I have those updates in my system before upgrading to that version of
Java String – Convert or Parse to Primitive int
There are several ways to convert or parse Java Strings to int values. In Java, Integer values come in various types. We have the primitives long, int, short, and byte; and, we have equivalent Wrapper classes Long, Integer, Short and
Compare Dates In Java That Are Of Different Date Types
As of Java 8, there are at least three different types of dates available for developers. As a result, the usage of these various types of dates sometimes causes problems, especially when we compare dates in Java. We perform dates
Swap Between Vec Elements in Rust
Swapping between Vec elements in Rust can be a little tricky. The get method returns Option<&T>, and the lone swap method accepts an index and a value – not a reference. There is an alternative, though. But it uses unsafe codes.
Show Rust Dependencies Using Cargo
It is now possible to show Rust dependencies using Cargo. Before Rust 1.44.0, there was not a built-in method to display a dependency graph. There was a plugin, though, called cargo-tree. Show Rust Dependencies Using Cargo-tree With the cargo-tree plugin,
Working with Actix-Web HTTP Requests
When working with Actix-Web, we sometimes need to access incoming HTTP requests to inspect for some values. In that case, we need to use the HttpRequest struct either in request handlers and middlewares. Cargo.toml We will use the following dependencies
The Into and Unwrap Methods In Rust
Developers new to Rust probably have encountered the into and unwrap method calls several times in sample codes. At first sight, these calls may appear puzzling to them. So, where do we use these methods? Chances are these methods that
Send HTTP Responses From Actix-Web
Learning how to send HTTP responses from Actix-web to clients will help us craft the responses according to our needs. For instance, we could send JSON responses for specific URIs. Although we could just set the response content type and