Quantcast
Channel: User Pure.Krome - Stack Overflow
Browsing all 74 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Unable to create a Google BigQuery materialized view with a specific...

I have a simple Google BigQuery table which is partitioned by DAY.TABLE-----created_on TIMESTAMP REQUIRED, -- These will ALWAYS be UTC.name STRING REQUIRED,...Now, I'm trying to make a MATERIALIZED...

View Article


Image may be NSFW.
Clik here to view.

Deserialization throws an exception for this bit of C# code [closed]

I have some binary data I've read in. I wish to convert it to an System.Drawing.Image, so I create an instance of an Image object, using a memory stream as the input data.After I've done that, I...

View Article


Does ASP.NET Core allow you to read in the ENTIRE appsettings.json in a...

I've been manually reading all the sections of my Configuration (e.g. appsettings.json, env vars, secrets, etc) by reading in each "section", one by one. Works great.But is it possible to just provide...

View Article

Image may be NSFW.
Clik here to view.

Entity Framework Core is failing to retrieve data when I'm trying to call an...

When I have the following EF query which is failing to retrieve the data from the db.var results = await (from a in agreements let showPasscode = <snipped> let passcode = <snipped> select...

View Article

ASP.NET Core minimal API's and parameter binding -> QueryString into a POCO...

I'm trying to get my simple ASP.NET Core 7 minimal API to automatically bind the QueryString parameters into a single POCO.Reference:...

View Article


Where is the Interface Builder in the MonoDevelop application?

I'm having a play around with MonoTouch for the very first time. In the Hello World tutorial for Noobs-Like-Me, it says the following:Launch Interface Builder by double-clicking on the MainWindow.xib...

View Article

Image may be NSFW.
Clik here to view.

Why isn't my Docker image of nginx:alpine (with nothing added) about 40 mb...

I'm trying to understand why my Docker image of nginx:alpine is about 42mb and not about 5mb?I've also checked out nginx:alpine-slim which is smaller, but at the 12mb size.Is this becausedefault Alpine...

View Article

How to move a file on Azure File Storage from one sub folder to another sub...

I'm trying to figure out how to move a file in Azure File Storage from one location to another location, in the same share.E.g.source -> \\Share1\someFile.txtdestination ->...

View Article


Is it possible to refactor this extension method?

I have the following extension method:public static void ThrowIfArgumentIsNull<T>(this T value, string argument) where T : class{ if (value == null) { throw new ArgumentNullException(argument);...

View Article


How to allow an application running in a Windows Sandbox to connect to my...

I have a Windows Sandbox running on my Windows 11 notebook. In it, I wish to connect out of it and back to my windows 11 'host' ... which is running a number of docker instances for things like web...

View Article

Answer by Pure.Krome for Account Profile MVC .NET

(I am not sure if this helps talk about custom profile providers.. unless I'm misunderstood...)IMO, what ever you do .. avoid (the baked in) ASP.NET Membership at any cost! It's so over engineered,...

View Article

Image may be NSFW.
Clik here to view.

How to place this Label and Image with Xamarin Forms?

I'm trying to learn Xamarin forms and wish to try to do the following:I'm thinking that I need to use a RelativeLayout but I'm struggling to understand how to use the provided tools. All the examples...

View Article

Image may be NSFW.
Clik here to view.

Answer by Pure.Krome for How can I properly handle 404 in ASP.NET MVC?

Quick AnswerFor the lazy people out there:Install-Package MagicalUnicornMvcErrorToolkit -Version 1.0Then remove this line from global.asaxGlobalFilters.Filters.Add(new HandleErrorAttribute());And this...

View Article


Is there a timing/race condition with my C# code?

I'm trying to test that my custom IProgress is doing what I expect it to do: "Report" the current status after every second.So I have some code but it's always failing. But this is the kicker - it's...

View Article

Answer by Pure.Krome for Is there a timing/race condition with my C# code?

This SO question has a great conversation about this issue, already.It is because the progress runs on a SynchronizationContext. So they suggested not to use the Progress<T> inside my own class....

View Article


How to pass a list of string parameters to an Azure DevOps template

In a previous SO question, I was trying to get create an Azure DevOps template.Now that I know how to do that, I'm trying to pass in a list of strings to the template and use them in the template, like...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Core 8 TypedResults.File with ETag always returning result from...

I have a simple ASP.NET Core 8 endpoint that returns a TypedResults.File with an ETag. First time I hit the endpoint, the file is returned 100% ok.Second (and subsequent) times I hit the endpoint with...

View Article


Comment by Pure.Krome on Does ASP.NET Core allow you to read in the ENTIRE...

OH! i didn't see this: var configuration = at the start! awesome! that works. ta

View Article

Comment by Pure.Krome on How to implement Response Caching with Minimal APIs...

This saved my 🍑 - thanks so much @gurustron ! But i wish Response Caching was also baked in to .NET 7 (or later).

View Article

Comment by Pure.Krome on Trying to convert DateTime + a timezone to...

Ahh sorry @shingo - yeah, my main method I'm testing. i've updated the OP.

View Article
Browsing all 74 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>