Controller Endpoint Naming Convention

I have a controller endpoint and I need help with the naming convention. Basically, the endpoint is supposed to find a customer by their Id/Email (which is sent in the url of the request). Thus I need …

execute a .jar file from C# but it generates files at wrong location

I have coded a Minecraft Server Runner in C# WinForms which lets you run a Minecraft Server, a .jar file which needs to generate files. The problem is that I launch this .jar file via the .exe …

(HackerRank Day 2: Operators) Problem with Constructor

In this HackerRank challenge, I need to find the total meal cost by adding tip_percent which is 20% of the meal_cost and tax_percent which is 8% of the meal_cost and the meal_cost being $12. So the …

Xamarin.Forms WebView not working with WebRTC

I have worked on WebRTC project, it all works on Web Browser but when I put in in Application WebView, it said not authorized to access device kind a message. I read other solution on granting access …

How to turn off monitor power programmatically in windows 10 if power button is broken

The power button on my second monitor is broken. I’m tired of manually unplugging the cable from the monitor. What do I want is to write a small app (Java, C#, or PowerShell script) that will turn the …

Best practice for Unit Testing class which is mostly responsible to call methods of dependencies, but contains logic as well

Let’s assume I have StartCommandHandler which has responsibility to create some file with required files. But for doing this I have to give him a set of sub-responsibilities, like: Checks whether …

dp[!t][val] for skipping the parts from array

consider the following snippet in cpp. This is taken from dynamic programming tutorial . It is mainly for space optimized knapsack problem. for(int i=1;i<=a;i++) { int t = a%2; for(int j=...

Convert Long to DateTime from C# Date to Java Date

I’ve been trying to read the binary file with Java, and the binary file is written in C#. And some of those data is contain a DateTime data. When DateTime data will be written into the file (in …

Is there any stable serialization method for different languages?

In my project we have an API, and many clients may send transactions to this API. Transactions should be signed. Clients may be written in any language (C++, C#, python, go, whatever), with any CPU …

UDP communication between Java and C#

I’m trying to communicate a Java program with a C# one but it’s not working. The code is really basic, here it is: This is the Java client static InetAddress ip; static int port = 10000; public …