How can I verity two static methods invocations using PowerMock?
How can I test two static methods (one invokes the other) with PowerMockito?
How do I diagnose not being able to reach a specific website as an end user? Changing the resistor to be in front or behind an LED doesn't affect brightness? According to the Wikipedia article on  the sample SD   $$s = \sqrt{\frac{1}{n-1} \sum_{i=1}^n (x_i - \overline{x})^2}$$  is a biased estimator of the SD of the population. It states that $E(\sqrt{s^2}) \neq \sqrt{E(s^2)}$.   NB. Random variables are independent and each $x_{i} \sim N(\mu,\sigma^{2})$   My question is two-fold:   What is the proof of the biasedness? How does one compute the expectation of the sample standard deviation    My knowledge of maths/stats is only intermediate. How do I embed an image from the web into a Trello card comment or description? So far I have been successful embedding Youtube videos into Trello card comments; simply by including the URL in the comment Trello picks it up and renders an embedded Youtube thumbnail.   What I would like to do is the same thing, but with a simple PNG image. I don't want to upload the image as it is a Balsamiq mockup permalink which will get updated periodically, and I want the latest version to be displayed on the Trello card.   However, pasting the image URL into the Trello card has no effect.  Am I missing somthing? I'm using the gnome flashback session with metacity window manager, but I can't change to any metacity theme in any of the tweaking tools, as they're not even appearing in the lists. Is there anything I can do? Unicode filenames on Windows with Python & subprocess.Popen() What is the JavaScript version of sleep()? How to solve this integral? $I=\int{e^x \Big(2\log x+\frac{1}{x}+\frac{1}{x^2}\Big)dx}$ $$I=\int{e^x \Big(2\log x+\frac{1}{x}+\frac{1}{x^2}\Big)dx}$$ I have tried to use many methods of substitution  But I am aware of a formula  $$I=\int{e^x[f(x)+f'(x)]dx}=e^xf(x)+C$$  but can this formula be applied to the above equation 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? After running an upgrade from Ubuntu 11.10 (Oneiric Ocelot) to 12.04LTS (Precise Pangolin), a window popped up saying that the upgrade failed and that I should run sudo dpkg --configure -a.  Running that command gave me:  sudo dpkg --configure -a dpkg: error: parsing file '/var/lib/dpkg/status' near line 55497 package 'indicator-displex':  blank line in value of field 'Description   Trying to run apt-get install -f gives me many dependency errors along with that same dpkg error. Units and Nilpotents If $ua = au$, where $u$ is a unit and $a$ is a nilpotent, show that $u+a$ is a unit.   I've been working on this problem for an hour that I tried to construct an element $x \in R$ such that $x(u+a) = 1 = (u+a)x$. After tried several elements and manipulated $ua = au$, I still couldn't find any clue. Can anybody give me a hint? I am a Canadian citizen, and I intend to travel to the US for a student clinical elective at a university in Texas for the months of September and October. The university will help me obtain an F-1 status. However, I want to attend a few conferences and educational seminars which are being held in November/December for which I will be using a B1/B2 visa.  Will I have to leave the US and come back in November using a B1/B2 visa, or is there another way to change my visa status, or can I apply for both visas upon entering the US? Why is gravity such a unique force? My knowledge on this particular field of physics is very sketchy, but I frequently hear of a theoretical "graviton", the quantum of the gravitational field.  So I guess most physicists' assumption is that gravity can be described by a QFT?  But I find this weird, because gravity seems so incredibly different from the other forces (yes, I know "weirdness" isn't any sort of scientific deduction principle).  For relative strengths:   Strong force: $10^{38}$ Electromagnetic force: $10^{36}$ Weak force: $10^{25}$ Gravity: $1$   Not only does gravity have a vastly weaker magnitude, it also has a very strange interaction with everything else.  Consider the Standard Model interactions:    No particle (or field) interacts directly with all other fields.  Heck, gluons only barely interact with the rest of them.  So why is it then that anything that has energy (e.g. everything that exists) also has a gravitational interaction?  Gravity seems unique in that all particles interact through it.  Then there's the whole issue of affecting spacetime.  As far as I'm aware, properties such as charge, spin, color, etc. don't affect spacetime (only the energy related to these properties). Why an abstract class implementing an interface can miss the declaration/implementation of one of the interface's methods? I have too many sections in my presentation such that the left-hand-side navigation bar is full and only shows the first sections in Fig. 2, initial situation in Fig. 1.  Pseudocode    clean the left-hand-hand side navigation bar when exceed the threshold and start a new one there when on sufficient page  this feature occurs with Beamer Berkeley appendix so it is possible also with the main document   Code which problem shown in Fig. 2   \documentclass{beamer} \usetheme{Berkeley}  \logo{\includegraphics{logo.png}} \usepackage{hyperref} % https://tex.stackexchange.com/a/346486/13173 \newenvironment{slide}[1] {\begin{frame}[environment=slide,allowframebreaks] \frametitle{\insertsection-#1} } {\end{frame}} % fragile only if code % allowframebreaks not by default   \begin{document}  \title{Sensory system. Primary sensory modalities. Cortical modalities. Kinds of sensory disturbances. Spinal cord disorders. Spinal cord transverse and partial lesion. Cauda equina damage.} \author{Leo}  \section{Cortical modalities} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 2} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 3} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \section{Cortical modalities 4} \begin{slide}{basics}      More refined aspects of sensation ... \end{slide}  \end{document}   Fig. 1 Situation at the first page,  Fig. 2 Situation at Section 6 wheere the navbar has not changed,  Fig. 3 Samcarter's answer output + one slide addition but without \part{} - fails on sufficient page count       Output: the left-hand-side navigation bar is not refreshed when the amount of sections exceed its capacity on suffcient enough page     Testing Samcarter's proposal  I include one slide before Samcarter's body so I get the wrong output in Fig. 3.  Solution: Eventually correct output by just adding \part{} in the place where the new navbar is wanted.   TeXLive: 2016 OS: Debian 8.7 I want to test in a script whether a hostname resolves to something other than 127.0.0.1 as a pre-flight test for an install script. The tools I know (dig, nslookup) specifically query DNS. In my situation a correct entry in /etc/hosts is a valid configuration. So the question is:  Is there a dig-like tool, ideally already on the system, that does the full name-resolution process via nsswitch.conf, like (for example) ping does?  dig my-test-server-that-only-exists-in-etc-hosts    returns NXDOMAIN. color glitches and weird texture in render When I look in my preview render everything looks fine (for not having finished lighting) but when i actually render it the color of my doughnut icing glitches and the texture of the table doesn't appear. Describing integral closure of quadratic number fields I'm facing the following problem.      Let $p$ be a prime and $ K=\mathbb{Q}(\sqrt{p}) $. I'm trying to find the integral closure of $ \mathbb{Z} $ in $ K $.   I don't really know where to start. I've managed to prove that $ \mathbb{Z}[\sqrt{p}] $ is in the integral closure and I'm almost sure $ \mathbb{Q} $ is not.   I can't think of a systematic way to approach this. I would appreciate any help. In my CMS, I noticed that directories need the executable bit (+x) set for the user to open them. Why is the execute permission required to read a directory, and how do directory permissions in Linux work? What is average distance from center of square to some point?