cannot find faces context in jsf
java.lang.RuntimeException Cannot find FacesContext
What are the alternatives to Socket Programming? I was browsing around for programming troubleshooters, and I was wondering what the alternate would be for Socket Programming; if there is one. Moderncv adding date of birth to personal information I am currently using 19.04 and I got "No new release found for 19.10" What makes a good tag separator? I'm building an application to allow technical people to enter configuration changes.  I'd like to add tags to each change.  Right now I'm using spaces, commas and semicolons.  It appears SO uses spaces and requires hyphens to make multiple words.  I read something that leads me to believe that WordPress uses commas and that a space isn't a separator.  Is there any best practice out there?  Has anyone had any good or bad experiences? Yes, I'm really sure I want to delete that post Attempting to delete questions on the mobile site on iOS causes two notification messages asking me to confirm the deletion, which it shouldn't do.  I haven't really looked into it, but it may just be that the handlers from full.js and mobile.js are both being triggered, as there seems to be the flash of the error dialog indicating something went wrong on the supposed second AJAX request when the response from the first triggers a page reload.  You can see this happening by following the method calls; the mobile view first calls   StackExchange.question.init() -&gt; StackExchange.question.fullInit()   -&gt; StackExchange.vote.init()     -&gt; u()    ...where u() sets a delegated click handler on  $("div.post-menu *[id^='delete-post-'], table.flagged-posts *[id^='delete-post-']")   ...that calls .preventDefault() on the event, but doesn't block other handlers from firing.  It then later calls StackExchange.mobile.init(), which in turn calls the method J() that sets up a similar handler directly on $(".delete-post").  Since both handlers get triggered, there's two confirmation dialogs, and two attempts to delete the post. The extra handler in mobile.js seems unnecessary, so just removing it would appear to be the easy fix to the problem. Could anybody clear it to me whether these two sentence are grammatically equal? If not, what is the difference?     1) They must use some methods...    2) They are to use some methods... Theory behind partial least squares regression Can anyone recommend a good exposition of the theory behind partial least squares regression (available online) for someone who understands SVD and PCA?  I have looked at many sources online and have not found anything that had the right combination of rigor and accessibility.    I have looked into The Elements of Statistical Learning, which was suggested in a comment on a question asked on Cross Validated, , but I don't think that this reference does the topic justice (it's too brief to do so, and doesn't provide much theory on the subject).  From what I've read, PLS exploits linear combinations of the predictor variables, $z_i=X \varphi_i$ that maximize the covariance $ y^Tz_i $ subject to the constraints $\|\varphi_i\|=1$ and $z_i^Tz_j=0$ if $i \neq j$, where the $\varphi_i$ are chosen iteratively, in the order in which they maximize the covariance.  But even after all I've read, I'm still uncertain whether that is true, and if so, how the method is executed. We put all of our unit tests in their own projects.  We find that we have to make certain classes public instead of internal just for the unit tests.  Is there anyway to avoid having to do this.  What are the memory implication by making classes public instead of sealed? Convergence of Power Series with $z^{2^k}$ Frattini subgroup $Φ ( G )$ is not trivial Frattini subgroup $Φ ( G )$ of a group G is the intersection of all maximal subgroups of $G$. The question is  Let $G$ be an abelian group.What is the sufficient and necessary condition of $Φ ( G ) ≠｛e｝$？  I think if $G$ has no torsion part, we cannot say $Φ ( G ) ≠｛e｝$,because $\Bbb Z ×\Bbb Z×・・・ ×\Bbb Z$ has a maximal subgroup $p\Bbb Z ×\Bbb Z×・・・×\Bbb Z$, with intersectioning distinct primes, we gain just a trivial group. So, we need torsion part. But I cannot proceed from here.I only know the answer, $G$ has an element of order $p^2$, that  is, $G$ has theree subgroups. I want to deduce this consequence from steady discussion. P.S  According to this answer, in a ring that is a finite direct product of quotient rings of $\mathbf{Z}$, we can say rattini subgroup is the same as the Jacobson radical of the corresponding ring. Disable Mac startup sound Anyone know how to disable that cheesy startup sound when I power on my Mac?  If it makes a difference, I'm running Mac OS X 10.6. Determining if trees within forest gaps are clustered using R? What do we know about the creature whose skeleton we see in Star Wars? In Star Wars:  Episode IV - A New Hope, C-3PO passes by what looks like a dinosaur skeleton:      What is this creature?  Are they extinct?  How did such a large animal manage to survive in a barren desert? Calculate the uncertainty in velocity of electron I got this question in one of my periodic test in coaching, I (seemingly) solved the question but later recognised what mess I did.  So, the question is :      Calculate the uncertainty in velocity of an electron. If the uncertainty in its position is ${10^ {-15}} \; \mathrm m$.   By simple calculations one can see that the answer would be ${5.79\times{10^{10}}} \; \mathrm{m/s}$. However, as one can see, the uncertainty in velocity is greater than the velocity of light then how is that possible or there is some other way to handle such problems.  P.S. I know the concept of dynamic mass but I am not very familiar with it. (I think that would work here, but don't know how?) Prove that the power set of an $n$-element set contains $2^n$ elements Theorem. Let $X$ denote an arbitrary set such that $|X|=n$. Then $|\mathcal P(X)|=2^n$.      Proof. The proof is by induction on the numbers of elements of $X$.      For the base case, suppose $|X|=0$. Clearly, $X=\emptyset$. But the empty set is the only subset of itself, so $|\mathcal P(X)|=1=2^0$.      Now the induction step. Suppose $|X|=n$; by the induction hypotesis, we know that $|\mathcal P(X)|=2^n$. Let $Y$ be a set with $n+1$ elements, namely $Y=X\cup\{a\}$. There are two kinds of subsets of $Y$: those that include $a$ and those that don't. The first are exactly the subsets of $X$, and there are $2^n$ of them. The latter are sets of the form $Z\cup\{a\}$, where $Z\in\mathcal P(X)$; since there are $2^n$ possible choices for $Z$, there must be exactly $2^n$ subsets of $Y$ of which $a$ is an element. Therefore $|\mathcal P(Y)|=2^n+2^n=2^{n+1}$. $\square$      From the above explanation, I don't understand why the set that contains $\{a\}$ will contain $2^{|n|}$ elements when it should clearly be $2^{|1|}$.  The construction of a new set $S$ is the union of the old set with cardinality $n$ and an new element $\{a\}$, therefore the set that do not contain $\{a\}$ still has cardinality $n$ and the set that contains $\{a\}$ is just $\{a\}$, one element...  Can someone please elucidate? MySQL string replace Can I use apt-get or aptitude to install software to non standard location? When I install a software using apt-get it installs to default locations i.e to /usr/bin, /usr/lib, /usr/share and etc. For example when I install "Meld Diff Viewer" using  sudo apt-get install meld   and use whereis command to find its location, I get the following output  adnan@adnan-laptop:~$ whereis meld meld: /usr/bin/meld /usr/lib/meld /usr/share/meld /usr/share/man/man1/meld.1.gz   Is there any way to change the install location. Lets say if I want to install it in /usr/local/ can I do it using apt-get or aptitude? I know I can compile it from source and specify prefix option to configure script or make install but it would be better (and really easier) if I could do it using apt-get as I would be able to use uninstall, upgrade and other stuff that apt-get offers How to use variable inside parameter $_GET? example: ($_GET[$my_var]) Over the past few weeks, there have been a number of complaints about users making suggested edits en masse whose quality was at least questionable.  Let an example of a low-quality edit be the addition of the web-frameworks tag to dozens of questions about the PHP web framework Laravel. No one is ever going to use it in a search, but Laravel is a framework, right?  (If you disagree about this being a low-quality edit, please  bear with me anyway - my point here is that the system through which such conflicts could be settled is broken.)   Examples          This is a toxic situation guaranteed to create strife because -   The new user is happy to have found a way to participate and earn some rep; they may be genuinely feeling that they are improving the site. The reviewers greenlighting most of their suggestions confirms them in their belief.   The reviewers usually see only one edit - and it's easy to see how they might go, "meh, this isn't a terribly useful edit, but hey, maybe it helps someone, and it's a new user. No point discouraging them."   The veteran users who check out the editor see dozens of what they perceive as low-quality edits, usually ignoring anything else that should be fixed in the post. To the veterans, the new user is systematically looking for excuses to make their pointless edits, creating a giant mess in order to  gain some rep - a mess they have to clean up, while there are no consequences for the editor, who gets to keep their ill-gotten points. While a bad question or answer can be downvoted - usually leading to a change of behaviour eventually - the edit system looks like it's wide open for gaming.   So tensions are high, and when there's dialog it can be angry. I'm not saying either side is completely right. I'm completely prepared to believe that many of these edits are in good faith, etc. But it's a mess because it's frustrating people. As said, there are no consequences for bad-faith mass editing; apart from commenting on some random post, there is no way to communicate with an editor. The outcome of a moderator flag is very much uncertain.  The absence of a clear set of rules means there's plenty of room for heated arguments.    Something needs to change here.  Either   We need super clear rules on what makes a good tag edit Tag-only edits should be allowed only for 2k+ users, or they should not gain 2 reputation points for &lt;2k users The possible 1000 rep gain for suggested edits needs to be rate-limited (say, 200 per month) (this is my favourite!) The possible 1000 rep gain for suggested edits needs to be lowered, say to 500 or 250 Rollbacks of suggested edits should result in annulment of the 2 points gained (this is terrible) There should be a system to vote on edits (yes, that's been suggested before) There should be a defined and officially sanctioned pathway, and ruleset, for moderator flags cast about these users    ... or something else. But something needs to give. How to determine whether a unique factorization domain is a principal ideal domain? Could someone please provide an example of a unique factorization domain that is not a principal ideal domain?  Furthermore, is there some way to determine whether a UFD is a PID?