Rapture in Everything

Posts tagged "programming"

Generate a query from an Expression in C#

I'm trying to generate a query string based on a C# expression. Even a few lines of code yield sufficient results....

The simplest Matrix 'chatbot' base in C#

Rather than spending a ton of time figuring out what the issues were with existing libraries, I'd decided to write a simple class of my own. It only does one thing, though; if you came here for a fully-featured SDK, you won't find it....

C# keeps getting better! Probably!

I've discovered C# and Python around the same time. I think C# 3 was new then, which places it... some 14 years ago. (😱😱🤯) Over the years I've used both, for hobby projects as well as professionally (Python professionally only a little, though.) I tended to use C# for more complex projects (like the book club app, Obskurnee) and Python for simpler stuff (such as csv-to-sqlite), one-off scripts and the like. I've also attended a handful of conferences for both, and the Python ones were always better in all significant ways. When it comes to the languages themselves though, I've recently...

Adding "spoiler" support to Markdown with Markdig

This article shows how to add Spoiler support when you want to render your Markdown text to HTML using Markdig....

AspNetCore.Identity.LiteDB breaks on Ubuntu

I have been building a small application for my book club. To make iterating easier I have decided to use the excellent LiteDB database to store all the data. Since the web application also needs to store user data, I have searched for a package that would let me use LiteDB as an identity backend. I have found AspNetCore.Identity.LiteDB,  which worked great, until I have tried to deploy it on my usual Ubuntu 18.04 LTS server. On Windows it worked perfectly but on Ubuntu I have started getting these weird connection and socket errors at an alarming...