Quantcast
Channel: User Pure.Krome - Stack Overflow
Browsing index pages (87 articles)

IIS7 and Authentication problems [closed]

I've got a stock standard ASP.NET web site, deployed to our development machine (internal machine in our server room).Now, this dev site can be accessed by both INTERNAL and EXTERNAL users. Now, in...

View Article


Image may be NSFW.
Clik here to view.

EXEC sp_executesql is really slow when used with INSERT INTO

When I try and insert some results from an sp_executesql into a variable table, I get really bad performance.First, the query just as a simple Select.EXEC sp_executesql N'SELECT [a].[ListingId]FROM...

View Article


Is there a way to replace some javascript variables (at build time?) with...

I have a really simple website (ASP.NET core) that is a single .html static page and 6 .js files.In one of the js files are some data that is based on my configuration:localhostdevproductionRight now,...

View Article

What's the best practice for getting a random DateTime between two date-times?

I'm trying to randomize the value for a simple DateTime data field.I wish to get a random date/time between two date/times (e.g. min date/time and max date/time).So lets imagine I'm after a random...

View Article

Two tables vs one [closed]

I have a table of music albums and a second of album art. Not every album has album art data so I need to do an OUTER JOIN between music and album art.Both tables just contain ints and varchars, no...

View Article


Answer by Pure.Krome for Entity transaction not working

Have you tried using a System.Transactions.TransactionScope instead? (Which is the popular and common way to handle transactions in .NET).eg.using (EntityConnection DatabaseConnection = new...

View Article

Can a CSV file have a comment?

Is there an official way for a CSV file to allow comments, either on its own line or at the end of a line?I tried checking Wikipedia, and RFC 4180, but both do not mention anything. This suggests it's...

View Article

How can I deserialize this JSON data with JSON.Net?

I'm not sure how to define the data property to deserialize the following JSON data...{"response": {"total_rows": 39,"data": [...

View Article


Image may be NSFW.
Clik here to view.

Answer by Pure.Krome for Authentication with Asp.Net, RavenDB and OAuth support

GitHub projectIMO, forget storing usernames and passwords. That's crazy talk! Let people login with their Facebook, Google or Twitter credentials. That's the 80%'s for the common...

View Article


Does Azure Entra ID allow linking of a user account to an external Idp (e.g....

We have Entra ID setup and we manually create the users via the Azure portal. We create the external users so they can log in with whatever domain they are comfortable with (alice@yahoo.com,...

View Article

Is it possible to pass some logging 'scope variables' to a .NET log message...

I wish to provide some extra meta data (aka scope variables) to a single logging message.The logging message doesn't have link to any of the scope variables though. So how can I do this?for example.var...

View Article

What's the difference between ServerVariables["HTTP_HOST"] and...

I'm confused about the difference between these two server variables. Checking the IIS documentation, it states :-HTTP_HOSTReturns the name of the Web server.This may or may not be the same...

View Article

How to get a React.js app running on Azure App Services?

I have a simple React.js app that works 100% perfectly fine on my localhost.e.g.clone git repogo to the root folder of the cloned reponpm installnpm start and the browser opens up on port 3000. works...

View Article


How is the operationId used from an OpenAPI schema?

In an OpenAPI schema, it includes the optional element operationId.How is this used and why is it optional? Well, at least with the .NET Core library "Swashbuckle" they say it's optional.My guess is...

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


Image may be NSFW.
Clik here to view.

Unable to reduce the size of this SQL Server Log file [migrated]

I'm trying to reduce the size of a log file for a small database.The data is about 17mb but the log file is over 1 gb.DB is SIMPLE recovery model.Use Case: It's localhost development. Literally a...

View Article

How do ASP.NET MVC Routes work?

I have the following route's defined:public static void RegisterRoutes(RouteCollection routes){ routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute("Default","{controller}/{action}/{id}",...

View Article


Which method performs better: .Any() vs .Count() > 0?

in the System.Linq namespace, we can now extend our IEnumerable's to have the Any() and Count()extension methods.I was told recently that if i want to check that a collection contains 1 or more items...

View Article

Can two docker-compose files connect to a shared image instance?

I have two separate projects which have their own docker-compose.yml files.They both want to start a database.Is it possible that if the DB instance already exists and is running, the 2nd docker...

View Article

Should this Json result return a 404 or 200?

I'm trying to make an API sorta loosly based on StackExchange's api results.So here's my json output.{"items" : [ ... objects in here .... ]"page" : "page_size" : "total_pages" : "total_items_count" :...

View Article
Browsing index pages (87 articles)


Latest Images