Suppress System.in to System.out (prompt for password) I want to prompt the user for a password in a Java code, and I'd rather not have the input printed to the screen for security reasons.  I am aware of the class Console, but I would like to be able to run my program from an IDE for testing reasons. Any alternatives?
java.io.Console support in Eclipse IDE I use the Eclipse IDE to develop, compile, and run my Java projects. Today, I'm trying to use the java.io.Console class to manage output and, more importantly, user input.  The problem is that System.console() returns null when an application is run "through" Eclipse. Eclipse run the program on a background process, rather than a top-level process with the console window we're familiar with.  Is there a way to force Eclipse to run the program as a top level process, or at least create a Console that the JVM will recognize? Otherwise, I'm forced to jar the project up and run on a command-line environment external to Eclipse.
Call to a member function on a non-object Link renders differently on client and server side when preceded by a special character When editing a question on , I observed that a link which was not rendered in the post was hyperlinked in the edit preview (see pictures below). I tried reproducing it in the  to see if this also happens when the post is posted for the first time and observed the same. It seems to be a bug after the shift to CommonMark, leading to the different rendering of links on client and server-side. A link following a special character (without any space) is not hyperlinked in the post but is hyperlinked in the preview. A link separated from the special character with a white space appears to have no such problem. (see pictures below and my ). Link not hyperlinked in post  Same link hyperlinked in preview How are connections differentiated from behind NAT routers? Android app intermittently shows blank body in questions and answers (multiple sites) Note: the bug has returned in version 1.0.89 in a somewhat different form. See:      This possible bug report is similar to the bug in  that was deemed not-reproducible.  I can reproduce something similar with more recent app &amp; Android versions.   App Version: 1.0.34 (original report; is still present in 1.0.38, 1.0.42, 1.0.58) Android Version: 4.4 (up to 4.4.4) Device: Motorola Droid Maxx   In the examples below, you can see some blank answer bodies.  These are on different sites, and represent answers with both edited and non-edited text. In the first example, I clicked on the top answer tab to get to the answers, and in the second example I clicked on the bottom "View n Answers" button. (Trying to be a good little tester!)  Because I've seen this blank-answer-body intermittently over the past couple weeks (before the May 7 update), my process to test was just to go to the first site I frequent and then systematically click through the question list until I found a question with answers in which at least one answer was blank.  For all three sites shown below, it was within the first 5 or 7 questions sorted by newest.  Please note that I have seen many questions with several answers, none of which were blank. It is truly intermittent.  Example blank answer body at Workplace.SE:    Example blank answer body at Programmers.SE:    Example blank answer body at UX.SE:    And now here's the kicker, which makes me think this is some sort of content-loading latency issue rather than a rendering issue:  I returned to the left-side menu, selected the User Experience site, picked the same question as above, and then clicked the top answer tab to view answers again, and lo and behold the text is there:    I then went back to the other questions with blank answers, shown above, and the answer bodies were no longer blank.  I am happy to go through more tests/paths and do screenshots if it is helpful.  The same bug also appears in question bodies. Smoothness constraint of wave function Is there anything in the physics that enforces the wave function to be $C^2$? Are weak solutions to the Schroedinger equation physical? I am reading the beginning chapters of Griffiths and he doesn't mention anything. Access is denied because the NTFS volume is already exclusively opened Where to or how to ask "Best of" Questions for what software tools to use I am wondering where is a good place or how is a good way to ask a question on what software tools to use for a specific task.  A lot of the time when searching for information on these types of problems stackoverflow comes up with the top and actually useful discussions and answers, but the question is locked.  I completely understand the point of discouraging "best of" or list questions as discussed in this question () and agree they often aren't constructive enough to justify the effort in moderating them.  What I am wondering is where is the right place to have a discussion like this? Stackoverflow has a good and active community so perhaps there is another section or related site I can ask less specific questions. And I do find some value in reading people's opinions, even if subjective on issues like this.  Here are some examples of the kind of questions I mean:    and   First results in google when searching for those subjects and some useful discussion.  Perhaps asking a question like this but with a strict and detailed specification it might be considered a valid and reasonable question to ask on stackoverflow; perhaps it's just a case of re-thinking how to ask a question. Or perhaps there's a more relevant place for this kind of discussion. Please let me know what you think. Should my flair be including sites with less than 200 reputation? I took a look at my profile, where I stuck my flair. Here's the flair:    However, I don't have 28k rep. According to chat, I have 19.7k.  Note: I know about the combined flair - I've had this in my profile for at least a year. It had been showing me the same as in chat, now it isn't.   What is going on here?  Edit: I'm reporting a bug here, that the combined flair is not showing the correct number, as it has in the past. text processing rows to columns for a block How to find modulo of large numbers like $9801\! \pmod {\!32}$ It is easy to calculate small examples like $26\pmod {5}$ but how do you calculate examples like $9801 \pmod {32}$ without a calculator. Making a HUD/GUI with OpenGL (LWJGL) Why are eigenfunctions which correspond to discrete/continuous eigenvalue spectra guaranteed to be normalizable/non-normalizable? These facts are taken for granted in a QM text I read. The purportedly guaranteed non-normalizability of eigenfunctions which correspond to a continuous eigenvalue spectrum is only partly justified by the author, who merely states that the non-normalizability is linked to the fact that such eigenfunctions do not tend to zero at infinity.  Not a very satisfying answer. What I'm really after is an explanation based in functional analysis. I believe there is a generalized result about inner products being finite for discrete spectra but infinite for continuous spectra.  Can anyone shed some light on this? Coincidence, purposeful definition, or something else in formulas for energy In the small amount of physics that I have learned thus far, there seems to be a (possibly superficial pattern) that I have been wondering about.  The formula for the kinetic energy of a moving particle is $\frac{1}{2}mv^2$.  The formula for kinetic rotational energy is $\frac{1}{2}I\omega^2$.  The formula for energy stored in a capacitor is $\frac{1}{2}C \Delta V^2$.  The formula for energy delivered to an inductor is $\frac{1}{2}LI^2$.  Finally, everyone is aware of Einstein's famous formula $e=mc^2$.  I realize there are other energy formulas (gravitational potential energy, for example) that do not take this form, but is there some underlying reason why the formulas above take a similar form? Is it a coincidence? Or is there a motivation for physicists and textbook authors to present these formulas the way they do? How exactly do automatic updates work? I received an email this morning stating that my Wordpress site had been automatically updated to the latest version. I knew about the feature but I've always wondered exactly how it works.  PHP isn't a permanently-running process: it only runs when requested. So as far as I can tell, Wordpress can only update itself when someone loads a web page. But the update process is not instantaneous, so surely a user visiting the site would have a really slow page load.  Is there a different trick they use for automatic updates? I've searched all over the place but haven't found any explanation. "Planar" graphs on Möbius strips Looking for a short story title about a "weird house" If $X,Y$ are equivalence relations, so is $X \times Y$ How can I ensure testNG test method does not abort if any assert fails I know there is a difference between assert and verify in Junit; the assert results in a runtime exception, causing test method execution to abort. To overcome this problem, we can have verify which will make test case fail, but allowing test execution to proceed rather than getting aborted.  I doubt there is any such built in approach in testNG. I do understand that best practices say, there should not be multiple asserts in same test case.  But, in practical world, we do come across scenarios where we need to have multiple checkpoints in one test case and we don't want our test method to abort because of one check point failure (test execution should proceed despite failure).  How can we use a soft assert mechanism, similar to verify, which will not abort test method when there is a checkpoint failure.  Example:  @Test(dataProvider = "getMailUrl") public void testMail(email,subject); Assert.assertFalse(subject.isEmpty);//1st checkpoint Assert.assertNotNull(email); //2nd checkpoint Assert.assertEquals(email, "feedback@yoursite.com"); //3rd checkpoint   Now, I want test execution to proceed, even if the 1st checkpoint (validation of subject being not empty) fails. Definitely we will be not be using assert (hard assert). We will need concept of soft assert similar to verify (facilitated by Junit).   I understand, we have to build a customListener implementing TestNG interfaces or extending existing listeners such as TestListenerAdapter. I am still struggling - how can we do this? 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. Most people say I wish I could, I wish you would.    Can we use I wish I can, I wish you will?    I'd like to know what the main differences between the usage of can/will and could/would are when wishing.  Is it related to the subjunctive? Because one says “I wish I were”, not “I wish I am”, so are would and could the subjunctive forms of can and will?  Or is it something else entirely?