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

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.

The mechanism in this simple form would place a large operating burden on the root servers, with every search for an address starting by querying one of them.

Being as critical as they are to the overall function of the system, such heavy use would create an insurmountable bottleneck for trillions of queries placed every day. In practice caching is used in DNS servers to overcome this problem, and as a result, root nameservers actually are involved with very little of the total traffic.

652 questions
168
votes
6 answers

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
  • 1,781
  • 3
  • 12
  • 5
86
votes
1 answer

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 Typescript@4.0.3 and it was working fine, but now I updated its version to latest Typescript@4.1.3 and it is giving me a lot of errors. I am unable to find anything in documentations and not getting any Idea how to resolve…
Naila Akbar
  • 3,033
  • 4
  • 34
  • 76
80
votes
7 answers

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 issue I am having is getting rid of the errors via…
wlingke
  • 4,699
  • 4
  • 36
  • 52
55
votes
3 answers

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: "/dashboard", abstract: true, …
Yelnar
  • 674
  • 1
  • 7
  • 17
36
votes
2 answers

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) { Bar = bar; } public Foo(string…
stiank81
  • 25,418
  • 43
  • 131
  • 202
31
votes
1 answer

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 differences between resolve() and promise()?
Moon
  • 22,195
  • 68
  • 188
  • 269
29
votes
5 answers

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: "+result1); System.out.println("result2:…
sagar varsani
  • 533
  • 2
  • 6
  • 12
26
votes
5 answers

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() is now "http://www.foo.combar.html". How can I get…
Cpa
  • 353
  • 1
  • 4
  • 6
25
votes
2 answers

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. curl https://domain.com/dir/filename --resolve…
Ryan D.
  • 383
  • 1
  • 5
  • 9
25
votes
3 answers

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 configure the root resolver just like webpack-resolve-root…
Howard
  • 4,474
  • 6
  • 29
  • 42
22
votes
8 answers

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-alone line? Thanks.
Simplicity
  • 47,404
  • 98
  • 256
  • 385
20
votes
1 answer

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 candidate) - notice - we do not need long…
Rella
  • 65,003
  • 109
  • 363
  • 636
18
votes
1 answer

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 server which is used by the running system. Is there…
coroner
  • 513
  • 2
  • 6
  • 13
17
votes
4 answers

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 deleted the files in my Users .gradle folder and tried…
EvilBurrito
  • 823
  • 8
  • 14
17
votes
3 answers

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
  • 11,807
  • 4
  • 36
  • 44
1
2 3
43 44