Angius
Explore posts from serversExcerpt does not work
I have
.md
files with <!--more-->
delimiter in them.
I'm trying to render just that excerpt with
but it just doesn't work, it renders the entire post instead.
What's more, after inspecting post
, it turns out this object doesn't have the excerpt
property, despite the docs stating that every item that has <!--more-->
will have it.11 replies
Aspire project won't run if `applicationUrl` given in `launchSettings.json`
Weirdest shit ever...
and going to
https://localhost:5001
results in endless loading until the request times out, but
makes the link not show on Aspire dashboard, true, but manually going to https://localhost:5001
works just peachy...
My Aspire config if it matters:
39 replies
EF Core 1-1 relationship with automatic discriminator
I have a
CommentsThread
entity and multiple ICommentable
entities (Blogpost
, Profile
, Document
, etc.) that all reference it:
now, I would like a way to easily find what the comments thread belongs to. Does it contain comments of a blogpost? User profile? Document?
One way I figured was to reverse the relationship, and instead have a bunch of nullable FKs in the CommentsThread
entity, pointing to all the ICommentable
s. That way, I could do some
but it all seems iffy at best.
Ideally, what I would like instead, was some
properties on the CommentsThread
, with CommentsSource
being an enum.
Problem is, I have nary a clue how to do that. I considered maybe computed columns, but they seemingly can only reference the current entity.20 replies
Adding Blazor to an existing Razor Pages project
I decided that messing around with SSR and JS for the admin panel is not worth the hassle and I'll just make it with Blazor. I don't care about the bundle size, I don't care about SignalR connections, seems to be a perfect fit.
I think I did everything correctly, but I'm still getting errors out the wazoo.
but going to
/panel
results in the following:
With the whole log being https://pastie.io/bcixjg.yml3 replies
Typing `parseArgs` from `@std/cli` properly
I'm having trouble figuring out how would I type the result of
parseArgs
with collect
setting.
the error is caused by the function taking a { [key: string] string }
as the second parameter, while args[path]
is typed as unknown[]
.
The code works, just so we're clear, it's just the types that error out.2 replies
`Microsoft.Extensions.Logging` and Serilog compatible timing library?
I'm currently using https://github.com/nblumhardt/serilog-timings to log how much time a given operation took. It was nice and all when I was using a static logger, but I wanted to switch to an injected
ILogger
instance.
Problem is, SerilogTimings
works on a Serilog.ILogger
instance, not MEL.ILogger
which feels kinda smelly to me.
Is there any other library I could use with Serilog and MEL that would let me easily time whatever operations?4 replies
Getting route data from a WebAPI without Swagger
The way I'm currently generating TS clients, is I use NSwag to get the OpenAPI spec, then I have a tool written in JS that parses that json and generates TS clients. I was thinking of eliminating some steps from that, though.
The way I see it, I should be able to make a console app that references my WebAPI project, and somehow get the route data from there. All nicely typed and all. Bypassing Swagger completely.
Can't figure out how, though
15 replies
✅ SkiaSharp canvas scale not scaling
I have a method that takes an
int[,]
array with ones and zeroes. Based on that, I want to create an image, that is optionally resized and blurred.
Creating the image at 1:1 scale works, blurring it works as well, but for the love of me I cannot get it to scale...
5 replies
Is there any way to *conditionally* set a property with EF `.ExecuteUpdateAsync()`?
Right now, I'm doing
but I'm not sure how would I do something similar, as in, something that avoids setting
x.Name = x.Name
, with the Execute method. Something like
but no such thing seems to exist.20 replies
❔ Azure DevOps repo remote unpack failed
I have a Git repo set up, it's an UE5 project which means large binaries, and Azure repos have unlimited size, so that's why not Github.
I'm trying to push the project over SSH, but I'm getting some weird errors
23 replies
❔ Windows - system restore on PC shutdown
Not a C# question, I know, but I've no idea where else to turn to lol
Students at my school do all sorts of stuff with the PCs. Weird wallpapers, meatspin in autostart, weird bat files, installing Roblox, all kinds of stuff like that. Not everything can be prevented with just an admin password, AFAIK.
Back in college, they had some system set up that would roll back the PC on shutdown (or was it startup?) to a set restore point. So all the software and stuff was still there, but all the settings would be rolled back, and all the newly-installed stuff would be removed.
I'd like to use something like that in this school as well, but for the love of me I cannot remember the name of the soft
12 replies