returncode of command in a pipline The following script runs on Solaris using /bin/ksh and on Linux using /bin/sh  cmd | tee -a  cmd.log | tail exit $?   The output of cmd is saved in a file cmd.log and the last lines are  displayed on  stdout.  The purpose of exit $? was to exit the script  with the return code of cmd. Of course this   does not work because $? holds the return code of the last command in the pipeline which is   tail.  Workaround (I will omit all cleanup activities) :  { cmd;  echo $? &gt;  error.file; } | tee -a  cmd.log | tail exit `cat error.file`   But is there another way to get the returncode of cmd and  to avoid the creation of a file like error.file?
Get exit status of process that's piped to another I have two processes foo and bar, connected with a pipe:  $ foo | bar   bar always exits 0; I'm interested in the exit code of foo. Is there any way to get at it?
Openlayers v4.0.1 support Google Maps Javascript API? I want to know if the latest version of Openlayers (v4.0.1) supports Google Maps as a Tile Layer. I can't find any document ion about this. If Openlayers doesn't support Google Maps, could someone  tell me if there is any way to do this? How do I tell Maven to use the latest version of a dependency? In Maven, dependencies are usually set up like this:  &lt;dependency&gt;   &lt;groupId&gt;wonderful-inc&lt;/groupId&gt;   &lt;artifactId&gt;dream-library&lt;/artifactId&gt;   &lt;version&gt;1.2.3&lt;/version&gt; &lt;/dependency&gt;   Now, if you are working with libraries that have frequent releases, constantly updating the &lt;version&gt; tag can be somewhat annoying. Is there any way to tell Maven to always use the latest available version (from the repository)? 10% rule for sample sizes In an introductory stats book by Nicole Radziwell "Statistics the easy way with R" , an assumption used  for nearly every statistical test (e.g.t-tets, anova, etc) is that the sample size should not be more than 10% of the population size (where the population size in known).   I havent seen it mentioned in other introductory stats books. My question is: how important is theis assumotion and what is the reason for it?  The author didn't say where this comes from (at least as far as I could see). A bit of googling suggests that it refers to making a simple random sample without replacement, if the sample size is above 10% then the observations wont be (approximately) independent, and indepedence of observations is an assumption stated in most textbooks.   In the case where you have a small population (e.g. &lt;50), should you give up on this assumption because it results in sample sizes too small to get decent estimates of variability and to check other assumptions such as normality.    Thank you for any insights. Windows 7 / 8 tool for amplifying sound / equivalent to pavucontrol? I'm watching live streamed videos, but the volume sometimes is barely loud enough.  With Windows, I can only turn the system volume and the flash volume up to maximum, and then bad luck if that's still not loud enough.  On Linux, on the same notebook, I have the same problem, but I can use pavucontrol (pulseaudio volume control) to amplify the sound volume beyond 100%.  Unfortunately, I can't always work on Linux, since Visual Studio and SQL-Server only run on Windows.  Is there any tool or way to amplify volume on Windows 7 / 8 , without having to resort to run Linux in a virtual machine? Proving set theory question I need to prove the following letting A and B be subsets of a universal set U. $$A\cup B = U \iff A^c\subset B$$ It just isn't straight forward to me. This week we rolled out a series of changes to  of the question close workflow.  You can read more about the details of these changes .    For context, the overall effort to improve the question close experience will be optimized for Stack Overflow. Given Stack Overflow’s scale, many of the pain points we hear about with question closing and reopening are unique to Stack Overflow and won’t make sense for other network sites. However some  changes are general improvements that should improve usability and guidance overall. Wherever possible, we plan to roll these changes out network wide as well. Any time we roll out a change network wide, we’ll make sure to cross-post here. This first phase is being rolled out to the network and is why I’m posting today.  Let us know if you run into any issues or have questions regarding the network here. No connection could be made because the target machine actively refused it (PHP / WAMP) I was thinking about something the other day (that is probably stupid), and thought this would be a good place to talk about it.  If someone wanted to draw its family tree over the last 1000 years, he'd write a binary tree with a depth of about 40 (counting 25 years on average between each generations). This tree would have 240 leaves, or about 1012 ancestors on the deeper level. That is obviously much more than the total world population and a stupid figure when you think about it.  The only explanation that I can think of is that a real genealogy tree must have "linked" branches at several levels that change the actual number of ancestors. Anyway, for an average person, how many ancestors would that make? Could one assume that all or nearly all of the persons that lived in its country or world region a 1000 years ago would be part of its ancestors? Turn off display in Windows on command When will my phone get the Android 2.3 update (Gingerbread)? What is the meaning of ./ before a given path? java.sql.SQLException: Column count doesn't match value count at row 1 What is the logic behind the timer of the Sojourner Badge? Does the 24 hours timer start:     when you hack a portal on a particular day     or     does it use the calendar days and check if you did hack a portal on a particular day   or     does it simply use a fixed international timezone to calculate the 24 hour cycle   or     does it use the agent's hacking cell's timezone to start it?   If it's the calendar days method than the explanation of the badge would be a little bit misguided because you could hack a portal on 00:01 on Saturday and then hack another one on 23:59 on Sunday and it would be practically two days between two hacks.  If it's based on the agent's last hack for a particular day then the explanation still would be problematic?  The third option would be a little bit unfair (or timezone racist) for the rest of the world.  The last option (the cell's timezone) would/could be both unfair for travellers and/or non-travellers.  Does anyone know any details about it? How much money, outside of the cost of the house, do I need to buy a house? style=apa causes bibliography to fail I have a MySQL table with utf8 general ci collation. In the table, I can see two entries:  abad abád  I am using a query that looks like this:  SELECT *  FROM `words` WHERE `word` = 'abád'   The query result gives both words:  abad abád  Is there a way to indicate that I only want MySQL to find the accented word? I want the query to only return    abád    I have also tried this query:  SELECT *  FROM `words` WHERE BINARY `word` = 'abád'   It gives me no results. Thank you for the help. Can “due to” and “because of ” be used interchangeably? Is it fine to use due to in place of because of ? How about the other way around? Are any of these sentences ungrammatical?   He was lost because of the storm. He was lost due to the storm. He lost his way due to the storm. He  lost his way because of the storm. is there a way to get the option "Organize Desktop by Name" in Ubuntu 19.10 same as in 18.04? Why are empty and non empty TikZ matrix cells not equally placed? I wanted to draw an almost empty matrix of nodes with TikZ similar to the left most one below. All nodes would have same size (through minimum width and minimum height) and no separation between columns and rows. But when I include a text which needs two lines I obtain the central matrix and, if the text just needs one line the right most one. I don't know what's wrong. Do you? I'm using CVS version of TikZ.  \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{matrix}  \tikzset{ proces/.style={draw, minimum height=15mm, minimum width=2cm, outer sep=0pt, text width=1.5cm, align=center} }  \begin{document} \begin{tikzpicture}  \matrix (A) [matrix of nodes,nodes=proces,nodes in empty cells] {  &amp; \\  &amp; \\ };  \begin{scope}[xshift=4.5cm] \matrix (A) [matrix of nodes,nodes=proces,nodes in empty cells] {  &amp; OOO OOO \\  &amp; \\ }; \end{scope}  \begin{scope}[xshift=9cm] \matrix (B) [matrix of nodes,nodes=proces,nodes in empty cells] {  &amp; A \\  &amp; \\ }; \end{scope}  \end{tikzpicture} \end{document} Where can I find 32-bit version of Ubuntu? I need to find the 32-bit version, and all I keep finding is the 64-bit. Can anyone provide me with a link?