why wont my while loop break
How do I compare strings in Java?
Summer in Saint Helena The Winter Bash site is located at http://winterba.sh/.  Only one problem:   . Saint Helena is in the Southern Hemisphere. It's Summer in Saint Helena.   So shouldn't it be the Summer Bash? Don't forget our Aussie/Kiwi/South African/Southern Brazilian/Argentine/Uruguayan/Zimbabwean/Swazi/Tokelauan/Tuvaluan/Pitcairn Islander/ friends! How can I tell hotels exist that aren't on the booking web sites? There are a ton of sites out there to help book hotel rooms and to aggregate all the different sites to book hotel rooms. These companies make enough money to buy ads on TV, so I won't name them here. I normally poke around 3 or 4 of these as part of planning any trip.  I am now starting some very long term planning for a 6 week South Pacific trip, which includes undertstanding what hotels costs on some very small islands. I have paper guidebooks and I've been looking online. But I come across anomalies. For example, a place which has only 9 hotels listed on the sites I use, and prices range from $1000/night down to $200/night, then when I read the reviews on that cheapest one people are saying "it's nothing special, there are 5 or 6 places just like it here for half the price". Well, not on this site there aren't!  My guess is that many of these places don't have web sites, or don't have online booking, and therefore aren't getting into the aggregators. For some islands I have found local tourism boards with lists of "pensions" and such, typically cheaper than what I can find on the aggregators.    But how can I know? I don't want to assume that popular web sites represent reality, and choose only from places listed there. But I don't want to invest 10-20 hours of research per island only to discover the aggregators had everything. How can I know where the coverage is good and where it isn't, what kinds of hotels are more or less likely to be listed at expedia, trivago, booking, hotels, tripadvisor, and the like? (For example, I don't want to stay at a hostel, so I don't mind if they're not included in online sites.) Are there sites like wikitravel that list places without much of an internet presence?  I'm starting my research over a year before the trip, but wading through hotel pages is not the fun part of the planning so tell me how the smart people do it. What happens to a Devil when its alignment is forcibly changed? According to PHB 122, in the section entitled Alignment in the Multiverse, for most creatures, "alignment is a moral choice." Myth says good-aligned gods created the races that are free to choose to be evil (they have free will), while evil-aligned gods created the races that are very inclined towards evil, since they were born to serve the evil god in the first place.  However, there are some types of creatures -- like devils -- which embody an alignment in its essence:     Alignment in the Multiverse, PHB 122      A devil does not choose to be lawful evil, and it doesn't tend toward lawful evil, but rather it is lawful evil in its essence. If it somehow ceased to be lawful evil, it would cease to be a devil.   My first thought was to not take this reading literally. The text could have meant that a neutral evil devil "isn't really a devil," but really, it's still a devil. It's a bit like imagining a guitarist who loses both hands. The loss of some part of a person's essence makes them not the same person anymore.  However, keeping my attention on it, I'm finding this text more and more difficult to interpret. If a devil "is lawful evil in its essence" then what does it mean when "it would cease to be a devil"? What happens to a devil when its alignment is forcibly changed?  There are , and a devil can be subject to some of them. An entire function whose real part is bounded must be constant. $A=\begin{pmatrix}0&amp;0&amp;1\\ 0&amp;1&amp;0\\ 1&amp;0&amp;0\end{pmatrix}$  How do I show that there are no solutions for $X^2=A$ in $M_3(R)$?  I tried $X^2=\begin{pmatrix}a_{11}&amp;a_{12}&amp;a_{13}\\ a_{21}&amp;a_{22}&amp;a_{23}\\ a_{31}&amp;a_{32}&amp;a_{33}\end{pmatrix}^2=A$, but I couldn't seem to find anything that shows there are no solutions. How should I approach this? Why pass parameters to CSS and JavaScript link files like src="../cnt.js?ver=4.0"? in my mariadb i have replication, i tried to change the location of the binlogs by changing the configuration file as so: log-bin = /new/path/mysql-bin I also tried to change the index location as so: log_bin_index = /new/path/mysql-bin.index but every time when I restart I see that the location of the binlog files is /var/lib/mysql... i tried to check with mysqld --verbos --help | grep bin and I saw that the lob-bin parameter is mysql-bin and not what I wrote in the cnf... how to I make the MySQL to take the value of the log-bin from the cnf file? this is the cnf file of the MySQL for sure... What do you call someone who is supported? Synonym for a supportee (Which doesn't seem to be a word)?  I created products that retail and we sell them and give the proceeds to charities. Trying to figure out a single word to use as a page title for those that we support were we can list the charities (With their permission of course).  Thanks Why did the Emperor remain motionless while Darth Vader threw him off the balcony? I'm wondering whether this was a movie sin but his body position seemed to stay the same? Also why didn't he stop using Force Lightning? He continued to use it even as he was falling down.   I'm also wondering whether Palpatine meant to electrocute Vader or was it just a coincidence (because he kept firing Force Lightning) .  It makes no sense as he just stood there allowing Vader to throw him. Converting ArcGIS (*.mxd) file to QGIS (*.qgs) file? How to make a grid-to-sphere animation like this? In the following setup, does method B run in a (new) transaction?  An EJB, having two methods, method A and method B  public class MyEJB implements SessionBean     public void methodA() {        doImportantStuff();        methodB();        doMoreImportantStuff();     }      public void methodB() {        doDatabaseThing();     } }   The EJB is container managed, with methodB in requires_new transaction, and method A in required transaction. thus:  &lt;container-transaction id="MethodTransaction_1178709616940"&gt;   &lt;method id="MethodElement_1178709616955"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;*&lt;/method-name&gt;   &lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;   &lt;/method&gt;   &lt;method id="MethodElement_1178709616971"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;methodB&lt;/method-name&gt;   &lt;/method&gt;   &lt;trans-attribute&gt;RequiresNew&lt;/trans-attribute&gt; &lt;/container-transaction&gt;   Now let another EJB call methodA with an EJB method call. methodA now runs in an transaction. Will the subsequent call to methodB from methodA run in the same transaction, or does it run in a new transaction? (mind, it's the actual code here. There is no explicit ejb-call to method B) Parental controls with different settings for different users Does anyone know of a good way to set up some sort of parental controls so that one user account is subject to them, but not another?  A couple of friends of mine use Ubuntu and have kids (7 to 10 years old) who use the family computer. They'd like to have some blocking of adult sites. They're not going to supervise all the time, which I know might be ideal, but there we go. And they're not particularly technical, so they don't want to have to run scripts to turn the parental controls on and off regularly, but they can cope with having different accounts for different people. I haven't found a great way of doing this. I am pretty technical, so I'm happy to spend some time at the command line to set it up, but then it needs to just work.  Please don't just link to DansGuardian. If your answer doesn't address the different user account aspect, I will vote it down. If you want to talk about general parental controls that apply to all users then please start a new question - I'm sure that plenty of people would be interested in it, and I'll link to it from this question. Edit:  Of course my real code doesn't look exactly like this. I tried to write semi-pseudo code to make it more clear of whay I wanted to do.  Looks like it just messed things up instead.  So, what I actually would like to do is this:  Method&lt;Interface1&gt;(); Method&lt;Interface2&gt;(); Method&lt;Interface3&gt;(); ...   Well ... I thought that maybe I could turn it into a loop using reflection. So the question is: How how do I do it. I have very shallow knowledge of reflection. So code examples would be great.  The scenario looks like this:  public void Method&lt;T&gt;() where T : class {} public void AnotherMethod() {     Assembly assembly = Assembly.GetExecutingAssembly();      var interfaces = from i in assembly.GetTypes()     where i.Namespace == "MyNamespace.Interface" // only interfaces stored here     select i;      foreach(var i in interfaces)     {         Method&lt;i&gt;(); // Get compile error here!     }       Original post:  Hi!  I'm trying to loop through all interfaces in a namespace and send them as arguments to a generic method like this:  public void Method&lt;T&gt;() where T : class {} public void AnotherMethod() {     Assembly assembly = Assembly.GetExecutingAssembly();      var interfaces = from i in assembly.GetTypes()     where i.Namespace == "MyNamespace.Interface" // only interfaces stored here     select i;      foreach(var interface in interfaces)     {         Method&lt;interface&gt;(); // Get compile error here!     } }   The error I get is "Type name expected, but local variable name found". If I try  ...     foreach(var interface in interfaces)     {         Method&lt;interface.MakeGenericType()&gt;(); // Still get compile error here!     } }   I get "Cannot apply operator '&lt;' to operands of type 'method group' and 'System.Type'" Any idea on how to get around this problem? Coding for an ordered covariate I am performing ordinal regression, I have 5 response categories and several predictors both continuous and categorical. I would like to add a predictor which is categorical but ordered (1, 2, 3, 4). I don't think it would be appropriate to apply the usual dummy coding for unordered categorical predictors, but when I searched for how to code this I did not find much information.  In  "linear coding" or "assuming linearity of the predictor effect" is mentioned, but without further details.  Does it mean I just use my ordered values as they are, i.e. use them as a continuous variable? I've noticed that with the new question asking form, sometimes, attempting to submit a question will post two identical copies of the same question.  I've  (), but at the time, I assumed it was just a temporary fluke. As far as I remember, I just reviewed the question, saw no errors, and submitted it. (That's all the info I have.)  However, I just saw this happen to someone else, so it can't just be a fluke on my end. , and . The author claims there that they did indeed double click the "Review" button, but their question didn't go through since it didn't have a required tag, but when they tried to submit the question with the required tag, they only clicked it once.  Also, now that I think about it, it could not have been just a temporary client-side issue on both our ends. The system is supposed to  if one tries to post more than one question in 30 seconds. Neither of us got a CAPTCHA. This means that the server accepted the double post, and so it's a server issue.  This has the effect of denying users badges that they would have otherwise qualified for, since a single negatively-received, closed, or deleted question . This means that even if the double post is deleted and the original is upvoted, the user won't qualify for that day since they've made a "bad" question on that day. (While they may be able to later reverse this 60 days later by undeleting and re-deleting their question - questions deleted more than 60 days later aren't considered "deleted" for the check - they often won't be able to, since most of the time, users will have downvoted the double post, which also disqualifies one from the badges.)  Can an employee go through server logs to see what happened in both these cases, and add some safeguards to prevent accidental double submissions of questions? This seems to have come up when the new asking form was deployed.  Update: There was another case just now:  was . As both have the exact same time of submission, this is an instance of this bug, since as I said above, this thing is ordinarily prevented by a CAPTCHA. Does the use of words such as 'fail', 'wrong', 'incorrect' and 'invalid' have a sufficiently negative impact on a users frame of mind to warrant the prohibition of their inclusion in the error messages generated by typical web forms?  i.e. Should we rephrase examples like these to just use positive words?  'date entered incorrectly'  or  'failed to complete registration, please see below for invalid field entries'  (PS, the examples are there to show use of the words in an error message, not to serve as examples of error messages I would use or things that need correcting in answers, I'm not looking for advice on how to write form error messages, but for information about the effect of certain words on a users frame of mind) What, exactly, is transferred along supply lines? Here's a scenario:  Someone asked about "How to build a SQL query to get count and blah blah blah..."  His only tag is . I added the  and  tags to it.  Someone else answered with a nice SQL statement that has a "group by" statement which seems "logically inevitable".  I proceed to add a tag . I did that on the basis that someone who searches for  will be able to find this post useful, just as I did. My concern is, it wasn't described at all in the question, nor was it implied, unlike  and .  What is the community opinion?  The scenario above is a real one . And the one who answered it nicely is Jon Skeet. Why is it true that "I before E, except after C"? I almost hesitate to ask this, because it is hard to believe no one else asked it; but it isn't showing up in the "similar titles" list.  What is special about 'C' that switches the 'IE' immediately following it?