How to create a class template including class in .h and two .cpp files?
Why can templates only be implemented in the header file?
How do I clone a generic List in Java? Ring isomorphism (polynomials in one variable) So when we view reputation, there is graph view. However, it seems to be off by a day. Here's what I mean:   I'm sure 70 + 20 + 15 is not 15. Its 105, which is what we see below:   And 40 + 10 is NOT 105, unless you did  :)     Anyways 40 + 10 is 50:   So yeah. Did you do what that post on codegolf says? Devs better fix that :) How much does it cost to have a custom ASIC made? Call C++ library in C# I have a lot of libraries written in C++. I want to call these libraries from C#, however, I have met many problems. I want to know if there is a book or guideline to tell me how to do that. What is a combo update and how is it different than the regular update? What is a combo update and how is it different from a normal update? $gh = hg, \ \gcd(|g|, |h|) = 1\Rightarrow|gh| = |g||h|\ \ (|a|$ = order of element $a)$ Let $G$ be a group and $g,h \in G$. I need to prove that if $g$ and $h$ commute and their orders are coprime, then $|gh| = |g||h|$, that is, the order of their product is the multiple of their orders.  Since $gh = hg$, then $(gh)^{ lcm(|g|, |h|)} = e$, so, $|gh|$ divides $lcm(|g|, |h|)$. Since $\gcd(|g|, |h|) = 1$, then $lcm(|g|, |h|) = |g||h|$.  So, $|gh|$ divides $|g||h|$. Using the same variable as a fixed and random effect in Mixed Effect Models Destroy chunked block like Minecraft Alternate moves, first one to roll a 6 wins: what's the probability of winning? Question: Players A and B play a sequence of independent games. Player A starts and throws a fair die and wins on a "six". If she fails then player B throws the same die and wins on a "six" or fails otherwise. If she fails then player A gets the die and throws again, and so on. The first player to throw a "six" wins. Find the probability that player A wins.  Here is what I have done:  A wins right away: $\dfrac{1}{6}$  A fails B wins: $\dfrac{5}{6}\times \dfrac{1}{6}$  A fails B fails A wins: $\dfrac{5}{6}\times \dfrac{5}{6}\times \dfrac{1}{6}$  Unlike another similar question which the player B can win on "five" and "six" after player A fails on the first throw, in this case, the games do not seem to have an endpoint. How should I calculate the probability that player A wins then? How is Yu-Gi-Oh played with more than two players? YA dystopia novel of battle school with unusual military control scheme Some sort of battle school (no, not Ender's Game), where teens are being trained as military commanders.   The control system for their army hinges around some sort of system that requires extremely fine motor control -- being able to "push" around digital representations of military units using a special interface that interprets minute finger movements.  The boy protagonist eventually meets a girl in the battle school, and is astonished to learn that most people do not live as well as he does -- for instance, he gets a fresh jumpsuit outfit every day and disposes of the old one; this is a luxury.  One scene I recall is them kissing for a moment in some sort of underground passageway; the boy protagonist notes the exact length of the kiss, as he has been trained to have heightened time perception.  I don't recall much about other commander characters; I think they have different special abilities, and one other major character might have physical deformities, possibly because of postwar-radiation-related birth defects.  They have been training for an upcoming, prearranged final battle between all the existing national governments; the military units are very possibly robotic or entirely digital in nature, so as to avoid wasting materiel / human life.    They ultimately win the battle, just barely; I think the girl protagonist gives them an edge in the competition by hacking the timing / control system in favor of their team, causing a discrepancy which only the boy protagonist notices due to his heightened perceptions.  It was agreed that the winning government gets dominion over one of the few islands of land left that was not irradiated in some previous war; the protagonists get to live there as a reward for their victory.  I believe the boy protagonist later realizes he's gradually losing his ability to exactly quantify the passage of time.  Published no later than 2004, likely somewhere between 1980-2000, probably sometime in the '90s. Ubuntu 17.10 Upgrade Broke VMWare Workstation 12.5 Hi after upgrading to Ubuntu 17.10, vmware is now not starting.    I get the message:    /usr/lib/vmware/bin/vmware-modconfig: Relink `/lib/x86_64-linux-gnu/libbsd.so.0' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'   I am aware that there are patches available and I am attempting to apply these and recompile. I have run from the solution at :    cd ~   #Copy the vmmon source tar ball to your temporary location cp /usr/lib/vmware/modules/source/vmmon.tar .    #Extract the tar ball tar xf vmmon.tar    #Download the modified file that mkubecek posted and overwrite the one from the tar ball for VMware Workstation 12.5: wget -O ./vmmon-only/linux/hostif.c https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmmon-only/linux/hostif.c     #Wrap up the newly modified files into a tar ball replacing the original one sudo tar cf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only    #Rebuild the VMware kernel modules sudo vmware-modconfig --console --install-all   Failed to get gcc information.  gcc --version gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0 ...   Unforunately, vmware-modconfig is failing because of a dependency it seems on a particular gcc version. Am I on the right track? Any help with this issue would be much appreciated.  EDIT Thank you Steve, the below has gotten vmware going again. I've included minor correction. Tested and confirmed I could run a virtual machine.   sudo su    # do all below as root cd /usr/lib/vmware/modules/source tar xvf vmmon.tar  tar xvf vmnet.tar wget -O ./vmmon-only/linux/hostif.c https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmmon-only/linux/hostif.c vim vmnet-only/bridge.c cd vmmon-only/ make cd ../vmnet-only/ make cd .. mkdir /lib/modules/4.13.0-16-generic/misc cp *.o /lib/modules/4.13.0-16-generic/misc insmod /lib/modules/4.13.0-16-generic/misc/vmmon.o insmod /lib/modules/4.13.0-16-generic/misc/vmnet.o rm /usr/lib/vmware/lib/libz.so.1/libz.so.1 ln -s /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/vmware/lib/libz.so.1/libz.so.1 vmware-networks --start exit  # run vmware as normal user /usr/lib/vmware/bin/vmware I have been reading about depth-of-field and presume to have a sufficient understanding of what it means and how it is related to lens properties, lens aperture, focal length, sensor format size and probably even print dimensions in case the picture is being printed. I do have a question about how/if depth-of-field depends on the dimension of a pixel. Let me elaborate:  Given two sensors with differing pixel sizes: x and 4x, the latter sensor integrates more light per-pixel than the former, however, it might have a lower resolution if the sensor dimensions remain fixed. Theory suggests that the depth of field is determined by those circles-of-confusion which are very close to being an in-focus point, and this perhaps also means that these very small CoCs fall within the integration area of the same pixel. Now when a CoC becomes larger than a pixel (like also in the case of diffraction blur), there is some spreading of intensities among neighboring pixels and this would clearly lead to blur. However, if one was using the 4X sized pixel, even with a slightly larger CoC, the intensity would still integrate into the same pixel area, and would thus perhaps be in-focus? Is this the right assumption? And if so, is there any analysis of pixel-area dependence of depth-of-field? Moreover, depth-of-field is in some sense independent of the integration medium as it clearly occurs in analog film devices as well, so is there a trade-off or a difference in depth-of-field between film and digital cameras?  Please point me to the correct references for this question. Please correct me if there seems to be a fundamental issue with the assumptions made above. Upgrading my Wubi 11.04 to 11.10 I want to upgrade my current Wubi installation (Ubuntu 11.04) to Ubuntu 11.10. Is this possible to do inside Wubi? Or do I have delete Wubi from Windows, therefore deleting my current Ubuntu installation; and then install 11.10 via the Wubi installer?  Thanks Exact relationship between electric field and intensity I often see $I(t)\propto |E(t)|^2$. What is the exact form ? Which constants are missing to make this an equality and why are they so often omitted ? Number of equivalence classes of matrices under switching rows and columns I have been thinking about this problem:  Suppose we have all $R$ by $C$ matrices, where the values are integers in $[1,n]$. Two matrices are equivalent under interchanging rows and columns. For example,   1 5     0 0       would be equal to itself and to  0 0 1 5   and would be equal to  0 0  5 1   and would be equal to   5 1 0 0   How many unique such matrices are there?  Any ideas how to go about it? Any help much appreciated! I need a two word phrase to refer to a community of people (academia + non-academia) who come together to share/exchange their knowledge/ideas openly on topics of their interests/ specializations.  I would appreciate the use of small and easier/common words for the phrase. Single words are also acceptable. Feel free to throw out your creative ideas and newly invented phrases. Can't get my model out of wireframe mode I'm new to Blender and this site, so I apologize in advance if I'm not following any of the proper etiquette.  I'm no artist, but I'm trying to learn Blender so that I have some programmer art for me to work around in Unity.    I followed a tutorial for making a basic human model, I rigged it with rigify, and now I'm starting to export it following yet another tutorial.  The thing is, when I was trying to rig the model, I couldn't get the model to go transparent so that I could see the bones inside the model.  Eventually, I managed to get it into wireframe mode, but I can't get it back into solid mode.    It's probably just a display thing and not a property of the model itself, but I want to be sure.  I'm looking at the display options under the "Figure" pane in Blender, and none of the Display check boxes are checked, including the one that says "Wire".  I don't want to import a plain wireframe model into Unity, and even if that doesn't happen, this is functionality of Blender that I should really know anyway, so I'd appreciate any help that anyone has to offer.  If necessary, I can upload the .blend file, but I'm not sure what site people would prefer that I upload it to. In Oblivion, I had two favorite money-makers:   Dump all my stuff except some basic armor and potions, and raid an oblivion tower. The armor and weapons was worth lots, and selling it in Anvil made a lot of cash fast. Harvest an entire farm's worth of crops, create 'restore fatigue' potions and sell them.   Skyrim seems to spoil this:   Merchants have a max-amount per day/QOD/... instead of per item You can't carry as much (or maybe I have yet to discover the strength/feather spells) Alchemy is a lot harder (most common items go into food recipes now, which don't sell for those prices) On top of that, once a dungeon is cleared, it doesn't respawn - so no 'farming' familiar dungeons?   What are some easy/repeatable money making methods in Skyrim? Which are most efficient effortwise/real-life-time wise?