Unexpected value printed when trying to print sorted array
What's the simplest way to print a Java array?
Is $\int \frac{1}{2x} \, dx $ equal to $\frac{\ln|2x|}{2}+ C$ or $\frac{\ln|x|}{2}+ C$ Reasoning for $\frac{\ln|x|}{2}+ C$ :  $$\int  \frac{1}{(2x)}  \, dx = \frac{\ln|2x|}{2}+ C$$   Check: By taking derivative we get $\frac{1}{x}$  Reasoning for $\frac{\ln|x|}{2}+ C$ :  $$\int  \frac{1}{2x}  \, dx = \frac{1}{2}\int  \frac{1}{x}  \, dx =\frac{\ln|x|}{2}+ C$$  Check: By taking derivative we get $\frac{1}{x}$  Question: Is  $\int  \frac{1}{2x}  \, dx $ equal to $\frac{\ln|2x|}{2}+ C$ or $\frac{\ln|x|}{2}+ C$? Call to getLayoutInflater() in places not in activity How to connect two parents to the same child, with parents not in the same tree? I'm trying to draw a specific tree, with two parents node linked to the same child. The problem is that one of the parent is outside the main tree.  Here's the code I have for the moment:  \documentclass{article} \usepackage{tikz-qtree,tikz-qtree-compat} %\usepackage{gb4e} \usepackage{forest}  \begin{document}  %\begin{exe} \begin{forest} qtree edges/.style={for tree= parent anchor=north, child anchor=south}    [A, grow=north        [C, name=C, grow'=north            [D, grow=north ]            [E, name=t5, grow=north ]        ]        [B, grow=north ]    ]    \hspace{0.8cm}    [$F$, name=F, grow=north ]    %\draw (F.north) -- (C.south); \end{forest} %\end{exe}  \end{document}   I'd like the nodes F and C to be connected. I don't know why, but if I delete the dollar signs, node F doesn't even appear on my document.  Another thing is that I want the forest environment to be embedded in an example environment, but this doesn't work either.  Thanks in advance for your help! Don't show pending suggested edits to me after I run out of votes $\mathcal N (A):=\mathcal P(A)\setminus\{\varnothing\}$ notation Bibliography per chapter with continuous numbering I would like to create a document with two chapters. After the first chapter there should be a bibliography. The next chapter should be able to reference items of the former chapter, but only show the new items in its bibliography, starting with the next number from the first bibliography.  Example:     Chapter 1 - The Fu   Fu has been done by Bar [1]. Early versions ...   Bibliography   [1] Bar et. al., Doning the Fu      Chapter 2 - Compining Fu with Herp   Doning Fu as described in [1]   neglects the advantages of Herp pointed out by Derp [2].   Consequently ....   Bibliography   [2] Derp et. al., The Advantages of Using Herp   Please not too much discussion about if that is a friendly-to-use idea, it is not my own demand :) hyperref: how to format text in a forms text-field I would like to pre-format the text in a form text-field, e.g. make it bold, italic or use a specific font. The following code generates a simple text-field:  \documentclass{scrreprt} \usepackage{hyperref} \begin{document} \textbf{The Text Field} \begin{Form} \TextField[]{\ } \end{Form} \end{document}   Is it possible to pre-format the text in the text-field? The hyperref package manual (10/2011) speaks of an optional parameter format and the use of JavaScript to format the field. Can this be used to format the text in the field? And if yes, how is it done? (I am not proficient in JavaScript) Determining audio level peaks with ffmpeg Is there a plugin I'm missing that allows me to determine the volume samples over the length of an audio file?  For example, a sample of every second to gain the dB vs timestamp? Typesetting annuity and life-insurance symbols in ConTeXt How do I typeset annuity and life-insurance symbols, actuarial notation in ConTeXt. I see there are packages available but not for ConTeXt.    Thanks On the nature of the collapse of the wave function The collapse of the wave function by measurements is one of the most mysterious properties of quantum mechanics.    At what scale does the wave function collapse? What are the conditions for a collapse?  Can it be made precise?  Does the collapse happen instantaneously, or is it spread out in time?  What is the precise equation for the collapse?  Why is the collapse time-asymmetric, and can this explain the arrow of time? Why do paintbrush loops get thicker at the top in Illustrator? When I do swirls in Illustrator with the paintbrush tool I often get this result (see image).    The loops doesn't get perfectly rounded, instead sometimes some of them gets thicker at the top of the loop... It tends to happen more if I paint small with low brush sizes. Why is this happening? This actually triggered me in my mind from . After some playing around I notice that the relation $a^{\log_b x} = x^{\log_b a}$ is true for any valid value of $a,b$ and $x$. I am very inquisitive to see how this holds ? Need to give permissions to /tmp/cache and /tmp/templates_c but can't find them How to get the file name from a full path using JavaScript? Is there a way that I can get the last value (based on the '\' symbol) from a full path?  Example:  C:\Documents and Settings\img\recycled log.jpg  With this case, I just want to get recycled log.jpg from the full path in JavaScript. Graduate school admission with a degree in a different field I'm having difficulty with exercise 1.43 of Lang's Algebra. The question states     Let $H$ be a subgroup of a finite abelian group $G$. Show that $G$ has a subgroup that is isomorphic to $G/H$.   Thinking about this for a bit, the only reasonable approach I could think of was to construct some surjective homomorphism $\phi\colon G\to K$ for $K\leq G$, and $\ker\phi=H$, and then just use the isomorphism theorems to get the result.  After a while of trying, I've failed to come up with a good map, since $H$ seems so arbitrary. I'm curious, how can one construct the desired homomorphism? This is just the approach I thought of, if there's a better one, I wouldn't mind seeing that either/instead. Thank you. Error message "sudo: unable to resolve host (none)" If you hash a string using SHA-256 on your computer, and I hash the same string using SHA-256 on my computer, will we generate the same value? Does the algorithm depend on a seed (so we'd both need the same seed) or some other such parameter?  edit:  To clarify, by 'string' I meant 'the same byte input', which as the comments and @ispiro's answer point out, may be different for the same character string depending on the encoding. Is there a law that you can add or multiply to both sides of an equation? How do I access a specific element in a vector of vectors clojure