LNK2019 Error even though all files are added to project
Why can templates only be implemented in the header file?
I was thinking about something the other day (that is probably stupid), and thought this would be a good place to talk about it.  If someone wanted to draw its family tree over the last 1000 years, he'd write a binary tree with a depth of about 40 (counting 25 years on average between each generations). This tree would have 240 leaves, or about 1012 ancestors on the deeper level. That is obviously much more than the total world population and a stupid figure when you think about it.  The only explanation that I can think of is that a real genealogy tree must have "linked" branches at several levels that change the actual number of ancestors. Anyway, for an average person, how many ancestors would that make? Could one assume that all or nearly all of the persons that lived in its country or world region a 1000 years ago would be part of its ancestors? If an polynomial has a complex root, is it necessary that its conjugate is also a root? If an polynomial has a complex root, is it necessary that the conjugate of that root is also a root of the polynomial? I am not sure about this. Please comment on this. Can I, as a reviewer, tell authors to get a native English speaker to proofread their paper? I am reviewing a paper for possible publication in a respected journal. The English in the paper is very poor. The authors are clearly not native English speakers. I want to write something to the effect of the following in my review.   I advise the authors to find a native English speaker to proofread the manuscript.    My question: Is this appropriate in a review?  On one hand, I think it is good, constructive advice. The paper would be significantly clearer if someone spent a few hours helping them fix it up. I can try to help them through reviewer comments, but it would be much easier if someone could help them in person. The authors are located in a western English-speaking country, so they should be able to find someone.  On the other hand, I don't want to be "the mean reviewer." I understand that English can be difficult to master for immigrants. Perhaps there is a more diplomatic way of saying this. Why doesn't C# support implied generic types on class constructors? C# doesn't require you to specify a generic type parameter if the compiler can infer it, for instance:  List&lt;int&gt; myInts = new List&lt;int&gt; {0,1,1,     2,3,5,8,13,21,34,55,89,144,233,377,     610,987,1597,2584,4181,6765};  //this statement is clunky List&lt;string&gt; myStrings = myInts.     Select&lt;int,string&gt;( i =&gt; i.ToString() ).     ToList&lt;string&gt;();  //the type is inferred from the lambda expression //the compiler knows that it's taking an int and  //returning a string List&lt;string&gt; myStrings = myInts.     Select( i =&gt; i.ToString() ).     ToList();   This is needed for anonymous types where you don't know what the type parameter would be (in intellisense it shows up as 'a) because it's added by the compiler.  Class-level type parameters don't let you do this:  //sample generic class public class GenericDemo&lt;T&gt;  {     public GenericDemo ( T value )      {         GenericTypedProperty = value;     }      public T GenericTypedProperty {get; set;} }  //why can't I do: int anIntValue = 4181; var item = new GenericDemo( anIntValue ); //type inference fails  //however I can create a wrapper like this: public static GenericDemo&lt;T&gt; Create&lt;T&gt; ( T value ) {     return new GenericDemo&lt;T&gt; ( value ); }  //then this works - type inference on the method compiles var item = Create( anIntValue );   Why doesn't C# support this class level generic type inference? Noticed that sometimes when there are 10+ answers to a question - some answers look like they have \n\n...\n line breaks in the end, so the body of the answer has incorrect height.  It probably has something to do with ViewHolder or adapter not setting correct row height. Although as far as I know, it should do this according to text amount/length. Import curly brackets from MathDesign (Utopia) I am using Fourier maths fonts with Utopia text (\usepackage{fourier}) for a book project, but I'm not satisfied with the curly brackets \{ and \}. They are too slim, and barely distinguishable from other brackets in font size 10. Utopia with MathDesign (\usepackage[utopia]{mathdesign}) seems to have better-looking curly brackets.  Is there a way of importing just the curly brackets from MathDesign to my document, sticking to Fourier otherwise. And are the curly brackets defined by the maths fonts even if they are used outside math mode, since with MathDesign you get better-looking brackets in normal text, too.    Following egreg's answer I added the suggested lines, but the sizes of the bigger brackets are incorrect. When I load type $\{\bigl\{\Bigl\{\biggl\{\Biggl\{$, this is what I get:    After a bit of research, I've found that the cause seems to be the amsmath package. I'm relying on amsmath quite heavily, so it would be nice to find a fix. Unfortunately, I have almost no experience in working with fonts in LaTeX myself.  Below is a working example:  \documentclass{article}  \usepackage{amsmath} \usepackage{fourier}  \DeclareSymbolFont{mdsymbols}     {OMS}{mdput}{m}{n} \DeclareSymbolFont{mdlargesymbols}{OMX}{mdput}{m}{n} \DeclareMathDelimiter{\lbrace}    {\mathopen}{mdsymbols}{"66}{mdlargesymbols}{"08} \DeclareMathDelimiter{\rbrace}    {\mathclose}{mdsymbols}{"67}{mdlargesymbols}{"09} \renewcommand{\textbraceleft}{%   {\fontfamily{mdput}\fontencoding{OMS}\selectfont\char"66}} \renewcommand{\textbraceright}{%   {\fontfamily{mdput}\fontencoding{OMS}\selectfont\char"67}}  \begin{document} $\{\bigl\{\Bigl\{\biggl\{\Biggl\{$ \end{document} How does $e^{i x}$ produce rotation around the imaginary unit circle? how do we know the BBP formula for $\pi$ is valid? I recently read about the Bailey–Borwein–Plouffe formula for calculating the $n^{\rm th}$ digit of $\pi$. I'm curious to how can we be sure that the formula is always accurate or correct?! Even if we can verify for every $\pi$ digit discovered till now with a "standard formula", how do we know that the formula is correct after those digits?  Also, what's the implication of these kind of BBP formulas for other "divine"/fundamental constants? can we learn anything else about the value of such constants and our universe through these? Any insight into the "supreme fascist" mind? What does it mean for a QFT to not be well-defined? It is usually said that QED, for instance, is not a well-defined QFT. It has to be embedded or completed in order to make it consistent. Most of these arguments amount to using the renormalization group to extrapolate the coupling up to a huge scale, where it formally becomes infinite.  First of all, it seems bizarre to me to use the renormalization group to increase resolution (go to higher energies). The smearing in the RG procedure is irreversible, and the RG doesn't know about the non-universal parts of the theory which should be important at higher energies.   I have read in a note by Weinberg that Kallen was able to show that QED was sick using the spectral representation of the propagator. Essentially, he evaluated a small part of the spectral density and showed that it violated the inequalities for the field strength $Z$ that are imposed by unitarity + Lorentz invariance, but I do not have the reference.  So what I would like to know is :   What does it take to actually establish that a QFT is not well-defined?   In other words, if I write down some arbitrary Lagrangian, what test should I do to determine if the theory actually exists. Are asymptotically free theories the only well-defined ones?   My initial thought was: We would like to obtain QED (or some other ill-defined theory) using the RG on a deformation of some UV CFT. Perhaps there is no CFT with the correct operator content so that we obtain QED from the RG flow. However, I don't really know how to make that precise.   Any help is appreciated. Quantum teleportation and no-communication theorem According to the Wikipedia article for the :     In very rough terms, the theorem describes a situation that is analogous to two people, each with a radio receiver, listening to a common radio station: it is impossible for one of the listeners to use their radio receiver to send messages to the other listener. This analogy is imprecise, because quantum entanglement suggests that perhaps a message could have been conveyed; the theorem replies 'no, this is not possible'.   According to the Jet Propulsion's recent article on quantum teleportation:   they can effect an entangled photon (B) with another photon (A) to change the state of the other entangled photon.  Doesn't this contradict what the no-communication theorem states ? Integral of $\frac{1}{(1+x^2)^2}$ I am in the middle of a problem and having trouble integrating the following integral:  $$\int_{-1}^1\frac1{(1+x^2)^2}\mathrm dx$$  I tried doing partial fractions and got:  $$1=A(1+x^2)+B(1+x^2)$$  I have no clue how to solve this since it is obvious there is no way to cancel out either $A$ or $B$ to get the other variable. Please guide me.  Thank you. How to set custom DNS server for Chrome browser? I have a local DNS server that resolves all URLs *.domain.tld to 127.0.0.1. Also, I have the production server with the same address *.domain.tld. They have the same names, because subdomains interact with each other, and I have hardcoded domain URLs. I can't change them in the production server.  The problem is to reach the production server from my developer computer without touching the DNS server and /etc/hosts.  I found some options for Chrome such as --dns-server, --host-rules, but none is working. I have Google Chrome 23.0.1271.64 and Chromium 22.0.1229.94 on Ubuntu 12.10 64-bit. Can infinitely many primes lie over a prime? Sydney Airport international airline transfer My dad is flying to Christchurch, New Zealand, for the first time and I booked him tickets with 1 stopover in Sydney. I booked with Qantas and I just realized that his connecting flight in SYD is operated by Emirates (codeshare). He is flying from MNL with Qantas and arrives in SYD at 6:10AM and yhe next flight to CHC is at  7:50AM with Emirates. He only has 1 hour and 40 minuted before his next flight, assuming the flight is on time.  I have never been in SYD myself so I don't know how it works. PS: I won't be applying for a transit visa for him as he won't be leaving the airport and I assume it's not a case of separate tickets but airline codeshare. My questions are:   Will Qantas allow luggage check-in straight to CHC?  If the answer is yes, can he take his boarding pass to CHC at the Transfer Desk to avoid long queues at Emirates check-in counter? If answer to #1 is NO, obviously he will have to claim baggage to check in with Emirates.  How long will it take to go through customs and Immigration? I am worried that 1 hour and 40 minutes won't be enough. Can he skip the queue and ask people to let him pass? Is there any desk at the Sydney airport I can contact to assist him? I cannot afford the Meet and Greet services offered by some companies at the airport. I am wondering if I can call the Sydney airport concierge to help my dad get to his next flight. I am willing to pay but not as much as the airssist or fasttrack charges.   Thanks. biblatex: change name of author according to language? Usually a name stays the same in whatever language. So, whenever I quote a work by Knuth -- be it in an English article or a German one -- I will quote him as Donald E. Knuth.  This is not always the case with ancient or medieval names. They are spelled differently in different languages. Two examples in English | German | French:   Aristotle | Aristoteles | Aristote Thomas Aquinas | Thomas von Aquin | Thomas d'Aquin   This means that when I write an English article, I need a bib-file that contains the English names, but when I want to write a German article, I need to go through my bib file and change the names accordingly. Depending on how often I in fact publish in English or German this could keep me busy and is prone to error.  So, I though, maybe I could have the different names already included in one single bib-file and let biblatex choose the correct name according to the primary language used in the document. Any ideas?  NB: I do not want to use in one single document both spellings Aristotle and Aristoteles (as the following MWE might make you think). Of course, if the article's primary language is English, then all the references to Aristotle will use the English spelling of his name. However, I want to be able to write articles in different languages, without (a) having to edit my bib-files each time or (b) generally maintaing not one single bib-file but two different ones, one for each language, or (c) having two distinct entries in one bib-file  MWE  % !TEX TS-program = lualatexmk \documentclass{scrartcl}  \usepackage{fontspec}         \setmainfont[Ligatures=TeX]{Times New Roman}  \usepackage[ngerman, british]{babel} \usepackage[babel]{csquotes} \usepackage[style=verbose,abbreviate=false,backend=biber]{biblatex}  \usepackage{filecontents}  \begin{filecontents}{\jobname.bib} @book{aristotle:ross:1924,     Author = {Aristotle},    % It is here, I think, that something could be done, e.g., ...     Title = {Metaphysics},     % ... british=Aristotle,ngerman=Aristoteles,french=Aristote     Editor = {William David Ross},     Commentator = {William David Ross},     Introduction = {William David Ross},     Hyphenation = {british},     Location = {Oxford},     Publisher = {Clarendon Press},     Volumes = {2},     Year = {1924}} \end{filecontents}  \addbibresource{\jobname.bib}  \begin{document}  \selectlanguage{british} Some English text.\footcite{aristotle:ross:1924}  \selectlanguage{ngerman} Etwas Text auf Deutsch.\footcite{aristotle:ross:1924}  \end{document} Limit of $\prod\limits_{k=2}^n\frac{k^3-1}{k^3+1}$ Calculate $$\lim_{n \to \infty} \frac{2^3-1}{2^3+1}\times \frac{3^3-1}{3^3+1}\times \cdots \times\frac{n^3-1}{n^3+1}$$ No idea how to even start. Android OS without Google Services? Can you create diagrams of chemical structures in LaTeX?   Example(s) of "chemical structure diagrams": On citing "common knowledge" statements I am an undergraduate student with no experience at all.  If you are writing a research paper, that you are planning to submit for publication, how do you state that a particular statement/fact is commonly known to all and it's dicoverer/inventor is not known, and that there exists no research paper that introduced the concept but there do exist various books/websites that discuss the very concepts and a few derivatives of the concept?  I am not able to cite a particular statement/bunch of statements as I am not able to find any research paper related to that at all.  The particular thing in question is:   What should I do? The generating function for the Fibonacci numbers