I am trying to create a program to find the distance between two user inputted cities in java.  I've looked at a few other posts, and I've seen the Geocoder API recommended, to get the lat and lang values for the cities. However, I've only just started learning Java, and all those solutions were slightly complicated. Is there an easier method, or will I have to go about understanding API's?
How do I calculate the distance between two points specified by latitude and longitude?  For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to understand the relative accuracies of the approaches available.
Duplicate application icons in Ubuntu dock upon launch Preventing brute force attacks against ssh? What tool or technique do you use to prevent brute force attacks against your ssh port. I noticed in my Security logs, that I have millions of attempts to login as various users through ssh.  This is on a FreeBSD box, but I imagine it would be applicable anywhere. Don't remember the exact start to the story, but it went something like "walking along a path" or something, and when he hears what sounds like a shotgun blast behind him, he then feels something strike him in the butt. He passes out, and when he awakens, he discovers that the "shotgun blast" was actually a miniature spaceship that exploded and shot miniature aliens into his body. The aliens prove to be very beneficial because they clean up all the toxins and other poisons in his body. They can be transmitted through kissing or sexual activity.  Any help with the name of the story would be greatly appreciated.  Dan This question, , seems to indicate $$\nabla_a \sqrt{g}=0.$$ Why is this the case? I've always learned that $$\nabla_a f= \partial_a f,$$ hence surely $$\nabla_a \sqrt{g}=  \partial_a\sqrt{g} \neq 0. $$  Where's the hole in my logic? I have a file with the lines like below.  title1:A1 title2:A2 title3:A3 title4:A4 title5:A5  title1:B1 title2:B2 title3:B3 title4:B4 title5:B5  title1:C1 title2:C2 title3:C3 title4:C4 title5:C5  title1:D1 title2:D2 title3:D3 title4:D4 title5:D5  How can I achieve this?   title1    title2     title3    title4 A1         A2         A3         A4 B1         B2         B3         B4 C1         C2         C3         C4 D1         D2         D3         D4 Does Lin's  assume that the 2 data sets have linear or monotonic tendencies? Or, can I measure the concordance between 2 data sets that have a sinusoidal tendency? Galois group of irreducible cubic equation The polynomial $f(x) = x^3 -3x + 1$  is irreducible, and I'm trying to find the splitting field of the polynomial.  We've been given the hint by our lecturer to allow an arbitrary $\alpha$ to be a root and then to check that $\alpha$ is a root, then $2-\alpha^2$ is also root. I've done this with no problem.  My issue is since this is a polynomial of degree $3$, there must be another root that is somehow related to $\alpha$ so that I can create the splitting field and in turn the Galois group of my polynomial but I have no idea what this last root could be. How to downgrade a package via apt-get? Shape of confidence interval for predicted values in linear regression I'm looking for an example of $2$ non isomorphic groups $G_1,G_2$  that are finitely generated and presented that have the same finite quotients (up to isomorphism) .  Thanks Is it now considered acceptable to follow a proper noun ... or any noun ... with a pronoun? E.g.      The President he issued a new executive order. proving $\left(1+\frac 1n\right)^{n} = 1 + \sum_{k=1}^n \{\frac 1{k!}\prod_{r=0}^{k-1}(1-\frac rn)\}$ using the binomial theorem I've begun cooking Asian food in the past year or so, and in many Korean and Chinese beef recipes, I see instructions to soak beef in water. Just plain water, not salt water or anything. And every recipe seems to have a different  time - from 5 minutes to like, multiple hours.  I inquired about this and was given various reasons for this step, including "to remove the blood (because it is simply undesirable", "To remove the blood, because it gives the meat a bad taste" or "To soften the beef".  I'm wondering:   Does soaking meat in water really remove that much blood? How much of a flavor component is blood and why would it give it a bad taste (especially since i've never soaked beef before and I've like the taste just fine)? What is the action of solute-free water on a piece of beef immersed in it? Can it really tenderise it to any degree, or is there any osmosis occurring or other such physical/chemical action? What is aperture, and how does it affect my photographs? Why Are Ethernet/RJ45 Sockets Magnetically Coupled? As the title says really, why do ethernet sockets need to be mag-coupled? I have a basic understanding of electronics, but mostly, I can't figure out the right search terms to google this properly. How to layout irregular paragraph shape I have found this in the cover of seminar(one tool to make slide) document.  The final result I have captured below:    The complete document can download .  I wonder how to make this. Is there any easy way? Why can't I tame my ocelot? I'm trying to make a cat house for my zoo on Minecraft. I have some untamed ocelots and I also want a few tamed ocelots. Fish only puts them in breeding mode. If a tag wiki becomes inaccessible due to a tag being eliminated, is the data destroyed? Or would it be able to be recovered by just recreating the tag?  On Gaming we had one tag for a particularly difficult case that a wiki entry was written for. There has been some debate as to what we should keep the tag as, which has led to the only instance of the tag being renamed a few times and eventually left on a new tag. The nightly script eventually cleaned out the original tag, and the wiki is inaccessible. So would I be able to retrieve this by reverting to the original tag, or is a rewrite of the wiki necessary? Installing particular versions when repo has newer versions? Let's have a metapackage which depends on the following packages  Depends: A (=2),  B (=2),  C (=2)   Note the '=' - I want to install these particular versions, not the most recent ones.  Additionally:  B depends on A(>=1)  C depends on B(>=1) and A(>=1)  If the most recent versions of A,B,C in the repository are 2 then this works.  Since I have put version 3 of A and version 3 of B in the repo sudo apt-get install my-meta-package refuses to finish with the following info:  The following packages have unmet dependencies:   my-meta-package: Depends: B (= 2) but 3 is to be installed                    Depends: A (= 2) but 3 is to be installed   If I manually install versions 2 of A and B then the metapackage installs correctly, which strongly suggests that there is no hidden dependency on A3 or B3. This is not a solution for the problem as the metapackage is installed automatically on many machines.  QUESTION: What to do to make sudo apt-get install my-meta-package install versions 2,2,2?  Additionally, is there a way I could get an extended info what actually creates the need for version 3 of A and version 3 of B? Travelling from India to canada via Dubai and London. Do I need a transit visa I am travelling to Calgary from Delhi. I have an Air India flight from Delhi to Dubai then British Airways flight from Dubai to London and Air Canada flight from London to Calgary. My query is "Do I require a transit visa." Plz help as I am travelling in four days