Does community wiki still have to be attributed?
Ownership of content in Community Wiki posts
How do you pass a member function pointer? I am trying to pass a member function within a class to a function that takes a member function class pointer.  The problem I am having is that I am not sure how to properly do this within the class using the this pointer.  Does anyone have suggestions?  Here is a copy of the class that is passing the member function:  class testMenu : public MenuScreen{ public:  bool draw;  MenuButton&lt;testMenu&gt; x;  testMenu():MenuScreen("testMenu"){     x.SetButton(100,100,TEXT("buttonNormal.png"),TEXT("buttonHover.png"),TEXT("buttonPressed.png"),100,40,&amp;this-&gt;test2);      draw = false; }  void test2(){     draw = true; } };   The function x.SetButton(...) is contained in another class, where "object" is a template.  void SetButton(int xPos, int yPos, LPCWSTR normalFilePath, LPCWSTR hoverFilePath, LPCWSTR pressedFilePath, int Width, int Height, void (object::*ButtonFunc)()) {      BUTTON::SetButton(xPos, yPos, normalFilePath, hoverFilePath, pressedFilePath, Width, Height);      this-&gt;ButtonFunc = &amp;ButtonFunc; }   If anyone has any advice on how I can properly send this function so that I can use it later. Error handling in C code How can I kill the Mirelurk Queen? I know I've seen somewhere how to typeset 1/2 as ½, but with arbitrary fractions (that is, a macro that takes two arguments and makes the first denominator and the second numerator...). Now I can't seem to find it.  How do I typeset an arbitrary fraction the same way as ½? Why not make  but for questions too?  I love that everything is well though behind SO but I can't see no reason as to why great questions can't be prized with "Badges by subject". How to use multiple Effect Strips in Blender Video Sequence Editor? Find PostgreSQL server hostname on which it runs Badge symbol in notification is of the site you're on, not where badge was earned Would depositing large cash amounts cause problems? I saw  recently where a man withdrew $600,000 USD in cash from his bank.  I'm sure many folks here would advise against this move for obvious (and perhaps not-so-obvious) reasons.   My question: suppose you did this and then, some months later, changed your mind and wanted to re-deposit with a bank.  I assume the gent cannot simply walk into a bank with $600,000 USD and deposit it, right?  Wouldn't money-laundering alarms be raised?  Wouldn't the IRS like to know where the money came from? If $p$ is congruent to $2 \pmod 3$, how can I prove that all $a$, $1 \le a \le p-1$ are cubic residues $\mod p$?  Here's what I've done:  $1^3$ congruent to $1 \pmod p$ thus, 1 is a cubic residue, Also $(p-1)^3=(p-1) \pmod p$ implies  $$(p-1)^3 - (p-1) = (p-1)[(p-1)^2 -1] = (p-1)(p^2 -2p) = p(p-1)(p-2) $$ implies $$p|(p-1)^3 -(p-1)$$ Thus  $p-1$ is a cubic residue $\mod p$. Now I don't know how to show for $1\lt a \lt p-1$ are all cubic residues when $p$ is congruent to $2\pmod 3$. In Bash, suppose I visit a directory, and then another directory. I would like to copy a file from the first directory to the second directory, but without specifying the long pathnames of them. Is it possible?   My temporary solution is to use /tmp as a temporary place to store a copy of the file. cp myfile /tmp when I am in the first directory, and then cp /tmp/myfile . when I am in the second directory. But I may check if the file will overwrite anything in /tmp.  Is there something similar to a clipboard for copying and pasting a file? A positive integer is divisible by $3$ iff 3 divides the sum of its digits I am having trouble proving the two following questions:    If $p|N$, $q|N$ and gcd(p,q)=1, then prove that $pq|N$ If $x$ is non zero positive integer number, then prove that $3|x$ if and only if 3 divides the sum of all digits of $x$.   For both questions I tried to use theorems of discrete mathematics, but I could not find the way to solve them. How can I replace Windows with Ubuntu? My laptop is filled with viruses and Windows XP is just becoming impossible to work with.   I've been interested in Ubuntu for a while, so, would I be able to use something like Debian to clear my HDD and OS and then install Ubuntu and start fresh? If I enter my password correct first time, I login as normal.  If I enter my password wrong, it says invalid password. If I attempt to enter the correct password now then the screen freezes and doesn't go to dock as normal. I must restart using a physical button or shutdown to get out. Login works normally after restart, assuming I get it right first time.  EDIT:  After entering a wrong password, if I click cancel and then go back to my user to login, it works fine. I would like to count subgroups of each order (2, 3, 4, 6, 8, 12) of $S_4$, and, hopefully, convince others that I counted them correctly.  In order to do this by hand in the term exam, I need a clever way to do this because there can be as many subgroups of a group of order 24 as $2^{23}$.  Do you know how to do this?   (I would be most grateful if you could tell me what part of the answer to the old question answers my question before voting to close.) Existence of the moment generating function and variance Can a distribution with finite mean and infinite variance have a moment generating function? What about a distribution with finite mean and finite variance but infinite higher moments? Importing DWG into QGIS project? I have a lot of DWG files like basemap, and water and wastewater network.  How do I import these files into my QGIS project? So I've been pulling my hair out over this for the last couple days now, I can't seem to find any solutions that work. I've fresh installed Ubuntu Gnome 16.04 on my system which has no other OS's running on it. Everything's fine aside from the fact that the default Nouveau display driver seems to be causing the UI to freeze sporadically every now and then. No problem right? Just install the proprietary drivers for my GPU and we should be golden? Well here's the thing, no matter how I try to get my GPU's drivers installed I always seem to hit some sort of issue. Here's what I've tried so far:   Switch to the proprietary driver from within the 'Software &amp; Updates' app in Ubuntu. For me the only option available is the 'NVIDIA binary driver - version 375.66 from nvidia-375 (proprietary, tested)'.    After selecting this driver it goes through the install process, asks me to 'configure secure boot' by entering a password, etc. This all seems to work fine initially until I reboot, but then before I see the login screen it seems to open a virtual terminal (usually accessed via alt+shift+F1), but then immediately boots me back to a black screen where it will flash this terminal for a split second every 4 seconds or so. I can access this terminal by using alt+shift+F1, and go on to use it as normal, but it will continually boot me back out to the black screen every few seconds. The only way I can solve this is to keep accessing the terminal each time it boots me out while I purge the nvidia drivers using sudo apt purge nvidia-*. After purging I'm then able to access the login screen and access my Ubuntu again as normal, besides having to reboot to presumably activate the Nouveau drivers again otherwise the resolution is all messed up and only one of my three monitors has anything displayed on it.    Using the steps listed  I download the latest stable/certified driver for my GPU (which as of writing this is version 384.69). However on step 3 where it instructs me to run the driver using sudo sh, I reach an issue where the installer informs me that I need to disable the Nouveau driver in order to continue. I've tried everything from uninstalling Nouveau using 'sudo apt-get remove --purge xserver-xorg-video-nouveau` to blacklisting Nouveau using the steps listed , by editing the 'nvidia-graphics-drivers.conf'.    Unfortunately no matter what I do to try and disable Nouveau the installer always informs me that the Nouveau driver is enabled and needs to be disabled in order to continue. What's funny is that I managed to install the driver using this method once before, but for the life of me I can't get it to work again.    Finally, I've attempted to install the driver by installing the PPA. I run sudo add-apt-repository ppa:graphics-drivers/ppa, sudo apt update, and finally going back into the 'Software &amp; Updates' app and select the 384.69 driver. However after going through the install process the same issue as described in my first method (1.) occurs.    I've also tried switching between gdm3 and lightdm with all 3 methods to no avail. I'm at a complete loss as to what to do. If anyone has any possible solutions I'd love to hear them, because right now I'm at the end of my tether.   If you require any further information just let me know and I'll be more than happy to provide it.   System info:   AMD FX-8350  Nvidia GeForce GT710 1gb  16gb RAM  Ubuntu Gnome 16.04 LTS What would be the easiest way to UV map a complex object? I'm attempting to make a texture for a model i've been working on, so i've been trying to get a decent UV map, However whenever I do it usually ends up either very distorted or a lot of unrecognizable pieces or several different UV maps. What are some easier ways of unwrapping/UV Mapping? What do the symbols on the main menu mean? If you swipe all the way to the left on the menu and then some, this sequence of symbols appears. (Do not pay any mind to the white circles: it's where I was holding my finger. The space between the first few and the last three symbols is also not present in game.)    What gives?