I have the following files  // File : Node.hpp  #ifndef NODE_H #define NODE_H  template &lt;class T&gt; class Node { public:         Node(T data);       private:         T data_; };  template class Node&lt;int&gt;;     #endif   The second file is the Node.cpp  #include "Node.hpp"  template &lt;class T&gt; Node&lt;T&gt;::Node(T data) {         data_ = data;         next_ = 0; }   Now in the a.cpp file I have  #include "Node.hpp"  #include &lt;iostream&gt;  int main() {      Node&lt;int&gt; a(20); }   On compiling I get  meow@vikkyhacks ~/Arena/c/LinkedList $ g++ -I ./include/ lib/Node.cpp a.cpp -o main &amp;&amp; ./main &amp;&amp; echo &amp;&amp; rm main /tmp/ccswcJfR.o: In function `main': a.cpp:(.text+0x15): undefined reference to `Node&lt;int&gt;::Node(int)' collect2: ld returned 1 exit status   As you can see I have already template class Node&lt;int&gt;; to the Node.hpp, but still the linker is complaining about something which I believe is that it cannot find Node's constructor. How do I go about this ?  Duplicate Thread  This is not a duplicate of  because I already read that and its not helping me solve this problem. I need to know "How I can have the template constructor along with the class definition ?" and this is not discussed in the duplicate thread
Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)
Why is Cat5/Cat5e Ethernet cable rated 100MHz? As the questions says, is there any specific reason why Ethernet cable is rated 100MHz?  For a 100Mbps Ethernet the data rate is 100Mbps, and the baud rate is 125Mbaud, because of the specific line coding that it uses. What is the relationship between 125Mbaud rating of data transfer and 100MHz rating of cable?  Thank you. Why are the Degrees of Freedom for multiple regression n - k - 1? For linear regression, why is it n - 2? I'm reading a textbook and I see this question:    So there are 200 women, and the DF is 196, implying that the equation for DF is $n - k - 1$. There are 3 variables: bp, age, and type so $k == 3$. What's the intuition behind this?  Also, why is the degrees of freedom for linear regression n - 2? If I took a picture of a windmill on the horizon — given that I know the sensor size and the focal length of the lens and other factors to do with the shot — could I calculate how far away an object is from the photographer? How can I suspend/hibernate from command line? How can I suspend or hibernate my laptop using command line, without installing additional software? WPF Get Element(s) under mouse Why $\gcd(qb+r,b)=\gcd(b,r)$? Given: $a = qb + r$. Then it holds that $\gcd(a,b)=\gcd(b,r)$. That doesn't sound logical to me. Why is this so?    Addendum by LePressentiment on 11/29/2013: (in the interest of  and averting a duplicate)  What's the intuition behind this result? I only recognise the proof and examples solely due to algebraic properties and formal definitions; I'd like to apprehend the result naturally. Compute $\Gamma(2.7)$ All I know of the Gamma function is $$\Gamma(\alpha) = \int\limits_{0}^{\infty}x^{\alpha - 1}e^{-x}\text{ d}x$$ and the recursive formula $$\Gamma(\alpha) = (\alpha-1)\Gamma(\alpha - 1)\text{.}$$ A friend asked me to try to find $\Gamma(2.7)$. I assume this involves complex analysis, which I have absolutely no background on (except for the basic Euler formula). Using Wolfram, I found that  $$\Gamma(2.7) = e^{0.434821}$$ which suggests to me perhaps writing out $e^{-x}$ as a Taylor series: $$\Gamma(\alpha) = \int\limits_{0}^{\infty}x^{\alpha - 1}\sum\limits_{i=1}^{\infty}\dfrac{(-x)^{i}}{i!}\text{ d}x$$ but alas, this doesn't look helpful.  How does one derive that $\Gamma(2.7) = e^{0.434821}$? I'm trying to find a way to automatically clean/delete the temporary files from C:\Documents and Settings\user\Local Settings\Temp\ at shutdown/boot on my Windows XP Professional x64 SP2 machine.  The main reason for this is to clean Local Settings/Temp to remove old junk automatically. (I had thought I had this covered through Firefox settings, but I was only clearing temporary Internet files). Currently, there's around 3&nbsp;GB of temporary files, and I'd like to prevent this build up without having to remember to do anything on my part.  I have already looked at using  (explained in Super User question ), but it doesn't seem to touch that directory.  I'm aware of programs such as , but I would ideally like to use a solution that doesn't require additional software (so, I expect, something using a scheduled BAT/CMD script would be what I'm looking for).  One of the potential issues, I believe, is that there may be legitimate files in the Temp folder that may be needed on the next boot (for software installations or updates, for example) and the perfect solution would be able to distinguish those and leave them until they weren't needed (Note: I realise this perfect solution may not be reasonably possible).  I've already set up Disk Cleaner on a shutdown script, but when cleaning temporary files, Disk Cleaner doesn't clean this particular directory, and so I'm looking for alternative options (see Super User question  for a little more detail).  So, what are my options for automatically deleting the temp files from C:\Documents and Settings\user\Local Settings\Temp? Travelling to Italy without my spouse who is a UK citizen How can I use sed to replace a multi-line string? I've noticed that, if I add \n to a pattern for substituting using sed, it does not match. Example:  $ cat &gt; alpha.txt This is a test Please do not be alarmed  $ sed -i'.original' 's/a test\nPlease do not/not a test\nBe/' alpha.txt  $ diff alpha.txt{,.original}  $ # No differences printed out   How can I get this to work? How to disable requiretty for a single command in sudoers? I want to disable requiretty so that I can sudo within scripts, but I'd rather only disable it for a single command rather than everything. Is that possible within the sudoers config? How do I completely reset network settings? java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuterFilter The set of real numbers and power set of the natural numbers I have learnt that the cardinality of the power set of the natural numbers is equal to the cardinality of the real numbers. What is the function that gives the one-to-one correspondence between these two sets?  I have also learnt that there exists no set whose cardinality is strictly between the natural numbers and the real numbers. Is there a proof of this or at least some intuitiveness behind it? Dimensions with Rank-Nullity question $f:V \rightarrow V$, $\dim(V) = n$  a) If $n$ is odd, prove that there does not exist a linear transformation with $\operatorname{im}(f) = \ker(f)$  b) Is it false to affirm the previous statement if $n$ is even?  My answer: $$ i = \dim(\operatorname{im}(f))\\ k = \dim(\ker(f)) \begin{cases} n=2i                           &amp; \text {if $i=k$} \\ n=i+k   &amp; \text{if $n\neq k$} \\ \end{cases}  $$  b) Yes.  Is that a valid proof? Picking a $\delta$ for a convenient $\varepsilon$? I use youtube-dl to download videos for watching later offline. Usually, it works fine. However, due to frequent changes on the video sites, it sometimes requires a quick update. It wasn't a problem before on 13.04 but after upgrading to 13.10, I get  # youtube-dl -U It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.   I tried updating it via apt-get but there is no new package. So the app's update mechanism has been disabled and the maintainers aren't keeping up, what is the solution? How do I update it?  And why was it changed at all? It was updating a package manager version just fine in raring.   I'm already running into compatibility problems.   $ youtube-dl "http://vimeo.com/55784152" [vimeo] 55784152: Downloading webpage [vimeo] 55784152: Extracting information ERROR: Unable to extract info section; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.   QUICK UPDATE:  As requested,  # type youtube-dl youtube-dl is hashed (/usr/bin/youtube-dl)  # apt-cache policy youtube-dl youtube-dl:   Installed: 2013.08.29-1   Candidate: 2013.08.29-1   Version table:  *** 2013.08.29-1 0         500 http://pl.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages         100 /var/lib/dpkg/status Which lenses should be included in a travel photography kit? On a crop sensor camera, e.g. Canon EOS 7D, what would be the best kit to travel with around Europe for a few weeks? My shooting style will focus on landscape, architecture, and general travel shots (of note would be my lack of interest for portraits).     Limit to around 1-3 lenses, and I prefer light ones.   Crop sensor camera chosen to save on weight over a full frame option. Question is open to all brands for general guidance, but I will be using a Canon body.   Cost is not a factor, I will rent the lenses I do not already own.   Quality is of paramount importance. I will not have a tripod.   I understand some may consider this subjective, but I do believe that for a crop sensor body, with weight as a consideration, and a limit to the amount of lenses, a true best kit can be determined. Intuitive explanation of why $\dim\operatorname{Im} T + \dim\operatorname{Ker} T = \dim V$ I'm having a hard time truly understanding the meaning of $\dim\operatorname{Im} T + \dim\operatorname{Ker} T = \dim V$ where $V$ is the domain of a linear transformation $T:V\to W$. I've used this equation several times in many problems, and I've gone over the proof and I believe that I fully understand it, but I don't understand the intuitive reasoning behind it. I'd appreciate an intuitive explanation of it.  Just to be clear, I do understand the equation itself, I am able to use it, and I know how to prove it; my question is what is the meaning of this equation from a linear algebra perspective. JSF returns blank/unparsed page with plain/raw XHTML/XML/EL source instead of rendered HTML output