engineering

Linked List, Data Structures

Linked List, Data Structures

Linked List A linked list is a fundamental data structure used in computer science to organize and store data efficiently. Unlike arrays, linked lists consist of nodes, where each node contains data and a reference (or link) to the next node in the sequence. This structure allows for dynamic memory allocation and efficient insertions and deletions, making linked lists highly versatile and useful for various applications. Comparison with Arrays Linked lists and arrays are both used to store collections of elements, but they have key differences that affect their performance and usage: Memory Allocation: Arrays: Use contiguous memory allocation. The…
Read More
Error v/s Exception

Error v/s Exception

Have you ever been confused between an error and an exception? We often tend to use these words interchangeably. Well, they are not the same, since they have nuanced differences. Let us understand these differences with examples. Error An error usually refers to a condition that hinders a program's normal execution. It can be due to issues like: 1. Syntax Errors Errors which occurs when we have mistakes in our code that prevents the compiler from parsing our program correctly. // Syntax error example: function greet() { console.log("Hello world!"; // SyntaxError: missing ) after argument list } Enter fullscreen mode…
Read More
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
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.