coding

LLM API Adapter SDK for Python

LLM API Adapter SDK for Python

Here is my LLM API Adapter SDK for Python that allows you to easily switch between different LLM APIs. At the moment, it supports: OpenAI, Anthropic, and Google. And only the chat function (for now). It simplifies integration and debugging as it has standardized error classes across all supported LLMs. It also manages request parameters like temperature, max tokens, and other settings for better control. To use the adapter, you need to download the library and obtain API keys for the LLMs you want. In the code, I demonstrated how easy it is to use it. from llm_api_adapter.messages.chat_message import AIMessage,…
Read More
Adding Revision Support to Entities in Entity Framework Core

Adding Revision Support to Entities in Entity Framework Core

Introduction As applications evolve, the need to track historical data or version control often arises. In this article, we’ll refactor an existing entity to support revisions using Entity Framework Core, allowing us to maintain a history of changes without duplicating the data model or introducing unnecessary complexity. We’ll walk through a step-by-step approach to transition a simple Document entity into a revisioned model. This method uses a discriminator to track multiple versions of the same document, with all revisions stored in the same database table. This approach is both flexible and scalable, making it easy to apply to other entities…
Read More
The Benefits of MedOne and VMware: A Cloud Solution Built for the Future

The Benefits of MedOne and VMware: A Cloud Solution Built for the Future

By partnering with VMware, MedOne is able to offer businesses advanced virtualization and cloud management capabilities that help them better manage their IT resources and ensure business continuity. Here are the key benefits of the MedOne and VMware collaboration: 1.Seamless Virtualization with VMware vSphereOne of the biggest advantages of the MedOne and VMware partnership is the ability to offer VMware vSphere, one of the most trusted virtualization platforms in the industry. With vSphere, businesses can consolidate their physical servers into a more efficient virtualized environment, reducing hardware costs and simplifying IT management. MedOne’s cloud infrastructure enhances this by offering secure…
Read More
Using Rapyd for Your Gig Economy Payment Gateway and Disbursement Platform

Using Rapyd for Your Gig Economy Payment Gateway and Disbursement Platform

By: Samuel Umoren Rapyd is a fintech platform that enables you to accept, send, and store funds globally. With Rapyd, you can seamlessly integrate local commerce and fintech services into your applications, creating functional and tailored local experiences anywhere in the world. One of Rapyd's essential offerings is the Disburse platform. Rapyd Disburse lets you pay contractors, workers, suppliers, or any business. In this guide, you'll learn how to use the Rapyd Disburse API to build a gig payment app for freelancers. The app will allow freelancers to add their profile and bank details and request payments on demand or…
Read More
Installing Git & Setting Up Your GitHub Account

Installing Git & Setting Up Your GitHub Account

Here’s a guide to installing Git and setting up your GitHub account: i. For Linux using Package Manager: Open Terminal. For Debian-based distributions (e.g., Ubuntu): sudo apt-get update sudo apt-get install git -y Enter fullscreen mode Exit fullscreen mode For Red Hat-based distributions (e.g., Fedora): sudo dnf update sudo dnf install git -y Enter fullscreen mode Exit fullscreen mode ii. Verifying Git Installation: Open Terminal and type the following command and press Enter: git --version Enter fullscreen mode Exit fullscreen mode We should see the installed version of Git displayed. iii. Configuring Git for the first time: Setting up Git…
Read More
Common Pitfalls in LINQ Queries and How to Avoid Them

Common Pitfalls in LINQ Queries and How to Avoid Them

IntroductionLINQ (Language Integrated Query) is a robust querying capability built into C#. It allows developers to write queries in a more readable and concise manner than traditional SQL. Despite its powerful features, developers often fall into certain pitfalls when using LINQ, leading to inefficient or erroneous code. This article explores these common mistakes and offers practical solutions to avoid them. Neglecting Deferred ExecutionProblem: One of LINQ's powerful features is deferred execution, meaning that the query is not executed until the results are iterated over. However, developers often force immediate execution unintentionally by using methods like ToList(), ToArray(), or ToDictionary() prematurely.…
Read More
☘️ Growing 3D grass on Your GitHub Profile

☘️ Growing 3D grass on Your GitHub Profile

I would like to introduce CGrass, which generates 3D grass images from GitHub Contributions. You can place the generated images in your Github Profile. CGrass runs on Github actions, so all you have to do is add a workflow and rewrite the README a bit. ↓ You can see the repository of this project at the following link English | 日本語 If you like this project, please give it a star ⭐️ CGrass is a GitHub contribution image generator that can integrate with GitHub Actions. It allows you to generate a 3D image of your GitHub contributions and set it…
Read More
Bash Scripting from Beginner to Advanced: A Step-by-Step Guide

Bash Scripting from Beginner to Advanced: A Step-by-Step Guide

Bash scripting is a powerful way to automate tasks and streamline command-line operations. Whether you're new to scripting or looking to expand your skills, this guide will take you on a journey from the fundamentals of Bash scripting to more advanced topics, such as file operations, conditional statements, loops, and more. By the end, you'll have a solid foundation for creating, managing, and enhancing scripts to make your command-line work more efficient and effective Table of Contents Introduction to Bash Scripting Getting Started: Writing Your First Script Working with Variables Conditional Statements Loops in Bash Creating, Moving, and Deleting Files…
Read More
Implementing a CI Pipeline for VShell with GitHub Actions

Implementing a CI Pipeline for VShell with GitHub Actions

Introduction This week, I delved into setting up a Continuous Integration (CI) pipeline using GitHub Actions while also expanding my suite of unit tests for my project, VShell. The process has enhanced my understanding of CI principles, automated testing, and the tools that help developers ensure reliable code delivery. What is Continuous Integration? Continuous Integration is a development practice where code changes are automatically tested and integrated into a shared repository frequently. By leveraging a CI pipeline, developers can detect and address issues early in the development cycle, improving code quality and reducing integration risks. A CI/CD pipeline allows us…
Read More
What to use for data analysis programming, SQL, Python, or esProc SPL?

What to use for data analysis programming, SQL, Python, or esProc SPL?

01 - User Session CountUser behavior data tableA session is considered over if a user does not take any action within 10 minutes, or if they do not log in within 5 minutes after logging out. Calculate the number of sessions for each user.Copy Code 02 - Count the players who score 3 times in a row within 1 minuteScore table of a ball gameCopy Code 03 - Calculate the number of users who are active for three consecutive days within every 7 daysUser login data tableCopy code 04 - Calculate the next-day retention rate of new users per dayUser…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.