How can I uninstall Ubuntu when dual-booted?
How to remove Ubuntu and put Windows back on?
Copying protected files between servers in one line? I'd like to copy squid.conf from one server to another.   The servers don't talk to each other. I'd like to go through my workstation. Both servers have the file, so it will be overwritten on the target. The files have 600 permission and are owned by root. root login via ssh is disabled (PermitRootLogin no). I'd like to do it in one line, if possible, since it will be a part of a setup guide.   I know to do  ssh source 'tar czpf - -C /etc/squid/ squid.conf' | \     ssh target 'tar xzpf - -C /etc/squid/'   to copy files between servers and preserve permissions. However, in this case I will get "Permission denied".  I also know I can do this:  ssh -t source 'sudo cat /etc/squid/squid.conf'   This way the -t allows sudo to ask for the admin password before outputing the content of the file.  The problem is, I don't know how to combine those techniques into something that will ask for the sudo password on each server, and transfer the file to its destination. Is this possible?  UPDATE: Here's the best I could come up with:  ssh -t source 'sudo tar czf /tmp/squid.tgz -C /etc/squid squid.conf' &amp;&amp; \ ssh source 'cat /tmp/squid.tgz' | \     ssh target 'cat &gt;/tmp/squid.tgz' &amp;&amp; \ ssh -t source 'sudo rm /tmp/squid.tgz' &amp;&amp; \ ssh -t target \     'sudo tar xzf /tmp/squid.tgz -C /etc/squid &amp;&amp; sudo rm /tmp/squid.tgz'   Calling this a one-liner seems like a stretch. I think I'll just break it down to separate steps in the setup guide. How to create a color of the same brightness and saturation? Let's consider three colors: Red, Green and Blue. For blue I created a specific shade, something like #F2F5F7. If you see this color, it has a certain level of shade, brightness and saturation value of blue.  I want to create the same equivalent color but for Green and Red, how to get that? Passive with "to get" Is there a way to prevent those pesky .DS_Store files from being ever created? Is there a way (eg. a binary hack into Finder) to stop it from creating .DS-Stores on LOCAL Volumes?   I am using Leopard, therefore these don't work:    (requires Lion)  (requires Snow Leopard)   Also,  slows down my computer. How to match all occurrences of a regex How to find bases for a subspace defined by an equation How do you disable browser autocomplete on web form field / input tags? What are the disadvantages of using a Zener diode over a linear voltage regulator? I wonder why a Zener diode is worse than linear voltage regulator.  Some of the posts online mentioned that because of the power dissipating problem. Zener diodes keep consuming a large amount of current while the load may just need a very little amount of current.   If I understand correctly, this phenomenon will happen only when the Zener diode is connected with the load in parallel. What if I connected my Zener diode with my load in series? Also, someone said that linear voltage regulators (e.g. LM7805) are not good voltage regulators as the power dissipated in them is much higher than that in switching voltage regulators. In my understanding, the power dissipated in a linear voltage regulator can be calculated by dropout voltage x current = power converted to heat.   Regarding these 2 points, other than a linear voltage regulator can handler a wider current range, what is the benefit of choosing a linear voltage regulator over a Zener diode? Correct usage of "persons" (vs. "people") I had a little fight about persons vs. people.  Could you advise if both of the following are correct, if possible with reference to a dictionary?        A table for two people please.   A table for two persons please.      Besides that, how would you ask for a table in a restaurant?  I read  and , but they didn't really solve the question if both are correct.  I also found the last paragraph of , which suggests that (1) is "more correct", but doesn't say (2) is wrong. How can I write multiple lines in a subscript? Is there a way to force a line break inside a math mode text?  My example:  \[   \underbrace{....}_\text{Some long text that should be multiline} \]   Trying  \text{Some long text that\\ should be multiline}   Didn't do the trick. "Out of pocket"? I'm increasingly hearing the phrase "out of pocket" used in America as a colloquialism to mean "away from the office", "unavailable", or "incommunicado".     I apologize for not replying sooner; I have been out of pocket.    What is the etymology of this usage? It always sounds odd to me, since I had previously always associated the phrase with expenses, e.g., "I had to pay for the service out of pocket," meaning, "I had to pay for the service using my own money." Should either of these usages be avoided? What is the extent of their acceptance? Firmware vs. Software Is it possible to split micro USB to USB cable so two cables (data + and data -) go to the PC with USB and two other power cables go to power brick? Renaming user name I made a mistake in the username at the time of installation. So I changed the name of the user after logging in by creating a guest account with SUDO rights. But when I checked the list of users using ls /home command I am not seeing the new name for the user instead Old name is appearing. But I use the new name to login.   Is it like I need to change the name inside Home directory separately? Also , if there is any other changes needs to be done .. ? Are "w/o", "w/", "b/c" common abbreviations in the US? Can HTML5 databases and localStorage be shared across subdomains? I'm going to install 64 bit 14.04 on a new machine with something like 1 to maybe 128GB RAM and even more RAM later. How much space should I allocate to the swap partition?   And especially: WHY those recommendations for these numbers?    (None of the existing answers  and  explain any of the why and are a bit dated if we look at 1GB or RAM and up) How to get more complete references Sometimes when I work I write something like  \begin{proposition} \label{my new result} ... \end{proposition} ... blah blah in Proposition \ref{my new result} blah...   but then I realize that the Proposition should actually become a Lemma. So I change it to  \begin{lemma} \label{my new result} ... \end{lemma}   The problem is that I then have to hunt down all the places where I wrote Proposition and change it to Lemma, which is tedious and error-prone. Well, we have search facilities in editors, so it is not really that complicated, but still it feels the wrong way to do this. I would be happier to write  \begin{proposition} \label{my new result} ... \end{proposition} ... blah blah in \labelNameFor{my new result} \ref{my new result} blah...   where labelNameFor is a hypothetical magic command which outputs "Proposition". Then I could forget about all the places where I reference the result and just make any changes I wish.  Is there a way to do something like this? As far as I understand the label/ref mechanism is simply based on counters, so I do not see a straightforward way, but maybe someone more clever and industrious then I am has given the problem some thought. How can I test whether a command's output is an empty string while not   interfering with buffering?  Example:  command | ??? if [ $? = 0 ] &amp;&amp; [ -n "$output_from_command"]; then    ...   I want the output from the code above to be the same as when running command. When are infinities okay? I'm a little confused about how to handle infinities in physics. On the one hand, I always here things like infinities are not physically tenable answers. GR can't answer anything about the origin of the universe because of singularities. Throw away the radial solution that gives an infinite potential when solving the Laplace equation in spherical coordinates. But then there are other times that the infinities are okay. For instance, it is usually okay to set the reference point for your potential at infinity. There are certain times in David Tong's quantum field theory lecture notes where he seems to almost to hand wave away infinities. So, philosophically, physically, and mathematically when are infinities okay, and when are they not okay?