I'm using Mac 10.9.5 and bash shell.  In our environment, we have to go through a proxy (a CentOS machine) to SSH properly into a destination machine (another CentOS machine).  What I would like to do is create a shortcut so that I can scp files quickly to the destination server, something like  scp localfile.txt davea@server:/home/davea   But right now, I have to do multiple commands to transfer the file …  scp localfile.txt davea@proxy:/home/davea ssh davea@proxy scp localfile.txt davea@server:/home/davea   Is it possible to condense the above into one line?
I have my local.machine, the proxy.machine and target.machine. local.machine doesn't have direct contact with target.machine, but needs to go through proxy.machine.   I want to scp a file from target.machine to local.machine. Is this possible to do with just one command from local.machine?
Is the integral $\int_1^\infty\frac{x^{-a} - x^{-b}}{\log(x)}\,dx$ convergent? Has Marvel commented on the extra Infinity Gauntlet? If you try to execute a program that is not installed you will get a message  The program 'x' is currently not installed. You can install it by typing:  sudo apt-get install x   and instead of offering you to install the program for you, you have to type the actual command. How can this behavior be changed? I am getting these warnings every time I update my initramfs image(-s) with  on my Dell PowerEdge T20 server running    10.0. Is there a fix?    W: Possible missing firmware /lib/firmware/i915/bxt_dmc_ver1_07.bin for module i915 W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin for module i915 W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin for module i915 W: Possible missing firmware /lib/firmware/i915/glk_dmc_ver1_04.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin for module i915 W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin for module i915 W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_huc_ver02_00_1810.bin for module i915 W: Possible missing firmware /lib/firmware/i915/bxt_huc_ver01_07_1398.bin for module i915 W: Possible missing firmware /lib/firmware/i915/skl_huc_ver01_07_1398.bin for module i915 How do you reverse a string in place in C or C++? I'm using a  freely downloadable latex class file and the style is set to \bibliographystyle{ieeetr}. But when I cite something with \cite{} I get it inside ().   For example I get it as abc et al. (1) but what I want to get is abc et al. [1].   Please tell me how to get my citations inside [ ] ? iPhone SDK: what is the difference between loadView and viewDidLoad? When working with views and view controllers in an iPhone app, can anyone explain the difference between loadView and viewDidLoad?    My personal context, is that I build all my views from code, I do not and will not use Interface Builder, should that make any difference.  I've found that often when I add init code to loadView, I end up with an infinite stack trace, so I typically do all my child-view building in viewDidLoad...but it's really unclear to me when each gets executed, and what is the more appropriate place to put init code.  What would be perfect, is a simple diagram of the initialization calls.  Thanks! Cool Text Highlighting in LaTeX LaTeX has soul. ConTeXt, of course, , where you can put sweet hightligher under your text for free!    In the pictured example, you can see highlights that not only highlight, but that do it with cool edges that look so good, you can smell fumes! The fearless author says he'll show how that was done in another post; this one shows only how to lay down a straight, yellow box. But, it is possible to do word-wrapped highlighting with cool-shapped boxes within ConTeXt, presumably.  The trouble for me is that getting into the ConTeXt world is steep climb right now, given the state of documentation and the flux of changes, so I need to continue with LaTeX. But the real problem is that now I can't live without the Organic-Looking Highlights of Awesomeness in that picture!  As I said, Non-Organic-Looking Highlights of the Ordinary are easy with the soul package:  \hl{Some awesome text that word wraps fine.}   It just taunts me on the page with its straight lines. So, if I sacrifice word wrapping, I can use PGF/TiKz and create the following macro:  \newcommand\hl[1]{%     \tikz[baseline,%       decoration={random steps,amplitude=1pt,segment length=15pt},%       outer sep=-15pt, inner sep = 0pt%     ]%    \node[decorate,rectangle,fill=navcolor,anchor=text]{#1\xspace};% }%   Which creates something like this:    Now, my color is too dark and my randomness needs adjusting, but you see that a similar effect could be achieved.  My trouble is that I don't understand TeX enough to dig into the Soul package and add the TiKz/PGF goodness that it so sorely needs. So, I leave it to you guys. Anyone want to tackle this?   Or is it yet another piece of fruit, just a touch out of reach, that shall have to wait until ConTeXt settles down? Why do we say "is it" when asking a question rather than "it is"? What it says on the tin, a foreign friend of mine has asked and I can't tell him; apart from it sounding horrible.  For example:  "Why is it raining today?"   Instead of:  "Why it is raining today?" Is there any method to close connection similar to  for  in WordPress?  Is it not necessary to close connection for global $wpdb? Statements equivalent to the Axiom of Choice The Axiom of Choice reads:     The product of a collection of non-empty sets is non-empty.   As you know well, this axiom is equivalent to many other statements. A few examples (probably the most known) are the following:   Zorn's lemma: Let $(P,\ge)$ be a poset in which every chain has an upper bound. Then $P$ has a maximal element.   This is used in a number of different places to prove very powerful theorems. A couple of examples I can think of right now are: the proof that every ring has a maximal ideal (commutative algebra) and the  (functional analysis).   Well ordering theorem: Every set can be well-ordered (i.e. it admits a total order such that every subset has a least element). Tychonoff's theorem: Every product of compact topological spaces is compact.   This is used for example in the proof of  (again functional analysis).   gives various more. Among them:   Tarski's theorem: If $A$ is an infinite set, then there is a bijection $A\to A\times A$.   (As @Wicht dutifully commented, Tarski's theorem is the name given to the implication $|A|=A\times A \Rightarrow$ Axiom of Choice, while the other implication was known before the proof of this fact by Tarski.)   Every vector space has a basis.   My question is: what are other useful statements which are equivalent to the axiom of choice? Where are they used, and to prove what?  P.s.: By "useful statements" I mean either statements which are important theorems by themselves (as Tychonoff's theorem) or that are directly used in (simple versions of) the proof of important theorems (as Zorn's lemma). How does RewriteBase work in .htaccess For every vector space $V$ does there exist a linear functional $f$ ( a linear map from $V$ to $F$ the underlying field ) such that for some $ \vec v \in V$ , $f(\vec v) \ne 0$ ? If it does exist , can we prove the existence without the "axiom of choice " ? Is the existence equivalent to axiom of choice ? Question statement is as in the title:     $\varphi:G\to H$ is a Lie Group Homomorphism, then $\ker \varphi$ has Lie algebra $\ker D_e \varphi$   Since $\varphi$ is a Lie group homomorphism, in particular it is continuous. As $H$ must be Hausdorff, every point set is closed, and hence $\{e\}$ is closed in $H$, which implies that $\ker\varphi = \varphi^{-1}(e)$ is closed as well.  So $N=\ker\varphi$ is an embedded Lie subgroup of $G$. Therefore, the inclusion $j:N\to G$ is a Lie Group homomorphism, and induces a Lie algebra homomorphism $D_e j :T_e N \to T_e G$. So I only need to show that $D_e j$ is in fact an isomorphism between $T_e N$ and $\ker D_e \varphi$.  But I'm stuck at this point. I know that for $X\in T_e N$, we have, for $f\in C^{\infty}(H)$,  $$ D_e\varphi (D_e j(X))(f)=D_e j (X)(f\circ \varphi)=X(f\circ \varphi\circ j)=0$$  So $D_ej(T_e N) \subset \ker D_e \varphi$.  At this point, I can either show inverse inclusion: that is, for every $X\in \ker D_e \varphi$, we can find $Y\in T_e N$ such that $D_e j (Y)=X$, or for all $f\in C^{\infty}(G)$, $Y(f\circ j)=X(f)$  Or I can somehow show that dimensions of the two spaces are the same.   But I can't proceed from here.  It'd be great if someone could help me Why are these estimates to the German tank problem different? Suppose that I observe $k=4$ tanks with serial numbers $2,6,7,14$.   What is the best estimate for the total number of tanks $n$?   I assume the observations are drawn from a discrete uniform distribution with the interval $[1,n]$. I know that for a $[0,1]$ interval the expected maximum draw $m$ for $k$ draws is  $1 - (1/(1+k))$. So I estimate $\frac {k}{k+1}$$(n-1)≈$ $m$, rearranged so $n≈$ $\frac {k+1 }{k}$$m+1$.  But the frequentist estimate from  is defined as:  $n ≈ m-1 + $$\frac {m}{k}$  I suspect there is some flaw in the way I have extrapolated from one interval to another, but I would welcome an explanation of why I have gone wrong! Video editing software options? What video editing software would you recommend on Ubuntu (or Linux in general) and why?  It can be for either beginners or experienced users.  Please only place one piece of software per response and include details to what makes it great! 2 prong to 3 prong outlet help I'm looking for the title of a short story by Ursula Le Guin about a scientist (?) who is given a drug that slows the timescale of his perception enormously, so that he can perceive that an alien (?) forest is actually behaving as a sentient being, reacting to current events, but at an enormously slow (from a normal human point of view) timescale. It might be in , but I don't remember the title (and it doesn't jump out at me from the list of titles) and don't have access to that collection right now. It is not &quot;The Word for World is Forest&quot;, nor &quot;Direction of the Road&quot; (from ), nor &quot;Vaster than Empires and More Slow&quot;, the latter two of which look at similar plant perception/time-scale issues. Update: it turns out that the description was right, but I had most of the details wrong: not Le Guin, not alien, not a scientist ... Is it possible to see a list of the settlers in a given settlement and the jobs they are assigned to? It would make it easier to pick a settler for a new job. I'm being forced to use my Macbook more and more with my metered 4G connection. I really need to keep data usage limited. Windows has an  mode which really helps with this.   What's the best way to handle this issue in the OSX world? Perhaps some use of the firewall? Is there any sort of logging happening as to what is using the network?  Thanks for your help :-)