Checkbox not visible on nodes of TreeView control when deployed in IIS
I am facing issue with regards to the `TreeView` control. I have checkbox enabled for nodes of `TreeView` control. It is working fine and showing properly. But when I deploy same to IIS, checkbox is n...
how to apply mask to CompositionBrush
``` <Grid> <Image x:Name="BackgroundImage" Source="/Assets/background.png" /> <Rectangle x:Name="ClippingRect" Margin="50" Fill="#30f0" /> </Grid> ``` How do I apply alpha mask, or clipping ...
- Modified
- 14 Feb at 14:44
loading a full hierarchy from a self referencing table with EntityFramework.Core
Explanation why this question is different to: [EF - multiple includes to eager load hierarchical data. Bad practice?](https://stackoverflow.com/questions/23497079/ef-multiple-includes-to-eager-load-h...
- Modified
- 23 May at 12:1
Moving all files from one directory to another using Python
I want to move all text files from one folder to another folder using Python. I found this code: ``` import os, shutil, glob dst = '/path/to/dir/Caches/com.apple.Safari/WebKitCache/Version\ 4/Blobs ...
Can I make an ASP.NET Core controller internal?
ASP.NET (and Core) controllers need to be `public`. Problem is I have a controller which depends (in its constructor) on something `internal`. And that dependency depends on something internal, which...
- Modified
- 24 Jan at 09:56
System.NotSupportedException - Cannot compare elements of type 'System.Linq.IQueryable
I am currently getting the below error > An exception of type 'System.NotSupportedException' occurred in >EntityFramework.SqlServer.dll but was not handled in user codeAdditional information: Cannot c...
- Modified
- 20 Jun at 09:12
ModuleNotFoundError: What does it mean __main__ is not a package?
I am trying to run a module from the console. The structure of my directory is this: [](https://i.stack.imgur.com/naRKa.png) I am trying to run the module `p_03_using_bisection_search.py`, from the ...
- Modified
- 18 Jan at 11:53
Asp.Net Core: register implementation with multiple interfaces and lifestyle Singleton
Considering the following interface and class definitions: ``` public interface IInterface1 { } public interface IInterface2 { } public class MyClass : IInterface1, IInterface2 { } ``` is there any...
- Modified
- 26 Jan at 15:30
Correctly create RSACryptoServiceProvider from public key
I'm currently trying to create an `RSACryptoServiceProvider` object solely from a decoded PEM file. After several days of searching, I did manage to wrangle a working solution but it's not one that wo...
- Modified
- 22 Mar at 22:9
Register all implementation of type T interface in .NET core
I have an interface public interface IEvent { } An Event class public class ContactEvent : IEvent { } Two Event Handlers classes public class ContactCreateHandler : IEventHandler { } public cl...
- Modified
- 6 May at 10:39
Create (and select from) a table dynamically using servicestack ormlite
I am using `C#`, and I try to create a table, using `ServiceStack.OrmLite`, corresponding to a class type created in , I searched for the topic and I have found the following solution: - After creat...
- Modified
- 23 Jan at 12:59
Get custom attributes via ActionExecutingContext from controller .Net Core
This used used to work with earlier version of .Net. What's the equivalent in .net core terms. Now I get following error: 'ActionDescriptor' does not contain a definition for '' and no extension meth...
- Modified
- 23 Jan at 09:55
Error in Visual Studio Code Dotnet Core C#: "The type or namespace name 'System' could not be found", but build succeeds
When trying to work with Visual Studio Code on a C# DotNet Core MVC application, I am having a lot of trouble getting visual studio code to work. It is having trouble finding anything related to C#, m...
- Modified
- 15 Apr at 13:37
ASP.NET Core API POST parameter is always null
I have read the following: - [Asp.net Core Post parameter is always null](https://stackoverflow.com/questions/39748153/asp-net-core-post-parameter-is-always-null)- [asp.net webapi 2 post parameter is...
- Modified
- 23 May at 11:47
Return a response and file via servicestack
I am working on a project where we have a database and a separate file system both stored on the same server and are accessed through service stack requests and responses. The database contains the ...
- Modified
- 23 Jan at 01:52
`col-xs-*` not working in Bootstrap 4
I have not encountered this before, and I am having a very hard time trying to find the solution. When having a column equal to medium in bootstrap like so: ``` <h1 class="text-center">Hello, world!<...
- Modified
- 26 Feb at 19:29
Plotting images side by side using matplotlib
I was wondering how I am able to plot images side by side using `matplotlib` for example something like this: [](https://i.stack.imgur.com/dDepR.jpg) The closest I got is this: [](https://i.stack.imgu...
- Modified
- 5 May at 02:9
ADB device list is empty
I have the latest version of Android Studio and an Android device. I turned on developer mode on my device and plugged it to my lap top via USB. I didn't get the prompt message that asks me to author...
First-child full-width in Flexbox
How can I set the first-child of flexbox in full-width and all of the other childs set to `flex:1`(for split space)? Like this: [](https://i.stack.imgur.com/bjGWl.png)
Why Task.Factory.StartNew returns immediately while Task.Run does not?
Consider this code snippet: ```csharp Task[] tasks = new Task[4]; for (var i = 0; i { await Task.Delay(4000); }); } for (var i = 0; i
- Modified
- 6 May at 06:13
Eager Load many to Many - EF Core
Hello I have a many to many relationship set up like following. ``` public class order { public int id { get; set; } public virtual ICollection<OrderProducts> Products { get; set; } }...
- Modified
- 22 Jan at 05:45
Unity C# JsonUtility is not serializing a list
I've got some data I need to serialize/deserialize, but JsonUtility is just not doing what it's supposed to. Here's the objects I'm working with: ``` public class SpriteData { public string sprit...
- Modified
- 22 Jan at 03:42
Scientific Notation in C#
How do I assign a number that is in scientific notation to a variable in C#? I'm looking to use Plancks Constant which is 6.626 X 10 This is the code I have which isn't correct: ``` Decimal Plancks...
- Modified
- 22 Jan at 03:48
How to emit a Type in .NET Core
In C#, how do I emit a new Type at runtime with .NET Core? All of the examples I can find for .NET 6 don't seem to work in .NET core (they all begin with getting the current AppDomain, which doesn't e...
- Modified
- 21 Jan at 20:54
JSON Deserialization - String Is Automatically Converted To Int
When I deseiralize the JSON to the C# object below, either using Newtonsoft explicitly or via the model binding mechanism of ASP.NET Web Api, the string `id` value is automatically converted to int. I...
- Modified
- 21 Jan at 19:11