I am running tmux inside gnome terminal and have been trying to use a binding to copy the contents of tmux's paste buffer to my Linux X clipboard. A lot of places on the internet recommend this:  bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"   This command works perfectly from the command line:  tmux save-buffer - | xclip -i -sel clipboard   If I bind the shell command to a key and use it from inside tmux (using bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"), it does copy the tmux save-buffer to my clipboard; once I have copied some text in tmux's "copy" mode, using this binding will load the text into my X clipboard, ready to be pasted into a browser or anywhere else. However, it _also_  causes the prefix key to stop working for that terminal. If I kill the terminal with tmux running inside it and open another terminal and re-attach to tmux, the prefix key will continue working in another terminal. I also tried the following approach:    Set up an executable file: /usr/local/bin/tmux_to_clip with the command in it  % cat /usr/local/bin/tmux_to_clip  #!/bin/bash  tmux save-buffer - | xclip -i -sel clipboard   and then call the command from inside tmux  :run tmux_to_clip   again, it successfully copies the command to the clipboard, but again it breaks the prefix key. How can I prevent this and get a keybinding for copying tmux save-buffer to the X clipboard?
On mu Ubuntu 12.04 setups my tmux clipboard copy and paste commands are setup as follows:  set -g prefix M-a unbind C-b bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"   This worked great for the longest time up until a month or so ago, when I suspect some configuration change or package change was made that broke the above. In GNOME terminal, pasting still works fine with both prefix+ctrl-v and ctrl-shift-v.   However the xclip copy command no longer works no matter what I do, and I have tried removing the custom prefix binding above, using -select instead of -sel, not using clipboard etc. This is pretty much a show stopper for a GVim user like me, since I don't even have the GNOME terminal workaround of ctrl-shift-c with tmux taking over the shell. I go into copy mode, select text with space+movement, and when I execute prefix+ctrl-c absolutely nothing happens. Before this broke, tmux would display a confirmation message in the notification section at the bottom.  Does anybody have suggestions as far as how one might debug this? This is a pretty big productivity hit. I can probably use the , but it'd be great to know just what happened to xclip.
Is there a way to separate variables between multiple notebooks? I have a mesh and in the region around each triangle, I want to compute an estimate of the principal curvature directions. I have never done this sort of thing before and  does not help a lot. Can you describe or point me to a simple algorithm that can help me compute this estimate?  Assume that I know positions and normals of all vertices. Detailed Bathymetric/Bathymetry contour data (0-200M) We are developing a C# application for a web-service client. This will run on Windows XP PC's.  One of the fields returned by the web service is a DateTime field. The server returns a field in GMT format i.e. with a "Z" at the end.  However, we found that .NET seems to do some kind of implicit conversion and the time was always 12 hours out.  The following code sample resolves this to some extent in that the 12 hour difference has gone but it makes no allowance for NZ daylight saving.  CultureInfo ci = new CultureInfo("en-NZ"); string date = "Web service date".ToString("R", ci); DateTime convertedDate = DateTime.Parse(date);               As per :     UTC/GMT Offset       Standard time zone: UTC/GMT +12 hours   Daylight saving time: +1 hour   Current time zone offset: UTC/GMT +13 hours     How do we adjust for the extra hour? Can this be done programmatically or is this some kind of setting on the PC's? Let $f$ be an entire function such that $\mid f(z) \mid \leq A \mid z \mid$ for all $z$, where $A$ is a fixed number. Show that $f(z)=a_1z$, where $a_1$ is a complex constant. Can the expression $\sqrt{n} + \sqrt{m}$ be rational if neither $n,m \in \mathbb{N}$ are perfect squares? It doesn't seem likely, the only way that could happen is if for example $\sqrt{m} = a-\sqrt{n}, \ \ a \in \mathbb{Q}$, which I don't think is possible, but how to show it? How to check which package created a user? It is suspected that some packages have scripts run at install time which create user accounts in /etc/passwd. How can I check which package created a specific user? Why do some materials reflect (metals) and other materials reflect and refract (glass) from the quantum perspective? Recently I was asked to explain the difference between reflection and total internal reflection from a purely conceptual standpoint (no math).    Let me explain what I already know.  Reflection and refraction at the quantum level are the same thing.  Light is a photon.  A photon is a discrete particle that has wave characteristics (a finite wave traveling like a bullet).  As the photon travels it collides with electrons in the matter of the medium it is traveling in.  Depending on the energy of the photon and the allowed energy bands of the medium the photon cause the electron to jump up a level.  If the photon is absorbed then the medium will increase its motion (at the macro scale increasing its temperature).  If the photon is not absorbed it will be re-emitted (really as a new photon). I have read and watched Feynman's QED lectures and book and have a pretty good understanding of his process for determining how all these paths come together to give the net path of the photon.  The general rule of thumb is that the photon wants to take the path which requires the least amount of time.  I understand how this principle goes to explain refraction and reflection.    What I don't seem to understand is why does one material seem to cause a higher percentage of refraction compared to another (metal vs. glass).  What about the electron configuration of a the medium changes the net effect of the absorption and re-emissions of the photons?  Is there a change in the probability of the photon being re-emitted in a reverse direction?  Is there a farther distance the photon can travel before being incident onto an electron?  This is the part where my understand breaks down.    When you have hit the critical angle in a medium that refracts and the light completely reflects, are the photons moving is the same manner as they would be in a material that always reflects? How does this connect to the question in the previous paragraph?  I know I have a bunch of mini questions embedded in answering this one larger question.  Any help on any of the parts would be greatly appreciated? Prove $GL_n(\Bbb{R})/SL_n(\Bbb{R}) \cong \Bbb{R}^\times$ $$GL_n(\Bbb{R})/SL_n(\Bbb{R}) \cong \Bbb{R}^\times$$  This is trivial to prove with the first isomorphism theorem - by using the determinant as a endomorphism, then as $SL_n(\Bbb{R})$ is $1$ under the determinant, it is the kernel, and by FIT, the above is proved.  I was wondering how to prove this without the isomorphism theorem ? Hello,    This question is about the Command Line Developer Tools that are usually installed with xcode-select --install and updated via a software update from the Mac App Store (at least until macOS 10.13). I use the developer toolchain on a daily basis and it has always worked and updated without issues.    Today I've updated my mac from High Sierra 10.13.6 to Mojave 10.14.1, and I've lost the ability to update the Developer Tools.    After the update I've executed a terminal command that relies on the developer tools being installed. It was a command to update , although I don't think that the specifics matter, as I believe that any task that tried to access the developer tools would have triggered the same error message.    The error was:   xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun       The phrasing was new (maybe), but I thought that it was caused by the usual need to re-install the Developer Tools after some macOS updates.    Later I tried to dig a bit deeper into the failure, and found out that:  $ ls -l /Library/Developer/CommandLineTools/usr/total 0drwxr-xr-x  3 root  admin  96  4 Nov 19:32 share$ which xcrun/usr/bin/xcrun$ xcode-select -p/Library/Developer/CommandLineTools    Still, as I normally do, I entered the command to install and update the Developer Tools in the terminal:  xcode-select --install    This started the usual procedure: modal window to confirm, then request to accept the license agreement, followed by a progress bar. Except that it failed very quickly with an unexpected error:     Can&rsquo;t install the software because it is not currently available from the Software Update server.     I've tried several times, to no avail. It gets always stuck.    Sometimes, however, the failure causes the System Preferences to report a pending update:      If I open that preference panel it starts searching for updates, and it always finds nothing except the first time that it happened. The first time, it found this:          It literally suggested me to install the updates for macOS 10.11 and 10.13. I have no idea why.  I closed the preference without installing, and as I said it hasn't shown them again. There is also no update available in new Mac App Store.   Is this a known issue? Is there any way to resolve the problem?     Update  Of course I can download the Dev Tools for macOS 10.14 installer from .  Before installing them manually, though, I'm wondering if there is anything that's broken with the system. How to add field history and product as a related list of opportunity in vf page I am trying the below code to add field history and product as a related list of opportunity in vf page, but its not working .  &lt;apex:relatedList list="OpportunityFieldHistory"/&gt; &lt;apex:relatedList list="Product"/&gt;   Can anyone tell me what is the correct way to write it.  Regards    Edit:  There are two Standard objects that have Opportunity history information,  and . The relatedList component works fine with a value of OpportunityHistories for the list attribute, but an error is thrown when using the value of Histories, even though the SObject describe information shows "Histories" as the child relationship name.   &lt;apex:relatedList list="OpportunityHistories"/&gt; &lt;!-- Works fine --&gt; &lt;apex:relatedList list="Histories"/&gt;            &lt;!-- Error --&gt; If a two vectors $\bf u$ and $\bf v$ in linearly independent, can their images be linearly dependent given they were transformed by a linear transformation $T$? I think not. My reasoning If the images are linearly dependent, then $c_1T({\bf u})+c_2T({\bf v})={\bf 0}$ for scalars $c_1$ and $c_2$, not both $0$. Then $c_1T({\bf u})+c_2T({\bf v})={\bf 0}$ $T(c_1{\bf u}+c_2{\bf v})=T({\bf 0})$ $c_1{\bf u}+c_2{\bf v}={\bf 0}$ Therefore, ${\bf u}$ and $\bf v$ are linearly dependent. My reservation A homework problem seems to contradict the above. Here's the problem: Let $\mathbb R^n\rightarrow\mathbb R^m$ be a linear transformation. Suppose $\{{\bf u},{\bf v}\}$ is a linearly independent set, but $\{T({\bf u}),T({\bf v}\})$ is a linearly dependent set. Show that $T({\bf x})={\bf 0}$ has a nontrivial solution. C# - Keyword usage virtual+override vs. new What are differences between declaring a method in a base type "virtual" and then overriding it in a child type using the "override" keyword as opposed to simply using the "new" keyword when declaring the matching method in the child type? Firefox application associations not working in the 'Downloads' window No matter what changes i make to file associations (actions) in the 'Applications' tab in Firefox, they're totally ignored. For example, i set .wmv and .avi files to open with 'smplayer' but when i download a file and double-click on it (through the 'Downloads' window), it keeps opening with Totem player.    The default file associations through nautilus ('open with' tab) work fine, i.e. i've set smplayer as the default player and when i double-click a video file it open correctly.  I've tried to delete and recreate mimetypes.rdf but that didn't help.  Any ideas on what else should i check? Do I lose anything converting to DNG? I'd like to convert all my ARW (Sony) files to DNG for several reasons, but the only thing keeping me back from doing it is the fear of losing useful metadata during the conversion. I know that the image it's self is completely safe during the conversion but what about proprietary maker noteS? Will those stay too? And even if they do, are they actually useful and can be actually used by something other then Sony's own RAW converter?  P.S. I'm using Ubuntu so I'd prefer to use KipiPlugins' DNG converter because from what I understand it does everything the Adobe converter does, but if I'm wrong I can use Adobe's instead.  EDIT:  It looks like the LensID does carry over! With the ARW and the DNG files converted by Kipiplugins' built in converter, info is stored as "Exif.Sony.0x___". With Adobe's official converter, it moves the info to more logically named fields in the XMP, such as "LensID" and "Lens".  Now that I've figured it out, I think I might use Adobe's Official converter, just because I prefer how it reorganizes the Exif Data.  I'm not fully convinced though and I'd like to hear others take on all this. How do I pre-install Ubuntu for someone (OEM install)? Question about Riemann integral and total variation Here's my MWE (this is an actual bibliography item, the draft option is there to show the overfull hbox):  \documentclass[draft]{article}  \usepackage{filecontents} \begin{filecontents*}{x.bib} @BOOK{LV12,   title = {Algebraic operads},   publisher = {Springer},   year = {2012},   author = {Loday, Jean-Louis and Vallette, Bruno},   volume = {346},   pages = {xxiv+634},   series = {Grundlehren der Mathematischen Wissenschaften [Fundamental Principles     of Mathematical Sciences]},   address = {Heidelberg},   doi = {10.1007/978-3-642-30362-3},   isbn = {978-3-642-30361-6}, } \end{filecontents*}  \usepackage{biblatex} \addbibresource{x.bib}  \begin{document} \nocite{*} \printbibliography \end{document}   This produces:     Overfull \hbox (15.12822pt too wide) in paragraph at lines 27--27   I'm generally aware of how to fix overfull hbox from text I wrote myself, but not when the text is produced by a package. What is the best course of action here? Altering the entry is not an option. How to recover a deleted NTFS partition with data Someone found this quiver with surprisingly high values, although I'm unable to find a level 30 rare quiver on     Given that the item's internal level (IIL) determines which affixes are possible, I'd like to know whether the IIL affects the minimum/maximum rolls for an attribute, a graph or table would be great.  For example, let's say items are able to get a pure +intellect affix from IIL 20, what's stopping you from rolling 250 at 20?  Is it a bell curve, which has shallower gradients with a higher IIL of the item?  Is it capped, dependant on IIL?  Do the min/max caps step up at certain IILs,though it's the same attribute? For example, IIL 20-40 is capable of 5-120, IIL 41-60 is capable of 20-320, ..., IIL 63 = 40-400