How to prefix any output in a bash script?
How to capture ordered STDOUT/STDERR and add timestamp/prefixes?
Can Barbarians use 2 two-handed weapons in Diablo 3? Can barbarians dual wield two-handed weapons?  My barbarian character is only a level 50 now, but I'm not sure if I can dual wield two-handed weapons at a later level or not - or is there a special skill I need?  UPDATE It is sweet, that Blizzard have finally updated Diablo 3, so that the Crusader can have a 2-handed weapon in 1 hand ( passive). It is a shame that the Crusader can't dual wield a 2-handed weapon in both hands. Method defined as testMethod do not support web service callouts, test skipped Pagination broken when merging search results with additional WP_Query On the search results page (search.php) I would like to perform an additional WP_Query to keep a specific order of search result types e.g. search results from authors should always be shown before the other results -  The first few pages should hold the author results, the other results should be shown on all the following pages only (not mixed on each page).  global $wp_query; //holds the results of the initial search query  $authorposts = $wp_query-&gt;posts;     $query = new WP_Query( 'year=2012&amp;monthnum=12&amp;day=12' ); $otherposts = $query-&gt;posts;  $wp_query-&gt;posts = array_merge( $authorposts, $otherposts  ); $wp_query-&gt;post_count = count( $wp_query-&gt;posts );  if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;   //show results loop...   The problems appear with the behaviour of pagination - while the $authorposts seem to paginate correctly i.e. correct page numbers for author posts and pagination works as only those where existent. But the $otherposts on the other hand are shown at the bottom of each page, right under the author posts. And they are the same on every page! Also the page count reflects the count of the first query only.  I have also tried to merge with the plus operator:  $wp_query-&gt;posts = $authorposts + $otherposts;   but in this scenario the $otherposts don't show up at all and the page count stays the same (page count for author posts).  All the examples with similar goals using two separate queries I've seen looked quite the same -  So I'm wondering if the my way of extending the original search query results with that additional WP_Query is sufficient or if I'm missing some $wp_query fields to be populated (correctly)? What's the correct way doing this?  Update: It should be noted that I'm using the WP-PageNavi plugin to paginate but this should not be relevant in the first place as the first page is already rendered wrong. And it's also initialized with the query object: wp_pagenavi( array( 'query' =&gt; $wp_query )); I am looking for a package to create bullet gauge graphs, but I couldn't find any.  A bullet graph looks like this:    and an ample description/specification can be found   It is available in Mathematica 9 ()  Is it possible create this kind of graphs in a easy way with TeX (like Matehmatica 9 or similar)? Reason for LCM of all numbers from 1 .. n equals roughly $e^n$ I computed the LCM for all natural numbers from 1 up to a limit $n$ and plotted the result over $n$.  Due to the fast-raising numbers, I plotted the logarithm of the result and was surprised to find a (more or less) identity curve ($x=y$).  In other words, $LCM(1, 2, 3, ..., n)$ appears to be roughly the value $e^n$.  Is a there a simple explanation on why this is so?  $LCM(a, b, c, …)$ shall be defined as the least common multiple of all arguments $a, b, c, …$ How to split a string with any whitespace chars as delimiters What regex pattern would need I to pass to  java.lang.String.split()  to split a String into an Array of substrings using all whitespace characters (' ', '\t', '\n', etc.) as delimiters? $\{\emptyset\}$ is a set containing the empty set. Is $\{\emptyset\}$ a subset of $\{\{\emptyset\}\}$?  My hypothesis is yes by looking at the form of "the superset $\{\{\emptyset\}\}$" which contains "the subset $\{\emptyset\}$". What is the size of this microcontroller? Having trouble reading a data sheet Distribution of range of Uniform $(0,1)$ distribution Let $X_1,...,X_n$ be iid as $U \sim [0,1]$ with pdf $f(x) = 1(0 &lt;x&lt; 1)$. Determine the range distribution.   I have managed to determine the distribution of the minimum and the maximum, however I cannot/do not know how to determine the distribution of range.   Minimum:  $f_N = n(1-x)^{n-1}$ and maximum $f_M= nx^{n-1}$   I am aware that the calculation of range distribution is based on convolution: $f_R=\int f_{N,M}(x,x-r)dx$, However I cannot get the correct result, which according to my lecture slides is : $f_R= n(n-1)r^{n-2}(1-r)$  Could someone break this down for me ? My math background is not great How to create a desktop shortcut in Unity? Is there an easy way to create a desktop shortcut for an application in Unity? The ability to right click or drag and drop icons to the desktop in Unity does not seem to be there. In order to solve  $$y''-2y'+y=te^t$$ I did:  $$y = (at+b)e^t\implies\\ y' = ate^t+ae^t+be^t\implies \\y''= ate^t+2ae^t+be^t$$  but when I put these in the differential equation I'm getting zeros eveywhere. Does somebody know what I'm doing wrong? My intent is to show that a composition of bijections is also a bijection by showing the existence of an inverse.  But my approach requires the associativity of function composition.  Let $f:  X \rightarrow Y, g:  Y \rightarrow Z, h:  Z \rightarrow W$ be functions.  $((f \circ g) \circ h)(x) = h((f \circ g)(x)) = h(g(f(x)))$, and $(f \circ (g \circ h))(x) = (g \circ h)(f(x)) = h(g(f(x)))$.  However, I am having problems in justifying that the two compositions, $(f \circ g) \circ h$ and $f \circ (g \circ h)$, have the same domain and range.  When I consulted ProofWiki, whose link is at the bottom, I got even more confused.  Specifically, for $(f \circ g) \circ h = f \circ (g \circ h)$ to be defined, ProofWiki requires that dom$g =$ codom$f$ and dom$h =$ codom$g$.  First of all, I think that it should be dom$g =$ range$f$ ....  Moreover, as you can see in the example below, you actually have to adjust domains and ranges of $f, g, h$ for the requirement to hold true.  Let $f: \mathbb R \rightarrow \mathbb R$ be $f(x) = 2x$, $g: \mathbb R^+ \rightarrow \mathbb R$ be $g(y) = ln(y)$, $h: \mathbb R \rightarrow \mathbb R$ be $h(z) = z - 10$.   Then $((f \circ g) \circ h)(x) = ln(2x) - 10 = (f \circ (g \circ h))(x)$, with dom$((f \circ g) \circ h) = \mathbb R^+$ = dom$(f \circ (g \circ h))$.  As a result, we need to set dom$f = \mathbb R^+$, range$f = \mathbb R^+$; dom$g$, range$g$, dom$h$, and range$h$ remain the same.  Am I allowed to do that?  This adjustment implies that when we say dom$f = X$, $f$ must be defined for all elements in $X$, but $X$ may not be the entire set of elements for which $f$ is defined. Extracting Data Between two Characters in Excel I have the following format in Excel and I am trying to extract the data between the characters:  First Last &lt;flastname@xxxx.com&gt;   I need to extract the email address between &lt; and > into its own cell  Thanks! When to use 'by' instead of 'at' or 'on' to specify time/date? What would be a good term for continuous testing post-deployment? Linear Combination of Random Normal Variables In order to prove that the linear combination of two independent normal distributions(say Z=X+Y) is normal, i am using their MGFs to show that the linear combination also has a similar mgf. This works okay when Z = X+Y. But when Z=X-Y, i run into trouble :  E[$e^{tZ}$] = E[$e^{t(X-Y)}$] = E[$e^{tX}$]E[$e^{-tY}$]  Now i cannot put this as $M_{x}$(t) * $M_{y}$(t) because of the negative sign. I used the jQuery Form plugin for asynchronous form submission. For forms that contain files, it copies the form to a hidden iframe, submits it, and copies back the iframe's contents. The problem is that I can't figure out how to find what HTTP status code was returned by the server. For example, if the server returns 404, the data from the iframe will be copied as normal and treated as a regular response.  I've tried poking around in the iframe objects looking for some sort of status_code attribute, but haven't been able to find anything like that.    The $.ajax() function can't be used, because it does not support uploading files. The only way to asynchronously upload files that I know of is using the hidden iframe method. Alias and functions From the bash manual     The rules concerning the definition and use of aliases are somewhat   confusing. Bash always reads at least one complete line of input   before executing any of the commands on that line. Aliases are   expanded when a command is read, not when it is executed. Therefore,   an alias definition appearing on the same line as another command does   not take effect until the next line of input is read. The commands   following the alias definition on that line are not affected by the   new alias. This behavior is also an issue when functions are executed.   Aliases are expanded when a function definition is read, not when the function is executed, because a function definition is itself a   compound command. As a consequence,   aliases defined in a function are not available until after that function is executed. To be safe, always put alias definitions on a   separate line, and do not use alias in compound commands.   The two sentences "Aliases are expanded when a function definition is read, not when the function is executed" and "aliases defined in a function are not available until after that function is executed" seem to be contrary to each other.  Can you explain what they mean respectively? $F_\sigma$-subsets in a normal space can be separated Let $X$ be a normal Hausdorff space and let $C,D$ be two $F_{\sigma}$ subsets of $X$ such that $\overline{C} \cap D = \emptyset$ and $C \cap \overline{D} = \emptyset$.  Prove there exists disjoint open subsets $U,V$ such that $C \subset U$ and $D \subset V$.  No idea how to show this. Can you please help? How do I remove a directory and all its contents? In bash all I know is that   rmdir directoryname   will remove the directory but only if it's empty. Is there a way to force remove subdirectories?