Category Archives: Dev

Avalonia: Master – Detail Relationships with Tripous.Avalon

Posted in Avalonia, C#, Desktop, Dev | Tagged , , , | Leave a comment

Beyond XAML: Bridging the Gap in Avalonia UI with Dynamic Runtime Data-Binding

Posted in Avalonia, C#, Dev | Tagged , , | Leave a comment

Serialize and deserialize JSON using JsonSerializer

Serialize and deserialize JSON using JsonSerializer This text explores the use of the JsonSerializer .Net class in serializing and deserializing .Net classes to JSON. .Net types related to serialization are found in the following namespaces System.Text.Json. Contains the JsonSerializer, the … Continue reading

Posted in C#, C# | Tagged , , | Leave a comment

Database Schema information for various RDBMS

This Github repository contains a number of SQL SELECT statements to get Database Schema information about tables, columns, views, triggers, stored procedures, constraints, etc. for the following RDBMS FirebirdSql MsSql MySql PostgreSql Sqlite Oracle Under the root folder there is … Continue reading

Posted in Databases, Dev | Tagged | Leave a comment

Databases, remarks and thoughts

This text is about relational databases from the point of view of a software developer. It contains just remarks and not strict guidelines. Thoughts of what to do and avoid to do. Table types A database table may belong to … Continue reading

Posted in Databases, Dev | Tagged | Leave a comment

Microsoft Authentication Library for .NET

Microsoft Authentication Library for .NET Source code on github. Microsoft Authentication Library for .NET (MSAL.Net) is a .Net Library that enables applications to provide authentication operations using Microsoft Entra ID. This text explains what MSAL is and how to use … Continue reading

Posted in C#, C#, Dev, Tutorials | Tagged , | Leave a comment

OAuth v2 at a glance

OAuth v2 at a glance A summary of what OAuth is and the key terms related to it. OAuth OAuth (Open Authorization) is an authorization specification for access delegation. A User may grant access to his protected information stored in … Continue reading

Posted in Dev | Tagged | Leave a comment

Two Factor Authentication in C# using a mobile phone Authenticator application

Two Factor Authentication in C# using a mobile phone Authenticator application Source code on github. For security reasons many today applications or web sites use a two-step authentication. This type of authentication is called Multi Factor or Two Factor Authentication. … Continue reading

Posted in C#, C#, Dev | Tagged , | Leave a comment

Python Json: Serialize and Deserialize objects and complex objects

Source code can be found at Github. Introduction Json is a language independent way to represent objects as text and reconstruct objects from text. Json is a lightweight data interchange text format. Using Json an application may save or load … Continue reading

Posted in Dev | Tagged , | Leave a comment

Python Events

Source code can be found at Github. Introduction Event is "something that happens". An Event in computer programming is a code construction. An object, known as Publisher, informs other objects, known as Subscribers or Listeners, that something special is about … Continue reading

Posted in Dev | Tagged , | Leave a comment

Microsft Navision and Business Central No. Series guide

This text describes how NAV and BC produce unique values for “auto-numbering” fields such as the No. field of the Customer or Sales Header table. The term Number Series is used to denote this special functionality. The macinery extends to … Continue reading

Posted in Dev, NAV/BC | Tagged , | Leave a comment

Eclipse multi-user installation (Windows)

● go to https://www.eclipse.org/downloads/packages/ ● download the “Eclipse IDE for Java Developers” package for Windows. It is a .zip file. ● un-zip to a folder, e.g. C:\eclipse ● go to installation folder, find the eclipse.ini and add this line: -Dosgi.configuration.area=@user.home/.eclipse … Continue reading

Posted in Dev, IT | Tagged , | Leave a comment

QuantCast Create Account & Protect Website

To set-up the new property first we need to register in QuantCast in order to access the dashboard. After the registration & account email verification is completed we can continue with the following steps. Then you need to log-in and … Continue reading

Posted in Dev, IT | Tagged , , | Leave a comment

Asp.Net Core 3.x dynamically loadable plugins with full static file (js, css) support.

Source code can be found at GitHub. Introduction Asp.Net Core, starting from version 3.0, provides a way to split an application into modules by using Application Parts. A solution may comprised of a Web Application and any number of Assembly … Continue reading

Posted in Asp.Net Core, C#, C#, Dev | Tagged , , | Leave a comment

Asp.Net Core 3.0 MVC Request Localization or how to set the Culture of a User Session

Source code can be found at GitHub. Introduction A web site may provide a way for the visitor to select a preferred language for the displayed content. After such a selection is made, the web site has a number of … Continue reading

Posted in C#, Dev | Tagged , , , | Leave a comment

Use DocFx to generate a documentation web site and publish it to GitHub Pages

Source code can be found at GitHub. Introduction DocFx installation A test solution in Visual Studio Setting up DocFx with docfx init Setting up DocFx manually The anatomy of the docfx.json configuration file The metadata section The build section The … Continue reading

