How to decode wav, mp3, and/or ogg in .Net/Mono?

I am looking for a cross-platform (.Net and Mono on Windows, MacOSX, and Linux) way to decode wav, mp3, or ogg files such that I can then play the decoded streams through DirectSound or OpenAL as...

How can I compare (directory) paths in C#?

If I have two DirectoryInfo objects, how can I compare them for semantic equality? For example, the following paths should all be considered equal to...

Something better than .NET Reflector?

I used to love .NET Reflector back in the day, but ever since Red Gate Software took over it has gone downhill dramatically. Now it forces me to update (which is absolutely ridiculous), half the...

How to debug System.TypeLoadException errors in .NET?

I'm getting the following error on one of my referenced assemblies: Could not load type 'System.Func`2' from assembly 'MyAssembly, ... My first instinct was to see what MSDN had to say about...

Performance Dictionary<string,int> versus List<string>

I have a list of about 500 strings "joe" "john" "jack" ... "jan" I only need to find the ordinal. In my example, the list will never be changed. One could just put them in a list and...

iOS NativeScript permission Error spawn EACCES

I'm trying to set up nativescript development environment. I followed the steps as described in the official doucmentation. Link After that I created a new Project by using tns create...

ngRx inherited Effects classes not working

I have two applications in a mono-repo, one will be a free subset of the other, so all of the functionality in the free one is included in the not-free one. I'm trying to set up my Effects so that...

Increase or remove content length restrictions in Spring-Boot's embedded Netty

I'm putting a Spring Cloud Gateway in front of some existing microservices. It mostly works, but I have a websocket (SockJS) connection which (apparently) transfers huge amounts of data. Turns out...

Game created in Unity is too slow & crashes after built to to iPad. How to fix this?

I have built my first game in Unity called Aesopicas. It runs great on my Mac in Unity's game window, but after I build it to my iPad the game become very slow and crashes. I have basically...

SignalR with Xamarin client getting "CERTIFICATE_VERIFY_FAILED" on calling StartAsync() method

Calling SignalR StartAsync from my Xamarin client is throwing me: [ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner...

System.TypeLoadException: 'VTable setup of type AndroidX.AppCompat.View.Menu.MenuItemImpl failed'

I am attempting to upgrade a Xamarin Android app to AndroidX. I went through the migration process and the project builds without errors, but at runtime I am hitting an issue with IMenu. I have an...

Cannot open .jpg, .png, or .tif files with ImageMagick, only .gif files work

I am using Ubuntu 18.04.1 LTS (Bionic Beaver) on Windows Subsystem for Linux. I installed ImageMagick according to these instructions, the only exception being ImageMagick version is currently...

MultiBinding for Picker's ItemDisplayBinding throws Null reference exception on adding new item

Consider following XAML in Xamarin Forms. I have binded a Picker control with an ObserableCollection and assigned a MultiBinding to its ItemDisplayBinding property - <Picker ItemsSource="{Binding...

Error: The thread tried to read from or write to a virtual address for which it does not have the appropriate access

I'm working on a driving simulator. The game works fine inside the Unity Editor but when I compile a standalone application and open it, it instantly crashes after the splash images. Below are the...

Unable to edit storyboards in Xamarin Forms for Windows

I am trying to edit the LaunchScreen.storyboard in my iOS project of my Xamarin Forms solution in Visual Studio (VS) for Windows . When I double click the storyboard to edit it, I receive the...

Visual Studio 2019 Live Unit Testing Crashes

I'm trying to use Live Unit Testing with my nUnit tests, but it crashes every time I start it. It crashes whether I start it manually or on solution load. I've restarted VS multiple times,...

Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="Error starting gRPC call. HttpRequestException: Connection timed out SocketEx

I am trying to achive a GRPC client with xamarin vs2019 following is my solution-explorer i have vs2019 template generated service and an xamarin application for android. if debug it with console...

OCRmyPDF Error: Failed to fetch http://security.ubuntu.com/

I'm using Google Colab to run my Python codes. Today when I run !apt-get install ocrmypdf -q I get the following "Failed to fetch" error. Any idea why it's showing up and how to fix it?...

Getting error "CUDA backend requires cuDNN" when configuring OpenCV cmake build with cuda backend turned on

My goal: My goal is to configure a build of OpenCV 4.5.1-dev with support for cuda, tesseract and QT without any cmake error.. The problem I am having: I am getting the following error when I...

In npm/yarn workspaces, should packages consume src or dist

I want to use a monorepo for our frontend app. We want to divide some react UI components into a package folder under "/packages/ui-components" and leave the app in an "/apps/app" folder and then...

Xamarin Android HttpClient.GetAsync only works in Wifi but not mobile data?

I've met a strange problem recently. I have Xamarin Android project, every time I call http request using real device with mobile data, it will throw me HttpRequestException, if I am using WiFi,...

vs code Problems with C# extension, Some projects have trouble loading due to OmniSharp

When I start editing a C# file I get this warning message Some projects have trouble loading. Please review the output for more details. I check the output and this is what I find Starting...

@Configuration not applied depending on names of classes

Please read the "Update" at the bottom. It seems to be a problem with the name of the controllers. Depending on the name the SSL-configuration is not applied. The UserService of my spring...

Bokeh/panel won't render in-line with Jupyter Lab

I'm trying to visualize Bokeh plots and panels with a Bokeh backend in a notebook in JupyterLab. Things were running fine until I updated. Current packages and versions are below I have tried the...

Android emulator doesn't work: Failed to open /qemu.conf, No accelerator found and more

Visual Studio Xamarin has problems again. I currently have a Windows Pro 10.0.19043 and the latest version of Visual Studio 2019 (16.10.4) with following components: Microsoft Visual Studio...

Unity 2020.3.xx Gradle build failed

I've been working some android unity project but when i try to build i got some Errors Here is one; **Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for...

How to get Linux file permissions in .NET 5 / .NET 6 without Mono.Posix with p/invoke?

I recently found, that I can make Linux system calls from .NET relatively easy. For example, to see if I need sudo I just make a signature like this: internal class Syscall { [DllImport("libc",...

How to get current user from ReactiveSecurityContextHolder in WebFlux?

Usually while working with Spring Boot, a common way to get currently logged users is to use: SecurityContextHolder.getContext(); This does not work when working with reactive programming, and...

Not able to get full Intellisense in Visual Studio Code with Unity functions

Ok, I know this question has been asked and answered many times, but I've spent like 3 days trying to solve this, and nothing I've tried so far has worked. I basically have partial Intellisense in...

Honor. Exception after updating system

Using Xamarin.Forms to built Android app. Phone Honor 30i. Android 10. Build version 3.1.0.140(C10E1R3P2). After updating on this build(dont remember version of previously installed build) my app...