Why is this command not working?  echo 'foo bar' | xargs -I % -L 1 echo yeah % yeah   It produces the following output:  yeah % yeah foo yeah % yeah bar   While I expected the following output:  yeah foo yeah yeah bar yeah
This works as expected:  $ echo a b c | xargs --replace="{}" echo x "{}" y x a b c y   This does too:  $ echo a b c | xargs --max-args=1 echo x x a x b x c   But this doesn't work as expected:  $ echo a b c | xargs --max-args=1 --replace="{}" echo x "{}" y x a b c y   And neither does this:  $ echo a b c | xargs --delimiter=' ' --max-args=1 --replace="{}" echo x "{}" y x a y x b y x c  y   I expected this output:  x a y x b y x c y   As a workaround, I am using printf and two xargs, but that is ugly:  $ echo a b c | xargs printf '%s\0' | \ &gt; xargs --null --max-args=1 --replace="{}" echo x "{}" y x a y x b y x c y   Any idea why this is happening?
Attack moving or Attack Canceling I watch streams sometimes and i see the high elo Ranged AD move between each shot. Do they gain anything with this? And if so whats a good way to practice it. Why do I have to press Ctrl+D twice to close stdin? Multiple outputs for beamer handouts I'm currently generating some presentations with beamer for students of my course. Some like to print the material, so I created a handout. Some students prefer to have 2,3,4,6 etc. pages per sheet of A4 paper. How can I go about to automatize the following code, so that it outputs 4 different files in 1x2,1x3,2x2,2x3 format?  I'd like to avoid having to compile it again everytime for the different formats.  \documentclass[a4paper]{article} \usepackage{pdfpages}  \begin{document} \includepdf[pages=1-last,nup=1x2,landscape=false,frame=true,             noautoscale=false,scale=1,delta=0mm 5mm]{Pres7Chap13-Handout.pdf} \end{document} let $f(\frac{x}{3})+f(\frac{2}{x})=\frac{4}{x^2}+\frac{x^2}{9}-2$ then find $f(x)$ let $f(\frac{x}{3})+f(\frac{2}{x})=\frac{4}{x^2}+\frac{x^2}{9}-2$ then find $f(x)$     My Try :  $$f(\frac{x}{3})+f(\frac{2}{x})=(\frac{2}{x})^2-1+(\frac{x}{3})^2-1$$  So we have :  $$f(x)=x^2-1$$  it is right ?Is there another answer? I've been living in Ireland for almost a year now and I start noticing they use the word "mens" a lot. I can see it used in:   Shops, to denote the area where you can find men's clothes In sport, when they talk about "mens team".    My guess is just that they are lazy about the use of quotes, so that mens should actually be men's. However, there may be some rule I'm not aware of. So, is "mens" only limited to Irish English? When I'm allowed to use it? I'm creating an application which lets you define events with a time frame.  I want to automatically fill in the end date when the user selects or changes the start date.  I can't quite figure out, however, how to get the difference between the two times, and then how to create a new end Date using that difference. Teleporting a player from the overworld to the end Is there any way to teleport a player from the overworld to the end?   Or a way of teleporting a player to a random enderman in the end? Polygonizing a raster yields lots of little squares? I have a pdf with the area of a county that I want to separate into multiple shapefiles (polygons) based on color.   As shown in the first picture there are 4 colors so I would need to separate based on color between those four. But first, I need to convert it into a vector (unless there is an easier way).   Doing so, I get the second image as an output by using the polygonize tool which when zoomed in very close, has a lot of tiny squares where color should be different. I was wondering if there is a way to break a raster up by color even though the image isn't smart. Minecraft directory doesn't have a 'Resource Packs' folder? I go into my .minecraft folder and there's Assets and all the other files and folders, but no resource packs folder?  If I create one manually, and place the textures inside, they don't show up in-game.  I'm on a Mac. Why doesn't Doctor Strange remove the Infinity Gauntlet from Thanos? Doctor Strange seemingly has the ability to open portals wherever he wants. We see at the beginning of Infinity War what happens when he closes a portal and someone isn't fully through it.  Is there any reason why he can't open a portal around the left-elbow of Thanos, and then close it?  I realize that Thanos probably wouldn't allow this to happen normally,      but when he is mostly asleep, and Tony and Spider-Man are pulling on the gauntlet, Doctor Strange has ample opportunity, and plenty of space to just sever Thanos' arm.   Why doesn't he? Why do rainbows have distinct colors? Why is it impossible, without attempting I/O, to detect that TCP socket was gracefully closed by peer? As a follow up to a , I wonder why it is impossible in Java, without attempting reading/writing on a TCP socket, to detect that the socket has been gracefully closed by the peer? This seems to be the case regardless of whether one uses the pre-NIO Socket or the NIO SocketChannel.  When a peer gracefully closes a TCP connection, the TCP stacks on both sides of the connection know about the fact. The server-side (the one that initiates the shutdown) ends up in state FIN_WAIT2, whereas the client-side (the one that does not explicitly respond to the shutdown) ends up in state CLOSE_WAIT. Why isn't there a method in Socket or SocketChannel that can query the TCP stack to see whether the underlying TCP connection has been terminated? Is it that the TCP stack doesn't provide such status information? Or is it a design decision to avoid a costly call into the kernel?  With the help of the users who have already posted some answers to this question, I think I see where the issue might be coming from. The side that doesn't explicitly close the connection ends up in TCP state CLOSE_WAIT meaning that the connection is in the process of shutting down and waits for the side to issue its own CLOSE operation. I suppose it's fair enough that isConnected returns true and isClosed returns false, but why isn't there something like isClosing?  Below are the test classes that use pre-NIO sockets. But identical results are obtained using NIO.  import java.net.ServerSocket; import java.net.Socket;  public class MyServer {   public static void main(String[] args) throws Exception {     final ServerSocket ss = new ServerSocket(12345);     final Socket cs = ss.accept();     System.out.println("Accepted connection");     Thread.sleep(5000);     cs.close();     System.out.println("Closed connection");     ss.close();     Thread.sleep(100000);   } }   import java.net.Socket;  public class MyClient {   public static void main(String[] args) throws Exception {     final Socket s = new Socket("localhost", 12345);     for (int i = 0; i &lt; 10; i++) {       System.out.println("connected: " + s.isConnected() +          ", closed: " + s.isClosed());       Thread.sleep(1000);     }     Thread.sleep(100000);   } }   When the test client connects to the test server the output remains unchanged even after the server initiates the shutdown of the connection:  connected: true, closed: false connected: true, closed: false ... Quotient group $G/H$ is abelian iff $[G,G] \subseteq H$ Trying to find a story about an unborn telepathic baby who can save a spaceship from doom There's a spaceship, nearing the end of its journey. Everybody on board is in cryosleep. For some reason the wake-up system malfunctions, and the ship will fly on indefinitely. The people at the space port realise this, and try to wake someone up. Their last resort is finding someone on board who is telepathic, and wake this person up. They find one, but it turns out to be an unborn baby. How to calculate $$\int_{0}^{\pi/2}{\{\tan(x)\}dx}$$ where $\{x\}$ means the fractional part of $x$. I mentioned the zero points of $\{\tan(x)\}$. $\{\tan(x)\}$ equals to 0 iff $x=\arctan(k)$, $k$ is an integer. I tried to separate it into$$\sum_{k=0}^{\infty}{\int_{\arctan(k)}^{\arctan(k+1)}{(\tan(x)}-k)dx}$$ Then I found it hard to continue. I don't think I am on the right way. Suppose the following dialogue:  ... &quot;I accept only one notion of land property. Namely, 'I am doing my stuff here, therefore I am here&quot;. &quot;But this means,&quot; he responded, &quot;you can break into any place and stay there, using this rule.&quot; &quot;There is another rule, though. Right to act in its most natural sense, 'I am here, therefore I am doing my stuff here.&quot; &quot;But do not these rules put together become circular reasoning?&quot; &quot;Of course, they do,&quot; I put my head closer to him, &quot;and this is exactly that rare case when circular reasoning is not only sufficient, but is necessary.&quot; &quot;But why is that? Circular reasoning never was a correct argument.&quot; &quot;There are many circular things happening in nature. Life forms, for example, exist only in order to produce new life forms or to prolongate their own lifetime. Is there any reason to say this can't be the case for reason itself? Why must reasoning not be circular?&quot; ...  Can circular reasoning ever be justified? For example, we know all the words in our languages can't be defined using other words without the use of circularity. We know logic can't prove itself without circularity. Are these arguments rational? Are there any other arguments where circular reasoning is still rational? Will I be able to get an interface that is like Gnome Classic in Ubuntu 14.04? For a while I departed from Ubuntu to use Linux Mint because I really don't like Unity, or Gnome 3's most recent interface.  I was fine with what was called "Gnome Classic", but I feared it was being neglected because there were some significant bugs that lingered without improvement for a while.  Unfortunately, while I like the MATE interface in Linux Mint, Mint itself lacks the level of community support that Ubuntu has. Mint has development and support issues. Not to disparage their efforts, I think they've done great work, but it's tough making a UI, and unfortunately it's just not working for me.  I'm thinking of returning to Ubuntu with the 14.04 release, but not if it means using Unity. I have looked into the current situation, and I'm a little confused about the terms being thrown around. I have seen referens to "fallback", "flashback", and "classic", without any clear idea of which is available and what they offer.  Is there still an option to get an interface that resembles the way Gnome used to look?  Can I get an interface that looks like what I have with Mint, but with the support and features of Ubuntu? Can I get something close to that? I understand how to define include shared objects at linking/compile time. However, I still wonder how do executables look for the shared object (*.so libraries) at execution time.  For instance, my app a.out calls functions defined in the lib.so library. After compiling, I move lib.so to a new directory in my $HOME.  How can I tell a.out to go look for it there? In  as well as on Wikipedia the radial coordinate of the Schwarzschild metric is described as follows:     ...the r co-ordinate is the value you get by dividing the circumference of the circle by 2π.   This circumvents (no pun intended) the problem of talking about the path outwards from the singularity, but what about the circle itself: does it have the length we would measure when flying around it (however this is done) or is it a virtual circle assuming flat space, i.e. no mass at the center. Find the radius of the inscribed circle of a right triangle. Find the radius of the inscribed circle of a right triangle. The triangle's height is $\sqrt{6} + \sqrt{2}$ while the bisector of the right angle is 4.  This seemed like a generic similar triangles problem but it isn't that simple when I tried to solve it. Any help?  EDIT: Here is a picture of the problem