avatar

William Leme

Designing the System

Adding live data to local language models

Adding live data to a local SLM running off a docker container in raspberry pi and preserving the context. We will build a .net console app that connects to the Ollama instance using the Microsoft.Extensions.Ai nuget package

Fixing 'npm does not support Node.js v xx.xx'

Upon updating a node version you may see the following message stating your npm is not compatible with the newly installed nodejs version 1 2 3 4 5 npm WARN npm npm does not support Node.js v14.18.1 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12. npm WARN npm You can find the latest version at https://nodejs.org/ Solution

C# - Record Types in practice

C# 9.0 introduces a new type called record type which is an immutable reference type with a ‘built-in’ value-based comparison. It’s inumattble because once the object is created it cannot be changed. The example below creates 2 structures. A Record and a regular Class 1 2 3 4 5 6 7 8 9 10 11 public record CarRecord { public string Maker { get; } public CarRecord(string maker) => (Maker) = (maker); } public class CarClass { public string Maker { get;} public CarClass(string maker) => Maker = maker; }

Running Sql Server on a Raspberry Pi using Docker

Sql Server for linux has been around for a bit but it’s only designed for x86 architectures which means not compatible with ARM therefore not possible to use it on a raspberry pi. but then Microsoft introduced Azure Sql Edge What is Azure SQL Edge? Azure SQL Edge is an optimized relational database engine geared for IoT and IoT Edge deployments. It provides capabilities to create a high-performance data storage and processing layer for IoT applications and solutions. Azure SQL Edge provides capabilities to stream, process, and analyze relational and non-relational such as JSON, graph and time-series data, which makes it the right choice for a variety of modern IoT applications.

Chart.js + Blazor

In this tutorial we will be creating a blazor component that receives the chart data and passes it to the Chart js library. This component will be limited to a Pie and Bar types but the idea is the same in case you want to implement other types.

Using Ionic Ui Web components in a Blazor App

How to use Ionic Web Components in a Blazor Web Assembly App

App: A Url Shortener Web App

A url shortener web app built in NodeJs + EJS + MongoDb + Redis

Automatically checking whether environment variables exist in the host OS (Nodejs)

How to check if all the environment variables are set in production ?

Securing your jwt in a js app (video tutorial - part 1)

Where should you store a json web token in a single page application ? Local storage ? a Cookie ?

Fix Azure Error 0x8007006d / Event Id 1022

After almost 3 years of flawless service availability my app service came to a halt with the following event entry