Posted in Dev | Tagged | 2 Comments

ngrok. Debug a service running on localhost making it accessible by a remote (internet) client

ngork allows a service running on a local development server to be accessible from the internet. It runs on Windows, Linux, MacOS and FreeBSD and it’s free. A possible scenario Here is a possible scenario: a developer is developing a … Continue reading

Posted in Dev | Tagged , , | Leave a comment

Cross-platform Desktop applications using AspNet Core or plain static HTML files.

A way to develop cross-platform Desktop GUI applications using C# and Chrome. A very light alternative to Electron and Electron.NET libraries. Source code can be found at github Introduction This project uses an existing Chrome installation to present an AspNet … Continue reading

Posted in C#, Dev | Tagged , , , , , | Leave a comment

Custom configuration section and collection in .Net

Source Code can be found at github. A tiny explanation of .Net configuration files In .Net config files, configuration information exists in so-called sections. Those sections are just XML elements. The preset appSettings element is such a section. In order … Continue reading

Posted in C# | Tagged , , , | 1 Comment

Setup a VSCode web project in order to use TypeScript, Less, UglifyCSS and UglifyJS

Notes on how to setup a VSCode web project in order to use TypeScript, Less, UglifyCSS and UglifyJS. NodeJS should be already installed in the development machine. Here is how to install the rest of the libraries using npm. -g … Continue reading

Posted in Dev, VSCode | Tagged , , | Leave a comment

Is Asp.Net Core unnecessarily complex?

Source Code can be found at github. In the last post I wrote about how to write a custom logging provider for Asp.Net Core. By examining the source code of the logging framework of Asp.Net Core, a conclusion comes out … Continue reading

Posted in C#, Dev | Tagged , , | Leave a comment

How to write a custom logging provider in Asp.Net Core

Source Code can be found at github There are no official instructions on how to write a custom logging provider in Asp.Net Core, in the available documentation yet. So if someone is in the need to write a custom logging … Continue reading

Posted in C#, Dev | Tagged , , | Leave a comment

VSCode: C/C++ development with gcc and make Windows and Linux

Source Code can be found at github. Visual Studio Code (VSCode) is a source-code editor developed by Microsoft for Windows, Linux and macOS.[7] It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. … Continue reading

Posted in Dev | Tagged , , , , | Leave a comment

Configure VSCode for Web Development

Web devepment requires a tool set in place, regardless of the technology used (ASP.Net Core, NodeJS, PHP). Install NodeJS, if you don’t already have it, which installs the npm package manager. Open a terminal and install compilers (actually transpilers) for … Continue reading

Posted in C#, Dev | Tagged , , , , , , | Leave a comment

Cross platform GUI application development with VSCode, .Net Core, C#, gtk3, gtksharp and Glade

Check also: Cross-platform Desktop applications using AspNet Core or plain static HTML files. It is possible to develop cross-platform desktop (GUI) applications, for Windows, Linux and macOS, using VSCode, .Net Core, C#, gtk3, gtksharp and Glade as GUI Designer. Windows … Continue reading

Posted in C#, Dev | Tagged , , , , , , , , , | 10 Comments

Installing msys2 on Windows

msys2 “is an independent rewrite of MSYS, based on modern Cygwin (POSIX compatibility layer) and MinGW-w64 with the aim of better interoperability with native Windows software. It provides a bash shell, Autotools, revision control systems and the like for building … Continue reading

Posted in Dev | Tagged , | Leave a comment

“dotnet” commands (and VSCode)

“dotnet is a tool for managing .NET source code and binaries. It exposes commands that perform specific tasks, such as dotnet build and dotnet run. Each command defines its own arguments.” dotnet command can be used in a CLI (Windows … Continue reading

Posted in Dev, IT | Tagged , , | Leave a comment

Install MonoDevelop (Xamarin Studio) on CentOS 7

MonoDevelop (also known as Xamarin Studio) is an open-source integrated development environment for Linux, macOS,and Windows. Its primary focus is development of projects that use Mono and .NET frameworks. Installation instructions can be found at monodevelop.com. Open a terminal and … Continue reading

Posted in Dev, IT | Tagged , , , | Leave a comment

Install Visual Studio Code on CentOS 7

Visual Studio Code or VSCode is a source code editor developed by Microsoft for Windows, Linux and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring. Installation instructions can be found … Continue reading

Posted in Dev, IT | Tagged , , , | Leave a comment

Install .Net Core SDK on CentOS 7

.NET Core is a free and open-source managed computer software framework for the Windows, Linux, and macOS operating systems. .NET Core fully supports C# and F#. Installation instructions can be found at microsoft.com. Open a terminal and type the following … Continue reading

Posted in Dev, IT | Tagged , , , , | Leave a comment