what is going wrong when I compare to equal elements of String
How do I compare strings in Java?
How do I resize an encrypted LVM to install another copy of Ubuntu? I have an old PowerBook which has been happily running Ubuntu Server for a few months. Now I want to repartition the hard drive and install Ubuntu Client, while keeping my existing installation intact.  When I first installed Ubuntu, I chose to erase the entire hard drive and use it as an encrypted LVM. Now, the installer seems to recognize the partitions on the drive, but it never prompts me for the password to the LVM.  How do I make room for another installation alongside my current one? How to find users by name Show that $x^{n-1}+\cdots +x+1$ is irreducible over $\mathbb Z$ if and only if $n$ is a prime. Why don't players get extra xp for large encounters? Based on the table Encounter XP Multipliers from the Basic Rules' DM section, Page 57, when you're building encounters in 5E, you include an XP modifier depending on the number of creatures your PCs will be fighting: 1.5x for a pair, 2x for 3-6 and so on. However, the PCs only get the base XP as a reward.     This doesn't change the actual xp reward ... just your calculations of how difficult the encounter is.   Why is this? After acknowledging that battles vs multiple opponents are more difficult, why not reward them as such? How to convert a std::string to const char* or char* Current Configuration: I have two SQL Servers, which are connected by the failover mechanism, meaning one is primary and one is secondary. I restarted both services on both servers sequentially. On the secondary server, all the databases are in the &quot;Synchronizing&quot; state. AG replication mode is synchronous. It has been 12hr it's still showing &quot;Synchronizing&quot; state. What I did so far to resolve Drop the database from the secondary server and remove the database from AG group on the primary server and add it back. Any insight on this, I am using SQL Server 2017. Does this seemingly elementary question require König's theorem? Test for convergence  $$\sum_{n=1}^{\infty} \frac{1}{n^n}$$  I'm at a loss on what to do, is this a geometric series $\frac{1^n}{n^n}$? Limit $c^n n!/n^n$ as $n$ goes to infinity Let $c&gt;0$ be a real number. I would like to study the convergence of $a_n := c^n n!/n^n$, when $n \to \infty$, in function of $c$.   I know (from  question) that $n!&gt;(n/e)^n$, so that $c^n n!/n^n&gt;1$ for $c ≥e$. But this doesn't imply that the sequence goes to infinity. And I'm not sure what to do for $c&lt;e$. I tried usual tests (D'Alembert...), without any success. I would like to avoid using Stirling approximation.  Thank you for your help! Is there a way to make Git mark a file as conflicted? What do bookcases do for enchanting? The Frobenius Coin Problem I am asked to prove that:       For integers $n, x,y &gt; 0$, where $x,y$ are relatively prime,        every $n \ge (x-1) (y-1)$ can be expressed as $xa + yb$, with nonnegative integers $a,b \ge0$.   How should I approach this? I have very limited knowledge in number theory. A former lecturer of mine once explained why, from a syntactic point of view, the English rule that negation and questions are formed with the auxiliary do follows from other syntactic facts about English.  More precisely, if you gave a good syntactician not familiar with English a corpus of English sentences containing everything but questions and negated phrases, then s/he could infer grammatical rules from it (such as headed-ness of phrases, what kind of arguments what word takes, etc.) From some of these rules, then, s/he could see that something specific would be wrong with the sentences "Gave you the present to Mary?" and "He went not to the cinema."  Can someone explain what exactly this something is and how it follows from other sentences?  FYI, my lecturer did this in Government &amp; Binding with X-Bar theory. This may be more suitable a question for the proposed  but as it's not online yet I'm trying it here first.   Edit: the beta is online now at . Helllo!  For a project that I am doing, I need to render the my model to a sprite sheet. This is all fine, except that the model has a cloak, which uses a cloth animation. I need to smoothly transition from the end of the cloth simulation to the start, so it doesn't just jerk back, but I can't find any way of doing this.  Thanks in advance. Can we deploy PROFILES alone from one sandbox to another? What is the appropriate statistical test when calculating the busiest day of the week? We have 10 years of data and Monday is the busiest (most visits to the hospital) on average. If we wanted to assess whether that is true and report a p-value, what is the appropriate statistic?   We believe the answer is chi-square as we found a peer-reviewed medical article from the Annals of Emergency Medicine (highest circulating journal for that specialty) that used chi-square for this very calculation.   If chi-square is appropriate, what values do we use for observed and expected values for chi-square? One approach would be to list all the values for Monday as observed values, or all the means for Mondays averaged across a month, or all the means for Mondays averaged across a year.  If there were no busiest or least busy days, we would assume that the visits would be the same every day of the week. That means our "expected values" for Chi-Square would be the mean of the visits for any given week. How critical are macOS Mojave compatibility requirements? As per Apple support document, :     1. Check compatibility      You can upgrade to macOS Mojave from OS X Mountain Lion or later on   any of the following Mac models. Your Mac also needs at least 2GB of   memory and 12.5GB of available storage space, or up to 18.5GB of   storage space when upgrading from OS X Yosemite or earlier.         MacBook introduced in early 2015 or later   MacBook Air introduced in mid 2012 or later   MacBook Pro introduced in mid 2012 or later   Mac mini introduced in late 2012 or later   iMac introduced in late 2012 or later   iMac Pro (all models)   Mac Pro introduced in late 2013, plus mid-2010 or mid-2012 models with a recommended Metal-capable graphics card.      I am currently running macOS High Sierra on my Early 2011 MacBook Pro.  What does Apple's requirements mean for my ability to install Mojave? Is it possible or worthwhile to do so? Looking for Scifi Short Story in a Jerry Pournelle edited Anthology I'm looking for the title of the short story, and any of the volumes of anthology it may have appeared in. I know for SURE it's in one of Jerry Pournelle's anthologies, either Star Empires and There will be War, but as I have all the eBook version of THere will be war, I'm almost certain it wasn't there.   Anyway, the book is about a Commodore who went back to the academy to visit. I'm not sure what his name was, but I'm pretty sure he lived at "Mercer Hall". He had 2 roommates, and a butler to take care of all their needs, like putting away their stuff. (He even tried to argue with the hall monitor) The butler once took away their bottle of booze UNTIL they study for mid-term, and only gave it back AFTER they wrote to their mother AFTER the exam.   The book also goes heavily into "Bless you!" or the translated version, "May the great cosmic magnificence be benevolent toward you" or something like that. Basically, it's about as inoffensive as possible, and if you say it enough, and the aliens are reasonable, they will give up and things will resolve peacefully.   My Google-fu is weak and I can't find this particular story, or which volume of anthology was it in.   Little help? What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally? How does rolling two d20 and taking the higher affect the average outcome? D&amp;D 5E has an "advantage" concept where instead of rolling 1d20, you roll 2d20 and take the higher. Likewise, disadvantage means rolling 2d20 and taking the lower.  How does this affect the expected average outcome of the roll?