Async – join! macro
The join! macro is particularly useful when you need to run multiple asynchronous tasks concurrently and wait for all of them to complete before proceeding further. It’s commonly used in scenarios where you have independent asynchronous operations that can execute simultaneously, and you want to optimize the overall execution time by running them concurrently. Here […]
Automate Docx creation with Rust
Using Docx-rs we can write some code and compile it to allow us to create Word document (Docx) files using text and images that the user is able to specify either via command line or via a script (e.g Python). How does it work? Using compiled Rust code, and a Rust crate called docx-rs you […]
Create a GUI in Rust with iced – “guissh”
I’ve built a GUI for connecting to remote hosts using SSH. The goal was to learn how to use iced in a real world project called “guissh” – https://youtu.be/uFeOHqomBtI The “guissh” GUI can be adapted to send and receive commands via SSH, eg to a server, router, firewall, switch or IoT device. What is iced? […]
Binary Tree in Python
Let’s create a Binary Tree in Python and understand how it works. A binary tree is a hierarchical data structure composed of nodes, where each node has at most two children, referred to as the left child and the right child. The structure resembles a tree with a single root node and branches extending downward, […]
SurrealDB tutorial
Let’s learn more about SurrealDB with a real world use case, albeit stripped down for learning purposes. For the purposes of this SurrealDB tutorial I have a collection of old farming magazines. Suppose I was to build a website where I sell them. It might be useful to have a feature that allows people to […]