Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. Could not resolve com.android.support:appcompat-v7:26.1.0. Required by: pro...
- Modified
- 18 Feb at 10:43
Getting mouse position in unity
I'm trying to move a object to the mouse position. But it's giving me large x value like 300 but at that place the pre placed object's x position is -4. ``` rigidBody.velocity = new Vector3(Input.mo...
Using C# 7.1 default literal in nullable optional argument causes unexpected behavior
C# 7.1 introduces a new feature called "Default Literals" that allows new `default` expressions. ``` // instead of writing Foo x = default(Foo); // we can just write Foo x = default; ``` For `Null...
- Modified
- 27 Jan at 13:47
How to enable Application Logs in Azure for Net Core 2 App?
I am trying to enable application logs in azure. I have a dummy Net Core 2 App running in an appService in azure. and basically my goal is to see the trace messages in the log stream and in the appli...
- Modified
- 29 Oct at 03:59
How to round a numpy array?
I have a numpy array, something like below: ``` data = np.array([ 1.60130719e-01, 9.93827160e-01, 3.63108206e-04]) ``` and I want to round each element to two decimal places. How can I do so?...
How to import JSON File into a TypeScript file?
I am building a map application using Angular Maps and want to import a JSON file as a list of markers defining locations. I'm hoping to use this JSON file as marker[] array inside the app.component.t...
- Modified
- 28 Oct at 15:15
Using state in react with TypeScript
I am new to TypeScript. I've got a problem with displaying `this.state.something` inside the render method or assigning it to a variable inside a function. Have a look at the most important piece of c...
- Modified
- 16 Aug at 08:0
Import data into Google Colaboratory
What are the common ways to import private data into Google Colaboratory notebooks? Is it possible to import a non-public Google sheet? You can't read from system files. The introductory docs link to ...
- Modified
- 28 Oct at 05:53
How to change PHP version used by composer
I want to use another php version on my machine than the one already installed using WAMP `(2 PHP version installed)`. - `PHP 5.6`- `PHP7.0` Whenever I choose PHP 7 from the control panel of WAMP a...
- Modified
- 16 Feb at 00:1
Change button text color in disabled button (Xamarin.Forms)
I need to change the text color of a button when it is disabled, I have created a custom renderer for iOS and one for Android. The iOS worked perfectly, since the android does not change the color, I ...
- Modified
- 27 Oct at 18:6
Use IEntityTypeConfiguration with a base entity
In EF Core 2.0, we have the ability to derive from `IEntityTypeConfiguration` for cleaner Fluent API mappings ([source](https://learn.microsoft.com/en-us/ef/core/what-is-new/#self-contained-type-confi...
- Modified
- 16 Nov at 11:58
Overriding a property value in custom JSON.net contract resolver
I am attempting to implement a custom JSON.net IContractResolver that will replace all null property values with a specified string. I'm aware that this functionality is available via attributes on me...
ServiceStack + Razor + Auth + Fluent Validation
I am building a very simple `ServiceStack` website using the built-in SS Razor, Auth, and Fluent validation. I've set up a simple login page, but if there is any sort of failure, I'm shown the SS `Sn...
- Modified
- 27 Oct at 14:39
Why is ReadAsStringAsync async?
So, in the following snippet, why is ReadAsStringAsync an async method? ``` var response = await _client.SendAsync(request); var body = await response.Content.ReadAsStringAsync(); ``` Originally I ...
Returning CSV from .NET Core controller
I'm having trouble having a .NET Core API Controller endpoint resolve to a CSV download. I'm using the following code which I pulled from a .NET 4.5 controller: ``` [HttpGet] [Route("{id:int}")] publ...
- Modified
- 8 Apr at 14:12
Please provide compiled classes of your project with sonar.java.binaries
I am struggling with an error with a multi-modules project, the struture is simple, it looks like this : ``` root module a module b module c pom.xml ``` After using the maven command lin...
Xamarin build ERROR : error APT0000: In <declare-styleable> ..., unable to find attribute
I received a project from another developer. I setup my machine. VS-2017 with the required components was already configured. Android SDK-Manager has the corresponding version installed. Project is c...
- Modified
- 27 Oct at 12:26
Refresh token with JwtAuthProviderReader
I'm wondering the best pratice to use `refresh-token` with `JwtAuthProviderReader`. At the moment when my expires I send a request `/access-token` to get a new one. ``` var jwt = authClient.Send(new...
- Modified
- 27 Oct at 11:25
How to open local file on Jupyter?
In[1]: ``` path='/Users/apple/Downloads/train.csv' open(path).readline() ``` Out[1]: ``` FileNotFoundError Traceback (most recent call last) <ipython-input-7-7fad5faebc9b>...
- Modified
- 29 May at 12:20
Base Uri without a trailing slash
If I create a `Uri` using the `UriBuilder` like this: ``` var rootUrl = new UriBuilder("http", "example.com", 50000).Uri; ``` then the `AbsoluteUri` of `rootUrl` always contain a trailing slash lik...
How to style material-ui textfield
I have been trying to work out how to style a [material-ui TextField](https://material-ui.com/components/text-fields/) component. ``` <TextField id="email" label="Email" className={classe...
- Modified
- 22 May at 22:12
In custom CredentialsAuthProvider, on successfull authenticate I want to send additional data in Meta property
In custom CredentialsAuthProvider, on successfull authenticate I want to send additional data in Meta property. Where can I get current response and add info to meta? I want to do this in `OnAuthentic...
- Modified
- 30 Oct at 10:4
Get a service in a IServiceCollection extension
I have this extension ``` public static class ServiceCollectionExtensions { public static IServiceCollection MyExtension(this IServiceCollection serviceCollection) { ... } } ``` a...
- Modified
- 26 Oct at 20:27
Why does a lambda expression in C# cause a memory leak?
Note: this is not just some random useless code, this is an attempt to reproduce an issue with lambda expressions and memory leaks in C#. Examine the following program in C#. It's a console applicati...
- Modified
- 26 Oct at 19:40
Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory
I have a project on Laravel 5 and I work with it at the office and at home too. It works fine, but recently at home it stopped working. Laravel show me two ErrorException ``` file_put_contents(G:\proj...