I have a quote in parentheses, and I was wondering whether the comma should go inside the quotation marks or after the closing parenthesis:     Now, with weapons like Laser Lipstick (“gives a whole new meaning to ‘hot pink,’”) he fights crime in drag.   vs     Now, with weapons like Laser Lipstick (“gives a whole new meaning to ‘hot pink’”), he fights crime in drag.   I'm leaning toward the first way, but I just want to know which is more correct.
Are there cases where a period is placed inside parentheses? In which cases the period (or a comma) should be placed inside the parentheses?
Slope of geometry as `fac` input for cycles material I have a terrain with two materials going into a Mix Shader, I want the fac input to be the slope of the terrain. Steep parts should be one color, flat part another. Opening files from version 2.8 in 2.79 What's the default value for an 'object' in java? Many spells have "At higher levels" that provides for more targets or more damage.  For example Magic Missile can be cast as a second level spell and shoot 4 missiles instead of it's 3 as a first level spell.  Can a spell without that verbiage, such as Firestorm be cast in higher level slots for the same effect as the lower level spell? Diagonalizable matrix with parameters $$     \begin{bmatrix}     -2 &amp; -2 &amp; 0 &amp; 0 \\     -b &amp; -b &amp; 0 &amp; 0 \\      0 &amp; 0 &amp; -4 &amp; 4 \\      0 &amp; 0 &amp; b &amp; -b \\     \end{bmatrix} $$  I have this matrix and I need to find the values for $b$ that this matrix won't  be diagonalizable.  For what I got this matrix is diagonalizable for every $b$ value.  Please write me also the final answer, thank you very much. notify-send not working under ssh Maybe this is answered somewhere else, but I didn't see it.  I am running Ubuntu 14.04. When I SSH into my machine, for example:  ssh &lt;user&gt;@&lt;machineip&gt; notify-send "Hello"   I don't see anything on the monitor where I am logged into the machine. If I prefix notify-send with DISPLAY=:0.0 or DISPLAY=:0 nothing different happens. I just never see any notification on the current session.  Is there some trick/switch to getting this working?  In case this isn't clear, allow me to reiterate: From Computer A, I SSH into Computer B. Within the SSH session, I wish to execute notify-send to run on Computer B. I expect a growl-type notification to appear on the monitor of Computer B. How to disable command-Q for Quit? Is there any way to disable command+Q for quitting apps?  I tried adding this menuitem to the "Keyboard Shortcuts" preference pane (as ), and remapping it to command+option+Q (slightly harder to hit), and the menu item changed to show this, but command+Q still causes the app to quit.  I'm using OS X 10.7, but I'd happily upgrade to 10.8 if it fixed this.  The app I really want this for is Firefox, but if there was a solution that disabled command+Q for every app, that would be fine, too. Trash icon and files have disappeared from the desktop after upgrade to Ubuntu 19.04 Landscape printing from HTML I have a HTML report, which needs to be printed landscape because of the many columns. It there a way to do this, without the user having to change the document settings?  And what are the options amongst browsers. setuid root does not work Objective : Run a program as root (C++ binary). The same as :   And :   ./a.out output:  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? psurana  //output for "whoami" Look below for the code.   ls -l output:  -rwsrwxr-x 1 root    root    46136 Jun  7 20:13 a.out  The Code :   #include &lt;string&gt; #include &lt;stdlib.h&gt; int main(int argc, char *argv[]){         std::string input = "apt-get install " + std::string(argv[1]);         system(input.c_str());         system("whoami");         return 0; }   Details: : compiled the program and then did chown root:root a.out &amp;&amp; chmod u+s a.out. Please look above for ls -l output.  I still do not get the root privileges and the output for system("whoami") in the code is my own username on the machine.  Reading the two linked questions did not yield me anywhere. :(. both the creator and the owner of the file are root. The setuid bit is set, so it should work. The filesystem is not external either, it is my own machine. How can I make this work? Maximal inequality for a sequence of partial sums of independent random variables Let $X_n$, $n=1,2,3,...$ be a sequence of independent (not necessarily identically distributed) random variables, let $S_n=\sum_{i=1}^nX_i$. Prove the following maximal inequality: For all $t&gt;0$,$$\mathbb{P}\left(\max_{1\leq i\leq n}|S_i|\geq t \right)\leq 3\max_{1\leq i\leq n}\mathbb{P}\left(|S_i|\geq\frac{t}{3} \right)$$ Enable automatic deletion of old, unanswered, zero-score questions after a year? Related to Meta Super User efforts:  and Meta Server Fault efforts:  We already auto-remove negatively voted unanswered old questions automatically after 30 days, network wide, with no human intervention required. I was thinking we might extend that to remove old, unanswered zero score questions... based on the following criteria:  fewer than (question age in days * 1.5) views 0 score or lower, or 1 score or lower if the original author is deleted no answers 1 comment or fewer asked more than 1 year ago (thus based on creation date, not last activity date, so , or a user editing it, does not give a doomed question 365 more days of zombie &quot;life&quot;)  See the results of this query on:  (10509) |  (787) |  (650) This query has been refined based on the comments, and this is the final version that will roll out tonight. Every site in the network (except metas) will automatically delete old questions that meet this criteria from this point forward. This week we rolled out a series of changes to  of the question close workflow.  You can read more about the details of these changes .    For context, the overall effort to improve the question close experience will be optimized for Stack Overflow. Given Stack Overflow’s scale, many of the pain points we hear about with question closing and reopening are unique to Stack Overflow and won’t make sense for other network sites. However some  changes are general improvements that should improve usability and guidance overall. Wherever possible, we plan to roll these changes out network wide as well. Any time we roll out a change network wide, we’ll make sure to cross-post here. This first phase is being rolled out to the network and is why I’m posting today.  Let us know if you run into any issues or have questions regarding the network here. Is explicitly closing files important? How to grep a specific line _and_ the first line of a file? Assuming a simple grep such as:  $ psa aux | grep someApp 1000     11634 51.2  0.1  32824  9112 pts/1    SN+  13:24   7:49 someApp   This provides much information, but as the first line of the ps command is missing there is no context for the info. I would prefer that the first line of ps be shown as well:  $ psa aux | someMagic someApp USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND 1000     11634 51.2  0.1  32824  9112 pts/1    SN+  13:24   7:49 someApp   Of course, I could add a regex to grep specifically for ps:  $ ps aux | grep -E "COMMAND|someApp"   However, I would prefer a more general solution as there are other cases in which I would like to have the first line as well.  Seems like this would be a good use case for . On the canonical isomorphism between $V$ and $V^{**}$ When editing a post and using the image uploader, any unused link references are completely removed.  For example, this post has three image references, only one of which is used ([3]) in the body of the post:        After uploading a fourth image, references [1] and [2] are completely removed (and the remaining references are renumbered to become [1] and [2]):        I sometimes write link references before using them in the body of the post and sometimes remove images temporarily before reinserting them elsewhere in the post so this is inconvenient.  (Note: this also applies for the iOS app, having the same behavior) What free/open source image design programs can you recommend? Are there any free/ open source image designing programs that you can recommend? Algorithm to see if two voxels are interconnected Blender resizing my image in half I have a problem. I'm trying to render an image and the resolution is 500x280. After I render the image and save it, for some reason the image gets resized to 250x140. I'm unsure why it happends.