c++ unresolved externals lnk1120 and class template
Why can templates only be implemented in the header file?
How to calculate the sum of the data that have the same ID in the first column? I want to sum the values of the rows of my data that have the same ID in the first column. My data looks like   data.txt  Id    a    b    c    d    e 1     1    2    3    4    5 1     2    3    4    5    6 1     3    4    5    6    7 2     4    5    6    7    8 2     5    6    7    8    9 2     6    7    8    9    10 3     7    8    9   10    11 3     8    9    10  11    12 3     9    10   11  12    13 3     10   11   12  13    14 4     11   12   13  14    15 4     12   13   14  15    16 5     13   14   15  16    17 5     14   15   16  17    18   Required results  out.txt  Id    a     b   c   d   e 1     6     9   12  15  18 2     15    18  21  24  27 3     34    38  42  46  50 4     23    25  27  29  31 5     27    29  31  33  35 Sort Order on Close Vote Queue The Close-Vote queue is large and growing. I searched for definitive information on how that queue is sorted for reviewers, and the nearest I could find is that it is randomized - but that post was some years old.  Would it be possible to sort on order of votes already received? That is, all questions with 4 votes to close are surfaced first (in random order) to reviewers? Questions with 3 votes would come up before ones with 2, etc. In that manner a given question gets out of 'will it close?' limbo faster.   This feature request would, in my opinion, be supportable if the majority of reviewer votes were going to single-vote questions. I cannot (I think) actually find these numbers. If this is the case, the majority of the work is going to an ever-increasing queue, and proportionally fewer votes are being resolved.  Note there are other distributions that could help get in this direction without being a strict ordering, like weighting the chance a given question is surfaced to a reviewer by the number of votes. However, for discussion purposes I thought I'd keep it simple.  Usual apology if this has actually been addressed. Search is sad-making. How do I add a condition to a query? Why can't certain programs (like readlink) take input from a pipe? Predict probabilities from Firth logistic regression in R I'm using the logistf package in R to perform Firth logistic regression on an unbalanced dataset. I have a logistf object:  fit = logistf(a~b)   Is there a predict() function like on that's used in the lm class to predict probabilities for future data points? Or do I have to manually input the estimated parameters from the Firth regression. Is there a way to test an application where you simulate a hundred different clients connecting to a IIS server and asking the same data? At the customer where our project is running they have 400 computers and they often do stress tests with all computers. I on the other hand have only got my laptop... (and a development server).  (In my case the data is asked through a WebORB Gateway). Anyone know a simple method to swap the background color of a webpage using JavaScript? How to make `man` work for shell builtin commands and keywords? Search for singleton tags on questions Is there any way to search for questions that have a specific tag and only that lonely tag?  In other words, I'd like to be able to do something like the following to find questions that have a single tag and no other:  [mytag] tagcount:1   This would be very useful for tag cleanup situations to be able to do house-cleaning before nuking a tag. We were trying to come up with an easy way to generate a rational number in between two existing rational numbers with a fairly low numerator and denominator (the way we were doing this earlier was to find the average of the two rationals, but that results in a denominator of up to $c * d$. Does this inequality hold for all values of $a, b, c, d$? I have a Red Hat Enterprise Linux server (7.5 x86_64). I have OpenSSH version 7.4. I was asked to upgrade it to a later version for security reasons: Nessus states that . However the Red Hat software and downloads does not have the latest package RPM.  I found some clues on where to get the latest package for OpenSSH. I found , however, I do not know on how to upgrade it and trust this website. I do not want the SSH and other configuration to be modified by the ugrade.  I did find links but however they are not useful, for example .  I would like to know how to upgrade OpenSSH without using yum. default constructor for int Per the title, does $\displaystyle\sum_{n=1}^{\infty} \sin(\pi(2+\sqrt{3})^n)$ converge? Converge absolutely?   I'm stuck on this question, not sure how to approach it.  Thank you! When can a (finite) group be written as the quotient of some other group by its center? So if I'm given $H$, when I can conclude there is a group $G$ such that $H\cong G/Z(G)$? It's easy to show that non-trivial cyclic groups are not of this form. More generally, any group with the property that all finitely generated subgroups are cyclic (e.g. $\mathbb{Q},\mathbb{Q}/\mathbb{Z}$) cannot be of this form. Are there are any others? Problem with a sequence with multiple integrals How do I escape a single quote ( ' ) in JavaScript? I have an internet connection that I'd like to be enabled only during the day. With multiple household internet devices, this would need to be something disabled at the level of the router.  I don't believe the router offers this sort of functionality, but I'm reasonably familiar with setting up web servers and the like, and I'm wondering if I can set up some sort of proxy server on the internet that the router must go through and have that proxy only active at certain times of day.  It's a bit vague I know, but is something like this even possible?  If not, are there other solutions to the problem? Please help solve 'oracle-java7-installer' missing. Error below  dpkg: warning: files list file for package !['oracle-java7-installer' missing;][1]  assuming package has no files currently installed (Reading database ... 302933 files and directories currently installed.) Removing linux-image-extra-3.8.0-19-generic ... /var/lib/dpkg/info/linux-image-extra-3.8.0-19-generic.postrm: 6: /var/lib/dpkg/info/linux-image-extra-3.8.0-19-generic.postrm: Syntax error: ")"  unexpected dpkg: error processing linux-image-extra-3.8.0-19-generic (--remove):  subprocess installed post-removal script returned error exit status 2  Errors were encountered while processing:  linux-image-extra-3.8.0-19-generic  E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install.  Trying to recover: Defining commands/abbreviations that contain numbers I tend to use \newcommand to define macros for symbols I use often, e.g. \newcommand{\hankel}{H^{(1)}_0}.  One inconvenience of this approach is the fact that command names cannot include numbers.  What I ideally want is to map something like \H0 to H^{(1)}_0.  I imagine this could be done with some macro expansion/snippet package, or one might use \newcommand to define a command that takes a parameter, etc.  Before I start experimenting, though -- is there a canonical way of dealing with this problem? What is the difference between lands and mana? What is the relationship between lands and mana in Magic and what do each of them do?  A good answer should especially include how a new player should think about them.    Note:  This is an attempt to create a canonical question about the relationship between lands and mana in Magic.  Beginners are often confused about this given the same symbols are used to mean different things across basic lands, non-basic lands, and mana costs.  This can lead to confusion about , about , or even about .