i do have a class CheckPrograminstallation(which is part of a eclipse plugin), with a method check, which checks whether a program is installed. It return true when installed and false otherwise.  public class CheckPrograminstallation{     public static boolean check(String programname, String OsName)             throws Exception {          // Get installation path of programname         String foundpath = "";         String dirName = "";         String line;         String programpath = null;         Process process = null;         boolean IsInstalled = false;          if (OsName.equals("Windows")) {             try {                 // get Windows Directory first                 process = Runtime.getRuntime().exec("cmd /c echo %windir%");                 BufferedReader reader = new BufferedReader(                         new InputStreamReader(process.getInputStream()));                 // read from stream                  if ((line = reader.readLine()) != null) {                     foundpath = line.toString();                      // cut off "\Windows" from the found path                     int last = foundpath.lastIndexOf("\\");                     dirName = foundpath.subSequence(0, last).toString();                     process = null;                      // get program installation path                     process = Runtime.getRuntime().exec(                             "cmd /c where /R " + dirName + " " + programname);                      reader = new BufferedReader(new InputStreamReader(                             process.getInputStream()));                     if ((line = reader.readLine()) != null) {                         programpath = line.toString();                         System.out.println(programpath);                         IsInstalled = true;                      }                 }             } catch (Exception e) {                 DO SOMETHING);             }         }   When i call the method from a test class, it works. But when i call the same method while running the Plugin:  ...boolean isInstalledPscp;    boolean IsWindows; ...         if (IsWindows == true) {             // for Windows: check if pscp is installed             isInstalledPscp = CheckIfInstalled.check("pscp", "Windows");         if (isInstalledPscp == false) {             do something }         }   ...it always returns false.  How can that be?  This has been driving me crazy for a whole day. Using .equals for String comparison, and still getting false as result. So this is not a string comparison problem IMHO.
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?
How does the telepathy supernatural ability work? According to the MM books, telepathy is described as:     A creature with this ability (supernatural) can communicate telepathically with any other creature within a certain range (specified in the creature's entry, usually 100 feet) that has a language. It is possible to address multiple creatures at once telepathically, although maintaining a telepathic conversation with more than one creature at a time is just as difficult as simultaneously speaking and listening to multiple people at the same time.   Source: MM, MM3   My questions:   If a creature with telepathy knows that someone is within 100ft, can the creature communicate with that person, even if there is no line of effect or sight?  My answer would be yes, because no book says that telepathy is blocked by walls, etc. Normally, a supernatural ability is a standard action to start. If the creature wanted to communicate for more than one round using telepathy, does the creature need to use up a standard action every round they are communicating or only in the first round?  My answer is only in the first round, since the description says that maintaining telepathy is hard as speaking and listening normally. If a person the creature is communicating with moves out of the 100ft range, and then moves back into the range. Does the telepathic link need to be established again?  My answer is yes, another standard action is needed to establish the telepathy between the two creatures.   I should add the telepathy is supernatural, and a character is looking at getting it from the Mindbender class (from Complete Arcane). And also get the Mindsight feat (Lords of Madness). I couldn't find anywhere to rule whether a supernatural ability should take a standard action every round it is on. Is there a standard place for placing custom Linux scripts? How can I approach implementing the following in Drupal 7?  What I need to do is create a module which defines a new fieldable entity, called 'Company'. I have a list of, let's say, 20 fields that need to be filled out by each Company instance. These questions are predefined and some may contain custom validation.  At the moment, I'm at the point when I can add new fields to the Company entity. This works fine at the moment. My issue is that I need all these fields to be there as soon the module is installed, so adding them via the interface isn't an option.  I was wondering how can I approach this? I'd assume it comes down being able to do what can be done using the 'Manage Fields' UI programmatically. Recovering files from harddrive My laptop got broken (by what it seems the graphics card burned) and it is so old that it is not worth fixing it.   I took the harddrive from it and tried to use it as external hard drive with other computer, however I cannot access all the data, ie anything that is inside my user folder (it shows it to be empty). Couldn't find anything to solve it. In attempting to wrap my mind around the basic vocabulary, concepts, and methods of philosophy, I find myself wondering what the difference is between a philosopher and a theologian.   can have two meanings: 1. Theology is a rational study of the existence of God/gods and the nature of religious ideas. 2. Theology is simply a study of a particular religion (or all religions), really more the practice than the theory, but maybe a mixture.  It seems from an immediate reading that definition 1 would lead to the conclusion that a theologian is a philosopher (perhaps that theology is a branch or subset of philosophy), but definition 2 appears to be rather unphilosophical in nature.    So, how does philosophy answer this question?   Is theology considered a proper subset/branch of philosophy overall? Does it depend entirely on which of the above 2 definitions of theology fits a particular theologian as to whether he is a philosopher or not?   I think this answer is simple and fairly self-evident, but somewhere in my gut I feel like I'm missing something.  Is there a treatment of this question in the literature?    Edit: the answers so far seem to want to redefine theology or other terms - that is fine, but please be clear that you are redfining them, and provide, if possible, sources for why the term should be different than given (support from historical works, other sites, etc.). Can spells be cast through a Wall of Force? Smart phone Smartphone Smart-phone   I am really looking for some help regarding hyphen (-) issue in text found in research article. Is there any standard method how to use it? Bounty not awarded automatically — bug? how to use \input{file.tex} correctly? Suppose I have two latex files file1 and file2 with the same preamble and so on. Then I want to create a file called bigfile which just puts the two files together. This is not working for some reason. Therefore I first tried to include just file1, this is what I have done:  \documentclass .... %% same as file1 ... same preamble as file1 \begin{document} \input{file1} \end{document}   The result is that I not only get file1, but also the preamble and so on. This is my first experience with putting files together in 1 file. Kindly provide me a solution :) The new top bar is out on meta. Consider it a beta EDIT Dec 4 -  We're doing it live! Please post bugs or concerns as questions tagged [top-bar]  We have rolled out our 95% completed top bar for feedback.  Note:   We are still adding a few final features, so if you have a request for a feature that is not there you might hold off on that for a day or two Yes, the bar is black1. Also give that a day or two to sink in.   I also want to specifically address the meta/main/chat links.  I'm very aware that many of you like having the links at the top of the page and that this new version is different.  The thought process behind moving these links is that the "site switcher" should be an automatic place to go when you are on a site and want to go to another one. If you haven't already developed the muscle memory for these links, getting between them required a bit of a cognitive load: You must first decide that you want to switch sites and then you have to decide which area to go to to switch.  Also, we find that less familiar users aren't entirely clear what a standalone link that says "main" or "meta" actually does... Not to mention that it hurts my UX sensibilities that we are dynamically changing links in an element that should be fixed.  It is true that we have added a click in the process, but we have also removed a lot of clicks for other common actions that are much more frequent than switching between main and meta.  All I ask is that you give it a few days and see if the new "switch sites at the top left" paradigm grows on you.  What do you think?  1.  points out that technically it's not quite black. How do I coat popcorn with flavor? Multivariate multiple regression validation Hiding the sidebar in Ubuntu I have two questions :  First, I wanted to hide Ubuntu’s side-bar, so I set the settings in appearance to 'autohide'. The side bar did indeed disappear but when I roll over the left side, the side bar don't appear again. So, I am using a virtual box. Can it explain the fact that this bar doesn't show again when it is set to autohide.   Second, assuming I wouldn't be able to come over the problem, I pined to the dock every element of the sidebar, except the dash home. Is it possible either to pin it in the dock or to launch it from the terminal ? Why does the set of all singleton sets not exist? Propose a privilege to sit in the 500 reputation mark No route matches "/users/sign_out" devise rails 3 How to add a small rounded rectangle around a word inline I want to add a box with a very light pink background and red border around a word but inline and  within a sentence.   i.e. something like this (drawn with inkscape)    I know the mdframed package can be used for placing boxes around paragraphs, but it does not seem to work inline and also give colored boxes.   Possibly TikZ is a solution? From the little I know of TikZ, it can be used to draw pictures inline inside a sentence. How to get part name in LaTeX ? Firefox fails to update due to corrupted download (deb)  Preparing to unpack .../firefox_32.0+build1-0ubuntu0.14.04.1_i386.deb ... Unpacking firefox (32.0+build1-0ubuntu0.14.04.1) over (31.0+build1-0ubuntu0.14.04.1) ... dpkg-deb (subprocess): decompressing archive member: lzma error:  compressed data is corrupt dpkg-deb: error: subprocess &lt;decompress&gt; returned error exit status 2 dpkg: error processing archive  /var/cache/apt/archives/firefox_32.0+build1-0ubuntu0.14.04.1_i386.deb (--unpack):  cannot copy extracted data for './usr/lib/firefox/libxul.so' to '/usr/lib/firefox/libxul.so.dpkg-new':   unexpected end of file or stream Please restart all running instances of firefox, or you will experience problems. Can I sync or transfer save games and settings from one platform to another? I would like to know if the same Minecraft account used on a computer can be used on a different platform like the Xbox 360? I am not asking about playing on each simultaneously as each platform has been purchased - I am asking if you can cross play on multiple platforms with the same account. Basically I would like to know if all the saved stuff and settings from one platform will carry over to another.