RSSAmplifier

Blog

Analyst 18

dezoito.github.ioRSS feed ↗20 posts

Latest posts

Rust - Embedding a SQLite database in a Tauri Application

In this text we discuss implementing SQLite storage in a Tauri application using the SQLx crate , demonstrating practical approaches and solutions for local data persistence. The Problem Ollama Grid Search helps users evaluate LLM models by running experiments that compare different prompts and inference parameters. Built with Tauri and Rust, it provides an interface for testing multiple…

Comparing Multiple Large Language Models in one Pass

This article aims to demonstrate how Ollama Grid Search can streamline the process of comparing and selecting Large Language Models (LLMs) for various tasks and provide answers to common questions such as: What is the best model for for story telling? I want to use LLMs to generate RPG scripts, which model should I use? Getting started The automation process we propose requires a few moving parts:…

Limited Concurrency for Multiple API calls in React

Sometimes you have a list of several items that need to be processed by an API, like a list of documents to be summarized by a Large Language Model, or a selection of terms that trigger scraping jobs. If these tasks are expensive (i.e.: they demand a lot from the server), or if there are rate limits, you may need to use a Limited Concurrency pattern to stop the server from being flooded with…

Grid Search on Large Language Models using Ollama and Rust

This article explores the process of optimizing Large Language Models (LLMs) for specific applications through grid search. Our goal is to streamline parameter tuning for enhanced inference efficiency, complementing prompt engineering efforts, using models hosted in an Ollama instance and an interface built in Rust. [01-MAR-2024] Note, this article was written before we released a Desktop version…

Rust Todo SQL Example Application

Coming across “ Top 15 Rust Projects To Elevate Your Skills ”, I decided to build a Todo CLI application ( quite the road less traveled , eh?) and defined a few goals/requirements after checking some of their suggested crates and examples: Use a database to persist todos (I used SQLite). Minimize the use of unwrap() and expect() calls. Include relevant working test cases, even if they are not 100%…

Expressiveness in Rust code

After a quick attempt to build a desktop application using Tauri , I decided to learn Rust and started by using the excellent Rustlings resource. I like to compare my solutions and experiment with different ways to solve the challenges, and I’ve documented that in my commented solutions repository: https://github.com/dezoito/rustlings-commented-solutions The first time I saw the language, I had…

Mirror backend permissions on a React frontend

In this article we explore a way to replicate a backend’s authorization system on a React SPA, so that developers can restrict access to features, pages or components based on group memberships or user permissions. Although this example is based on a Django backend, it’s easily applicable to any backend framework that can return a user object by REST or GraphQL API calls. IMPORTANT This is not an…

Node and Azure - Asynchronous List Searches using Bing Search API

This article explores the issue of running “simultaneous” searches for all entries in a list of terms (in reality, we are running searches asynchronously ). I’m also trying to improve on Azure’s Search API example a bit. Pre-requisites You have to have an account on Azure and a subscription key for the Bing Web Search Service (See docs here:…

Django and GitLab - Running Continuous Integration and tests with your FREE account

This article attempts to explain how to setup your Django project so you can leverage GitLab.com’s free Continuous Integration features - available on their hosted environment, for their free account tier, on top of unlimited private repositories! The TLDR version is: You push your changes to a remote “dev” branch and GitLab will: Read a very simple config file. Build your environment on their…

Django - Develop faster with BrowserSync

This is probably the simplest/fastest way to integrate BrowserSync with your Django development workflow, allowing a few cool thinks to happen automatically: Browser reloads whenever you edit your code (no more CTRL+R or F5); Sync your view across multiple browsers and devices, so you can see how changes are displayed in different platforms/window sizes; Interactions on one device are also synced,…

ColdFusion - Testing FW/1 Controllers with TestBox

Some frameworks allow you to test your controllers directly - usually a faster approach to using Selenium and headless browsers. I decided to try that for a new FW/1 app, but since I could only find discussions on how to do that, and not a lot of code, I decided to try that on my own, using TestBox . This picks up where my FW/1 Example Application Articles left… I suggest you read that in case any…

Starting Tests for Flask Apps - Integration and PhantomJS Examples

This article is similar to the Ready to use Structure for Django Tests and the main goals are: get your tests up and running quickly provide a starting point for more complex tests We’ll use my Flask App to generate summaries as the test target (feel free to clone it). Note: This article was updated on JAN-2019 to reflect changes in the original project (a section on API testing was added).…

Ready to use Structure for Django Tests + Examples (Pt. 2)

This article builds up on the Structure for Django Tests and shows how you can easily display individual running times for each test in a group or suite - and you can use in Flask tests too! - check out my Flask App to generate summaries . The Problem By default, Django will only display the execution time for the entire series of tests ran, for example: $ python manage.py test…

Ready to use Structure for Django Tests + Examples (Pt. 1)

This article proposes a flexible and efficient test structure, so readers don’t have to go through the many Django testing resources available online before getting started. This structure allows developers to: Organize and group different test types (unit, integration, functional tests, etc…). Run tests individually, or by group, or all of them. Define logic that is common to all tests (e.g.…

FW/1 Example Application - Testing your App with BDD and Integration Tests

This final article is probably the most interesting ( and important! ) in the series and details how to implement Behaviour Driven Development tests and Integration Tests on the Example Application using FW/1 . The links above provide excellent definitions on these different concepts, so I strongly suggest the reader to become familiar with them. BDD, specifically, encompasses much more than just…

FW/1 Example Application - Interaction with a Remote Service

In this fourth article on how to build a ColdFusion and FW/1 Example Application , I’ll present a way to interact with a Remote Service that performs some complex manipulations with the stored articles. The external service, in this case, is flask_Summarizer an API written in Python/Flask, that receives paragraphs of text, and returns a string with a summary of that content. Interacting with a…

FW/1 Example Application - User Defined Function Libraries

This is the third in a series of articles on how to build a ColdFusion and FW/1 Example Application , and it discusses how you can structure your User Defined Functions in libraries that can be easily accessed in any part of your project, whether it’s a view, controller, service or model. Structuring and Accessing Function Libraries. A UDF library is a like a toolbox for the developer, and while a…

FW/1 Example Application - Forms and Validation

This is the second in a series of articles on how to build a ColdFusion and FW/1 Example Application , and it discusses the topic of creating forms and validating submitted data in an efficient and DRY (Don’t Repeat Yourself) way. Patterns for Forms and Validation Unlike Django , the FW/1 framework doesn’t come with a “native” way of writing forms, or performing data validation before commiting…

FW/1 Example Application - Project Structure

This article talks about the topic of project structure in a ColdFusion and FW/1 Example Application and is the first one in the following series: Project Structure Forms and Validation Patterns Use of User Defined Function Libraries Interaction with a Remote Service BDD and Integration Tests It assumes you are not new to CFML, so don’t take this as a detailed guide or tutorial, but more of a…

ColdFusion FW/1 Example Application Project

I just released a ColdFusion Example Application , built using the FW/1 framework in its latest version: It’s a simple app to store articles and clippings from on and offline sources, using a single model/database table, but handling a series of interesting topics: Project Structure Forms and Validation Patterns Use of User Defined Function Libraries Interaction with a Remote Service BDD and…