I would like to , however I'm not sure how do I read from standard input within process substitution?  My attempts:  $ echo foo &gt;(cat /dev/stdin) &gt;(cat /dev/stdin) foo /dev/fd/63 /dev/fd/62  $ echo foo &gt;(cat -) &gt;(cat -) foo /dev/fd/63 /dev/fd/62  $ echo foo &gt;(cat &lt;&amp;3) &gt;(cat &lt;&amp;3) 3&lt;&amp;0 foo /dev/fd/63 /dev/fd/62 -bash: 3: Bad file descriptor -bash: 3: Bad file descriptor   Alternative version of the same problem:  $ cat file | tee &amp;&gt;/dev/null &gt;(cmd1 /dev/stdin) &gt;(cmd2 /dev/stdin)   What's the right way of doing this?
The process substitution &lt;(cat) doesn't work. Why?  head &lt;(cat)  cat: -: Input/output error   I can use an extra file descriptor, but I don't understand why the above doesn't work.  # Using file descriptor 3 to reroute the input (head &lt;(cat &lt;&amp;3)) 3&lt;&amp;0
Meaning of a set in the exponent Let $ D = 2^\mathbb{N} $, i.e., D is the set of all sets of natural numbers.   What's the meaning of this definition? Intuitively, I would suggest that $ D = \{1,2,4,...\} $ but the explanation "set of all sets" leads me to the guess that this is wrong. Why did the descriptive "Orientals" shift into a pejorative? MCP4131: How to know what value resistors to use on the multiplexed SPI IO? There are two aspects here. The first question is related to R1 below:    The datasheet says: "R1 must be sized to ensure VIL and VIH of the devices are met" but gives no formula. So first question:  (1) How does one determine value of R1?  The datasheet gives maximum SPI SCK frequency for this device as 10MHz for 5V supply as given in Tables 1-1 and 1-2. However, for the read operation on the device where the SDI/SDO are multiplexed, the idea is different because:    The point 2 under the Table above says that the max SCK can be increased by using a pull up resistor. About these things I am wondering the following:  (2) Why is max SCK frequency lower for multiplexed SDI/SDO read operation only? (3) If I connect a pull-up resistor it will certainly form a voltage divider with the R1 in the first picture. How do I determine the value of both of these resistors then?  Finally, since the Table 1-1 and 1-2 give SCK Input Frequency for voltage 1.8V to 2.7V as 1MHz rather than 10MHz which applies to 2.7V to 5.5V.   (4) Why is the max SCK lowered at lower supply voltage? How can we read and write values in a multidimensional array in verilog, i had read in  regarding different operations that can be done on multidimensional array. like if there is a part of code like this  input [15:0] me;  reg [15:0] p_array [7:0]; reg abc_pqr [2:0];  abc_pqr[0] &lt;= me[0]; abc_pqr[1] &lt;= me[1]; abc_pqr[2] &lt;= me[1]; p_array[abc_pqr[0]] &lt;= me[0]; p_array[abc_pqr[1]] &lt;= me[1]; p_array[abc_pqr[2]] &lt;= me[2];   so is this code will work and will not produce any error?  What is the difference between these two while assigning value  "&lt;=" and "=", i had seen "&lt;=" in most of the places during passing values. Very strange error suddenly appeared running Biber For an infinite line charge, $E$ falls off with $1/r$; for an infinite sheet of charge it's independent of r! The infinitesimal contributions to $E$ fall off with $1/r^2$, so why doesn't the total $E$ fall off the same way for the infinite line and sheet charges? For only my index pages, I am receiving this warning in Google Search Console:     Duplicate, submitted URL not selected as canonical   I know that this occurs because Google is attempting to track both the default landing "page" (i.e. www.domain.example/) and the page to which to which DirectoryIndex points (i.e. www.domain.example/index.html). They are, in fact, the same page, and so the warning is the result of a false positive.  Two questions for our community:   Why does Google not conflate these and count them as a single page? Alternately, is there something wrong with my set up if this has happened? I can easily force both pages to point to a single canonical URL. But which is preferable, "/" or "index.html"? Suppose there are several journals with the same impact factor. Is it better to submit my papers to one of them or each time I finished a manuscript it is better to submit to an equally good journal that I have not published in yet.  I am early in my career and I already published two papers in the same journal and I am going to finish my third paper, which potentially can be published in the same journal as my previous two papers. How do I show that the sum $(a+\frac12)^n+(b+\frac12)^n$ is an integer for only finitely many $n$? Show that if $a$ and $b$ are positive integers, then $$\left(a +\frac12\right)^n + \left(b+\frac{1}{2}\right)^n$$is an integer for only finitely many positive integers $n$.   I tried hard but nothing seems to work. :( I am not sure of the meaning of this sentence:     The significance of culture and identity in development has to do not so much with the cultural factor in the process of development as with abandoning Eurocentric development thinking.   I'm not sure what the use of as is supposed to convey. Does it mean "development has to do not so much ... as with abandoning", i.e. not as much as abandoning? Does the abandoning have more to do with it?  And the second question: Why does it use "has to do not so much". Why not "has not so much to do"? Is "have to" a verb? we all study mathematics , and all of us learn mathematical methods to solve problems , we learn how to prove , how to think mathematically   but the question is, what is mathematics ? how can we define it as a branch of science ? How do I use the Tooling API to create a new Apex Trigger? How do I use the Tooling API to create a new Apex Trigger (rather than update an existing one)?  According to the  I need to specify the ContentEntityId as an existing Trigger Id. But in my case I don't have an Id because I've trying to create a new sObject.  If I omit the ContentEntityId I get an error back in the SaveResult:     Status Code: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY   Message: "insufficient access rights on cross-reference id"   The following is more or less a test case in C# that attempts to use the SOAP tooling API to create the new trigger.  SforceService toolingService = //... Get instance of the Tooling API  MetadataContainer container = new MetadataContainer(); container.Name = "Test" + DateTime.Now.Ticks;  SaveResult[] saveResult = toolingService.create(new sObject[] { container }); string metaDataContainerId = saveResult[0].id;  ApexTriggerMember apexTriggerMember = new ApexTriggerMember(); apexTriggerMember.MetadataContainerId = metaDataContainerId; apexTriggerMember.Body = "trigger TestOpportunityBeforeUpdate on Opportunity (before update) {\n//Horray\n}";     // Adding this will successfuly update the existing trigger //apexTriggerMember.ContentEntityId = "01q70000000GuzP";  SaveResult[] triggerSaveResults = toolingService.create(new sObject[] { apexTriggerMember }); Assert.AreEqual(1, triggerSaveResults.Length); SaveResult triggerSaveResult = triggerSaveResults[0]; if (!triggerSaveResult.success) {     Assert.Fail(triggerSaveResult.errors[0].message); } Assert.IsTrue(triggerSaveResult.success);  ContainerAsyncRequest containerRequest = new ContainerAsyncRequest(); containerRequest.MetadataContainerId = metaDataContainerId; containerRequest.IsCheckOnly = false;  SaveResult[] containerResults = toolingService.create(new sObject[] { containerRequest }); What would the collision of two photons look like? Harry: "He made seven Horcruxes?"   Dumbledore: "...Not seven Horcruxes: six. The seventh part of his soul, however maimed, resides inside his regenerated body..." (HP6, US Hardback, page 503).    I would think that Dumbledore had already known that there were 6 horcruxes:    the diary  Gaunt's ring  Salazar's locket Helga Hufflepuff's cup Nagini (the whole essence divided thing)   Now those are the five that he was sure of. He knew that when Riddle came to Hogwarts to ask for the DADA position, he was really there so he could hide a horcrux. (But he never got a chance to tell Harry that, right?) Did Dumbledore know of the diadem? Or did he just think Riddle wanted to hide the cup?   Did Dumbledore say there were 6 and not 7 because he didn't know about the diadem but did know about Harry being a horcrux? Or did he say there were 6 to ensure Harry didn't guess he was a horcrux? Sorry if this makes no sense.  I know that in the end there were 7 horcruxes and an 8th part of Voldemort's soul right? What happens when you plug two sides of a cable to a single networking device? What is likely to happen when you plug two ends of a network cable to a single switch/router? Will this create problems on the network, or just be ignored? Installing Ubuntu with Fake RAID 1 Ok. So I read books as a kid, this may have been mid to late 1980s. Definitely before 1993. These details I remember, they might be from the same book or from several:   Slower than light space travel with severe time dilation. There were boardings of space ships, but the fighting odds could be very uneven because a foe could be from your future or your past, depending on when you started your space journey, because of relativistic time dilation. No faster than light travel, no time travel either. Just regular physics. To fight better in melee, soldiers would have (more or less willingly, I think they knew beforehand) false memories or notions implanted of the enemy as horrible human beings so soldiers could kill them more easily without remorse. Towards the end of the story, veterans of the war are described as not quite feeling at home after the war. One planet (home?) or country is described as inhabited entirely of clones, Adams and Eves, I think homosexual, or that sexuality could be switched deliberately. I think the veterans find at the end a refuge somewhere more like the home they are used to. The reason so much has changed is of course the time dilation. They spent maybe decades in the war, while on the planets centuries or millenia passed. I think one moral (there may be many more I missed as a child) of the story was the futility of war. If I recall correctly, the war was resolved in a way that made the efforts of the veterans seem for nothing. Every season near the trade deadline, we see teams that are out of it trading expensive players and/or free agents-to-be, typically for younger players or prospects.  For example, Matt Garza, set to become a free agent after the season, was traded to the Rangers for a few prospects.  It made sense for the Cubs to trade Garza, because he wasn't under contract any further than this season, and thus doesn't have much value to them.  Compare Garza to someone like Mike Trout, who is likely the most valuable property in baseball, given his skill and inexpensive cost over the next several years.  There's no way the Angels would trade him, because he'll be the cost-controlled centerpiece of the team for years to come.  However, with the Angels out of it this year, what if they wanted to trade Trout to a contender (say the Pirates), but only for the remainder of this season?  That is, they'd get several top prospects now, and would have an agreement with the Pirates that they'd trade him back in the offseason (for something pretty worthless, say for a journeyman minor leaguer).  The Pirates get Trout for the stretch run and are happy to give up a few prospects.  Trout doesn't have much value to the Angels this year, but he has a ton of value for next year.  So they get a few prospects for him, in exchange for the part of his career which has very little value to them.  So in effect, the Pirates are renting or borrowing him for the remainder of 2013.  Why don't trades like this happen?  Are there any rules prohibiting trades like this? I have a generic method with this (dummy) code (yes I'm aware IList has predicates, but my code is not using IList but some other collection, anyway this is irrelevant for the question...)  static T FindThing&lt;T&gt;(IList collection, int id) where T : IThing, new() {     foreach T thing in collecion     {         if (thing.Id == id)             return thing;     }     return null;  // ERROR: Cannot convert null to type parameter 'T' because it could be a value type. Consider using 'default(T)' instead. }   This gives me a build error      "Cannot convert null to type parameter   'T' because it could be a value type.   Consider using 'default(T)' instead."   Can I avoid this error? An alternative software to Live Writer?