I am trying to create a mathematical formula to convert meters to decimal degrees.  Reading this article , I thought this generic formula:  x = (Value_in_meter * 0.00001)/1.1132  But I know it is not 100% correct, I should use the other values according where is my point.  I am using Google Maps Api, so, how to discover if my point is at 23N/S, 45N/S or 67N/S?  Complementing  I did this function:  public static double convertMeterToDegrees(double meter, double latitude){      double quotient;     double degree = Math.floor(latitude);     double modDegree = Math.abs(degree);      if (modDegree == 0){         quotient = 1.1132;     } else if (modDegree &lt;= 23){         quotient = 1.0247;     } else if (modDegree &lt;= 45){         quotient = 0.7871;     } else {         quotient = 0.43496;     }      return (meter * 0.00001)/quotient; }   Is it correct?
I am wanting to find a latitude and longitude point given a bearing, a distance, and a starting latitude and longitude.  This appears to be the opposite of this question ().  I have already looked into the haversine formula and think it's approximation of the world is probably close enough.  I am assuming that I need to solve the haversine formula for my unknown lat/long, is this correct? Are there any good websites that talk about this sort of thing? It seems like it would be common, but my googling has only turned up questions similar to the one above.  What I am really looking for is just a formula for this. I'd like to give it a starting lat/lng, a bearing, and a distance (miles or kilometers) and I would like to get out of it a lat/lng pair that represent where one would have ended up had they traveled along that route.
About fullscreen scrolling webpages There are recently many websites using full screen scrolling pages since Apple launched their own with the iPhone 5C. (website not available anymore, but a reproduction can be found )  Some other examples are:            Is there any study about this practice from the UX point of view? More than about the scroll highjacking, about the use of full screen content?  It seems to me that it's an easy way to present information to the user when used properly and in a simple way, just like a good Power Point presentation. A way to show the user the most important things in a beautiful and smart way.  I see many developers complaining nowadays about this kind of sites, mainly because of the scrolling highjack, but it seems to me users in general, as well as clients, like them.  Any thoughts about this? Include prior knowledge in regression model I've a classical dataset with real attributes and I want to perform a regression.  But, not all the entries in the training dataset are trustworthy; there is an attribute that I can turn into a confidence value (between 0 and 1) to say how much I can trust the label value. For example, if the confidence value is 0, I mustn't take the entry into consideration.  Is there a way to do this? Best way to save a ordered List to the Database while keeping the ordering I was wondering if anyone has a good solution to a problem I've encountered numerous times during the last years.  I have a shopping cart and my customer explicitly requests that it's order is significant. So I need to persist the order to the DB.  The obvious way would be to simply insert some OrderField where I would assign the number 0 to N and sort it that way.  But doing so would make reordering harder and I somehow feel that this solution is kinda fragile and will come back at me some day.  (I use C# 3,5 with NHibernate and SQL Server 2005)  Thank you Let $f$ be a continuous function on a set $E$.  Is it always true that $f^{-1}(A)$ is always measurable if $A$ is measurable?  I say no.  We know that $\bar{\psi(x)}:=\frac{\phi(x)+x}{2}$ where $\phi$ is the Cantor (or Cantor-Lebesgue) function and $\bar{\psi}:[0,1] \rightarrow [0,1]$.  We know this function maps a measurable subset of $C$ (the Cantor set) into a non-measurable set $W$.  A few observations about $\bar{\psi(x)}$.  It is strictly increasing and continuous, so it has a continuous inverse $\bar{\psi(x)}^{-1}$.  Thus $\bar{\psi(x)}^{-1}(W)=c \subset C$; that is, $\bar{\psi(x)}^{-1}(W)$ is non-measurable, but c is.  Is this correct? Can a sequence which decays more slowly still yield a converging series? In Bergman's companion notes to Rudin, he says that "If a sequence of positive terms has convergent sum, so does every sequence of positive terms which decays more rapidly." So given a sequence $\{a_n\}$ of positive terms such that $\sum_n a_n$ converges, if $\{b_n\}$ is such that $$ \lim_{n\to\infty} \frac{a_n}{b_n} = +\infty, $$ then $\sum_nb_n$ converges. I can prove this given $\{a_n\}$ and $\{b_n\}$. However, can we find $b_n$ which decays more slowly, i.e. $$ \lim_{n\to\infty} \frac{b_n}{a_n} = +\infty $$ such that $\sum_n b_n$ converges?  Similarly, we have the claim "if a sequence of positive terms has divergent sum, then so does every sequence of positive terms which decays more slowly." Can one do the maths of physics without using $\sqrt{-1}$? The use of imaginary and complex values comes up in many physics and engineering derivations. I have a question about that: Is the use of complex numbers simply to make the process of derivation easier, or is it an essential ingredient, without which it would be impossible to derive some results?   I can identify two different settings where the answer may be different:   It doesn't look like it is mandatory for results in Newtonian mechanics, General Relativity and classical electrodynamics. Can we say the same thing about quantum mechanics either way for sure?   Could this be a difference in quantum mechanics over the classical picture? How can I print the table of contents multiple times in my document? I am using also titletoc to improve how my table of contents. I would like to print the table of contents several times. How can I do it?  It does not work in the MWE:  \documentclass{article} \usepackage[utf8]{inputenc}  \begin{document}  \tableofcontents  \section{Hello} \section{Bye}  \tableofcontents  \end{document}     PS: I have this code in my document, in order to have no title for the table of contents.  \makeatletter \renewcommand\tableofcontents{%     \@starttoc{toc}% } \makeatother   PPS: \renewcommand{\contentsname}{}% Remove \tableofcontents' title/name will not work since I am using [french]{babel}. Don't show pending suggested edits to me after I run out of votes Now that I've reached 2k on Stack Overflow, I get access to the "Suggested Edits" review queue.  Although I only have 20 edits per day, the "suggested edit awaiting" icon in the top bar is always there and it bothers me a lot!  My suggestion is to apply one of three solutions:   Remove the suggested edits icon when we reach the maximum (50) edits Remove the Highlight (orange) on the suggested edits Remove the suggested edits part when we click on it   What do you think? Which is correct if I want to request for a pen?        Can I have your pen please?   May I have your pen please? How to correctly use the present perfect tense This  states that:  When you use the present perfect tense you have to be talking about a period of time that you still consider to be going on. For example, if it’s still morning, you can say, &quot;I’ve shaved this morning.&quot; If it is afternoon or evening, all of a sudden &quot;I’ve shaved this morning&quot; sounds really weird.  &quot;I've shaved this morning&quot; sounds more like past perfect, and indication of specific time (in the morning) makes this sentence incorrect.  Am  I spot on? Then what is the difference between the construct of past perfect, present perfect and future perfect? Let $y_n$ be a sequence such that  $\lim_{n\to \infty} y_n= y$ then prove that     $ \lim \dfrac{y_1+y_2+...+y_n}{n}= y$   My try:  As  $\lim_{n\to \infty} y_n= y$ then given $\epsilon&gt;0$ there exists $N$ such that $\forall n\ge N ;||y_n-y||&lt;\epsilon $.  Now $||\dfrac{y_1+y_2+...+y_n}{n}-y||\le n^{-1}\{||y_1-y||+||y_2-y||+...+||y_n-y||\}$  How to make this limit tend to zero? Cross-platform space remaining on volume using python I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way? Why shouldn't the denominator of the covariance estimator be n-2 rather than n-1? Auto-mounting network shares per user I have a server that has a number of CIFS shares that need to be accessed on a per-user basis. For example, I have a Music share which I have full access to, but my wife has read-only access.  When either myself or my wife log into our Ubuntu 11.04 laptop I would like these shares to be automatically mounted per user. Now I understand that if I mount as -t cifs without specifying a user then it will use the USER environment variable. However, I also need to specify a password, so how can I do that when each user has a different password?  I think my questions are:   Is there a way for me to have a per-user /etc/fstab? If not, is there a way to specify that a mount is only applicable to a certain user? Also, the share password is always the same as the local password. Is there a way to specify that this password should just pass through from the client to server rather than having to specify it in a credentials file somewhere?   Or maybe I'm missing something and there's a completely different solution. Can anyone help? The two sentences here both indicate that, at some point in the past, I performed some work:   I did work I worked   What is the difference between these two sentences? Does constructing one with did and the other with a simple past change the meaning? Disable commandButton after first click to prevent double submission I have an apex:commandButton on a visualforce page that invokes a method on the controller. There is currently no rerender value set for the button. Instead the controller method returns a PageReference to redirect the user as required.  E.g.  Visualforce:  &lt;apex:commandButton value="Save" action="{!save}"/&gt;   Controller:  public PageReference save() {     // save body ...      // return the user the a parent opportunity     return new PageReference('/' + opp.Id); }   Users are currently able to click on the resulting save button multiple times before the controller completes and returns the PageReference to redirect the browser to an opportunity.  How can I disable the commandButton after the first click?    I tried wrapping the commandButton in an actionStatus and facet, but the need to define the rerender property prevented the resulting PageReference redirect.  E.g.  This will render nicely in the browser and prevent multiple clicks, but doesn't redirect to the Opportunity on completion.  &lt;apex:actionStatus id="saveStatus"&gt;     &lt;apex:facet name="stop"&gt;         &lt;apex:commandButton value="Save" action="{!save}" status="saveStatus" rerender="saveParentBlock" /&gt;     &lt;/apex:facet&gt;     &lt;apex:facet name="start"&gt;         &lt;apex:commandButton value="Saving..." disabled="true" status="saveStatus"/&gt;     &lt;/apex:facet&gt; &lt;/apex:actionStatus&gt;     There is a similar question . I need to support an existing PageReference redirect, which slightly alters the requirements.  Force.com Discussion Boards:   Ideas: Why is $M\frac{dv}{dt} = v_{rel} .\frac{dm}{dt}$ correct and $(M - dm)\frac{dv}{dt} = v_{rel} .\frac{dm}{dt}$ wrong? Newton's 2nd law of motion can't be applied for mass-varying systems. Another force, known as Thrust must come to play. It can be measured using law of conservation of linear momentum. $$\text{Thrust} M.\dfrac{dv}{dt} = v_{rel} .\dfrac{dm}{dt}.$$   where $M$ is the mass of the system;   $\frac{dm}{dt}$ is the rate at which the mass changes;    &amp;    $v_{rel}$ is the relative velocity of the exhausted mass w.r.t to the main system.    This is what my book writes. Now, the left hand side of the eqn. represents force on mass $M$ whereas the right hand side represents the force due to variable mass. How can they be equal? During the application of thrust, $M$ does change and the equation had to be $$ (M - dm). \dfrac{dv}{dt} = v_{rel} .\dfrac{dm}{dt}$$ But that is not the book's equation. Why is mine wrong? What is the intuition? Access pictures from Pictures app in my android app Just like the iPhone has a UIImagePickerController to let the user access pictures stored on the device, do we have a similar control in the Android SDK?  Thanks. Evaluating $\int \frac{\sin\left(x\right)}{1+x^2}dx$ $$\int \frac{\sin\left(x\right)}{1+x^2}dx$$  I have tried to integrate by parts but it doesn't work. How do I evaluate it? Any advice, hint or well-thought solution will be appreciated. I have noticed that some browsers (in particular, Firefox and ) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you update one of these files, but the user's browser keeps on using the cached copy. What is the most elegant way of forcing the user's browser to reload the file when it has changed? Ideally, the solution would not force the browser to reload the file on every visit to the page.  I have found  and  suggestion to be useful. It turns out there is a term for this: auto-versioning. I have posted a new answer below which is a combination of my original solution and John's suggestion. Another idea that was suggested by SCdF would be to append a bogus query string to the file. (Some Python code, to automatically use the timestamp as a bogus query string, was .) However, there is some discussion as to whether or not the browser would cache a file with a query string. (Remember, we want the browser to cache the file and use it on future visits. We only want it to fetch the file again when it has changed.)