I have a few commands that I have defined as follows:  \newcommand{\G}{     \ifmmode%     \mathcal{G}     \else$\mathcal{G}$\fi }   Annoyingly, if I write This a graph \G such that it outputs the \G and the such together. I know it is because the space after \G is there to finish the command, and not to be a proper space. So I tried:   \newcommand{\G}{     \ifmmode%     \mathcal{G}     \else     $\mathcal{G}$     \fi }   And this leaves a space behind. But, if I write we have graph \G, which... it will leave a space between the \G and the ,.  Is there a way of saying "automatically leave a space, except if it is punctuation." ?  Thanks
I have a definition:  \newcommand{\arnold}{Arnold Schwarzenegger}   When I refer to it by:  \arnold is a   it is rendered as:   Arnold Schwarzeneggeris a    In order to have a space in front of "is" I would need to write  \arnold\ is a   Is there some other shorter way?
I want to write a function that takes an array of letters as an argument and a number of those letters to select.   Say you provide an array of 8 letters and want to select 3 letters from that. Then you should get:  8! / ((8 - 3)! * 3!) = 56   Arrays (or words) in return consisting of 3 letters each. what is the C++/CLI syntax to subscribe for events? I'm updating some old Managed C++ code with lines like this:  instanceOfEventSource-&gt;add_OnMyEvent(      new EventSource::MyEventHandlerDelegate(this, MyEventHandlerMethod) );   where   EventSource is the class that publishes events instanceOfEventSource is an instance of that class EventSource::MyEventHandlerDelegate is the delegate type for the event MyEventHandlerMethod is a (non-static) method within the current class (of which "this" is an instance) with the signature matching EventSource::MyEventHandlerDelegate   What is the right syntax for this in C++/CLI? How to change file extension at runtime in Java Unexpected behavior of rule matching a pattern Lock questions in the review queue while being reviewed More and more frequently in the review queues, I am spending time either fixing a post or considering whether an edit is valid, etc, only to make changes and have them denied/not count because someone else has blindly hit the approve button in the meantime.  My proposal is for the system to "lock" a post in the review queue once it has been presented to someone for review.  Do not let anyone else (in the review queue) do anything with it until it is released by the last user it was presented to (or a certain amount of time has elapsed).    By "lock" I mean that it won't show up in anyone elses list until released.  I did NOT mean that it would be in multiple queues and be unactionable in some of them.  This would fit well as the queues only present one at a time anyway.  This will allow people trying to make good decisions the time to do it and prevent someone else from making that effort a waste of time.  As support, look to some of the published reasoning behind the auto-question ban.  A large portion of it is that bad questions waste the time of the community.  Taking the time to ensure you are making a good decision in the /review queue only to have it not count because someone was badge-whoring and clicking the approve button as fast as they could also wastes the users time... arguably the more (for lack of a better way to put it) valuable user who is willing to invest some time and thought into making the site better. I do not understand how dummy variables work in math.   Suppose we have:  $$I_1 = \int_{0}^{\infty} e^{-x^2} dx$$  How is this equivalent to:  $$I_2 = \int_{0}^{\infty} e^{-y^2} dy$$  How does this dummy variable system work?   Since $y$ is the dependent variable for $I_1$ How can $y$ itself be and independent variable for $I_2$  ??  Thanks! I have a VIP skybag (I believe this does not matter). It has a 3-number TSA lock built into the suitcase. I know the combination to unlock, let's say it's 345. Recently it was locked and while there was a different number on the combination lock the reset/set lock button was pressed.  Since then the reset/set lock button is pressed (stuck) and the lock button also does not unlock. Any pointers on how to unlock it? I am thinking of unscrewing the lock from inside of the suitcase but it seems quite a hassle, as I may have to assemble it back. Let me know if there is any other option to unlock it from the outside. From reading the rules it would appear there are two kinds of damage and then straight loss of life:     118.3 If an effect causes a player to gain or lose life, that player's life total is adjusted accordingly.   From reading that I would guess that effects like Extort are not sources of damage. You simply lose the life.      119.2a Damage may be dealt as a result of combat. Each attacking and blocking creature deals combat damage equal to its power during the combat damage step.   So damage from creatures during combat is combat damage.     119.2b Damage may be dealt as an effect of a spell or ability. The spell or ability will specify which object deals that damage.   And that is direct damage from an object.  So the arguments are these:  Does loss of life as outlined by rule 118.3 (at top) count as being dealt damage? Do triggered abilities that redirect or reduce damage effect loss of life?  My second related question: You put  on a  and tap her to deal one damage to your opponent. Am I right in saying that because the damage was direct damage (not dealt during combat) then the triggered ability of preventing the combat phase of the damaged player is not triggered? When conducting a t-test why would one prefer to assume (or test for) equal variances rather than always use a Welch approximation of the df? It seems like when the assumption of homogeneity of variance is met that the results from a Welch adjusted t-test and a standard t-test are approximately the same.  Why not simply always use the Welch adjusted t? Should I capitalize the word "that" in a title? Since the version of the word "that" might matter to the correct answer, I'll provide the actual title in question:  Title:  Existing Solutions that Didn't Work  If someone could explain the why of the answer, I would be appreciative.  EDIT:  It has been suggested that this is a duplicate, and that may be, in a sense.  However, the after reading the suggested prior question, I'm no closer to my answer.  I think it may have to do with my use of the word "that."  Perhaps it is incorrect?  Using these definitions of the word "that:" I'm having trouble figuring out which definition of that matches my title.  Am I even using it correctly?  Perhaps I should use which instead:  Possible Title:  Existing Solutions which Didn't Work  If my original usage is incorrect, and I should use which, then the answer is simple since which is always a pronoun or adjective, and those are both capitalized in a title.  However, I'm having difficulty understanding which part of speech that is in my original title. User systemd PulseAudio service Not much else to this question: I would like to know what I need to create a PulseAudio systemd service to be run with systemd --user.  I've tried a few different things, including various user services from Google, but I can't get it set up just right between dbus and everything else required for it.  Update: It seems to work ok with graphical sessions, but I'm still having some inconsistancy with dbus when logging in through console.  But PulseAudio is starting rather reliably, so I'm not overly concerned. The problem is, when I open applications I need to always right click, select run as admin.     When I don't do it getting unexpected application errors. BTW, I turned off UAC.   It's annoying. Is there any way to change behavior of double left-click to act as "Run as administrator" action? I mean to make "Run as administrator" action by default. Thx in advance I already have an Apple ID, made at Apple.com. Now, when I want to access the App Store from my iPad, I am told that I have to review my information. On the credit card page, I am not presented with a "None" option, even though I am in the United States.   What can I do to proceed without entering this information? Can my spouse receive an emergency UK visa to visit a funeral? I'm a British national. My grandmother just passed. My wife is Chinese. In general it's a major pain to get my wife a visa to visit the UK, we have never been before.  Is there any way to get an emergency visa to attend the funeral?  What sort of documents would we need? 70s TV miniseries: antagonist gets followers to his pacifist ideology through mind control devices I am trying to recall the name of TV-series that was aired in the 70s (possibly only in selected European countries?). IIRC it was a French production. The bad guy was using some kind of mind control devices. He was gradually getting more and more people as followers to his pacifist ideology (it was the cold war era, and pacifism might have struck a chord even without mind control).  His modus operandi was to send a dozen or so (mind-controlled) cronies to surround a new victim. They would form a square around the helpless target, forcing him to walk into a building, where mind control devices were surgically installed.  The protagonists were trying to organize a resistance movement. IIRC they failed, as the bad guy had good intelligence about their plans. $\forall$ At the beginning or at the end? I have a set of real numbers $x_1, x_2, \ldots, x_n$ and two functions $f:\mathbb{R} \rightarrow \mathbb{R}$ and $g:\mathbb{R} \rightarrow \mathbb{R}$.  What are the differences between the following statements?   $\forall v \in \{1, \ldots, n\} ~f(x_v) = 0 \vee g(x_v) = 0$ $f(x_v) = 0 \vee g(x_v) = 0 ~\forall v \in \{1, \ldots, n\} ~$ What makes RSA secure by using prime numbers? I am just learning about the RSA algorithm. Looking at the first two steps:   Choose two distinct prime numbers $p$ and $q$. Compute $n = pq$.    I have some probably stupid questions:   Why do $p$ and $q$ have to be prime numbers? Why couldn't they be any integers or odd integers? Or does that break the whole algorithm? Because prime numbers are rare in comparison to regular integers, does restricting the algorithm to only prime numbers reduce security? It would seem easier to find the private key if an attacker knows it's only going to be some prime number? How to get product recommendations Possible Duplicate:          I have a question of the form "what companies provide service X?"  I checked meta, and apparently such questions are highly discouraged on all Stack Exchange sites. Which is fine, but it obviously raises the meta-question: Where can I ask my question?  (In particular, I know that there are people hanging out on Stack Overflow who have probably needed the same service, so if an answer exists, they possess it...)  Edit: I should perhaps point out that the service I'm looking for is rather specific and slightly obscure. Otherwise, yeah, this would be a 10-second exercise with Google. Shutdown button only logs out ubuntu 15.04 Integration of $e^{ax}\cos bx$ and $e^{ax}\sin bx$ I am curious about the proof of these two integrations. It would be great if you could point me in the right direction : $ \int{e^{ax}\cos({bx})dx}= \dfrac{e^{ax}}{a^{2}+b^{2}}[a\cos(bx)+b\sin(bx)] + C $ &amp; $ \int{e^{ax}\sin({bx})dx}= \dfrac{e^{ax}}{a^{2}+b^{2}}[a\sin(bx)-b\cos(bx)] + C $