Well, the title says everything. I get this message when linking(compilation is successful):  F:/Android/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/ ../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.ex e: ./obj/local/armeabi/objs/hellondk/Player/Renderer.o: in function Renderer::On SurfaceCreated():jni/Player/Renderer.cpp:63: error: undefined reference to 'void  GameObject::test&lt;void&gt;()'  GameObject.h:  class GameObject {     public:     ...     template&lt;typename T&gt; T test(); }   GameObject.cpp:  template&lt;typename T&gt; T GameObject::test() {  }   Renderer.cpp(using the template):  object = new GameObject(); ... object-&gt;test&lt;void&gt;(); // error here
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.)
How to prove for each positive integer $n$, the sum of the first $n$ odd positive integers is $n^2$? I'm new to induction so please bear with me. How can I prove using induction that, for each positive integer $n$, the sum of the first $n$ odd positive integers is $n^2$?  I think $9$ can be an example since the sum of the first $9$ positive odd numbers is $1,3,5,7,9,11,13,15,17 = 81 = 9^2$, but where do I go from here. gdal_translate- why jpg compressed tif is 2 times greater than jpg file? I read this sentence today:  If I were five years old again, I would sleep in every Saturday while I still had the chance!  I am confused why is had used in the last part. When the first part is referring to a hypothetical present/future then how can the last part be in past tense. The answer I received from a native speaker is that :  in type 2 and type 3 conditional sentences, a subordinate clause within the protasis or apodosis goes in the past (sometimes past perfect) tense.  Is this true? If yes, where can I find this information ? These are very advanced grammar concepts for me and any resource suggestion can be very helpful for me. The HDD I have my Ubuntu installed is about to fail. I would rather not lose 3 years worth of data, customisation and apps. I am looking for a way to move the complete system (SWAP included, because I'm not sure if I can relink the system to a new SWAP partition) to another HDD. But not the complete HDD&lt; only the partition containing Ubuntu, to a partition on a different HDD. Basically I'd like to do what I've been able to do with Norton Ghost for my Windows install. I thought about using Clonezilla but I think I would have issues with GRUB (Especially trying to boot from a different UUID than what is in the conf file). do you know of any way this could be done?  PS, my home directory is encrypted but that's not really an issue, because I can work around that.  EDIT: changed the explanation to make it clearer When is the Killing form null? Are comments safely hidden once the document is compiled? How does Cantor's diagonal argument work? Why am I getting "line 1: $' :\r': command not found"? I use Cygwin on my laptop (DOS). I have a collection of scripts from my colleagues, and my own. I am not an IT person, not knowledgeable in Unix. I am following my colleagues' syntax and able to manage a few simple things. The scripts worked well on my old laptop. I just changed laptop and installed Cygwin. When I run my scripts, they do not work. Here is one example of the error message I get: line 1: $':\r': command not found line 5: syntax error near unexpected token `$'\r'' line 5: `fi  Here are the top 5 lines of my script : iter=1 if [ -f iter.txt ]    then rm ./iter.txt  fi    Can someone please explain how I can get around this problem? Bats and rats are mammals. 1 and 2 are positive integers. Oaks and maples are trees. Carrots and cake are food.   I seek a word to describe this, the process of finding a concept that encompasses several given concepts. Is there such a word? Integral $\int^{ \pi /2}_{0} \ln (\sin x)\ dx$ $$\int^{ \pi /2}_{0} \ln (\sin x)\  dx$$  The answer is $- \frac{\pi}{2} \ln 2$.  I have changed it into $$\frac{1}{2} \int^{1}_{0} t d \ln t^{2}$$  But I didn't get the answer with it. How do I withdraw a paper from a journal after it was accepted but before it was fully published? On the advice of a senior colleague, I decided that I do not want to publish the paper anymore and with that journal. I wrote the editor several times; he has received the emails, but refuses to reply. I know he gets the emails because if its on other matters he has replied but not on the paper. I am ready to forfeit the processing fee I gave them but they refuse to reply and have already published the abstract of the paper to their site but not the full paper. Is legal action an option and do I have the right to sue? What are the guidelines in matters like these? "Stack Overflow requires external JavaScript from another domain" message Expected value as a function of quantiles? Show that $\frac{X}{X+Y}\sim Beta(\alpha,\beta)$ Let IG denote Inverse-Gamma distribution   .   If $X\sim IG(\alpha,1)$ and $Y\sim IG(\beta,1)$. Show that   $\frac{X}{X+Y}\sim Beta(\alpha,\beta)$   I tried with jacobian transformation taking $Z=\frac{X}{X+Y}$ and $W=Y$ then $$X=\frac{WZ}{1-Z};Y=W$$  $$\frac{\partial(z,w)}{\partial(x,y)}=\frac{1}{(1-z)^2}$$  $$f_{z,w}(z,w)=f_x(\frac{wz}{1-z})f_y(w)(1-z)^2$$ $$f_{z,w}(z,w)=\frac{1}{\Gamma{(a)}}(\frac{wz}{1-z})^{-\alpha-1}e^{-\frac{(1-z)}{wz}}\frac{1}{\Gamma{(\beta)}}w^{-\beta-1}e^{-\frac{1}{w}}(1-z)^2$$  but I'm stuck, in some place I read that $\frac{X}{X+Y}$ is a type 3 Beta distribution, but I can't show that. Node Package Manager got corrupted in some way, now it cannot be installed I ran into a problem today when I decided to use npm update -g in a nodejs app directory. This was a bad decision, because it caused me to run into a .   The solution is to reinstall nodejs and npm. Unfortunately when I go to install npm using sudo apt-get install npm it doesn't work.  The full error in the terminal is here:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that  some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies:  npm : Depends: nodejs but it is not going to be installed    Depends: node-abbrev (&gt;= 1.0.4) but it is not going to be installed    Depends: node-ansi but it is not going to be installed    Depends: node-archy but it is not going to be installed    Depends: node-block-stream but it is not going to be installed    Depends: node-fstream (&gt;= 0.1.22) but it is not going to be installed    Depends: node-fstream-ignore but it is not going to be installed    Depends: node-github-url-from-git but it is not going to be installed    Depends: node-glob (&gt;= 3.1.21) but it is not going to be installed    Depends: node-graceful-fs (&gt;= 2.0.0) but it is not going to be installed    Depends: node-inherits but it is not going to be installed    Depends: node-ini (&gt;= 1.1.0) but it is not going to be installed    Depends: node-lockfile but it is not going to be installed    Depends: node-lru-cache (&gt;= 2.3.0) but it is not going to be installed    Depends: node-minimatch (&gt;= 0.2.11) but it is not going to be installed    Depends: node-mkdirp (&gt;= 0.3.3) but it is not going to be installed    Depends: node-gyp (&gt;= 0.10.9) but it is not going to be installed    Depends: node-nopt (&gt;= 2.1.1) but it is not going to be installed    Depends: node-npmlog but it is not going to be installed    Depends: node-once but it is not going to be installed    Depends: node-osenv but it is not going to be installed    Depends: node-read but it is not going to be installed    Depends: node-read-package-json (&gt;= 1.1.0) but it is not going to be installed    Depends: node-request (&gt;= 2.25.0) but it is not going to be installed    Depends: node-retry but it is not going to be installed    Depends: node-rimraf (&gt;= 2.2.2) but it is not going to be installed    Depends: node-semver (&gt;= 2.1.0) but it is not going to be installed    Depends: node-sha but it is not going to be installed    Depends: node-slide but it is not going to be installed    Depends: node-tar (&gt;= 0.1.18) but it is not going to be installed    Depends: node-which but it is not going to be installed E: Unable to correct problems, you have held broken packages.   What can I do to get npm properly installed and running again?  Thanks. Do I have to recompile my application when I upgrade a third party jar? Suppose $X_n$ is the fortune of a gambler after $n$ th game. Then the game is called fair (Breiman 1968) if   $$E[X_{n+1} \mid X_1, \dots, X_n] = X_n \forall n$$  My question is why a fair game is not defined as the following   $$E[X_{n+1}] = E[X_n] \forall n$$ i.e. $$E[X_{n+1}- X_n]=0$$. This should be the proper definition as a fair game is where avg. gain is zero. Nothing conditioning should be there. The inequality is homogeneous, but I am not sure if that helps. Also, I was thinking about considering a concave function and apply Jensen or Karamata on LHS. EEA Family Permit: No appointments are currently available for this location My Austrian husband and I will be travelling to the UK in April 2019 so I've applied for the EEA (just like before). I can't really wait with my application till January (3 months until the trip) because we'll be abroad in February and I need my passport back for that.  Upon filling out the application I saw some appointments on Dec, 27 that I couldn't book because we'll be on vacation in another country that week.  For the last three days, there have been no appointments available at all, I keep getting the message "No appointments are currently available for this location" (that's for Vienna).  I have contacted the visa4uk support per Email. They told me to use the approved Internet browser and closed the ticket. I replied to their Email asking for further help since my issue wasn't of technical nature (I use an approved browser), but they don't seem to reply anymore.  So how can the situation with unavailable appointments be resolved?  13.12.2018 Edit after comment: My national residence permit is not the Article 10 card. How to bind RadioButtons to an enum? I've got an enum like this:  public enum MyLovelyEnum {     FirstSelection,     TheOtherSelection,     YetAnotherOne };   I got a property in my DataContext:  public MyLovelyEnum VeryLovelyEnum { get; set; }   And I got three RadioButtons in my WPF client.  &lt;RadioButton Margin="3"&gt;First Selection&lt;/RadioButton&gt; &lt;RadioButton Margin="3"&gt;The Other Selection&lt;/RadioButton&gt; &lt;RadioButton Margin="3"&gt;Yet Another one&lt;/RadioButton&gt;   Now how do I bind the RadioButtons to the property for a proper two-way binding?