onepiecefreak
onepiecefreak
CC#
Created by onepiecefreak on 8/24/2024 in #help
ImageSharp Alpha overwrite
I want to fill an ellipse on a destination image with ImageSharp. My filling color has 25% transparency and all alpha and pixel blending modes don't seem to support just overwriting the alpha value in the destination image. It always blends them in some way (like multiplication, add, etc) Is there possibly a built-in extensions or similar that allows this overwrite. It seems so basic, and the only option I currently see is writing my own pixel processor.
2 replies
CC#
Created by onepiecefreak on 4/6/2024 in #help
ADPCM knowledge required
Does anyone here know their way around ADPCM encoders? I could need someone with knowledge in that area, as I need to implement an ADPCM encoder, but I have literally no idea how to create the limited set of coefficients. The format is a 3-sample-history ADPCM, where each frame has 32 samples. Per frame you select one of max 32 coefficient-triplets, apply them to the 3-sample-history to get a predicted value and then add your current sample to it. I have no idea how to calculate those coefficients in the ncoding step.
1 replies
CC#
Created by onepiecefreak on 3/3/2024 in #help
Asp.Net: Errors when changing server certificate
I want to create a gRPC server in my local network and have to run it via SSL. For various reasons, I cannot use a self-signed certificate, so I created my own root CA and imported it to my PCs root trust store. I then created a new certificate from that root CA. In a really bare bones ASP.NET application (even without gRPC) changing the server certificate to my created certificate will not establish a secure connection when called from any browser via HTTPS. The debug logged error message reads as follows:
dbug: Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware[1]
Failed to authenticate HTTPS connection.
System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> System.ComponentModel.Win32Exception (0x80090327): An unknown error occurred while processing the certificate.
--- End of inner exception stack trace ---
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
at System.Net.Security.SslStream.ProcessAuthenticationWithTelemetryAsync(Boolean isAsync, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.OnConnectionAsync(ConnectionContext context)
dbug: Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware[1]
Failed to authenticate HTTPS connection.
System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> System.ComponentModel.Win32Exception (0x80090327): An unknown error occurred while processing the certificate.
--- End of inner exception stack trace ---
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
at System.Net.Security.SslStream.ProcessAuthenticationWithTelemetryAsync(Boolean isAsync, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.OnConnectionAsync(ConnectionContext context)
I have no further idea where to intercept to maybe get a better look at this issue or what exactly is supposedly wrong with the certificate. I also should clarify, that I had to create a pfx file from my initially created pem certificate, as with pem certificates, Windows seems to have issues if the key is stored separately from the certificate file. Since those certificates are tailored to my current environment, I can only really give you this description and my bare bones project as reproduction. I want to access the server directly via IP, and it does work without setting my own certificate.
1 replies
CC#
Created by onepiecefreak on 12/12/2023 in #help
Multi-Project templates without a root folder
I have a multi-project template and I want those multiple projects to not be created in a root folder inside the solution, but instead as separate folders on the same layer. Currently, the behaviour of my template would be this:
SolutionFolder\
Business.Logic\
Business.Logic\
Business.Logic.Contract\
SolutionFolder\
Business.Logic\
Business.Logic\
Business.Logic.Contract\
But I'd like to have:
SolutionFolder\
Business.Logic\
Business.Logic.Contract\
SolutionFolder\
Business.Logic\
Business.Logic.Contract\
I found some solutions online that, however, require some form of code extension to visual studio, to basically post process the template or something? But this is currently not feasable.
1 replies