Access control from Java subclass I think I spotted a contradiction in the java official documentation here:   On one hand, it says:     " If the subclass is in the same package as its parent, it also   inherits the package-private members of the parent."   after which, it says:     A subclass does not inherit the private members of its parent class.   Aren't they contradictory statements?  I would think the second statement is correct. Private fields can be accessed only within the class that it defines them (unless we have defined private or protected get accessors in that class). Thank you.
What is the difference between public, protected, package-private and private in Java? In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?
How can I prevent iPhoto from opening everytime I plug my iPad/iPhone? How can I prevent iPhoto/Photos/Image Capture from launching everytime I plug in my iPad/iPhone? Irreducible element iff prime norm in Gaussian integers? I am trying to prove the following: Let $R=\mathbb{Z}[i]$, $a, b \in \mathbb{Z}, ab \neq 0$. Show that $a+bi$ is an irreducible element in $R$ if and only if $a^2 + b^2 ∈ \mathbb{Z}$ is prime. Since $R$ is a Euclidean domain, irreducible elements are prime. I think this is relevant, but am stuck on where to go from here. Steady-State Current I am in the process of completing some homework and have come across a question that says: "What is the steady-state current?" It is asking in reference to a circuit that includes two capacitors in parrallel and a DC source of 24V and an AC source given by $\epsilon = 20 \cos(120 \pi t)\ \text{V}$, where $t$ is in seconds. I assume that it is asking when the current is constant. Because naturally the current is not constant due to the AC source, would I just consider the DC source for this? Why is there this strange contradiction between the language of logic and that of set theory? In standard probability theory events are represented by sets consisting of elementary events. Consider two events for which (as sets) $A \subset B$. If an elementary event $x \in A$ takes places then we say that $B$ takes place as well. Since $A \subset B$, $x \in A$ implies that $B$ takes place too.  It seems that when for sets (representing events) $$A \subset B$$ $$then \ A \ implies \ B .$$  On the other hand, if we use the language of logic for the events then $$A \supset B$$ $$ \ means\  that \ A\  implies\ B .$$  Why is this strange virtual contradiction between the language of sets and the language of logic?  (In order to avoid down votes and unplesant comments I reveal that I happen to know that the true translation of the sentence $A \supset B$ of logic to the language of sets (representing events) is $\overline{A \cap \overline B}$.) Delete all files except in a certain subdirectory with find I want to recursively delete all files not accessed in a while in folder a, except all files in the subfolder b.  find a \( -name b -prune \) -o -type f -delete   However, I get an error message:     find: The -delete action automatically turns on -depth, but -prune does   nothing when -depth is in effect.  If you want to carry on anyway,   just explicitly use the -depth option.   Adding -depth causes all files in b to be included, which must not happen.  Anyone know a safe way to make this work? Right triangles and tangent lines Consider the hyperbola $xy=1$ with $x&gt;0$ and $y&gt;0.$ The tangent line at any point on the hyperbola forms a right triangle with the coordinate axes. Show that the area of the triangle does not depend on the point chosen. To show this, do the following:      a) Choose a point on the hyperbola of your choice. Find the tangent line and then find the area of the right triangle described above.      b) Choose a different point of your choice. Find the tangent line and then find the area of the right triangle described above.      c) Now for the general case, choose the point at $x=a.$ Find the tangent line at $x=a$ and then find the area of the right triangle described above.   This is the work I have so far:    No method to find the area of a right triangle was given, so I just used 1/2*B*H.  But I get stuck when given $x=a$ for part C.  Any ideas? Why is $\mathbb{E}[X] = 1 + \sum^\infty_{k=1}\mathbb{P}(X > k)$ true? I'm working through a problem regarding expected values in Markov chains, and at some point it says:     Recall from probability that if $X$ is a positive integer valued random variable, then $\mathbb{E}[X] = 1 + \sum^\infty_{k=1}\mathbb{P}(X &gt; k)$.   I know that by definition $\mathbb{E}[X] = \sum_a a\mathbb{P}(X = a)$, but I can't see how the above equality follows from this, nor am I sure if this is how to approach the problem. You should choose your Display Name when signing up When a user signs up , their username is something along the lines of "user########"  Granted, in the welcome email it does say something along the lines of "Head over to your user account page to chose a display name!", however only a few people actually read that email.  I'm not saying we should restrict people from changing their display name again in the future - Everyone would still be able to do so. It's just that when you sign up you choose an initial display name that will be what your first display name is instead of "user########". Let $\kappa, \lambda,\theta$ be infinite cardinals of $M$ where $M$ is a transitive model of ZFC. Let $\mathcal{P}=Fn(\kappa\times \omega,2)$ (finite functions from $\kappa\times \omega$ to 2) and G is a (M,P)-generic set. I want to show $(\lambda^\theta)^{M[G]}=(max(\kappa,\lambda)^\theta)^M$. One direction is easy $(\lambda^\theta)^M \leq (\lambda^\theta)^{M[G]}$ and $(\kappa^\theta)^M\leq (\kappa^\theta)^{M[G]}\leq ((2^\omega)^\theta)^{M[G]}=(2^\theta)^{M[G]}\leq (\lambda^\theta)^{M[G]}$ where $(\kappa \leq 2^\omega)^{M[G]}$ is by the forcing construction. But now I am not quite sure how to get the other direction. Any thoughts? Since my previous questions were not answered I will try to ask again more precisely.  I previously had the Nvidia driver installed and working correctly.  Then the ubuntu software update did something which broke it.  In fact, it completely de-configured it so that the standard display driver is used when the computer reboots.  I would like to re-enable the existing Nvidia  driver without re-installing the Nvidia driver.  How do I do that?  This machine is no longer connected to the internet.  NOTE: I am not asking how to disable automatic updates in this question.  I asked that elsewhere (and it wasn't answered).  NOTE: I am not asking how to stop the Ubuntu software updater from breaking the Nvidia driver the next time it updates the system.  That would be nice to know, but I asked that already and did not receive the correct answer either.  NOTE: Please don't make this as duplicate simply because someone else asked a question about Ubuntu and the software updater.  Try to read the actual question and see how it's different and try to realize how annoying it is when users have to spend hours of their own time to correct the problems that other people causing by incorrectly designing software updaters. Making an invisible pressure plate I'm trying to build a teleporter. I want the player to be teleported from the first sign(left) to the right sign(right). So, when the player steps on the red wool on the left, he will automatically be teleported to the red wool on the right. I do not want to use any pressure plats.It might work with the testfor comment, but I didn't figure out, put that only works with a radius. BTW I'm in 1.10.2 bou I could probably change the version if necessary.     The testfor command block should activate the teleport command block,when the player is detected. Now, I'm not really the expert, so I know non of the commands that you would need to build this construction. Please help, I would highly appreciate it! If you need any more details, ask me! I am trying to get Juju working on Windows 8 but I am running in to some errors when trying to get juju to see my ssh keys:  C:\Users\username&gt; juju bootstrap error: error parsing environment "azure":     read C:\Users\user\SkyDrive\Documents\Azure\ssh\: The handle is invalid.   I've added a public key I generated with putty to the directory above called azure  My environments.yaml file has this in it:  authorized-keys-path: C:\Users\user\SkyDrive\Documents\Azure\ssh\   Any ideas? How do I access a specific element in a vector of vectors clojure What documentation is needed for a tourist to drive a US citizen's car? Propose Newbie-Overflow site or section Could not open input file: composer.phar Now let set $A$ be arbitrary. So set $A$ exists. Using axiom of pairing $\{A\}$ exists. And then using axiom of regularity, we can argue that $A \notin A$. So, there is some $x$ such that $x \notin A$. Is this a valid proof ? Thanks How do I translate an ISO 8601 datetime string into a Python datetime object? What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these? parallel thermostat I have a venter room heater in a cabin. It uses a milivo;t thermostat. I am hooking it up to a wifi thermostat using a relay and 24 volt power supply. My concern is that if the power goes off that the thermostat will not power the unit on. I currenty have a digital thermostat that controls the unit and works great. can I wire the current thermostat to the wifi in parallel so if power goes off it will still allow the heater to turn on. If I can how do I wire it?