Supabase and Table Relationships

For one of my .NET projects, I use Supabase to store my data. Supabase is an open-source alternative to Firebase. It is based on PostgreSQL and provides a REST API and websockets to interact with the database.

To connect my .NET project to Supabase, I use Supabase Sharp and you can also find the documentation on the official Supabase website.

The ease of use of the library is really interesting and it also allows me to use the Supabase website directly to manage my data without having to write code to do it in my own applications.

[Read More]
.Net  C#  Supabase  AI 

Blazor 8

Exciting New Features in C# and Blazor 8

The world of .NET web development is constantly evolving, and the latest version of Blazor 8 brings a host of new features and improvements that deserve our full attention. In this article, we will explore the key features of Blazor 8 and how they can enhance your C# projects.

Blazor 8: A Richer and More Interactive User Experience

Blazor 8 continues to push the boundaries of what’s possible with .NET web applications. With improved support for server-side rendering and client-side interactivity, Blazor 8 offers a richer and more responsive user experience.

[Read More]

Mattermost Stream Deck plugin

Mattermost In my previous article (In French only), I discussed how to create a C# plugin for Stream Deck. Here I present a plugin for Stream Deck for Mattermost developed in C# and .Net 6.

The project is separated in two parts:

  1. A client for Mattermost: Allows connection to Mattermost server and provides objects for interaction with it.
  2. A Stream Deck plugin: Actions for Stream Deck, deployed in the Elgato store.

Currently, the plugin only contains one action:

[Read More]

Création d'un plugin Stream Deck

Here’s a tutorial for creating a plugin for Elgato Stream Deck.

Required Materials

  • Elgato Stream Deck: No matter which version you use, they all use the same software.

Creating the Plugin for the Stream Deck

To assist us with our Stream Deck plugin, we use tools developed by BarRaider that allow us to quickly start our plugin and also deploy it locally on our Stream Deck. I freely follow the BarRaider documentation as well as Elgato’s, but I will still try to give you a bit more information.

[Read More]

Windows 10 + Raspberry Pi 3 + Display

I’ve been playing with Windows 10 IoT and a Raspberry Pi for a little while now, so I got a touchscreen to improve my experience. Here’s my current setup:

  • Raspberry Pi 3
  • Rapsberry Pi 7” touch display
  • Raspberry Pi Clear Case
  • Windows 10 IOT Insider Edition

To get everything working, just connect the “display” cable (the big gray one) and the 3 small wires to the Raspberry Pi’s GPIO!

WP_20161102_20_08_05_Pro

[Read More]

Custom NuGet Source for MSBuild

NuGet-Logo-2If you have a custom data source for your NuGet packages and you use MSBuild for your solutions, MSBuild will not be able to restore these packages.

To achieve this without adding specific configuration files to your .Net solutions, you just need to add a NuGetDefaults.config file in the %ProgramData%\NuGet\NuGetDefaults.config directory of your build server. This file will be opened at each build requiring package restoration and will allow you to see your enterprise or personal NuGet package sources.

[Read More]

Exclude TFS DLLs During Publication

In one of my projects, I use an ASP.Net MVC site to communicate with Team Foundation Server (TFS) to display metrics/graphs/reports. The site is hosted on the same server that hosts TFS and during publication, it publishes the file Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader.dll in the bin folder each time, which causes an ASP.Net error because the dll is already on the server.

It is possible in an ASP.Net MVC project to exclude files and directories by creating a .wpp.targets file. This allows you to define the exclusions as well as the source/reason for the exclusion.

[Read More]
dll  tfs  publication  MVC  XML  WPP 

State Change Date in TFS Scrum

While trying to take advantage of the new trend charts in TFS 2013.4, I realized that the state change date was not added to the item template in the TFS Scrum template. I had to resort to using the modification date, but this skews the results for items that haven’t actually changed in a long time but have had a property change (notably the priority when reordering the backlog).

I found this article which explained the changes to be made, but my version of TFS is in French, so here is the French version to add to tasks, bugs, and backlog items in the <FIELDS></FIELDS> section:

[Read More]

C# and JSON

If you need to use data formatted with the JSON standard, here is a simple trick to get started (but you can complicate it as you wish ;)). I use the Web Essentials extension and the NuGet package Json.NET. The JSON data file I use is this one: Example JSON File (source).

Here are the steps to take the JSON data, generate the necessary classes, download the data, and populate these new classes:

  • Install the Web Essentials extension
  • Create a new class file
  • Put a snippet or the entire JSON data into the clipboard (Copy or CTRL-C)
  • Right-click in the editor or go to the EDIT menu/Special Paste and select “Paste JSON as Classes”

image

[Read More]