Skip to the content Skip to the Navigation

Red And Green

  • Python Code
  • Rust Programming
  • Bitcoin Programming
  • Contact

python

  1. HOME
  2. python
FAISS
July 21, 2024 / Last updated : August 1, 2024 admin AI ML

Building a Text Similarity Search App with Flask, BERT, and FAISS | Step-by-Step Tutorial

Webdock – Fast Cloud VPS Linux Hosting Introduction Let’s see how to create a text similarity search web app using Flask, a pre-trained BERT model, and FAISS for efficient similarity search! Section 1: Importing Libraries “First, we need to import all the necessary libraries. We’ll be using Flask to create our web application, Hugging Face’s […]

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

Rye
February 12, 2024 / Last updated : February 13, 2024 admin Python Code

Rye for Python

Rye is a “comprehensive project and package management solution for Python” – let’s check it out!Grab a cup of tea, pull up a chair and put to one side any cognitive bias you have! (Just because it’s built with Rust doesn’t mean you have to install Rust!!!). I won’t regurgitate the excellent documentation from https://rye-up.com/ […]

Digital Signatures
November 28, 2023 / Last updated : December 7, 2023 admin Python Code

Streamlit App – Digital Signature demo

I demo ECDSA public/private keys with digital signatures using Streamlit… The private key gets generated, and stays private. The public key is given to the person who want’s to verify the message. Using the public key plus the signed message they can be sure that the only the owner of the matching private key signed […]

October 21, 2023 / Last updated : October 23, 2023 admin Rust Programming

Rust for Python with Maturin

Rust for Python with Maturin

Qdrant Vector Database
July 20, 2023 / Last updated : July 20, 2023 admin AI ML

Text Embedding and Upsert with Qdrant in Python

This article describes a Python script that demonstrates how to efficiently process text data, create embeddings, and upsert the embeddings into a Qdrant database using Python. Overview In today’s era of big data and machine learning, efficient text processing and vectorization are crucial for various natural language processing (NLP) tasks. The provided Python script showcases […]

python-code
April 6, 2023 / Last updated : April 10, 2023 admin Python Code

Working with dictionaries in Python

In this article we will look at OrderedDict and Counter Use an OrderedDict to sort an existing dictionary such as the one below: How to sort a Python dictionary Enclose the dictionary with OrderedDict(sorted(dict.items()) Note: you can also add in “reverse” if you want the opposite sort order: How to remove a key:value pair from […]

plane
March 16, 2023 / Last updated : March 16, 2023 admin Python Code

Enum in a Class in Python

Enum, short for “enumerate” is a robust way for us to enforce a strict set of options in Python. For example a fixed choice of Aeroplane Manufacturers and each choice manufacturers matches a model name. Let’s look at the example below and see we can do this can be done in practice. Example Code Pass […]

python-code
March 14, 2023 / Last updated : March 25, 2023 admin Python Code

Sphinx : How to Document A Python Project

Let’s look at how to create complete documentation for your entire Python project using Sphinx Here is a guide to how to document a very small project, with 2 directories “src” and “docs” where all the source code is in “src” and the Sphinx specific files go inside “docs”. You’ll be able to view each […]

Posts pagination

  • «
  • Page 1
  • Page 2
  • Page 3
  • »

Recent Posts

explore a practical implementation of an encrypted counter using Rust, RocksDB for persistence, and AES-GCM for encryption.

Understanding Encrypted Counters in Rust with RocksDB

May 11, 2025

Protected: Build your first MCP server in Rust and test it with an LLM

May 6, 2025
OpenAPI & FastAPI Generation Automatically generate FastMCP servers from existing OpenAPI specifications (FastMCP.from_openapi()) or FastAPI applications (FastMCP.from_fastapi()), instantly bringing your web APIs to the MCP ecosystem.

Protected: Build an MCP Server from OpenAPI Spec

May 5, 2025
Schemars in Rust

Schemars in Rust: Beyond Basic Structs

May 1, 2025
podman v docker

Getting Started with Podman

April 30, 2025
as_ref

as_ref and Cow

April 30, 2025
what-are-resources

Protected: Dynamic Resources – MCP protocol

April 23, 2025

GitHub Workflows – Rust

April 21, 2025
rust-mcp-servers

Protected: Rust MCP Servers

April 18, 2025

Tokio Async in Rust: tokio::join! vs tokio::spawn()

March 28, 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

  • 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 API async Automation axum BDK bitcoin Bitcoin Core blockchain class Closure closures Design Patterns dictionaries GitHub huggingface iced impl langchain LLM MCP ModelContextProtocol mutable Networks Podman python Qdrant raspberry pi Rust Programming scrapy Smart Contracts Sphinx Stellar struct SurrealDB Upsert VectorDatabase Vectors WASM webscraping web scraping Word DOCX xpath Yaml

  • 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 »