development

IOT Raspberry Pi using Azure

IOT Raspberry Pi using Azure

Creating an IOT Raspberry Pi using Azure Procedures" create an IOT using the Azure portal -- go to Azure portal and log into your account using your username and password after successfully logged-in search for the word "IOT hub" in the search bar on the Azure page the image above should displayed click on add on the add button at the top left corner of the page to create a new IOT hub 4.this image should display create a resouce group, a name and a region then click on review and create then click on create give it some dew…
Read More
My Top 5 Favorite Algorithm Problems at Codewars

My Top 5 Favorite Algorithm Problems at Codewars

What is codewars? Codewars is a social network of programmers who get together to challenge each other to solve code challenges. Codewars is one of the best websites for practicing algorithms and solving Katas. Katas? Yes, as in Karate. What are katas in codewars? In the spirit of martial arts, more specifically Karate, these code problems are called katas. The katas are divided, ascendingly, according to their difficulty. There are katas from 8th kyu to 1st kyu, with 1st kyu being the most difficult type of kata of all. There are katas on many, many topics: algorithm development, efficiency, regex,…
Read More
Creating In-Video Search

Creating In-Video Search

In-video search is ability to search for a specific content within a video. This can include searching for particular words spoken, objects shown or description of a scene. With the current advancement in transformers the process of in-video search have become more accurate and fairly simple. Although most of the transformers doesn’t have a joint embedding space for multiple modalities but there are few models like Meta’s ImageBind that a joint embedding space between text, image, audio, depth, thermal and IMU, or OpenAI’s CLiP model have joint embedding space between text and image. We can use these models to create…
Read More
Crack the Code: Hosting Your Website on GitHub Pages

Crack the Code: Hosting Your Website on GitHub Pages

Cracking the code on hosting your website with GitHub Pages is like unlocking a door to a world of easy, free web hosting. Here's your step-by-step guide: Create a GitHub Account: If you don't have one already, sign up for a GitHub account at github.com. Create a New Repository: Once logged in, create a new repository by clicking on the '+' sign in the upper right corner and selecting "New repository". Name it as <username>.github.io, where <username> is your GitHub username. This naming convention is essential for GitHub Pages to recognize it as your personal website. Upload Your Website Files:…
Read More
In Excel, Insert Group Headers to Detail Data Rows in Each Group

In Excel, Insert Group Headers to Detail Data Rows in Each Group

Problem description & analysis The Excel worksheet below contains multiple vertical subtable groups, which are separated by a blank row. In each group, the 2nd cells of both row 1 and row 2 contain subtable group headers and row 3 contains column headers; there isn’t detailed data in either the 1st column or the 6th column: A B C D E F 1 ATLANTIC SPIRIT 2 Looe 3 Vessel Species Size Kg Date Location 4 POLLACK 2 2.5 23/04/2024 5 POLLACK 3 18.8 23/04/2024 6 POLLACK 41 5.4 23/04/2024 7 LING 3 1.9 23/04/2024 8 WHITING 2 0.4 23/04/2024 9…
Read More
Open AI with Vercel: Solution to Gateway Timeouts

Open AI with Vercel: Solution to Gateway Timeouts

Vercel and OpenAI: Not a Perfect Match. Vercel is great for starting small projects quickly and for free. However, using AI, like OpenAI, with Vercel can cause issues that only show up when you deploy. Fixing these errors can take up a lot of our precioussss time. Here’s a quick checklist before we start: Are enviromental variables set? Is database access allowed? Does CORS allow origin? The Solution To avoid Vercel's Gateway Timeout problems, split the OpenAI API call into two endpoints and one async function: Endpoint /request/initiate Function processRequestInBackground Endpoint /request/status/:hash Starting a Request The endpoint /request/initiate begins a…
Read More
Mastering the Strategy Pattern: A Real-World Example in E-commerce Shipping with Java

Mastering the Strategy Pattern: A Real-World Example in E-commerce Shipping with Java

Introduction:In the previous article, we explored the importance of design patterns in software development and how they provide proven solutions to common problems. We discussed how choosing the right pattern is like selecting the appropriate tool from your toolbox. In this article, we'll dive deeper into the Strategy pattern and provide a practical, real-world example of its implementation using Java. What is the Strategy Pattern?The Strategy pattern is a behavioral design pattern that allows you to define a family of algorithms, encapsulate each one, and make them interchangeable. It lets the algorithm vary independently from clients that use it. The…
Read More
How Retrieval Augmented Generation (RAG) Work

How Retrieval Augmented Generation (RAG) Work

Retrieval Augmented Generation (RAG, pronounced 'rag') works by fetching selective data from a custom knowledge base and integrating it with the output of a language model to provide accurate and up-to-date responses.RAG can be defined as a ChatGPT-like interface that can use your pdfs, documents or databases to answer questions from you. You can use it as a study assistant to understand documents by asking questions about those documents. In this article, we discuss the benefits of using a RAG system and explain its key components. We also detailhow RAG works to enhance the capabilities of large language models by…
Read More
Connecting to IRC with Halloy

Connecting to IRC with Halloy

Halloy is a new IRC client written in Rust that is fast with good theming. Here is how I set up a connection to an irc channel with Halloy and here is how to config Halloy for Rizon. After downloading Halloy, I referred to the documentation. Halloy uses a config.toml file, easily edited in code editor like VSCode. By default this is next to the Halloy installation, for me, in AppData/Roaming on Windows. Halloy has command bar on the bottom left of the application window, and opening that gives options including "Configuration: Open config directory". Basic connection to Rizon In…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.