Questions tagged [resolve]

Domain name resolvers determine the appropriate domain name servers responsible for the domain name in question by a sequence of queries starting with the right-most (top-level) domain label

resolve
Filter by
Sorted by
Tagged with
172 votes
7 answers
203k views

Git resolve conflict using --ours/--theirs for all files

Is there a way to resolve conflict for all files using checkout --ours and --theirs? I know that you can do it for individual files but couldn't find a way to do it for all.
exe163's user avatar
  • 1,841
90 votes
1 answer
51k views

error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?

In my project, I was using [email protected] and it was working fine, but now I updated its version to latest [email protected] and it is giving me a lot of errors. I am unable to find anything in ...
Naila Akbar's user avatar
  • 3,178
80 votes
7 answers
96k views

How to manually add a path to be resolved in eslintrc

I have a folder in my project main that I am resolving like a module. For instance import x from 'main/src' imports main/src/index.js. This is done through webpack's resolve alias configuration. An ...
wlingke's user avatar
  • 4,769
55 votes
3 answers
85k views

Angularjs ui-router. How to redirect to login page

I have 4 states: dashboard, dahboard.main, dashboard.minor, login. dashboard is abstract and it is a parent state for .minor and .main states. Below is my code: .state('dashboard', { url: "/...
Yelnar's user avatar
  • 674
36 votes
2 answers
16k views

How does Unity.Resolve know which constructor to use?

Given a class with several constructors - how can I tell Resolve which constructor to use? Consider the following example class: public class Foo { public Foo() { } public Foo(IBar bar) ...
stiank81's user avatar
  • 25.6k
31 votes
5 answers
25k views

Where to use resolve() and relativize() method of java.nio.file.Path class?

Path p1 = Paths.get("/Users/jack/Documents/text1.txt"); Path p2 = Paths.get("/Users/jack/text2.txt"); Path result1 = p1.resolve(p2); Path result2 = p1.relativize(p2); System.out.println("result1: "+...
sagar varsani's user avatar
31 votes
1 answer
13k views

What is the difference between .resolve() and .promise()?

I'm digging into jQuery's deferred features. I've tried several examples on the internet. I understood its concept, but I don't understand the difference between resolve() and promise(). What are ...
Moon's user avatar
  • 22.4k
28 votes
5 answers
28k views

Java URI.resolve

I'm trying to resolve two URIs, but it's not as straightforward as I'd like it to be. URI a = new URI("http://www.foo.com"); URI b = new URI("bar.html"); The trouble is that a.resolve(b).toString() ...
Cpa's user avatar
  • 373
26 votes
3 answers
48k views

How to have path alias in nodejs?

Let's say i have following codes: var mod1 = require('../../../../ok/mod1'); var mod2 = require('../../../info/mod2'); It's not pretty coding like above, i am wondering if there is a way to ...
Howard's user avatar
  • 4,524
25 votes
2 answers
14k views

golang force http request to specific ip (similar to curl --resolve)

How can I force a golang https get request to use a specific IP address. I want to skip DNS resolution and provide the IP myself. The equivalent in curl would be a --resolve as illustrated below. ...
Ryan D.'s user avatar
  • 393
22 votes
8 answers
70k views

C++ - statement cannot resolve address for overloaded function

When I types the following as a stand-alone line: std::endl; I got the following error: statement cannot resolve address for overloaded function Why is that? Cannot I write std::endl; as a stand-...
Simplicity's user avatar
  • 48.2k
20 votes
1 answer
12k views

How to turn URL into IP address using boost::asio?

So I need some way of turning given Protocol://URLorIP:Port string into string ip int port How to do such thing with boost ASIO and Boost Regex? Or is it possible - to get IP using C++ Net Lib (boost ...
Rella's user avatar
  • 65.9k
18 votes
8 answers
71k views

Android Gradle Sync failed: Could not resolve all artifacts for configuration ':classpath'

The error is the following: Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'....
Harish Kumar's user avatar
18 votes
1 answer
23k views

Choose DNS server for resolving hostnames in Java

resolving a hostname to an IP address is rather easy in Java by using the InetAddress class like this: InetAddress address = InetAddress.getByName("www.example.com"); But this method uses the DNS ...
coroner's user avatar
  • 543
17 votes
3 answers
23k views

Subversion resolve all conflicts quickly

When I have several conflicts, is there a way to resolve them all by just telling SVN to keep the version that is in the repository? Unfortunately, we're still using 1.4.
nategood's user avatar
  • 11.9k
17 votes
4 answers
8k views

Android Studio Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'

I installed Android Studio and when I try to import a project from gradle this resolve error shows up: Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandling'. I ...
EvilBurrito's user avatar
16 votes
4 answers
36k views

android - Cannot resolve method getSystemService issue

I'm experiencing the problem concerning getSystemService method, as the Android Studio IDE keeps telling me it just cannot resolve this method. As far as I've read it might come out from the fact, ...
ArturS's user avatar
  • 733
15 votes
5 answers
10k views

In C#, how do I resolve the IP address of a host?

How can you dynamically get the IP address of the server (PC which you want to connect to)?
user avatar
15 votes
3 answers
11k views

How to merge using Meld on Linux

I want to resolve some conflicts of an SVN file using Meld. I'm using the Head version and my version to resolve the conflicts. I am unable to find how to do the merge operation and resolve the ...
Jabez's user avatar
  • 1,923
15 votes
2 answers
2k views

Angular 2 route async resolve does not keep the location on navigate

I try to navigate user to error page when trying to access not allowed page. The problem is that the skipLocationChange does not work in this occasion. It navigates to error page but the url changes ...
izupet's user avatar
  • 1,549
14 votes
3 answers
16k views

NestableException cannot be resolved when using apache.commons.configuration

Im using the following: import java.util.Collections; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.apache.commons.configuration.XMLConfiguration; and i ...
Noam Shaish's user avatar
  • 1,623
14 votes
2 answers
17k views

React Webpack 4 Resolve Alias

I'm having difficulty getting resolve alias to work in my React app using WebPack, and everything I've tried from google results don't seem to make a difference. Here is my resolve from webpack. C:\...
Richard Whitehouse's user avatar
14 votes
1 answer
15k views

Dns.GetHostEntry error conditions and resolution methods

I have a very specific problem concerning Dns.GetHostEntry: A service uses Dns.GetHostEntry to retrieve all IP Adresses of a host, using the name of of the host. This has always worked fine. At a ...
cun83's user avatar
  • 406
13 votes
1 answer
35k views

Getting variable by name in C#

Is there a way to get the value of a variable just by knowing the name of it, like this: double temp = (double)MyClass.GetValue("VariableName"); When I normally would access the variable like this ...
Andreas's user avatar
  • 7,118
13 votes
1 answer
11k views

Understanding the DNS lookup mechanism

The specific query that led me to try and unpick this process was: Will a DNS lookup for a subdomain, such as assets.example.com, be faster if the parent domain, example.com, has already been ...
cantlin's user avatar
  • 3,226
13 votes
1 answer
52k views

Use curl --resolve with http proxy

There is a --resolve option in the curl utility that allows you to add a DNS entry and force a certain IP address when calling a host. Since version 7.21.3 cURL allows specifying an IP address, ...
YoyoS's user avatar
  • 649
12 votes
2 answers
62k views

How to use the option skip-name-resolve when using MySQLdb for Python?

I try to connect to database in a domain from my virtual machine. It works on XP, but somehow does not work on Win7 and quitting with: "OperationalError: (1042, "Can't get hostname for your address")"...
CreeTar's user avatar
  • 121
12 votes
9 answers
31k views

amazon ec2 instance unable to resolve host

I have a bunch of amazon ec2 instances. Today, for no reason I can determine, three of them became unable to resolve a specific url. When I try curl <url>, those three instances say "curl: (6) ...
Benubird's user avatar
  • 19.1k
12 votes
4 answers
32k views

Systematically resolve conflicting styles in css

I have some stylesheets from different sources in my web project. I want to harmonize them. Some styles I need from the one, some from the other. Is there a tool or method how to systematically ...
Frank Michael Kraft's user avatar
12 votes
1 answer
4k views

php getcwd() resolving target of symlink instead of current directory

As far as I am aware, php's getcwd() (and similar functions eg dirname(__FILE__)) are supposed to return the current directory of the file being executed. If the current directory happens to be a ...
myk00's user avatar
  • 329
11 votes
4 answers
11k views

W/ManagedChannelImpl: [{0}] Failed to resolve name. status={1}

I am working on and android app and, I implemented FireStore and now I keep on getting this error, it repeats aswell. W/ManagedChannelImpl: [{0}] Failed to resolve name. status={1} Anyone knows ...
Vital Verleyen's user avatar
11 votes
7 answers
28k views

Remove EC2's entry from resolv.conf

I have private DNS servers and I want to write them to resolv.conf with resolvconf on Debian on AWS/EC2. There is a problem in the order of nameserver entries. In my resolv.conf, EC2's default ...
Takuya Matsuyama's user avatar
11 votes
2 answers
15k views

Use resolve with angularjs component

I am trying to resolve a list of customers prior to rendering a page. Here is the state provider reference, where I have the resolve methods. angular.module('app') .config(($stateProvider) => { ...
Tori Huang's user avatar
11 votes
0 answers
2k views

Angular 7+: HMR (Hot Module Replacement) does not work if any route-resolve involved

HMR (Hot Module Replacement) is a great functionality, that works properly if no "Route-resolve" (see below) is present. If I remove resolve here: { path: 'new', component: ...
user avatar
10 votes
1 answer
13k views

Angular routing resolver not resolving

I'm having a situation with Angular where a routing data resolver seems like it's poised to return data correctly, but then resolution never happens. It's especially odd because I have a parallel ...
Green Grasso Holm's user avatar
10 votes
1 answer
6k views

How to use resolve with Angular 1.5 *components* and UI Bootstrap Modal

I am trying to pass data to a ubi modal that is an Angular 1.5 component using resolve. I know this is possible because it shows that resolve is supported for components in the uib modal documentation....
Cindy Conway's user avatar
  • 1,874
10 votes
4 answers
14k views

Wait an event to resolve a promise

I am using a node.js module that has a method without callbacks. Instead of it, has an event that fires when that method has finished. I want resolve a promise, using that event as callback securing ...
Tomas Gonzalez's user avatar
10 votes
1 answer
2k views

Angular 2 nested routes resolve execution

For example if I have following route organization: const appRoutes: Routes = [ { path: "", component: AppComponent, resolve: { app: AppResolver }, ...
Vlatko's user avatar
  • 1,385
9 votes
1 answer
7k views

promise resolve before inner promise resolved

I have a promise and I want it to resolve only when inner promise has resolved. Right now it resolves before the "resolve" function has been reached in the "loadend" callback. What am I missing? I am ...
Nicolas's user avatar
  • 2,221
9 votes
1 answer
5k views

Is there a replacement for url.resolve for creating URLs in Node?

I read on this post that you can concatenate URLs using url.resolve: url.resolve('http://example.com/', 'image.jpg') // 'http://example.com/image.jpg' But upon reading the documentation I see that ...
Andrew Einhorn's user avatar
9 votes
4 answers
4k views

How to speedup perforce auto resolve?

I would like to know how to speedup the perforce auto resolve when doing integration (merge yours and theirs if no conflicts exists). Currently is taking hours for ~5000 files when running it using a ...
sorin's user avatar
  • 166k
8 votes
3 answers
6k views

Can class_addMethod in Objective-C work only on a specific instance?

I am trying to write some dynamic code where a user can try calling a method from a specific instance of a class and have it be resolved at runtime. The implementation to retrieve the information ...
gtaborga's user avatar
  • 813
8 votes
2 answers
7k views

Resolve Windows drive letter to a path (subst and network)

I wonder if there is a universal way of resolving a path using a drive letter (such as X:\foo\bar.txt) into its equivalent UNC path, which might be one of the following: X:\foo\bar.txt if X: is a ...
Pierre Arnaud's user avatar
8 votes
1 answer
4k views

Is it ok to do the $http get request on ui.router's resolve in angularjs?

I have the following code (below), they work perfectly for me and to what I need at least. But Im kind of skeptical about this, Im having a feeling that its too good to be true. Since Im struggling ...
jofftiquez's user avatar
  • 7,648
8 votes
2 answers
2k views

URL's not being resolved when in UserControl (ASP.NET)

If I pass the derived class testA a PlaceHolder that contains a Hyperlink, with a url that starts with a tilde, it resolves it correctly. However, when I pass testB (identical apart from it ...
maxp's user avatar
  • 24.7k
8 votes
2 answers
5k views

PHPStorm can't resolve absolute include paths

I'm pretty new to PHPStorm, but I've ran into this problem where PHPStorm can't resolve the path which starts at the root of my project folder. Like this: PHPStorm can resolve the path when I put ...
Ruben's user avatar
  • 449
7 votes
4 answers
17k views

Angularjs: How to inject dependency from resolve routeProvider

I have a problem injecting resolve parameters from the routing into the controller. I'm setting the resolve value to an object {name: 'Banner', slug: 'banner'}, but I get an error. App.js var app = ...
Nícolas Amarante's user avatar
7 votes
2 answers
8k views

Missing files libresolv.9.dylib and libxml2.dylib

I have an old Xcode project for iOS where I used libxml2.dylib and libresolv.9.dylib. After installing XCode7. I can't find the files and I don't know where to search. Can someone help me?
Lorenzo's user avatar
  • 3,313
7 votes
1 answer
3k views

Angular 2 Resolve only works once

I'm trying to make a simple Resolve that returns a user. However, in my application I need to wrap the http component with my own class, which returns a Subject as observable. My Resolver works as ...
alreit's user avatar
  • 322
7 votes
2 answers
1k views

Clojure: resolve declares symbol

I get some weird behaviour when checking if a symbol can be resolved. user=> ok CompilerException java.lang.RuntimeException: Unable to resolve symbol: ok in this context, compiling:(...
Dominik G's user avatar
  • 1,469

1
2 3 4 5
13