How do I limit the maximum number of authors displayed in the references.  Example:  @ARTICLE{2013Natur.495...76P,    author = {{Pietrzy{\'n}ski}, G. and {Graczyk}, D. and {Gieren}, W. and     {Thompson}, I.~B. and {Pilecki}, B. and {Udalski}, A. and {Soszy{\'n}ski}, I. and   {Koz{\l}owski}, S. and {Konorski}, P. and {Suchomska}, K. and   {Bono}, G. and {Moroni}, P.~G.~P. and {Villanova}, S. and {Nardetto}, N. and    {Bresolin}, F. and {Kudritzki}, R.~P. and {Storm}, J. and {Gallenne}, A. and    {Smolec}, R. and {Minniti}, D. and {Kubiak}, M. and {Szyma{\'n}ski}, M.~K. and      {Poleski}, R. and {Wyrzykowski}, {\L}. and {Ulaczyk}, K. and    {Pietrukowicz}, P. and {G{\'o}rski}, M. and {Karczmarek}, P.    },         title = "{An eclipsing-binary distance to the Large Magellanic Cloud accurate to two per cent}",            journal = {\nat}, archivePrefix = "arXiv",             eprint = {1303.2063},           primaryClass = "astro-ph.GA",         year = 2013,         month = mar,    volume = 495,         pages = {76-79},         doi = {10.1038/nature11878},         adsurl = {http://adsabs.harvard.edu/abs/2013Natur.495...76P},          adsnote = {Provided by the SAO/NASA Astrophysics Data System}   Instead all of the authors showing up I would like to have something like:  G. Pietrzynski, et al., An eclipsing-binary distance to the Large Magellanic Cloud accurate to two per cent. Nature, 495:76–79, Mar. 2013. doi: 10.1038/nature11878.   Many thanks!
I have several entries in my list of references that include of the order of 40 authors. Is there a way to make bibtex automatically reduce these lists to e.g. the first name + "et al."?  I don't want to edit the BibTeX entries manually and I cannot use biblatex. If at all possible I would also make as little changes as possible to the bibliography style.  There are similar questions, but none of those had a concise answer:       natbib e.g. seems to change only the reference within the text, but not the entry in the bibliography.  EDIT: I am using \bibliographystyle{unsrt} as style definition.
Why the "service --status-all | grep mysql" get many unrelated result? How to understand "with" in the following sentence? Not every job will end up with a success.   What is the meaning of "with" here? Why not use other preposition?  Could native speakers please describe the scene of this sentence for me? Thx. (Posted here as probably applies to all sites).  I was examining my reputation gain yesterday on Stack Overflow: 190. I believe I should have hit the 200 cap. Mainly due to         Respectively, I had 10, 7, 3, and 2 upvotes on those questions alone. There are a couple of other minnows in the list but the above alone should enable me to hit the cap.  There was a user removed sometime yesterday which knocked off 10 points (and possibly accounts for the disparity) but I think (1) the cap should have been recalibrated and (2) I answered (3) after this event before turning in for the night.  I checked all the usual suspects: the reputation graph on your profile and  the achievements tab, but they are all showing 190. Function with same name but different signature in derived class I have a function with the same name, but with different signature in a base and derived classes. When I am trying to use the base class's function in another class that inherits from the derived, I receive an error. See the following code:  class A {     public:     void foo(string s){}; };  class B : public A {     public:     int foo(int i){}; };  class C : public B {     public:     void bar()     {         string s;         foo(s);     } };   I receive the following error from the gcc compiler:  In member function `void C::bar()': no matching function for call to `C::foo(std::string&amp;)' candidates are: int B::foo(int)   If I remove int foo(int i){}; from class B, or if I rename it from foo1, everything works fine.   What's the problem with this? What's this? What is it? but not What's it? - Why? Can anyone give a cogent, simply described explanation of why the verb BE in:  What is it?  ... doesn't seem to be able to be contracted with the subject:  What's it? *  Compare the sentences above with:  What's this? What's that?  These are perfectly fine. In fact, the contractions here should be expected in almost all examples of spoken English. Answers with references to authoritative vetted sources would be greatly appreciated. Show that $\sum_{n=1}^{\infty}(n^{3}\sin\left(\frac{1}{n}\right)-n^{2}+\frac{1}{6})$ converges Let $t\in \mathbb R$. Prove that $\displaystyle{\sum_{n=1}^{\infty}n^{3}\sin\left(\frac{1}{n}\right)-n^{2}+t}$ converges iff $t=\frac{1}{6}$.  While the $(\Rightarrow)$ direction was fairly easy (as $a_n$ should converge to $0$, forcing $t=\frac{1}{6}$), i'm facing some hard time trying to prove the second direction, that is $\displaystyle{\sum_{n=1}^{\infty}(n^{3}\sin\left(\frac{1}{n}\right)-n^{2}+\frac{1}{6})}$ converges. I did notice that $a_n=a_{-n}$ and tried to write this series as a Leibnitz series, but had no luck since the sequence doesn't decrease. I also tried to prove absolute convergence but then again, no luck. Thanks. Why are lamps and mesh lights not illuminating anything? There are several techniques to do a 3 point lighting system.   How do you properly light a scene while using mesh planes as emission light sources?   I'm following , however despite setting up planes to act a lighting sources, the scene is still very dark.      Actual Blender file here: A random variable that induces a $\sigma$-algebra the same as the one in the sample space Solving a system of ODEs with the Runge-Kutta method I'm trying to get images in my document in two different ways:   On top of the entire page, centered On top of a single column   I tried it with both twocols and multicols. I ruled out twocols because it forces a new page every time you turn it on, because I need the abstract to be wide and the rest of the cover page to be two columns.  Here are some examples of both points (screenshot from a downloaded PDF):   I want to achieve both, but somehow I can only solve the first point with:  \end{multicols}  \begin{figure}   \centering     \includegraphics[width=0.5\textwidth]{figure}   \caption{Dataflow pipeline of the edge detector}   \label{fig:workflowedge} \end{figure}  \begin{multicols}{2}   Is it awkward to turn off multicols, then turn it back on again?  For my second point, I've tried everything, but almost always, the image doesn't show up at all! The only way I can get it to show at all is by specifying the H placement specifier, but that places the image inside the text where I defined it, not on top of the column.  This is my best try, but it hides the image and breaks all references to ??:  \begin{figure}[t!]   \centering     \includegraphics[width=0.25\textwidth]{figure}   \caption{Dataflow pipeline of the edge detector}   \label{fig:workflowedge} \end{figure}   and I'm getting the warning:  Package multicol Warning: Floats and marginpars not allowed inside `multicols' environment!.   How can I make a figure a non-float?  I also tried the figure* environment, but that just creates an image centered on top of the page, like my first point. Good keyboard layouts for typing (La)TeX When typing (La)TeX some keys are used a lot more often then in plain text, especially \, {, }, [, ], $, ^ and _. On most keyboard layouts these keys are rather cumbersome to type. The English QWERTY keyboard is a lot better than the German QWERTZ, but is still far from optimal.  Given that I mostly type mathematical texts in English, what keyboard layout would you recommend?  Bonus points for the following:   Ability to type non-English Latin characters, especially German umlauts. Some similarity to QWERTZ or QWERTY as I'm most used to these layouts (I currently use the US-International layout from Linux) Ability to type math symbols directly (Greek letters, \times, etc.) Robocall claiming to be IRS saying they are about to sue - Is it legit? We got a recorded call with a message claiming to be from the IRS.  It said they were giving final notice and preparing to file a lawsuit against us.  In our case, the message went to voicemail so the end was cut off, but it seemed like a scam all the way. (We don't have any pending problems with the IRS as far as we know.)  The question was whether this is a known scam? Let $P\in\mathbb{R}[X]$ be a positive polynomial.  I want to show that there exists $A,B\in\mathbb{R}[X]$ so that $P=A^2+B^2$    $\displaystyle P=a\prod_{k=0}^q(x-a_k)\prod_{k=0}^{2p}(x-b_k)=a\prod_{k=0}^q(x-a_k)\prod_{k=0}^p(x^2-2\Re(b_k)+|b_k|^2)$ where $a$ is the leading coefficient, $a_k$ are the real rooks, $b_k$ are the complex roots.  What can i do now ? I know that the identity $(a^2+b^2)(c^2+d^2)=(ac-bd)^2+(ad+bc)^2$ should come in handy, but I can't figure out :  1) How to show that the product real roots is a square  2) How to use the above identity for the complex roots.  If I can solve those two points, then I can solve the problem. Get rid of the question ban on Meta; suspend actively harmful users manually The definition of derivative of a function $f(x)$ is $$\lim_{h\to0} \frac{f(x+h)-f(x)}{h}$$  Using this definition, the derivative of $\sin\sqrt{x}$ will be:  $$\lim_{h\to0} \frac{\sin\sqrt{x+h}-\sin\sqrt{x}}{h}$$  $$\lim_{h\to 0} \frac{\cos\left(\frac{\sqrt{x+h}+\sqrt{x}}{2}\right)\sin\left(\frac{\sqrt{x+h}-\sqrt{x}}{2}\right)}{h}$$  Now i got stuck. How to find the limit or simplify this expression?  I get intuition that we have to use $$\lim_{x\to0}\frac{\sin x}{x} = 1$$  but that too is leading no where. I am unable to remove h from denominator.  NOTE  I know the derivative of $\sin\sqrt{x}$ is $\frac{\cos\sqrt{x}}{2\sqrt{x}}$ using chain rule, but this exercise was given to us for practice using division quotient. What's a concise way to check that environment variables are set in a Unix shell script? I've got a few Unix shell scripts where I need to check that certain environment variables are set before I start doing stuff, so I do this sort of thing:  if [ -z "$STATE" ]; then     echo "Need to set STATE"     exit 1 fi    if [ -z "$DEST" ]; then     echo "Need to set DEST"     exit 1 fi   which is a lot of typing. Is there a more elegant idiom for checking that a set of environment variables is set?  EDIT: I should mention that these variables have no meaningful default value - the script should error out if any are unset. How to select the most recent set of dated records from a mysql table I am storing the response to various rpc calls in a mysql table with the following fields:  Table: rpc_responses  timestamp   (date) method      (varchar) id          (varchar) response    (mediumtext)  PRIMARY KEY(timestamp,method,id)   What is the best method of selecting the most recent responses for all existing combinations of method and id?   For each date there can only be one response for a given method/id. Not all call combinations are necessarily present for a given date. There are dozens of methods, thousands of ids and at least 365 different dates    Sample data:  timestamp  method  id response 2009-01-10 getThud 16 "....." 2009-01-10 getFoo  12 "....." 2009-01-10 getBar  12 "....." 2009-01-11 getFoo  12 "....." 2009-01-11 getBar  16 "....."   Desired result:  2009-01-10 getThud 16 "....." 2009-01-10 getBar 12 "....." 2009-01-11 getFoo 12 "....." 2009-01-11 getBar 16 "....."   (I don't think  is the same question - it won't give me the most recent response) Proving that the sequence $F_{n}(x)=\sum\limits_{k=1}^{n} \frac{\sin{kx}}{k}$ is boundedly convergent on $\mathbb{R}$ Here is an exercise, on analysis which i am stuck.    How do I prove that if $F_{n}(x)=\sum\limits_{k=1}^{n} \frac{\sin{kx}}{k}$, then the sequence $\{F_{n}(x)\}$ is boundedly convergent on $\mathbb{R}$? Getting tabular statistics from table using QGIS? Are there QGIS tools that will allow users to get tabular statistics from their table?  I kind of expected I would be able to just open the table, select the field I was interested in, right-click on the field header and get something similar to this (screenshot taken from ArcGIS):    More specifically, I am looking for a QGIS alternative to the ArcGIS  and  tools, that offer a  you can retrieve about the tabular data.    Just after asking, I found  (see section 4.2 ) that describes how to find this functionality... Vector > Analysis Tools > Basic statistics.  I also found Vector > Analysis Tools > List Unique Values right next to it.  This gets me the list of unique values, but I would also like to see an additional column of frequency (count) of each unique item.  Is this similar tool available "out-of-the-box"? Manually clear saved question drafts I've seen lately that new question editing is stored somewhere for later use if we wander off the new question without posting it and then return back to the page. Which is a good functionality addition in it's own right.  What I'd like to also have is the Discard this draft functionality that would clear form data and forget it. Somehow we find an answer in the meantime and the question isn't valid any more.  So having a Discard saved draft or something similar would be a nice contra-functionality to auto-save to remove stored data. The way it's implemented now seems too hidden hidden and unpredictable to users.  Additional edit  When adding hidden auto functionality usually means creating the opposite as well by either giving the possibility to preference of not having automatism at all or giving the possibility to clear what's been auto saved.  Let's see how GMail doesn't work (and I think we all agree that from UX perspective it does the job as expected:   User clicks Compose message User starts writing a new email message User decides to not send the message and checks their inbox User clicks Compose message again A clean form is presented to user (old one being part of drafts)   I'm not suggesting we should have something like Saved drafts but we surely should have the possibility to clear previous question draft.  Since this new functionality was introduced I should point out that I would use the discard functionality more frequently than the saved one. I do welcome saving messages, but discarding of saved drafts is anything but a rare situation one might want to do. It wouldn't be a problem if this was a 1% against 99%. To me it's more like 50/50.  Best possible solution  When providing saved drafts there should (from the UX perspective) be the opposite functionality as well. Namely discarding of it. But first thing we should be asking ourselves is:    do users more frequently need pre-filled saved question draft or do users more frequently need empty form with the possibility to populate it with a saved draft   User testing should provide the usage frequency between the two and the one that's more likely to happen (my guess is that there would be a big difference between the two) should be implemented. So one of these:   Pre-populate question fields with saved draft on question form load, while also providing a button to clear the draft and start writing anew without the need to manually clear all the fields (which would be the optimal solution in case of a single field form) Question form should always load empty while also having a button that would pre-populate it with a saved draft.   I think this would be the best consensus related to saved question drafts and their usage. But as we've seen this issue has been swept under the rug for an indefinite time.