Finding specific users by their location and a tag score
Finding Stack Overflow/Exchange users based on geographic area?
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. In the comedic music video  there are many clips of vintage scifi films, some of which I recognize.  This one however, of a large blue floating holographic head talking to some kind of military installation does not look at all familiar.  Does anyone recognize this film? I'm considering buying a solid state drive for my Unibody White MacBook 2010. The trouble is, I have no idea what to look for. What kind of connector am I looking for? (SATA?) What size? I'm told to get the kind that Apple uses so that I don't void my AppleCare warranty. What model/brand(s) would that be? How to extract the last two (or any number) directories from a path with sed? I'm really looking for a generic solution here, but for the sake of example, let's say I'm looking for the deepest 2 directories in a path. e.g.: Given a path /home/someone/foo/bar, how can I use sed (or awk) to get foo/bar  It would be simple if the first part of the path were always the same, but in my case, I'm looking for an expression that will work for any arbitrary path, and ideally, for any depth n.  If the path has fewer than n (in this case 2) levels, it's not important how the command behaves.  I went do this today and found it tricky. I started to write a loop to do it instead, but I can't shake the feeling that this must be possible in a single command. I could be wrong. Any ideas? PHP Echo Line Breaks How can I control the name of generic WCF return types? I've got a WCF Web Service method whose prototype is:  [OperationContract] Response&lt;List&lt;Customer&gt;&gt; GetCustomers();   When I add the service reference to a client, Visual Studio (2005) creates a type called "ResponseOfArrayOfCustomerrleXg3IC" that is a wrapper for "Response&lt;List&lt;Customer>>".  Is there any way I can control the wrapper name?  ResponseOfArrayOfCustomerrleXg3IC doesn't sound very appealing... Film where aliens looking like humans are waiting in an airport closed due to snowstorm I saw the movie 6 - 7 years back on cable tv, from the looks of it it seemed to be made in the late 1990's or early 2000's. Unfortunately I could not see the complete movie. The story goes like--   Some people are waiting at a small airport because snowstorm activity has cancelled all flights in and out. There are two children in the group as well (one boy and a girl). Somehow they discover there are aliens looking like humans among them. They decide to check passengers through baggage scanners (checking the skeletal structure via x-ray). They find and kill 2 aliens.   and the big twist:      5. They then realize the two children are also aliens.   any ideas what the name of the movie is ??? 9 pirates have to divide 1000 coins... Permutation with prime order, fixed point Let $M$ be a finite set and $\varphi$ a permutation of this set with prime order $q$. How do I show that $\varphi$ has a fixed point if $q$ is not a divisor of $|M|$? Wrong favicon displayed on Google's mobile SERP For some time now, Google has been displaying a website's favicon next to its title on the mobile SERP according to    But, for one website that I am managing, it is showing a completely different favicon. You can see it if you open the  on a mobile device, I am talking about the orange one:  I am referring to the top result.  As you can see on the , the favicon has been added correctly using the proper meta tag:   &lt;link  rel="icon" type="image/x-icon" href="https://www.hoofgroove.ch/pub/media/favicon/default/favicon.ico" /&gt;   This is according to .  Also, all the browsers are displaying the correct favicon, which is not the orange one but the black&amp;red one.  This meta tag has been used for weeks and also the  has always been the correct one as far as I can tell.  But for some reason, Google is showing the wrong favicon on its mobile SERP.  Any ideas why? Unable to shrink transaction log file in SQL Server I moved to a new company recently wherein they have 2 databases in a SQL server of size 20-25 GB. I'm unable to shrink the log file of the databases. Transaction log backup of the databases are set to run every 30 mins from 6 AM-7PM. They are of size 10 and 2 Gb respectively. I tried to shrink it around 8-9 PM last night but I was not able to do.  The log_reuse_wait column stated it's waiting on a log_backup. I tried taking couple of log backups which didn't help. I ran DBCC OPENTRAN but there are no open transactions.  Also, this morning even after the Tlog backups started at 6:00 AM till now(10:30) it still shows LOG_BACKUP in log_reuse_wait column. And no OPEN TRAN as well.  When I researched on this I found this article from Paul Randal:   It states that if the DB is small and all the content of tlog file is in same VLF it couldn't truncate. I have some 300-400 VLFs in the Databases. So that doesn't make sense here as well.   One thing I noticed that every morning at 6 AM the tlog is a little bigger than the other ones. So I'm thinking to check with the lead DBA to run tlog round the clock. Other than that, I would like to see why is this happening and Am i missing anything.  I tried to shrink with the below command:  Use DB1 go DBCC SHRINKFILE(2,10)  GO   Note: It's SQL 2012 instance running 0n 2012 compatibility Is it possible to get the data off of the hard drive of a PlayStation 3 that has crashed? I have already voided the warranty so I am not worried about that and I have access to quite a few tools.   I have a new PlayStation and a few saves that were not backed up. I am not worried about them but if it is possible I would love to get it moved over.   The old PlayStation will not turn on at all and I think I am going to have to pull the drive. My main concern is if I am able to transfer the files without running into any issues. I have heard that some of the stuff is specific to each PlayStation, is that true? How can I save the world from the spread of Hallow and Corruption/Crimson? After the Wall of Flesh, the Hallow appears and Corruption/Crimson spreads even faster.   Corruption/Crimson spreads through everything   Except Hallow  Hallow spreads through everything   Except mud (jungle) Except synthetic blocks like gray-brick  The results of Hallow and Corruption meeting are unpredictable   How can I stop them both permanently and effectively from taking over the world, considering both the top layer and underground?  (Eg, simply placing gray brick on top of the surface won't stop the underground spread?)  And, is it worth the effort? Make the chat link one click away in the new top bar Inequality with exponents $x^x+y^y \ge x^y +y^x$ Let $x,y$ be positive numbers. Prove that $x^x+y^y \ge x^y +y^x$.   This question appeared in Summer 1991 Russian Olympiad team test. Apparently, I tried to come up with different approach such as Jensen, Karamata's inequality and nothing works so far. I just need a discussion here. Hints are not necessary. Figure refs stop working after I added a new counter I was using the amspset document class for generating exam practice problems. I had wanted to add some referencing to the problems so I started a new counter like this (adapted from some Tex Exchange post)  \newcounter{P} \newcommand{\plb}[1]{\refstepcounter{P}\label{#1} \textbf{P-\ref{#1}.}}  \begin{problem} \plb{p1} A parallel-wire transmission line is constructed of \#6 AWG copper wire (diameter $d=0.162$ in., conductivity $\sigma_c=5.8\times 10^7$ S/m) with a 12-inch separation in air. Assuming no leakage between the two wires, find $R'$, $L'$, $G'$, and $C'$. Assume a working frequency of 1 MHz. \end{problem}  \begin{solution} Using Table.~\ref{tab:tlparam} and Fig.~\ref{fig:tlempl},  \[ Rs = \sqrt{\pi f \mu_c/\sigma_c} = 2.61\times10^{-4}~ \Omega\] \[ R' = \frac{2R_s}{\pi d} = 4.04\times10^{-2} ~\Omega\text{/m} \] \[ L' = \frac{\mu_0}{\pi} \ln{\frac{2D}{d}}=2.0~\mu \text{H/m} \] \[ C' = \frac{\pi \epsilon}{\displaystyle\ln{\frac{2D}{d}}}=5.56 ~\text{pF/m} \] $G'=0$ because the problem states that there is no leakage between the two wires. \end{solution}  \begin{figure}[ht] \begin{centering}     \includegraphics{fig24}     \caption{(Fig.2-4 from FAE) A few examples of transmission lines.} \end{centering} \label{fig:tlempl} \end{figure}  \begin{table}[ht] \caption{(Table 2-1 from FAE)Transmission-line parameters $R'$, $L'$, $G'$, and $C'$ for three types of lines.}     \begin{tabular}{c}         \hspace{3cm}\includegraphics{tb21}     \end{tabular} \label{tab:tlparam} \end{table} ... and more   Now all the figure references stop working, I get "Fig. " instead of "Fig. 1". The table references are alright though. Any idea what the problem could be? Ubuntu installation is slow, why? I've already installed Steam, but when I click on the program I get this message  ERROR- You are missing the following 32-bit libraries, and Steam may not run: not   I don't know what to install or even do. How to determine the most likely reading frame of a DNA sequence? This question is from a past exam paper for an introductory bioinformatics module. I'm a computer scientist doing biology for the first time.  "A short bacterial gene has been sequenced, giving the following DNA sequence. Write out the 6 possible reading frames for this sequence and indicate which is the most likely protein translation of this sequence. Explain your reasoning for picking the given translation, and write all the translations in single letter amino acid code form.  5' - ttattcatccgccagcgccatgcgcgccat - 3'  "  I think I understand the 6 possible reading frames: three from the 5' end starting tta, tat and att; and three from the 3' end starting tac, acc and ccg.  I could also write out the translations for a given reading frame with a codon usage table. It's the most probable reading frame part I don't get. I thought perhaps I was looking for the longest open reading frame. I can only see one start codon (atg). What is the correct way to recognize the most probable reading frame?  I can't find this problem exactly on Biology Stack Exchange. I did find:     It made me wonder if I'm getting confused between "reading frame" and "open reading frame", this question only asks or the former.  Thanks! How to render an object with both a base mesh wireframe and subdivision surface wireframe?