Best practice for caught exceptions not being used
Best practices for catching and re-throwing .NET exceptions
Should I vote to close a duplicate question, even though it's much newer, and has more up to date answers? I have seen this many times, a question is being asked because a previous, duplicate question was asked and answered a few years ago and has no longer relevant answers.  The  is to edit the old question, or add new answers to it, but it is not always happening.  I was wondering, should I still mark it as duplicate and vote to close it? Or just leave it as is? Integration of exponential and square root function Quote unquote (or end-quote), unseparated by the actual quotation Why draw blood from veins rather than arteries? Why draw blood from veins rather than arteries? Is it more convenient or safer? C, C++ and Java IDE for Ubuntu Is there an IDE which can run on Ubuntu that supports C, C++ and Java? I installed , but it only supported Java. I installed the C/C++ package manually, but that package gives an error if I include iostream.   Is there any other IDE which can satisfy my needs? Or can I get NetBeans with all packages pre-installed in it? Is there a free or open source library to read Excel files (.xls) directly from a C# program?   It does not need to be too fancy, just to select a worksheet and read the data as strings. So far, I've been using Export to Unicode text function of Excel, and parsing the resulting (tab-delimited) file, but I'd like to eliminate the manual step. Odd behavior in a QGIS plugin: my function is triggered twice I have a plugin with a function (triggered by a button) that selects a specific layer by name, then shows its attribute table. When I close the plugin and open it again, the attribute table pops up twice, and repeating this keeps adding another table popup. What's wrong?  Code:  def showTable(self):     for lyrs in QgsMapLayerRegistry.instance().mapLayers().values():         if lyrs.name() == "TestFeatures":             lyrTest = lyrs     self.iface.showAttributeTable(lyrTest) Applying Zorn's Lemma to natural numbers Zorn's Lemma states that if every chain $C$ in a partially ordered set $X$ has an upper bound then there is at least one maximal element in $X$.  Let $n\in \mathbb{N}$, $C_n \subset \mathbb{N}$ be the set containing the natural numbers $\{1,\dots,n\}$. Then if $k\le n$, $C_k\subset C_n$, so $C_n$ is a chain. Also, $C_n$ has an upper bound, such as $n+1$. But what is the maximal element of $\mathbb{N}$?  There's something I don't get in Zorn's Lemma statement. How to format hard disk in Ubuntu 14.04? Delegate OpenID to Google (NOT Google Apps) What to do with an Ubuntu disk image that appears as a WinRAR file? Is $\sum_{k=1}^{n} \sin(k^2)$ bounded by a constant $M$? I know $\sum_{k=1}^{n} \sin(k)$ is . How about $\sum_{k=1}^{n} \sin(k^2)$? Citation colour with Beamer + Hyperref + Natbib I'm using natbib for citation with a custom bibstyle. I'm working on a presentation using LaTeX beamer and for some reason the citation marker doesn't have the colour that is specified to hyperref. The citation marker is black instead of green. I'll give you a MWE:    \documentclass{beamer} \hypersetup{   colorlinks,   citecolor=green,   linkcolor=red }  \usepackage{filecontents} \begin{filecontents}{mybib.bib} @ARTICLE{Bar2011,   author = {F. Foo and F. Bar},   title = {Foo and Bar},   journal = {Journal of Foo},   year = {2011},   volume = {1},   pages = {1--3} } \end{filecontents}  \usepackage[comma,numbers,sort&amp;compress]{natbib} \bibliographystyle{plain}  \begin{document} Dummy referefence to~\cite{Bar2011} \bibliography{mybib} \end{document}   For the purpose of the MWE I have selected the plain bibstyle, however, changing that to something else (including the custom style I want to use) doesn't affect the label colour.    Is there any patch for this problem? Share your experiences on exploring iOS 7 with us..  Whether you found hidden or little-known feature of iOS 7 or can explain how a big feature makes a difference, we're looking for objective reports of how the new OS affects your workflow.  Also provide details on how to achieve that feature, and if possible, include a relevant image too (hold Home and Lock for a screenshot on your iOS device).    Please post one tip per answer. Please also check to see if your answer has already been posted - duplicate answers will be deleted in favour of the original answer on any given topic. To search answers for this question use inquestion:101382 (or inquestion:this, directly from the question page) in addition to your search terms in the search box in the upper right hand corner of this page. Does there exist a continuous function such that f(x) is rational for every irrational x, and f(x) is irrational for every rational x? Does there exist a continuous function such that f(x) is rational for every irrational x, and f(x) is irrational for every rational x? I can think of examples where this would be true, but I'm having a lot of trouble with the continuity. Let $u:\mathbb{C}\rightarrow\mathbb{R}$ be a harmonic function such that $0\leq u(z)$ for all $ z \in \mathbb{C}$. Prove that $u$ is constant.  I think i should use Liouville's theorem, but how can i do that? Help! Freeze first column in SharePoint List View? I am working in SP2013 , in a particular list view  we want to freeze first column on horizontal scrolling.  Please help on this if any one having idea/code/any reference URLS. How to reverse the pagination numbers of an archive? I have archive pages that each contain titles and excerpts from 10 blog entries. Both entries and archive pages are in reverse chronological order:   when a new blog entry is written its title and excerpt go to the top of the front page; when you are on one page and you click through to "Next page", you get the titles and excerpts for the 10 previous blog entries.   This is pretty standard for blogs.  But the archive pages are numbered by default in the same order. Thus Page 1 contains excerpts from the most recent 10 entries, Page 2 contains excerpts from the next 10 most recent, etc.  To be clear: at the moment, "Next page" refers to the page with the next higher number. Thus the front page, which contains excerpts from the most recent entry and the nine next most recent entries, is labelled Page 1, and the 10 entries posted before those 10 entries are on Page 2.  I need the page-numbering the other way round, namely in direct chronological order, so that for example if there are 97 entries then   entries 28-37 would be excerpted on Page 4, and the PREVIOUS page from there, containing excerpts from entries 18-27, would be called page 3.   How can I achieve this, whether by amending functions.php in the child theme (preferably), by writing a "Snippet" (next most preferred), or by amending archive.php in the Astra parent theme directly (least preferred, because of possible update problems)?  Edit  The following isn't a solution but it may be part of one. This re-numbers pages into direct chronological order, but unfortunately it also reverses the order in which they are shown (from reverse chronological to direct chronological). So it causes the front archive paget to contain excerpts from the earliest posts rather than the latest ones!  &lt;?php  add_filter('pre_get_posts', 'posts_by_forward_date');  function posts_by_forward_date($query) {   if(is_archive() || is_home()) {     $query-&gt;set('order', 'ASC');   } } ?&gt; Let $X\subset \mathbb{R}$ Lebesgue measurable, $|X|<|\mathbb{R}|$, is it true that $X$ is null? Let $X\subset \mathbb{R}$ Lebesgue measurable, $|X|&lt;2^{\aleph_0}$, is it true that $X$ is null?  Of course I am not assuming the Continuum Hypothesis.   EDIT: It might be helpful to know that all Borel measurable sets have cardinality either $\aleph_0$ or $2^{\aleph_0}$. Then a measurable set of cardinality strictly between those two must be Lebesgue but not Borel measurable. The literature defines multinomial coefficients (or extended bnomial coefficients) as   $$ \binom{n}{r_1,r_2,\cdots,r_l} = \frac{n!}{r_1!r_2!\cdots r_l!}$$ where $$ r_1+r_2+\cdots+r_l = n$$  Which is the coefficient of $x_1^{r_1}x_2^{r_2}\cdots x_l^{r_l}$ in expansion of $(x_1+x_2+\cdots+x_l)^n$.  Question: How do we call the coefficients of $x^r$ in expansion of $(x+x^2+\cdots+x^l)^n$. Is it bad to name them multinomial coefficients?  In case of binomial coefficients the two are same in expansion of $(x_1+x_2)^n$ and the expansion of $(x+x^2)^n$. Obviously the two are different for multinomial expansion.   Example: As $(x_1+x_2+x_3)^2= x_1^2+2 x_2 x_1+2 x_3 x_1+x_2^2+x_3^2+2 x_2 x_3$. The coefficients are $\{ 1,2,2,1,1,2 \}$. Are these MULTI-NOMIAL?  $ As (x+x^2+x^3)^2=x^2 + 2 x^3 + 3 x^4 + 2 x^5 + x^6$. The coefficients are $\{1,2,3,2,1\}$. Are these too the MULTI-NOMIAL?  I prefer different terminologies to avoid confusion. Therefore want to know how these are distinguished in existing literature.