unresolved external symbol when implementing memory management template class
Why can templates only be implemented in the header file?
Is transferring to another university an option for an unhappy PhD student? A library to convert ANSI escapes (terminal formatting/color codes) to HTML I'm looking for a code library that converts ANSI escape sequences into HTML color, via plain  tags or CSS. For example, something that would convert this:  ESC[00mESC[01;34mbinESC[00m ESC[01;34mcodeESC[00m ESC[01;31mdropbox-lnx.x86-0.6.404.tar.gzESC[00m ESC[00mfooESC[00m  Into this:  &lt;span style="color:blue"&gt;bin&lt;/span&gt; &lt;span style="color:blue"&gt;code&lt;/span&gt; &lt;span style="color:red"&gt;dropbox-lnx.x86-0.6.404.tar.gz&lt;/span&gt; foo   Converting breaks into &lt;br/&gt; isn't necessary, it's just the escape codes that I don't know. I could hack it together myself, but I'd probably miss something important like underlines or mess up how background colors work. I'd rather just sit on top of someone else's code.  Does such a tool (command line linux) or library (perl, python, or ruby preferably) exist? Found this when subscribing to jQuery tag. "unsubscribe | rss" is not shown correctly. Let $G$, $H$, and $K$ be abelian groups. Assume $G \oplus H \cong G \oplus K$. If each are finitely generated, then the structure theorem easily gives us that $H \cong K$. However, there are counterexamples in the general case, namely $H=\mathbb{Z}$, $K=\mathbb{Z} \oplus \mathbb{Z}$, and $G=\bigoplus_{i=1}^\infty\mathbb{Z}$.   I am wondering what goes wrong with the following argument:   Form the split short exact sequence  $$0 \to G \xrightarrow{i} G \oplus H \xrightarrow{\pi} H \to 0$$  where $i$ and $\pi$ are the inclusion and projection, respectively. Then don't we immediately get from the first isomorphism theorem that $H \cong (G \oplus H)/G$, which would contradict the counterexample above?   If we run this for the counterexample given, we get the sequence   $$0 \to \bigoplus_{i=1}^\infty\mathbb{Z} \to \bigoplus_{i=1}^\infty\mathbb{Z} \to \mathbb{Z} \to 0$$  which seems to still be short exact, even though here $G \cong G \oplus H$. But of course here we can see directly that $(G \oplus H)/G \cong G/G$, which is trivial. So what went wrong?   It seems to me to be something along these lines: In this case, the kernel of the projection is not the same as the original group, it is just, say, $0 \oplus \mathbb{Z} \oplus \mathbb{Z} \oplus \dots$, i.e. nontrivial from the second coordinate on, which just happens to be isomorphic to the original group. So if we form the other short exact sequence with $K$ in place of $H$, then the difference seems to be that we have two different projection maps with different (but isomorphic) kernels.   But I'm not really sure how to explain this in the general case, if my reasoning is correct to begin with.   Thanks in advance for any help! How to count derangements? I was going through .Suppose that there are n persons who are numbered 1, 2, ..., n. Let there be n hats also numbered 1, 2, ..., n. We have to find the number of ways in which no one gets the hat having same number as his/her number. Let us assume that the first person takes hat i. There are n − 1 ways for the first person to make such a choice. There are now two possibilities, depending on whether or not person i takes hat 1 in return:  A) Person i does not take the hat 1. This case is equivalent to solving the problem with n − 1 persons and n − 1 hats: each of the remaining n − 1 people has precisely 1 forbidden choice from among the remaining n − 1 hats (i's forbidden choice is hat 1).  B) Person i takes the hat 1. Now the problem reduces to n − 2 persons and n − 2 hats.  From this, the following relation is derived: !n = (n - 1) (!(n-1) + !(n-2))  I have a hard time understanding point B and the equation derived. I was trying to understand with an example of 4 people named A, B, C and D and the corresponding hats A, B, C and D. Everyone of them are supposed to wear any hat except their own matching hat i.e. A can wear B, C or D.  If suppose A wears B hat so we will be left with only 3 people and 3 hats. So I can understand "(n-1)!(n-1)" part but what i didn't understand is part B(marked above). Can anyone help? Is the electromagnetic spectrum discrete? I'm just starting to learn physics and I have a question (that is probably stupid.)  I learned that energy levels that the bound electron can have are discrete. I also learned that when an electron transitions from one level to another, a photon with a specific wavelength (energy) is created and released into the wild.  My question is this: are there holes in the electromagnetic spectrum, values of frequency that the created photon can't possibly have? Why Doesn't the Adamantium Bone Covering Kill Wolverine? I've seen the  here before, as well as on many sites on the web.  I've also seen different info on what was covered.  I'm not a huge X-Men fan, but I do enjoy the characters and stories, so I know I'm probably missing out on a lot, and may have missed the obvious along the way because I didn't read a particular series or something like that.  I had a relative die from leukemia a few years ago and that reminded me of basic junior high science: that red and white blood cells are produced in the bone marrow and must be able to reach from the marrow into the blood vessels.  The leukemia my relative had was the kind where the "bad" cells would surround the marrow and prevent the new "good" blood cells from getting out to the rest of the body.  So just how much of Wolverine's skeleton is covered with Adamantium?  If it's the whole thing, there'd have to be openings for new red blood cells to get out if he is to remain alive.  I've never seen a reference to this issue, is it ever addressed?  That also raises another issue along the same line: Are hard to reach areas, such as ball and socket joints covered?  If not, then stress on other covered areas could be transferred to the weaker uncovered areas, which would lead to breakage there.  And if joints like that are covered, is there anything to say how it was done?  Are there openings or gaps in the Adamantium covering on his body?  Are there any references to any of these issues that deal with them? I was told that computers with more than 2 gig's memory need a 64 bit operating system to utilize all RAM.  Is the 64bit Ubuntu download really JUST for AMD processors? I am asking because the disk image I downloaded says AMD64.  So will my new Intel 2.3Ghz Core i3 Dual Core processor work with 64 bit Ubuntu?  It runs the 64bit version of Windows without any qualm. How can I resize (not compress) multiple images in a MS Word document? In a blank document, I insert images (screenshots - all are of same size and same format) from a folder. I want to resize the images to a desired size. All now I am doing is selecting one image by one, setting its size. Word does not seem to have multiselect working for images.  Ideally, I want to select multiple images set its size in one go with out use of a macro. I'm pretty new to this and this is my first question here, any help would be greatly appreciated.  So basically what I want to achieve is a floor material as seen in this photo...    ...the reflections are very crisp but dim.  With a glossy shader I get the following results:    First picture: reflections are blurry  Second picture: roughness of the material looks right but reflection is bright red  Third picture: If tinted in any other color than white, it seems to produce the result I want. Reflection is sharp and gets tinted blue. What I need is the reflection to be tinted white.  Thanks for any help. Entering U.S. exactly on the day of visa "expiration date" How to install and use CDI on Tomcat? The use of hyphen in consecutive compounds I am not that punctuation-savy, so I have one question for my research title.  Currently it is      Social crowdfunding:  individual- and project-related determinants of success.    Empirical investigation on Kickstarter   Here I have two questions.   Is it right to say individual- or just individual?  Should there be a period after "Empirical investigation on Kickstarter"? Biblatex: nested citations with the \textcites command I'd like to type a citation within the text and another citation inside the parenthesis for the year, something like this:     The work of Author 1 (year; cited by Author 2, year)   For this, I've tried different options of the \textcite command but without results. Also I saw the solution posted , which works for multiple citations within parenthesis but not for in-text citations.  Any suggestion? Is it okay to ask a professor from another university for class lecture notes of a course that he offered on that university? I find two very interesting courses that were offered in the Spring 2019 semester at ETH Zürich. Unfortunately, their class lecture notes are not shared publically. I wonder if it is appropriate to email the professors and ask them for class notes. Layover at Tokyo Narita airport: can I travel outside, and what kind of visa would I need? I am travelling from Singapore to San Francisco and the airline has a layover of 7.5 hours at Tokyo Airport (NRT). I am wondering if I would be allowed to go out to experience the city for a while in some form a visitor visa.  I know Singapore has such facilities, but does anyone know if I can do it in Tokyo? Any suggestions or pointers are welcome. Note - I do not have a visa for Japan yet, but I am hoping that 1 day visitor visa could be possible at airport. I am trying to install Wordpress on Lubuntu. I followed the instructions . Including PHP Apache and MySQL setups. Apache and MySQL appear to be running fine.  However, when I go to http://localhost/blog/, I get the following error:     Neither /etc/wordpress/config-localhost.php nor /etc/wordpress/config-localhost.php could be found.   Ensure one of them exists, is readable by the webserver and contains the right password/username. Immediately, his insides started writhing as though he'd just swallowed live snakes -- doubled up, he wondered whether he was going to be sick -- then a burning sensation spread rapidly form his stomach to the very ends of his fingers and toes -- next, bringing him gasping to all fours, came to a horrible melting feeling, as the skin all over his body bubbled like hot wax -- and before their eyes, his hands began to grow, the fingers thickened, the knuckles were bulging like bolts -- his shoulders stretched painfully and a prickling on his forehead told him that his hair was creeping down toward his eyebrows -- his robes ripped as his chest expanded like a barrel bursting its hoops -- his feet were agony in shoes four sizes too small      Harry potter and the chamber of secrets   It is the description of the feeling of drinking Polyjuice Potion, which makes someone into a different person, from the point of view of Harry Potter turning into Gregory Goyle.  And I don't understand what 'bring him gasping to all fours' means, especially 'four'. Does four here mean number 4? Where are my installed applications? QGtkStyle was unable to detect the current GTK+ theme When I start any Qt app, I get this message in the terminal, and the Qt app doesn't use the same theme as my Gtk apps:  QGtkStyle was unable to detect the current GTK+ theme.   How do I make QGtkStyle detect my current GTK+ theme?  It seems that LXDE is using a settings daemon, and there is no gtkrc-2.0 file in my home folder.