I'm having an infinite while loop issue, no matter what I type in even if it is "Filed" or "Incomplete" the loop keeps re prompting and I can't figure out why.  strMajorSheet = JOptionPane.showInputDialog(null,"What is the advisee's major sheet status? (Filed/Incomplete)",                 "Advisee's Major Sheet",3);  if(strMajorSheet == "Filed" || strMajorSheet == "Incomplete")                     {                          switch(strMajorSheet)                         {                             case "Filed":                                 blnMajorSheet = true;                             case "Incomplete":                                 blnMajorSheet = false;                           }                     }                     else                     {                         while(strMajorSheet != "Filed" &amp;&amp; strMajorSheet != "Incomplete")                         {                             strMajorSheet = JOptionPane.showInputDialog(null,"What is the advisee's major sheet status? (Filed/Incomplete)",                                 "Advisee's Major Sheet",3);                           }
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?
Clicking on tags in global search results is broken If you search for something on "all sites" (using the searchbox at the top of , you'll reach the search results, e.g.  .  If you click directly on a tag on that page, e.g.        You get 404 Page Not Found error, e.g.     Steps to reproduce   Go to  and enter e.g. "keyforge" into the "Search all sites" field. Arrive at  Click on the "keyforge" tag below a search entry. Reach  (404 page not found)   Expected behaviour  Reach   System Info  Happens in both Firefox and Vivaldi browsers on Windows 10. What are the differences between $$, \[, align, equation and displaymath? I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use &amp; and \\ inside a block started with \[. Suppose a cleric casts Zone of Truth on a captured enemy. Unbeknownst to them, the enemy is a rakshasa. Zone of Truth says (PHB, p. 289):     You know whether each creature succeeds or fails on its saving throw.   But (MM, p. 257):     The rakshasa is immune to spells of 6th level or lower unless it wishes to be affected.   Assuming the rakshasa doesn't wish to be affected by the Zone of Truth spell, does the caster know this?  More generally, does a caster know when targets are unaffected by a spell they have cast, either because they have made saving throws, or because they are outright immune to the spell or its effects (e.g., casting Ray of Sickness on a shadow demon, which is immune to poison damage and the poisoned condition)? A problem regarding to Schur's lemma Let $\rho: G \to GL_n(\mathbb{C})$ be an irreducible representation, and $g\in Z(G)$. Show $\rho(g)$ is a scalar multiple of the identity matrix $I$.   I think I have it, here is my solution:  Since $\rho(g) \in Hom_G(\mathbb{C}, \mathbb{C})$ and $\rho$ is irreducible, consider a nonzero eigenvalue of $\rho(g)$, say $\lambda$, we have $\rho(g) -\lambda $ is a zero map by Schur's lemma, as the map contains a non-trivial kernel (i.e. the eigenvectors associated to $\lambda$ are in the kernel).  But I didn't use the condition that  $g\in Z(G)$, so are there something wrong with my solution? Does Gentle Repose work on a Circle of Spore Druid's Fungal Infestation Ability? The Circle of Spores Druid feature Fungal Infestation states:  If a beast or humanoid that is Small or Medium dies within 10 feet of you, you can use your reaction to animate it, causing it to stand up immediately with 1 hit point. The creature uses the zombie statistics. It remains animate for 1 hour, after which time it collapses and dies.  Circle of Spore druids also gain access to the  spell, which states:  You touch a corpse or other remains. For the duration, the target is protected from decay and can’t become undead. The spell also effectively extends the time limit on raising the target from the dead, since days spent under the influence of this spell don’t count against the time limit of spells such as raise dead.  There seem to be some good arguments that they cannot work together:  First, Gentle Repose states the target cannot become undead, which would seem to preclude Gentle Repose working on a fungally infested creature that appears to be in some sense raised from the dead. Second, gentle repose states you touch a corpse or other remains - one could argue that using the zombie statistics, the fungally infested entity is neither a corpse or remains, but an undead zombie.  However, there are also some reasonable arguments that they could work together:  First, the Fungal Infestation does not say that the creature is undead or a zombie, but that it uses the statistics of a zombie, which might leave room for a RAW interpretation that the features could work together (for example, it could be considered a fungally infested corpse or fungally raised remains). Second, Gentle Repose says that it extends the time limit of raising the target from the dead and makes reference to spells like Raise Dead, which in flavour are similar to what happens with Fungal Infestation.  RAW, can a player cast gentle repose on a zombie created by Fungal Infestation? Prove that inequality is true for $x>0$: $(e^x-1)\ln(1+x) > x^2$ I've recently noticed an issue with Ubuntu Software Center which I have tried to resolve following the answers provided in  without result and  which partially worked but didn't persist. The Issue After installing 20.04 I opened Ubuntu Software Center and installed a number of apps without any problem - one of which was Stacer which I will use as an example.  In Show Applications the app is clearly present and right clicking on the icon selecting Show Details provides the image above and it works perfectly well. However, if I open Ubuntu Software Center and type in the search bar stacer it reports that no application is found:  Nor is it listed when selecting the Installed tab. This is the setup for for Software and Updates.  There are other applications I have previously installed which are also now reported as No Application found such as gLabels, gscan2pdf and others. Has something changed since I initially installed 20.04.1 and more importantly, how can I restore good order to the Ubuntu Software Center? I am trying to think of what the name of the word/phrase is for when: An important task (not a difficult one, but a mission critical one) is at hand and instead of one person being assigned to it, a group takes on the responsibility to mitigate any consequences happening to one person in case something goes wrong and also to prevent a mistake or malicious intent occurring from one persons doing. (NOT because the task is big and needs to be divided in a group.) E.g.   Two different people needing to turn a key each in a device simultaneously to launch a missile.  Group of people tallying up votes for an election in case one of them were bridged to rig the outcome. What spell targets count for the Graviturgy Magic wizard's Gravity Well feature? The  feature from the  (EGtW, p. 185) triggers &quot;whenever you cast a spell on a creature&quot;, and has an effect &quot;if the target is willing to move, the spell hits it with an attack, or it fails a saving throw against the spell.&quot; It's not clear to me what kinds of spells can actually trigger this feature. Based on the singular phrasing of &quot;on a creature&quot; and the later use of the word &quot;target&quot;, I would normally read this as only applying to spells that explicitly target creatures (and perhaps only those with a single target, in contrast to the phrasing of the  feature of the  wizard, for example). However, spells that target a location can use the word target in a different sense (see ). What's actually going on here? Does this feature only work on targeted spells? Or does it function for area of effect spells as well? Or is this just an ambiguous phrasing that will rely on the DM's ruling? Understanding ROC curve Delete specific line number(s) from a text file using sed? I want to delete one or more specific line numbers from a file. How would I do this using sed? How do I flatten this vector logo leaving only the visible black paths? "In back of'' vs. "back of" vs. the spatial sense of "behind" in AmE How do you get git to always pull from a specific branch? What books are recommended for learning calculus on my own? I recently graduated with a degree in bachelor of science with a focus interactive and multimedia design. I had to opportunity to take 1 C++ course and 1 HTML course. I was also only required to take one math class, introduction to calculus (and it was hardly calculus, it was more of a math class for designers)  Since graduating I have pursued a career in web development. I'm considering going back for a MS in computer science or MS in web technologies.   I feel my math has suffered dramatically as I have always been behind most others on my math studies (middle school through college). I want to learn calculus as I feel it's an integral part of any CS degree.   Does anyone have any recommendations on any great books that I can read through and teach my self a bit of calculus or other advanced math topics?  Thanks for any advice Could one fire a bullet with sufficient speed to leave the Earth? Let $A$ be a diagonalizable matrix and $\lambda$ be an eigenvalue of A. Prove that rank($\lambda I - A$) = rank(($\lambda I - A)^2$). Let $A$ be a diagonalizable matrix and $\lambda$ be an eigenvalue of A. Prove that rank($\lambda I - A$) = rank(($\lambda I - A)^2$).  The hint they provided is that for any invertible matrix B, rank(AB) = rank (A) and rank(BA) = rank(A). Does python have the ability to create dynamic keywords?  For example:  qset.filter(min_price__usd__range=(min_price, max_price))   I want to be able to change the usd part based on a selected currency. I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax?  For example, adding a bunch of strings,  e = 'a' + 'b' + 'c' + 'd'   and have it in two lines like this:  e = 'a' + 'b' +     'c' + 'd' If $f$ is entire and $|f|\geq 1$, then show $f$ is constant.