I have two Macs, each with ^-1 through ^-4 configured to switch between Mission Control desktops in Keyboard/Shortcuts. When I use Screen Sharing, these shortcuts always go to the local Mac, never to the remote Mac, regardless of whether the remote Mac otherwise has focus.  If I go into Keyboard/Shortcuts and disable these on the local Mac, I can then use them on the remote Mac. However, it's a hassle to toggle these every time I start/stop using Screen Sharing. Is there a way to get the local Mac to stop grabbing the shortcuts?
I'm using the built in Screen Sharing tool in El Capitan to control an iMac from a Macbook Pro in full screen mode. Everything works beautifully except that many special keys and gestures are intercepted by the local Mac and not sent to the shared Mac. Specifically:   Ctrl-Arrow (Desktops and Mission Control) F3 (Mission Control) F4 (LaunchPad) Three finger swipe (Switch between Desktops, Mission Control, Exposé) Two finger swipe from left side (Notification Center) Pinch with four fingers (Launchpad)   I can't find any way to switch between desktops on the remote machine other than manually opening the Mission Control app from the Finder or Dock. Disabling the gestures on the local machine doesn't help; they still don't get sent to the remote machine.  Is there any way to get special keys and gestures passed to the shared machine?
I am a third year (starting fourth year in the fall) PhD student in mathematics. I've passed all qualifying exams and am currently doing research. As far as I can tell, I am not doing poorly. I have the good fortune of having a great advisor, being in a very supportive department, and having friends and family who genuinely care about my success.   The fact is research is hard. It appears to consist primarily of staring at a problem for days and days and days without getting anywhere. Sometimes, rarely, I do figure something out and that feels wonderful, but the overwhelming majority of my time appears to be spent banging my head against a mostly figurative wall. I am not complaining about the material being hard, and I am not averse to putting in hard work, but I get frequently discouraged when I realize the vast volumes of mathematics that I yet know nothing about (and probably never will). It's very hard to quantify progress - in particular, there are too few tangible returns after too many hours worked. I find myself thinking along the lines of "Oh, if only someone actually smart were thinking about this problem they would have solved it in moments" and so on.   I've talked about this to some number of people; here is some advice I have received:   Take a day off. Putting in hours upon hours of trying things doesn't magically lead to a solution, particularly if the brain is tired and just wants to sleep. Have a hobby. Since math research doesn't exactly provide instant gratification, a hobby might provide some instead.  Talk to other graduate students. Realize that many graduate students go through this.   I'm interested to know how other folks have dealt with being discouraged as a graduate student. Does it get better with time and experience? Is this a sign that research is not for me and that I should seriously consider a life outside academia? AngularJS Directives: Change $scope not reflected in UI xml serializing of saved game data I am wondering what the difference between a definition and an axiom.  Isn't an axiom something what we define to be true?  For example, one of the axioms of Peano Arithmetic states that $\forall n:0\neq S(n)$, or in English, that zero isn't the successor of any natural number. Why can't we define 0 to be the natural number such that it isn't the successor of any natural number?  In general, why is an axiom not a definition?   Are there cases where we can formulate definitions as axioms or vice versa? Parse and Extract Attributes from JSON I just did a clean install of 20.04 and I noticed that no key shortcuts for files manipulation work when my focus in on Desktop (not in Nautilus).   When I have copied a file to clipboard, I cannot Ctrl+V it to Desktop, when I click on a file on Desktop, I cannot Ctrl+C it, or I cannot Delete it with keys. Only ways to do it is either navigate to the Desktop folder in Nautilus, or right-click the file on the Desktop and copy/move to trash/paste...  Sorry if I'm missing something obvious, all the key shortcuts worked normally for me in 18.04. Even if many interesting similarities between the classical and the quantum mechanical framework have been worked out, e.g. in the subject of deformation quantization, in general, there are some mathematical problems. And in the conventional formulation, you don't want to make things like $\hbar\rightarrow 0$ for the expression $P=-\text i\hbar\tfrac{\partial}{\partial x}$.   In special relativity there are many formulas where one optains the non-relativistic formula by taking the naive limit $c\rightarrow \infty$, e.g.  $$\vec p=\frac{m\vec v}{\sqrt{1-|v|/c}}\ \rightarrow\ \frac{m\vec v}{\sqrt{1-0}}=m\vec v.$$  I wonder if it is know that you can always do that. Is there a formulation of special relativity (maybe it's the standard one already), where the starting assumptions/axioms/representations of objects of discourse involve the constant $c$, and as you take them with you to do all the standard derivations, you always end up with results which reduce to the Newtonian mechanics if you take that limit? I have a NOPASSWD line in /etc/sudoers (edited with visudo)  gatoatigrado    ALL=(ALL) NOPASSWD: /bin/set-slow-cpufreq   However, the output is,  gatoatigrado@coral:~&gt; sudo -n /bin/set-slow-cpufreq sudo: sorry, a password is required to run sudo   This kind of command works on an OpenSuSE machine, but not on Ubuntu 11.10. What am I doing wrong?  Note: I cannot find any relevant system log messages, e.g. via tail -f /var/log/syslog.  edit  Here is /etc/sudoers.  Defaults    env_reset  # things I've tried copying from an opensuse machine Defaults always_set_home Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE"  root    ALL=(ALL:ALL) ALL gatoatigrado ALL=NOPASSWD: /bin/set-slow-cpufreq %admin ALL=(ALL) ALL %sudo   ALL=(ALL:ALL) ALL Make browser window blink in task Bar How do I make a user's browser blink/flash/highlight in the task bar using JavaScript? For example, if I make an AJAX request every 10 seconds to see if the user has any new messages on the server, I want the user to know it right away, even if he is using another application at the time.  Edit: These users do want to be distracted when a new message arrives. In JUnit 3, I could get the name of the currently running test like this:  public class MyTest extends TestCase {     public void testSomething()     {         System.out.println("Current test is " + getName());         ...     } }   which would print "Current test is testSomething".   Is there any out-of-the-box or simple way to do this in JUnit 4?  Background: Obviously, I don't want to just print the name of the test. I want to load test-specific data that is stored in a resource with the same name as the test. You know,  and all that. What are these notices above my post? My post has been marked with an informational notice in a box above it.   What should I do about this? Who attaches notices to posts? What kinds of notices are available? What should I do if I think a notice should be added to a post? What should I do if I think a notice should be removed from a post? Does somebody has an example where the left $R$-modules $R^m$ and $R^n$ are isomorphic for all positive integers $m$, and $n$? How do I work with Root objects? Where can I find Dogmeat after dismissing him to Sanctuary Hills? I recently dismissed Dogmeat in favor of Codsworth, and I'm fairly sure I sent him to Sanctuary Hills. However, I've had a fairly detailed look around the place and I haven't found him yet. Does anyone know where he is? Using ReplaceAll on SparseArray Shell with better editing capabilities Shells (at least what I know) have really bad command editing capabilities.  For example:    I can't point the cursor to any point of the command. I can't select and backspace/delete/replace text in the command.   Currently these are so distracting, I use gedit to edit commands before pasting them to the terminal.  Is there any solution that's good for these? How do I just restart the nautilus after adding a nautilus script without having to log out. Modern ice-age/plans for weapon hidden in genome How do I contact other users? How can I contact another user, if that user has not specified any contact details in their profile? Label PGFPlot table points with coordinates I would like to label each plotted point with its x and y coordinate. I am able to label with a single one using the MWE below. I must avoid manually labeling each point since my actual table size is larger and will be changed out regularly. \documentclass{standalone}   \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.16}  \begin{document}  \pgfplotstableread[col sep=&amp;,row sep=\\]{  x     &amp;  y     \\  0.940 &amp;  0.992 \\  0.992 &amp; -0.940 \\ -0.992 &amp;  0.940 \\ -0.940 &amp; -0.992 \\ }\mytable  \begin{tikzpicture}  \begin{axis}     \addplot+[only marks, nodes near coords]table[x=x,y=y,meta=x]{\mytable}; \end{axis}  \end{tikzpicture} \end{document}  which creates the following figure  The desired output is for each point to be labelled with both coordinates. For specific example the top left point would be labelled with &quot;(0.94, 0.992)&quot;.