Keep getting a pop up informing me that that my Google play servecis has stopped. I have restarted my tablet but not getting any joy. Samsung tablet
The following message keeps appearing on my Samsung Galaxy S4 phone screen about every three seconds  "Unfortunately, Google Play Services has stopped".    Is it actually a virus or it is a problem with the Google Play Service?  I have tried disabling the Google Play Service but the message keeps appearing.  I have Norton Mobile running on my phone to pick up on viruses and to alert me to any possible security issues and also Lookout. They haven't picked up anything.  Does anyone have any suggestions?
Why does Benford's Law (or Zipf's Law) hold? Both  (if you take a list of values, the distribution of the most significant digit is rougly proportional to the logarithm of the digit) and  (given a corpus of natural language utterances, the frequency of any word is roughly inversely proportional to its rank in the frequency table) are not theorems in a mathematical sense, but they work quite good in the real life.   Does anyone have an idea why this happens?  (see also ) I'm designing an algorithm to do the following: Given array A[1... n], for every i &lt; j, find all inversion pairs such that A[i] &gt; A[j]. I'm using merge sort and copying array A to array B and then comparing the two arrays, but I'm having a difficult time seeing how I can use this to find the number of inversions. Any hints or help would be greatly appreciated. Ever since adding an iTunes gift card to my account, I'm getting verification requests like crazy. I can't even download free apps. It takes me to my payment info and when I try to select none, I continually get a message under the payment info that says "you must verify your payment info to continue"  I don't want a credit card on file and would really like the none option to work. My ID shows I still have iTunes credit. How can author deal with late reviews? Another problem I personally struggle with in peer-review publication process is the situation when review takes really, really, really long. The precise definition of "long" is probably very area-specific: for example a paper in Maths will probably took longer to review than one in Physics. Many well-established journals and major publishers, sadly, prefer not to specify the "rules of the game" precisely, particularly how long the review process should normally take. Fortunately, I quite often serve as a referee with the very same journals and know the amount of time I am given to write a review. Unfortunately, when I am an author, I do not observe these deadlines to be always met. For example, a notable U.S. publisher would ask a reviewer to send a review in 2 months; but in practice a first review of my paper once took as long as 8 months.  As a rule of thumb, I usually start writing to editors with questions about "the status of my paper" in X+1 months time, when X is a deadline time for a reviewer to submit a review. This strategy is not particularly successful &mdash; what I usually get is a recommendation to be more patient. Since there is no "official" deadline time announced, there is no formal ground for complaints here.  Of course, such delays lead to a whole bunch of funny situations, particularly if a preprint is put online (e.g., on arXiv) and the results are presented in some conferences. Follow-ups with no official paper to cite, grant applications in which you can not justify by a solid publication, good research but bad bibliometrics or CV, to name just a few.   Could you recommend an efficient way to deal with this problem? Run a program from python, and have it continue to run after the script is killed Explain proof by contradiction. Center of mass in n dimension, possible? Is it possible to calculate the center of mass for some 20-dimension ($x_i, i=1,\ldots,20$) particles? If it is possible, how can I do that? How can I withdraw a publication from a predatory (fake) journal and resubmit to a legitimate journal? I have published a paper in a fake journal. I want to withdraw the paper from that journal.   After successful withdrawal from the fake journal, can I can submit the same paper to a legitimate journal? Selecting the Real Analysis Textbooks I am a sophomore in US with double majors in mathematics and microbiology. I am interested in self-studying the real analysis starting now since it will help me on my current research on computational microbiology, prepare for upcoming math research (starting on this Fall) on the analytic number theory, and prepare for the real analysis course I will take on Fall and Putnam competition. I just finished "Calculus with Analytic Geometry" by G. Simmons, "How to Prove It" by Daniel Velleman, and "How to Solve It" by G. Polya. I also read some portions of Apostol's Calculu Vol.I to get a deeper view on the calculus theories. I was originally planned to read Apostol's Calculus Vol.I and Spivak's Calculus first, but I think it would be a better idea to start with real analysis since it covers all ideas in those "advanced calculus" textbooks and much more. My current plan is to start with one "dumbed-down" real analysis textbook and one "comprehensive, detailed, and intermediate" textbook, and advance into Rudin's PMA (required textbook for my real analysis course) starting on Summer and use it in accordance with other real analysis textbooks. Could you help me on selecting one book from each category?   Elementary Real Analysis textbooks:  **Elementary Analysis: The Theory of Calculus (Kenneth Ross)  **Understanding Analysis (Steven Abbott)  **The Way of Analysis (Robert Strichartz)  **Real Mathematical Analysis (Charles Pugh)   Intermediate, detailed Real Analysis textbooks:  **Mathematical Analysis (Tom Apostol)  **Undergraduate Analysis (Serge Lang)  **Introduction to Real Analysis (Bartle, Sherbert) **Elements of Real Analysis (Bartle, Sherbert)  **Mathematical Analysis I (Vladimir Zorich)   Thank you very much for your time, and I look forward to your advice!   Sincerely, PK Salesforce REST API authentication? I feel like this should be really easy to do, but I can't find anything about it on the web. Is there a way, through either javascript or a java web servlet, to skip the subsequent authentication?  We are trying to use the REST Api in production, but the problem is, that each time you refresh the page in javascript, or delete the cookies in java, you have to login again to salesforce.  Is there some way to do an ajax call or the login in the background or whatever, so that you can have your application connecting to salesforce right away? Multiple Inheritance in C# Since multiple inheritance is bad (it makes the source more complicated) C# does not provide such a pattern directly. But sometimes it would be helpful to have this ability. For instance I'm able to implement the missing multiple inheritance pattern using interfaces and three classes like that: public interface IFirst { void FirstMethod(); } public interface ISecond { void SecondMethod(); }  public class First:IFirst  {      public void FirstMethod() { Console.WriteLine(&quot;First&quot;); }  }  public class Second:ISecond  {      public void SecondMethod() { Console.WriteLine(&quot;Second&quot;); }  }  public class FirstAndSecond: IFirst, ISecond {     First first = new First();     Second second = new Second();     public void FirstMethod() { first.FirstMethod(); }     public void SecondMethod() { second.SecondMethod(); } }  Every time I add a method to one of the interfaces I need to change the class FirstAndSecond as well. Is there a way to inject multiple existing classes into one new class like it is possible in C++? Maybe there is a solution using some kind of code generation? Or it may look like this (imaginary c# syntax): public class FirstAndSecond: IFirst from First, ISecond from Second { }  So that there won't be a need to update the class FirstAndSecond when I modify one of the interfaces.  EDIT Maybe it would be better to consider a practical example: You have an existing class (e.g. a text based TCP client based on ITextTcpClient) which you do already use at different locations inside your project.  Now you feel the need to create a component of your class to be easy accessible for windows forms developers. As far as I know you currently have two ways to do this:  Write a new class that is inherited from components and implements the interface of the TextTcpClient class using an instance of the class itself as shown with FirstAndSecond.  Write a new class that inherits from TextTcpClient and somehow implements IComponent (haven't actually tried this yet).   In both cases you need to do work per method and not per class. Since you know that we will need all the methods of TextTcpClient and Component it would be the easiest solution to just combine those two into one class. To avoid conflicts this may be done by code generation where the result could be altered afterwards but typing this by hand is a pure pain in the ass. UTF-8 all the way through Do I need internet/3G to use GPS? I have a Samsung Galaxy S2 that has some problems with the GPS: If I use internet my navigation works but when I turn the 3G off, GPS does not work.  Do I need internet/3G to use GPS? I have a register \count0=&lt;some-value&gt; and need to get the letter of the alphabet on the index of \count0. That is, if it is 1, I need an A, if 2, a B, etc.  Is this possible?  I'm reluctant sharing an MWE as it seems to overcomplicate things a bit:  \begin{tikzpicture} \node[regular polygon, regular polygon sides=7, minimum size=5cm] (A) {}; \foreach \i in {1,...,7}{     \count0=8     \advance\count0 by -\i     \node[circle, label=above:\scriptsize\the\count0, fill=black, minimum size=4pt, inner sep=0pt] (\the\count0) at (A.corner \i) {}; } \end{tikzpicture}   With the tikz package and the shapes.geometric tikz library.  This draws seven nodes labelled 1 .. 7 on a circle. I need to have A .. G instead of 1 .. 7. What is the Euler Totient of Zero? Wolfram MathWorld defines the Euler Totient function as follows:  The totient function phi(n), also called Euler's totient function, is defined     as the number of positive integers &lt;=n that are relatively prime to (i.e., do  not contain any factor in common with) n, where 1 is counted as being  relatively prime to all numbers   By this definition would $\phi(0)=0$? Example of a finite non-commutative ring without a unity Give an example of a finite, non-commutative ring, which does not have a unity.    I can't think of any thing which fits this question. I was thinking $M_2(\mathbb{R})$ but it has the identity. Any help is appreciated. Asking on Multiple Sites: "Soft-Migration" See also:   Many of the newer sites have a certain degree of overlap. With the creation of Chem.SE, I noticed quite a few questions on Physics.SE which could have benefited from the chem community and vice versa. There also are a few that could benefit from bio.SE.. Now these questions don't warrant a migration. They can be double-posted, but this doesn't lead to a smooth experience. Even when cross-linked, changes to either post (new answers,new comments,etc) aren't effectively relayed to the other site, and the two questions are just that-- two, separate questions. One solution that came to my mind was a &quot;soft migration&quot; option for mods. By this, a question on site A stays on site A. But, it appears in the site B question list as well. Edits/answers should bump it. Basically, there will be a placeholder item in the questions list of site B. It shows the votes/views/answers of the post on site A, along with the tags (maybe stylized differently). These should be an unobtrusive way to quickly identify what the site is. The post should also be bumped whenever the post is bumped on Site A, and it should display the rep/time/etc of the bumping user as usual. Here's a quick mockup of what happens on the site B question list:  Without being obtrusive or in-your-face (stuff like [migrated] is sort of in-your-face), the post is elegantly shown to be on Physics.SE (well, if you know the icon, anyway). The tags are italicized to show that they link to a different site tags, and the &quot;bumping user&quot; (me) has his/her rep on that site shown. We can also add an indicator on the question on site A () that shows that it was soft-migrated. We can use tooltips as well on the icons to tell us why they're here. After all, half of SE documentation is in tooltips.  Now I know that these issues will probably be raised:  Rep: An avid user on Site B gets no Site B rep for giving a good answer on Site A. Frankly, I don't care about this to much, but others may.  Implementation: It may get complicated. Internally, I'd propose that none of the question data is copied, rather Site A pushes the vote/bump data whenever a vote/bump happens. The easiest way to then implement the soft merge would be to have a table of questions soft-merged &quot;to&quot; site B on site B itself, with columns for all the vote/etc data. The questions table should have an extra column for &quot;soft-migrated to&quot;--that way Site A can determine where to push new data to on every vote/bump. Now, all Site B has to do is take the JOIN of the questions table and the soft-merge table and display them in the new questions list (or any list, for that matter). With some extra formatting, maybe. Of course, I may be oversimplifying this and I don't really know what I'm talking about ;-)  Is there a need? : Yes, I would say so. Such questions can get awesome answers is both the communities participate, but our don't-cross-post-much policy deters this. In the end, this will result in better post quality, making the Internet better. Also, as area51 grows, we will see this problem more and more, and this will become more and more necessary.   Thoughts? Any better ideas? Waffles?  Update: Another use case for this would be to soft migrate all MSO  questions over to child metas, effectively solving At college we use ArcGIS Desktop 10, but that does not function on my Mac so I have QGIS there instead.  I want to do my exercises with QGIS, but in ArcGIS Desktop we use .lyr files with ArcMap and .lyrx files with ArcGIS Pro, and they are not supported by QGIS.  Does anyone know, how I can connect the *.lyr files to my *.shp files to use them on my Mac with QGIS? Problem with Refsection The question of  made me wonder as to whether wizards, any of them, do practice religion. Whether there be magic-person only religions or shared muggle faiths, I do not recall any wizards (born in the wizard world anyway) saying that they did practice a religion.  Many of them do celebrate Christmas, but as was commented on the above linked question, there are many non-christian muggles that also observe Christmas. So I am not sure that can be an accurate identifier. Answering this question may link into identifying .