How to get the current latitude and longitude in Android Application?
What is the simplest and most robust way to get the user's current location on Android?
I have tried to dig around for this, but I can't find a way (other than stepping one by one through past reviews) to see what proportion of my review decisions match the eventual outcome of the review.  This stat would give me confidence that I'm in line with the review guidance and not becoming too lenient in my old age. If it gets too low, I can then double check individual reviews to find out why I'm missing the mark. Today I saw a sentence:  She surely can do it.  What does that mean? How does it differ from:  She certainly can do it. Surely she can do it.  This slight difference in meaning of those sentences I am not able to notice. Could you please help me? Thanks in advance! Two submit buttons in one form I have two submit buttons in a form. How do I determine which one was hit serverside? An SSH tunnel via multiple hops Proof the Legendre polynomial $P_n$ has $n$ distinct real zeros What is the advantage to crushed garlic over minced garlic beyond texture? I use a lot of garlic in my cooking, especially minced garlic.  But lately I've been doing some more recipes with crushed garlic and while I love the texture of cooked garlic, I can't see how it could be better than minced garlic for the overall taste.  Is there an advantage to crushed garlic over minced garlic, beyond texture? homeomorphism of cantor set extends to the plane? Suppose C is a Cantor set in the Euclidean plane, or even in R^3. Suppose h is a homeomorphism of C onto itself. Can h be extended to a homeomorphism of the whole space? What about if h preserves the ´end points´ of the Cantor set? Seems that the latter is a necessary condition but I don´t know how to prove it. If you True Polymorph a zombie you create via Finger of Death, does it remain under your command? When you kill a humanoid with Finger of Death, it creates a zombie that is permanently under your command.  If you then True Polymorph that zombie, replacing its statistics with another creature's, does the creature remain under your control?  Related: How does the twitter bot work? Why does logging in to Stack Overflow keep me signed in to my Gmail email after logging out and regardless of the Stay signed in checkbox?  Steps to reproduce:   Browse to  and confirm you are logged out Browse to  and confirm you are logged out Click login Click Google Enter Email/Password and confirm Stay signed in is unchecked Click Sign in Click logout (up top) Click Logout (down below) Browse to  and confirm you are still logged in Click Sign out &lt;- Shouldn't clicking Logout on Stack Overflow be doing the same thing as this? Browse to  and confirm you are logged out     Answers are making sense but my frustration is that clicking Logout (twice) on StackOverflow essentially does nothing. If I proceed to click login and Gmail I am immediately authenticated because I still have an active Gmail cookie. In order to effectively logout I need to click Logout twice on Stack Overflow and then manually browse to  and Sign out. Adding shapefile or feature class as layer in ArcGIS Desktop using Python/ArcPy? Stop iCloud automatic download to harddrive How do I stop iCloud from downloading files to my hard drive? I opened up a folder and it immediately started downloading all contents In MTG, what happens when a player loses in multiplayer? In Magic: The Gathering, the rules for a player losing in a multiplayer game are quite complex, so I'd like to try to understand them by example. I would be happy to ask each of these situations as a separate question if that is preferred, but they all seem related, and I would love to have one place to look up all of these answers.  Let's say I'm playing with two friends, Bob and Chloe, in a simple free for all. Unfortunately, I lose. When I lose, suppose the following:   I controlled an  which has exiled Bob's , does he get his bear back? I have a  on the stack targeting Chloe, does Chloe take the 2 damage still? Earlier in the turn I cast  to prevent damage to one of Bob's . If it later takes 3 damage, will that damage be prevented? Something I controlled gave Bob a 1/1 soldier token. What happens to the token? Something Chloe controlled gave me a 1/1 soldier token. What happens to the token? I had a  enchanting one of Bob's army of . What happens to the bear? I had also played  on Bob's final . What happens to the last bear? Chloe had  my . What happens to the Clone? Are there any other situations specifically addressed by the rules? Proving $\sum_{k=1}^n k k!=(n+1)!-1$ How to prove that $\lim\limits_{x\to0}\frac{\sin x}x=1$? apex:inputField can only be used with sObjects I am trying to create a custom visualforce page that saves new opportunity contact roles to an opportunity. I am having trouble creating the first step of listing out all contacts that relate to that account. The error I am getting is...     Save error: Could not resolve the entity from  value binding '{!u.contact}'.   can only be used with SObjects, or objects that are Visualforce field component resolvable.   I do not understand why I am receiving this error. u.contact should resolve to a Contact object, which is an sObject. Am I misunderstanding something?  Here is my code...  Controller  public class ChooseContactController  {     public String accountId = ApexPages.currentPage().getParameters().get('accountId');     public Account account { get; set; }     public List&lt;UnfundedOpportunityContactRole&gt; unfundedOpportunityContactRoles { get; set; }      public ChooseContactController()      {          unfundedOpportunityContactRoles = new List&lt;UnfundedOpportunityContactRole&gt;();         List&lt;Contact&gt; contacts = [SELECT Id, Name FROM Contact WHERE AccountId =: accountId];         account = [SELECT Id, Name FROM Account WHERE Id =: accountId];          for(Contact c: contacts)          {             unfundedOpportunityContactRoles.add(new UnfundedOpportunityContactRole(c, 'The Man'));         }     }      public void Save() {}     public void Create() {}      public class UnfundedOpportunityContactRole     {         public Contact contact { get; set; }         public String role { get; set; }          public UnfundedOpportunityContactRole() { }          public UnfundedOpportunityContactRole(Contact contactParam, String roleParam)         {             this.contact = contactParam;             this.role = roleParam;         }     } }   VF page  &lt;apex:page controller="ChooseContactController"&gt;   &lt;apex:form &gt;     &lt;apex:pageBlock title="Choose a contact" mode="edit"&gt;       &lt;apex:pageBlockButtons &gt;         &lt;apex:commandButton action="{!create}" value="New"/&gt;         &lt;apex:commandButton action="{!save}" value="Save"/&gt;       &lt;/apex:pageBlockButtons&gt;         &lt;apex:pageBlockSection title="{!account.Name}"&gt;           &lt;apex:dataTable value="{!unfundedOpportunityContactRoles}" var="u"&gt;             &lt;apex:column headerValue="Contact"&gt;               &lt;apex:inputField value="{!u.contact}" /&gt;             &lt;/apex:column&gt;             &lt;apex:column headerValue="Role"&gt;               &lt;apex:inputField value="{!u.role}" /&gt;             &lt;/apex:column&gt;           &lt;/apex:dataTable&gt;         &lt;/apex:pageBlockSection&gt;     &lt;/apex:pageBlock&gt;   &lt;/apex:form&gt; &lt;/apex:page&gt; Entire function bounded by a polynomial is a polynomial Suppose that an entire function $f(z)$ satisfies $\left|f(z)\right|\leq k\left|z\right|^n$ for sufficiently large $\left|z\right|$, where $n\in\mathbb{Z^+}$ and $k&gt;0$ is constant. Show that $f$ is a polynomial of degree at most $n$. How to know if an object has an attribute in Python Is there a way in Python to determine if an object has some attribute?  For example:  &gt;&gt;&gt; a = SomeClass() &gt;&gt;&gt; a.someProperty = value &gt;&gt;&gt; a.property Traceback (most recent call last):   File "&lt;stdin&gt;", line 1, in &lt;module&gt; AttributeError: SomeClass instance has no attribute 'property'   How can you tell if a has the attribute property before using it? Why is the well ordering principle counter-intuitive? I read  that while 'The Axiom of Choice agrees with the intuition of most mathematicians; the Well Ordering Principle is contrary to the intuition of most mathematicians'. I don't understand why this is so. According to Wikipedia, 'the well-ordering principle states that every non-empty set of positive integers contains a least element'. This is quite a straightforward definition. Is it the way you derive the equivalence of the Axiom of Choice and well ordering principle that makes it counter-intuitive or the definition of the least element? Using 3rd party Python modules I'm currently developing a script for Blender to handle Mesh Frequency Decomposition.  The script is nearly complete, but i need one more thing: The SciPy library to compute eigenvalues and eigenvectors.  Following the installation instructions on , I'm able to install it as well as Numpy. Numpy works fine, but I can't even import SciPy:  Traceback (most recent call last): File "/CAF_FD.py", line 4, in &lt;module&gt; ImportError: No module named 'scipy' Error: Python script fail, look in the console for now...   By the way, I'm working on Linux 64 bit and I've installed SciPy and Numpy with my package manager.  Edit: When I try to use SciPy with a terminal prompt, it works.