Why can a protected field be access from a class that is not a subtype?
What is the difference between public, protected, package-private and private in Java?
I know that each new tab on Google Chrome have its own process, but I have 14 chrome.exe processes running actually as I can see it on the Task Manager, and only two tabs are opened on Google Chrome.    Could it be due to Chrome extensions? What other reason can open more chrome.exe process and how to avoid it? Why is the Descriptor not getting called when defined as instance attribute? Floating Objects and Weight The Situation:  A ball is placed in a beaker filled with water and floats. It is also attached to the bottom of the beaker via a string.   The Question:  The ball is attached to the beaker, thus making the ball and beaker (and string included) a system. However, it is floating. Does the ball add to the weight of the beaker? How could I go about detecting (returning true/false) whether an ArrayList contains more than one of the same element in Java?  Many thanks, Terry  Edit Forgot to mention that I am not looking to compare "Blocks" with each other but their integer values. Each "block" has an int and this is what makes them different. I find the int of a particular Block by calling a method named "getNum" (e.g. table1[0][2].getNum(); Picking a lock typically requires a DC 15 Dexterity check (Basic rules, p. 49). Likewise for manacles (p. 50), which can alternately be escaped with a DC 20 Dexterity check or broken with a DC 20 Strength check. But what happens if you fail?  The general rules for ability checks state (p. 58):     If the total equals or exceeds the DC, the ability check is a success—the creature overcomes the challenge at hand. Otherwise, it’s a failure, which means the character or monster makes no progress toward the objective or makes progress combined with a setback determined by the DM.   As a DM, how can I handle this in practice? In our last session, the players wanted to get inside a locked building to rescue people trapped inside. Picking the lock seemed like an easy enough task for the rogue, but unluckily he failed the check, and I wasn’t prepared for the consequences. There wasn’t much time pressure and no obvious reason why he couldn’t try again, so I allowed another attempt, but it just didn’t feel right.  I’m sure that similar situations will come up again, so I’d like some advice on how to deal with checks so that they don’t just turn into a tedious exercise of rolling until you succeed. I presume that  was left out of the game for good reason, but I’m not sure what to do instead. I suspect that this was a good occasion to use “progress with a setback” but that’s a fairly new thing for D&amp;D and I’m not sure how to go about it. I’m unsure when I should use setbacks versus lack of progress, and in the latter case I’m unsure when I should allow players to try again versus requiring a different approach.  For example, suppose that a manacled player tries to pick the lock and fails the DC 15 Dexterity check. Now, the player could try to pick it again, or he could try one of the other escape methods, or he could wait for somebody else to rescue him, or he could simply succeed with some setback like a minor injury. How do I choose how to proceed? Or do I let the players choose? Configuring dpkg stops processing when calling an HTTP request to Adobe Flash Player I recently moved to Linux, and I am in love with the experience. Opinions apart, I am having problems when running sudo dpkg --configure -a  My computer stops processing the command here:  You may know Adobe Flash Player is no longer supported, and I believe that could be why the command is unable to load pepperflashplugin-nonfree. I have tried fixing the problem by checking older posts here, but none of them was able to fix this problem. Which is the correct question ("Who has" vs "Who have")? The situation is that:  We've already read three English novels.  Which is the correct question for that situation?   Who has already read three English novels?  Who have already read three English novels?    Or could both be correct? Please also provide the grammatical reasons for your answers. What is the probability that a person is the second person to roll a 6 for the first time? Suppose $A$, $B$, and $C$ roll a die in turns. What is the probability that $A$ is the second person to roll a $6$ for the first time? Let $V$ be spherically symmetric and $W$ i.i.d. Gaussian. Then $E[V|V+W=t]=g(\|t\|)$ A random vector $V \in \mathbb{R}^n$ is said to be spherically symmetric. If for every orthogonal matrix  $A$   the distribution of $AV$ is the same as the distribution of $V$.   My question: Let $W$ be  i.i.d. zero mean Gaussian random variable.     Can we show that  for a spherically symmetric $V$ the conditional expectation  \begin{align} E[V|V+W=t]=   g(\|t\|).  \end{align}  That is the conditional expectation is only a function of the magnitude.   My attempt:  \begin{align} E[V|V+W=t]= \int  V  \frac{f_W(t-v)}{f_{V+W}(t)} dP_V(v)= \frac{\int  v  f_W(t-v) dP_V(v)}{f_{V+W}(t)}= \frac{E[ V  f_W(t-V) ]}{f_{V+W}(t)} \end{align}  Therefore, we can show that the two functions in the above ratio only depend on $\|t\|$.   Observe that we can write $t= \|t\| u_t$  where $u_t$ is a unit vector. Then, for any orthogonal matrix $A$ \begin{align} f_{V+W}(t)=f_{V+W}(\|t\|, u_t)&amp;= \frac{1}{(2\pi)^{n/2}} E[ e^{-\frac{\|t-V  \|^2}{2}} ]\\ &amp;= \frac{1}{(2\pi)^{n/2}} E[ e^{-\frac{\|t-AV  \|^2}{2}} ]\\ &amp;= \frac{1}{(2\pi)^{n/2}} E[ e^{-\frac{\|tA^{-1}-V  \|^2}{2}} ]\\ &amp;= \frac{1}{(2\pi)^{n/2}} E[ e^{-\frac{\|t A^T-V  \|^2}{2}} ]\\ &amp;= f_{V+W}(tA^T)\\ &amp;= f_{V+W}(\|t\|,  u_t A^T) \end{align}  Since, $A$ was arbitrary  we have that $f_{V+W}(t)=h(\|t\|)$(i.e., only depends on the magnitute).  Now I am not sure how to show that $E[ V  f_W(t-V) ]$ only depends on $\|t\|$? If $11z^{10}+10iz^9+10iz-11 = 0$. Then possible value of $\mid z \mid,$ is If $11z^{10}+10iz^9+10iz-11 = 0$. Then possible value of $\mid z \mid,$ is  $\bf{My\; Try::}$ Given $11z^{10}+10iz^9+10iz-11 = 0\Rightarrow \displaystyle z^9 = \frac{11-10iz}{11z+10i}.$  Now Put $z = x+iy\;,$ we get $\displaystyle (x+iy)^9 = \frac{11-10i(x+iy)}{11(x+iy)+10i} = \frac{(11+10y)-10ix}{11x+i(10+11y)}$  Now i did not understand how can i solve it,  Help Required  Thanks If $\left(1+\sin \phi\right)\cdot \left(1+\cos \phi\right) = \frac{5}{4}\;,$ Then $\left(1-\sin \phi\right)\cdot \left(1-\cos \phi\right)$ If $\displaystyle \left(1+\sin \phi\right)\cdot \left(1+\cos \phi\right) = \frac{5}{4}\;,$ Then $\left(1-\sin \phi\right)\cdot \left(1-\cos \phi\right) = $  $\bf{My\; Try::}$ Given $\displaystyle \left(1+\sin \phi\right)\cdot \left(1+\cos \phi\right) = \frac{5}{4}\Rightarrow 1+\sin \phi\cdot \cos \phi+\sin \phi+\cos \phi = \frac{5}{4}.$  So $\displaystyle \sin \phi+\cos \phi+\sin \phi \cdot \cos \phi = \frac{1}{4}\Rightarrow \left(\sin \phi+\cos \phi\right) = \frac{1}{4}-\sin \phi \cdot \cos \phi.$  Now $\displaystyle \left(1-\sin \phi\right)\cdot \left(1-\cos \phi\right) = 1-\left(\sin \phi+\cos \phi\right)+\sin \phi \cdot \cos \phi =\frac{3}{4}+\sin 2\phi$  Now How can I calculate $\sin 2\phi.$  Help me, Thanks Advanced statistics books recommendation There are several threads on this site for book recommendations on  and  but I am looking for a text on advanced statistics including, in order of priority: maximum likelihood, generalized linear models, principal component analysis, non-linear models. I've tried  by A.C. Davison but frankly I had to put it down after 2 chapters. The text is encyclopedic in its coverage and mathematical treats but, as a practitioner, I like to approach subjects by understanding the intuition first, and then delve into the mathematical background.   These are some texts that I consider outstanding for their pedagogical value. I would like to find an equivalent for the more advanced subjects I mentioned.   , D. Freedman, R. Pisani, R. Purves. , R. Hyndman et al. , T. Z. Keith , Rand R. Wilcox , Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani , Hastie, Tibshirani and Friedman (2009) How do I enable Remote Desktop connection on Xubuntu 11.10? Institute Name in @masterthesis Citations I need to cite master thesis and the lecture notes into a document. But the problem with @masterthesis and @unpublished citations is they don't print an institution name in the pdflatex output of bibliography.   `\documentclass{article}   \usepackage{filecontents}  \usepackage[ backend=biber, style=numeric, sortlocale=de_DE, natbib=true, url=true,  doi=true, eprint=false ]{biblatex} \addbibresource{bibliography.bib}  \begin{filecontents}{bibliography.bib} @masterthesis{bhgt, title={Bike Model}, author={Fris}, year={2016}, school={University A}, address={XXX} } @unpublished{Map, title = {Electrical Engineering Book}, author={Koch}, howpublished = {Lecture Notes}, Institution= {University B}, year = {2015} } } \end{filecontents}  \begin{document}  Citation Test:  \cite{bhgt} and \cite{Map} \printbibliography  \end{document}`   I get this bibliography output:         [1] Fris. Bike Model. XXX, 2016.   [2] Koch. “Electrical Engineering Book”. Lecture Notes. 2015.       Any suggestions, how we can also print an institute name? How can I save application settings in a Windows Forms application? What I want to achieve is very simple: I have a Windows Forms (.NET 3.5) application that uses a path for reading information. This path can be modified by the user, by using the options form I provide.  Now, I want to save the path value to a file for later use. This would be one of the many settings saved to this file. This file would sit directly in the application folder.  I understand three options are available:   ConfigurationSettings file (appname.exe.config) Registry Custom XML file   I read that the .NET configuration file is not foreseen for saving values back to it. As for the registry, I would like to get as far away from it as possible.  Does this mean that I should use a custom XML file to save configuration settings?  If so, I would like to see code example of that (C#).  I have seen other discussions on this subject, but it is still not clear to me. What is the correlation if the standard deviation of one variable is 0? Lie bracket for Lie algebra of $SO(n,m)$ I think this story dates from the 1950s, plus or minus a decade - I read it about 30-35 years ago in a (then) fairly old story collection. It involves explorers on a planet falling into a gelatinous object that dissolves most of their bodies except for their brains and nervous systems. About four of them fall in to the same creature, and they discover that by thinking about it they can grow limbs and other body parts. At first they try to fight each other, by growing arms so they can hit each other's brains - and one of them realises that growing a skull would be a good idea - but later they agree to grow legs and move the creature around co-operatively. I would love to identify this story. Why is the colour picker displaying tinted colors? The colour picker is behaving not as I expect it to. I cannot move the selector towards most of the edges, setting the RGB to 1.00 for red and the rest to 0 just gets an orange colour. Also I cannot simply keep the "value" the same and select a different shade, the "value" resets.  I'm not sure if i've pressed something in error or there is a setting in the user preferences/elsewhere that needs changing. I'm using the cycles renderer. The issue occurs with any colour picking :- material, background etc. Quitting Blender and restarting does not resolve the issue. Version 2.79.6 Are S.P.E.C.I.A.L. skills capped at 10? We know that the maximum level a dweller can train to on any SPECIAL skill is 10, however this does not consider bonuses given from their outfit.    Is there any additional benefit for going over 10? For example, a dweller with an Intelligence skill of 10 wearing a lab coat that boosts Intelligence by 3?   If it is a hard cap, would it be more useful to use outfits that raise a secondary characteristic instead?