Skip to the content Skip to the Navigation

Red And Green

  • Python Code
  • Rust Programming
  • Bitcoin Programming
  • Contact

admin

  1. HOME
  2. admin
closure_in_struct
June 15, 2024 / Last updated : June 15, 2024 admin Rust Programming

Use a closure in a struct

Using closures in structs in Rust is beneficial for encapsulating behaviour with data, providing dynamic and customisable behaviour.

join! macro
June 12, 2024 / Last updated : June 12, 2024 admin Rust Programming

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 […]

May 15, 2024 / Last updated : May 16, 2024 admin Rust Programming

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 […]

iced.rs
April 30, 2024 / Last updated : May 1, 2024 admin Rust Programming

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? […]

recursion in python
April 5, 2024 / Last updated : April 5, 2024 admin Python Code

Recursion in Python

Let’s look at recursion in Python using an example based on data discrepancies between 2 temperature sensors

Binary Tree in Python
March 29, 2024 / Last updated : March 29, 2024 admin Python Code

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, […]

redord links
March 26, 2024 / Last updated : March 26, 2024 admin SurrealDB

Record links in SurrealDB

If we look at the SurrealDB docs we see record links: But what is a record link and how do we create one, and how does it work? A record link is 1 way A graph using relate is 2 way Well why use a record link then? Record Links example based on SurrealDB demo […]

SurrealDB
March 22, 2024 / Last updated : March 26, 2024 admin SurrealDB

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 […]

SurrealDB cheatsheet
March 15, 2024 / Last updated : March 15, 2024 admin SurrealDB

SurrealDB cheatsheet

Let’s use the ready made database provided by SurrealDB to experiment and build some useful queries.

March 13, 2024 / Last updated : March 13, 2024 admin Rust Programming

Sorting in Rust

Current implementation The current algorithm is an adaptive, iterative merge sort inspired by timsort. It is designed to be very fast in cases where the slice is nearly sorted, or consists of two or more sorted sequences concatenated one after another. To sort you can use itertools : https://doc.rust-lang.org/std/collections/

Posts pagination

  • «
  • Page 1
  • …
  • Page 13
  • Page 14
  • Page 15
  • …
  • Page 27
  • »

Recent Posts

"Mismatched Types" in Rust

“Mismatched Types” in Rust

January 12, 2026

A Didactic dyn Trait Example

January 11, 2026
closures

Returning Closures in Rust: The impl Keyword Explained

January 10, 2026

The Hybrid Trait Pattern in Rust: Fast Internals, Stable Architecture

January 8, 2026
handlers

Handler Pattern in Rust: Closures Inside Process Functions

January 7, 2026
swap logic

Swap Logic: Making One Function Do Many Things in Rust

January 6, 2026
handler

What Is a “Handler” in Rust?

January 4, 2026
type-safe dynamic dispatch

Type-safe dynamic dispatch

January 2, 2026
MCP

Building Your First MCP Server in Rust: A Calculator Service

January 2, 2026
zst

Zero-Sized Types (ZSTs)

December 31, 2025

Category

  • AI ML
  • automation
  • Bitcoin Programming
  • c
  • ebay api
  • email
  • JavaScript
  • LangChain
  • MySQL
  • Pandas
  • postgres
  • Python Code
  • Raspberry Pi
  • requests
  • Rust Programming
  • Scrapy
  • Selenium
  • Smart Contracts
  • Stellar
  • SurrealDB
  • Uncategorized
  • web scraping

Archive

  • January 2026
  • December 2025
  • November 2025
  • September 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • November 2022
  • September 2022
  • November 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020

Actix-web AI Ansible API async Automation axum BDK bitcoin Bitcoin Core blockchain Closure closures Design Patterns dictionaries GitHub huggingface iced impl jobstr langchain LLM MCP ModelContextProtocol mutable Networks Podman python Qdrant Rust Programming scrapy Smart Contracts Sphinx Stellar struct SurrealDB unpacking lists Upsert VectorDatabase Vectors WASM webscraping web scraping Word DOCX xpath

  • email
  • github
  • YouTube
This site is hosted with https://webdock.io/en Fast Cloud VPS Hosting Flat fee all-inclusive VPS with a Free Control Panel

Copyright © Red And Green All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.

MENU
  • Python Code
  • Rust Programming
  • Bitcoin Programming
  • Contact
Translate »